1 2015-10-01 Marek Polacek <polacek@redhat.com>
4 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
5 create_tmp_var_raw rather than create_tmp_var.
7 2015-10-01 Marek Polacek <polacek@redhat.com>
9 PR tree-optimization/67769
10 * tree-ssa-phiopt.c (conditional_replacement): Call
11 reset_flow_sensitive_info_in_bb.
12 (minmax_replacement): Likewise.
13 (abs_replacement): Likewise.
15 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
17 * builtins.c: Don't include gomp-constants.h.
18 (fold_builtin_1): Don't fold acc_on_device here.
19 * gimple-fold.c: Include gomp-constants.h.
20 (gimple_fold_builtin_acc_on_device): New.
21 (gimple_fold_builtin): Call it.
23 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
25 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for
27 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
29 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
31 * config/arm/aarch-common-protos.h
32 (aarch_accumulator_forwarding): New.
33 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
34 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
35 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
36 * config/arm/cortex-a53.md: Rewrite.
38 2015-10-01 Richard Biener <rguenther@suse.de>
40 * gimple-match.h (mprts_hook): Declare.
41 * gimple-match.head.c (mprts_hook): Define.
42 (maybe_push_res_to_seq): Use new hook.
43 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
44 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
45 (vn_ssa_aux::has_constants): Remove.
46 * tree-ssa-sccvn.c: Include gimple-match.h.
47 (VN_INFO_GET): Assert we don't re-use SSA names.
48 (vn_get_expr_for): Remove.
49 (expr_has_constants): Likewise.
50 (stmt_has_constants): Likewise.
51 (simplify_binary_expression): Likewise.
52 (simplify_unary_expression): Likewise.
53 (vn_lookup_simplify_result): New hook.
55 (visit_reference_op_call): Likewise.
56 (visit_phi): Likewise.
57 (visit_use): Likewise.
58 (process_scc): Likewise.
59 (init_scc_vn): Likewise.
60 (visit_reference_op_load): Likewise. Use match-and-simplify and
61 a gimple seq for inserted expressions.
62 (try_to_simplify): Remove GENERIC stmt combining code.
63 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
64 * tree-ssa-pre.c (eliminate_insert): Adjust.
65 (eliminate_dom_walker::before_dom_children): Likewise.
67 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
69 * doc/invoke.texi (Optimization Options): Add
70 -freorder-blocks-algorithm=.
71 (Optimize Options) <-O>: Add -freorder-blocks.
72 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
73 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
74 <-freorder-blocks>: Also enabled at levels -O and -Os.
75 <-freorder-blocks-algorithm=>: Document new option.
77 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
79 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
80 with flag_reorder_blocks_algorithm.
81 * common.opt (freorder-blocks-algorithm=): New flag.
82 (reorder_blocks_algorithm): New enum.
83 * flag-types.h (reorder_blocks_algorithm): New enum.
84 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
85 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
87 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
89 * bb-reorder.c: Add intro comment.
90 (reorder_basic_blocks_software_trace_cache): Print a header to
92 (edge_order): New function.
93 (reorder_basic_blocks_simple): New function.
94 (reorder_basic_blocks): Choose between the STC and the simple
95 algorithms (always choose the former).
97 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
99 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
100 function, factored out from ...
101 (reorder_basic_blocks): ... here.
103 2015-10-01 Tom de Vries <tom@codesourcery.com>
105 * tree-cfg.c (dump_function_to_file): Dump function attributes using
106 __attribute__(()) string. Move dumping of function attributes to before
109 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
112 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
113 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
114 based on gold linker version.
115 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
116 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
117 * configure, config.in: Regenerate.
119 2015-10-01 Alan Modra <amodra@gmail.com>
121 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
122 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
123 (rs6000_output_mi_thunk): Likewise.
125 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
127 * config/nvptx/mkoffload.c (process): Change offload data format.
129 2015-09-30 Jeff Law <law@redhat.com>
131 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
132 with constant conditions.
133 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
134 (remove_ctrl_stmt_and_useless_edges): No longer static.
135 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
136 (remove_ctrl_stmt_and_useless_edges): Likewise.
138 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
139 Cesar Philippidis <cesar@codesourcery.com>
141 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
142 (TARGET_GOACC_VALIDATE_DIMS): Override.
143 * target.def (TARGET_GOACC): New target hook prefix.
144 (validate_dims): New hook.
145 * targhooks.h (default_goacc_validate_dims): New.
146 * omp-low.c (oacc_validate_dims): New.
147 (execute_oacc_device_lower): New.
148 (default_goacc_validate_dims): New.
149 (pass_data_oacc_device_lower): New.
150 (pass_oacc_device_lower): New pass.
151 (make_pass_oacc_device_lower): New.
152 * tree-pass.h (make_pass_oacc_device_lower): Declare.
153 * passes.def (pass_oacc_device_lower): Add it.
154 * doc/tm.texi: Rebuilt.
155 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
156 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
158 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
160 PR rtl-optimization/67037
161 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
163 2015-09-30 Bernd Schmidt <bernds@redhat.com>
165 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
166 * passes.c: Include tree-ssanames.h.
167 (execute_function_todo): Flush the pending free SSA_NAMEs after
168 eliminating unreachable basic blocks.
169 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
170 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
171 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
172 (flush_ssanames_freelist): New function.
173 (release_ssaname_fn): Put released names on the queue.
174 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
175 * tree-ssanames.h (flush_ssanames_freelist): Declare.
177 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
179 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
180 (generate_target_descr_file, generate_target_offloadend_file)
181 (generate_host_descr_file, prepare_target_image, main): Pass it
183 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
184 (compile_native, main): Pass it on.
185 * lto-wrapper.c (compile_offload_image): Likewise.
187 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
188 Ilya Verbin <ilya.verbin@intel.com>
189 Andrey Turetskiy <andrey.turetskiy@intel.com>
191 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
192 (prepare_target_image, main): Refactor argv building to use
195 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
197 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
198 * config/spu/spu.c (spu_expand_atomic_op): New function.
199 * config/spu/spu.md (AINT): New mode iterator.
200 (ATOMIC): New code iterator.
201 (atomic_name, atomic_pred): New code predicates.
202 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
203 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
204 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
205 "atomic_<atomic_name>_fetch<mode>"): Likewise.
207 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
209 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
211 (scalar_chain::convert_reg): Likewise.
213 2015-09-30 Richard Biener <rguenther@suse.de>
215 * builtins.c: Add comment that no new simplifications shouldd
218 2015-09-30 Marek Polacek <polacek@redhat.com>
220 PR tree-optimization/67690
221 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
222 reset_flow_sensitive_info_in_bb.
223 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
224 * tree-ssanames.c: Include "gimple-iterator.h".
225 (reset_flow_sensitive_info_in_bb): New function.
226 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
228 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
230 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
231 variable, replacing it with...
232 (offload_abi): ... this new variable. Adjust all users.
233 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
235 2015-09-30 Matthias Klose <doko@ubuntu.com>
237 * configure.ac: Remove extraneous ;;.
238 * configure: Regenerate.
240 2015-09-29 James Bowman <james.bowman@ftdichip.com>
242 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
243 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
244 predicate, disallow register for operand 2.
246 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
248 * graphite-dependences.c (scop_get_dependences): Moved in down
249 in order to be visible to its caller.
250 * graphite-poly.h: Removed compute_deps, and extend_schedule.
252 2015-09-29 Sebastian Pop <s.pop@samsung.com>
253 Aditya Kumar <aditya.k7@samsung.com>
255 PR tree-optimization/67754
256 * graphite-optimize-isl.c (optimize_isl): Call
257 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
259 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
261 * builtins.c (expand_builtin_acc_on_device): Delete.
262 (expand_builtin): Don't call it.
263 (fold_builtin_1): Fold acc_on_device.
265 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
267 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
268 (ix86_nsaved_sseregs): Likewise.
270 2015-09-29 Jeff Law <law@redhat.com>
272 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
273 computation of unused value.
275 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
276 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
277 inline macro expansion.
279 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
281 * config/sh/sh.c (gen_shl_and): Fix undefined left shift
283 (gen_shl_sext): Likewise.
284 * config/sh/sh.md (divsi3): Likewise.
285 (imm->ext_dest_operand splitter): Likewise.
287 2015-09-29 Sebastian Pop <s.pop@samsung.com>
288 Aditya Kumar <aditya.k7@samsung.com>
290 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
291 (nb_data_writes_in_bb): Remove.
293 (split_reduction_stmt): Remove.
294 (is_reduction_operation_p): Remove.
295 (phi_contains_arg): Remove.
296 (follow_ssa_with_commutative_ops): Remove.
297 (detect_commutative_reduction_arg): Remove.
298 (detect_commutative_reduction_assign): Remove.
299 (follow_inital_value_to_phi): Remove.
300 (edge_initial_value_for_loop_phi): Remove.
301 (initial_value_for_loop_phi): Remove.
302 (used_outside_reduction): Remove.
303 (detect_commutative_reduction): Remove.
304 (translate_scalar_reduction_to_array_for_stmt): Remove.
305 (remove_phi): Remove.
306 (dr_indices_valid_in_loop): Remove.
307 (close_phi_written_to_memory): Remove.
308 (translate_scalar_reduction_to_array): Remove.
309 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
310 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
311 (rewrite_commutative_reductions_out_of_ssa): Remove.
312 (build_poly_scop): Remove call to
313 rewrite_commutative_reductions_out_of_ssa.
315 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
317 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
318 Add new insn types for vector load and store pairs.
319 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
320 types "neon_ldp{,_q}".
321 * config/arm/cortex-a57.md (neon_load_c): Add insn types
323 (neon_store_complex): Add insn types "neon_stp{,_q}".
324 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
327 2015-09-29 Jeff Law <law@redhat.com>
329 * config/rx/constraints.md (Int08): Fix undefined left shift
331 (Sint08, Sint16, Sint24): Likewise.
332 * config/rx/rx.c (rx_get_stack_layout): Likewise.
334 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
337 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
338 left shift behaviour.
339 * config/msp430/constraints.md ('L' constraint): Similarly.
340 ('Ys' constraint): Similarly.
342 2015-09-29 Richard Biener <rguenther@suse.de>
344 PR tree-optimization/67170
345 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
346 the translate function pointer parameter to get the
347 bool whether to disambiguate only by reference.
348 (walk_non_aliased_vuses): Likewise.
349 * tree-ssa-alias.c (maybe_skip_until): Adjust.
350 (get_continuation_for_phi_1): Likewise.
351 (get_continuation_for_phi): Likewise.
352 (walk_non_aliased_vuses): Likewise.
353 * tree-ssa-sccvn.c (const_parms): New bitmap.
354 (vn_reference_lookup_3): Adjust for interface change.
355 Disambiguate parameters pointing to readonly memory.
356 (free_scc_vn): Free const_parms.
357 (run_scc_vn): Initialize const_parms from a fn spec attribute.
359 2015-09-29 Richard Biener <rguenther@suse.de>
361 PR tree-optimization/67741
362 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
363 builtin calls with correct signature.
365 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
368 * config/i386/i386.c: Include dbgcnt.h.
369 (has_non_address_hard_reg): New.
370 (convertible_comparison_p): New.
371 (scalar_to_vector_candidate_p): New.
372 (remove_non_convertible_regs): New.
374 (scalar_chain::scalar_chain): New.
375 (scalar_chain::~scalar_chain): New.
376 (scalar_chain::add_to_queue): New.
377 (scalar_chain::mark_dual_mode_def): New.
378 (scalar_chain::analyze_register_chain): New.
379 (scalar_chain::add_insn): New.
380 (scalar_chain::build): New.
381 (scalar_chain::compute_convert_gain): New.
382 (scalar_chain::replace_with_subreg): New.
383 (scalar_chain::replace_with_subreg_in_insn): New.
384 (scalar_chain::emit_conversion_insns): New.
385 (scalar_chain::make_vector_copies): New.
386 (scalar_chain::convert_reg): New.
387 (scalar_chain::convert_op): New.
388 (scalar_chain::convert_insn): New.
389 (scalar_chain::convert): New.
390 (convert_scalars_to_vector): New.
391 (pass_data_stv): New.
393 (make_pass_stv): New.
394 (ix86_option_override): Created and register stv pass.
395 (flag_opts): Add -mstv.
396 (ix86_option_override_internal): Likewise.
397 * config/i386/i386.md (SWIM1248x): New.
398 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
399 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
400 (*anddi3_doubleword): New.
401 (*zext<mode>_doubleword): New.
402 (*zextsi_doubleword): New.
403 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
404 (*<code>di3_doubleword): New.
405 * config/i386/i386.opt (mstv): New.
406 * dbgcnt.def (stv_conversion): New.
408 2015-09-29 Tom de Vries <tom@codesourcery.com>
410 * tree-cfg.c (dump_function_to_file): Dump function attributes.
412 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
415 * config/sh/sh.c (sh_override_options_after_change): New.
416 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
417 (sh_option_override): Move align_loops, align_jumps and
418 align_functions handling into sh_override_options_after_change.
420 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
422 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
423 (nvptx_record_offload_symbol): Record function execution geometry.
424 * config/nvptx/mkoffload.c (process): Include launch geometry in
426 * omp-low.c (oacc_launch_pack): New.
427 (replace_oacc_fn_attrib): New.
428 (set_oacc_fn_attrib): New.
429 (get_oacc_fn_attrib): New.
430 (expand_omp_target): Create keyed varargs for GOACC_parallel call
432 * omp-low.h (get_oacc_fn_attrib): Declare.
433 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
434 (DEF_FUNCTION_TYPE_VAR_11): Delete.
435 * tree.h (OMP_CLAUSE_EXPR): New.
436 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
438 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
439 Sebastian Pop <s.pop@samsung.com>
441 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
443 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
444 Sebastian Pop <s.pop@samsung.com>
446 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
447 * graphite-scop-detection.c (struct sese_l): New type.
448 (get_entry_bb): API for getting entry bb of SESE.
449 (get_exit_bb): API for getting exit bb of SESE.
450 (class debug_printer): New type. Simple printer in debug mode.
451 (trivially_empty_bb_p): New. Return true when BB is empty or
452 contains only debug instructions.
453 (graphite_can_represent_expr): Call scalar_evoution_in_region
454 instead of analyze_scalar_evolution. Pass in scop instead of only
456 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
458 (stmt_simple_for_scop_p): Same.
459 (harmful_stmt_in_bb): Same.
460 (graphite_can_represent_loop): Deleted.
461 (struct scopdet_info): Deleted.
462 (scopdet_basic_block_info): Deleted.
463 (build_scops_1): Deleted.
464 (bb_in_sd_region): Deleted.
465 (find_single_entry_edge): Deleted.
466 (find_single_exit_edge): Deleted.
467 (create_single_entry_edge): Deleted.
468 (sd_region_without_exit): Deleted.
469 (create_single_exit_edge): Deleted.
470 (unmark_exit_edges): Deleted.
471 (mark_exit_edges): Deleted.
472 (create_sese_edges): Deleted.
473 (build_graphite_scops): Deleted.
474 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
475 (build_scops): Use the new scop_builder to build scops.
476 (dot_all_scops_1): Use the new pretty printer. Print loop father
478 (loop_body_is_valid_scop): New. Return true if loop body is a
480 (class scop_builder): New. Builds SCoPs for polyhedral
482 (scop_builder): New constructor.
483 (static sese_l invalid_sese): sese_l with invalid edges.
484 (get_sese): Get an sese (from a loop) if possible, invalid_sese
486 (get_nearest_dom_with_single_entry): Get nearest dominator of a
487 basic_block with single entry. Return NULL if we get to the
488 beginning of a function.
489 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
490 a basic_block with single exit. Return NULL if we get to the
491 beginning of a function.
492 (print_sese): Pretty-print SESE.
493 (merge_sese): Merge two SESEs if possible and return the new SESE.
494 (build_scop_depth): Start building the SCoP within a loop nest.
495 (build_scop_breadth): Start building the SCoP at a single loop
496 depth. Merge adjacent SESEs if valid.
497 (can_represent_loop_1): Returns true if Graphite can represent
498 loop inside SCoP. Helper for can_represent_loop.
499 (can_represent_loop): Returns true if Graphite can represent LOOP
500 and all its nested loops in SCoP.
501 (loop_is_valid_scop): Returns true if LOOP and all its nests
502 constitute a valid SCoP.
503 (region_has_one_loop): Returns true of a region has only one loop.
504 (add_scop): Add SCoP to the list of valid scops. Removes an
505 already existing scop if it intersects with or subsumed by this one.
506 (harmful_stmt_in_region): Returns true if SCoP has any statment
507 which cannot be represented by Graphite.
508 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
509 (remove_subscops): Remove any SCoP from the list of already found
510 SCoPs, if subsumed by S1.
511 (intersects): Return true if region bounded by SCoPs S1 and S2
513 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
514 * graphite.c (print_graphite_scop_statistics):
515 (print_graphite_statistics): Print SCoP info while debugging.
516 (graphite_initialize): Early exit in case number of loops in a
517 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
518 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
520 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
521 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
522 (recompute_all_dominators): Recalculate POST_DOMINATORS.
523 * tree-cfg.c (print_loops): Print the function name while printing
526 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
527 Sebastian Pop <s.pop@samsung.com>
529 PR tree-optimization/67700
530 * graphite-sese-to-poly.c (parameter_index_in_region): Call
531 invariant_in_sese_p_rec.
532 (extract_affine): Same.
533 (rewrite_cross_bb_scalar_deps): Call update_ssa.
534 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
535 * sese.h (invariant_in_sese_p_rec): Declare.
537 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
539 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
541 2015-09-28 Jiong Wang <jiong.wang@arm.com>
544 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
545 Jiong Wang <jiong.wang@arm.com>
547 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
548 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
549 (REG_CLASS_NAMES): Likewise.
550 (REG_CLASS_CONTENTS): Likewise.
551 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
552 (aarch64_register_move_cost): Likewise.
553 (aarch64_load_symref_appropriately): Invoke the new added pattern if
555 * config/aarch64/constraints.md (Uc0): New constraint.
557 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
559 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
561 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
563 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
564 SECTION_EXCLUDE in XO mapping class.
566 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
569 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
570 and handle ne and eq codes.
571 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
572 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
573 CONST_INT_P. Use reverse_condition.
574 (sh_split_treg_set_expr): Likewise.
576 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
578 * config/arm/types.md (type): Add rotate_imm.
579 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
581 (*rorsi3_insn_uxtw): Likewise.
582 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
583 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
584 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
586 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
588 PR rtl-optimization/67481
589 * ifcvt.c (contains_ccmode_rtx_p): New function.
590 (insn_valid_noce_process_p): Use it.
592 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
594 PR rtl-optimization/67456
595 PR rtl-optimization/67464
596 PR rtl-optimization/67465
597 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
598 move in the mode of x. Handle combination of complex and simple
599 block pairs as well as the case when one is empty.
601 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
603 * doc/gimple.texi: Update references to gimple_statement_base.
604 * gdbhooks.py: Likewise.
605 * gimple.h: Likewise.
607 2015-09-28 Daniel Cederman <cederman@gaisler.com>
609 * config/sparc/driver-sparc.c: map LEON to leon3
611 2015-09-28 Daniel Cederman <cederman@gaisler.com>
613 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
614 and make it inverse to change default
615 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
617 * doc/invoke.texi: Document change of default
619 2015-09-28 Daniel Cederman <cederman@gaisler.com>
621 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
622 true on %f0 for a target without FPU.
623 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
625 (untyped_return): Do not load %f0 for a target without FPU.
627 2015-09-28 Andrew Pinski <apinski@cavium.com>
629 * config/aarch64/aarch64.md (prefetch):
630 Change the predicate of operand 0 to register_operand.
632 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
634 * config/i386/predicates.md (register_sse4nonimm_operand): New
636 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
637 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
638 Use register_sse4nonimm_operand as operand 0 predicate.
639 (*vec_extractv8hi_sse2): Remove insn pattern.
640 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
641 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
643 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
644 Kaz Kojima <kkojima@gcc.gnu.org>
647 * config/sh/sh-protos.h (sh_lra_p): Declare.
648 * config/sh/sh.c (sh_lra_p): Make non-static.
649 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
650 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
651 Expand into addsi3_scr if operands[2] if needed.
652 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
653 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
654 (addsi3_scr, *addsi3): New insn_and_split patterns.
656 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
658 PR rtl-optimization/64164
659 PR tree-optimization/67312
663 * cfgexpand.c (parm_in_stack_slot_p): Remove.
664 (ssa_default_def_partition): Remove.
665 (get_rtl_for_parm_ssa_default_def): Remove.
666 (set_rtl): Check that RTL assignments match expectations.
667 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
668 default def location for params and results. Record SSA names
669 or types in REG and MEM attrs, respectively.
671 (expand_one_ssa_partition): Drop logic that assigned MEMs with
672 unassigned addresses.
673 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
674 deferred stack alloc vars.
675 (expand_used_vars): Skip partitions holding parm default defs.
676 Move adjust_one_expanded_partition_var loop...
677 (pass_expand::execute): ... here. Drop redundant assert.
678 Adjust comments before the final loop over all ssa names.
679 Require assigned rtl of parms and results to match exactly.
680 Reset its attributes to match them, not any other variables in
682 (expand_debug_expr): Use entry value for PARM's default defs
683 only iff they have zero nondebug uses.
684 * cfgexpand.h (parm_in_stack_slot_p): Remove.
685 (get_rtl_for_parm_ssa_default_def): Remove.
686 (set_parm_rtl): Declare.
687 * doc/invoke.texi: Improve wording.
688 * explow.c (promote_decl_mode): Fix promote_function_mode for
689 result decls not by reference.
690 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
691 bypass TYPE_MODE to get the actual vector mode.
692 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
693 2015-08-19's changes as follows. Drop include of
694 basic-block.h and df.h.
695 (rtl_for_parm): Remove.
696 (maybe_reset_rtl_for_parm): Remove.
697 (parm_in_unassigned_mem_p): Remove.
698 (use_register_for_decl): Add logic for RESULT_DECLs matching
699 assign_parms' behavior.
700 (split_complex_args): Revert.
701 (assign_parms_augmented_arg_list): Revert. Add comment
702 referencing the logic above.
703 (assign_parm_adjust_stack_rtl): Revert.
704 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
705 of SET_DECL_RTL. Set up a REG if the parm demands so.
706 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
707 calls into a single set_parm_rtl. Set up a temporary RTL
708 temporarily for expand_assignment.
709 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
710 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
711 (assign_bounds): Revert.
712 (assign_parms): Revert. Use set_parm_rtl.
713 (allocate_struct_function): Relayout result and parms of
714 non-abstruct functions.
715 (expand_function_start): Revert. Use set_parm_rtl. If the
716 result is not a hard reg, create a pseudo from the promoted
717 mode of the default def. Promote static chain mode.
718 * tree-outof-ssa.c (remove_ssa_form): Drop unused
719 partition_has_default_def. Set up
720 partitions_for_parm_default_defs.
721 (finish_out_of_ssa): Remove partition_has_default_def.
722 Release partitions_for_parm_default_defs.
723 * tree-outof-ssa.h (struct ssaexpand): Remove
724 partition_has_default_def. Add
725 partitions_for_parm_default_defs.
726 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
728 (build_ssa_conflict_graph): Fix conflict-detection of default
729 defs of even unused default defs of params and results.
730 (for_all_parms): New.
731 (create_default_def): New.
732 (register_default_def): New.
733 (coalesce_with_default): New.
734 (create_outofssa_var_map): Create default defs for all parms
735 and results, and register their partitions. Add GIMPLE_RETURN
736 operands as coalesce candidates with results. Add default
737 defs of each parm or result as coalesce candidates with its
738 other defs. Mark each result def, and each default def of
739 parms, as used_in_copy.
740 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
741 with the ssa names, even anonymous ones. Drop
742 parm_in_stack_slot_p calls. Require same signedness and
744 (coalesce_ssa_name): Add coalesce candidates for all defs of
745 each parm and result, even unused ones.
746 (parm_default_def_partition_arg): New type.
747 (set_parm_default_def_partition): New.
748 (get_parm_default_def_partitions): New.
749 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
750 * tree-ssa-live.c (partition_view_init): Regard unused defs of
751 parms and results as used.
752 (verify_live_on_entry): Don't error out just because they're
755 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
757 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
758 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
759 (output_fde): Don't output length for debug_frame on AIX.
760 (output_call_frame_info): Don't output length for debug_frame on AIX.
761 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
762 HAVE_XCOFF_DWARF_EXTRAS.
763 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
764 HAVE_XCOFF_DWARF_EXTRAS.
765 (output_compilation_unit_header): Don't output length on AIX.
766 (output_pubnames): Don't output length on AIX.
767 (output_aranges): Delete argument. Compute length locally. Don't
768 output length on AIX.
769 (output_line_info): Don't output length on AIX.
770 (dwarf2out_finish): Don't compute aranges_length.
771 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
772 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
773 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
774 symbol decoration for AIX.
775 (rs6000_xcoff_debug_unwind_info): New.
776 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
778 (rs6000_xcoff_declare_function_name): Emit different
779 .function pseudo-op when DWARF2_DEBUG. Don't call
780 xcoffout_declare_function for DWARF2_DEBUG.
781 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
783 * config/rs6000/aix71.h: New.
784 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
786 * configure: Regenerate.
787 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
790 2015-09-26 Jeff Law <law@redhat.com>
792 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
794 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
797 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
800 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
803 * config/cris/cris.md (asrandb): Fix left shift undefined
807 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
810 * lra-constarints.c (match_reload): Check presence of the input pseudo
811 in the output operand.
813 2015-09-25 Tobias Burnus <burnus@net-b.de>
815 * doc/invoke.texi (-fsanitize): Minor wording tweak.
817 2015-09-25 Tobias Burnus <burnus@net-b.de>
819 * doc/invoke.texi (-fsanitize): Update URLs.
821 2015-09-25 Teresa Johnson <tejohnson@google.com>
823 * opts.c (finish_options): Unset -freorder-blocks-and-partition
824 if not using profile.
826 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
828 PR pretty-print/67567
829 * pretty-print.c (pp_string): Add gcc_checking_assert.
830 * pretty-print.h (output_buffer_append_r): Likewise.
832 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
835 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
836 addr2 individually. Don't emit logical or insn if one is known to
837 be aligned approriately.
838 (sh_expand_cmpnstr): Likewise.
840 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
842 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
843 __builtin_aarch64_fp[sc]r arguments into a register.
845 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
847 * config.gcc (x86_archs): Replace lakemount with lakemont.
848 (with_cpu): Likewise.
849 (with_arch): Likewise.
850 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
851 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
852 __tune_lakemount__ with __tune_lakemont__.
853 * config/i386/i386.c (lakemount_cost): Renamed to ...
854 (lakemont_cost): This.
855 (m_LAKEMOUNT): Renamed to ...
857 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
858 (processor_target_table): Replace "lakemount" with "lakemont".
859 (processor_alias_table): Likewise.
860 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
862 (ix86_adjust_cost): Likewise.
863 (ia32_multipass_dfa_lookahead): Likewise.
864 * config/i386/i386.h (processor_type): Likewise.
865 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
866 * doc/invoke.texi: Replace lakemount with lakemont. Replace
867 Lakemount with Lakemont.
869 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
871 * config.gcc (x86_archs): Replace iamcu with lakemount.
872 (with_cpu): Likewise.
873 (with_arch): Likewise.
874 * doc/invoke.texi: Likewise.
875 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
876 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
877 __tune_iamcu__ with __tune_lakemount__.
878 * config/i386/i386.c (iamcu_cost): Renamed to ...
879 (lakemount_cost): This.
880 (m_IAMCU): Renamed to ...
882 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
883 (processor_target_table): Replace "iamcu" with "lakemount".
884 (processor_alias_table): Likewise.
885 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
887 (ix86_adjust_cost): Likewise.
888 (ia32_multipass_dfa_lookahead): Likewise.
889 * config/i386/i386.h (processor_type): Likewise.
890 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
892 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
894 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
895 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
897 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
898 (pa_expand_compare_and_swap_loop): New.
899 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
900 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
901 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
902 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
903 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
906 2015-09-24 Michael Collison <michael.collison@linaro.org>
909 * read-md.c (read_name): Allow mode iterators inside angle
910 brackets in rtl expressions.
912 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
915 * ira-color.c (update_allocno_cost): Add parameter.
916 (update_costs_from_allocno): Decrease conflict cost. Pass the new
919 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
922 * opts-common.c (prune_options): Discard all -fdiagnostics-color
923 but the last one, which is moved to the front to be processed
925 * opts.c (enable_warning_as_error): Reject options that do not
928 2015-09-24 Jiong Wang <jiong.wang@arm.com>
930 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
932 2015-09-24 Jiong Wang <jiong.wang@arm.com>
934 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
935 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
936 (aarch64_cannot_force_const_mem): Likewise.
937 (aarch64_classify_address): Likewise.
938 (aarch64_classify_symbolic_expression): Likewise.
939 (aarch64_print_operand): Likewise.
940 (aarch64_classify_symbol): Likewise.
941 (aarch64_mov_operand_p): Likewise.
942 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
943 (aarch64_mov_operand): Likewise.
945 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
947 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
948 for info->spe_gp_size.
950 2015-09-24 Richard Biener <rguenther@suse.de>
953 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
956 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
958 * tree-object-size.c (plus_stmt_object_size)
959 (cond_expr_object_size): Change the formal parameters from gimple
961 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
962 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
963 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
965 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
967 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
968 Check for ld -type pie on Solaris 11.x and 12.
969 * configure: Regenerate.
970 * config.in: Regenerate.
972 * gcc.c (LD_PIE_SPEC): Allow redefinition.
974 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
975 (STARTFILE_SPEC): Use it.
976 (ENDFILE_CRTEND_SPEC): Define.
977 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
978 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
979 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
980 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
981 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
982 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
983 (ENDFILE_ARCH_SPEC): Define.
984 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
986 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
988 * configure.ac (gcc_cv_solaris_crts): New test.
989 * configure. Regenerate.
990 * config.in: Regenerate.
991 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
992 HAVE_SOLARIS_CRTS variant.
994 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
996 * tree-inline.h (count_insns_seq): Delete prototype.
997 (estimate_num_insns_seq): Define prototype.
998 * tree-inline.c (count_insns_seq): Delete.
999 (estimate_num_insns_seq): Remove static qualifier.
1000 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
1001 with estimate_num_insns_seq.
1003 2015-09-24 Richard Biener <rguenther@suse.de>
1005 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
1007 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
1008 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
1010 (ao_ref_init_from_vn_reference): Record clique and base in the
1012 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
1014 2015-09-24 Richard Biener <rguenther@suse.de>
1016 PR tree-optimization/48885
1017 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
1018 as not including any restrict tags from other pointers.
1020 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
1022 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
1023 character when appending to offload_targets.
1025 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
1026 offload targets by commas, not colons.
1027 * config.in: Regenerate.
1028 * configure: Likewise.
1029 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
1030 instead of setting up the default offload targets here...
1031 (process_command): ..., do it here.
1033 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
1034 targets are separated by commas.
1035 * config.h.in: Regenerate.
1037 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
1038 Nathan Sidwell <nathan@codesourcery.com>
1040 * omp-low.h (omp_reduction_init_op): Declare.
1041 * omp-low.c (omp_reduction_init_op): New, broken out of ...
1042 (omp_reduction_init): ... here. Call it.
1043 * tree-parloops.c (initialize_reductions): Use
1044 omp_reduction_init_op.
1046 2015-09-23 Richard Biener <rguenther@suse.de>
1049 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
1050 undefined overflow unless they will cancel out.
1052 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
1054 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
1057 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1060 * opts.h (write_langs): Declare.
1061 * opts-global.c (write_langs): Make it extern.
1063 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
1066 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
1067 overlapping regs when matching the pattern.
1069 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
1071 * config/aarch64/aarch64-simd.md
1072 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
1073 (aarch64_float_truncate_hi_v4sf_le): New.
1074 (aarch64_float_truncate_hi_v4sf_be): Likewise.
1076 2015-09-23 Richard Biener <rguenther@suse.de>
1078 * tree-ssa-structalias.c (intra_create_variable_infos): Build
1079 representatives for all restrict qualified pointer destinations.
1081 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
1083 * config/i386/i386.md (define_code_attr mshift): New.
1084 (define_mode_iterator SWI1248_AVX512BW): Rename ...
1085 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
1087 (define_insn "*k<logic><mode>"): Use new iterator name.
1088 (define_insn "*<mshift><mode>3"): New.
1090 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
1093 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
1094 mark the block as accessible.
1096 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
1098 * function.c (thread_prologue_and_epilogue_insns): Delete
1099 orig_entry_edge argument to try_shrink_wrapping.
1100 * shrink-wrap.c (can_get_prologue): New function.
1101 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
1102 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
1103 can_get_prologue where needed. Remove code that finds a single
1104 edge for the prologue. Remove code that tests if any reg clobbered
1105 by the prologue is live on the prologue edge. Remove code that finds
1106 the new prologue edge after duplicating blocks. Make a new prologue
1108 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
1110 2015-09-22 Jeff Law <law@redhat.com>
1112 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
1115 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1117 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
1118 -Wtemplates, -Wnamespaces): Document.
1120 2015-09-22 Tom de Vries <tom@codesourcery.com>
1122 PR tree-optimization/67671
1123 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
1124 pointer references as restrict.
1126 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
1128 * config/nios2/nios2.c (nios2_legitimize_address): When handling
1129 'reg + reloc' cases, allow first operand to be non-REG, and use
1130 force_reg() to enforce address pattern.
1132 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
1135 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
1136 (define_mode_iterator VI12_AVX_AVX512F): New.
1137 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
1138 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
1139 (define_insn "*<code><mode>3"): ... Into new pattern using
1140 VI12_AVX_AVX512F iterators without masking.
1142 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
1144 * config.gcc: Support "skylake-avx512".
1145 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
1146 PROCESSOR_SKYLAKE_AVX512.
1147 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
1148 (processor_target_table): Add "skylake-avx512".
1149 (PTA_SKYLAKE_AVX512): Define.
1150 (ix86_option_override_internal): Add "skylake_avx512".
1151 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
1152 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
1153 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
1154 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
1155 * doc/invoke.texi (skylake-avx512): New.
1157 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
1159 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
1161 (define_insn "kunpcksi"): Ditto.
1162 (define_insn "kunpckdi"): Ditto.
1164 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
1166 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
1167 iterator instead of fixed modes.
1169 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1171 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
1173 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
1174 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
1175 out_result. Update to support update-fetch operations.
1176 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
1177 Adjust for change to aarch64_gen_atomic_ldop.
1178 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
1179 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
1180 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
1181 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
1182 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
1184 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1186 * config/aarch64/aarch64-protos.h
1187 (aarch64_atomic_ldop_supported_p): Declare.
1188 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
1189 (enum aarch64_atomic_load_op_code): New.
1190 (aarch64_emit_atomic_load_op): New.
1191 (aarch64_gen_atomic_ldop): Update to support load-operate
1193 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
1195 (aarch64_atomic_<atomic_optab><mode>): New.
1196 (aarch64_atomic_<atomic_optab><mode>_lse): New.
1197 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
1198 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
1199 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
1201 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1203 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
1204 (UNSPECV_ATOMIC_LDOP_OR): New.
1205 (UNSPECV_ATOMIC_LDOP_BIC): New.
1206 (UNSPECV_ATOMIC_LDOP_XOR): New.
1207 (UNSPECV_ATOMIC_LDOP_PLUS): New.
1210 (aarch64_atomic_load<atomic_ldop><mode>): New.
1212 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1214 * config/aarch64/aarch64.md
1215 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
1218 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1220 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
1222 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
1223 (aarch64_gen_atomic_ldop): New.
1224 (aarch64_split_atomic_op): Fix whitespace and add a comment.
1225 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
1226 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
1227 (atomic_exchange<mode>): Replace with an expander.
1228 (aarch64_atomic_exchange<mode>): New.
1229 (aarch64_atomic_exchange<mode>_lse): New.
1230 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
1231 (aarch64_atomic_swp<mode>): New.
1233 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1235 * tree-inline.c (expand_call_inline): Use inform for extra note.
1236 Do not give a note with UNKNOWN_LOCATION.
1237 Replace input_location with gimple_location (stmt).
1238 Use true/false instead of TRUE/FALSE.
1240 2015-09-22 Tom de Vries <tom@codesourcery.com>
1242 PR tree-optimization/67666
1243 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
1244 with single field non-conservative.
1246 2015-09-21 David S. Miller <davem@davemloft.net>
1250 2015-09-11 David S. Miller <davem@davemloft.net>
1252 * config/sparc/constraints.md: Make "U" constraint a real register
1254 * config/sparc/sparc.c (TARGET_LRA_P): Define.
1255 (D_MODES, DF_MODES): Add missing cast.
1256 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
1257 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
1258 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
1260 * config/sparc/sparc.h (PROMOTE_MODE): Define.
1261 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1262 provide these insn when flag_pic.
1264 2015-09-17 David S. Miller <davem@davemloft.net>
1266 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
1268 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
1270 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1271 (HARD_REGNO_CALLER_SAVE_MODE): Define.
1272 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1273 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1274 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1275 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1276 provide when flag_pic.
1278 2015-09-21 Jeff Law <law@redhat.com>
1280 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
1283 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1285 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
1287 2015-09-21 Richard Biener <rguenther@suse.de>
1289 * passes.c (rest_of_decl_compilation): Do not call
1290 dwarf2out_early_global_decl for aliases.
1292 2015-09-21 Richard Biener <rguenther@suse.de>
1295 * dwarf2out.c (add_location_or_const_value_attribute): Remove
1296 attribute parameter. Early exit if either DW_AT_const_value
1297 or DW_AT_location are present already.
1298 (gen_variable_die): Adjust caller.
1299 (dwarf2out_late_global_decl): Likewise.
1301 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1304 * config/sh/sh.c (sh_remove_overlapping_post_inc,
1305 sh_peephole_emit_move_insn): Add new functions.
1306 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
1307 sh_peephole_emit_move_insn): Declere them.
1308 * config/sh/sh.md: Use them in various peephole2 patterns.
1310 2015-09-21 Richard Biener <rguenther@suse.de>
1313 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
1314 address with -fno-delete-null-pointer-checks.
1316 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
1318 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
1319 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
1320 (reduc_uplus_v16qi): Remove.
1322 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
1323 (reduc_<VEC_reduc_name>_v2df): Remove.
1324 (reduc_<VEC_reduc_name>_v4sf): Remove.
1325 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
1327 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
1328 gen_ function by removing * prefix.
1329 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
1331 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1334 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1335 Print i_bound without converting it to a tree.
1337 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
1339 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
1340 operands[4] operands[5] swap with std::swap, removed tmp variable.
1341 (arm_evpc_neon_vzip): Replaced in0/in1 and
1342 out0/out1 swaps with std::swap, removed x variable.
1343 (arm_evpc_neon_vtrn): Replaced in0/int1 and
1344 out0/out1 swaos with std::swap, removed x variable.
1345 (arm_expand_vec_perm_const_1): Replaced
1346 d->op0/d->op1 swap with std::swap, removed x variable.
1347 (arm_evpc_neon_vuzp): Replaced in0/in1 and
1348 out0/out1 swaps with std::swap, removed x variable.
1350 2015-09-21 Jonathan Yong <10walls@gmail.com>
1352 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
1353 sysroot/usr/lib/32api for additional win32 libraries,
1354 fixes failing Cygwin bootstrapping.
1356 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1358 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
1360 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1363 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
1364 (*mov_t_msb_neg): Rewrite negc pattern.
1366 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1368 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
1369 immediate generation code.
1371 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1373 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
1374 redundant immediate generation code.
1376 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1378 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
1379 (AARCH64_NUM_BITMASKS): Remove.
1380 (aarch64_bitmasks_cmp): Remove.
1381 (aarch64_build_bitmask_table): Remove.
1383 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1385 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
1386 slow immediate matching loops with a faster algorithm.
1388 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1390 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
1393 2015-09-20 Jeff Law <law@redhat.com>
1395 PR tree-optimization/47679
1396 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
1397 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
1398 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
1399 (thread_through_normal_block): Use record_temporary_equivalences.
1401 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
1403 * coretypes.h (gimple): Change typedef to be a forward declaration.
1404 * gimple.h (gimple_statement_base): rename to gimple.
1405 * (all functions and types using gimple): Adjust.
1408 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
1409 David Edelsohn <dje.gcc@gmail.com>
1411 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
1412 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1413 (EH_FRAME_THROUGH_COLLECT2): Define.
1414 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1415 (ASM_OUTPUT_DWARF_PCREL): Define.
1416 (ASM_OUTPUT_DWARF_DATAREL): Define.
1418 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
1420 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
1423 2015-09-18 Jeff Law <law@redhat.com>
1425 PR tree-optimization/47679
1426 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
1428 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
1429 object. Update constructor.
1430 (pass_dominator::execute): Corresponding chagnes to declaration
1431 and initialization of avail_exprs_stack. Update constructor call
1432 for dom_opt_dom_walker object.
1433 (lookup_avail_expr, record_cond): Accept additional argument. Pass
1434 it down to children as needed.
1435 (record_equivalences_from_incoming_edge): Likewise.
1436 (eliminate_redundant_computations): Likewise.
1437 (record_equivalences_from_stmt): Likewise.
1438 (simplify_stmt_for_jump_threading): Likewise.
1439 (record_temporary_equivalences): Likewise.
1440 (optimize_stmt): Likewise.
1441 (dom_opt_dom_walker::thread_across_edge): Update access to
1442 avail_exprs_stack object and pass it to children as needed.
1443 (dom_opt_dom_walker::before_dom_children): Similarly.
1444 (dom_opt_dom_walker::after_dom_children): Similarly.
1445 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
1446 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
1447 Add avail_expr_stack argument. Pass it to children as needed.
1448 (dummy_simplify): Likewise.
1449 (simplify_control_stmt_condition): Likewise.
1450 (thread_around_empty_blocks): Likewise.
1451 (thread_through_normal_block): Likewise.
1452 (thread_across_edge): Likewise.
1453 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1454 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
1456 PR tree-optimization/47679
1457 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
1459 (dom_opt_dom_walker): New private member holding the const_and_copies
1460 object. Update constructor.
1461 (pass_dominator::execute): Corresponding changes to declaration
1462 and initialization of const_and_copies. Update constructor call
1463 for the dom_opt_dom_walker object.
1464 (record_temporary_equivalences): Accept const_and_copies argument
1465 pass it down to children as needed.
1466 (record_equality): Likewise.
1467 (record_equivalences_from_incoming_edge): Likewise.
1468 (cprop_into_successor_phis, optimize_stmt): Likewise.
1469 (eliminate_redundant_computations): Likewise.
1470 (dom_opt_dom_walker::thread_across_edge): Update access to
1471 const_and_copies object and pass it to children as needed.
1472 (dom_opt_dom_walker::before_dom_children): Similarly.
1473 (dom_opt_dom_walker::after_dom_children): Similarly.
1475 PR tree-optimization/47679
1476 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
1477 it into the avail_exprs_stack class.
1478 (pass_dominator::execute): Corresponding changes to declaration
1479 and initialization of avail_exprs. Pass avail_exprs to
1480 dump_dominator_optimization_stats.
1481 (record_cond): Extract avail_exprs from avail_exprs_stack.
1482 (lookup_avail_expr): Similarly.
1483 (htab_staticstics): Remove unnecessary prototype. Move to earlier
1485 (dump_dominator_optimization_stats): Make static and prototype.
1486 Add argument for the hash table to dump.
1487 (debug_dominator_optimization_stats): Remove.
1488 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
1490 (debug_dominator_optimization_stats): Similarly.
1491 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
1492 "void" in prototype for pop_to_marker method. Add accessor method
1493 for the underlying avail_exprs table.
1495 * tree-ssa-threadedge.c: Remove trailing whitespace.
1497 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
1499 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
1501 (pa_ldil_cint_p): Likewise.
1502 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
1503 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
1505 * config/pa/pa.md: Likewise.
1507 2015-09-18 David Malcolm <dmalcolm@redhat.com>
1509 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
1510 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
1511 (diagnostic_show_locus): Likewise.
1512 (diagnostic_print_caret_line): Likewise.
1513 * diagnostic-show-locus.c: New file.
1515 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
1517 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
1518 "back" parameter. Declare label in #if block.
1520 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
1523 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
1524 the address to a register.
1526 2015-09-18 Jeff Law <law@redhat.com>
1528 PR tree-optimization/47679
1529 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
1530 * tree-ssa-dom.c: Remove unnecessary header includes.
1531 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
1532 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
1533 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
1534 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
1535 (pass_phi_only_cprop::execute): Likewise.
1536 (make_pass_phi_only_cprop): Likewise.
1537 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
1538 uses of file scoped statics by passing the required objects
1539 as parameters wherever needed.
1541 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
1542 David Edelsohn <dje.gcc@gmail.com>
1544 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
1545 EH_FRAME_THROUGH_COLLECT2.
1546 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
1548 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
1549 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
1550 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
1551 * except.c (switch_to_exception_section): Use a read-only section
1552 even if EH_FRAME_SECTION_NAME is undefined.
1553 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
1554 * collect2.c (write_c_file_stat): Provide dbase on AIX.
1555 (scan_prog_file): Don't export __dso_handle nor
1557 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1558 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1559 (ASM_OUTPUT_DWARF_PCREL): Define.
1560 (ASM_OUTPUT_DWARF_DATAREL): Define.
1561 (EH_FRAME_THROUGH_COLLECT2): Define.
1562 (EH_FRAME_IN_DATA_SECTION): Delete.
1563 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
1564 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
1566 (rs6000_asm_output_dwarf_datarel): Declare.
1567 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
1568 (rs6000_aix_asm_output_dwarf_datarel): New.
1569 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
1570 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
1571 (EH_FRAME_THROUGH_COLLECT2): Define.
1572 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
1573 (EH_FRAME_THROUGH_COLLECT2): Define.
1574 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1575 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
1576 (EH_FRAME_THROUGH_COLLECT2): New.
1577 (ASM_OUTPUT_DWARF_DATAREL): New.
1578 * doc/tm.texi: Regenerate.
1580 2015-09-18 Richard Biener <rguenther@suse.de>
1582 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
1583 we're in early phase.
1584 (schedule_generic_params_dies_gen): Likewise.
1585 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
1586 work as possible, retaining unhandled cases.
1587 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
1588 clear out generic_type_instances at the end.
1589 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
1590 (dwarf2out_early_finish): ... here. Do most of
1591 gen_remaining_tmpl_value_param_die_attribute here.
1593 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
1595 PR tree-optimization/67283
1596 * tree-sra.c (type_consists_of_records_p): Rename to...
1597 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1598 (completely_scalarize_record): Rename to...
1599 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
1600 (scalarize_elem): New.
1601 (analyze_all_variable_accesses): Follow renamings.
1603 2015-09-18 Richard Biener <rguenther@suse.de>
1605 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
1608 2015-09-18 Richard Biener <rguenther@suse.de>
1610 PR tree-optimization/66142
1611 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
1612 treat MEM[&x] and x the same.
1613 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
1614 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
1615 when we simplified sth.
1616 (vn_reference_maybe_forwprop_address): Likewise.
1617 (valueize_refs_1): When we simplified through
1618 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
1619 set valueized_anything to true.
1620 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
1621 one ref kills the other instead of just a offset-based test.
1622 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
1623 for the operand_equal_p test to compare bases and also compare
1626 2015-09-17 Christian Bruel <christian.bruel@st.com>
1628 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
1630 2015-09-17 Richard Henderson <rth@redhat.com>
1633 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
1634 pointers that encode the alignment of the object.
1636 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1638 PR rtl-optimization/66790
1639 * df-problems.c (LIVE): Amend documentation.
1641 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
1643 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
1645 (GTFILES): Replace optabs.c with optabs-libfunc.c.
1646 * genopinit.c (main): Add an include guard to insn-opinit.h.
1647 Protect the rtx_code parts with NUM_RTX_CODE.
1648 * optabs.h: Split parts out to...
1649 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
1650 * optabs.c: Split parts out to...
1651 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
1652 * cilk-common.c: Include optabs-query.h rather than optabs.h.
1653 * fold-const.c: Likewise.
1654 * target-globals.c: Likewise.
1655 * tree-if-conv.c: Likewise.
1656 * tree-ssa-forwprop.c: Likewise.
1657 * tree-ssa-loop-prefetch.c: Likewise.
1658 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
1659 Remove unncessary include files.
1660 * tree-ssa-phiopt.c: Likewise.
1661 * tree-ssa-reassoc.c: Likewise.
1662 * tree-switch-conversion.c: Likewise.
1663 * tree-vect-data-refs.c: Likewise.
1664 * tree-vect-generic.c: Likewise.
1665 * tree-vect-loop.c: Likewise.
1666 * tree-vect-patterns.c: Likewise.
1667 * tree-vect-slp.c: Likewise.
1668 * tree-vect-stmts.c: Likewise.
1669 * tree-vrp.c: Likewise.
1670 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
1671 rather than optabs.h.
1672 * expr.c: Include optabs-tree.h.
1673 * function.c: Likewise.
1675 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1678 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
1679 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
1680 * config/arm/arm.c: Include common/common-target.h.
1681 (use_return_insn): Return 0 if the static chain register was saved
1682 above a non-APCS frame.
1683 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
1684 (struct scratch_reg): New.
1685 (get_scratch_register_on_entry): New function.
1686 (release_scratch_register_on_entry): Likewise.
1687 (arm_emit_probe_stack_range): Likewise.
1688 (output_probe_stack_range): Likewise.
1689 (arm_expand_prologue): Factor out code dealing with the IP register
1690 for nested function and adjust it for stack checking.
1691 Invoke arm_emit_probe_stack_range if static builtin stack checking
1693 (thumb1_expand_prologue): Sorry out if static builtin stack checking
1695 (arm_expand_epilogue): Add the saved static chain register, if any, to
1696 the amount of pre-pushed registers to pop.
1697 (arm_frame_pointer_required): Return true if static stack checking is
1698 enabled and we want to catch the exception with the EABI unwinder.
1699 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
1700 (UNSPEC_PROBE_STACK_RANGE): Likewise.
1701 * config/arm/arm.md (probe_stack): New insn.
1702 (probe_stack_range): Likewise.
1704 2015-09-17 Richard Biener <rguenther@suse.de>
1706 * genmatch.c (parser::parse_expr): Improve error message
1707 for mis-placed flags.
1709 2015-09-17 Richard Biener <rguenther@suse.de>
1711 * passes.c (rest_of_decl_compilation): Always call early_global_decl
1712 debug hook when we created a varpool node.
1713 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
1714 dwarf2out_early_global_decl, when not just add location or
1715 value attributes to existing DIEs.
1717 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
1719 * config/aarch64/aarch64.md (copysigndf3): New.
1720 (copysignsf3): Likewise.
1722 2015-09-17 David S. Miller <davem@davemloft.net>
1724 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
1725 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
1726 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1727 (HARD_REGNO_CALLER_SAVE_MODE): Define.
1728 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1729 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1730 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1731 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1732 provide when flag_pic.
1734 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
1736 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
1737 object_allocator change.
1739 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1741 PR tree-optimization/66388
1742 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
1743 (dump_iv): Dump no_overflow information.
1744 (alloc_iv): Initialize new field for struct iv.
1745 (mark_bivs): Count number of no_overflow bivs.
1746 (find_deriving_biv_for_expr, record_biv_for_address_use): New
1748 (idx_find_step): Call new functions above.
1749 (add_candidate_1, add_candidate): New paramter.
1750 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
1751 (get_computation_aff): Simplify convertion of cand for BIV.
1752 (get_computation_cost_at): Step cand's base if necessary.
1754 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1756 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
1758 (tree_simplify_using_condition): Ditto.
1759 (simplify_using_initial_conditions): Ditto.
1760 (loop_exits_before_overflow): Pass new argument to function
1761 simplify_using_initial_conditions. Remove case for type conversions
1763 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
1765 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
1766 in iv base using loop initial conditions.
1768 2015-09-16 Jeff Law <law@redhat.com>
1770 PR tree-optimization/47679
1771 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
1772 (free_all_edge_infos): Use it.
1773 (allocate_edge_info): Free preexisting edge info data.
1774 (pass_dominator::execute): Set up initial edge info structures.
1775 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
1777 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
1778 If non-null, then push/pop markers appropriately.
1779 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1780 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
1783 2015-09-16 James Bowman <james.bowman@ftdichip.com>
1785 * config/ft32/ft32.c: Fix the memory address space predicate.
1787 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
1790 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
1791 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
1793 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1795 * toplev.h (check_global_declaration): Remove declaration.
1796 * toplev.c (check_global_declaration): Move to ...
1797 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
1798 (analyze_functions): Update call.
1800 2015-09-16 David S. Miller <davem@davemloft.net>
1802 * lra-constraints.c (simplify_operand_subreg): Do not assume that
1803 lowpart of a SUBREG has offset zero.
1805 2015-09-16 Jeff Law <law@redhat.com>
1807 PR tree-optimization/47679
1808 * tree-ssa-dom.c (enum expr_kind): Moved from here to
1809 tree-ssa-scopedtables.h.
1810 (struct hashable_expr, class expr_hash_elt): Likewise.
1811 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
1812 Move associated methods into tree-ssa-scopedtables.c.
1813 (avail_expr_hash, initialize_expr_from_cond): Similarly.
1814 (hashable_expr_equal_p, add_expr_commutative): Likewise.
1815 (add_hashable_expr): Likewise.
1816 (record_cond): Delete element directly.
1817 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
1818 private copy ctor and assignment operator methods.
1819 (expr_elt_hasher): Inline trivial methods.
1820 (initialize_expr_from_cond): Prototype.
1821 * tree-ssa-scopedtables.c: Add necessary includes, functions and
1822 methods that were previously in tree-ssa-dom.c. Improve various
1825 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
1827 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
1829 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
1832 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
1835 2015-09-16 Richard Biener <rguenther@suse.de>
1838 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
1839 location of possibly shared trees.
1841 2015-09-16 Richard Biener <rguenther@suse.de>
1844 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
1846 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
1848 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
1849 offset and size computations instead of HOST_WIDE_INT.
1851 2015-09-16 Richard Biener <rguenther@suse.de>
1854 * fold-const.c (extract_muldiv_1): Properly extend multiplication
1855 result before builting a tree via wide_int_to_tree.
1857 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1859 * Makefile.in: Add memory-block.cc
1860 (pool_allocator::initialize): Use fixed block size.
1861 (pool_allocator::release): Use memory_block_pool.
1862 (pool_allocator::allocate): Likewise.
1863 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
1865 * cfg.c (initialize_original_copy_tables): Likewise.
1866 * cselib.c (elt_list_pool, elt_loc_list_pool,
1867 cselib_val_pool): Likewise.
1868 * df-problems.c (df_chain_alloc): Likewise.
1869 * df-scan.c (df_scan_alloc): Likewise.
1870 * dse.c (cse_store_info_pool, rtx_store_info_pool,
1871 read_info_type_pool, insn_info_type_pool, bb_info_pool,
1872 group_info_pool, deferred_change_pool): Likewise.
1873 * et-forest.c (et_nodes, et_occurrences): Likewise.
1874 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
1875 ipcp_agg_lattice_pool): Likewise.
1876 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
1877 * ipa-profile.c (histogram_pool): Likewise.
1878 * ipa-prop.c (ipa_refdesc_pool): Likewise.
1879 * ira-build.c (live_range_pool, allocno_pool, object_pool,
1880 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
1881 * ira-color.c (update_cost_record_pool): Likewise.
1882 * lra-lives.c (lra_live_range_pool): Likewise.
1883 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
1884 * memory-block.cc: New file.
1885 * memory-block.h: New file.
1886 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
1887 * sched-deps.c (sched_deps_init): Likewise.
1888 * sel-sched-ir.c (sched_lists_pool): Likewise.
1889 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
1890 * tree-sra.c (access_pool): Likewise.
1891 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1892 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
1893 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
1894 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1895 * tree-ssa-strlen.c (strinfo_pool): Likewise.
1896 * tree-ssa-structalias.c (variable_info_pool): Likewise.
1897 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
1898 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
1900 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1902 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
1904 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
1907 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1909 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
1910 to pass TLS call argument, according to current ABI.
1911 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
1912 callx0 for TLS call, according to current ABI.
1914 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1916 * tree-eh.c (lower_try_finally_dup_block): Clear location information
1917 on stack restore statements.
1918 (decide_copy_try_finally): Do not consider a stack restore statement as
1919 coming from sources.
1921 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
1923 * config/alpha/alpha.c (alpha_expand_block_clear): Use
1924 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
1926 2015-09-15 Jeff Law <law@redhat.com>
1928 PR tree-optimization/47679
1929 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
1930 methods and private members.
1931 (avail_exprs_stack): Similarly. Change type of global
1932 from a pair of expr_hash_elt_t to the new class.
1933 (expr_elt_hasher::hash): Corresponding changes.
1934 (expr_elt_hasher::equal): Similarly.
1935 (avail_expr_hash): Similarly.
1936 (pass_dominator::execute): Similarly.
1937 (dom_opt_dom_walker::thread_across_edge): Similarly.
1938 (record_cond): Similarly.
1939 (dom_opt_dom_walker::before_dom_children): Similarly.
1940 (dom_opt_dom_walker::after_dom_children): Similarly.
1941 (lookup_avail_expr): Likewise.
1942 (initialize_hash_element): Now a expr_hash_elt constructor.
1943 (initialize_hash_element_from_expr): Similarly.
1944 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
1945 (free_expr_hash_elt): Call dtor for the element.
1946 (remove_local_expressions_from_table): Now the "pop_to_marker"
1947 method in the available_exprs_stack class.
1948 (avail_expr_stack::record_expr): Method factored out.
1949 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
1951 (hashable_expr_equal_p): Fix formatting.
1953 2015-09-15 David Malcolm <dmalcolm@redhat.com>
1955 * input.h (location_get_source_line): Drop "expanded_location"
1956 param in favor of a file and line number.
1957 * input.c (location_get_source_line): Likewise.
1958 (dump_location_info): Update for change in signature of
1959 location_get_source_line.
1960 * diagnostic.c (diagnostic_print_caret_line): Likewise.
1962 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1964 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
1965 Bump to 4KB for SJLJ exceptions.
1966 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
1967 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
1968 * doc/tm.texi: Regenerate.
1970 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1972 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
1973 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
1976 2015-09-15 Richard Biener <rguenther@suse.de>
1978 PR tree-optimization/67470
1979 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
1980 structure for PHI hoisting by inserting a forwarder block
1983 2015-09-15 Christian Bruel <christian.bruel@st.com>
1985 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
1986 (arm_option_print): New function.
1988 2015-09-15 Christian Bruel <christian.bruel@st.com>
1991 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
1992 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
1993 Remove flags parameter.
1994 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
1995 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
1996 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
1997 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
1998 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
1999 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
2000 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
2001 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
2003 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2005 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
2007 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
2008 AARCH64_VALID_SIMD_DREG_MODE.
2010 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2012 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
2013 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
2014 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
2015 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
2016 aarch64_ld4_lane<mode>): Combine together, making...
2017 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
2018 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
2019 aarch64_st4_lane<mode>): Combine together, making...
2020 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
2021 * config/aarch64/iterators.md (nregs): Add comment.
2023 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2025 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
2026 Change operand mode from <V_TWO_ELEM> to BLK.
2027 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
2028 (aarch64_vec_store_lanesoi_lane<mode): Likewise
2029 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
2030 (aarch64_ld2_lane<mode>): Likewise.
2031 (aarch64_st2_lane<VQ:mode>): Likewise.
2032 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
2034 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2036 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
2037 Change operand mode from <V_FOUR_ELEM> to BLK.
2038 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
2039 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
2040 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
2041 (aarch64_ld4_lane<mode>): Likewise.
2042 (aarch64_st4_lane<mode>): Likewise.
2043 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
2045 2015-09-15 Richard Biener <rguenther@suse.de>
2048 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
2049 transfer EH info from old to new stmt.
2050 (replace_call_with_value): Likewise.
2051 (replace_call_with_call_and_fold): Likewise.
2052 (gimple_fold_builtin_memory_op): Likewise.
2053 (gimple_fold_builtin_memset): Likewise.
2054 (gimple_fold_builtin_stpcpy): Likewise.
2055 (gimple_fold_call): Likewise.
2057 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2059 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
2061 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
2062 (aarch64_simd_intEI_type_node): Likewise.
2063 (aarch64_simd_builtin_std_type): Remove EImode case.
2064 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
2065 * config/aarch64/aarch64-modes.def: Remove EImode.
2067 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2069 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
2070 Change operand mode from <V_THREE_ELEM> to BLK.
2071 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
2072 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
2073 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
2074 (aarch64_ld3_lane<mode>): Likewise.
2075 (aarch64_st3_lane<mode>): Likewise.
2076 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
2078 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2080 * config/aarch64/aarch64-simd.md
2081 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
2082 Change all TImode operands to BLKmode.
2083 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
2084 Change all EImode operands to BLKmode.
2085 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
2086 Change all OImode operands to BLKmode.
2088 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
2089 and call set_mem_size.
2090 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
2092 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
2094 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2096 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
2098 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
2100 (vec_store_lanesci_lane<mode>): Rename to...
2101 (aarch64_vec_store_lanesci_lane<mode>): ...this.
2103 (vec_store_lanesxi_lane<mode>): Rename to...
2104 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
2106 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
2107 aarch64_st4_lane<mode>): Follow renaming.
2109 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2111 * config/s390/s390.c (s390_const_operand_ok): Add missing
2114 2015-09-15 Richard Biener <rguenther@suse.de>
2117 * lto-streamer.h (lto_location_cache::current_sysp): Properly
2119 * lto-streamer-out.c (clear_line_info): Likewise.
2121 2015-09-15 Richard Biener <rguenther@suse.de>
2123 * doc/match-and-simplify.texi: Fix wording.
2125 2015-09-15 Bin Cheng <bin.cheng@arm.com>
2127 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
2128 unnecessary type conversion in op1.
2130 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
2132 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
2133 (dup_block_and_redirect): Delete function.
2134 (can_dup_for_shrink_wrapping): New function.
2135 (fix_fake_fallthrough_edge): New function.
2136 (try_shrink_wrapping): Rewrite function.
2137 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
2139 2015-09-14 Rich Felker <dalias@libc.org>
2141 * configure.ac: Change target pattern for sh TLS support
2142 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
2143 * configure: Regenerate.
2145 2015-09-14 Jeff Law <law@redhat.com>
2147 PR tree-optimization/47679
2148 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
2149 type rather than void *.
2151 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2154 * diagnostic.c (diagnostic_initialize): Do not set
2155 some_warnings_are_errors.
2156 (diagnostic_finish): Use DK_WERROR count instead.
2157 (diagnostic_report_diagnostic): Do not set
2158 some_warnings_are_errors.
2159 * diagnostic.h (struct diagnostic_context): Remove
2160 some_warnings_are_errors.
2162 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
2164 * config/sparc/predicates.md (const_all_ones_operand): Use
2165 CONSTM1_RTX to simplify definition.
2167 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
2170 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
2173 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
2175 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
2176 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
2177 OPT_fshow_column to handled saved option cases.
2178 (append_compiler_options): Do not skip the above added options.
2180 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2183 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
2184 nopcrelative_literal_loads.
2185 (aarch64_classify_address): Likewise.
2186 (aarch64_constant_pool_reload_icode): Define.
2187 (aarch64_secondary_reload): Handle secondary reloads for
2189 (aarch64_override_options): Handle nopcrelative_literal_loads.
2190 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
2191 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
2193 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
2194 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
2195 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
2197 * doc/invoke.texi (mpc-relative-literal-loads): Document.
2199 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
2202 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
2203 sync_compare_and_swap_optab libcall to target_oval.
2205 2015-09-14 Marek Polacek <polacek@redhat.com>
2207 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
2209 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
2211 2015-09-11 Mark Wielaard <mjw@redhat.com>
2214 * toplev.c (check_global_declaration): Check and use
2215 warn_unused_const_variable.
2216 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
2217 (-Wunused-variable): Remove non-constant. For C implies
2218 -Wunused-const-variable.
2219 (-Wunused-const-variable): New.
2221 2015-09-14 Richard Biener <rguenther@suse.de>
2223 * doc/match-and-simplify.texi: Update for changed syntax
2224 of inner ifs and the new switch expression.
2226 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
2228 * config/i386/haswell.md: New file describing Haswell pipeline.
2229 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
2230 haswell-like processors.
2231 (ix86_reassociation_width): Increase reassociation width for 64-bit
2232 Haswell processor family.
2233 * config/i386/i386.md: Introduce haswell cpu and include new md file.
2235 2015-09-14 Richard Biener <rguenther@suse.de>
2237 * doc/match-and-simplify.texi: Fixup some formatting issues
2238 and document the 's' flag.
2240 2015-09-13 Olivier Hainque <hainque@adacore.com>
2241 Eric Botcazou <ebotcazou@adacore.com>
2243 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
2244 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
2245 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
2246 (TARGET_CPU_gr5): Likewise.
2247 (TARGET_CPU_gr6): Likewise.
2248 (MULTILIB_DEFAULTS): Likewise.
2249 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
2250 for mcpu=gr5 and mcpu=gr6.
2251 (MULTILIB_DIRNAMES): Adjust accordingly.
2253 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2255 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
2256 (mem_ref_p): Likewise.
2257 (outermost_indep_loop): Adjust.
2258 (mem_ref_in_stmt): Likewise.
2259 (determine_max_movement): Likewise.
2260 (mem_ref_alloc): Likewise.
2261 (record_mem_ref_loc): Likewise.
2262 (set_ref_stored_in_loop): Likewise.
2263 (mark_ref_stored): Likewise.
2264 (gather_mem_refs_stmt): Likewise.
2265 (mem_refs_may_alias_p): Likewise.
2266 (for_all_locs_in_loop): Likewise.
2267 (struct rewrite_mem_ref_loc): Likewise.
2268 (rewrite_mem_refs): Likewise.
2269 (struct first_mem_ref_loc_1): Likewise.
2270 (first_mem_ref_loc): Likewise.
2271 (struct sm_set_flag_if_changed): Likewise.
2272 (execute_sm_if_changed_flag_set): Likewise.
2273 (execute_sm): Likewise.
2274 (hoist_memory_references):
2275 (struct ref_always_accessed): Likewise.
2276 (ref_always_accessed_p): Likewise.
2277 (refs_independent_p): Likewise.
2278 (record_dep_loop): Likewise.
2279 (ref_indep_loop_p_1): Likewise.
2280 (ref_indep_loop_p_2): Likewise.
2281 (ref_indep_loop_p): Likewise.
2282 (can_sm_ref_p): Likewise.
2283 (find_refs_for_sm): Likewise.
2284 (tree_ssa_lim_finalize): Likewise.
2286 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2288 * dwarf2out.c (dw_attr_ref): Remove typedef.
2289 (dw_line_info_ref): Likewise.
2290 (pubname_ref): Likewise.
2291 (dw_ranges_ref): Likewise.
2292 (dw_ranges_by_label_ref): Likewise.
2293 (comdat_type_node_ref): Likewise.
2295 (get_AT_low_pc): Likewise.
2296 (get_AT_hi_pc): Likewise.
2297 (get_AT_string): Likewise.
2298 (get_AT_flag): Likewise.
2299 (get_AT_unsigned): Likewise.
2300 (get_AT_ref): Likewise.
2301 (get_AT_file): Likewise.
2302 (remove_AT): Likewise.
2303 (print_die): Likewise.
2304 (check_die): Likewise.
2305 (die_checksum): Likewise.
2306 (attr_checksum_ordered): Likewise.
2307 (struct checksum_attributes): Likewise.
2308 (collect_checksum_attributes): Likewise.
2309 (die_checksum_ordered): Likewise.
2310 (same_die_p): Likewise.
2311 (is_declaration_die): Likewise.
2312 (clone_die): Likewise.
2313 (clone_as_declaration): Likewise.
2314 (copy_declaration_context): Likewise.
2315 (break_out_comdat_types): Likewise.
2316 (copy_decls_walk): Likewise.
2317 (output_location_lists): Likewise.
2318 (external_ref_hasher::hash): Likewise.
2319 (optimize_external_refs_1): Likewise.
2320 (build_abbrev_table): Likewise.
2321 (size_of_die): Likewise.
2322 (unmark_all_dies): Likewise.
2323 (size_of_pubnames): Likewise.
2324 (output_die_abbrevs): Likewise.
2325 (output_die): Likewise.
2326 (output_pubnames): Likewise.
2327 (add_ranges_num): Likewise.
2328 (add_ranges_by_labels): Likewise.
2329 (add_high_low_attributes): Likewise.
2330 (gen_producer_string): Likewise.
2331 (dwarf2out_set_name): Likewise.
2332 (new_line_info_table): Likewise.
2333 (prune_unused_types_walk_attribs): Likewise.
2334 (prune_unused_types_update_strings): Likewise.
2335 (prune_unused_types): Likewise.
2336 (resolve_addr): Likewise.
2337 (optimize_location_lists_1): Likewise.
2338 (index_location_lists): Likewise.
2339 (dwarf2out_finish): Likewise.
2341 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2343 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
2345 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2347 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
2348 (dump_asserts_for): Adjust.
2349 (register_new_assert_for): Likewise.
2350 (process_assert_insertions): Likewise.
2351 (insert_range_assertions): Likewise.
2353 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2355 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
2357 (new_temp_expr_table): Adjust.
2358 (free_temp_expr_table): Likewise.
2359 (version_to_be_replaced_p): Likewise.
2360 (make_dependent_on_partition): Likewise.
2361 (add_to_partition_kill_list): Likewise.
2362 (remove_from_partition_kill_list): Likewise.
2363 (add_dependence): Likewise.
2364 (finished_with_expr): Likewise.
2365 (process_replaceable): Likewise.
2366 (kill_expr): Likewise.
2367 (kill_virtual_exprs): Likewise.
2368 (mark_replaceable): Likewise.
2369 (find_replaceable_in_bb): Likewise.
2370 (find_replaceable_exprs): Likewise.
2371 (debug_ter): Likewise.
2373 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2375 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
2376 (struct btr_user): Rename from btr_user_s.
2377 (struct btr_def): Rename from btr_def_s.
2378 (find_btr_def_group): Adjust.
2379 (add_btr_def): Likewise.
2380 (new_btr_user): Likewise.
2381 (note_other_use_this_block): Likewise.
2382 (compute_defs_uses_and_gen): Likewise.
2383 (link_btr_uses): Likewise.
2384 (build_btr_def_use_webs): Likewise.
2385 (block_at_edge_of_live_range_p): Likewise.
2386 (btr_def_live_range): Likewise.
2387 (combine_btr_defs): Likewise.
2388 (move_btr_def): Likewise.
2389 (migrate_btr_def): Likewise.
2390 (migrate_btr_defs): Likewise.
2392 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2394 * var-tracking.c (shared_hash_def): Rename to shared_hash.
2395 (shared_hash): Remove typedef.
2396 (struct dataflow_set): Adjust.
2397 (shared_hash_unshare): Likewise.
2398 (dataflow_set_merge): Likewise.
2399 (vt_initialize): Likewise.
2400 (vt_finalize): Likewise.
2402 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2404 * var-tracking.c (struct location_chain): Rename from
2406 (struct variable_part): Adjust.
2407 (variable_htab_free): Likewise.
2408 (unshare_variable): Likewise.
2409 (get_init_value): Likewise.
2410 (get_addr_from_local_cache): Likewise.
2411 (drop_overlapping_mem_locs): Likewise.
2412 (val_reset): Likewise.
2413 (struct variable_union_info): Likewise.
2414 (variable_union): Likewise.
2415 (find_loc_in_1pdv): Likewise.
2416 (insert_into_intersection): Likewise.
2417 (intersect_loc_chains): Likewise.
2418 (canonicalize_loc_order_check): Likewise.
2419 (canonicalize_values_mark): Likewise.
2420 (canonicalize_values_star): Likewise.
2421 (canonicalize_vars_star): Likewise.
2422 (variable_merge_over_cur): Likewise.
2423 (remove_duplicate_values): Likewise.
2424 (variable_post_merge_new_vals): Likewise.
2425 (variable_post_merge_perm_vals): Likewise.
2426 (find_mem_expr_in_1pdv): Likewise.
2427 (dataflow_set_preserve_mem_locs): Likewise.
2428 (dataflow_set_remove_mem_locs): Likewise.
2429 (variable_part_different_p): Likewise.
2430 (onepart_variable_different_p): Likewise.
2431 (find_src_set_src): Likewise.
2432 (dump_var): Likewise.
2433 (set_slot_part): Likewise.
2434 (clobber_slot_part): Likewise.
2435 (delete_slot_part): Likewise.
2436 (vt_expand_var_loc_chain): Likewise.
2437 (emit_note_insn_var_location): Likewise.
2438 (vt_finalize): Likewise.
2440 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2442 * dse.c (store_info_t): Remove typedef.
2443 (group_info_t): Likewise.
2444 (const_group_info_t): Likewise.
2445 (deferred_change_t): Likewise.
2446 (get_group_info): Adjust.
2447 (free_store_info): Likewise.
2448 (canon_address): Likewise.
2449 (clear_rhs_from_active_local_stores): Likewise.
2450 (record_store): Likewise.
2451 (replace_read): Likewise.
2452 (check_mem_read_rtx): Likewise.
2453 (scan_insn): Likewise.
2454 (remove_useless_values): Likewise.
2455 (dse_step1): Likewise.
2456 (dse_step2_init): Likewise.
2457 (dse_step2_nospill): Likewise.
2458 (scan_stores_nospill): Likewise.
2459 (scan_reads_nospill): Likewise.
2460 (dse_step3_exit_block_scan): Likewise.
2461 (dse_step3): Likewise.
2462 (dse_step5_nospill): Likewise.
2463 (dse_step6): Likewise.
2465 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2467 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
2468 (alias_set_entry): Remove typedef.
2469 (alias_set_subset_of): Adjust.
2470 (alias_sets_conflict_p): Likewise.
2471 (init_alias_set_entry): Likewise.
2472 (get_alias_set): Likewise.
2473 (new_alias_set): Likewise.
2474 (record_alias_subset): Likewise.
2476 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
2478 * doc/install.texi (Downloading the source): Mark up
2479 contrib/download_prerequisites properly and drop leading "./".
2481 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2483 * config/arc/arc.h: Remove define of STRUCT_VALUE.
2484 * config/lm32/lm32.h: Likewise.
2485 * config/mep/mep.h: Likewise.
2486 * config/visium/visium.h: Likewise.
2487 * system.h: Poison STRUCT_VALUE macro.
2489 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
2491 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
2492 CONSTANT_P operands.
2494 2015-09-11 David S. Miller <davem@davemloft.net>
2496 * config/sparc/constraints.md: Make "U" constraint a real register
2498 * config/sparc/sparc.c (TARGET_LRA_P): Define.
2499 (D_MODES, DF_MODES): Add missing cast.
2500 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
2501 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
2502 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
2504 * config/sparc/sparc.h (PROMOTE_MODE): Define.
2505 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2506 provide these insn when flag_pic.
2508 2015-09-11 Jeff Law <law@redhat.com>
2510 PR tree-optimization/47679
2511 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
2512 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
2513 member with m_. Update inline member functions as necessary. Add
2515 * tree-ssa-scopedtables.c: Update const_and_copies's member
2516 functions to use m_ prefix to access the stack.
2518 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
2520 * graphite-optimize-isl.c (disable_tiling): Remove.
2521 (get_schedule_for_band): Do not use disable_tiling.
2522 (get_prevector_map): Delete function.
2523 (enable_polly_vector): Remove.
2524 (get_schedule_for_band_list): Remove dead code.
2526 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
2528 * graphite-optimize-isl.c (get_tile_map): Refactor.
2529 (get_schedule_for_band): Same.
2530 (getScheduleForBand): Same.
2531 (get_prevector_map): Same.
2532 (get_schedule_for_band_list): Same.
2533 (get_schedule_map): Same.
2534 (get_single_map): Same.
2535 (apply_schedule_map_to_scop): Same.
2536 (optimize_isl): Same.
2538 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2541 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
2543 * config/aarch64/iterators.md (GPF_TF_F16): New.
2546 2015-09-10 Nathan Sidwell <nathan@acm.org>
2548 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
2549 (nvptx_reorg): Adjust comments.
2551 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
2554 * configure.ac: Check if setenv and unsetenv are declared.
2555 * configure: Rebuild.
2556 * config.in: Rebuild.
2557 * system.h: Declare setenv and unsetenv if not declared.
2559 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2561 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
2562 commentary to simplify permute mask adjustment equation.
2563 (special_handling_values): Add SH_VPERM.
2564 (const_load_sequence_p): New function.
2565 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
2566 the mask loaded from the constant pool.
2567 (adjust_vperm): New function.
2568 (handle_special_swappables): Call adjust_vperm.
2569 (dump_swap_insn_table): Handle SH_VPERM.
2571 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
2573 * shrink-wrap.c (requires_stack_frame_p): Remove static.
2574 * shrink-wrap.h (requires_stack_frame_p): Put back.
2576 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
2578 * reload1.c (elimination_costs_in_insn): Locally turn
2579 -Wmaybe-uninitialized into a warning.
2581 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
2583 * shrink-wrap.c (requires_stack_frame_p): Make static.
2584 (prepare_shrink_wrap): Likewise.
2585 (dup_block_and_redirect): Likewise.
2586 * shrink-wrap.h: Remove declarations of those functions.
2588 2015-09-10 Mark Wielaard <mjw@redhat.com>
2590 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
2592 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
2595 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
2596 missing simplify_gen_subreg.
2598 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2600 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
2601 the vector element is bigger than 64 bit.
2603 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2605 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
2606 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
2608 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2610 * config/s390/s390.c: Add V1TImode to constant pool modes.
2612 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2615 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
2616 predicate. Set predicable_short_it attr to "no".
2618 2015-09-10 Jiong Wang <jiong.wang@arm.com>
2620 PR rtl-optimization/67421
2621 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
2622 left wide shift tranformation.
2624 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2626 * common/config/arc/arc-common.c: Remove references to A5.
2627 * config/arc/arc-opts.h: Likewise.
2628 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
2629 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
2630 * config/arc/t-arc-newlib: Likewise.
2632 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2634 * config/arc/arc.md (length): Fix attribute length for conditional
2635 executed instructions with long immediate.
2637 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2639 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
2640 type for second alternative.
2642 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
2644 * doc/invoke.texi (Downloading GCC): Mention
2645 contrib/download_prerequisites script.
2647 2015-09-10 Jakub Jelinek <jakub@redhat.com>
2650 * gimplify.c (gimplify_omp_for): If inner stmt is not found
2651 for combined loop, assert seen_error () and return GS_ERROR.
2654 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
2655 if decl is already in outer->variables.
2658 * gimplify.c (gimplify_scan_omp_clauses): Instead of
2659 asserting that decl is not specified in octx->variables,
2660 break out of the loop if it is.
2663 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
2664 iterator is not explicitly determined, but is defined inside
2665 of the combined workshare region, handle it like if it has
2666 DECL_EXPR in OMP_FOR_PRE_BODY.
2668 2015-09-09 Nathan Sidwell <nathan@acm.org>
2670 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
2671 (*cmp<mode>): Add assembler spacing.
2672 (setcc_int<mode>, set_cc_float<mode>): Likewise.
2673 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
2675 (write_func_decl_from_insn): Refactor argument loops & comma emission.
2676 (nvptx_expand_call): Likewise.
2677 (nvptx_output_call_insn): Likewise.
2678 (nvptx_reorg_subreg): Add spacing.
2680 2015-09-09 Marek Polacek <polacek@redhat.com>
2683 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
2686 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2689 * doc/invoke.texi ([Wsubobject-linkage]): Document.
2691 2015-09-09 Tom de Vries <tom@codesourcery.com>
2693 * params-list.h: Add missing copyright notice.
2695 2015-09-09 Nathan Sidwell <nathan@acm.org>
2697 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
2698 sel_truesi, not andsi.
2700 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2702 * config/arm/arm.md (*subsi3_compare0): Rename to...
2703 (subsi3_compare0): ... This.
2704 (modsi3): New define_expand.
2705 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
2706 when operand is power of 2.
2708 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2710 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
2711 (*neg<mode>2_compare0): Rename to...
2712 (neg<mode>2_compare0): ... This.
2713 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
2714 Move check for speed inside the if-then-elses. Reflect
2715 CSNEG sequence in MOD by power of 2 case.
2717 2015-09-09 Alan Modra <amodra@gmail.com>
2720 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
2721 reload replacement for PRE_MODIFY address reg.
2723 2015-09-09 Sebastian Pop <s.pop@samsung.com>
2725 PR tree-optimization/53852
2726 * config.in: Regenerate.
2727 * configure: Regenerate.
2728 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
2729 * graphite-optimize-isl.c (optimize_isl): Stop computation when
2730 PARAM_MAX_ISL_OPERATIONS is reached.
2731 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
2732 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
2733 result equal to isl_stat_ok as the status now can be isl_error_quota.
2734 (subtract_commutative_associative_deps): Same.
2735 (compute_deps): Same.
2737 2015-09-08 Aditya Kumar <hiraditya@msn.com>
2738 Sebastian Pop <s.pop@samsung.com>
2740 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2741 Return the parameter if it was saved in corresponding
2742 parameter_rename_map of the region.
2743 (copy_def): Copy def from sese region to the newly created region.
2744 (copy_internal_parameters): Copy all the internal parameters defined
2745 within a region to the newly created region.
2746 (graphite_regenerate_ast_isl): Copy parameters to the new region before
2747 translating isl to gimple.
2748 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
2749 the loop-nest does not have any data-references.
2750 (build_graphite_scops): Create a scop only when there is at least one
2752 (contains_only_close_phi_nodes): Deleted.
2753 (print_graphite_scop_statistics): Deleted
2754 (print_graphite_statistics): Deleted
2755 (limit_scops): Deleted.
2756 (build_scops): Removed call to limit_scops.
2757 * sese.c (new_sese): Construct.
2758 (free_sese): Destruct.
2759 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
2761 (set_rename): Pass sese region so that parameters inside the region can
2762 be added to its parameter_rename_map.
2763 (rename_uses): Pass sese region.
2764 (graphite_copy_stmts_from_block): Do not copy parameters that have been
2765 generated in the header of the scop. For each SSA_NAME in the
2766 parameter_rename_map rename its usage.
2767 (invariant_in_sese_p_rec): Return false if tree t is defined outside
2769 (scalar_evolution_in_region): If the tree t is invariant just return t.
2770 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
2771 struct sese to keep track of all the parameters which need renaming.
2772 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
2774 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
2776 2015-09-08 Tom de Vries <tom@codesourcery.com>
2778 * Makefile.in (generated_files): Add params.list.
2779 (params.list, s-params.list): Add rule.
2780 * params.h (enum compiler_param): Include params-list.h. Move define
2781 DEFPARAM, include params.def and undef DEFPARAM ...
2782 * params-list.h: ... here. New file.
2784 2015-09-08 David Malcolm <dmalcolm@redhat.com>
2786 * pretty-print.h (printer_fn): Fix typo in comment.
2788 2015-09-07 Jeff Law <law@redhat.com>
2790 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
2792 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2794 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
2795 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
2796 (arm_neon_fp16_hw): New.
2798 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2800 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
2801 UNITS_PER_WORD >= 4.
2803 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2805 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
2806 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
2807 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
2808 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
2809 (aarch64_float_extend_lo_v2df): Rename to...
2810 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
2812 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
2813 (float_extend_lo): Add v4sf.
2815 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
2816 * config/aarch64/iterators.md (VQ_HSF): New iterator.
2817 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
2818 (Vwide): New mode_attr.
2820 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2822 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
2823 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
2824 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
2825 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
2826 V4HF and V8HF variants to iterator.
2828 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
2830 * config/aarch64/iterators.md (VDQF_F16): New.
2831 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
2833 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2835 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
2836 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2837 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
2838 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
2839 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
2840 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2841 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
2842 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
2843 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
2844 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
2845 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
2846 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2847 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
2848 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
2849 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
2850 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
2851 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
2852 vld1q_dup_f16): New.
2854 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2856 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
2857 Reparameterize to...
2858 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
2859 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
2860 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
2862 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
2864 (float_truncate_lo_): Use BUILTIN_VDF iterator.
2866 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
2868 * config/aarch64/iterators.md (VDF, Vdtype): New.
2869 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
2871 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2873 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
2874 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
2875 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
2876 Add __builtin_aarch64_simd_hf.
2877 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
2878 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
2879 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
2880 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
2881 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
2882 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
2883 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
2884 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
2885 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
2887 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
2888 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
2889 (VDC, Vdbl): Add V4HF.
2891 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2893 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
2894 V4HFmode and V8HFmode.
2895 (aarch64_split_simd_move): Add case for V8HFmode.
2896 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
2897 (aarch64_simd_builtin_std_type): Handle HFmode.
2898 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
2900 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
2901 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
2902 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
2904 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
2907 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
2908 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
2910 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
2911 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
2912 vst1q_lane_f16): New.
2913 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
2914 (VALLDI_F16, VALL_F16): New.
2915 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
2916 Add cases for V4HF and V8HF.
2917 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
2919 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2921 * config/arm/arm-builtins.c (VAR11, VAR12): New.
2922 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
2923 vld4_dup): Add v4hf variant.
2924 (vget_high, vget_low): Add v8hf variant.
2925 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
2926 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
2927 v4hf and v8hf variants.
2929 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
2931 (V_DOUBLE): Add case for V4HF.
2933 (V_HALF): Add case for V8HF.
2934 (VDQX): Add V4HF, V8HF.
2935 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
2936 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
2938 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
2939 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
2940 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
2941 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
2942 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
2943 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
2944 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
2945 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
2946 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
2948 (neon_vcreate, neon_vreinterpretv8qi<mode>,
2949 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
2950 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
2951 Change VDX to VD_RE.
2953 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
2954 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
2955 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
2957 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
2958 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
2959 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
2960 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
2961 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
2962 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
2963 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
2964 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
2965 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
2967 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2969 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
2970 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
2971 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
2972 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
2973 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2974 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
2975 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
2976 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
2977 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
2978 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
2981 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2983 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
2985 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
2987 * config/arm/arm-builtins.c (v8hf_UP): New.
2988 (arm_init_simd_builtin_types): Initialise Float16x8_t.
2990 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
2992 * config/arm/arm_neon.h (float16x8_t): New typedef.
2994 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2996 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
2997 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
2998 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
2999 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
3000 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
3001 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
3002 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
3003 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
3004 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
3005 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
3007 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
3009 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
3010 non-alphanumeric characters in the symbol name.
3012 2015-09-07 Marek Polacek <polacek@redhat.com>
3015 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
3018 2015-09-07 Marek Polacek <polacek@redhat.com>
3020 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
3022 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
3024 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
3027 2015-09-04 Jakub Jelinek <jakub@redhat.com>
3030 * tree-ssa-live.c: Include cfgloop.h.
3031 (remove_unused_locals): Clear loop->simduid if simduid is about
3032 to be removed from cfun->local_decls.
3034 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3037 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
3040 2015-09-04 Tom de Vries <tom@codesourcery.com>
3042 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
3044 2015-09-04 Jeff Law <law@redhat.com>
3046 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
3047 unnecessary constructor. It's now trivial and implemented inside...
3048 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
3049 constructor. Add comments to various methods. Remove unused
3051 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
3052 * tree-vrp.c (identify_jump_threads): Likewise.
3053 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
3055 (thread_across_edge): Similarly.
3056 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
3057 arguments in constructor call.
3059 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
3061 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
3062 temp path contains a '-'.
3064 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
3065 Petr Murzin <petr.murzin@intel.com>
3066 Kirill Yukhin <kirill.yukhin@intel.com>
3068 * config/i386/i386-builtin-types.def
3069 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
3070 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
3071 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
3072 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
3073 * config/i386/i386.c
3074 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
3075 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
3076 IX86_BUILTIN_SCATTERALTDIV16SI.
3077 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
3078 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
3079 __builtin_ia32_scatteraltdiv8si.
3080 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
3081 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
3082 IX86_BUILTIN_SCATTERALTDIV16SI.
3083 (ix86_vectorize_builtin_scatter): New.
3084 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
3085 ix86_vectorize_builtin_scatter.
3087 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
3088 Petr Murzin <petr.murzin@intel.com>
3089 Kirill Yukhin <kirill.yukhin@intel.com>
3091 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
3092 * doc/tm.texi: Regenerate.
3093 * target.def: Add scatter builtin.
3094 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
3095 for loads/stores in case of gather/scatter accordingly.
3096 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
3097 STMT_VINFO_GATHER_P(S).
3098 (vect_check_gather): Rename to ...
3099 (vect_check_gather_scatter): this.
3100 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
3101 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
3102 (vect_check_gather_scatter): Use it instead of vect_check_gather.
3103 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
3104 variable and new checkings for it accordingly.
3106 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
3107 STMT_VINFO_GATHER_P(S).
3108 (vect_check_gather_scatter): Use it instead of vect_check_gather.
3109 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
3111 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
3113 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
3115 (mulv16qi3): New define_expand.
3117 2015-09-03 Martin Sebor <msebor@redhat.com>
3120 * doc/extend.texi (Other Builtins): Document when the address
3121 of a built-in function can be taken.
3123 2015-09-03 Richard Biener <rguenther@suse.de>
3125 * dwarf2out.c (flush_limbo_die_list): Split out from ...
3126 (dwarf2out_early_finish): ... here.
3127 (dwarf2out_finish): Do not call dwarf2out_early_finish but
3128 flush_limbo_die_list. Assert we have no deferred asm names.
3130 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3132 * optabs.c (expand_binop): Don't create a broadcast vector with a
3133 source element wider than the inner mode.
3135 2015-09-03 Richard Biener <rguenther@suse.de>
3137 * varasm.c (output_constant): Use fold_convert instead of
3140 2015-09-03 Tom de Vries <tom@codesourcery.com>
3142 PR tree-optimization/65637
3143 * omp-low.c (expand_omp_for_static_chunk): Handle case that
3144 fin_bb has 2 predecessors.
3146 2015-09-03 Tom de Vries <tom@codesourcery.com>
3148 PR tree-optimization/65637
3149 * omp-low.c (find_phi_with_arg_on_edge): New function.
3150 (expand_omp_for_static_chunk): Fix inner loop phi.
3152 2015-09-03 Tom de Vries <tom@codesourcery.com>
3154 PR tree-optimization/65637
3155 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
3158 2015-09-03 Tom de Vries <tom@codesourcery.com>
3160 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
3162 2015-09-03 Tom de Vries <tom@codesourcery.com>
3164 * doc/invoke.texi (parloops-chunk-size): Add item.
3165 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
3166 * tree-parloops.c: Include params.h.
3167 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
3168 param parloops-chunk-size is used.
3170 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3173 * fold-const.c (fold_binary_loc) : Move
3174 Transform (x >> c) << c into x & (-1<<c) or
3175 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
3176 types using simplify and match.
3177 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
3178 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
3180 2015-09-03 Richard Biener <rguenther@suse.de>
3183 * tree-ssa-structalias.c (ctor_for_analysis): New function.
3184 (create_variable_info_for_1): Use ctor_for_analysis instead
3186 (create_variable_info_for): Likewise.
3188 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
3191 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
3192 in new callgraph edge.
3194 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
3199 * config/aarch64/aarch64-simd.md
3200 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
3201 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
3202 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
3203 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
3205 2015-09-02 Alan Modra <amodra@gmail.com>
3207 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
3208 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
3209 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
3211 2015-09-02 Alan Modra <amodra@gmail.com>
3214 * config/rs6000/predicates.md (current_file_function_operand): Don't
3215 return true for weak symbols.
3216 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
3218 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
3219 Andrew Bennett <andrew.bennett@imgtec.com>
3221 * config/mips/mips-opts.h (mips_cb_setting): New enum.
3222 * config/mips/mips-protos.h: Add definitions for
3223 mips_output_jump and mips_output_equal_conditional_branch
3224 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
3226 (mips_emit_compare): Add support for the MIPS R6 conditional
3228 (mips_process_sync_loop): Likewise.
3229 (mips_output_order_conditional_branch): Likewise.
3230 (mips16_build_call_stub): Change MIPS_CALL to
3232 (mips_print_operand_punctuation): Update 's' case to only
3233 apply to micromips r2.
3234 (mips_adjust_insn_length): Add support for forbidden slot
3236 (mips_avoid_hazard): Likewise.
3237 (mips_reorg_process_insns): Likewise.
3238 (mips_output_jump): New function.
3239 (mips_output_equal_conditional_branch): Likewise.
3240 (mips_output_conditional_branch): Use jrc/bc if compact
3241 branch support is enabled. Ensure the forbidden slots
3242 between the two branch instructions is filled with a nop.
3243 (mips_option_override): Add support to process the compact
3244 branch option and set the correct defaults. Prevent
3245 non-explict relocs being using for MIPS R6.
3246 (mips_trampoline_init): Add compact branch support.
3247 (mips_mult_zero_zero_cost): Allow zero initialisation of
3248 accumulators with TARGET_DSP.
3249 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
3250 (TARGET_CB_MAYBE): New define.
3251 (TARGET_CB_ALWAYS): New define.
3252 (ISA_HAS_DELAY_SLOTS): New define.
3253 (ISA_HAS_COMPACT_BRANCHES): New define.
3254 (ISA_HAS_JRC): New define.
3255 (MIPS_BRANCH_C): New define.
3256 (MIPS_CALL): Removed.
3257 (MICROMIPS_J): Removed.
3258 * config/mips/mips.md (compact_form): New attr.
3259 (hazard): Add support for forbidden slots.
3260 (define_delay): Add support for compact branches.
3261 (*branch_order<mode>): Likewise.
3262 (*branch_order<mode>_inverted): Likewise.
3263 (*branch_equality<mode>): Likewise.
3264 (*branch_equality<mode>_inverted): Likewise.
3265 (*jump_absolute): Likewise.
3266 (*jump_pic): Likewise.
3267 (indirect_jump): Use mips_output_jump to produce assembly output.
3268 (tablejump_<mode>"): Likewise.
3269 (*<optab>"): Likewise.
3270 (<optab>_internal): Likewise.
3271 (sibcall_internal): Likewise.
3272 (sibcall_value_internal): Likewise.
3273 (sibcall_value_multiple_internal): Likewise.
3274 (call_internal): Likewise.
3275 (call_split): Likewise.
3276 (call_internal_direct): Likewise.
3277 (call_direct_split): Likewise.
3278 (call_value_internal): Likewise.
3279 (call_value_split): Likewise.
3280 (call_value_internal_direct): Likewise.
3281 (call_value_direct_split): Likewise.
3282 (call_value_multiple_internal): Likewise.
3283 (call_value_multiple_split): Likewise.
3284 (mips_get_fcsr_mips16_<mode>): Likewise.
3285 (mips_set_fcsr_mips16_<mode>): Likewise.
3286 (tls_get_tp_mips16_<mode>): Likewise.
3287 * config/mips/mips.opt: Add -mcompact-branches option.
3288 * config/mips/predicates.md (order_operator): Ensure the
3289 conditional compact branches are only used if the ISA them.
3290 * doc/invoke.texi: Document -mcompact-branches option.
3292 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
3295 * lra-lives.c (process_bb_lives): Process move pseudos with the
3296 same value for copies and preferences
3297 * lra-constraints.c (match_reload): Create match reload pseudo
3298 with the same value from single dying input pseudo.
3300 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
3303 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
3305 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
3307 * trans-mem.c: Add contributed-by.
3308 * trans-mem.h: Same.
3310 2015-09-01 Richard Biener <rguenther@suse.de>
3312 * expr.c (expand_expr_real_1): For expanding TERed defs
3313 set the current location to that of the def if not UNKNOWN.
3315 2015-09-01 David Sherwood <david.sherwood@arm.com>
3317 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
3319 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3321 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
3322 then_cost, else_cost fields. Change branch_cost field to unsigned int.
3323 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
3325 (noce_simple_bbs): New function.
3326 (noce_try_move): Bail if basic blocks are not simple.
3327 (noce_try_store_flag): Likewise.
3328 (noce_try_store_flag_constants): Likewise.
3329 (noce_try_addcc): Likewise.
3330 (noce_try_store_flag_mask): Likewise.
3331 (noce_try_cmove): Likewise.
3332 (noce_try_minmax): Likewise.
3333 (noce_try_abs): Likewise.
3334 (noce_try_sign_mask): Likewise.
3335 (noce_try_bitop): Likewise.
3336 (bbs_ok_for_cmove_arith): New function.
3337 (noce_emit_all_but_last): Likewise.
3338 (noce_emit_insn): Likewise.
3339 (noce_emit_bb): Likewise.
3340 (noce_try_cmove_arith): Handle non-simple basic blocks.
3341 (insn_valid_noce_process_p): New function.
3342 (contains_mem_rtx_p): Likewise.
3343 (bb_valid_for_noce_process_p): Likewise.
3344 (noce_process_if_block): Allow non-simple basic blocks
3347 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
3349 * tree-ssa-dom.c (record_equivalences_from_phis,
3350 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
3351 (lookup_avail_expr): Likewise, and remove comment and unused temp.
3353 2015-09-01 Nick Clifton <nickc@redhat.com>
3355 * config/msp430/msp430.opt (mcpu): Fix typo.
3357 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3359 * config/aarch64/aarch64.c (aarch64_set_current_function):
3360 Re-layout any vector parameters have non-simd layout.
3361 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
3363 (aarch64_simd_expand_args): Delete call to the above.
3365 2015-08-31 Mike Frysinger <vapier@gentoo.org>
3367 * doc/invoke.texi (asan-stack): Add space before option.
3369 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
3371 * tree.h (zerop): New function.
3372 * tree.c (zerop): Likewise.
3373 (element_precision): Handle expressions.
3374 * match.pd (define_predicates): Add zerop.
3375 (x <= +Inf): Fix comment.
3376 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
3377 * fold-const.c (fold_binary_loc): ... here. Remove.
3379 2015-08-31 Richard Biener <rguenther@suse.de>
3382 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
3384 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
3386 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
3387 (CEXPI): New operator list.
3388 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
3389 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
3391 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
3393 2015-08-31 Tom de Vries <tom@codesourcery.com>
3395 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
3396 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
3398 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
3399 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
3400 (rewrite_into_loop_closed_ssa): ... here.
3401 (replace_uses_in_dominated_bbs): Remove function.
3402 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
3403 rewrite_into_loop_closed_ssa_1.
3405 2015-08-31 Michael Matz <matz@suse.de>
3407 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
3408 enter entry and exit blocks for reverse post order.
3410 2015-08-31 Richard Biener <rguenther@suse.de>
3412 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
3413 (lto_location_cache::current_sysp): Likewise.
3414 (output_block::current_sysp): Likewise.
3415 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
3416 (lto_location_cache::apply_location_cache): Properly record
3417 system header locations.
3418 (lto_location_cache::input_location): Input whether a file
3420 * lto-streamer-out.c (lto_output_location): Stream whether a file
3423 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3426 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
3428 2015-08-31 Tom de Vries <tom@codesourcery.com>
3430 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
3431 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
3432 Improve function header comments.
3434 2015-08-30 Michael Collison <michael.collison@linaro.org>
3437 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
3440 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3442 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
3443 special_handling bitfield.
3444 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
3445 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
3446 that represents a general xxpermdi.
3447 (insn_is_swappable_p): Add handling for vec_concat of two
3448 doublewords, which maps to a specific xxpermdi.
3449 (adjust_xxpermdi): New function.
3450 (adjust_concat): Likewise.
3451 (handle_special_swappables): Call adjust_xxpermdi and
3453 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
3455 2015-08-30 Rich Felker <dalias@libc.org>
3457 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
3458 case instead of sh[123456ble]-*-*.
3460 2015-08-29 Anatoly Sokolov <aesok@post.ru>
3462 * ira.c (print_unform_and_important_classes,
3463 print_translated_classes): Remove reg_class_names static array.
3464 (print_unform_and_important_classes): Rename to ...
3465 (print_uniform_and_important_classes): ... this.
3466 (ira_debug_allocno_classes): Update accordingly.
3468 2015-08-29 Tom de Vries <tom@codesourcery.com>
3470 PR tree-optimization/46193
3471 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
3474 2015-08-28 Jeff Law <law@redhat.com>
3477 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
3478 unable to find X NE 0 in the tables, return X as the simplified
3480 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
3481 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
3483 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
3484 after removing the control flow statement and unnecessary edges.
3486 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
3489 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3491 PR tree-optimization/67283
3492 * tree-sra.c (type_consists_of_records_p): Rename to...
3493 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3495 (completely_scalarize_record): Rename to...
3496 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
3498 (scalarize_elem): New.
3500 2015-08-28 Jiong Wang <jiong.wang@arm.com>
3502 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
3503 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
3504 (aarch64_symbol_type): Likewise.
3505 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3507 (aarch64_expand_mov_immediate): Likewise.
3508 (aarch64_print_operand): Likewise.
3509 (aarch64_classify_tls_symbol): Likewise.
3511 2015-08-28 Richard Biener <rguenther@suse.de>
3513 * cgraphunit.c (symbol_table::compile): Move early debug generation
3515 (symbol_table::finalize_compilation_unit): ... back here and
3516 add a !seen_error () guard.
3518 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3520 * toplev.c (process_options): Do not use flag_loop_block,
3521 flag_loop_interchange, and flag_loop_strip_mine. Add check for
3522 flag_loop_optimize_isl.
3524 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3526 * Makefile.in (OBJS): Remove graphite-blocking.o and
3527 graphite-interchange.o.
3528 * common.opt (floop-strip-mine, floop-interchange, floop-block):
3529 Alias of floop-nest-optimize.
3530 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
3531 Document as alias of -floop-nest-optimize.
3532 * graphite-blocking.c: Remove.
3533 * graphite-interchange.c: Remove.
3534 * graphite-optimize-isl.c: Include dumpfile.h.
3535 (getScheduleForBand): Add dump for tiled loops. Use
3536 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
3537 * graphite-poly.c (scop_max_loop_depth): Remove.
3538 (print_scattering_function_1): Remove.
3539 (print_scattering_function): Remove.
3540 (print_scattering_functions): Remove.
3541 (debug_scattering_function): Remove.
3542 (debug_scattering_functions): Remove.
3543 (apply_poly_transforms): Remove use of flag_loop_block,
3544 flag_loop_strip_mine, and flag_loop_interchange.
3545 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
3547 (print_pdr_access_layout): Remove.
3548 (print_pdr): Print ISL representation.
3549 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
3550 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
3552 (openscop_print_pbb_domain): Remove.
3553 (print_pbb): Remove call to print_scattering_function.
3554 (openscop_print_scop_context): Remove.
3555 (print_scop_context): Do not print matrices anymore.
3556 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
3557 SCOP_TRANSFORMED_SCHEDULE.
3558 (print_isl_set): Add printing of a new line.
3559 (print_isl_map): Same.
3560 (print_isl_aff): Same.
3561 (print_isl_constraint): Same.
3562 (loop_to_lst): Remove.
3563 (scop_to_lst): Remove.
3564 (lst_indent_to): Remove.
3565 (print_lst): Remove.
3566 (debug_lst): Remove.
3567 (dot_lst_1): Remove.
3569 (reverse_loop_at_level): Remove.
3570 (reverse_loop_for_pbbs): Remove.
3571 * graphite-poly.h (pdr_dim_iter_domain): Remove.
3572 (pdr_nb_params): Remove.
3573 (pdr_alias_set_dim): Remove.
3574 (pdr_subscript_dim): Remove.
3575 (pdr_iterator_dim): Remove.
3576 (pdr_parameter_dim): Remove.
3577 (same_pdr_p): Remove.
3578 (struct poly_scattering): Remove.
3579 (struct poly_bb): Remove _original, _transformed, _saved.
3580 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
3581 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
3582 (PBB_NB_LOCAL_VARIABLES): Remove.
3583 (PBB_NB_SCATTERING_TRANSFORM): Remove.
3584 (schedule_to_scattering): Remove.
3585 (number_of_write_pdrs): Remove.
3586 (pbb_dim_iter_domain): Remove.
3587 (pbb_nb_params): Remove.
3588 (pbb_nb_scattering_orig): Remove.
3589 (pbb_nb_scattering_transform): Remove.
3590 (pbb_nb_dynamic_scattering_transform): Remove.
3591 (pbb_nb_local_vars): Remove.
3592 (pbb_iterator_dim): Remove.
3593 (pbb_parameter_dim): Remove.
3594 (psco_scattering_dim): Remove.
3595 (psct_scattering_dim): Remove.
3596 (psct_local_var_dim): Remove.
3597 (psco_iterator_dim): Remove.
3598 (psct_iterator_dim): Remove.
3599 (psco_parameter_dim): Remove.
3600 (psct_parameter_dim): Remove.
3601 (psct_dynamic_dim): Remove.
3602 (psct_static_dim): Remove.
3603 (psct_add_local_variable): Remove.
3604 (new_lst_loop): Remove.
3605 (new_lst_stmt): Remove.
3608 (lst_add_loop_under_loop): Remove.
3609 (lst_depth): Remove.
3610 (lst_dewey_number): Remove.
3611 (lst_dewey_number_at_depth): Remove.
3614 (lst_find_pbb): Remove.
3615 (find_lst_loop): Remove.
3616 (lst_find_first_pbb): Remove.
3617 (lst_empty_p): Remove.
3618 (lst_find_last_pbb): Remove.
3619 (lst_contains_p): Remove.
3620 (lst_contains_pbb): Remove.
3621 (lst_create_nest): Remove.
3622 (lst_remove_from_sequence): Remove.
3623 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
3624 (lst_niter_for_loop): Remove.
3625 (pbb_update_scattering): Remove.
3626 (lst_update_scattering_under): Remove.
3627 (lst_update_scattering): Remove.
3628 (lst_insert_in_sequence): Remove.
3629 (lst_replace): Remove.
3630 (lst_substitute_3): Remove.
3631 (lst_distribute_lst): Remove.
3632 (lst_remove_all_before_including_pbb): Remove.
3633 (lst_remove_all_before_excluding_pbb): Remove.
3634 (struct scop): Remove original_schedule, transformed_schedule, and
3636 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
3637 (SCOP_SAVED_SCHEDULE): Remove.
3638 (poly_scattering_new): Remove.
3639 (poly_scattering_free): Remove.
3640 (poly_scattering_copy): Remove.
3641 (store_scattering_pbb): Remove.
3642 (store_lst_schedule): Remove.
3643 (restore_lst_schedule): Remove.
3644 (store_scattering): Remove.
3645 (restore_scattering_pbb): Remove.
3646 (restore_scattering): Remove.
3647 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3648 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
3649 compute the scattering polyhedron dimension from the dimension of
3651 (build_scop_scattering): Update call to
3652 build_pbb_scattering_polyhedrons.
3653 (build_poly_scop): Remove call to scop_to_lst.
3654 * graphite.c (graphite_transform_loops): Add call to print_scop.
3655 (gate_graphite_transforms): Remove use of flag_loop_block,
3656 flag_loop_interchange, and flag_loop_strip_mine.
3658 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3660 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
3661 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
3662 -floop-nest-optimize.
3663 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
3664 (generate_luj_sepclass): Remove.
3665 (generate_luj_options): Remove.
3666 (set_options): Remove opt_luj.
3667 (scop_to_isl_ast): Remove opt_luj.
3668 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
3669 flag_loop_unroll_jam.
3670 (getPrevectorMap_full): Remove.
3671 (getScheduleForBandList): Remove map_sepcl.
3672 (getScheduleMap): Same.
3673 (apply_schedule_map_to_scop): Remove sepcl.
3674 (optimize_isl): Same.
3675 * graphite-poly.c (apply_poly_transforms): Remove check for
3676 flag_loop_unroll_jam.
3677 (new_poly_bb): Remove map_sepclass.
3678 * graphite-poly.h (struct poly_bb): Same.
3679 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
3680 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
3681 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
3682 * toplev.c (process_options): Remove flag_loop_unroll_jam.
3684 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
3687 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
3689 (UNSPEC_ADD_CARRY): Remove.
3690 (addqi3_cconly_overflow): New expander.
3691 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
3692 Adjust for changed add<mode>3_carry.
3693 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
3694 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
3695 (<plusminus_insn><mode>3_carry): Remove expander.
3696 (*<plusminus_insn><mode>3_carry): Split insn pattern to
3697 add<mode>3_carry and sub<mode>3_carry.
3698 (plusminus_carry_mnemonic): Remove code attribute.
3699 (add<mode>3_carry): Canonicalize insn pattern.
3700 (*addsi3_carry_zext): Ditto.
3701 (sub<mode>3_carry): Ditto.
3702 (*subsi3_carry_zext): Ditto.
3703 (adcx<mode>3): Remove insn pattern.
3704 (addcarry<mode>): New insn pattern.
3705 (subborrow<mode>): Ditto.
3706 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
3707 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
3708 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
3709 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
3710 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
3711 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
3712 Rewrite expander to not clobber carry flag chains.
3714 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
3716 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
3717 instead of a rotate.
3719 2015-08-27 Marek Polacek <polacek@redhat.com>
3722 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
3723 an entry into an irreducible region.
3725 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3727 * configure: Regenerate.
3729 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3731 PR tree-optimization/67283
3732 * tree-sra.c (type_consists_of_records_p): Rename to...
3733 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3735 (completely_scalarize_record): Rename to...
3736 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
3737 (scalarize_elem): New.
3739 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3741 * tree-sra.c (completely_scalarize_var): Rename to...
3742 (create_total_scalarization_access): ... Here. Drop call to
3743 completely_scalarize_record.
3745 (analyze_all_variable_accesses): Replace completely_scalarize_var
3746 with create_total_scalarization_access and completely_scalarize_record.
3748 2015-08-27 Alan Modra <amodra@gmail.com>
3751 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
3754 2015-08-27 Richard Biener <rguenther@suse.de>
3756 * passes.c (rest_of_decl_compilation): Guard early_global_decl
3757 call with !seen_error ().
3758 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
3759 early debug generation and finish...
3760 (symbol_table::compile): ... here to put it after a !seen_error ()
3763 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3765 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
3768 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3769 Andre Vieira <andre.simoesdiasvieira@arm.com>
3771 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
3772 (*cb<optab><mode>1): Likewise.
3773 (*tb<optab><mode>1): Likewise.
3774 (*cb<optab><mode>1): Likewise.
3775 * config/aarch64/iterators.md (inv_cb): New code attribute.
3777 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
3778 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
3780 2015-08-27 Richard Biener <rguenther@suse.de>
3782 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
3784 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
3786 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
3789 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3791 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
3794 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
3796 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
3797 floating point in VSX registers.
3798 (rs6000_output_move_128bit): Always print out the set insn if we
3799 can't generate an appropriate 128-bit move.
3800 (rs6000_generate_compare): Add support for IEEE 128-bit floating
3801 point in VSX registers comparisons.
3802 (rs6000_expand_float128_convert): Likewise.
3804 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
3805 predicate for only GPR hard registers.
3807 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
3808 modes to iterators. Add new iterators for moving 128-bit values in
3809 scalar FPR registers and VSX registers.
3810 (FMOVE128): Likewise.
3811 (FMOVE128_FPR): Likewise.
3812 (FMOVE128_GPR): Likewise.
3813 (FMOVE128_VSX): Likewise.
3814 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
3819 (RELOAD): Add IEEE 128-bit floating point modes.
3820 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
3821 floating point in VSX registers modes.
3822 (signbit<mode>2, IBM128 iterator): Likewise.
3823 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
3824 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
3826 (neg<mode>2, TFIFKF iterator): Likewise.
3827 (negtf2_internal): Likewise.
3829 (abs<mode>2, TFIFKF iterator): Likewise.
3830 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
3831 VSX insn support for negate, absolute value, and negative absolute
3833 (ieee_128bit_vsx_neg<mode>2): Likewise.
3834 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
3835 (ieee_128bit_vsx_abs<mode>2): Likewise.
3836 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
3837 (ieee_128bit_vsx_nabs<mode>2): Likewise.
3838 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
3839 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
3840 floating point in VSX registers.
3841 (unpack<mode>_dm): Likewise.
3842 (unpack<mode>_nodm): Likewise.
3843 (pack<mode>): Likewise.
3844 (unpackv1ti): Likewise.
3845 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
3846 (packv1ti): Likewise.
3847 (pack<mode>, FMOVE128_VSX iterator): Likewise.
3848 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
3850 (extenddftf2_internal): Likewise.
3851 (trunctfdf2): Likewise.
3852 (trunctfdf2_internal2): Likewise.
3853 (fix_trunc_helper): Likewise.
3854 (fix_trunctfdi2"): Likewise.
3855 (floatditf2): Likewise.
3856 (floatuns<mode>tf2): Likewise.
3857 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3858 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3859 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3860 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3861 (float<SDI:mode><IFKF:mode>2): Likewise.
3862 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3864 2015-08-26 Renlin Li <renlin.li@arm.com>
3866 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
3868 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3869 Jiong Wang <jiong.wang@arm.com>
3871 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
3872 (tlsie_tiny_<mode>): New define_insn.
3873 (tlsie_tiny_sidi): Likewise.
3874 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3876 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
3877 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
3879 (aarch64_expand_mov_immediate): Likewise.
3880 (aarch64_print_operand): Likewise.
3881 (arch64_classify_tls_symbol): Likewise.
3883 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3885 * config/arm/arm-arches.def: Replace single value flags with
3886 an initializer built from ARM_FSET_MAKE_CPU1.
3887 * config/arm/arm-cores.def: Likewise.
3888 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
3889 derivation from the ARM_CORE macro definition, use the given value
3891 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
3892 ARM_ARCH macro definition, use the given value instead.
3894 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3896 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
3898 (struct builtin_description): Replace field mask with field
3900 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
3901 (IWMMXT2_BUILTIN): Likewise.
3902 (IWMMXT2_BUILTIN2): Likewise.
3903 (FP_BUILTIN): Likewise.
3904 (CRC32_BUILTIN): Likewise.
3905 (CRYPTO_BUILTIN): Likewise.
3906 (iwmmx_mbuiltin): Likewise.
3907 (iwmmx2_mbuiltin): Likewise.
3908 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
3909 struct builtin_description.
3911 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3913 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
3914 (struct builtin_description): Change type of mask to unsigned
3916 * config/arm/arm-protos.h (insn_flags): Declare as type
3918 (tune_flags): Likewise.
3919 * config/arm/arm.c (feature_count): New.
3920 (insn_flags): Define as type arm_feature_set.
3921 (tune_flags): Likewise.
3922 (struct processors): Define field flags as type arm_feature_set.
3923 (all_cores): Update for change to struct processors.
3924 (all_architectures): Likewise.
3925 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
3927 (arm_option_override_internal): Likewise.
3928 (arm_option_override): Likewise.
3930 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3931 Jiong Wang <jiong.wang@arm.com>
3933 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
3934 tls size for tiny, small, large memory model.
3935 (aarch64_load_symref_appropriately): Support new symbol types.
3936 (aarch64_expand_mov_immediate): Likewise.
3937 (aarch64_print_operand): Likewise.
3938 (aarch64_classify_tls_symbol): Likewise.
3939 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
3940 (aarch64_symbol_type): Likewise.
3941 * config/aarch64/aarch64.md (tlsle): Deleted.
3942 (tlsle12_<mode>): New define_insn.
3943 (tlsle24_<mode>): Likewise.
3944 (tlsle32_<mode>): Likewise.
3945 (tlsle48_<mode>): Likewise.
3946 * doc/sourcebuild.texi (AArch64-specific attributes): Document
3949 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3951 * config/arm/arm-protos.h (FL_NONE): New.
3953 (arm_feature_set): New.
3954 (ARM_FSET_MAKE): New.
3955 (ARM_FSET_MAKE_CPU1): New.
3956 (ARM_FSET_MAKE_CPU2): New.
3957 (ARM_FSET_CPU1): New.
3958 (ARM_FSET_CPU2): New.
3959 (ARM_FSET_EMPTY): New.
3960 (ARM_FSET_ANY): New.
3961 (ARM_FSET_HAS_CPU1): New.
3962 (ARM_FSET_HAS_CPU2): New.
3963 (ARM_FSET_HAS_CPU): New.
3964 (ARM_FSET_ADD_CPU1): New.
3965 (ARM_FSET_ADD_CPU2): New.
3966 (ARM_FSET_DEL_CPU1): New.
3967 (ARM_FSET_DEL_CPU2): New.
3968 (ARM_FSET_UNION): New.
3969 (ARM_FSET_INTER): New.
3970 (ARM_FSET_XOR): New.
3971 (ARM_FSET_EXCLUDE): New.
3972 (AFM_FSET_IS_EMPTY): New.
3973 (ARM_FSET_CPU_SUBSET): New.
3975 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3977 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
3978 SYMBOL_TLSLE to SYMBOL_TLSLE24.
3979 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3981 (aarch64_expand_mov_immediate): Likewise.
3982 (aarch64_print_operand): Likewise.
3983 (aarch64_classify_symbol): Likewise.
3985 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3987 * config/aarch64/aarch64.opt (mtls-size): New entry.
3988 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
3989 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
3990 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
3992 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3994 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
3995 ARM_CORE entry. Fix some white-space.
3996 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
3997 ARM_CORE definition.
3999 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4001 * fold-const.c (fold_binary_loc) : Move Optimize
4002 root(x)*root(y) as root(x*y) to match.pd.
4003 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
4004 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
4005 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
4006 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
4007 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
4008 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
4009 (mult (exps:s @0) (exps:s @1)) : New simplifier.
4010 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
4011 (rdiv @0 (exps:s @1)) : New simplifier.
4013 2015-08-25 Joseph Myers <joseph@codesourcery.com>
4015 * gcc.c (driver::finalize): Only assign to extra_specs if
4018 2015-08-25 Marek Polacek <polacek@redhat.com>
4021 * varasm.c (declare_weak): Return after giving an error.
4023 2015-08-25 David Malcolm <dmalcolm@redhat.com>
4025 * gcc-main.c (main): Add params to driver ctor.
4026 * gcc.c (class env_manager): New.
4028 (env_manager::init): New.
4029 (env_manager::get): New.
4030 (env_manager::xput): New.
4031 (env_manager::restore): New.
4032 Poison getenv and putenv.
4033 (DEFAULT_TARGET_SYSTEM_ROOT): New.
4034 (target_system_root): Update initialization to use
4035 DEFAULT_TARGET_SYSTEM_ROOT.
4036 (struct spec_list): Add field "default_ptr".
4037 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
4038 (init_spec): Likewise.
4039 (set_spec): Clear field "default_ptr".
4040 (read_specs): Free "spec" and "buffer".
4041 (xputenv): Reimplement in terms of env_manager.
4042 (process_command): Replace ::getenv calls with calls to the
4043 env_manager singleton.
4044 (process_brace_body): Free string in three places.
4045 (driver::driver): New.
4046 (driver::~driver): New.
4047 (used_arg): Convert from a function to...
4048 (class used_arg_t): ...this class, and...
4049 (used_arg): ...this new global instance.
4050 (used_arg_t::finalize): New function.
4051 (getenv_spec_function): Add "const" to local "value". Replace
4052 ::getenv call with call to the env_manager singleton.
4053 (path_prefix_reset): New function.
4054 (driver::finalize): New function.
4055 * gcc.h (driver::driver): New.
4056 (driver::~driver): New.
4057 (driver::finalize): New.
4059 2015-08-25 Nathan Sidwell <nathan@acm.org>
4061 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
4062 target doesn't have one.
4064 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
4067 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
4069 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
4072 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
4073 a define_insn, remove second alternative.
4075 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
4076 Joseph Myers <joseph@codesourcery.com>
4078 * gcc.c (struct switchstr): Expand comment.
4080 2015-08-25 Nathan Sidwell <nathan@acm.org>
4082 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
4083 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
4085 2015-08-25 Richard Biener <rguenther@suse.de>
4088 * genmatch.c (expr::gen_transform): Verify the result of
4089 builtin_decl_implicit.
4090 (dt_simplify::gen_1): Likewise.
4092 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
4094 * config/arm/constraints.md: Also list Cs and US ARM-specific
4095 constraints as used.
4097 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
4100 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
4102 (nonpic_symbol_mentioned_p): Likewise.
4103 (sh_delegitimize_address): Likewise.
4104 (sh_function_ok_for_sibcall): Take into account weak symbols.
4105 (sh_expand_sym_label2reg): New.
4106 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
4107 * config/sh/sh.md (UNSPEC_PCREL): New enum.
4108 (call_pcrel): Use sh_expand_sym_label2reg.
4109 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
4110 (symPCREL_label2reg) New expand.
4112 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
4114 * graphite-poly.c: Change type of region from void* to sese.
4115 * graphite-poly.h (struct scop): Changing the type of scop::region
4116 from void* to sese. Change accessor macro accordingly.
4117 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
4119 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
4121 * graphite-scop-detection.c (stmt_simple_for_scop_p):
4122 Constrain only on INTEGER_TYPE.
4124 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
4127 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
4128 -mefficient-unaligned-vsx on ISA 2.7.
4130 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
4131 option to a masked option.
4133 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
4134 logic for -mefficient-unaligned-vsx so that it is set via an arch
4135 ISA option, instead of being set if -mtune=power8 is set. Move
4136 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
4137 near other default option handling.
4139 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4141 * genflags.c (gen_macro): Delete.
4142 (gen_proto): Don't create GEN.*CALL.* macros.
4143 * gensupport.h (get_file_location): Declare.
4144 * gensupport.c (rtx_locs): New variable.
4145 (read_md_rtx): Record rtx locations.
4146 (get_file_location): New function.
4147 * target-insns.def (call, call_pop, call_value, call_value_pop)
4148 (sibcall, sibcall_value): New patterns.
4149 * gentarget-def.c (parse_argument): New function.
4150 (def_target_insn): Use it. Handle optional operands. Raise an
4151 error if an .md pattern has the wrong number of operands for the
4152 pattern name. Remove the names of unused operands from the prototype.
4153 * builtins.c (expand_builtin_apply): Use targetm functions
4154 instead of HAVE_call_value and GEN_CALL_VALUE.
4155 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
4156 and sibcall_value_pop.
4157 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
4159 * config/alpha/alpha.md (untyped_call): Likewise.
4160 * config/iq2000/iq2000.md (untyped_call): Likewise.
4161 * config/m68k/m68k.md (untyped_call): Likewise.
4162 * config/mips/mips.md (untyped_call): Likewise.
4163 * config/pa/pa.md (untyped_call): Likewise.
4164 * config/rs6000/rs6000.md (untyped_call): Likewise.
4165 * config/sparc/sparc.md (untyped_call): Likewise.
4166 * config/tilegx/tilegx.md (untyped_call): Likewise.
4167 * config/tilepro/tilepro.md (untyped_call): Likewise.
4168 * config/visium/visium.md (untyped_call): Likewise.
4169 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
4170 gen_call_value instead of GEN_CALL_VALUE.
4171 * config/arm/arm.md (untyped_call): Likewise.
4172 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
4175 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4177 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
4178 (have_cbranchcc4): New variable.
4179 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
4180 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
4181 (if_convert): Initialize have_cbranchcc4.
4183 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4185 * builtins.c (expand_cmpstrn): Rename to...
4186 (expand_cmpstrn_or_cmpmem): ...this.
4187 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
4188 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
4189 Remove mode argument.
4190 (expand_builtin): Update accordingly.
4192 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4194 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
4195 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
4196 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
4197 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
4198 Add predicates for operands 0 and 3.
4199 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
4201 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
4202 immediate_operand to nonmemory_operand.
4204 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4206 * df-scan.c (df_insn_info_init_fields): New function, split out
4208 (df_insn_create_insn_record): ...here.
4209 (df_insn_info_free_fields): New function, split out from...
4210 (df_insn_info_delete): ...here.
4211 (df_insn_rescan): Use the new functions instead of freeing and
4212 reallocating the df_insn_info.
4214 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4216 * doc/install.texi (Binaries): Remove links no longer valid.
4218 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
4220 * config/nvptx/mkoffload.c (process): Replace
4221 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
4223 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
4226 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
4228 2015-08-24 Renlin Li <renlin.li@arm.com>
4230 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
4231 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
4232 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
4233 * config/arm/constraints.md ("j"): Add check for high code.
4235 2015-08-24 Tom de Vries <tom@codesourcery.com>
4237 PR tree-optimization/65468
4238 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
4241 2015-08-24 Nathan Sidwell <nathan@acm.org>
4243 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
4244 change to nvptx_type_from_mode call. Use arg_promotion for both
4245 split and non-split args.
4247 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4249 * target-insns.def (movstr): New pattern.
4250 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
4251 (expand_movstr): Use targetm rather than HAVE_movstr/
4254 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4256 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
4259 2015-08-24 Andrew Pinski <apinski@cavium.com>
4261 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
4262 AARCH64_EXTRA_TUNING_OPTION.
4263 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
4265 (aarch64_extra_tuning_flags): Base the shifted value on the index
4266 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
4267 * config/aarch64/aarch64.c: Remove the last argument to
4268 AARCH64_EXTRA_TUNING_OPTION.
4270 2015-08-23 Nathan Sidwell <nathan@acm.org>
4272 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
4274 (nvptx_declare_function_name): Insert formatting tabs for
4277 2015-08-23 Tom de Vries <tom@codesourcery.com>
4279 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
4280 parm_decl, rather than generating a dummy default def in cfun.
4281 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
4282 ssa_name from cfun and child_fn do not share a stmt as def stmt.
4283 (move_stmt_op): Handle PARM_DECl.
4284 (gather_ssa_name_hash_map_from): New function.
4285 (move_sese_region_to_fn): Add default defs for function params, and add
4286 them to vars_map. Release copied ssa names.
4287 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
4289 2015-08-23 Tom de Vries <tom@codesourcery.com>
4291 * doc/sourcebuild.texi: Rename vect_no_int_max with
4292 vect_no_int_min_max. Update description.
4294 2015-08-22 Andrew Pinski <apinski@cavium.com>
4296 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
4297 * config/aarch64/aarch64-protos.h
4298 (aarch64_fusion_pairs_index): New enum.
4299 (aarch64_fusion_pairs): Base the shifted value on the index instead
4300 Rewrite AARCH64_FUSE_ALL to be based on the end index.
4301 of the argument to AARCH64_FUSION_PAIR.
4302 * config/aarch64/aarch64.c: Remove the last argument to
4303 AARCH64_FUSION_PAIR.
4305 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
4307 * dominance.c (new_zero_array): Define.
4308 (dom_info): Redefine as class with proper encapsulation.
4309 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
4311 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
4312 allocations/deallocations. Pass function as parameter (instead of
4314 (dom_info::get_idom): Define accessor method.
4315 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
4316 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
4317 (calculate_dominance_info): Adjust to use dom_info class.
4318 (verify_dominators): Likewise.
4320 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
4322 * print-rtl.c (print_rtx): Check the correct range for
4323 flag_dump_unnumbered_links to behave as documented.
4325 PR rtl-optimization/67227
4326 PR rtl-optimization/64164
4327 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
4328 (nonoverlapping_memrefs_p): Test offsets and sizes when given
4329 identical gimple_reg exprs.
4331 2015-08-21 Nathan Sidwell <nathan@acm.org>
4333 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
4335 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
4336 crtl->stack_alignment_needed to determine alignment.
4337 (nvptx_get_drap_rtx): New.
4338 (TARGET_GET_DRAP_RTX): Override.
4339 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
4341 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4343 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
4345 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4347 * configure.ac: Remove uwin* cases.
4348 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
4349 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
4350 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
4351 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
4352 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
4353 i[34567]86-*-uwin*, powerpc-*-beos*.
4355 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
4357 * gencodes.c (gencodes): Print the comma for the preceding
4358 enum value rather than the current one. Use aliased enum values
4359 rather than #defines for compiled-out patterns.
4360 (main): Update accordingly. Replace LAST_INSN_CODE with
4362 * lra.c (insn_code_data): Update accordingly.
4363 (finish_insn_code_data_once, get_static_insn_data): Likewise.
4364 * recog.h (target_recog): Likewise.
4365 (preprocess_insn_constraints): Change parameter to unsigned int.
4366 * recog.c (preprocess_insn_constraints): Likewise.
4367 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
4368 * tree-vect-stmts.c (vectorizable_operation): Simplify.
4370 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
4372 PR rtl-optimization/61657
4373 * loop-iv.c (iv_number_of_iterations): Declare up and down as
4374 unsigned. Remove superflous uint64_t cast.
4376 2014-08-21 Felix Yang <felix.yang@huawei.com>
4377 Jiji Jiang <jiangjiji@huawei.com>
4379 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
4380 argument and get builtin function code directly from CALL.
4381 (gimple_stringop_fixed_value): Modified accordingly.
4382 (gimple_stringops_transform, gimple_stringops_values_to_profile):
4383 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
4385 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
4387 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
4389 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4391 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
4393 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
4394 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
4395 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
4396 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
4397 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
4398 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
4399 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
4400 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
4401 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
4402 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
4404 * match.pd (SIN ) : New Operator.
4405 (TAN) : New Operator.
4406 (mult (SQRT@1 @0) @1) : New simplifier.
4407 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
4408 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
4409 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
4410 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
4411 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
4412 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
4413 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
4414 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
4415 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
4416 (rdiv @0 (POW:s @1 @2)) : New simplifier.
4418 2015-08-21 Bin Cheng <bin.cheng@arm.com>
4420 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
4421 loop if EXPR is simplified to const value.
4423 2015-08-21 Yury Gribov <y.gribov@samsung.com>
4425 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
4426 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
4428 2015-08-21 Richard Biener <rguenther@suse.de>
4431 * gimple-fold.c (replace_stmt_with_simplification): Assert
4432 seq is empty when replacing a call with itself but different
4434 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
4435 a call require that it is const.
4437 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4439 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
4440 * builtins.c (get_object_alignment_2): Adjust.
4441 * varasm.c (align_variable): Likewise.
4442 (get_variable_align): Likewise.
4443 (build_constant_desc): Likewise.
4444 (force_const_mem): Likewise.
4445 * doc/tm.texi.in: Likewise.
4446 * doc/tm.texi: Regenerate.
4448 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4450 * genconfig.c (main): Always define HAVE_cc0.
4451 * recog.c (rest_of_handle_peephole2): Adjust.
4453 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4455 * reorg.c (relax_delay_slots): Don't use #if to check value of
4458 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4460 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
4461 * targhooks.c (default_have_conditional_execution): Adjust.
4463 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
4465 * rtl.h (rtvec_all_equal_p): Declare.
4466 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
4467 * rtl.c (rtvec_all_equal_p): New function.
4468 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
4469 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
4470 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
4471 * config/arm/arm.c (neon_vdup_constant): Likewise.
4472 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
4473 * config/tilegx/constraints.md (W, Y): Likewise.
4474 * config/tilepro/constraints.md (W, Y): Likewise.
4475 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
4476 (classify_immediate): Use unwrap_const_vec_duplicate.
4477 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
4478 (reg_or_v2s8bit_operand): Likewise.
4479 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
4480 (reg_or_v4s8bit_operand): Likewise.
4482 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4484 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
4485 (vec_shasigma_be): New #define.
4486 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
4487 (VPMSUMH): Likewise.
4488 (VPMSUMW): Likewise.
4489 (VPMSUMD): Likewise.
4490 (VPMSUM): New BU_P8V_OVERLOAD_2.
4491 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
4492 entries for VEC_MADD and VEC_VPMSUM.
4494 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
4496 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
4497 Multiply argument avr_n_flash by 64 to match unit of "KiB".
4498 (avr_pgm_check_var_decl): Same.
4500 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
4502 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
4503 initialization of HFmode scalar type (float16_t) to...
4504 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
4507 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
4509 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
4510 having an -mfp16-format.
4512 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
4514 * config/i386/predicates.md (vector_all_ones_operand): Use
4515 CONSTM1_RTX to simplify definition.
4517 2015-08-20 Richard Biener <rguenther@suse.de>
4519 * toplev.c (compile_file): Remove loop calling late_global_decl
4521 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
4522 on decls we assembled.
4524 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
4526 * common/config/aarch64/aarch64-common.c
4527 (AARCH64_CPU_NAME_LENGTH): Delete.
4528 (aarch64_option_extension): New.
4529 (all_extensions): Likewise.
4530 (processor_name_to_arch): Likewise.
4531 (arch_to_arch_name): Likewise.
4533 (all_architectures): Likewise.
4534 (aarch64_get_extension_string_for_isa_flags): Likewise.
4535 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
4537 * config/aarch64/aarch64-protos.h
4538 (aarch64_get_extension_string_for_isa_flags): New.
4539 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
4540 (aarch64_option_print): Get the string to print from
4541 aarch64_get_extension_string_for_isa_flags.
4542 (aarch64_declare_function_name): Likewise.
4543 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
4544 (MCPU_TO_MARCH_SPEC): This.
4545 (ASM_CPU_SPEC): Use it.
4546 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
4547 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
4548 (EXTRA_SPEC_FUNCTIONS): Use it.
4550 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
4552 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
4553 expansion when !ISA_HAS_LWL_LWR.
4554 (mips_block_move_straight): Update the size of elements copied to
4555 account for alignment when !ISA_HAS_LWL_LWR.
4556 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
4558 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4560 * expr.c (expand_expr_real_2): Check gimple statement during
4563 2015-08-19 Magnus Granberg <zorry@gentoo.org>
4565 * common.opt (fstack-protector): Initialize to -1.
4566 (fstack-protector-all): Likewise.
4567 (fstack-protector-strong): Likewise.
4568 (fstack-protector-explicit): Likewise.
4569 * configure.ac: Add --enable-default-ssp.
4570 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
4571 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
4573 * doc/install.texi: Document --enable-default-ssp.
4574 * config.in: Regenerated.
4575 * configure: Likewise.
4577 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
4579 PR rtl-optimization/64164
4580 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
4581 (parm_in_stack_slot_p): ... this. Disregard mode, what
4582 matters is whether the parm will live in a pseudo or a stack
4584 (expand_one_ssa_partition): Deal with params without a default
4585 def. Disregard mode.
4586 * cfgexpand.h: Renamed function declaration.
4587 * tree-ssa-coalesce.c: Adjust.
4588 * function.c (split_complex_args): Allocate stack slot for
4589 unassigned parms before splitting.
4590 (parm_in_unassigned_mem_p): New. Use it instead of
4591 parm_maybe_byref_p throughout this file.
4592 (assign_parm_setup_block): Use it. Accept pseudos in the
4593 expand-assigned rtl.
4594 (assign_parm_setup_reg): Drop BLKmode requirement.
4595 (assign_parm_setup_stack): Allocate and fill in the address of
4596 unassigned MEM parms.
4598 2015-08-19 David Sherwood <david.sherwood@arm.com>
4600 * genmodes.c (emit_mode_unit_size_inline): New function.
4601 (emit_mode_unit_precision_inline): New function.
4602 (emit_insn_modes_h): Emit new #define. Emit new functions.
4603 (emit_mode_unit_size): New function.
4604 (emit_mode_unit_precision): New function.
4605 (emit_mode_adjustments): Add mode_unit_size adjustments.
4606 (emit_insn_modes_c): Emit new arrays.
4607 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
4608 use new inline methods.
4610 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4612 * config/aarch64/aarch64.c (bit_count): Delete prototype
4614 (aarch64_print_operand): Use popcount_hwi instead of the above.
4616 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4618 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
4621 2015-08-19 Marek Polacek <polacek@redhat.com>
4624 * gimple-ssa-isolate-paths.c
4625 (insert_trap_and_remove_trailing_statements): Rename to ...
4626 (insert_trap): ... this. Don't remove trailing statements; split
4628 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
4630 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
4633 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
4634 conditionalize the whole on __GNUC__. Add fallback code
4635 depending neither on undefined nor implementation-defined behaviour.
4637 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4639 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
4640 whitespaces with tab.
4642 2015-08-19 Florian Weimer <fweimer@redhat.com>
4644 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
4645 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
4646 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
4647 Move Name_Ids instantiation to the Prj.Proc package, to avoid
4650 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4652 * config/arm/arm.c (bounds_check): Use %wd print format
4653 for HOST_WIDE_INT arguments.
4655 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
4657 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
4658 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
4659 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
4660 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
4661 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
4662 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
4663 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
4664 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
4665 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
4668 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
4670 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
4671 function.c, graphite-scop-detection.c, haifa-sched.c,
4672 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
4673 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
4674 varasm.c: Remove typedefs of structs.
4676 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
4678 * config/rs6000/altivec.h (vec_adde): New define.
4679 (vec_addec): Likewise.
4680 (vec_double): Likewise.
4681 (vec_bperm): Likewise.
4683 * config/rs6000/rs6000-builtin.def (ADDE): New
4684 BU_ALTIVEC_OVERLOAD_3.
4686 (DOUBLE): New BU_VSX_OVERLOAD_1.
4687 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
4688 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
4689 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
4690 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
4691 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
4692 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
4693 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
4694 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
4695 and P8V_BUILTIN_VEC_VBPERMQ.
4697 2015-08-18 Jason Merrill <jason@redhat.com>
4699 * print-tree.c (print_node): Handle TREE_BINFO.
4701 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4704 * builtins.c (expand_builtin_signbit): Add asserts to make sure
4705 we can expand BUILT_IN_SIGNBIT inline.
4706 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
4707 * doc/extend.texi: Document the type-generic __builtin_signbit.
4709 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
4711 PR rtl-optimization/67218
4712 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
4713 (simplify_unary_operation_1): Use it.
4715 2015-08-18 Marek Polacek <polacek@redhat.com>
4718 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
4719 if the call isn't valid.
4720 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
4721 gimple_call_builtin_p.
4722 (call_may_clobber_ref_p_1): Likewise.
4723 (stmt_kills_ref_p): Likewise.
4725 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
4727 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
4728 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
4729 (mips_hard_regno_scratch_ok): Likewise.
4730 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
4731 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
4733 2015-08-18 Bin Cheng <bin.cheng@arm.com>
4735 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
4736 (determine_value_range): Call refine_value_range_using_guard for
4737 each loop initial condition to improve value range.
4739 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
4741 * config/i386/i386.c: Remove include of fibheap.h.
4743 2015-08-17 Richard Biener <rguenther@suse.de>
4745 PR tree-optimization/67221
4746 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
4747 (sccvn_dom_walker::before_dom_children): Mark backedges of
4748 non-executable blocks as not executable.
4750 2015-08-17 David Sherwood <david.sherwood@arm.com>
4752 * config/arm/arm.c (neon_element_bits): Replace call to
4753 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
4754 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
4755 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
4756 (neon_vdup_lane<mode>): Likewise.
4757 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
4758 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
4759 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
4760 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
4761 * config/spu/spu.c (arith_immediate_p): Likewise.
4762 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
4763 * expr.c (expand_expr_real_2): Likewise.
4764 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
4765 * simplify-rtx.c (simplify_immed_subreg): Likewise.
4766 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
4767 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
4769 * fold-const.c (fold_binary_loc): Replace call to
4770 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
4771 GET_MODE_UNIT_PRECISION (m).
4773 2015-08-17 Mike Stump <mikestump@comcast.net>
4775 * config/arm/arm.c (arm_block_move_unaligned_straight):
4776 Emit normal move instead of unaligned load when source or destination
4777 are appropriately aligned.
4779 2015-08-17 Richard Biener <rguenther@suse.de>
4780 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4783 * match.pd (div (coss (op @0) : New simplifier.
4785 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
4787 PR rtl-optimization/64164
4790 PR rtl-optimization/67000
4793 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4794 * tree-ssa-copyrename.c: Removed.
4795 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4796 -ftree-coalesce-vars.
4797 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4798 * common.opt (ftree-copyrename): Ignore.
4799 (ftree-coalesce-inlined-vars): Likewise.
4800 * doc/invoke.texi: Remove the ignored options above.
4801 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4802 * tree-ssa-coalesce.h: ... here.
4803 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4804 headers required by it.
4805 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4806 across variables when flag_tree_coalesce_vars. Check register
4807 use and promoted modes to allow coalescing. Do not coalesce
4808 maybe-byref parms with SSA_NAMEs of other variables, or
4809 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
4810 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4811 with its member functions to tree-ssa-coalesce.c.
4812 (var_map_base_init): Likewise. Renamed to
4813 compute_samebase_partition_bases.
4814 (partition_view_normal): Drop want_bases parameter.
4815 (partition_view_bitmap): Likewise.
4816 * tree-ssa-live.h: Adjust declarations.
4817 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
4818 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4819 default defs at the entry point.
4820 (dump_part_var_map): New.
4821 (compute_optimized_partition_bases): New, called by...
4822 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4823 of compute_samebase_partition_bases. Adjust.
4824 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4825 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
4826 (ssa_default_def_partition): New.
4827 (get_rtl_for_parm_ssa_default_def): New.
4828 (align_local_variable, add_stack_var): Support anonymous SSA
4830 (defer_stack_allocation): Likewise. Declare earlier.
4831 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4832 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4833 Do no record deferred-allocation marker in
4834 SA.partition_to_pseudo.
4835 (expand_stack_vars): Adjust check for the marker in it.
4836 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4837 redundant MEM attr setting.
4838 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4840 (expand_one_stack_var): ... this. New wrapper to check and
4841 skip already expanded SSA partitions.
4842 (record_alignment_for_reg_var): New, factored out of...
4843 (expand_one_var): ... this.
4844 (expand_one_ssa_partition): New.
4845 (adjust_one_expanded_partition_var): New.
4846 (expand_one_register_var): Check and skip already expanded SSA
4848 (expand_used_vars): Don't create DECLs for anonymous SSA
4849 names. Expand all SSA partitions, then adjust all SSA names.
4850 (pass::execute): Replace the loops that set
4851 SA.partition_to_pseudo from partition leaders and cleared
4852 DECL_RTL for multi-location variables, and that which used to
4853 rename vars and set attrs, with one that clears DECL_RTL and
4854 checks that PARMs and RESULTs default_defs match DECL_RTL.
4855 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4856 * emit-rtl.c: Include stor-layout.h.
4857 (set_reg_attrs_for_parm): Handle NULL decl.
4858 (set_reg_attrs_for_decl_rtl): Take mode from expression if
4860 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
4861 rather than its possibly-NULL DECL.
4862 * explow.c (promote_ssa_mode): New.
4863 * explow.h (promote_ssa_mode): Declare.
4864 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4865 (read_complex_part): Export.
4866 * expr.h (read_complex_part): Declare.
4867 * cfgexpand.h (parm_maybe_byref_p): Declare.
4868 * function.c: Include cfgexpand.h.
4869 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4870 (use_register_for_parm_decl): Wrapper for the above to
4871 special-case the result_ptr.
4872 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4873 (split_complex_args): Take assign_parm_data_all argument.
4874 Pass it to rtl_for_parm. Set up rtl and context for split
4875 args. Reset complex parm before fetching its default decl
4877 (assign_parms_unsplit_complex): Use the default-def complex
4878 parm rtl if it matches the components.
4879 (assign_parms_augmented_arg_list): Adjust.
4880 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4881 multiple locations. Recognize split complex args.
4882 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4883 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4884 (assign_parm_setup_block): Prefer SSA-assigned location, and
4885 fill in its address if the memory location of a maybe-byref
4886 parm was not assigned by cfgexpand.
4887 (assign_parm_setup_reg): Likewise. Adjust its mode as
4888 needed. Use entry_parm for equiv if stack_parm is NULL. Make
4889 sure passed_pointer parms don't need conversion. Copy address
4891 (assign_parm_setup_stack): Prefer SSA-assigned location.
4892 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4893 rtl before testing for pointer bounds. Special-case result_ptr.
4894 (expand_function_start): Maybe reset DECL_RTL of result.
4895 Prefer SSA-assigned location for result and static chain.
4896 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
4897 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
4898 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4899 anonymous SSA names. Use promote_ssa_mode.
4900 (get_temp_reg): Likewise.
4901 (remove_ssa_form): Adjust.
4902 * stor-layout.c (layout_decl): Don't set mem attributes of
4904 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4905 and get its reg_usage for reg invalidation.
4906 (compute_bb_dataflow): Pass it insn.
4907 (emit_notes_in_bb): Likewise.
4909 2015-08-14 Marek Polacek <polacek@redhat.com>
4911 * tree-core.h (tree_base): Fix typo.
4913 2015-08-14 Marek Polacek <polacek@redhat.com>
4916 * gimple.c (infer_nonnull_range_by_attribute): Check that the
4917 nonnull argument position is not outside function arguments.
4919 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
4922 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
4923 'lconst_atomic' with 'const_atomic'.
4924 (atomic_fetch_<optab><mode>): Likewise.
4925 (atomic_<optab>_fetch<mode>): Likewise.
4926 * config/aarch64/iterators.md (lconst-atomic): Move below
4928 (const_atomic): New.
4930 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
4931 Bernd Schmidt <bernds@codesourcery.com>
4933 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
4935 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
4936 (DWARF2_DEBUGGING_INFO): Don't define.
4937 * debug.h (dwarf2_lineno_debug_hooks): Declare.
4938 * toplev.c (process_options): Add a case for it.
4939 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
4940 (dwarf2out_init): Skip most initializations if
4941 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
4943 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
4944 DWARF2_LINENO_DEBUGGING_INFO.
4945 * opts.c (set_debug_level): Likewise.
4947 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
4949 * config/arm/types.md (is_neon_type): Add missing types.
4951 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
4953 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
4955 * config/i386/i386.c (PTA_SKYLAKE): New macros.
4956 (processor_alias_table): Add skylake description.
4957 (enum processor_model): Add skylake processor.
4958 (arch_names_table): Add skylake record.
4959 * doc/invoke.texi: Add skylake item.
4961 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
4963 * ira-int.h: Include recog.h.
4964 * ira-build.c: Don't include recog.h.
4965 * ira-color.c: Likewise.
4966 * ira-conflicts.c: Likewise.
4967 * ira-costs.c: Likewise.
4968 * ira-emit.c: Likewise.
4969 * ira-lives.c: Likewise.
4971 * sched-deps.c: Likewise.
4972 * sel-sched.c: Likewise.
4973 * target-globals.c: Likewise.
4975 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
4978 * reload1.c (elimination_costs_in_insn): Make it obvious to the
4979 compiler that the n_dups and n_operands loop bounds are invariant.
4981 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4983 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
4984 expressions in A and B.
4986 2015-08-13 Richard Biener <rguenther@suse.de>
4988 * tree.c (nonnull_arg_p): Move from ...
4989 * tree-vrp.c (nonnull_arg_p): ... here.
4990 * tree.h (nonnull_arg_p): Declare.
4991 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
4992 here, register ptr != 0 for nonnull_arg_p pointer arguments.
4993 Properly initialize static chain and by-reference result pointer.
4994 (run_scc_vn): Adjust.
4996 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
4998 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
5001 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
5003 * config/aarch64/aarch64-protos.h
5004 (aarch64_gen_atomic_cas): Declare.
5005 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
5006 Choose appropriate instruction pattern for the target.
5007 (aarch64_gen_atomic_cas): New.
5008 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
5009 (atomic_compare_and_swap<mode>_1): Rename to
5010 aarch64_compare_and_swap<mode>. Fix some indentation.
5011 (aarch64_compare_and_swap<mode>_lse): New.
5012 (aarch64_atomic_cas<mode>): New.
5014 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
5016 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
5019 2015-08-13 Richard Biener <rguenther@suse.de>
5021 PR tree-optimization/67191
5022 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
5023 assert we value-numbered last stmts operand because it can validly
5024 trigger for unreachable code.
5026 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5028 PR rtl-optimization/67103
5029 * ifcvt.c (noce_try_store_flag_constants): Move
5030 x = (-(test != 0) & (b - a)) + a transformation to...
5031 (noce_try_cmove): ... Here. Try it if normal conditional
5034 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
5036 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
5038 * config/mips/mips.md (processor): Remove w32 and w64.
5040 2015-08-13 Richard Biener <rguenther@suse.de>
5042 PR tree-optimization/66502
5043 PR tree-optimization/67167
5044 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
5046 (vn_phi_lookup): Adjust.
5047 (vn_phi_insert): Likewise.
5048 (visit_phi): Prefer to value-number to another PHI node
5049 over value-numbering to a PHI argument.
5050 (init_scc_vn): Mark DFS back edges.
5052 2015-08-13 Richard Biener <rguenther@suse.de>
5054 * gimple.h (gcall::code_): New constant static member.
5055 (gcond::code_): Likewise.
5056 * gimple.c (gcall::code_): Define.
5057 (gcond::code_): Likewise.
5058 (is_a_helper <const gcond *>): Add.
5059 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
5060 and forward to a new gcall overload with less checking and a
5061 cheaper way to access the operand.
5062 (gimple_call_lhs_ptr): Likewise.
5063 (gimple_call_set_lhs): Likewise.
5064 (gimple_call_internal_p): Likewise.
5065 (gimple_call_with_bounds_p): Likewise.
5066 (gimple_call_set_with_bounds): Likewise.
5067 (gimple_call_internal_fn): Likewise.
5068 (gimple_call_set_ctrl_altering): Likewise.
5069 (gimple_call_ctrl_altering_p): Likewise.
5070 (gimple_call_fntype): Likewise.
5071 (gimple_call_fn): Likewise.
5072 (gimple_call_fn_ptr): Likewise.
5073 (gimple_call_set_fndecl): Likewise.
5074 (gimple_call_fndecl): Likewise.
5075 (gimple_call_chain): Likewise.
5076 (gimple_call_num_args): Likewise.
5077 (gimple_call_arg): Likewise.
5078 (gimple_call_arg_ptr): Likewise.
5079 (gimple_call_set_arg): Likewise.
5080 (gimple_call_noreturn_p): Likewise.
5081 (gimple_cond_code): Likewise.
5082 (gimple_cond_lhs): Likewise.
5083 (gimple_cond_rhs): Likewise.
5084 (gimple_has_lhs): Reduce checking.
5086 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5089 * match.pd (div (mult @0 @1) @1) : New simplifier.
5091 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
5094 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
5095 predicate to allow construction of vector constants using the
5096 VSLDOI vector shift instruction.
5098 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
5101 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
5102 the number of bytes to be shifted left and filled in with either
5103 all zero or all one bits.
5104 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
5106 (output_vec_const_move): On power8, generate XXLORC to generate
5107 a vector constant with all 1's. Do a split if we need to use a
5110 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
5111 properly test for the MSB.
5113 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
5114 vector constants that can be created with VSLDOI.
5116 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
5119 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
5120 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
5121 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
5122 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
5123 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
5124 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5125 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
5126 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
5127 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
5129 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
5131 * config/xtensa/constraints.md (define_constraint "Y"): New
5133 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
5134 * config/xtensa/linux.h (ASM_SPEC): Likewise.
5135 * config/xtensa/predicates.md (move_operand): Match constants
5136 and symbols in the presence of TARGET_AUTO_LITPOOLS.
5137 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
5138 immediate references to TLS data.
5139 (xtensa_emit_move_sequence): Don't force constants to memory in
5140 the presence of TARGET_AUTO_LITPOOLS.
5141 (print_operand): Add 'y' format, same as default, but capable of
5142 printing SF mode constants as well.
5143 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
5144 (movsf_internal): Add movi pattern that loads literal.
5145 (movsf, movdf): Don't force constants to memory in the presence
5146 of TARGET_AUTO_LITPOOLS.
5147 (movdf_internal): Add 'Y' constraint.
5148 * config/xtensa/xtensa.opt (mauto-litpools): New option.
5149 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
5151 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
5153 * config/arm/arm-fpus.def: Replace booleans with feature flags.
5155 * config/arm/arm.c (ARM_FPU): Update macro.
5156 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
5157 (TARGET_FP16): Likewise.
5158 (TARGET_CRYPTO): Likewise.
5159 (TARGET_NEON): Likewise.
5160 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
5163 2015-08-12 Tom de Vries <tom@codesourcery.com>
5167 * doc/install.texi: Remove --with_host_libstdcxx item. Update
5168 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
5169 accordingly. Mention default for --with-stage1-ldflags.
5171 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
5173 * config/arm/arm.h (arm_fpu_feature_set): New.
5174 (ARM_FPU_FSET_HAS): New.
5178 (FPU_FL_CRYPTO): New.
5180 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5182 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
5183 after -mcmodel=large -fPIC sorry.
5185 2015-08-12 Richard Biener <rguenther@suse.de>
5187 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
5188 comparison operand order and commutative ternary op operand order.
5189 (sccvn_dom_walker::cond_stack): New state to track temporary
5191 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
5193 (sccvn_dom_walker::record_cond): Add a single temporary conditional
5195 (sccvn_dom_walker::record_conds): Add a temporary conditional
5196 expressions and all related expressions also true/false.
5197 (sccvn_dom_walker::before_dom_children): Record temporary
5198 expressions based on the controlling condition of a single
5199 predecessor. When trying to simplify a conditional statement
5200 lookup expressions we might have inserted earlier.
5202 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
5205 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
5206 to ARM core registers.
5208 2015-08-12 Nathan Sidwell <nathan@acm.org>
5210 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
5211 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
5213 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
5215 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
5217 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
5219 2015-08-12 Richard Biener <rguenther@suse.de>
5221 * gimple.h (remove_pointer): New trait.
5222 (GIMPLE_CHECK2): New inline template function.
5223 (gassign::code_): New constant static member.
5224 (is_a_helper<const gassign *>): Add.
5225 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
5226 and forward to a new gassign overload with less checking and a
5227 cheaper way to access the operand.
5228 (gimple_assign_lhs_ptr): Likewise.
5229 (gimple_assign_set_lhs): Likewise.
5230 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
5232 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
5234 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
5236 (gimple_assign_rhs_code): Likewise.
5237 * gimple.c (gassign::code_): Define.
5239 2015-08-12 Richard Biener <rguenther@suse.de>
5241 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5242 Eliminate edges marked as not executable by SCCVN.
5243 * tree-ssa-sccvn.c: Include gimple-iterator.h.
5244 (cond_dom_walker): Rename to sccvn_dom_walker.
5245 (sccvn_dom_walker::before_dom_children): Value-number defs
5247 (run_scc_vn): Remove loop value-numbering all SSA names.
5248 Drop not visited SSA names to varying.
5250 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
5252 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
5253 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
5254 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
5255 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
5256 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
5257 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5258 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
5259 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
5260 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
5262 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
5265 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
5266 to enum feature_priority and feature_list.
5267 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
5268 and isa_names_table.
5270 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
5272 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
5275 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5279 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
5280 account when deciding what was the command-line status.
5282 2015-08-11 Nathan Sidwell <nathan@acm.org>
5284 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
5286 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
5287 we're not the only contributor to target phi.
5289 2015-08-11 Jiong Wang <jiong.wang@arm.com>
5291 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
5294 2015-08-11 Tom de Vries <tom@codesourcery.com>
5296 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
5298 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
5300 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
5302 * config/i386/i386.md (cpu): Remove knl.
5304 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5308 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
5309 open-coded sequence.
5310 * omp-low.c (oacc_process_reduction_data): Remove handline of
5311 GOMP_DEVICE_HOST_NONSHM.
5313 * lto-streamer-in.c (lto_input_mode_table): Adjust to
5314 GET_MODE_INNER changes.
5316 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5317 Ilya Verbin <ilya.verbin@intel.com>
5319 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
5321 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5323 * doc/options.texi (EnabledBy): Document that the argument must be
5325 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
5326 Not enabled by -Wall.
5327 * optc-gen.awk: Give nicer error messages. Detect if the argument
5328 of EnabledBy is not a Common option.
5329 * common.opt (Wnull-dereference): Not enabled by -Wall.
5330 * opt-functions.awk (lang_enabled_by): Nicer error messages.
5332 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
5334 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
5335 model == 0x4f as Broadwell.
5337 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
5339 PR rtl-optimization/67028
5340 * combine.c (simplify_comparison): Fix comment. Rearrange code.
5341 Add test to see if a const_int fits in the new mode.
5343 2015-08-07 DJ Delorie <dj@redhat.com>
5345 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
5347 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
5349 PR rtl-optimization/67029
5350 * ira-color.c: Include "recog.h" before including "ira-int.h".
5351 * target-globals.c: Likewise.
5352 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
5353 adds an alternative_mask argument and use it instead of
5354 preferred_alternatives.
5355 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
5356 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
5357 * sched-deps.c: Include "ira-int.h" after including "ira.h".
5358 (sched_analyze_insn): Update call to
5359 ira_implicitly_set_insn_hard_regs.
5360 * sel-sched.c: Include "ira-int.h" after including "ira.h".
5361 (implicit_clobber_conflict_p): Update call to
5362 ira_implicitly_set_insn_hard_regs.
5364 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
5366 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
5368 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
5371 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
5372 currently_expanding_to_rtl is set.
5374 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5376 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
5377 * configure: Regenerate.
5379 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5380 Jiong Wang <jiong.wang@arm.com>
5382 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
5383 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
5384 (REG_CLASS_NAMES): Likewise.
5385 (REG_CLASS_CONTENTS): Likewise.
5386 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
5387 (aarch64_register_move_cost): Likewise.
5388 (aarch64_load_symref_appropriately): Invoke the new added pattern if
5390 * config/aarch64/constraints.md (Uc0): New constraint.
5392 2015-08-06 Jiong Wang <jiong.wang@arm.com>
5394 * config/aarch64/constraints.md (Usf): Add the test of
5395 aarch64_is_noplt_call_p.
5397 2015-08-06 Jiong Wang <jiong.wang@arm.com>
5399 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
5401 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
5402 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
5403 (call_symbol): Likewise.
5405 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
5407 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
5408 for vectorizing multiplication patterns.
5409 * tree-vectorizer.h: Adjust the number of patterns.
5411 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
5413 * config/i386/sse.md (*vec_concatv2df): Declare added
5414 alternatives as sselog type.
5416 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5418 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
5421 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5423 * config/s390/s390.c (s390_expand_tbegin): Expand either
5424 tbegin_1_z13 or tbegin_1 depending on VX flag.
5425 * config/s390/s390.md ("tbegin_1_z13"): New expander.
5427 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5429 * config/s390/s390.opt: Clarify description for -mzvector
5430 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
5433 2015-08-06 Richard Biener <rguenther@suse.de>
5435 * gimple.h (gimple_call_set_fn): Access op member directly.
5436 (gimple_call_chain_ptr): Likewise.
5437 (gimple_call_set_chain): Likewise.
5438 (gimple_cond_lhs_ptr): Likewise.
5439 (gimple_cond_set_lhs): Likewise.
5440 (gimple_cond_rhs_ptr): Likewise.
5441 (gimple_cond_set_rhs): Likewise.
5442 (gimple_cond_true_label): Likewise.
5443 (gimple_cond_set_true_label): Likewise.
5444 (gimple_cond_set_false_label): Likewise.
5445 (gimple_cond_false_label): Likewise.
5446 (gimple_label_label): Likewise.
5447 (gimple_label_set_label): Likewise.
5448 (gimple_goto_set_dest): Likewise.
5449 (gimple_asm_input_op): Likewise.
5450 (gimple_asm_input_op_ptr): Likewise.
5451 (gimple_asm_set_input_op): Likewise.
5452 (gimple_asm_output_op): Likewise.
5453 (gimple_asm_output_op_ptr): Likewise.
5454 (gimple_asm_set_output_op): Likewise.
5455 (gimple_asm_clobber_op): Likewise.
5456 (gimple_asm_set_clobber_op): Likewise.
5457 (gimple_asm_label_op): Likewise.
5458 (gimple_asm_set_label_op): Likewise.
5459 (gimple_switch_index): Likewise.
5460 (gimple_switch_index_ptr): Likewise.
5461 (gimple_return_retval_ptr): Likewise.
5462 (gimple_return_retval): Likewise.
5463 (gimple_return_set_retval): Likewise.
5464 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
5465 (gimple_switch_label): Likewise.
5466 (gimple_switch_set_label): Likewise.
5468 2015-08-06 Richard Biener <rguenther@suse.de>
5470 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
5471 bool comparison canonicalization and restrict to integers.
5473 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
5475 * coretypes.h (enum symbol_visibility): Relocate here.
5476 * flag-types.h (enum symbol_visibility): Remove.
5477 * tree-core.h (enum symbol_visibility): Remove.
5479 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
5482 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
5483 for no_split_stack function attribute along with
5485 (rs6000_expand_split_stack_prologue): Likewise.
5487 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5488 Jeff Law <law@redhat.com>
5491 * doc/invoke.texi (Wnull-dereference): New.
5492 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
5493 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
5494 Warn for potential NULL dereferences.
5495 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
5496 * ubsan.c (instrument_nonnull_arg): Call
5497 infer_nonnull_range_by_attribute.
5498 (instrument_nonnull_return): Likewise.
5499 * common.opt (Wnull-dereference); New.
5500 * gimple.c (infer_nonnull_range): Remove bool arguments.
5501 (infer_nonnull_range_by_dereference): New.
5502 (infer_nonnull_range_by_attribute): New.
5503 * gimple.h: Update declarations.
5505 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5507 * gensupport.c (sequence_num): Replace with...
5508 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
5509 ...these new variables.
5510 (init_rtx_reader_args_cb): Update accordingly.
5511 (get_num_code_insns): Likewise.
5512 (read_md_rtx): Rework to use a while loop and get_c_test.
5513 Use the new counters. Remove redundant DEFINE_SUBST case.
5514 * genoutput.c (gen_split): Delete.
5515 (main): Don't call it.
5517 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5519 * gensupport.h (get_c_test): Declare.
5520 * gensupport.c (get_c_test): New function.
5521 * genconditions.c (main): Use it.
5522 * genrecog.c (validate_pattern): Likewise.
5523 (match_pattern_1): Likewise. Remove c_test argument.
5524 (match_pattern): Update accordingly and remove c_test argument.
5525 (main): Update accordingly.
5527 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5529 * gensupport.h (get_num_insn_codes): Declare.
5530 * gensupport.c (get_num_insn_codes): New function.
5531 * genattrtab.c (optimize_attrs): Rename max_insn_code to
5533 (main): Likewise. Use get_num_insn_codes.
5534 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
5536 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5539 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
5540 is zero- rather than sign-extended.
5542 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5544 * target-insns.def (can_extend): Delete.
5546 2015-08-05 Richard Biener <rguenther@suse.de>
5548 PR tree-optimization/67121
5549 * tree-if-conv.c (combine_blocks): Clear range-info produced
5550 by stmts no longer executed conditionally.
5552 2015-08-05 Nick Clifton <nickc@redhat.com>
5554 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
5555 to allow identical far pointers to remain.
5557 2015-08-05 Richard Biener <rguenther@suse.de>
5560 * match.pd: Compare address bases with == if they are decls
5561 or SSA names, not operand_equal_p. Otherwise fail.
5563 2015-08-05 Richard Biener <rguenther@suse.de>
5565 PR tree-optimization/67055
5566 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
5569 * g++.dg/torture/pr67055.C: New testcase.
5571 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5573 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
5575 (define_attr "enabled"): Handle avx521vl and noavx512vl.
5576 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
5577 AVX-512 alternative out of SSE.
5578 (define_insn "*vec_concatv2df"): Ditto.
5580 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5582 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
5583 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
5584 CODE_FOR_avx_ptestv4di.
5585 * config/i386/sse.md (define_mode_iterator V_AVX): New.
5586 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
5587 (define_insn "avx_ptest256"): Merge this ...
5588 (define_insn "sse4_1_ptest"): And this ...
5589 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
5591 2015-08-05 Richard Biener <rguenther@suse.de>
5593 PR tree-optimization/67109
5594 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
5595 against too big groups. Print whether this is a load or store
5596 group. Rename from ...
5597 (vect_analyze_group_access): ... this which is now a wrapper
5598 dissolving an invalid group.
5599 (vect_analyze_data_ref_accesses): Print whether this is a load
5602 2015-08-05 Richard Biener <rguenther@suse.de>
5605 * match.pd: Guard const_binop result checking against NULL_TREE
5608 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
5610 * cse.c (cse_insn): Restoring old behaviour for src_eqv
5611 when dest and value in the REG_EQUAL are same and dest
5614 2015-08-04 Anatoly Sokolov <aesok@post.ru>
5616 * config/moxie/moxie.h (PRINT_OPERAND,
5617 PRINT_OPERAND_ADDRESS): Remove macros.
5618 * config/moxie/moxie-protos.h (moxie_print_operand,
5619 moxie_print_operand_address): Remove declaration.
5620 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
5621 TARGET_PRINT_OPERAND_ADDRESS): Define.
5622 (moxie_print_operand, moxie_print_operand_address): Make static.
5624 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
5627 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
5628 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
5630 2015-08-04 Richard Biener <rguenther@suse.de>
5632 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
5634 (dt_operand::gen_gimple_expr): Adjust.
5636 2015-08-04 Richard Biener <rguenther@suse.de>
5638 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
5639 bool compares on RHS.
5640 * match.pd: Add X ==/!= !X is false/true pattern.
5642 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
5644 * config/aarch64/aarch64.c: Change inner loop statement cost
5645 to be consistent with other targets.
5647 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
5649 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
5652 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
5654 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
5655 (machine_function): Remove pseudos field.
5657 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5659 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5660 Exit early and use target_option_current_node if processing current
5663 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5665 * doc/extend.texi (AArch64 Function Attributes): New node.
5666 (AArch64 Pragmas): Likewise.
5668 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5670 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5671 Initialize simd builtins if TARGET_SIMD.
5672 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
5673 Make sure that the builtins are initialized only once no matter how
5674 many times the function is called.
5675 (aarch64_init_builtins): Unconditionally initialize crc builtins.
5676 (aarch64_relayout_simd_param): New function.
5677 (aarch64_simd_expand_args): Use above during argument expansion.
5678 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
5679 simd builtins if TARGET_SIMD.
5680 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
5682 (aarch64_relayout_simd_types): Likewise.
5684 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5686 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
5687 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
5688 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
5689 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5691 (aarch64_reset_previous_fndecl): New function.
5692 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
5694 * config/aarch64/aarch64-c.c: New file.
5695 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
5696 Push and pop options at beginning and end. Remove ifdef
5697 __ARM_FEATURE_CRC32.
5698 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
5699 Add pragma +nothing+simd and +nothing+crypto where appropriate.
5700 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
5701 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
5703 (aarch64_register_pragmas): Likewise.
5704 (aarch64_reset_previous_fndecl): Likewise.
5705 (aarch64_process_target_attr): Likewise.
5706 (aarch64_override_options_internal): Likewise.
5708 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5710 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
5712 (aarch64_can_inline_p): Likewise.
5713 (TARGET_CAN_INLINE_P): Define.
5715 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5717 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
5718 Remove static. Handle OPT_mgeneral_regs_only,
5719 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
5720 OPT_momit_leaf_frame_pointer.
5721 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
5722 (aarch64_attr_opt_type): New enum.
5723 (aarch64_attribute_info): New struct.
5724 (aarch64_handle_attr_arch): New function.
5725 (aarch64_handle_attr_cpu): Likewise.
5726 (aarch64_handle_attr_tune): Likewise.
5727 (aarch64_handle_attr_isa_flags): Likewise.
5728 (aarch64_attributes): New table.
5729 (aarch64_process_one_target_attr): New function.
5730 (num_occurences_in_str): Likewise.
5731 (aarch64_process_target_attr): Likewise.
5732 (aarch64_option_valid_attribute_p): Likewise.
5733 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
5734 * config/aarch64/aarch64-protos.h: Include input.h
5735 (aarch64_handle_option): Declare prototype.
5737 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5739 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
5740 * config/aarch64/aarch64.c: Include target-globals.h
5741 (aarch64_previous_fndecl): New variable.
5742 (aarch64_set_current_function): New function.
5743 (TARGET_SET_CURRENT_FUNCTION): Define.
5745 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5747 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
5748 (explicit_arch): Likewise.
5749 (x_aarch64_isa_flags): Likewise.
5750 (mgeneral-regs-only): Mark as Save.
5751 (mfix-cortex-a53-835769): Likewise.
5752 (mcmodel=): Likewise.
5753 (mstrict-align): Likewise.
5754 (momit-leaf-frame-pointer): Likewise.
5755 (mtls-dialect): Likewise.
5756 (master=): Likewise.
5757 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
5758 (aarch64_isa_flags): Remove extern declaration.
5759 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
5760 to indicate success or failure.
5761 (aarch64_validate_march): Likewise.
5762 (aarch64_validate_mtune): Likewise.
5763 (aarch64_isa_flags): Delete.
5764 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
5765 instead of aarch64_isa_flags.
5766 (aarch64_get_tune_cpu): New function.
5767 (aarch64_get_arch): Likewise.
5768 (aarch64_override_options): Use above and set up explicit_tune_core
5770 (aarch64_print_extension): Move earlier in file. Add isa_flags
5771 argument and use that instead of the global aarch64_isa_flags.
5772 (aarch64_option_save): New function.
5773 (aarch64_option_restore): Likewise.
5774 (aarch64_option_print): Likewise.
5775 (aarch64_declare_function_name): Likewise.
5776 (aarch64_start_file): Delete.
5777 (TARGET_ASM_FILE_START): Do not define.
5778 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
5779 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
5782 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5784 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
5785 flag_omit_leaf_frame_pointer to 2.
5787 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5789 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
5791 (TARGET_FIX_ERR_A53_835769): New macro.
5792 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5793 handling of opts->x_aarch64_fix_a53_err835769.
5794 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
5795 than aarch64_fix_a53_err835769.
5796 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
5797 * config/aarch64/aarch64-linux.h: Likewise.
5799 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
5801 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
5802 ix86_expand_int_movcc as boolean.
5804 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5806 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
5807 (aarch64_cpu_string): Likewise.
5808 (aarch64_tune_string): Likewise.
5809 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
5810 (aarch64_parse_extension): Return aarch64_parse_opt_result.
5811 Add extra argument to put result into.
5812 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
5813 (aarch64_parse_cpu): Add arguments to put results into. Return
5814 aarch64_parse_opt_result.
5815 (aarch64_parse_tune): Likewise.
5816 (aarch64_override_options_after_change_1): New function.
5817 (aarch64_override_options_internal): New function.
5818 (aarch64_validate_mcpu): Likewise.
5819 (aarch64_validate_march): Likewise.
5820 (aarch64_validate_mtune): Likewise.
5821 (aarch64_override_options): Update to reflect above changes.
5822 Move some logic into aarch64_override_options_internal.
5823 Initialize target_option_default_node and target_option_current_node.
5824 (aarch64_override_options_after_change): Move logic into
5825 aarch64_override_options_after_change_1 and call it with global_options.
5826 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
5827 flag values from that.
5829 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5831 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5832 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
5833 * config/aarch64/aarch64.c (struct processor): Add arch field.
5834 (all_architectures): Handle above, move above all_cores.
5835 (all_cores): Handle above.
5836 (aarch64_parse_arch): Handle above changes.
5837 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
5838 above. Update comments.
5839 (armv8.1-a): Likewise.
5840 * config/aarch64/aarch64-cores.def: Update according to above.
5841 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
5842 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
5843 aarch64_arch_driver_info.
5845 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5847 * config/aarch64/aarch64.c (struct processor): Add ident field.
5848 Rename core sched_core.
5849 (all_cores): Handle above changes.
5850 (all_architectures): Likewise.
5851 (aarch64_parse_arch): Likewise.
5852 (aarch64_override_options): Likewise.
5854 2015-08-04 Richard Biener <rguenther@suse.de>
5856 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
5857 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
5858 comparisons embedded in [VEC_]COND_EXPRs.
5860 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
5862 * tree-if-conv.c: Fix various typos in comments.
5863 * tree-vect-stmts.c: Likewise.
5865 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5867 PR tree-optimization/67043
5868 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
5869 preheader after hoisting invariant in it.
5870 (find_defs): Force recomputation of all luids.
5872 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
5874 * config/rs6000/htm.md (tabort.): Restrict the source operand to
5875 using a base register.
5877 2015-08-03 David Malcolm <dmalcolm@redhat.com>
5879 * main.c (main): Pass in NULL for toplev's external_timer.
5880 * timevar.c: Include coretypes.h.
5881 (class timer::named_items): New.
5882 (timer::named_items::named_items): New.
5883 (timer::named_items::~named_items): New.
5884 (timer::named_items::push): New.
5885 (timer::named_items::pop): New.
5886 (timer::named_items::print): New.
5887 (timer::timer): Initialize field "m_jit_client_items".
5888 (timer::~timer): New.
5889 (timer::push): Move bulk of implementation to...
5890 (timer::push_internal): ...here. New function.
5891 (timer::pop): Move bulk of implementation to...
5892 (timer::pop_internal): ...here. New function.
5893 (timer::push_client_item): New.
5894 (timer::pop_client_item): New.
5895 (timer::print_row): New function, taken from timer::print.
5896 (timer::print): Print "GCC items" header if we also have client
5897 items. Move row-printing to timer::print_row. Print any client
5899 (timer::get_topmost_item_name): New method.
5900 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
5901 (TV_JIT_CLIENT_CODE): New.
5902 * timevar.h (timer::push_client_item): New declaration.
5903 (timer::pop_client_item): New declaration.
5904 (timer::get_topmost_item_name): New method.
5905 (timer::push_internal): New declaration.
5906 (timer::pop_internal): New declaration.
5907 (timer::print_row): New declaration.
5908 (timer::named_items): New declaration.
5909 (timer::m_jit_client_items): New field.
5910 (timer): Add friend class named_items.
5911 (auto_timevar::auto_timevar): Add timer param.
5912 (auto_timevar::~auto_timevar): Use field "m_timer".
5913 (auto_timevar::m_timer): New field.
5914 * toplev.c (initialize_rtl): Add g_timer as param when
5915 constructing auto_timevar instance.
5916 (toplev::toplev): Add "external_timer" param, and use it to
5917 initialize the "g_timer" global if non-NULL.
5918 (toplev::~toplev): If this created "g_timer", delete it.
5919 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
5920 with "external_timer" timer *.
5922 2015-08-03 Alexander Basov <coohpt@gmail.com>
5927 * cfgexpand.c (expand_one_var): Add check if stack is going to
5928 be used in naked function.
5929 * expr.c (expand_expr_addr_expr_1): Remove excess checking
5930 whether expression should not reside in MEM.
5931 * function.c (use_register_for_decl): Do not use registers for
5932 non-register things (volatile, float, BLKMode) in naked functions.
5934 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
5937 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
5938 Adjust splits to match new pattern.
5940 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5942 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
5945 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
5946 point in VSX registers.
5948 * config/rs6000/constraints.md (wb constraint): Document unused
5950 (we constraint): Likewise.
5951 (wo constraint): Likewise.
5952 (wp constraint): New constraint for IEEE 128-bit floating point in
5954 (wq constraint): Likewise.
5956 * config/rs6000/predicates.md (easy_fp_constant): Add support for
5957 IEEE 128-bit floating point in VSX registers.
5958 (easy_scalar_constant): Likewise.
5960 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
5961 constraints (wp, wq) for IEEE 128-bit floating point in VSX
5963 (rs6000_init_hard_regno_mode_ok): Likewise.
5965 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
5966 floating point in VSX registers.
5975 (vsx_le_permute_<mode>): Add support to properly swap bytes for
5976 IEEE 128-bit floating point in VSX registers on little endian.
5977 (vsx_le_undo_permute_<mode>): Likewise.
5978 (vsx_le_perm_load_<mode>): Likewise.
5979 (vsx_le_perm_store_<mode>): Likewise.
5980 (splitters for IEEE 128-bit fp moves): Likewise.
5982 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
5985 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
5986 floating point in VSX registers.
5989 * doc/md.text (Machine Constraints): Document wp and wq
5990 constraints on PowerPC.
5992 2015-08-03 Jeff Law <law@redhat.com>
5995 PR gcov-profile/66899
5996 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
5997 iterate over the jump threading paths when an element in the
5998 jump threading paths array is eliminated.
6000 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
6002 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
6004 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
6006 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
6007 is_use_properly_guarded the variable def_preds. Free its
6008 contents before returning.
6009 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
6010 (is_use_properly_guarded): Replace local variable def_preds with
6011 a parameter. Adjust accordingly. Only update *def_preds if it's
6014 2015-08-03 Richard Biener <rguenther@suse.de>
6016 * genmatch.c (simplify::for_subst_vec): New member.
6017 (binary_ok): New helper for for lowering.
6018 (lower_for): Delay substituting operators into result expressions
6019 if we can merge the results eventually again.
6020 (capture_info::walk_result): Adjust for user_id appearing as
6021 result expression operator.
6022 (expr::gen_transform): Likewise.
6023 (dt_simplify::gen_1): Likewise.
6024 (dt_simplify::gen): Pass not substituted operators to tail
6025 functions or initialize local variable with it.
6026 (decision_tree::gen): Adjust function signature.
6027 * match.pd: Fix tests against global code and add default
6028 cases to switch stmts.
6030 2015-08-03 Richard Biener <rguenther@suse.de>
6032 * genmatch.c (dt_simplify::gen): Create captures array
6033 with an initializer.
6035 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6037 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
6038 the host compiler is affected by placement new aliasing bug.
6039 * configure: Regenerate.
6040 * Makefile.in (ALIASING_FLAGS): New variable.
6041 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
6043 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
6046 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
6047 (negmulsf3_vfp): Likewise.
6048 (muldf3negdf_vfp): Disable for -frounding-math.
6049 (mulsf3negsf_vfp): Likewise.
6050 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
6051 fix MULT cost with -frounding-math.
6053 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6055 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
6056 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
6057 explicit. Prefer to add the flag whenever possible.
6058 (noce_process_if_block): Try noce_try_store_flag_constants before
6061 2015-08-03 Richard Biener <rguenther@suse.de>
6063 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
6064 New hash-map to record equivalent transforms.
6065 (dt_node::analyze): Populate the equivalent transforms hash-map.
6066 (dt_simplify::info): Add reference to hash-map entry.
6067 (dt_simplify::gen): If we have split out a function for the
6068 transform, generate a call to it.
6069 (sinfo_hashmap_traits::hash): New function.
6070 (compare_op): New helper function for ...
6071 (sinfo_hashmap_traits::equal_keys): ... this new function.
6072 (decision_tree::gen): Split out common equivalent transforms
6075 2015-08-03 Richard Biener <rguenther@suse.de>
6077 * gimple-fold.c (fold_gimple_assign): Remove folding of
6078 the comparison in COND_EXPRs.
6080 2015-08-03 Richard Biener <rguenther@suse.de>
6082 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
6083 on the rhs of assignments first simplify the embedded
6086 2015-08-03 Richard Biener <rguenther@suse.de>
6088 PR tree-optimization/66917
6089 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
6091 (DR_VECT_AUX): New macro.
6092 (set_dr_misalignment): Adjust.
6093 (dr_misalignment): Likewise.
6094 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6095 Compute whether the base is at least element aligned.
6096 * tree-vect-stmts.c (ensure_base_align): Adjust.
6097 (vectorizable_store): If the base is not element aligned
6098 preserve alignment of the original access if misalignment is unknown.
6099 (vectorizable_load): Likewise.
6101 2015-08-02 Martin Sebor <msebor@redhat.com>
6103 * c-family/c.opt (-Wframe-address): New warning option.
6104 * doc/invoke.texi (Wframe-address): Document it.
6105 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
6106 Clarify possible effects of calling the functions with non-zero
6107 arguments and mention -Wframe-address.
6108 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
6110 2015-08-01 Michael Collison <michael.collison@linaro.org
6111 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6113 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
6114 (*arm_umin_cmp): Likewise.
6116 2015-08-01 Caroline Tice <cmtice@google.com>
6119 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
6121 (vtbl_find_mangled_name): New function.
6122 (vtbl_register_mangled_name): New function.
6123 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
6124 mangled name in mangled name vectors.
6125 (find_or_create_vtbl_map_node): Ditto.
6126 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
6127 update recursion_depth on function entry; pass it to every recursive
6128 call; automatically exit if depth > 25 (give up looking at that point).
6129 (verify_bb_vtables): Initialize recursion_depth and pass it to
6130 var_is_used_for_virtual_call_p.
6131 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
6132 global variable decls.
6133 (vtbl_register_mangled_name): New extern function decl.
6135 2015-08-01 Tom de Vries <tom@codesourcery.com>
6137 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
6139 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
6141 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
6142 operation_no_trapping_overflow. Allow non-overflow operations.
6143 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
6146 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
6149 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
6151 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6153 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
6154 Enable for TARGET_32BIT.
6155 (*if_move_neg): Likewise.
6157 2015-07-31 Nick Clifton <nickc@redhat.com>
6159 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
6160 Returns true for __model__.
6161 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
6163 2015-07-31 Alan Modra <amodra@gmail.com>
6166 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
6167 (rs6000_emit_prologue): Set it.
6168 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
6170 2015-07-31 Richard Biener <rguenther@suse.de>
6172 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
6173 -> X == (C1 ^ C2) which is already implemented in match.pd.
6174 Remove redundant dispatching to fold_relational_const.
6175 Move unordered self and NaN compares ...
6176 * match.pd: ... as patterns here. Remove some stray captures
6179 2015-07-31 Petr Murzin <petr.murzin@intel.com>
6181 * config/i386/i386.c
6182 (bdesc_special_args): Convert mask type from signed to unsigned for
6184 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
6185 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
6186 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
6187 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
6188 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
6189 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
6190 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
6191 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
6192 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
6193 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
6194 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
6195 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
6196 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
6197 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
6198 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
6199 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
6200 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
6201 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
6202 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
6203 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
6204 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
6205 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
6206 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
6207 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
6208 * config/i386/i386-builtin-types.def
6209 (V16QI_FTYPE_V16SI): Remove.
6210 (V8DF_FTYPE_V8SI): Ditto.
6211 (V8HI_FTYPE_V8DI): Ditto.
6212 (V8SI_FTYPE_V8DI): Ditto.
6213 (V8SF_FTYPE_V8DF): Ditto.
6214 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
6215 (V16HI_FTYPE_V16SI): Ditto.
6216 (V16SF_FTYPE_V16HI): Ditto.
6217 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
6218 (V16SF_FTYPE_V16SI): Ditto.
6219 (V4DI_FTYPE_V4DI): Ditto.
6220 (V16SI_FTYPE_V16SF): Ditto.
6221 (V16SF_FTYPE_FLOAT): Ditto.
6222 (V8DF_FTYPE_DOUBLE): Ditto.
6223 (V8DI_FTYPE_INT64): Ditto.
6224 (V8DI_FTYPE_V4DI): Ditto.
6225 (V16QI_FTYPE_V8DI): Ditto.
6226 (UINT_FTYPE_V4SF): Ditto.
6227 (UINT64_FTYPE_V4SF): Ditto.
6228 (UINT_FTYPE_V2DF): Ditto.
6229 (UINT64_FTYPE_V2DF): Ditto.
6230 (V16SI_FTYPE_V16SI): Ditto.
6231 (V8DI_FTYPE_V8DI): Ditto.
6232 (V16SI_FTYPE_PV4SI): Ditto.
6233 (V16SF_FTYPE_PV4SF): Ditto.
6234 (V8DI_FTYPE_PV2DI): Ditto.
6235 (V8DF_FTYPE_PV2DF): Ditto.
6236 (V4DI_FTYPE_PV2DI): Ditto.
6237 (V4DF_FTYPE_PV2DF): Ditto.
6238 (V16SI_FTYPE_PV2SI): Ditto.
6239 (V16SF_FTYPE_PV2SF): Ditto.
6240 (V8DI_FTYPE_PV4DI): Ditto.
6241 (V8DF_FTYPE_PV4DF): Ditto.
6242 (V8SF_FTYPE_FLOAT): Ditto.
6243 (V4SF_FTYPE_FLOAT): Ditto.
6244 (V4DF_FTYPE_DOUBLE): Ditto.
6245 (V8SF_FTYPE_PV4SF): Ditto.
6246 (V8SI_FTYPE_PV4SI): Ditto.
6247 (V4SI_FTYPE_PV2SI): Ditto.
6248 (V8SF_FTYPE_PV2SF): Ditto.
6249 (V8SI_FTYPE_PV2SI): Ditto.
6250 (V16SF_FTYPE_PV8SF): Ditto.
6251 (V16SI_FTYPE_PV8SI): Ditto.
6252 (V8DI_FTYPE_V8SF): Ditto.
6253 (V4DI_FTYPE_V4SF): Ditto.
6254 (V2DI_FTYPE_V4SF): Ditto.
6255 (V64QI_FTYPE_QI): Ditto.
6256 (V32HI_FTYPE_HI): Ditto.
6257 (V8UHI_FTYPE_V8UHI): Ditto.
6258 (V16UHI_FTYPE_V16UHI): Ditto.
6259 (V32UHI_FTYPE_V32UHI): Ditto.
6260 (V2UDI_FTYPE_V2UDI): Ditto.
6261 (V4UDI_FTYPE_V4UDI): Ditto.
6262 (V8UDI_FTYPE_V8UDI): Ditto.
6263 (V4USI_FTYPE_V4USI): Ditto.
6264 (V8USI_FTYPE_V8USI): Ditto.
6265 (V16USI_FTYPE_V16USI): Ditto.
6266 (V2DF_FTYPE_V2DF_UINT64): Ditto.
6267 (V2DI_FTYPE_V2DF_V2DF): Ditto.
6268 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
6269 (V8DF_FTYPE_V8DF_V8DI): Ditto.
6270 (V4SF_FTYPE_V4SF_UINT64): Ditto.
6271 (V4SI_FTYPE_V4SF_V4SF): Ditto.
6272 (V16SF_FTYPE_V16SF_V16SI): Ditto.
6273 (V64QI_FTYPE_V32HI_V32HI): Ditto.
6274 (V32HI_FTYPE_V16SI_V16SI): Ditto.
6275 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
6276 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
6277 (V32HI_FTYPE_V64QI_V64QI): Ditto.
6278 (V32HI_FTYPE_V32HI_V32HI): Ditto.
6279 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
6280 (V16SI_FTYPE_V16SI_V4SI): Ditto.
6281 (V16SI_FTYPE_V16SI_V16SI): Ditto.
6282 (V16SI_FTYPE_V32HI_V32HI): Ditto.
6283 (V16SI_FTYPE_V16SI_SI): Ditto.
6284 (V8DI_FTYPE_V8DI_V8DI): Ditto.
6285 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
6286 (V8DI_FTYPE_V16SI_V16SI): Ditto.
6287 (V8DI_FTYPE_V8DI_V2DI): Ditto.
6288 (QI_FTYPE_QI): Ditto.
6289 (SI_FTYPE_SI): Ditto.
6290 (DI_FTYPE_DI): Ditto.
6291 (QI_FTYPE_QI_QI): Ditto.
6292 (QI_FTYPE_QI_INT): Ditto.
6293 (HI_FTYPE_HI_INT): Ditto.
6294 (SI_FTYPE_SI_INT): Ditto.
6295 (DI_FTYPE_DI_INT): Ditto.
6296 (HI_FTYPE_V16QI_V16QI): Ditto.
6297 (SI_FTYPE_V32QI_V32QI): Ditto.
6298 (DI_FTYPE_V64QI_V64QI): Ditto.
6299 (QI_FTYPE_V8HI_V8HI): Ditto.
6300 (HI_FTYPE_V16HI_V16HI): Ditto.
6301 (SI_FTYPE_V32HI_V32HI): Ditto.
6302 (QI_FTYPE_V4SI_V4SI): Ditto.
6303 (QI_FTYPE_V8SI_V8SI): Ditto.
6304 (QI_FTYPE_V2DI_V2DI): Ditto.
6305 (QI_FTYPE_V4DI_V4DI): Ditto.
6306 (QI_FTYPE_V8DI_V8DI): Ditto.
6307 (HI_FTYPE_V16SI_V16SI): Ditto.
6308 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
6309 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
6310 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
6311 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
6312 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
6313 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
6314 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
6315 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
6316 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
6317 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
6318 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
6319 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
6320 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
6321 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
6322 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
6323 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
6324 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
6325 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
6326 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
6327 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
6328 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
6329 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
6330 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
6331 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
6332 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
6333 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
6334 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
6335 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
6336 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
6337 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
6338 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
6339 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
6340 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
6341 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
6342 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
6343 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
6344 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
6345 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
6346 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
6347 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
6348 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
6349 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
6350 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
6351 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
6352 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
6353 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
6354 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
6355 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
6356 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
6357 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
6358 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
6359 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
6360 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
6361 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
6362 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
6363 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
6364 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
6365 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
6366 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
6367 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
6368 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
6369 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
6370 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
6371 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
6372 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
6373 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
6374 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
6375 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
6376 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
6377 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
6378 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
6379 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
6380 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
6381 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
6382 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
6383 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
6384 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
6385 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
6386 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
6387 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
6388 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
6389 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
6390 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
6391 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
6392 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
6393 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
6394 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
6395 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
6396 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
6397 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
6398 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
6399 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
6400 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
6401 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
6402 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
6403 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
6404 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
6405 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
6406 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
6407 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
6408 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
6409 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
6410 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
6411 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
6412 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
6413 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
6414 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
6415 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
6416 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
6417 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
6418 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
6419 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
6420 (HI_FTYPE_HI): Ditto.
6421 (HI_FTYPE_V16QI): Ditto.
6422 (SI_FTYPE_V32QI): Ditto.
6423 (DI_FTYPE_V64QI): Ditto.
6424 (QI_FTYPE_V8HI): Ditto.
6425 (HI_FTYPE_V16HI): Ditto.
6426 (SI_FTYPE_V32HI): Ditto.
6427 (QI_FTYPE_V4SI): Ditto.
6428 (QI_FTYPE_V8SI): Ditto.
6429 (HI_FTYPE_V16SI): Ditto.
6430 (QI_FTYPE_V2DI): Ditto.
6431 (QI_FTYPE_V4DI): Ditto.
6432 (QI_FTYPE_V8DI): Ditto.
6433 (V16QI_FTYPE_HI): Ditto.
6434 (V32QI_FTYPE_SI): Ditto.
6435 (V64QI_FTYPE_DI): Ditto.
6436 (V8HI_FTYPE_QI): Ditto.
6437 (V16HI_FTYPE_HI): Ditto.
6438 (V32HI_FTYPE_SI): Ditto.
6439 (V4SI_FTYPE_QI): Ditto.
6440 (V4SI_FTYPE_HI): Ditto.
6441 (V8SI_FTYPE_QI): Ditto.
6442 (V8SI_FTYPE_HI): Ditto.
6443 (V2DI_FTYPE_QI): Ditto.
6444 (V4DI_FTYPE_QI): Ditto.
6445 (HI_FTYPE_HI_HI): Ditto.
6446 (SI_FTYPE_SI_SI): Ditto.
6447 (DI_FTYPE_DI_DI): Ditto.
6448 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
6449 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
6450 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
6451 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
6452 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
6453 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
6454 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
6455 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
6456 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
6457 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
6458 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
6459 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
6460 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
6461 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
6462 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
6463 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
6464 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
6465 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
6466 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
6467 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
6468 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
6469 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
6470 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
6471 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
6472 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
6473 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
6474 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
6475 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
6476 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
6477 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
6478 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
6479 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
6480 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
6481 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
6482 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
6483 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
6484 (V16SI_FTYPE_HI): Ditto.
6485 (V8DI_FTYPE_QI): Ditto.
6486 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
6487 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
6488 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
6489 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
6490 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
6491 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
6492 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
6493 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
6494 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
6495 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
6496 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
6497 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
6498 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
6499 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
6500 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
6501 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
6502 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
6503 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
6504 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
6505 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
6506 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
6507 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
6508 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
6509 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
6510 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
6511 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
6512 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
6513 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
6514 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
6515 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
6516 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
6517 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
6518 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
6519 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
6520 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
6521 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
6522 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
6523 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
6524 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
6525 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
6526 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
6527 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
6528 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
6529 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
6530 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
6531 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
6532 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
6533 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
6534 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
6535 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
6536 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
6537 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
6538 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
6539 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
6540 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
6541 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
6542 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
6543 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
6544 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
6545 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
6546 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
6547 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
6548 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
6549 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
6550 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
6551 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
6552 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
6553 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
6554 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
6555 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
6556 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
6557 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
6558 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
6559 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
6560 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
6561 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
6562 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
6563 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
6564 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
6565 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
6566 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
6567 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
6568 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
6569 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
6570 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
6571 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
6572 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
6573 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
6574 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
6575 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
6576 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
6577 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
6578 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
6579 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
6580 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
6581 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
6582 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
6583 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
6584 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
6585 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
6586 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
6587 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
6588 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
6589 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
6590 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
6591 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
6592 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
6593 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
6594 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
6595 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
6596 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
6597 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
6598 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
6599 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
6600 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
6601 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
6602 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
6603 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
6604 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
6605 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
6606 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
6607 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
6608 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
6609 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
6610 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
6611 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
6612 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
6613 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
6614 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
6615 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
6616 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
6617 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
6618 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
6619 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
6620 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
6621 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
6622 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
6623 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
6624 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
6625 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
6626 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
6627 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
6628 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
6629 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
6630 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
6631 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
6632 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
6633 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
6634 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
6635 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
6636 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
6637 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
6638 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
6639 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
6640 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
6641 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
6642 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
6643 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
6644 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
6645 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
6646 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
6647 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
6648 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
6649 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
6650 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
6651 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
6652 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
6653 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
6654 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
6655 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
6656 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
6657 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
6658 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
6659 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
6660 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
6661 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
6662 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
6663 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
6664 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
6665 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
6666 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
6667 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
6668 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
6669 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
6670 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
6671 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
6672 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
6673 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
6674 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
6675 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
6676 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
6677 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
6678 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
6679 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
6680 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
6681 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
6682 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
6683 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
6684 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
6685 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
6686 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
6687 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
6688 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
6689 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
6690 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
6691 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
6692 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
6693 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
6694 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
6695 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
6696 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
6697 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
6698 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
6699 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
6700 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
6701 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
6702 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
6703 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
6704 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
6705 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
6706 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
6707 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
6708 (QI_FTYPE_V8DF_INT_QI): Ditto.
6709 (QI_FTYPE_V4DF_INT_QI): Ditto.
6710 (QI_FTYPE_V2DF_INT_QI): Ditto.
6711 (HI_FTYPE_V16SF_INT_HI): Ditto.
6712 (QI_FTYPE_V8SF_INT_QI): Ditto.
6713 (QI_FTYPE_V4SF_INT_QI): Ditto.
6714 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
6716 2015-07-31 Richard Biener <rguenther@suse.de>
6718 * gimple-fold.c (fold_gimple_assign): Remove folding of
6721 2015-07-31 Tom de Vries <tom@codesourcery.com>
6723 PR tree-optimization/66846
6724 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
6725 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
6726 (expand_omp_target) [ENABLE_CHECKING]: Same.
6727 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
6728 cfun if !LOOPS_NEED_FIXUP.
6729 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
6730 that omp_for already has its own loop struct.
6731 * tree-parloops.c (create_phi_for_local_result)
6732 (create_call_for_reduction): Handle simple latch bb.
6733 (create_parallel_loop): Add simple latch bb to preserve
6734 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
6735 (gen_parallel_loop): Remove call to cancel_loop_tree.
6736 (parallelize_loops): Skip loops that are inner loops of parallelized
6738 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
6739 verify_loop_structure.
6741 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6743 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
6744 * config/v850/v850.md (RV_REGNUM): New constants.
6745 * config/v850/v850.c (v850_libcall_value): New functions.
6746 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
6747 (TARGET_LIBCALL_VALUE): Define.
6749 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6751 * rtl.h (lowpart_subreg): Move in file.
6752 * loop-iv.c (lowpart_subreg): Move to...
6753 * simplify-rtx.c (lowpart_subreg): ...here.
6754 (simplify_binary_operation_1): Use lowpart_subreg instead of
6755 simplify_gen_subreg.
6756 * expr.c (expand_expr_real_2): Ditto.
6757 * emit-rtl.c (gen_lowpart_common): Ditto.
6758 * combine.c (gen_lowpart_for_combine): Ditto.
6759 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
6760 expand_debug_source_expr): Ditto.
6762 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
6764 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
6765 (expand_builtin_atomic_clear): Remove support for atomic_clear
6768 2015-07-30 Richard Biener <rguenther@suse.de>
6770 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
6771 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
6772 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
6773 redundant operand canonicalization.
6775 2015-07-30 David Sherwood <david.sherwood@arm.com>
6777 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
6778 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
6779 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
6780 * config/arm/arm.c (neon_valid_immediate): Likewise.
6781 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
6782 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
6783 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
6784 (expand_vec_perm_vpshufb2_vpermq): Likewise.
6785 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
6786 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
6787 * config/i386/sse.md
6788 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
6789 (*ssse3_palignr<mode>_perm): Likewise.
6790 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
6791 * config/spu/spu.c (arith_immediate_p): Likewise.
6792 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6793 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
6795 2015-07-30 Richard Biener <rguenther@suse.de>
6797 * genmatch.c (decision_tree::gen_gimple): Merge with ...
6798 (decision_tree::gen_generic): ... this into ...
6799 (decision_tree::gen): ... this.
6800 (main): Adjust callers.
6802 2015-07-30 Richard Biener <rguenther@suse.de>
6804 * genmatch.c (verbose): New global.
6805 (warning_at): Add overload with source_location.
6806 (capture_info::capture_info): Add bool whether generating gimple
6807 or generic. Add gimple member.
6808 (capture_info::cinfo): Add capture member.
6809 (capture_info::walk_match): Record capture. Warn on
6811 (capture_info::walk_c_expr): Add more fragments captures cannot
6812 escape through. Warn on escaped captures.
6813 (dt_simplify::gen_1): Warn on operands we force to have no
6815 (main): Initialize verbose.
6816 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
6818 2015-07-30 Richard Biener <rguenther@suse.de>
6821 * match.pd: Allow both operands to independently have conversion
6822 when simplifying compares of addresses.
6824 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
6828 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
6829 around those cases that need one.
6831 2015-07-29 Aditya Kumar <hiraditya@msn.com>
6833 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
6835 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
6837 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
6838 New. Copied from config/i386/gnu-user.h.
6839 (ASM_COMMENT_START): Likewise.
6840 (DBX_REGISTER_NUMBER): Likewise.
6842 2015-07-29 Richard Biener <rguenther@suse.de>
6844 * gimple-fold.c (fold_gimple_cond): Remove.
6845 (fold_stmt_1): Do not call it.
6847 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
6849 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
6850 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
6852 * config/aarch64/aarch64-modes.def: Add HFmode.
6854 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
6855 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
6857 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
6858 aarch64_promoted_type): New.
6860 (aarch64_float_const_representable_p): Disable HFmode.
6861 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
6862 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
6863 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
6865 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
6866 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
6868 * config/aarch64/iterators.md (GPF_F16): New.
6870 2015-07-29 Richard Biener <rguenther@suse.de>
6872 * match.pd: Merge address comparison patterns and make them
6873 handle some more cases.
6875 2015-07-29 Richard Biener <rguenther@suse.de>
6877 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
6878 (parser::parse_capture): Add bool argument on whether to reject
6880 (parser::parse_expr): Adjust.
6881 (parser::parse_op): Likewise.
6882 (parser::parse_pattern): Likewise.
6884 2015-07-29 Richard Biener <rguenther@suse.de>
6886 * gimple-fold.c (has_use_on_stmt): New function.
6887 (replace_stmt_with_simplification): Use it to allow
6888 abnormals originally referenced in the stmt.
6889 (fold_stmt_1): Canonicalize operand order.
6891 2015-07-28 David Sherwood <david.sherwood@arm.com>
6893 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
6894 GET_MODE_INNER unconditionally.
6895 * config/spu/spu.c (arith_immediate_p): Likewise.
6896 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
6897 * expmed.c (synth_mult): Remove check for VOIDmode result from
6899 (expand_mult_const): Likewise.
6900 * fold-const.c (fold_binary_loc): Replace call to element_precision
6901 with call to GET_MODE_PRECISION.
6902 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
6904 (emit_mode_inner): Likewise.
6905 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
6907 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
6908 (GET_MODE_UNIT_PRECISION): Likewise.
6909 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
6910 * simplify-rtx.c (simplify_immed_subreg): Likewise.
6911 * stor-layout.c (bitwise_type_for_mode): Update assert.
6912 (element_precision): Remove.
6914 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6916 * target-insns.def (reload_load_address): New targetm instruction
6918 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
6920 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6922 * target-insns.def (atomic_test_and_set): New targetm instruction
6924 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
6925 HAVE_*/gen_* interface.
6927 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6929 * target-insns.def (can_extend, ptr_extend): New targetm instruction
6931 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
6932 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
6933 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6934 * rtlanal.c (nonzero_bits1): Likewise.
6935 (num_sign_bit_copies1): Likewise.
6937 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6939 * target-insns.def (eh_return): New targetm instruction pattern.
6940 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
6942 * function.c (thread_prologue_and_epilogue_insns): Remove
6943 preprocessor condition.
6945 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6947 * target-insns.def (indirect_jump): New targetm instruction pattern.
6948 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
6951 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6953 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
6954 instead of nonimmediate_operand. Remove C condiition.
6956 2015-07-28 Richard Biener <rguenther@suse.de>
6958 * match.pd: Add more simplification of address comparisons.
6960 2015-07-28 Richard Biener <rguenther@suse.de>
6962 * match.pd: Re-order two cases in comparison with max/min
6963 value simplification to make it apply for bools.
6965 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6967 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
6968 Handle simple SIGN_EXTEND or ZERO_EXTEND.
6969 (aarch64_rtx_costs): Properly strip extend or extract before
6970 passing down to rtx costs again.
6972 2015-07-28 Nick Clifton <nickc@redhat.com>
6974 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
6975 Optimizes the case where -mes0 is active and a constant symbolic
6977 * config/rl78/rl78-protos.h: Prototype the new function.
6978 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
6980 2015-07-28 Tom de Vries <tom@codesourcery.com>
6982 * tree-parloops.c (reduc_stmt_res): New function.
6983 (initialize_reductions, add_field_for_reduction)
6984 (create_phi_for_local_result, create_loads_for_reductions)
6985 (create_stores_for_reduction, build_new_reduction): Handle case that
6986 reduc_stmt is a phi.
6987 (gather_scalar_reductions): Allow double_reduc reductions.
6989 2015-07-28 Richard Biener <rguenther@suse.de>
6991 * fold-const.c (fold_comparison): Remove equality folding
6992 of decl addresses ...
6993 * match.pd: ... here and merge with existing pattern.
6995 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
6997 PR tree-optimization/66828
6998 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
6999 from int64_t to uint64_t.
7001 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
7003 * opts-common.c (read_cmdline_option): List DriverOnly enum values
7004 as valid only in the error message of the driver, not in the
7005 messages of the language compilers.
7007 2015-07-27 Tom de Vries <tom@codesourcery.com>
7009 * tree-parloops.c (gather_scalar_reductions): Simplify function
7012 2015-07-27 Marek Polacek <polacek@redhat.com>
7014 * ipa-devirt.c (types_same_for_odr): Fix typo.
7016 2015-07-27 Jason Merrill <jason@redhat.com>
7019 * dwarf2out.c (gen_inlined_subroutine_die): Check
7020 cgraph_function_possibly_inlined_p.
7022 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
7024 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
7025 Place integer variant first.
7026 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
7028 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
7031 * config/arm/arm-builtins.c (enum arm_builtins):
7032 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
7033 (ARM_BUILTIN_NEON_BASE): Rename macro to....
7034 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
7035 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
7036 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
7038 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
7041 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
7042 Add qualifier_lane_index.
7043 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
7044 (arm_getlane_qualifiers): Use qualifier_lane_index.
7045 (arm_lanemac_qualifiers): Rename to...
7046 (arm_mac_n_qualifiers): ...this.
7047 (LANEMAC_QUALIFIERS): Rename to...
7048 (MAC_N_QUALIFIERS): ...this.
7049 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
7050 (arm_setlane_qualifiers): Use qualifier_lane_index.
7051 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
7052 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
7053 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
7054 (arm_expand_neon_builtin): Handle qualifier_lane_index.
7056 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
7057 * config/arm/arm.c (bounds_check): Likewise, improve error message.
7058 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
7059 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
7060 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
7061 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
7062 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
7063 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
7064 qualifiers to TERNOP_IMM.
7065 (vdup_lane): Change qualifiers to GETLANE.
7066 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
7067 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
7068 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
7069 vqdmlsl_n): Change qualifiers to MAC_N.
7071 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
7072 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
7073 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
7074 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
7075 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
7076 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
7077 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
7078 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
7079 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
7080 Remove call to neon_lane_bounds.
7082 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
7084 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
7085 Place integer variant first.
7087 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
7089 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
7090 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
7091 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
7092 for armv6kz targets.
7093 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
7094 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
7095 (FL_FOR_ARCH6ZK): Remove.
7096 (FL_FOR_ARCH6KZ): New.
7097 (arm_arch6zk): New declaration.
7098 * config/arm/arm-tables.opt: Regenerate.
7099 * config/arm/arm.c (arm_arch6kz): New.
7100 (arm_option_override): Set arm_arch6kz.
7101 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
7102 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
7103 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
7105 2015-07-27 Marek Polacek <polacek@redhat.com>
7109 * doc/invoke.texi: Document -Wtautological-compare.
7111 2015-07-27 Richard Biener <rguenther@suse.de>
7113 * genmatch.c (decision_tree::gen_gimple): Split out large
7114 subtrees into separate functions.
7115 (decision_tree::gen_generic): Likewise.
7117 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
7119 * config/alpha/alpha.c: Use SUBREG_P predicate.
7120 * config/alpha/predicates.md: Ditto.
7122 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
7124 * config.host (s390*-*-*): Include driver-native.c only when
7125 building with s390* as host *and* target.
7127 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
7130 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
7131 T bit register modified_between_p check.
7133 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7135 * config/i386/i386.c: Use SUBREG_P predicate.
7136 * config/i386/i386.md: Ditto.
7137 * config/i386/sse.md: Ditto.
7138 * config/i386/predicates.md: Ditto.
7140 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7143 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
7144 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
7146 2015-07-25 Sebastian Pop <s.pop@samsung.com>
7148 * Makefile.in: Remove use of TREEBROWSER.
7149 * config.in: Regenerated.
7150 * configure: Regenerated.
7151 * configure.ac: Remove definition of TREEBROWSER.
7152 * tree-browser.c: Removed.
7153 * tree-browser.def: Removed.
7155 2015-07-25 Sebastian Pop <s.pop@samsung.com>
7157 * graphite-scop-detection.c: Include gimple-pretty-print.h.
7158 (stmt_simple_for_scop_p): Print when a stmt is not handled in
7160 (scopdet_basic_block_info): Print when a loop or bb cannot be
7161 represented in Graphite.
7163 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7166 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
7167 execution guard when min_size is less than size_needed.
7169 2015-07-25 Sebastian Pop <s.pop@samsung.com>
7171 * doc/install.texi: Document supported versions of ISL.
7173 2015-07-25 Jeff Law <law@redhat.com>
7177 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7178 unable to find X NE 0 in the tables, return X as the simplified
7180 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7181 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
7183 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7184 after removing the control flow statement and unnecessary edges.
7186 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
7189 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
7191 PR rtl-optimization/64164
7192 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7193 * tree-ssa-copyrename.c: Removed.
7194 * opts.c (default_options_table): Drop -ftree-copyrename. Add
7195 -ftree-coalesce-vars.
7196 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7197 * common.opt (ftree-copyrename): Ignore.
7198 (ftree-coalesce-inlined-vars): Likewise.
7199 * doc/invoke.texi: Remove the ignored options above.
7200 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7201 * tree-ssa-coalesce.h: ... here.
7202 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7203 headers required by it.
7204 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7205 across variables when flag_tree_coalesce_vars. Check register
7206 use and promoted modes to allow coalescing. Moved to
7207 tree-ssa-coalesce.c.
7208 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7209 with its member functions to tree-ssa-coalesce.c.
7210 (var_map_base_init): Likewise. Renamed to
7211 compute_samebase_partition_bases.
7212 (partition_view_normal): Drop want_bases parameter.
7213 (partition_view_bitmap): Likewise.
7214 * tree-ssa-live.h: Adjust declarations.
7215 * tree-ssa-coalesce.c: Include explow.h.
7216 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7217 default defs at the entry point.
7218 (dump_part_var_map): New.
7219 (compute_optimized_partition_bases): New, called by...
7220 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7221 of compute_samebase_partition_bases. Adjust.
7222 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7223 * cfgexpand.c (leader_merge): New.
7224 (get_rtl_for_parm_ssa_default_def): New.
7225 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7226 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7227 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7228 redundant MEM attr setting.
7229 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7231 (expand_one_stack_var): ... this. New wrapper to check and
7232 skip already expanded SSA partitions.
7233 (record_alignment_for_reg_var): New, factored out of...
7234 (expand_one_var): ... this.
7235 (expand_one_ssa_partition): New.
7236 (adjust_one_expanded_partition_var): New.
7237 (expand_one_register_var): Check and skip already expanded SSA
7239 (expand_used_vars): Don't create DECLs for anonymous SSA
7240 names. Expand all SSA partitions, then adjust all SSA names.
7241 (pass::execute): Replace the loops that set
7242 SA.partition_to_pseudo from partition leaders and cleared
7243 DECL_RTL for multi-location variables, and that which used to
7244 rename vars and set attrs, with one that clears DECL_RTL and
7245 checks that PARMs and RESULTs default_defs match DECL_RTL.
7246 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7247 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7248 * explow.c (promote_ssa_mode): New.
7249 * explow.h (promote_ssa_mode): Declare.
7250 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7251 * function.c: Include cfgexpand.h.
7252 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7253 (use_register_for_parm_decl): Wrapper for the above to
7254 special-case the result_ptr.
7255 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7256 (split_complex_args): Take assign_parm_data_all argument.
7257 Pass it to rtl_for_parm. Set up rtl and context for split
7259 (assign_parms_augmented_arg_list): Adjust.
7260 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7261 multiple locations. Recognize split complex args.
7262 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7263 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7264 (assign_parm_setup_block): Prefer SSA-assigned location.
7265 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
7266 if stack_parm is NULL.
7267 (assign_parm_setup_stack): Prefer SSA-assigned location.
7268 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7269 rtl before testing for pointer bounds. Special-case result_ptr.
7270 (expand_function_start): Maybe reset DECL_RTL of result.
7271 Prefer SSA-assigned location for result and static chain.
7272 Factor out DECL_RESULT and SET_DECL_RTL.
7273 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7274 anonymous SSA names. Use promote_ssa_mode.
7275 (get_temp_reg): Likewise.
7276 (remove_ssa_form): Adjust.
7277 * stor-layout.c (layout_decl): Don't set mem attributes of
7279 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7280 and get its reg_usage for reg invalidation.
7281 (compute_bb_dataflow): Pass it insn.
7282 (emit_notes_in_bb): Likewise.
7284 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7286 * config/i386/i386.c (ix86_va_start): Remove
7287 unneeded !TARGET_64BIT check.
7288 (ix86_gimplify_va_arg): Ditto.
7290 2015-07-24 Tom de Vries <tom@codesourcery.com>
7292 * graphite-sese-to-poly.c (build_poly_scop): Always call
7293 rewrite_commutative_reductions_out_of_ssa.
7295 2015-07-24 Tom de Vries <tom@codesourcery.com>
7297 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
7298 flag_associative_math to FLOAT_TYPE_P. Honour
7299 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
7301 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
7304 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
7305 and "%qD" in warning_at instead of "%q+D" in warning.
7307 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
7309 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
7310 (ix86_function_abi): Cleanup.
7312 2015-07-24 Michael Darling <darlingm@gmail.com>
7315 * acinclude.m4: Reflects renaming of configure.in to configure.ac
7316 * configure: Likewise
7317 * configure.ac: Likewise
7318 * doc/install.texi: Likewise
7319 * doc/tm.texi: Likewise
7320 * doc/tm.texi.in: Likewise
7322 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7324 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
7325 manually swapping values.
7326 * cse.c (fold_rtx): Likewise.
7327 * lra-eliminations.c (form_sum): Likewise.
7329 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
7332 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
7333 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
7334 (*jcc_1, *jcc_2, jump, simple_return_internal)
7335 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
7336 Set length_nobnd attribute instead of length attribute.
7337 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
7338 (length_nobnd): Remove attribute.
7339 (length): Remove length_nobnd processing.
7341 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
7343 * gimplify.c (omp_default_clause): New function. Reorganize flow
7344 for clarity. Broken out of ...
7345 (omp_notice_variable): ... here.
7347 2015-07-24 Gary Funck <gary@intrepid.com>
7350 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
7351 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
7353 2015-07-24 Tom de Vries <tom@codesourcery.com>
7355 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
7356 exit-first loop transform.
7358 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7361 * tree-cfg.c (struct replace_decls_d): New struct.
7362 (replace_block_vars_by_duplicates_1): New function.
7363 (replace_block_vars_by_duplicates): Use it to replace the decls
7364 in the value exprs by duplicates.
7366 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
7368 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
7369 -shared, -symbolic, -rdynamic.
7371 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
7374 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
7375 -dynamic-linker within %{!static %{!shared, and -rdynamic within
7378 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
7381 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
7382 edge summary is available.
7384 2015-07-24 Richard Biener <rguenther@suse.de>
7386 * genmatch.c (struct dt_node): Add statistic fields.
7387 (dt_node::analyze): New method.
7388 (decision_tree::gen_gimple): Call analyze on the root node
7389 and print statistics to stderr.
7390 (decision_tree::gen_generic): Likewise.
7392 2015-07-24 Richard Biener <rguenther@suse.de>
7394 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
7395 against the highest or lowest possible integer ...
7396 * match.pd: ... as patterns here.
7398 2015-07-24 Richard Biener <rguenther@suse.de>
7400 * genmatch.c (struct capture_info): Add same_as field.
7401 (capture_info::capture_info): Initialize same_as.
7402 (capture_info::walk_match): Compute same_as.
7403 (capture_info::walk_result): Compute stuff for the leader.
7404 (capture_info::walk_c_expr): Likewise.
7405 (dt_simplify::gen_1): Only look at leaders when deciding
7406 to force no side-effects or emit side-effects of omitted operands.
7408 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7410 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
7411 reg note to the GPR -> FPR save instructions.
7413 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7415 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
7417 (s390_expand_insv): Don't generate risbg pattern for constant zero
7419 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
7420 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
7423 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7425 * config/s390/s390.c (s390_reorg): Clean up handling of processors
7428 (s390_issue_rate): Likewise.
7429 (s390_sched_reorder): Likewise.
7430 (s390_sched_variable_issue): Likewise.
7431 (s390_loop_unroll_adjust): Likewise.
7432 (s390_option_override): Likewise.
7434 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7436 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
7437 processor capabilities with -march=native.
7438 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
7439 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
7440 (S390_TARGET_BITS_STRING): Macro to simplify specs.
7442 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7444 * config/s390/s390.c (s390_issue_rate): Handle
7445 PROCESSOR_2094_Z9_EC.
7446 (s390_option_override): Likewise.
7447 (s390_adjust_priority): Likewise.
7449 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7451 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
7452 when cross compiling.
7454 2015-07-24 Richard Biener <rguenther@suse.de>
7456 * fold-const.c (maybe_canonicalize_comparison_1): Move
7457 A code CST canonicalization ...
7458 * match.pd: ... to a pattern here.
7460 2015-07-24 Jiong Wang <jiong.wang@arm.com>
7463 2015-07-22 Jiong Wang <jiong.wang@arm.com>
7465 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7466 (HONOR_REG_ALLOC_ORDER): Define.
7468 2015-07-24 Richard Biener <rguenther@suse.de>
7470 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
7471 * fold-const.c (fold_comparison): Move parameter does not
7472 alias &local simplification ...
7473 * match.pd: ... as a pattern here.
7475 2015-07-24 Richard Biener <rguenther@suse.de>
7477 * gimple-fold.c (replace_stmt_with_simplification): Special-case
7478 valueizing call operands.
7479 * gimple-match-head.c (maybe_push_res_to_seq): Take
7480 number of call arguments from ops array.
7481 (do_valueize): New function.
7482 (gimple_simplify): Return true if valueization changed
7483 any operand even if the result didn't simplify further.
7485 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7488 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
7490 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7493 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
7495 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
7497 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
7500 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
7502 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
7505 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
7507 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
7508 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
7510 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
7511 ms_va_list_type_node initialization.
7513 2015-07-23 Jeff Law <law@redhat.com>
7516 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7517 unable to find X NE 0 in the tables, return X as the simplified
7519 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7520 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
7522 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7523 after removing the control flow statement and unnecessary edges.
7525 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
7527 * tree-pass.h (get_current_pass_name): Removed.
7529 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
7531 PR rtl-optimization/64164
7532 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7533 * tree-ssa-copyrename.c: Removed.
7534 * opts.c (default_options_table): Drop -ftree-copyrename. Add
7535 -ftree-coalesce-vars.
7536 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7537 * common.opt (ftree-copyrename): Ignore.
7538 (ftree-coalesce-inlined-vars): Likewise.
7539 * doc/invoke.texi: Remove the ignored options above.
7540 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7541 * tree-ssa-coalesce.h: ... here.
7542 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7543 headers required by it.
7544 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7545 across variables when flag_tree_coalesce_vars. Check register
7546 use and promoted modes to allow coalescing. Moved to
7547 tree-ssa-coalesce.c.
7548 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7549 with its member functions to tree-ssa-coalesce.c.
7550 (var_map_base_init): Likewise. Renamed to
7551 compute_samebase_partition_bases.
7552 (partition_view_normal): Drop want_bases parameter.
7553 (partition_view_bitmap): Likewise.
7554 * tree-ssa-live.h: Adjust declarations.
7555 * tree-ssa-coalesce.c: Include explow.h.
7556 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7557 default defs at the entry point.
7558 (dump_part_var_map): New.
7559 (compute_optimized_partition_bases): New, called by...
7560 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7561 of compute_samebase_partition_bases. Adjust.
7562 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7563 * cfgexpand.c (leader_merge): New.
7564 (get_rtl_for_parm_ssa_default_def): New.
7565 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7566 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7567 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7568 redundant MEM attr setting.
7569 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7571 (expand_one_stack_var): ... this. New wrapper to check and
7572 skip already expanded SSA partitions.
7573 (record_alignment_for_reg_var): New, factored out of...
7574 (expand_one_var): ... this.
7575 (expand_one_ssa_partition): New.
7576 (adjust_one_expanded_partition_var): New.
7577 (expand_one_register_var): Check and skip already expanded SSA
7579 (expand_used_vars): Don't create DECLs for anonymous SSA
7580 names. Expand all SSA partitions, then adjust all SSA names.
7581 (pass::execute): Replace the loops that set
7582 SA.partition_to_pseudo from partition leaders and cleared
7583 DECL_RTL for multi-location variables, and that which used to
7584 rename vars and set attrs, with one that clears DECL_RTL and
7585 checks that PARMs and RESULTs default_defs match DECL_RTL.
7586 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7587 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7588 * explow.c (promote_ssa_mode): New.
7589 * explow.h (promote_ssa_mode): Declare.
7590 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7591 * function.c: Include cfgexpand.h.
7592 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7593 (use_register_for_parm_decl): Wrapper for the above to
7594 special-case the result_ptr.
7595 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7596 (split_complex_args): Take assign_parm_data_all argument.
7597 Pass it to rtl_for_parm. Set up rtl and context for split
7599 (assign_parms_augmented_arg_list): Adjust.
7600 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7601 multiple locations. Recognize split complex args.
7602 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7603 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7604 (assign_parm_setup_block): Prefer SSA-assigned location.
7605 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
7606 if stack_parm is NULL.
7607 (assign_parm_setup_stack): Prefer SSA-assigned location.
7608 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7609 rtl before testing for pointer bounds. Special-case result_ptr.
7610 (expand_function_start): Maybe reset DECL_RTL of result.
7611 Prefer SSA-assigned location for result and static chain.
7612 Factor out DECL_RESULT and SET_DECL_RTL.
7613 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7614 anonymous SSA names. Use promote_ssa_mode.
7615 (get_temp_reg): Likewise.
7616 (remove_ssa_form): Adjust.
7617 * stor-layout.c (layout_decl): Don't set mem attributes of
7619 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7620 and get its reg_usage for reg invalidation.
7621 (compute_bb_dataflow): Pass it insn.
7622 (emit_notes_in_bb): Likewise.
7624 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
7627 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
7629 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
7630 (rs6000_emit_2insn_and): Handle dot forms.
7631 * config/rs6000/rs6000.md (and<mode>3): Adjust.
7632 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
7633 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
7635 2015-07-23 Richard Biener <rguenther@suse.de>
7637 * generic-match-head.c: Include cgraph.h.
7638 * gimple-match-head.c: Likewise.
7639 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
7641 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
7642 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
7645 2015-07-23 Richard Biener <rguenther@suse.de>
7647 * gimple-fold.c (fold_gimple_cond): Do not require folding
7648 results to pass valid_gimple_rhs_p.
7649 * tree-cfg.h (fold_cond_expr_cond): Remove.
7650 * tree-cfg.c (fold_cond_expr_cond): Likewise.
7651 (make_edges): Do not call it.
7652 * tree-inline.c (tree_function_versioning): Likewise.
7654 2015-07-23 Tom de Vries <tom@codesourcery.com>
7656 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
7657 vect_force_simple_reduction.
7658 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
7659 (vect_is_simple_reduction_1): Add and handle
7660 need_wrapping_integral_overflow parameter.
7661 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
7662 need_wrapping_integral_overflow parameter.
7663 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
7664 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
7667 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
7669 PR tree-optimization/66926,66951
7670 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
7671 INNER_LOOP and fix up condition for renaming virtual operands.
7673 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7675 * combine.c (try_combine): Use std::swap instead of manually
7678 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
7680 * config/mips/i6400.md: New file.
7681 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
7682 (mips64r6): Likewise.
7684 * config/mips/mips-tables.opt: Regenerate.
7685 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
7686 (mips_issue_rate): Add support for i6400.
7687 (mips_multipass_dfa_lookahead): Likewise.
7688 * config/mips/mips.h (TUNE_I6400): Define.
7689 * config/mips/mips.md: Include i6400.md.
7690 (processor): Add i6400.
7691 * doc/invoke.texi (-march=@var{arch}): Add i6400.
7693 2015-07-23 Richard Biener <rguenther@suse.de>
7696 * match.pd: Guard widen and sign-change comparison simplification
7699 2015-07-23 Richard Biener <rguenther@suse.de>
7701 PR tree-optimization/66945
7702 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
7703 ::before_dom_children): Force the propagators idea of
7704 non-executable edges to materialize, not what the folder
7707 2015-07-23 Richard Biener <rguenther@suse.de>
7709 * gimple.h (gimple_cond_make_false): Use 0 != 0.
7710 (gimple_cond_make_true): Use 1 != 0.
7712 2015-07-22 DJ Delorie <dj@redhat.com>
7714 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
7717 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
7718 (ashrhi3): Likewise.
7719 (lshrhi3): Likewise.
7720 (movhi): Take advantage of zero-extend to load small constants.
7722 (and<mode>3): Likewise.
7723 (zero_extendqihi2): Likewise.
7724 (zero_extendqisi2): New.
7725 * config/msp430/constraints.md (N,O): New.
7726 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
7728 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
7731 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
7732 to enum feature_priority and feature_list.
7733 (fold_builtin_cpu): Add F_AES to enum processor_features
7734 and isa_names_table.
7736 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
7739 * config/i386/linux-common.h (MPX_SPEC): Use linker option
7740 for 64bit target only.
7742 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
7744 * config/nvptx/nvptx.c: Expand some comments.
7746 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
7748 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
7749 (cortex_a53_advsimd): ...This.
7751 2015-07-22 Richard Biener <rguenther@suse.de>
7753 * genmatch.c (expr::gen_transform): Clarify error message
7754 and display location.
7756 2015-07-22 Richard Biener <rguenther@suse.de>
7758 * genmatch.c (struct operand): Add location member.
7759 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
7761 (struct simplify): Remove match_location and result_location
7763 (elsehwere): Adjust.
7765 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
7767 * config/mips/m5100.md: New file.
7768 * config/mips/mips-cpus.def (m5100, m5101): Define.
7769 * config/mips/mips-tables.opt: Regenerate.
7770 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
7771 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
7772 -march=m5101 to -mips32r5.
7773 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
7774 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
7776 * config/mips/mips.md: Include m5100.md.
7777 (processor): Add m5100.
7778 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
7780 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
7782 * config/mips/mips-cpus.def (interaptiv): Define.
7783 * config/mips/mips-tables.opt: Regenerate.
7784 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
7786 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
7787 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
7789 2015-07-22 Jiong Wang <jiong.wang@arm.com>
7792 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7793 (HONOR_REG_ALLOC_ORDER): Define.
7795 2015-07-22 Richard Biener <rguenther@suse.de>
7797 PR tree-optimization/66952
7798 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
7799 blocks we end up executing unconditionally reset all SSA
7800 info such as range and alignment.
7801 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
7802 * tree-ssanames.c (reset_flow_sensitive_info): New function.
7804 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7806 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
7809 2015-07-22 Richard Biener <rguenther@suse.de>
7811 * genmatch.c (parser::parse_result): Properly handle
7812 match with result operands and conditions.
7814 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7817 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7818 Add qualifier_struct_load_store_lane_index.
7819 (aarch64_types_loadstruct_lane_qualifiers): Use
7820 qualifier_struct_load_store_lane_index for lane index argument for
7822 (aarch64_types_storestruct_lane_qualifiers): Ditto.
7823 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7824 (aarch64_simd_expand_args): Add new argument describing mode of
7825 builtin. Check lane bounds for arguments with
7826 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7827 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
7828 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7829 (aarch64_simd_expand_builtin): Handle arguments with
7830 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
7831 aarch64_simd_expand_args.
7832 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
7833 vst[234]_lane with BUILTIN_VALLDIF.
7834 * config/aarch64/aarch64-simd.md:
7835 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
7836 endianness reversal on lane index.
7837 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
7838 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
7839 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
7840 (vec_store_lanesci_lane<mode>): Ditto.
7841 (vec_store_lanesxi_lane<mode>): Ditto.
7842 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
7843 reversal of lane index.
7844 (aarch64_ld3_lane<mode>): Ditto.
7845 (aarch64_ld4_lane<mode>): Ditto.
7846 (aarch64_st2_lane<mode>): Ditto.
7847 (aarch64_st3_lane<mode>): Ditto.
7848 (aarch64_st4_lane<mode>): Ditto.
7849 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
7850 to qmode. Add new mode parameter. Update uses.
7851 (__LD3_LANE_FUNC): Ditto.
7852 (__LD4_LANE_FUNC): Ditto.
7853 (__ST2_LANE_FUNC): Ditto.
7854 (__ST3_LANE_FUNC): Ditto.
7855 (__ST4_LANE_FUNC): Ditto.
7857 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
7859 * doc/invoke.texi (Language Independent Options): Rename node to
7860 Diagnostic Message Formatting Options.
7862 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
7865 * lra-remat.c (operand_to_remat): Prevent using insns with input
7866 subregs processed separately by IRA.
7868 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
7870 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
7872 (single_imm_use): Check for iterator node.
7873 (num_imm_uses): Likewise.
7874 * tree-ssa-operands.c (has_zero_uses_1): Delete.
7875 (single_imm_use_1): Check for iterator node.
7877 2015-07-21 Mike Frysinger <vapier@gentoo.org>
7878 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7880 * configure.ac: Add check for new options in isl-0.15.
7881 * config.in, configure: Rebuilt.
7882 * graphite-blocking.c: Include <isl/constraint.h>
7883 * graphite-interchange.c, graphite-poly.c: Likewise.
7884 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
7885 * graphite.c: Likewise.
7886 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
7888 * graphite-dependences.c: Include <isl/constraint.h>.
7889 (max_number_of_out_dimensions): Returns isl_stat.
7890 (extend_schedule_1): Likewise
7891 (extend_schedule): Corresponding changes.
7892 * graphite-optimize-isl.c: Include <isl/constraint.h> and
7894 (getSingleMap): Change return type of isl_stat.
7895 (optimize_isl): Conditionally use
7896 isl_options_set_schedule_serialize_sccs.
7897 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
7898 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
7900 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
7903 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
7904 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
7906 2015-07-21 Richard Biener <rguenther@suse.de>
7908 PR tree-optimization/66948
7909 * genmatch.c (capture_info::walk_match): Also recurse to
7910 captures. Properly compute expr state from captures of
7912 * match.pd: Add single-use guards to
7913 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
7915 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7917 * config/nvptx/mkoffload.c (process): Add static destructor call.
7919 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7922 * match.pd (A - B -> A + (-B)): Don't allow folding
7923 when type if a fixed-point type.
7925 2015-07-20 DJ Delorie <dj@redhat.com>
7927 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
7928 (iorqi3_real): Likewise for set1.
7930 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
7932 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
7935 2015-07-20 Aditya Kumar <hiraditya@msn.com>
7937 * graphite-isl-ast-to-gimple.c:
7938 Refactor so that each function can access 'region'. This will help
7939 maintain a parameter rename_map within a region.
7941 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7943 * config/rs6000/rs6000.md (*lt0_disi): New.
7945 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7948 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
7949 "available letters" comment.
7950 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
7951 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
7952 and_2rld_operand): Delete.
7953 (and_operand): Adjust.
7954 (rotate_mask_operator): New.
7955 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
7956 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
7957 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
7958 extract_ME): Delete.
7959 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7960 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
7961 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
7962 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7963 rs6000_emit_2insn_and): New.
7964 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
7965 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
7966 includes_rldic_lshift_p, includes_rldicr_lshift_p,
7967 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
7968 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7969 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
7970 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
7971 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7972 rs6000_emit_2insn_and): New.
7973 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
7974 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
7976 <NOT>: Don't fall through to next case.
7977 <AND>: Handle the various rotate-and-mask cases directly.
7978 <IOR>: Always cost as one insn.
7979 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
7980 (and<mode>3): Adjust expander for the new patterns.
7981 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
7982 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
7983 (*and<mode>3_imm_dot_shifted): New.
7984 (*and<mode>3_mask): Delete, rewrite as ...
7985 (and<mode>3_mask): ... New.
7986 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
7987 (andsi3_internal0_nomc): Delete.
7988 (*andsi3_internal6): Delete.
7989 (*and<mode>3_2insn): New.
7990 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
7991 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
7992 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
7993 *insvdi_internal3): Delete.
7994 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
7995 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
7996 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
7997 *ior<mode>_mask): New.
7998 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
7999 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
8000 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
8001 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
8003 (ashr<mode>3): Delete expander.
8004 (*ashr<mode>3): Rename to ...
8005 (ashr<mode>3): ... This.
8006 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
8007 (*rotldi3_internal4, *rotldi3_internal5 and split,
8008 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
8009 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
8010 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
8011 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
8012 (splitter for loading a mask): Adjust.
8013 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
8015 2015-07-20 Marek Polacek <polacek@redhat.com>
8017 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
8018 output_add_clobbers, output_added_clobbers_hard_reg_p,
8019 gen_rtx_scratch): Remove declarations.
8021 2015-07-20 Marek Polacek <polacek@redhat.com>
8024 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
8026 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8028 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
8029 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
8031 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8033 * combine.c (combine_simplify_rtx): Move simplification step
8034 before various transformations/substitutions.
8036 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
8038 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
8039 (struct int_traits): Likewise.
8041 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8043 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
8044 function to vmsdbgout_function_decl.
8046 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
8049 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
8050 from misaligned positions.
8051 (ix86_expand_pinsr): Reject insertions to misaligned positions.
8053 2015-07-18 Sebastian Pop <s.pop@samsung.com>
8057 * Makefile.in: Removed omega.o.
8058 * common.opt: Document flag fcheck-data-deps as deprecated.
8059 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
8060 its associated params: omega-max-vars, omega-max-geqs,
8061 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
8062 omega-max-keys, omega-eliminate-redundant-constraints.
8063 * doc/loop.texi: Remove all the section on Omega.
8064 * graphite-blocking.c: Include missing params.h: it used to be
8065 included through tree-data-ref.h and omega.h.
8066 * graphite-isl-ast-to-gimple.c: Same.
8067 * graphite-optimize-isl.c: Same.
8068 * graphite-sese-to-poly.c: Same.
8072 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
8073 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
8074 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
8075 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
8076 * passes.def: Remove pass_check_data_deps.
8077 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
8078 (dump_conflict_function): Same.
8079 (dump_subscript): Same.
8080 (print_direction_vector): Same.
8081 (print_dir_vectors): Same.
8082 (print_lambda_vector): Same.
8083 (print_dist_vectors): Same.
8084 (dump_data_dependence_relation): Same.
8085 (dump_data_dependence_relations): Same.
8086 (dump_dist_dir_vectors): Same.
8088 (init_omega_eq_with_af): Removed.
8089 (omega_extract_distance_vectors): Removed.
8090 (omega_setup_subscript): Removed.
8091 (init_omega_for_ddr_1): Removed.
8092 (init_omega_for_ddr): Removed.
8093 (ddr_consistent_p): Removed.
8094 (compute_affine_dependence): Do not use omega to check data
8096 (compute_data_dependences_for_bb): Removed.
8097 (analyze_all_data_dependences): Removed.
8098 (tree_check_data_deps): Removed.
8099 * tree-data-ref.h: Do not include omega.h.
8100 (compute_data_dependences_for_bb): Removed.
8101 (tree_check_data_deps): Removed.
8102 * tree-ssa-loop.c (pass_check_data_deps): Removed.
8103 (make_pass_check_data_deps): Removed.
8104 * tree-ssa-phiopt.c: Include params.h.
8105 * tree-vect-data-refs.c: Same.
8106 * tree-vect-slp.c: Same.
8108 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
8110 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
8111 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
8112 (mem->fpreg splitters): Ditto.
8113 (general_operand->nonimmediate_operand splitter): Use explicit modes.
8114 Disable DFmode for TARGET_64BIT.
8116 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
8119 * config/i386/i386.c (ix86_expand_prologue): Replicate static
8122 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
8124 * config/nvptx/mkoffload.c (process): Constify host data.
8125 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
8127 (generate_host_descr_file): Likewise.
8129 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
8130 Sebastian Pop <s.pop@samsung.com>
8133 * graphite-dependences.c (add_pdr_constraints): Renamed
8134 pdr->extent to pdr->subscript_sizes.
8135 * graphite-interchange.c (build_linearized_memory_access): Add
8136 back all gcc_assert's that the "isl_int to isl_val conversion"
8137 patch has removed. Refactored.
8138 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
8139 * graphite-poly.c (new_poly_dr): Same.
8140 (free_poly_dr): Same.
8141 * graphite-poly.h (struct poly_dr): Same.
8142 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
8143 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
8144 * graphite-scop-detection.h: Fix space.
8145 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
8146 back all gcc_assert's removed by a previous patch.
8147 (wrap): Remove the_isl_ctx global variable that the same patch has
8149 (build_loop_iteration_domains): Same.
8150 (add_param_constraints): Same.
8151 (pdr_add_data_dimensions): Same. Refactored.
8152 (build_poly_dr): Renamed extent to subscript_sizes.
8154 2015-07-17 Marek Polacek <polacek@redhat.com>
8156 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
8157 * match.pd: ... here.
8159 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
8161 * config/nvptx/mkoffload.c (process): Constify target data.
8162 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
8163 Constify target data.
8164 (generate_target_offloadend_file): Likewise.
8166 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
8168 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
8169 to allow renaming of PHI arguments on edges incoming from outer
8170 loop header, add corresponding check before start PHI iterator.
8171 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
8172 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
8173 with true force_vectorize. Set-up dominator for outer loop too.
8174 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
8175 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
8176 was marked with force_vectorize and has restricted cfg.
8177 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
8179 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
8180 do peeling for outer loops.
8182 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
8183 Matthias Klose <doko@ubuntu.com>
8185 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
8186 build-sysroot, sysroot from the `Miscenalleous configure options' to
8187 the `Directories' section and strip trailing `/' from with_sysroot.
8188 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
8189 * configure: Regenerated.
8191 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
8194 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
8195 (TARGET_HARD_DF_REGS): Ditto.
8196 (TARGET_HARD_XF_REGS): Ditto.
8197 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
8198 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
8199 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
8200 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
8201 (*movsf_internal): Add alternatives 16 and 17. Enable
8202 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
8204 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
8206 PR rtl-optimization/66891
8207 * calls.c (expand_call): Wrap precompute_register_parameters with
8208 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
8210 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
8212 * config/nvptx/mkoffload.c (process): Constify mapping variables.
8213 Define target data struct and initialize it.
8215 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
8217 PR rtl-optimization/66626
8218 * ira.h (emit-rtl.h): Include.
8219 (non_spilled_static_chain_regno_p): New.
8220 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
8221 unless it is non spilled static chain pseudo.
8222 (assign_hard_rego): Spill memory profitable allocno unless it is
8223 non spilled static chain pseudo.
8224 (allocno_spill_priority_compare): Put non spilled static chain
8225 pseudo at the end of sorted array.
8226 (improve_allocation): Do nothing if we have static chain and
8228 (allocno__priority_compare_func): Put non spilled static chain
8229 pseudo at the beginning of sorted array.
8230 (move_spill_restore): Ignore non spilled static chain pseudo.
8231 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
8232 to non spilled static chain pseudo.
8233 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
8234 pseudo at the beginning of sorted array.
8235 (spill_for): Spill non spilled static chain pseudo last.
8236 * lra-constraints.c (lra_constraints): Remove static chain pseudo
8237 check for equivalence.
8239 2015-07-16 Martin Liska <mliska@suse.cz>
8242 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
8243 dst_ctx if it does not exist.
8245 2015-07-16 Martin Liska <mliska@suse.cz>
8247 * hash-set.h (remove): New function.
8248 (iterator): New iteration class for hash_set.
8250 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8252 * genattrtab.c (make_canonical): Add a file_location parameter.
8253 Use fatal_at rather than fatal.
8254 (get_attr_value): Likewise. Update call to make_canonical.
8255 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
8256 (make_internal_attr): Update calls accordingly.
8258 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8260 * read-md.h (message_with_line, error_with_line): Delete.
8261 * read-md.c (message_with_line, error_with_line): Delete.
8262 * gensupport.h: Include read-md.h.
8263 (md_rtx_info): New structure.
8264 (read_md_rtx): Use it. Return a bool success value.
8265 * gensupport.c (read_md_rtx): Likewise.
8266 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
8267 (main): Update after interface changes.
8268 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
8269 (main): Update after interface changes.
8270 * genattrtab.c (insn_code_number): Delete.
8271 (optimize_attrs): Add a max_insn_code parameter and use it instead
8272 of insn_code_number.
8273 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
8274 Use *_at rather than *_with_line functions.
8275 (gen_insn): Likewise.
8276 (gen_delay): Likewise.
8277 (gen_insn_reserv): Likewise.
8278 (gen_bypass): Take an md_rtx_info rather than an rtx.
8279 (main): Update after interface changes. Use a local max_insn_code
8280 variable instead of insn_code_number.
8281 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
8282 an rtx. Use fatal_at rather than fatal.
8283 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
8284 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
8285 (gen_absence_set, gen_final_absence_set, gen_automaton)
8286 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
8287 (main): Update after interface changes.
8288 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
8290 (main): Update after interface changes.
8291 * genconditions.c (main): Use new read_md_rtx interface.
8292 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
8293 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
8294 (main): Update after interface changes.
8295 * genemit.c (insn_code_number, insn_index_number): Delete.
8296 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8297 Use fatal_at rather than fatal.
8298 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
8300 (gen_split): Likewise.
8301 (main): Update after interface changes.
8302 * genextract.c (line_no): Delete.
8303 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8304 Update call to walk_rtx.
8305 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
8306 rather than message_with_line.
8307 (walk_rtx): Add an md_rtx_info argument. Update call to
8308 VEC_safe_set_locstr.
8309 (main): Update after interface changes.
8310 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
8311 and lineno. Use error_at rather than separate message_with_line
8312 calls and have_error assignments.
8313 (main): Update after interface changes.
8314 * genmddump.c (main): Use new read_md_rtx interface.
8315 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
8316 (main): Update after interface changes.
8317 * genoutput.c (next_code_number): Delete.
8318 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8319 (gen_peephole, gen_expand, gen_split): Likewise.
8320 (note_constraint): Likewise. Use *_at rather than *_with_line
8322 (main): Update after interface changes.
8323 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
8325 (main): Update after interface changes.
8326 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
8327 than an rtx and lineno.
8328 (process_define_constraint): Likewise.
8329 (process_define_register_constraint): Likewise.
8330 (main): Update after interface changes.
8331 * genrecog.c (next_insn_code, pattern_lineno): Delete.
8332 (validate_pattern): Replace top-level rtx with an md_rtx_info.
8333 Use *_at rather than *_with_line functions.
8334 (match_pattern_2): Likewise.
8335 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
8336 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
8337 Use *_at rather than *_with_line functions.
8338 * gentarget-def.c (add_insn): New function.
8339 (main): Use it. Use new read_md_rtx interface.
8341 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8343 * gensupport.h (compute_test_codes): Take a file_location rather
8345 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
8346 rather than *_with_line functions.
8347 (process_define_predicate): Update call to compute_test_codes.
8348 * genpreds.c (validate_exp): Take a file_location rather than a
8349 line number. Use *_at functions rather than *_with_line functions.
8350 (process_define_predicate): Update call to validate_exp.
8351 (constraint_data): Replace lineno field with a file_location.
8352 (add_constraint): Take a file_location rather than a line number.
8353 Use *_at functions rather than *_with_line functions. Fix error
8354 message for address constraints. Update after changes to
8355 validate_exp, constraint_data and compute_test_codes.
8356 (process_define_constraint): Update accordingly.
8357 (process_define_register_constraint): Likewise.
8359 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8361 * genoutput.c (data): Use a file_location to record the source
8364 (idata, idata_end): Remove initialization.
8365 (constraint_data): Replace lineno with a file_location.
8366 (output_insn_data): Update after changes to data.
8367 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
8368 (scan_operands): Likewise, using *_at rather than *_with_line
8370 (process_template): Likewise.
8371 (validate_insn_alternatives): Likewise.
8372 (validate_insn_operands): Likewise.
8373 (validate_optab_operands): Likewise.
8374 (init_insn_for_nothing): Initialize idata and idata_end.
8375 (note_constraint): Update after changes to constraint_data,
8376 using at rather than with_line functions.
8377 (mdep_constraint_len): Take a file_location rather than a
8378 line number. Use at rather than with_line functions.
8380 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8382 * read-md.h (fatal_at): Declare.
8383 * read-md.c (fatal_at): New function.
8384 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
8385 to record the source position.
8386 (check_attr_test): Take a file_location instead of a line number.
8387 Use fatal_at instead of fatal.
8388 (check_attr_value): Update after above changes, using "at"
8389 rather than "with_line" reporting functions.
8390 (convert_set_attr_alternative): Likewise.
8391 (gen_attr): Likewise.
8392 (check_defs): Likewise. Don't assign to read_md_filename.
8393 (gen_insn): Update initialization after above changes.
8394 (gen_delay): Likewise.
8395 (write_insn_cases): Print the filename for a define_peephole.
8396 (gen_insn_reserv): Take a line number as argument and update
8397 the call to check_attr_test.
8398 (main): Pass a line number to gen_insn_reserv.
8400 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8402 * read-md.h (file_location): New structure.
8403 (directive_handler_t): Take a file_location rather than a line number.
8404 (message_at, error_at): Declare.
8405 (read_skip_construct): Delete.
8406 * read-md.c (message_with_line_1): Replace with...
8407 (message_at_1): ...this new function.
8408 (message_at, error_at): New functions.
8409 (message_with_line, error_with_line): Update to use message_at_1.
8410 (handle_enum): Take a file_location rather than a line number
8411 and use error_at for error reporting.
8412 (handle_include): Likewise.
8413 (read_skip_construct): Likewise. Make static.
8414 (handle_file): Update after above changes. Pass a file_location
8415 rather than a line number to handle_directive.
8416 * gensupport.c (queue_elem): Replace separate filename and lineno
8417 with a file_location.
8418 (queue_pattern): Replace filename and lineno arguments with a
8419 file_location. Update after change to queue_elem.
8420 (process_define_predicate): Replace lineno argument with a
8421 file_location and use error_at for error reporting. Update
8422 after above changes.
8423 (process_rtx): Likewise.
8424 (subst_pattern_match): Likewise.
8425 (get_alternatives_number): Likewise.
8426 (alter_predicate_for_insn): Likewise.
8427 (rtx_handle_directive): Likewise.
8428 (is_predicable): Update after above changes, using error_at rather
8429 than error_with_line.
8430 (has_subst_attribute): Likewise.
8431 (identify_predicable_attribute): Likewise.
8432 (alter_attrs_for_subst_insn): Likewise.
8433 (process_one_cond_exec): Likewise.
8434 (process_substs_on_one_elem): Likewise.
8435 (process_define_subst): Likewise.
8436 (check_define_attr_duplicates): Likewise.
8437 (read_md_rtx): Update after change to queue_elem.
8439 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8441 * genoutput.c (next_index_number): Delete.
8442 (data): Remove index_number.
8443 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
8444 (main): Remove manipulation of next_index_number.
8446 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8448 * genattrtab.c (check_attr_value): Remove handling of null attrs.
8449 (make_canonical): Likewise.
8451 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
8453 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
8454 instead of adjust_address_nv.
8455 (restore_stack_nonlocal): Likewise.
8456 (nonlocal_goto): Likewise.
8458 2015-07-16 Tom de Vries <tom@codesourcery.com>
8460 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
8461 not have a corresponding loop header phi.
8463 2015-07-16 Tom de Vries <tom@codesourcery.com>
8465 * tree-parloops.c (create_loads_for_reductions): Handle case that
8466 reduction is unused.
8468 2015-07-16 Richard Biener <rguenther@suse.de>
8470 PR tree-optimization/66894
8471 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
8472 about deriving NE_EXPR from truncated values.
8474 2015-07-16 Martin Liska <mliska@suse.cz>
8477 (object_allocator): Add new class.
8478 (pool_allocator::initialize): Use the underlying class.
8479 (pool_allocator::allocate): Likewise.
8480 (pool_allocator::remove): Likewise.
8481 (operator new): A new generic allocator.
8482 * asan.c (struct asan_mem_ref): Remove unused members.
8483 (asan_mem_ref_new): Replace new operator with
8484 object_allocator::allocate.
8485 (free_mem_ref_resources): Change deallocation.
8486 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
8487 with object_allocator.
8488 * config/sh/sh.c (add_constant): Replace new operator with
8489 object_allocator::allocate.
8490 (sh_reorg): Change call to a release method.
8491 * cselib.c (struct elt_list): Remove unused members.
8492 (new_elt_list): Replace new operator with
8493 object_allocator::allocate.
8494 (new_elt_loc_list): Likewise.
8495 (new_cselib_val): Likewise.
8496 (unchain_one_elt_list): Change delete operator with remove method.
8497 (unchain_one_elt_loc_list): Likewise.
8498 (unchain_one_value): Likewise.
8499 (cselib_finish): Release newly added static allocators.
8500 * cselib.h (struct cselib_val): Remove unused members.
8501 (struct elt_loc_list): Likewise.
8502 * df-problems.c (df_chain_alloc): Replace pool_allocator with
8504 * df-scan.c (struct df_scan_problem_data): Likewise.
8505 (df_scan_alloc): Likewise.
8506 * df.h (struct dataflow): Likewise.
8507 * dse.c (struct read_info_type): Likewise.
8508 (struct insn_info_type): Likewise.
8509 (struct dse_bb_info_type): Likewise.
8510 (struct group_info): Likewise.
8511 (struct deferred_change): Likewise.
8512 (get_group_info): Likewise.
8513 (delete_dead_store_insn): Likewise.
8514 (free_read_records): Likewise.
8515 (replace_read): Likewise.
8516 (check_mem_read_rtx): Likewise.
8517 (scan_insn): Likewise.
8518 (dse_step1): Likewise.
8519 (dse_step7): Likewise.
8520 * et-forest.c (struct et_occ): Remove unused members.
8521 (et_new_occ): Use allocate instead of new operator.
8522 (et_new_tree): Likewise.
8523 (et_free_tree): Call release method explicitly.
8524 (et_free_tree_force): Likewise.
8525 (et_free_pools): Likewise.
8526 (et_split): Use remove instead of delete operator.
8527 * et-forest.h (struct et_node): Remove unused members.
8528 * ipa-cp.c: Change pool_allocator to object_allocator.
8529 * ipa-inline-analysis.c: Likewise.
8530 * ipa-profile.c: Likewise.
8531 * ipa-prop.c: Likewise.
8532 * ipa-prop.h: Likewise.
8533 * ira-build.c (initiate_cost_vectors): Cast return value.
8534 (ira_allocate_cost_vector): Likewise.
8535 * ira-color.c (struct update_cost_record): Remove unused members.
8536 * lra-int.h (struct lra_live_range): Likewise.
8537 (struct lra_copy): Likewise.
8538 (struct lra_insn_reg): Likewise.
8539 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
8540 * lra.c (new_insn_reg): Replace new operator with allocate method.
8541 (free_insn_regs): Same for operator delete.
8542 (finish_insn_regs): Release new static allocator.
8543 (finish_insn_recog_data): Likewise.
8544 (lra_free_copies): Replace delete operator with remove method.
8545 (lra_create_copy): Replace operator new with allocate method.
8546 (invalidate_insn_data_regno_info): Same for remove method.
8547 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
8548 (free_debug_insn_changes): Replace delete operator with remove method.
8549 (replace_oldest_value_reg): Replace operator new with allocate method.
8550 (pass_cprop_hardreg::execute): Release new static variable.
8551 * sched-deps.c (sched_deps_init): Change pool_allocator to
8553 * sel-sched-ir.c: Likewise.
8554 * sel-sched-ir.h: Likewise.
8555 * stmt.c (expand_case): Likewise.
8556 (expand_sjlj_dispatch_table): Likewise.
8557 * tree-sra.c (struct access): Remove unused members.
8558 (struct assign_link): Likewise.
8559 (sra_deinitialize): Release newly added static pools.
8560 (create_access_1):Replace operator new with allocate method.
8561 (build_accesses_from_assign): Likewise.
8562 (create_artificial_child_access): Likewise.
8563 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
8564 pool_allocator to object_allocator.
8565 * tree-ssa-pre.c: Likewise.
8566 * tree-ssa-reassoc.c: Likewise.
8567 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
8568 * tree-ssa-strlen.c: Likewise.
8569 * tree-ssa-structalias.c: Likewise.
8570 * var-tracking.c (onepart_pool_allocate): New function.
8571 (unshare_variable): Use the newly added function.
8572 (variable_merge_over_cur): Likewise.
8573 (variable_from_dropped): Likewise.
8574 (variable_was_changed): Likewise.
8575 (set_slot_part): Likewise.
8576 (emit_notes_for_differences_1): Likewise.
8577 (vt_finalize): Release newly added static pools.
8579 2015-07-16 Martin Jambor <mjambor@suse.cz>
8581 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
8582 all uses. Fix two typos in its general comment.
8583 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
8585 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
8587 * config/i386/linux-common.h (LINK_MPX): New.
8588 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
8589 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
8590 indicating '-z bndplt' support by linker.
8591 * configure: Regenerate.
8592 * config.in: Regenerate.
8594 2015-07-16 Richard Biener <rguenther@suse.de>
8596 * fold-const.c (fold_widened_comparison): Remove.
8597 (fold_sign_changed_comparison): Likewise.
8598 (fold_comparison): Move widened and sign-changed comparison
8600 * match.pd: ... to patterns here.
8601 * generic-match-head.c: Include target.h.
8602 * gimple-match-head.c: Likewise.
8604 2015-07-16 Richard Biener <rguenther@suse.de>
8606 * tree-ssa-dom.c (dom_valueize): New function.
8607 (record_temporary_equivalences): Also record equivalences
8608 for dominating stmts that have uses of equivalences we are
8611 2015-07-16 Bin Cheng <bin.cheng@arm.com>
8613 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
8614 add_autoinc_candidates.
8615 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
8616 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
8617 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
8618 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
8620 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
8621 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
8622 Remove parameter struct iv*. Call add_autoinc_candidates here.
8623 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
8624 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
8626 (find_iv_candidates): Call new functions.
8628 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
8630 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
8631 uninitialized-variable warning.
8633 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
8636 * config/sh/sh.md (movdi): Split simple reg move to two movsi
8637 when the destination is R0.
8639 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
8642 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
8643 * config/i386/i386.c (ix86_expand_pextr): New function.
8644 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
8645 for non-lowpart subregs.
8646 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
8647 (insv<mode>): Use SWI248 mode iterator.
8648 (insv<mode>_1): Ditto.
8650 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8651 Sebastian Pop <s.pop@samsung.com>
8653 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
8654 iterator to use_stmt.
8656 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8657 Sebastian Pop <s.pop@samsung.com>
8659 * graphite-scop-detection.c (build_scops_1): Discard scops for
8662 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8663 Sebastian Pop <s.pop@samsung.com>
8665 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
8666 case of a return statement in scop.
8668 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8669 Sebastian Pop <s.pop@samsung.com>
8671 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
8672 INTEGER_TYPE parameters.
8673 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
8674 VECTOR_CST in scan_tree_for_params.
8675 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
8677 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8679 * gimple-pretty-print.h: Don't include pretty-print.h.
8680 * tree-streamer.h: Don't include lto-streamer.h.
8681 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
8682 * gimple-streamer-in.c: Remove redundant includes.
8683 * gimple-streamer-out.c: Likewise.
8684 * ipa-devirt.c: Likewise.
8685 * ipa-icf.c: Likewise.
8686 * ipa-inline-analysis.c: Likewise.
8687 * ipa-polymorphic-call.c: Likewise.
8688 * ipa-profile.c: Likewise.
8689 * ipa-prop.c: Likewise.
8690 * ipa-pure-const.c: Likewise.
8691 * lto-cgraph.c: Likewise.
8692 * lto-streamer-in.c: Likewise.
8693 * lto-streamer-out.c: Likewise.
8694 * lto-streamer.c: Likewise.
8695 * tree-streamer-in.c: Likewise.
8696 * tree-streamer-out.c: Likewise.
8697 * tree-streamer.c: Likewise.
8699 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8701 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
8703 * opts.c: Remove multiline #include comment.
8705 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
8707 * config/nvptx/mkoffload.c (process): Add C++ protection to
8710 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8713 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
8714 null before IEEE 128-bit floating point support patch.
8716 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8718 * simplify-rtx.c (simplify_ternary_operation): Add simplification
8719 for (!c) != {0,...,0} ? a : b for vector modes.
8721 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
8722 Martin Jambor <mjambor@suse.cz>
8724 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
8725 struct func_body_info* instead of struct ipa_node_params*, expecting
8726 fbi->info to be filled in. Replace throughout. Adjust call to
8727 ipa_load_from_parm_agg.
8728 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
8729 instead of struct ipa_node_params*. Adjust calls to other functions
8730 so that they pass either fbi or fbi->info.
8731 (set_switch_stmt_execution_predicate): Likewise.
8732 (will_be_nonconstant_predicate): Likewise.
8733 (compute_bb_predicates): Likewise.
8734 (estimate_function_body_sizes): Move asserts earlier. Fill in
8735 struct func_body_info, replace parms_info with fbi.info. Adjust
8736 calls to functions that now accept struct func_body_info.
8737 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
8738 (struct func_body_info): Likewise.
8739 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
8740 remove static. Adjust callers.
8741 (ipa_load_from_parm_agg): Remove.
8742 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
8743 (func_body_info): Likewise.
8744 (ipa_load_from_parm_agg): Adjust prototype.
8746 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8748 * gensupport.c (rtx_handle_directive): Adjust.
8749 * read-rtl.c (apply_iterators): Take vector to add rtxs to
8750 instead of expr list rtx.
8751 (add_define_attr_for_define_subst): Likewise.
8752 (add_define_subst_attr): Likewise.
8753 (read_subst_mapping): Likewise.
8754 (read_rtx): Likewise.
8755 * rtl.h (read_rtx): Adjust.
8757 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8759 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
8761 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8764 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
8765 (*tls_local_dynamic_base_64_<mode>): Ditto.
8766 (*tls_local_dynamic_base_64_largepic): Ditto.
8767 (tls_global_dynamic_64_<mode>): Update expander pattern.
8768 (tls_local_dynamic_base_64_<mode>): Ditto.
8770 2015-07-15 Richard Biener <rguenther@suse.de>
8772 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
8773 and bool_var == 1 -> bool_var simplifications ...
8774 * match.pd: ... to patterns here. Factor out negate_expr_p
8775 cases from the A - B -> A + (-B) patterns as negate_expr_p
8776 predicate and add a -(A + B) -> (-B) - A pattern.
8778 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8780 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
8782 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
8783 Robert Suchanek <robert.suchanek@imgtec.com>
8785 * config/mips/mips.c (mips_int_mask): New enum.
8786 (mips_shadow_set): Likewise.
8787 (int_mask): New variable.
8788 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
8789 (machine_function): Add int_mask and use_shadow_register_set.
8790 (mips_attribute_table): Add attribute handlers for interrupt and
8791 use_shadow_register_set.
8792 (mips_interrupt_mask): New static function.
8793 (mips_handle_interrupt_attr): Likewise.
8794 (mips_handle_use_shadow_register_set_attr): Likewise.
8795 (mips_use_shadow_register_set): Change return type to enum
8796 mips_shadow_set. Add argument handling for use_shadow_register_set
8798 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
8799 compare with mips_shadow_set enum.
8800 (mips_compute_frame_info): Add interrupt mask and
8801 use_shadow_register_set to per-function information structure.
8802 Add a stack slot for EPC unconditionally.
8803 (mips_expand_prologue): Compare use_shadow_register_set value
8804 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
8805 masked interrupt register but in EIC mode use K0 and save Cause in K0.
8806 EPC saved and restored unconditionally. Use PMODE_INSN macro when
8807 copying the stack pointer from the shadow register set.
8808 * config/mips/mips.h (SR_IM0): New define.
8809 * config/mips/mips.md (mips_rdpgpr): Rename to...
8810 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
8811 * doc/extend.texi (Declaring Attributes of Functions): Document
8812 optional arguments for interrupt and use_shadow_register_set
8815 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8817 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
8818 interrupt attribute.
8819 (mips_expand_prologue): Disable the floating point unit in an ISR.
8820 * config/mips/mips.h (SR_COP1): New define.
8822 2015-07-15 Richard Biener <rguenther@suse.de>
8824 * genmatch.c (parser::peek, parser::peek_ident): Add argument
8825 to tell how many tokens to peek ahead (default 1).
8826 (parser::eat_token, parser::eat_ident): Return token consumed.
8827 (parser::parse_result): Parse new switch statement.
8828 * match.pd: Use case statements where appropriate.
8830 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8832 PR rtl-optimization/58066
8833 * calls.c (expand_call): Precompute register parameters before stack
8834 alignment is performed.
8836 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8838 PR rtl-optimization/66838
8839 * postreload.c (reload_cse_move2add): Also process
8840 CALL_INSN_FUNCTION_USAGE when resetting information of
8841 call-clobbered registers.
8843 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8844 Cesar Philippidis <cesar@codesourcery.com>
8845 Chung-Lin Tang <cltang@codesourcery.com>
8847 * config/nios2/constraints.md (U, v): New constraints.
8848 * config/nios2/predicates.md (rdprs_dcache_operand): New.
8849 (ldstex_memory_operand): New.
8850 * config/nios2/sync.md: New file.
8851 * config/nios2/nios2.md (unspecv): Add new builtin function
8853 (rdprs, flushd, flushda, wrpie, eni): New patterns.
8854 (top-level): Include sync.md.
8855 * config/nios2/nios2.c (N2_FTYPES): Add function types for
8857 (N2_BUILTINS): Add arch field setting, add new builtins.
8858 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
8860 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
8861 Also handle ldex/stex/ldsex/stsex builtins.
8862 (nios2_expand_rdprs_builtin): New function.
8863 (nios2_expand_cache_builtin): New function.
8864 (nios2_expand_wrpie_builtin): New function.
8865 (nios2_expand_eni_builtin): New function.
8866 (nios2_expand_builtin): Add arch field handling and new builtin
8868 * doc/extend.texi (Altera Nios II Built-in Functions): Document
8870 * doc/md.texi (Machine Constraints): Document U and v constraints.
8872 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8873 Cesar Philippidis <cesar@codesourcery.com>
8874 Chung-Lin Tang <cltang@codesourcery.com>
8876 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
8877 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
8878 callee_save_reg_size and uses_anonymous_args fields.
8879 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
8880 (nios2_create_cfa_notes): New function.
8881 (nios2_adjust_stack): New function for adjusting stack.
8882 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
8883 Use nios2_adjust_stack.
8884 (nios2_expand_epilogue): Likewise.
8885 (nios2_expand_return): New function.
8886 (nios2_can_use_return_insn): Update for CDX pop.n usage.
8887 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
8888 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
8889 * config/nios2/nios2.md (return): Use nios2_expand_return.
8891 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8892 Cesar Philippidis <cesar@codesourcery.com>
8893 Chung-Lin Tang <cltang@codesourcery.com>
8895 * config/nios2/predicates.md (pop_operation): New.
8896 (ldwm_operation, stwm_operation): New.
8897 (nios2_hard_register_operand): New.
8898 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
8899 (ldstwm_operation_p): Declare.
8900 (gen_ldstwm_peep): Declare.
8901 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
8902 (base_reg_adjustment_p): New.
8903 (pop_operation_p): New.
8904 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
8905 (nios2_ldstwm_regset_p): New.
8906 (ldstwm_operation_p): New.
8908 (nios2_ldst_parallel): New.
8909 (struct ldswm_operand): Declare.
8910 (compare_ldstwm_operands): New.
8911 (can_use_cdx_ldstw): New.
8912 (gen_ldstwm_peep): New.
8913 * config/nios2/nios2-ldstwm.sml: New.
8914 * config/nios2/nios2.md: Include ldstwm.md.
8915 * config/nios2/ldstwm.md: Generated.
8917 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8918 Cesar Philippidis <cesar@codesourcery.com>
8919 Chung-Lin Tang <cltang@codesourcery.com>
8921 * config/nios2/nios2.h (LABEL_ALIGN): Define.
8922 (REG_ALLOC_ORDER): Define.
8923 (ADJUST_REG_ALLOC_ORDER): Define.
8924 (HONOR_REG_ALLOC_ORDER): Define.
8925 (CDX_REG_P): Define.
8926 (ANDCLEAR_INT): Define.
8927 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
8928 (nios2_label_align): Declare.
8929 (nios2_cdx_narrow_form_p): Declare.
8930 (nios2_adjust_reg_alloc_order): Declare.
8931 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
8933 (nios2_large_unspec_reloc_p): New function, split from...
8934 (nios2_legitimate_pic_operand_p): ...here.
8935 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
8936 (nios2_print_operand_punct_valid_p): New.
8937 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
8938 (split_mem_address): New.
8939 (split_alu_insn): New.
8941 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
8942 (enum nios2_add_insn_kind): New.
8943 (nios2_add_insn_names, nios2_add_insn_narrow): New.
8944 (nios2_add_insn_classify): New.
8945 (nios2_add_insn_asm): New.
8946 (nios2_cdx_narrow_form_p): New.
8947 (label_align, min_labelno, max_labelno): New.
8949 (nios2_label_align): New.
8950 (nios2_adjust_reg_alloc_order): New.
8951 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8952 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8953 * config/nios2/constraints.md (P): New constraint.
8954 * config/nios2/predicates.md (const_and_operand): New.
8956 (stack_memory_operand): New.
8957 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
8958 (length): Update to use nios2_cdx_narrow_form_p().
8959 (type): Add new insn type values.
8960 (control, alu, st, ld, shift): Update insn reservations with
8961 new insn type values.
8962 (*high, *lo_sum): Define new insn patterns for constant generation.
8963 (movqi_internal, movhi_internal, movsi_internal): Reduce
8964 alternatives, update asm template to handle CDX variants, update
8966 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
8967 template, update type attributes.
8968 (extendhisi2, extendqi<mode>2): Likewise.
8969 (addsi3): Change to use function for asm string.
8970 (subsi3): Add CDX notation to asm template, update type attributes.
8971 (negsi3, one_cmplsi3): Likewise.
8972 (andsi3): New pattern, specialized from logical patterns.
8973 (<code>si3): Remove and case, combine alternatives, update asm
8975 (<shift_op>si3): Add CDX notation, update type attributes.
8976 (rotrsi3): Update type attribute.
8977 (*merge, extzv, insv): New insn patterns.
8978 (return): Change to define_expand.
8979 (simple_return): Add CDX notation, update type attributes.
8980 (indirect_jump): Add CDX notation.
8981 (jump): Update asm cases, update length attribute expression.
8982 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
8983 (nios2_cbranch): Update asm cases and length attribute expression
8984 to handle CDX variants.
8985 (nios2_cmp<code>): Update asm template.
8986 (nop): Add CDX notation, update type attributes.
8987 (trap): Add CDX notation.
8988 (ctrapsi4): Update asm cases and length attribute expression to
8990 * doc/md.texi (Machine Constraints): Document P constraint.
8992 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8993 Cesar Philippidis <cesar@codesourcery.com>
8994 Chung-Lin Tang <cltang@codesourcery.com>
8996 * config/nios2/nios2.h (SMALL_INT12): New macro.
8997 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
8998 (nios2_valid_addr_expr_p): Use it.
8999 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
9000 with implicit "io" instructions on R2.
9001 * config/nios2/constraints.md (w): New constraint.
9002 * config/nios2/predicates.md (ldstio_memory_operand): New.
9003 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
9004 operand predicate and constraint.
9005 (ld<bh>io_signed, st<bhw>io>): Likewise.
9006 * doc/md.texi (Machine Constraints): Document w constraint.
9008 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
9009 Cesar Philippidis <cesar@codesourcery.com>
9010 Chung-Lin Tang <cltang@codesourcery.com>
9012 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
9013 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
9014 Nios II architecture level.
9015 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
9016 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
9017 (OPTION_DEFAULT_SPECS): Define.
9018 (ASM_SPEC): Add -march= spec strings.
9019 * config/nios2/nios2.c (nios2_option_override): Check for
9020 conflicts involving new options.
9021 * config.gcc (nios2*-*-*): Support --with-arch=.
9022 * doc/invoke.texi (Option Summary, Nios II Options): Document
9023 -march=, -mbmx, and -mcdx.
9025 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
9027 PR rtl-optimization/66626
9028 * lra-constraints.c (lra_constraints): Prevent equivalence
9029 substitution for static chain pseudo in functions with nonlocal
9032 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
9034 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
9035 (nios2_emit_stack_limit_check): Add size parameter. Handle
9036 -fstack-limit-symbol as well as -fstack-limit-register.
9037 (nios2_expand_prologue): Emit only a single stack limit check,
9038 even if multiple stack adjustments are required.
9039 (nios2_option_override): Diagnose unsupported combination of -fpic
9040 and -stack-limit-symbol.
9042 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
9044 * Makefile.in (top_srcdir): New.
9045 * configure.ac: Use AM_ZLIB.
9046 * configure: Regeneated.
9048 2015-07-14 Matthias Klose <doko@ubuntu.com>
9051 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
9053 2015-07-14 Richard Biener <rguenther@suse.de>
9055 PR tree-optimization/66863
9056 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
9057 what we record for conversion use stmt lhs inequalities.
9059 2015-07-14 Richard Biener <rguenther@suse.de>
9061 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
9062 (decision_tree::gen_gimple): Likewise.
9064 2015-07-14 Tom de Vries <tom@codesourcery.com>
9066 * gcc.c (greater_than_spec_func): Declare forward.
9067 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
9068 -ftree-parallelize-loops={0,1}.
9069 (static_spec_functions): Add greater_than_spec_func function with name
9071 (greater_than_spec_func): New function.
9073 2015-07-14 Richard Biener <rguenther@suse.de>
9075 * tree-ssa-dom.c (record_temporary_equivalences): Merge
9076 wideing type conversion case from record_equivalences_from_incoming_edge
9077 and use record_equality to record equivalences.
9078 (record_equivalences_from_incoming_edge): Call
9079 record_temporary_equivalences.
9081 2015-07-14 Richard Biener <rguenther@suse.de>
9083 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
9084 (struct if_expr): New.
9085 (struct with_expr): Likewise.
9086 (is_a_helper): Add helpers for if_expr and with_expr.
9087 (struct simplify): Add simplify_kind enum and member. Remove
9089 (simplify::simplify): Adjust.
9090 (lower_commutative): Adjust.
9091 (lower_opt_convert): Likewise.
9092 (lower_cond): Likewise.
9093 (replace_id): Handle with_expr and if_expr.
9094 (lower_for): Adjust.
9095 (dt_simplify::gen_1): New recursive worker, split out from ...
9096 (dt_simplify::gen): ... here. Deal with if and with expansion
9098 (capture_info::capture_info): Take context argument
9099 (capture_info::walk_result): Only analyze specific result.
9100 (parser::parse_result): New function.
9101 (parser::parse_simplify): Adjust to parse ifs with then end
9103 (parser::parse_if): Simplify.
9104 (parser::parse_pattern): Pass down simplify kind.
9105 * match.pd: Convert if structure to new syntax.
9107 2015-07-13 Marek Polacek <polacek@redhat.com>
9109 * rtl.c (rtx_equal_p_cb): Fix typo.
9111 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
9113 * omega.h: Don't include config.h, don't include params.h again if
9114 omega.h has already been included.
9115 * graphite-poly.h: Include sese.h.
9116 * graphite.c: Don't include sese.h, remove needless includes and
9117 minimize includes outside #ifdef HAVE_isl block.
9118 * graphite-blocking.c: Don't include sese.h, remove needless includes,
9119 and wrap entire file in #ifdef HAVE_isl
9120 * graphite-dependences.c: Likewise.
9121 * graphite-interchange.c: Likewise.
9122 * graphite-isl-ast-to-gimple.c: Likewise.
9123 * graphite-optimize-isl.c: Likewise.
9124 * graphite-poly.c: Likewise.
9125 * graphite-scop-detection.c: Likewise.
9126 * graphite-sese-to-poly.c: Likewise.
9128 2015-07-13 Tom de Vries <tom@codesourcery.com>
9130 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
9132 2015-07-13 Renlin Li <renlin.li@arm.com>
9135 * simplify-rtx.c (simplify_const_relational_operation): Add
9136 side_effects_p checks.
9138 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
9140 * bitmap.h: Fix double word typos.
9143 * cfgloopmanip.c: Same.
9146 * cgraphclones.c: Same.
9148 * config/aarch64/aarch64-protos.h: Same.
9149 * config/aarch64/aarch64.c: Same.
9150 * config/aarch64/aarch64.md: Same.
9151 * config/arm/arm.md: Same.
9152 * config/arm/arm1020e.md: Same.
9153 * config/arm/arm1026ejs.md: Same.
9154 * config/arm/arm926ejs.md: Same.
9155 * config/arm/fa526.md: Same.
9156 * config/arm/fa606te.md: Same.
9157 * config/arm/fa626te.md: Same.
9158 * config/arm/fa726te.md: Same.
9159 * config/arm/fmp626.md: Same.
9160 * config/darwin.c: Same.
9161 * config/epiphany/epiphany.c: Same.
9162 * config/frv/frv.c: Same.
9163 * config/ft32/ft32.c: Same.
9164 * config/gnu-user.h: Same.
9165 * config/h8300/constraints.md: Same.
9166 * config/i386/i386.c: Same.
9167 * config/i386/i386.md: Same.
9168 * config/iq2000/iq2000.md: Same.
9169 * config/mips/mips.c: Same.
9170 * config/mmix/mmix.md: Same.
9171 * config/moxie/moxie.c: Same.
9172 * config/nds32/nds32.md: Same.
9173 * config/pa/pa.h: Same.
9174 * config/rs6000/aix.h: Same.
9175 * config/rs6000/rs6000.h: Same.
9176 * config/sh/sh.c: Same.
9177 * config/tilegx/tilegx.md: Same.
9178 * config/tilepro/gen-mul-tables.cc: Same.
9181 * doc/invoke.texi: Same.
9183 * dwarf2out.c: Same.
9188 * hash-table.h: Same.
9189 * internal-fn.c: Same.
9191 * ipa-devirt.c: Same.
9194 * ipa-profile.c: Same.
9199 * reg-stack.c: Same.
9205 * tree-inline.c: Same.
9207 * tree-ssa-dom.c: Same.
9208 * tree-ssa-loop-ivopts.c: Same.
9209 * tree-ssa-structalias.c: Same.
9210 * tree-ssa-tail-merge.c: Same.
9211 * tree-ssa-ter.c: Same.
9212 * tree-ssa-threadupdate.c: Same.
9213 * tree-ssa-uninit.c: Same.
9214 * tree-ssanames.c: Same.
9215 * tree-vect-loop-manip.c: Same.
9221 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9224 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
9225 tree_ssa_phiopt_worker): Call it.
9227 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9229 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
9230 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
9233 2015-07-11 Marek Polacek <polacek@redhat.com>
9236 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
9237 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
9238 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
9239 rather than bb_has_abnormal_call_pred.
9240 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
9241 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
9242 rather than bb_has_abnormal_call_pred.
9244 2015-07-10 Anatoly Sokolov <aesok@post.ru>
9246 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9247 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
9248 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9249 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
9250 v850_legitimate_address_p): New functions.
9251 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
9253 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
9256 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
9257 indirect sibcall with register arguments if register available
9258 for argument passing.
9259 (init_cumulative_args): Set cfun->machine->arg_reg_available
9260 to (cum->nregs > 0) or to true if function has a variable
9262 (function_arg_advance_32): Set cfun->machine->arg_reg_available
9263 to false if cum->nregs <= 0.
9264 * config/i386/i386.h (machine_function): Add arg_reg_available.
9266 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
9268 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
9269 and gen_higpart instead of gen_rtx_SUBREG.
9270 * config/i386/i386.md
9271 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
9272 (read-modify peephole2): Use gen_lowpart instead of
9273 gen_rtx_SUBREG for operand 5.
9275 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
9277 * config/tilepro/gen-mul-tables.cc (main): Change include list for
9279 * config/tilepro/mul-tables.c: Regenerate.
9280 * config/tilegx/mul-tables.c: Regenerate.
9282 2015-07-10 Richard Biener <rguenther@suse.de>
9284 * fold-const.c (distribute_bit_expr): Remove.
9285 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
9286 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
9287 to A & (B | C) and simplifying A << C1 << C2 to ...
9288 * match.pd: ... patterns here.
9290 2015-07-10 Jiong Wang <jiong.wang@arm.com>
9292 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9293 Mark mem as READONLY and NOTRAP for PIC symbol.
9295 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
9297 * gimple-predict.h: New file.
9298 (gimple_predict_predictor, gimple_predict_set_predictor,
9299 gimple_predict_outcome, gimple_predict_set_outcome,
9300 gimple_build_predict): Relocate here.
9301 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
9302 gimple_predict_outcome, gimple_predict_set_outcome): Move to
9304 * gimple.c (gimple_build_predict): Move to gimple-predict.h
9305 * basic-block.h: Don't include cfghooks.h.
9306 * backend.h: Don't include predict.h.
9307 * cfghooks.h: Include predict.h.
9308 * gimple-pretty-print.c: Include gimple-predict.h.
9309 * gimplify.c: Likwise.
9310 * predict.c: Adjust includes.
9311 * tree-inline.c: Likewise.
9313 * auto-inc-dec.c: Likewise.
9314 * auto-profile.c: Likewise.
9315 * bb-reorder.c: Likewise.
9316 * builtins.c: Likewise.
9317 * caller-save.c: Likewise.
9318 * calls.c: Likewise.
9319 * cfganal.c: Likewise.
9320 * cfgbuild.c: Likewise.
9322 * cfgcleanup.c: Likewise.
9323 * cfgexpand.c: Likewise.
9324 * cfghooks.c: Likewise.
9325 * cfgloopanal.c: Likewise.
9326 * cfgloop.c: Likewise.
9327 * cfgloopmanip.c: Likewise.
9328 * cfgrtl.c: Likewise.
9329 * cgraph.c: Likewise.
9330 * cgraphunit.c: Likewise.
9331 * combine.c: Likewise.
9332 * cprop.c: Likewise.
9335 * dojump.c: Likewise.
9337 * except.c: Likewise.
9338 * expmed.c: Likewise.
9340 * final.c: Likewise.
9341 * fold-const.c: Likewise.
9342 * function.c: Likewise.
9343 * fwprop.c: Likewise.
9344 * gcc-plugin.h: Likewise.
9346 * genattrtab.c: Likewise.
9347 * genemit.c: Likewise.
9348 * gengtype.c: Likewise.
9349 * genopinit.c: Likewise.
9350 * genoutput.c: Likewise.
9351 * genpreds.c: Likewise.
9352 * genrecog.c: Likewise.
9353 * gimple-fold.c: Likewise.
9354 * gimple-iterator.c: Likewise.
9355 * gimple-ssa-isolate-paths.c: Likewise.
9356 * gimple-ssa-strength-reduction.c: Likewise.
9357 * graph.c: Likewise.
9358 * graphite-blocking.c: Likewise.
9359 * graphite.c: Likewise.
9360 * graphite-dependences.c: Likewise.
9361 * graphite-interchange.c: Likewise.
9362 * graphite-isl-ast-to-gimple.c: Likewise.
9363 * graphite-optimize-isl.c: Likewise.
9364 * graphite-poly.c: Likewise.
9365 * graphite-scop-detection.c: Likewise.
9366 * graphite-sese-to-poly.c: Likewise.
9367 * haifa-sched.c: Likewise.
9368 * ifcvt.c: Likewise.
9369 * internal-fn.c: Likewise.
9370 * ipa-cp.c: Likewise.
9371 * ipa-profile.c: Likewise.
9372 * ipa-split.c: Likewise.
9373 * ipa-utils.c: Likewise.
9374 * ira-build.c: Likewise.
9375 * ira-color.c: Likewise.
9376 * ira-conflicts.c: Likewise.
9377 * ira-costs.c: Likewise.
9378 * ira-emit.c: Likewise.
9379 * ira-lives.c: Likewise.
9381 * loop-doloop.c: Likewise.
9382 * loop-init.c: Likewise.
9383 * loop-invariant.c: Likewise.
9384 * loop-unroll.c: Likewise.
9385 * lower-subreg.c: Likewise.
9386 * lra-assigns.c: Likewise.
9388 * lra-coalesce.c: Likewise.
9389 * lra-constraints.c: Likewise.
9390 * lra-lives.c: Likewise.
9391 * lto-cgraph.c: Likewise.
9392 * lto-streamer-in.c: Likewise.
9393 * mode-switching.c: Likewise.
9394 * modulo-sched.c: Likewise.
9395 * omp-low.c: Likewise.
9396 * optabs.c: Likewise.
9397 * passes.c: Likewise.
9398 * postreload.c: Likewise.
9399 * postreload-gcse.c: Likewise.
9400 * profile.c: Likewise.
9401 * recog.c: Likewise.
9402 * regstat.c: Likewise.
9403 * reload1.c: Likewise.
9404 * reorg.c: Likewise.
9405 * rtlanal.c: Likewise.
9406 * sched-ebb.c: Likewise.
9407 * sel-sched-ir.c: Likewise.
9409 * shrink-wrap.c: Likewise.
9410 * simplify-rtx.c: Likewise.
9412 * store-motion.c: Likewise.
9413 * tracer.c: Likewise.
9414 * trans-mem.c: Likewise.
9415 * tree-call-cdce.c: Likewise.
9416 * tree-cfg.c: Likewise.
9417 * tree-cfgcleanup.c: Likewise.
9418 * tree-chkp.c: Likewise.
9419 * tree-complex.c: Likewise.
9420 * tree-eh.c: Likewise.
9421 * tree-if-conv.c: Likewise.
9422 * tree-loop-distribution.c: Likewise.
9423 * tree-outof-ssa.c: Likewise.
9424 * tree-parloops.c: Likewise.
9425 * tree-predcom.c: Likewise.
9426 * tree-pretty-print.c: Likewise.
9427 * tree-profile.c: Likewise.
9428 * tree-sra.c: Likewise.
9429 * tree-ssa.c: Likewise.
9430 * tree-ssa-coalesce.c: Likewise.
9431 * tree-ssa-dce.c: Likewise.
9432 * tree-ssa-dom.c: Likewise.
9433 * tree-ssa-forwprop.c: Likewise.
9434 * tree-ssa-ifcombine.c: Likewise.
9435 * tree-ssa-loop-ch.c: Likewise.
9436 * tree-ssa-loop-im.c: Likewise.
9437 * tree-ssa-loop-ivcanon.c: Likewise.
9438 * tree-ssa-loop-ivopts.c: Likewise.
9439 * tree-ssa-loop-manip.c: Likewise.
9440 * tree-ssa-loop-prefetch.c: Likewise.
9441 * tree-ssa-loop-unswitch.c: Likewise.
9442 * tree-ssa-math-opts.c: Likewise.
9443 * tree-ssa-phiopt.c: Likewise.
9444 * tree-ssa-pre.c: Likewise.
9445 * tree-ssa-reassoc.c: Likewise.
9446 * tree-ssa-sink.c: Likewise.
9447 * tree-ssa-tail-merge.c: Likewise.
9448 * tree-ssa-threadedge.c: Likewise.
9449 * tree-ssa-threadupdate.c: Likewise.
9450 * tree-switch-conversion.c: Likewise.
9451 * tree-tailcall.c: Likewise.
9452 * tree-vect-data-refs.c: Likewise.
9453 * tree-vect-loop.c: Likewise.
9454 * tree-vect-loop-manip.c: Likewise.
9455 * tree-vectorizer.c: Likewise.
9456 * tree-vrp.c: Likewise.
9457 * ubsan.c: Likewise.
9458 * value-prof.c: Likewise.
9459 * varasm.c: Likewise.
9460 * var-tracking.c: Likewise.
9461 * config/aarch64/aarch64-builtins.c: Likewise.
9462 * config/aarch64/aarch64.c: Likewise.
9463 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9464 * config/alpha/alpha.c: Likewise.
9465 * config/arc/arc.c: Likewise.
9466 * config/arm/arm.c: Likewise.
9467 * config/avr/avr.c: Likewise.
9468 * config/bfin/bfin.c: Likewise.
9469 * config/c6x/c6x.c: Likewise.
9470 * config/cr16/cr16.c: Likewise.
9471 * config/cris/cris.c: Likewise.
9472 * config/darwin.c: Likewise.
9473 * config/darwin-c.c: Likewise.
9474 * config/epiphany/epiphany.c: Likewise.
9475 * config/epiphany/mode-switch-use.c: Likewise.
9476 * config/epiphany/resolve-sw-modes.c: Likewise.
9477 * config/fr30/fr30.c: Likewise.
9478 * config/frv/frv.c: Likewise.
9479 * config/ft32/ft32.c: Likewise.
9480 * config/h8300/h8300.c: Likewise.
9481 * config/i386/i386.c: Likewise.
9482 * config/i386/winnt.c: Likewise.
9483 * config/ia64/ia64.c: Likewise.
9484 * config/iq2000/iq2000.c: Likewise.
9485 * config/lm32/lm32.c: Likewise.
9486 * config/m32c/m32c.c: Likewise.
9487 * config/m32r/m32r.c: Likewise.
9488 * config/m68k/m68k.c: Likewise.
9489 * config/mcore/mcore.c: Likewise.
9490 * config/mep/mep.c: Likewise.
9491 * config/microblaze/microblaze.c: Likewise.
9492 * config/mips/mips.c: Likewise.
9493 * config/mmix/mmix.c: Likewise.
9494 * config/mn10300/mn10300.c: Likewise.
9495 * config/moxie/moxie.c: Likewise.
9496 * config/msp430/msp430.c: Likewise.
9497 * config/nds32/nds32.c: Likewise.
9498 * config/nds32/nds32-cost.c: Likewise.
9499 * config/nds32/nds32-fp-as-gp.c: Likewise.
9500 * config/nds32/nds32-intrinsic.c: Likewise.
9501 * config/nds32/nds32-isr.c: Likewise.
9502 * config/nds32/nds32-md-auxiliary.c: Likewise.
9503 * config/nds32/nds32-memory-manipulation.c: Likewise.
9504 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9505 * config/nds32/nds32-predicates.c: Likewise.
9506 * config/nios2/nios2.c: Likewise.
9507 * config/nvptx/nvptx.c: Likewise.
9508 * config/pa/pa.c: Likewise.
9509 * config/pdp11/pdp11.c: Likewise.
9510 * config/rl78/rl78.c: Likewise.
9511 * config/rs6000/rs6000.c: Likewise.
9512 * config/rx/rx.c: Likewise.
9513 * config/s390/s390.c: Likewise.
9514 * config/sh/sh.c: Likewise.
9515 * config/sh/sh-mem.cc: Likewise.
9516 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9517 * config/sh/sh_treg_combine.cc: Likewise.
9518 * config/sparc/sparc.c: Likewise.
9519 * config/spu/spu.c: Likewise.
9520 * config/stormy16/stormy16.c: Likewise.
9521 * config/tilegx/tilegx.c: Likewise.
9522 * config/tilepro/tilepro.c: Likewise.
9523 * config/v850/v850.c: Likewise.
9524 * config/vax/vax.c: Likewise.
9525 * config/visium/visium.c: Likewise.
9526 * config/xtensa/xtensa.c: Likewise.
9528 2015-07-10 Richard Biener <rguenther@suse.de>
9530 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
9531 (decision_tree::gen_gimple): Likewise.
9532 (decision_tree::gen_generic): Likewise.
9534 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
9537 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
9538 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
9540 2015-07-10 Jakub Jelinek <jakub@redhat.com>
9543 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
9544 or ORT_TASK contexts.
9545 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
9548 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9550 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
9553 2015-07-10 Tom de Vries <tom@codesourcery.com>
9555 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
9556 insert nit + 1 bound.
9558 2015-07-10 Richard Biener <rguenther@suse.de>
9560 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
9561 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
9562 (if_convertible_loop_p_1): For this always compute bb predicates.
9563 (if_convertible_loop_p): And free them.
9565 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9567 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
9570 2015-07-10 Richard Biener <rguenther@suse.de>
9572 PR tree-optimization/66823
9573 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
9576 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
9578 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
9579 to handle mips[32|64]r3 and mips[32|64]r5.
9581 2015-07-09 Jakub Jelinek <jakub@redhat.com>
9584 * tree-nested.c (get_static_chain): Or in a flag into
9585 info->static_chain_added.
9586 (get_frame_field, get_nonlocal_debug_decl): Likewise.
9587 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
9589 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
9590 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
9593 PR tree-optimization/66718
9594 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
9596 (vect_simd_lane_linear): New function.
9597 (vectorizable_simd_clone_call): Support using linear arguments for
9598 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
9600 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9603 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
9605 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
9607 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
9608 Use machine mode, not enum machine_mode in the prototype.
9610 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
9611 classify 128-bit floating point support.
9612 (FLOAT128_IBM_P): Likewise.
9613 (FLOAT128_VECTOR_P): Likewise.
9614 (FLOAT128_2REG_P): Likewise.
9615 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
9616 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
9617 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9618 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
9620 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
9621 tests against TFmode/TDmode, since those modes do not use VSX
9623 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
9625 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
9626 tests against TFmode, etc.
9627 (invalid_e500_subreg): Add tests against IFmode/KFmode.
9628 (reg_offset_addressing_ok_p): Likewise.
9629 (rs6000_legitimate_offset_address_p): Likewise.
9630 (rs6000_legitimize_address): Likewise.
9631 (rs6000_legitimize_reload_address): Likewise.
9632 (rs6000_legitimate_address_p): Clean up tests against TFmode and
9633 TDmode to use the new helper macros, which will include IFmode and
9635 (rs6000_emit_move): Likewise.
9636 (rs6000_darwin64_record_arg_recurse): Likewise.
9637 (print_operand): Likewise.
9638 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
9639 that uses a single vector register as a vector and not as a
9640 floating point register in terms of the calling sequence.
9641 (rs6000_discover_homogeneous_aggregate): Likewise.
9642 (rs6000_return_in_memory): Likewise.
9643 (init_cumulative_args): Likewise.
9644 (rs6000_function_arg_boundary): Likewise.
9645 (rs6000_function_arg_advance_1): Likewise.
9646 (rs6000_function_arg): Likewise.
9647 (rs6000_pass_by_reference): Likewise.
9648 (rs6000_gimplify_va_arg): Likewise.
9649 (rs6000_secondary_reload_memory): Use machine_mode not enum
9651 (rs6000_split_multireg_move): Use new helper macros.
9652 (spe_func_has_64bit_regs_p): Likewise.
9653 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
9654 (output_toc): Use new helper macros.
9655 (rs6000_register_move_cost): Likewise.
9656 (rs6000_function_value): Add IEEE 128-bit floating point calling
9658 (rs6000_libcall_value): Likewise.
9659 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
9660 floating point support.
9661 (rs6000_vector_mode_supported_p): Likewise.
9663 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
9665 PR rtl-optimization/66782
9666 * lra-int.h (struct lra_insn_recog_data): Add comment about
9667 clobbered hard regs for arg_hard_regs.
9668 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
9669 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
9670 Add condition for processing used hard regs.
9671 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
9672 Process clobbered hard regs.
9674 2015-07-09 Michael Matz <matz@suse.de>
9676 * genmatch.c (fprintf_indent): New function.
9677 (operand::gen_transform): Add indent parameter.
9678 (expr::gen_transform, c_expr::gen_transform,
9679 capture::gen_transform): Ditto and use fprintf_indent.
9680 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
9681 (dt_operand::gen, dt_operand::gen_predicate,
9682 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
9683 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
9684 (decision_tree::gen_gimple): Adjust calls and indent generated
9686 (decision_tree::gen_generic): Ditto.
9687 (write_predicate): Ditto.
9689 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9692 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
9693 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
9694 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
9695 {GENERAL,SSE,MMX}_REG_P where appropriate.
9697 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9699 * lto-streamer.h: Don't include target.h and alloc-pool.h.
9700 * builtins.c: Adjust includes.
9701 * gimple.c: Likewise.
9702 * ipa-icf.c: Likewise.
9703 * lto-opts.c: Likewise.
9704 * ipa-reference.c: Likewise.
9705 * lto-section-out.c: Likewise.
9706 * lto-streamer-in.c: Likewise.
9707 * lto-streamer-out.c: Likewise.
9708 * opts-global.c: Likewise.
9709 * symtab.c: Likewise.
9710 * tree-chkp.c: Likewise.
9711 * tree-ssa-live.c: Likewise.
9712 * tree-streamer-in.c: Likewise.
9713 * tree-streamer-out.c: Likewise.
9714 * config/darwin.c: Likewise.
9715 * config/i386/winnt.c: Likewise.
9717 2015-07-09 Richard Biener <rguenther@suse.de>
9719 * genmatch.c (struct expr): Add force_single_use flag.
9720 (expr::expr): Add copy constructor.
9721 (capture_info::walk_match): Gather force_single_use captures.
9722 (expr::gen_transform): Use possibly NULLified sequence.
9723 (dt_simplify::gen): Apply single-use restrictions by NULLifying
9724 seq if any constrained expr is not single-use.
9725 (parser::parse_expr): Refactor to allow multiple flags. Handle
9726 's' flag to force an expression have a single-use if the pattern
9727 simplifies to more than one statement.
9728 * match.pd: Convert most single_use conditionals to :s flags.
9730 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9732 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
9733 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9734 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
9736 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9738 * flags.h: Don't include flag-types.h or options.h.
9739 * opts-common.c: Adjust includes.
9740 * opts-global.c: Likewise.
9741 * common/config/epiphany/epiphany-common.c: Likewise.
9743 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9746 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
9749 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9752 * config/i386/i386.c (ix86_return_in_memory): Return true
9753 if int_size_in_bytes returns negative for IA MCU.
9755 2015-07-09 Marek Polacek <polacek@redhat.com>
9757 PR tree-optimization/66718
9758 * Makefile.in (OBJS): Add gimple-laddress.o.
9759 * passes.def: Schedule pass_laddress.
9760 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
9761 * tree-pass.h (make_pass_laddress): Declare.
9762 * gimple-laddress.c: New file.
9764 2015-07-09 Richard Biener <rguenther@suse.de>
9766 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
9768 2015-07-09 Richard Biener <rguenther@suse.de>
9770 PR tree-optimization/66807
9771 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
9773 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
9775 * function.c (stack_protect_epilogue): Use if rather than switch for
9776 check targetm.have_stack_protect_test.
9778 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9780 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
9781 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
9782 * config/arc/arc.h: Likewise.
9783 * config/arm/arm.h: Likewise.
9784 * config/bfin/bfin.h: Likewise.
9785 * config/epiphany/epiphany.h: Likewise.
9786 * config/frv/frv.h: Likewise.
9787 * config/ia64/ia64.h: Likewise.
9788 * config/iq2000/iq2000.h: Likewise.
9789 * config/lm32/lm32.h: Likewise.
9790 * config/m32r/m32r.h: Likewise.
9791 * config/mcore/mcore.h: Likewise.
9792 * config/mep/mep.h: Likewise.
9793 * config/microblaze/microblaze.h: Likewise.
9794 * config/mips/mips.h: Likewise.
9795 * config/mmix/mmix.h: Likewise.
9796 * config/mn10300/mn10300.h: Likewise.
9797 * config/nds32/nds32.h: Likewise.
9798 * config/nios2/nios2.h: Likewise.
9799 * config/pa/pa.h: Likewise.
9800 * config/rl78/rl78.h: Likewise.
9801 * config/sh/sh.h: Likewise.
9802 * config/sparc/sparc.h: Likewise.
9803 * config/stormy16/stormy16.h: Likewise.
9804 * config/tilegx/tilegx.h: Likewise.
9805 * config/tilepro/tilepro.h: Likewise.
9806 * config/v850/v850.h: Likewise.
9807 * config/xtensa/xtensa.h: Likewise.
9808 * doc/tm.texi: Regenerate.
9809 * doc/tm.texi.in: Adjust.
9810 * combine.c (simplify_set): Likewise.
9811 (simplify_comparison): Likewise.
9812 * expr.c (store_constructor): Likewise.
9813 * internal-fn.c (expand_arith_overflow): Likewise.
9814 * reload.c (push_reload): Likewise.
9815 (find_reloads): Likewise.
9816 (find_reloads_subreg_address): Likewise.
9817 * reload1.c (eliminate_regs_1): Likewise.
9818 * rtlanal.c (nonzero_bits1): Likewise.
9819 (num_sign_bit_copies1): Likewise.
9820 * simplify-rtx.c (simplify_truncation): Likewise.
9822 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9824 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
9825 of AUTO_INC_DEC with the preprocessor.
9826 * combine.c (combine_instructions): Likewise.
9827 (can_combine_p): Likewise.
9828 (try_combine): Likewise.
9829 * emit-rtl.c (try_split): Likewise.
9830 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9831 * lower-subreg.c (resolve_simple_move): Likewise.
9832 * lra.c (update_inc_notes): Likewise.
9833 * recog.c (asm_operand_ok): Likewise.
9834 (constrain_operands): Likewise.
9835 * regrename.c (scan_rtx_address): Likewise.
9836 * reload.c (update_auto_inc_notes): Likewise.
9837 (reg_inc_found_and_valid_p): Likewise.
9838 * reload1.c (reload): Likewise.
9839 (emit_input_reload_insns): Likewise.
9840 (delete_output_reload): Likewise.
9841 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9842 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9844 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9846 * rtl.h: Always define AUTO_INC_DEC.
9847 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
9848 * combine.c (combine_instructions): Likewise.
9849 (can_combine_p): Likewise.
9850 (try_combine): Likewise.
9851 * emit-rtl.c (try_split): Likewise.
9852 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9853 * lower-subreg.c (resolve_simple_move): Likewise.
9854 * lra.c (update_inc_notes): Likewise.
9855 * recog.c (asm_operand_ok): Likewise.
9856 (constrain_operands): Likewise.
9857 * regrename.c (scan_rtx_address): Likewise.
9858 * reload.c (update_auto_inc_notes): Likewise.
9859 (find_equiv_reg): Likewise.
9860 * reload1.c (reload): Likewise.
9861 (reload_as_needed): Likewise.
9862 (choose_reload_regs): Likewise.
9863 (emit_input_reload_insns): Likewise.
9864 (delete_output_reload): Likewise.
9865 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9866 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9868 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9870 * combine.c (can_combine_def_p): Don't check the value of
9871 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
9872 (combinable_i3pat): Likewise.
9873 (mark_used_regs_combine): Likewise.
9874 * regrename.c (rename_chains): Likewise.
9875 * reload.c (find_reloads_address): Likewise.
9876 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9878 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9880 * combine.c (update_rsp_from_reg_equal): Don't check if
9881 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
9882 (reg_nonzero_bits_for_combine): Likewise.
9883 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
9885 * config/frv/frv.h: Likewise.
9886 * config/lm32/lm32.h: Likewise.
9887 * config/mep/mep.h: Likewise.
9888 * config/mips/mips.h: Likewise.
9889 * config/rs6000/rs6000.h: Likewise.
9890 * config/sh/sh.h: Likewise.
9891 * config/tilegx/tilegx.h (enum reg_class): Likewise.
9892 * config/tilepro/tilepro.h: Likewise.
9893 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
9894 * doc/tm.texi: Regenerate.
9895 * doc/tm.texi.in: Adjust.
9896 * rtlanal.c (nonzero_bits1): Likewise.
9898 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9900 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
9901 with the preprocessor.
9902 (combine_instructions): Likewise.
9903 (try_combine): Likewise.
9905 (distribute_notes): Likewise.
9907 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9909 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
9911 (simplify_set): Likewise.
9912 * cse.c (cse_insn): Likewise.
9913 * fold-const.c (fold_single_bit_test): Likewise.
9914 (fold_unary_loc): Likewise.
9915 * postreload.c (reload_cse_simplify_set): Likewise.
9916 (reload_cse_simplify_operands): Likewise.
9918 2015-07-08 Jiong Wang <jiong.wang@arm.com>
9920 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
9921 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
9923 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9926 * config/i386/x86intrin.h: Include <adxintrin.h> even if
9927 __iamcu__ is defined.
9929 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9931 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
9933 2015-07-08 Iain Sandoe <iain@codesourcery.com>
9936 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
9937 names from preservation.
9939 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9942 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
9944 (function_arg_advance_32): Don't pass vectors in registers for
9946 (function_arg_32): Likewise.
9947 (ix86_return_in_memory): Don't return vectors in registers for
9950 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
9953 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
9954 hard regno live at the start of BB with incoming abnormal edges.
9955 * lra-lives.c (process_bb_lives): Ditto.
9957 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
9960 * config/nvptx/mkoffload.c (main): Create an offload image only in
9961 64-bit configurations.
9963 2015-07-08 Martin Liska <mliska@suse.cz>
9966 * tree-sra.c (create_access_1): Call ctor without brackets.
9967 (create_artificial_child_access): Likewise.
9969 2015-07-08 Richard Biener <rguenther@suse.de>
9971 PR tree-optimization/66793
9972 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
9973 Properly split the block after stmts ending it.
9975 2015-07-08 Richard Biener <rguenther@suse.de>
9977 PR tree-optimization/66794
9978 * passes.c (execute_function_todo): Assert that post-dominators
9980 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
9981 Free post-dominators.
9983 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9985 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
9988 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9990 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
9991 more than or equal 8 and less than 32 when optimizing for size.
9993 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9995 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
9996 COSTS_N_INSNS (1) and increment it appropriately throughout the
9999 2015-07-08 Richard Biener <rguenther@suse.de>
10001 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
10003 2015-07-08 Alan Modra <amodra@gmail.com>
10005 * target.def (rtx_costs): Remove "code" param, add "mode".
10006 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
10007 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
10008 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
10009 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
10010 call. Track mode when given in rtx.
10011 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
10012 (default_address_cost): Pass Pmode to rtx_cost.
10013 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
10014 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
10016 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
10017 (notreg_cost): Add mode param. Use it.
10018 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
10019 mode param and pass to set_src_cost. Update all calls.
10020 (hash_scan_set): Formatting.
10021 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
10022 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
10024 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
10025 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
10026 emit_store_flag): Update set_src_cost and rtx_cost calls.
10027 * auto-inc-dec.c (attempt_change): Likewise.
10028 * calls.c (precompute_register_parameters): Likewise.
10029 * combine.c (expand_compound_operation, make_extraction,
10030 force_to_mode, distribute_and_simplify_rtx): Likewise.
10031 * dojump.c (prefer_and_bit_test): Likewise.
10032 * dse.c (find_shift_sequence): Likewise.
10033 * expr.c (compress_float_constant): Likewise.
10034 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
10035 * ifcvt.c (noce_try_sign_mask): Likewise.
10036 * loop-doloop.c (doloop_optimize): Likewise.
10037 * loop-invariant.c (create_new_invariant): Likewise.
10038 * lower-subreg.c (shift_cost, compute_costs): Likewise.
10039 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
10040 lshift_cheap_p): Likewise.
10041 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
10042 try_replace_in_use, reload_cse_move2add): Likewise.
10043 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
10045 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10046 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10047 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
10048 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
10049 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
10050 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
10052 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
10053 * config/arc/arc.c (arc_rtx_costs): Likewise.
10054 * config/arm/arm.c (arm_rtx_costs): Likewise.
10055 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
10056 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
10057 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
10058 * config/cris/cris.c (cris_rtx_costs): Likewise.
10059 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
10060 * config/frv/frv.c (frv_rtx_costs): Likewise.
10061 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
10062 * config/i386/i386.c (ix86_rtx_costs): Likewise.
10063 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
10064 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
10065 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
10066 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
10067 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
10068 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
10069 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
10070 * config/mep/mep.c (mep_rtx_cost): Likewise.
10071 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
10072 * config/mips/mips.c (mips_rtx_costs): Likewise.
10073 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
10074 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
10075 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
10076 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
10077 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
10078 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
10079 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
10080 * config/pa/pa.c (hppa_rtx_costs): Likewise.
10081 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
10082 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
10083 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
10084 * config/s390/s390.c (s390_rtx_costs): Likewise.
10085 * config/sh/sh.c (sh_rtx_costs): Likewise.
10086 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
10087 * config/spu/spu.c (spu_rtx_costs): Likewise.
10088 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
10089 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
10090 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
10091 * config/v850/v850.c (v850_rtx_costs): Likewise.
10092 * config/vax/vax.c (vax_rtx_costs): Likewise.
10093 * config/visium/visium.c (visium_rtx_costs): Likewise.
10094 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
10095 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
10096 "code" param, and pass as outer_code to first rtx_cost call. Pass
10097 mode to rtx_cost calls.
10098 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
10100 (aarch64_rtx_costs_wrapper): Update.
10101 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
10102 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
10104 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
10105 and rtx_cost calls.
10106 (avr_operand_rtx_cost): Similarly.
10107 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
10108 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
10109 * config/mips/mips.c (mips_stack_address_p): Comment typo.
10110 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
10111 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
10112 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
10114 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
10115 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
10116 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
10117 * doc/tm.texi: Regenerate.
10119 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
10121 * tree-core.h: Include symtab.h.
10122 * rtl.h: Include hard-reg-set.h but not flags.h.
10123 (HARD_CONST): Remove condition compilation involving HARD_CONST since
10124 hard-reg-set.h is always included.
10125 * regs.h: Don't include hard-reg-set.h or rtl.h.
10126 * cfg.h: Include dominance.h.
10127 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
10128 * backend.h: New. Aggregate commonly used backend header files.
10129 * gimple-ssa.h: Don't include tree-hasher.h.
10130 * ssa.h: New. Aggregate commonly used SSA header files.
10131 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
10132 * sel-sched-ir.h: Flatten includes.
10133 * lra-int.h: Flatten completely.
10134 * sel-sched-dump.h: Flatten includes.
10135 * ira-int.h: Flatten includes.
10136 * gimple-streamer.h: Remove all includes.
10137 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
10138 * resource.h: Flatten hard-reg-set.h and df.h.
10139 * sched-int.h: Flatten insn-arrt.h and df.h.
10140 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
10141 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
10142 * genattrtab.c (write_header): Adjust generated includes.
10143 * genautomata.c (main): Likewise.
10144 * genconditions.c (write-header): Likewise.
10145 * genemit.c (main): Likewise.
10146 * gengtype.c (open_base_files): Likewise.
10147 * genopinit.c (main): Likewise.
10148 * genoutput.c (output_prologue): Likewise.
10149 * genpeep.c (main): Likewise.
10150 * genpreds.c (write_insn_preds_c): Likewise.
10151 * genrecog.c (write_header): Likewise.
10152 * alias.c: Adjust includes.
10153 * asan.c: Likewise.
10154 * attribs.c: Likewise.
10155 * auto-inc-dec.c: Likewise.
10156 * auto-profile.c: Likewise.
10157 * bb-reorder.c: Likewise.
10158 * bt-load.c: Likewise.
10159 * builtins.c: Likewise.
10160 * caller-save.c: Likewise.
10161 * calls.c: Likewise.
10162 * ccmp.c: Likewise.
10164 * cfganal.c: Likewise.
10165 * cfgbuild.c: Likewise.
10166 * cfgcleanup.c: Likewise.
10167 * cfgexpand.c: Likewise.
10168 * cfghooks.c: Likewise.
10169 * cfgloop.c: Likewise.
10170 * cfgloopanal.c: Likewise.
10171 * cfgloopmanip.c: Likewise.
10172 * cfgrtl.c: Likewise.
10173 * cgraph.c: Likewise.
10174 * cgraphbuild.c: Likewise.
10175 * cgraphclones.c: Likewise.
10176 * cgraphunit.c: Likewise.
10177 * cilk-common.c: Likewise.
10178 * combine-stack-adj.c: Likewise.
10179 * combine.c: Likewise.
10180 * compare-elim.c: Likewise.
10181 * convert.c: Likewise.
10182 * coverage.c: Likewise.
10183 * cppbuiltin.c: Likewise.
10184 * cprop.c: Likewise.
10186 * cselib.c: Likewise.
10187 * data-streamer-in.c: Likewise.
10188 * data-streamer-out.c: Likewise.
10189 * data-streamer.c: Likewise.
10190 * dbxout.c: Likewise.
10193 * debug.c: Likewise.
10194 * df-core.c: Likewise.
10195 * df-problems.c: Likewise.
10196 * df-scan.c: Likewise.
10198 * dojump.c: Likewise.
10199 * dominance.c: Likewise.
10200 * domwalk.c: Likewise.
10201 * double-int.c: Likewise.
10203 * dumpfile.c: Likewise.
10204 * dwarf2asm.c: Likewise.
10205 * dwarf2cfi.c: Likewise.
10206 * dwarf2out.c: Likewise.
10207 * emit-rtl.c: Likewise.
10208 * et-forest.c: Likewise.
10209 * except.c: Likewise.
10210 * explow.c: Likewise.
10211 * expmed.c: Likewise.
10212 * expr.c: Likewise.
10213 * final.c: Likewise.
10214 * fixed-value.c: Likewise.
10215 * fold-const.c: Likewise.
10216 * function.c: Likewise.
10217 * fwprop.c: Likewise.
10218 * gcc-plugin.h: Likewise.
10219 * gcse-common.c: Likewise.
10220 * gcse.c: Likewise.
10221 * generic-match-head.c: Likewise.
10222 * ggc-page.c: Likewise.
10223 * gimple-builder.c: Likewise.
10224 * gimple-expr.c: Likewise.
10225 * gimple-fold.c: Likewise.
10226 * gimple-iterator.c: Likewise.
10227 * gimple-low.c: Likewise.
10228 * gimple-match-head.c: Likewise.
10229 * gimple-pretty-print.c: Likewise.
10230 * gimple-ssa-isolate-paths.c: Likewise.
10231 * gimple-ssa-strength-reduction.c: Likewise.
10232 * gimple-streamer-in.c: Likewise.
10233 * gimple-streamer-out.c: Likewise.
10234 * gimple-walk.c: Likewise.
10235 * gimple.c: Likewise.
10236 * gimplify-me.c: Likewise.
10237 * gimplify.c: Likewise.
10238 * godump.c: Likewise.
10239 * graph.c: Likewise.
10240 * graphite-blocking.c: Likewise.
10241 * graphite-dependences.c: Likewise.
10242 * graphite-interchange.c: Likewise.
10243 * graphite-isl-ast-to-gimple.c: Likewise.
10244 * graphite-optimize-isl.c: Likewise.
10245 * graphite-poly.c: Likewise.
10246 * graphite-scop-detection.c: Likewise.
10247 * graphite-sese-to-poly.c: Likewise.
10248 * graphite.c: Likewise.
10249 * haifa-sched.c: Likewise.
10250 * hw-doloop.c: Likewise.
10251 * ifcvt.c: Likewise.
10252 * init-regs.c: Likewise.
10253 * internal-fn.c: Likewise.
10254 * ipa-chkp.c: Likewise.
10255 * ipa-comdats.c: Likewise.
10256 * ipa-cp.c: Likewise.
10257 * ipa-devirt.c: Likewise.
10258 * ipa-icf-gimple.c: Likewise.
10259 * ipa-icf.c: Likewise.
10260 * ipa-inline-analysis.c: Likewise.
10261 * ipa-inline-transform.c: Likewise.
10262 * ipa-inline.c: Likewise.
10263 * ipa-polymorphic-call.c: Likewise.
10264 * ipa-profile.c: Likewise.
10265 * ipa-prop.c: Likewise.
10266 * ipa-pure-const.c: Likewise.
10267 * ipa-ref.c: Likewise.
10268 * ipa-reference.c: Likewise.
10269 * ipa-split.c: Likewise.
10270 * ipa-utils.c: Likewise.
10271 * ipa-visibility.c: Likewise.
10273 * ira-build.c: Likewise.
10274 * ira-color.c: Likewise.
10275 * ira-conflicts.c: Likewise.
10276 * ira-costs.c: Likewise.
10277 * ira-emit.c: Likewise.
10278 * ira-lives.c: Likewise.
10280 * jump.c: Likewise.
10281 * langhooks.c: Likewise.
10283 * loop-doloop.c: Likewise.
10284 * loop-init.c: Likewise.
10285 * loop-invariant.c: Likewise.
10286 * loop-iv.c: Likewise.
10287 * loop-unroll.c: Likewise.
10288 * lower-subreg.c: Likewise.
10289 * lra-assigns.c: Likewise.
10290 * lra-coalesce.c: Likewise.
10291 * lra-constraints.c: Likewise.
10292 * lra-eliminations.c: Likewise.
10293 * lra-lives.c: Likewise.
10294 * lra-remat.c: Likewise.
10295 * lra-spills.c: Likewise.
10297 * lto-cgraph.c: Likewise.
10298 * lto-compress.c: Likewise.
10299 * lto-opts.c: Likewise.
10300 * lto-section-in.c: Likewise.
10301 * lto-section-out.c: Likewise.
10302 * lto-streamer-in.c: Likewise.
10303 * lto-streamer-out.c: Likewise.
10304 * lto-streamer.c: Likewise.
10306 * mode-switching.c: Likewise.
10307 * modulo-sched.c: Likewise.
10308 * omega.c: Likewise.
10309 * omp-low.c: Likewise.
10310 * optabs.c: Likewise.
10311 * opts-global.c: Likewise.
10312 * passes.c: Likewise.
10313 * plugin.c: Likewise.
10314 * postreload-gcse.c: Likewise.
10315 * postreload.c: Likewise.
10316 * predict.c: Likewise.
10317 * print-rtl.c: Likewise.
10318 * print-tree.c: Likewise.
10319 * profile.c: Likewise.
10320 * real.c: Likewise.
10321 * realmpfr.c: Likewise.
10322 * recog.c: Likewise.
10324 * reg-stack.c: Likewise.
10325 * regcprop.c: Likewise.
10326 * reginfo.c: Likewise.
10327 * regrename.c: Likewise.
10328 * regstat.c: Likewise.
10329 * reload.c: Likewise.
10330 * reload1.c: Likewise.
10331 * reorg.c: Likewise.
10332 * resource.c: Likewise.
10333 * rtl-chkp.c: Likewise.
10334 * rtlanal.c: Likewise.
10335 * rtlhooks.c: Likewise.
10336 * sanopt.c: Likewise.
10337 * sched-deps.c: Likewise.
10338 * sched-ebb.c: Likewise.
10339 * sched-rgn.c: Likewise.
10340 * sched-vis.c: Likewise.
10341 * sdbout.c: Likewise.
10342 * sel-sched-dump.c: Likewise.
10343 * sel-sched-ir.c: Likewise.
10344 * sel-sched.c: Likewise.
10345 * sese.c: Likewise.
10346 * shrink-wrap.c: Likewise.
10347 * simplify-rtx.c: Likewise.
10348 * stack-ptr-mod.c: Likewise.
10349 * stmt.c: Likewise.
10350 * stor-layout.c: Likewise.
10351 * store-motion.c: Likewise.
10352 * stringpool.c: Likewise.
10353 * symtab.c: Likewise.
10354 * target-globals.c: Likewise.
10355 * targhooks.c: Likewise.
10356 * toplev.c: Likewise.
10357 * tracer.c: Likewise.
10358 * trans-mem.c: Likewise.
10359 * tree-affine.c: Likewise.
10360 * tree-browser.c: Likewise.
10361 * tree-call-cdce.c: Likewise.
10362 * tree-cfg.c: Likewise.
10363 * tree-cfgcleanup.c: Likewise.
10364 * tree-chkp-opt.c: Likewise.
10365 * tree-chkp.c: Likewise.
10366 * tree-chrec.c: Likewise.
10367 * tree-complex.c: Likewise.
10368 * tree-data-ref.c: Likewise.
10369 * tree-dfa.c: Likewise.
10370 * tree-diagnostic.c: Likewise.
10371 * tree-dump.c: Likewise.
10372 * tree-eh.c: Likewise.
10373 * tree-emutls.c: Likewise.
10374 * tree-if-conv.c: Likewise.
10375 * tree-inline.c: Likewise.
10376 * tree-into-ssa.c: Likewise.
10377 * tree-iterator.c: Likewise.
10378 * tree-loop-distribution.c: Likewise.
10379 * tree-nested.c: Likewise.
10380 * tree-nrv.c: Likewise.
10381 * tree-object-size.c: Likewise.
10382 * tree-outof-ssa.c: Likewise.
10383 * tree-parloops.c: Likewise.
10384 * tree-phinodes.c: Likewise.
10385 * tree-predcom.c: Likewise.
10386 * tree-pretty-print.c: Likewise.
10387 * tree-profile.c: Likewise.
10388 * tree-scalar-evolution.c: Likewise.
10389 * tree-sra.c: Likewise.
10390 * tree-ssa-address.c: Likewise.
10391 * tree-ssa-alias.c: Likewise.
10392 * tree-ssa-ccp.c: Likewise.
10393 * tree-ssa-coalesce.c: Likewise.
10394 * tree-ssa-copy.c: Likewise.
10395 * tree-ssa-copyrename.c: Likewise.
10396 * tree-ssa-dce.c: Likewise.
10397 * tree-ssa-dom.c: Likewise.
10398 * tree-ssa-dse.c: Likewise.
10399 * tree-ssa-forwprop.c: Likewise.
10400 * tree-ssa-ifcombine.c: Likewise.
10401 * tree-ssa-live.c: Likewise.
10402 * tree-ssa-loop-ch.c: Likewise.
10403 * tree-ssa-loop-im.c: Likewise.
10404 * tree-ssa-loop-ivcanon.c: Likewise.
10405 * tree-ssa-loop-ivopts.c: Likewise.
10406 * tree-ssa-loop-manip.c: Likewise.
10407 * tree-ssa-loop-niter.c: Likewise.
10408 * tree-ssa-loop-prefetch.c: Likewise.
10409 * tree-ssa-loop-unswitch.c: Likewise.
10410 * tree-ssa-loop.c: Likewise.
10411 * tree-ssa-math-opts.c: Likewise.
10412 * tree-ssa-operands.c: Likewise.
10413 * tree-ssa-phiopt.c: Likewise.
10414 * tree-ssa-phiprop.c: Likewise.
10415 * tree-ssa-pre.c: Likewise.
10416 * tree-ssa-propagate.c: Likewise.
10417 * tree-ssa-reassoc.c: Likewise.
10418 * tree-ssa-sccvn.c: Likewise.
10419 * tree-ssa-scopedtables.c: Likewise.
10420 * tree-ssa-sink.c: Likewise.
10421 * tree-ssa-strlen.c: Likewise.
10422 * tree-ssa-structalias.c: Likewise.
10423 * tree-ssa-tail-merge.c: Likewise.
10424 * tree-ssa-ter.c: Likewise.
10425 * tree-ssa-threadedge.c: Likewise.
10426 * tree-ssa-threadupdate.c: Likewise.
10427 * tree-ssa-uncprop.c: Likewise.
10428 * tree-ssa-uninit.c: Likewise.
10429 * tree-ssa.c: Likewise.
10430 * tree-ssanames.c: Likewise.
10431 * tree-stdarg.c: Likewise.
10432 * tree-streamer-in.c: Likewise.
10433 * tree-streamer-out.c: Likewise.
10434 * tree-streamer.c: Likewise.
10435 * tree-switch-conversion.c: Likewise.
10436 * tree-tailcall.c: Likewise.
10437 * tree-vect-data-refs.c: Likewise.
10438 * tree-vect-generic.c: Likewise.
10439 * tree-vect-loop-manip.c: Likewise.
10440 * tree-vect-loop.c: Likewise.
10441 * tree-vect-patterns.c: Likewise.
10442 * tree-vect-slp.c: Likewise.
10443 * tree-vect-stmts.c: Likewise.
10444 * tree-vectorizer.c: Likewise.
10445 * tree-vrp.c: Likewise.
10446 * tree.c: Likewise.
10447 * tsan.c: Likewise.
10448 * ubsan.c: Likewise.
10449 * valtrack.c: Likewise.
10450 * value-prof.c: Likewise.
10451 * var-tracking.c: Likewise.
10452 * varasm.c: Likewise.
10453 * varpool.c: Likewise.
10454 * vmsdbgout.c: Likewise.
10455 * vtable-verify.c: Likewise.
10457 * wide-int.cc: Likewise.
10458 * xcoffout.c: Likewise.
10459 * config/aarch64/aarch64-builtins.c: Likewise.
10460 * config/aarch64/aarch64.c: Likewise.
10461 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10462 * config/alpha/alpha.c: Likewise.
10463 * config/arc/arc.c: Likewise.
10464 * config/arm/aarch-common.c: Likewise.
10465 * config/arm/arm-builtins.c: Likewise.
10466 * config/arm/arm-c.c: Likewise.
10467 * config/arm/arm.c: Likewise.
10468 * config/avr/avr-c.c: Likewise.
10469 * config/avr/avr-log.c: Likewise.
10470 * config/avr/avr.c: Likewise.
10471 * config/bfin/bfin.c: Likewise.
10472 * config/c6x/c6x.c: Likewise.
10473 * config/cr16/cr16.c: Likewise.
10474 * config/cris/cris.c: Likewise.
10475 * config/darwin-c.c: Likewise.
10476 * config/darwin.c: Likewise.
10477 * config/epiphany/epiphany.c: Likewise.
10478 * config/epiphany/mode-switch-use.c: Likewise.
10479 * config/epiphany/resolve-sw-modes.c: Likewise.
10480 * config/fr30/fr30.c: Likewise.
10481 * config/frv/frv.c: Likewise.
10482 * config/ft32/ft32.c: Likewise.
10483 * config/h8300/h8300.c: Likewise.
10484 * config/i386/i386-c.c: Likewise.
10485 * config/i386/i386.c: Likewise.
10486 * config/i386/msformat-c.c: Likewise.
10487 * config/i386/winnt-cxx.c: Likewise.
10488 * config/i386/winnt-stubs.c: Likewise.
10489 * config/i386/winnt.c: Likewise.
10490 * config/ia64/ia64-c.c: Likewise.
10491 * config/ia64/ia64.c: Likewise.
10492 * config/iq2000/iq2000.c: Likewise.
10493 * config/lm32/lm32.c: Likewise.
10494 * config/m32c/m32c-pragma.c: Likewise.
10495 * config/m32c/m32c.c: Likewise.
10496 * config/m32r/m32r.c: Likewise.
10497 * config/m68k/m68k.c: Likewise.
10498 * config/mcore/mcore.c: Likewise.
10499 * config/mep/mep-pragma.c: Likewise.
10500 * config/mep/mep.c: Likewise.
10501 * config/microblaze/microblaze-c.c: Likewise.
10502 * config/microblaze/microblaze.c: Likewise.
10503 * config/mips/mips.c: Likewise.
10504 * config/mmix/mmix.c: Likewise.
10505 * config/mn10300/mn10300.c: Likewise.
10506 * config/moxie/moxie.c: Likewise.
10507 * config/msp430/msp430-c.c: Likewise.
10508 * config/msp430/msp430.c: Likewise.
10509 * config/nds32/nds32-cost.c: Likewise.
10510 * config/nds32/nds32-fp-as-gp.c: Likewise.
10511 * config/nds32/nds32-intrinsic.c: Likewise.
10512 * config/nds32/nds32-isr.c: Likewise.
10513 * config/nds32/nds32-md-auxiliary.c: Likewise.
10514 * config/nds32/nds32-memory-manipulation.c: Likewise.
10515 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10516 * config/nds32/nds32-predicates.c: Likewise.
10517 * config/nds32/nds32.c: Likewise.
10518 * config/nios2/nios2.c: Likewise.
10519 * config/nvptx/nvptx.c: Likewise.
10520 * config/pa/pa.c: Likewise.
10521 * config/pdp11/pdp11.c: Likewise.
10522 * config/rl78/rl78-c.c: Likewise.
10523 * config/rl78/rl78.c: Likewise.
10524 * config/rs6000/rs6000-c.c: Likewise.
10525 * config/rs6000/rs6000.c: Likewise.
10526 * config/rx/rx.c: Likewise.
10527 * config/s390/s390-c.c: Likewise.
10528 * config/s390/s390.c: Likewise.
10529 * config/sh/sh-c.c: Likewise.
10530 * config/sh/sh-mem.cc: Likewise.
10531 * config/sh/sh.c: Likewise.
10532 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10533 * config/sh/sh_treg_combine.cc: Likewise.
10534 * config/sol2-c.c: Likewise.
10535 * config/sol2-cxx.c: Likewise.
10536 * config/sol2-stubs.c: Likewise.
10537 * config/sol2.c: Likewise.
10538 * config/sparc/sparc-c.c: Likewise.
10539 * config/sparc/sparc.c: Likewise.
10540 * config/spu/spu-c.c: Likewise.
10541 * config/spu/spu.c: Likewise.
10542 * config/stormy16/stormy16.c: Likewise.
10543 * config/tilegx/mul-tables.c: Likewise.
10544 * config/tilegx/tilegx-c.c: Likewise.
10545 * config/tilegx/tilegx.c: Likewise.
10546 * config/tilepro/mul-tables.c: Likewise.
10547 * config/tilepro/tilepro-c.c: Likewise.
10548 * config/tilepro/tilepro.c: Likewise.
10549 * config/v850/v850-c.c: Likewise.
10550 * config/v850/v850.c: Likewise.
10551 * config/vax/vax.c: Likewise.
10552 * config/visium/visium.c: Likewise.
10553 * config/vms/vms-c.c: Likewise.
10554 * config/vms/vms.c: Likewise.
10555 * config/vxworks.c: Likewise.
10556 * config/xtensa/xtensa.c: Likewise.
10558 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
10560 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
10561 Remove operand constraints. Change operand 2 predicate to
10562 nonmemory operand. Limit const_int values to mode bitsize. Only
10563 allow const_int values less than 32 when optimizing for size.
10564 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
10565 Remove operand constraints.
10566 (*bt<mode>): Use SImode for const_int values less than 32.
10567 (regmode): Remove mode attribute.
10569 2015-07-07 Anatoly Sokolov <aesok@post.ru>
10571 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10572 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
10573 moxie_legitimate_address_p): New functions.
10574 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
10576 2015-07-07 Tom de Vries <tom@codesourcery.com>
10578 PR tree-optimization/66642
10579 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
10580 header comment. Rename split_edge variable to edge_at_split. Split
10581 exit edge to create new loop exit bb. Insert loop exit phis in new
10584 2015-07-07 Tom de Vries <tom@codesourcery.com>
10586 * tree-cfg.c (get_virtual_phi): New function.
10587 * tree-cfg.h (get_virtual_phi): Declare.
10588 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
10589 (rewrite_virtuals_into_loop_closed_ssa): New function.
10590 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
10592 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
10593 (transform_to_exit_first_loop_alt): Use
10594 rewrite_virtuals_into_loop_closed_ssa.
10596 2015-07-07 Richard Biener <rguenther@suse.de>
10598 * fold-const.c (fold_binary_loc): Move
10599 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
10600 * match.pd: ... here.
10601 Add (X * C1) % C2 -> 0 simplification pattern derived from
10604 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
10607 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
10608 change for target/65249.
10610 2015-07-07 Paulo Matos <pmatos@broadcom.com>
10612 * symtab.c (address_matters_1): Fix typo in comment above.
10613 (can_increase_alignment_p): Likewise.
10615 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10617 * function.c (free_after_compilation): Clear PROP_cfg in
10618 f->curr_properties.
10620 2015-07-07 Richard Biener <rguenther@suse.de>
10622 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
10624 (add_control_edge): Remove excessive vertical space in dumping.
10625 (process_ssa_edge_worklist): Simulate at most one statement and
10626 return whether we did. Do not simulate PHIs if they are in a
10627 BB not yet simulated.
10628 (ssa_propagate): Adjust to always drain the BB worklist whenever
10629 a BB is available there, likewise the VARYING edges list before
10630 the interesting edge list.
10632 2015-07-07 Christian Bruel <christian.bruel@st.com>
10635 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
10637 2015-07-07 Richard Biener <rguenther@suse.de>
10639 PR middle-end/66739
10640 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
10643 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10645 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
10646 modes for operands 0 and 3. Use SImode for operands 2 and 3.
10647 Copy operand 0 to a temporary if !ext_register_operand. Remove
10648 ancient extract_bit_field workaround.
10649 (insv<mode>_1): Rename from mov<mode>_insv_1.
10650 (*insvqi): Rename from *movqi_insv_2.
10651 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
10652 for renamed insvsi_1.
10653 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
10655 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
10657 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
10658 call to nvptx_reorg_subreg.
10660 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
10662 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
10663 * graphite-dependencies.c, graphite-interchange.c,
10664 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
10665 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
10668 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
10670 * match.pd: Remove element_mode inside HONOR_*.
10671 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
10672 (~X | X -> -1, ~X ^ X -> -1): Merge.
10673 * tree.c (build_each_one_cst): New function.
10674 * tree.h (build_each_one_cst): Likewise.
10676 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10678 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10681 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
10683 * config.gcc <mips*-*-*>: Add fused-madd.opt.
10684 * config/mips/mips.opt (mfused-madd): Remove.
10685 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
10686 * config/mips/mips.h (TARGET_MIPS8000): New.
10687 (ISA_HAS_FP_MADD4_MSUB4): Remove.
10688 (ISA_HAS_FP_MADDF_MSUBF): Remove.
10689 (ISA_HAS_FP_MADD3_MSUB3): Remove.
10690 (ISA_HAS_NMADD4_NMSUB4): Remove.
10691 (ISA_HAS_NMADD3_NMSUB3): Remove.
10692 (ISA_HAS_FUSED_MADD4): New.
10693 (ISA_HAS_UNFUSED_MADD4): New.
10694 (ISA_HAS_FUSED_MADDF): New.
10695 (ISA_HAS_FUSED_MADD3): New.
10696 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
10697 (*fma<mode>4_madd3) New.
10698 (*fma<mode>4_madd4) New.
10699 (*fma<mode>4_maddf) New.
10701 (*fms<mode>4_msub3) New.
10702 (*fms<mode>4_msub4) New.
10704 (*fnma<mode>4_nmadd3) New.
10705 (*fnma<mode>4_nmadd4) New.
10707 (*fnms<mode>4_nmsub3) New.
10708 (*fnms<mode>4_nmsub4) New.
10709 (*madd4<mode>) Modify to be unfused only.
10710 (*msub4<mode>) Modify to be unfused only.
10711 (*nmadd4<mode>) Modify to be unfused only.
10712 (*nmsub4<mode>) Modify to be unfused only.
10713 (*madd3<mode>) Remove.
10714 (*msub3<mode>) Remove.
10715 (*nmadd3<mode>) Remove.
10716 (*nmsub3<mode>) Remove.
10717 (*nmadd3<mode>_fastmath) Remove.
10718 (*nmsub3<mode>_fastmath) Remove.
10719 (*nmadd4<mode>_fastmath) Update condition.
10720 (*nmsub4<mode>_fastmath) Update condition.
10722 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10725 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
10726 alignment attribute, exploring one level down for records and arrays.
10728 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10730 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
10731 modes for operands 0 and 1. Use SImode for operands 2 and 3.
10732 Copy operand 1 to a temporary if !ext_register_operand. Remove
10733 ancient extract_bit_field workaround.
10734 (*extv<mode>): Rename from *mov<mode>_extv_1.
10735 (*extvqi): Rename from *movqi_extv_1.
10736 (extzv<mode>): Rename from extzv. Use SWI248 modes for
10737 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
10738 to a temporary if !ext_register_operand. Remove ancient
10739 extract_bit_field workaround.
10740 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
10741 (*extzvqi): Rename from *movqi_extzv_2.
10742 (*testqi_ext_3): Remove modes from const_int_operand predicated
10743 operands. Add "n" constraint.
10744 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
10745 operand. Add "J" constraint.
10746 (*btsq, *btrq, *btcq peephole2s): Remove mode from
10747 const_0_to_63 predicated operand.
10748 (regmode): New insn attribute.
10749 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
10750 to nonmemory_operand. Use regmode insn attribute.
10751 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
10752 (*jcc_bt<mode>_mask): Remove mode from operand 3.
10753 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
10754 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
10755 operands. Use "N" constraint instead of "n".
10757 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10759 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
10761 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10764 * config/i386/i386.c (iamcu_cost): New.
10765 (m_IAMCU): Likewise.
10766 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
10767 (processor_target_table): Add an entry for "iamcu".
10768 (processor_alias_table): Likewise.
10769 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
10770 (ix86_adjust_cost): Likewise.
10771 (ia32_multipass_dfa_lookahead): Likewise.
10772 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
10773 * config/i386/x86-tune.def: Updated for m_IAMCU.
10775 2015-07-06 Richard Biener <rguenther@suse.de>
10777 PR tree-optimization/66772
10778 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
10779 values are available in the PHI node BB when there are
10780 still unexecutable edges.
10782 2015-07-06 Richard Biener <rguenther@suse.de>
10784 PR tree-optimization/66767
10785 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
10786 Make sure to build the alignment test on a SSA name without
10787 final alignment info valid only if the alignment test
10790 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
10793 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
10794 loop start when inserting LSETUP.
10796 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10799 * config/i386/i386.c (ix86_option_override_internal): Allow
10800 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
10802 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10804 * read-md.c (decimal_string): Rename to ...
10805 (md_decimal_string): ... this.
10806 (handle_enum): Reflect this.
10808 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10811 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
10813 2015-07-06 Richard Biener <rguenther@suse.de>
10815 PR middle-end/66759
10816 * match.pd: Add missing constraint of y to REAL_CST in
10817 REAL_CST - x CMP y to y - CST CMP x simplification.
10819 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
10821 PR tree-optimization/66757
10822 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
10824 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
10825 Sandra Loosemore <sandra@codesourcery.com>
10827 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
10828 Delete extern declaration.
10829 (gprel_constant_p): Add extern declaration.
10830 * config/nios2/constraints.md ("S"): Use gprel_constant_p
10831 instead of nios2_symbol_ref_in_small_data_p.
10832 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
10833 (nios2_symbol_ref_in_small_data_p): Make static.
10834 (gprel_constant_p): Make non-static.
10836 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10838 * doc/fragments.texi (Target Fragment): Convert debian.org
10840 * doc/install.texi (Configuration): Ditto.
10842 2015-07-05 Jakub Jelinek <jakub@redhat.com>
10844 PR tree-optimization/66718
10845 * tree-vect-stmts.c (vectorizable_call): Replace uses of
10846 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
10848 PR tree-optimization/66718
10849 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
10850 vectorizable_load, vectorizable_condition): Move vectype,
10851 nunits, ncopies computation after checking what kind of statement
10854 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10856 * target-insns.def (extv, extzv, insv): New targetm instruction
10858 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
10860 * recog.c (simplify_while_replacing): Likewise.
10862 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10864 * target-insns.def (doloop_begin, doloop_end): New targetm
10865 instruction patterns.
10866 * loop-init.c: Include target.h.
10867 (pass_loop2::gate): Use the new targetm patterns instead of
10868 HAVE_*/gen_* interface.
10869 (pass_rtl_doloop::gate): Likewise.
10870 (pass_rtl_doloop::execute): Remove preprocessor condition.
10871 * hw-doloop.c: Build unconditionally.
10872 * loop-doloop.c: Likewise.
10873 (doloop_optimize): Use the new targetm patterns instead of
10874 HAVE_*/gen_* interface.
10875 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
10876 * modulo-sched.c (doloop_register_get): Likewise.
10878 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10880 * target-insns.def (clear_cache): New targetm instruction pattern.
10881 * builtins.c (expand_builtin___clear_cache): Use it instead of
10882 HAVE_*/gen_* interface.
10884 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10886 * target-insns.def (allocate_stack, check_stack, probe_stack)
10887 (probe_stack_address, split_stack_prologue, split_stack_space_check):
10888 New targetm instruction patterns.
10889 * explow.c (allocate_dynamic_stack_space): Use them instead of
10890 HAVE_*/gen_* interface.
10891 (emit_stack_probe): Likewise.
10892 (probe_stack_range): Likewise.
10893 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10895 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10897 * target-insns.def (stack_protect_set, stack_protect_test): New
10898 targetm instruction patterns.
10899 * cfgexpand.c (stack_protect_prologue): Use them instead of
10900 HAVE_*/gen_* interface.
10901 * function.c (stack_protect_epilogue): Likewise.
10903 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10905 * expr.h (gen_move_insn_uncast): Delete.
10906 * expr.c (gen_move_insn_uncast): Delete.
10908 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10910 * target-insns.def (restore_stack_block, restore_stack_function)
10911 (restore_stack_nonlocal, save_stack_block, save_stack_function)
10912 (save_stack_nonlocal): New targetm instruction patterns.
10913 * builtins.c (expand_builtin_apply): Use them instead of
10914 HAVE_*/gen_* interface.
10915 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
10917 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10919 * target-insns.def (trap): New targetm instruction pattern.
10920 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
10922 * explow.c (allocate_dynamic_stack_space): Likewise.
10923 * ifcvt.c (find_if_header): Likewise.
10925 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10927 * target-insns.def (prefetch): New targetm instruction pattern.
10928 * tree-ssa-loop-prefetch.c: Include targeth.
10929 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
10930 of HAVE_*/gen_* interface.
10931 * builtins.c (expand_builtin_prefetch): Likewise.
10932 * toplev.c (process_options): Likewise.
10934 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10936 * target-insns.def (untyped_call, untyped_return): New targetm
10937 instruction patterns.
10938 * builtins.c (expand_builtin_apply): Use them instead of
10939 HAVE_*/gen_* interface.
10940 (result_vector): Define unconditionally.
10942 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10944 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
10945 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
10946 (nonlocal_goto_receiver): New targetm instruction patterns.
10947 * builtins.c (expand_builtin_setjmp_setup): Use them instead
10948 of HAVE_*/gen_* interface.
10949 (expand_builtin_setjmp_receiver): Likewise.
10950 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
10951 * except.c (expand_dw2_landing_pad_for_region): Likewise.
10953 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10955 * target.def: Add code_for_* hooks.
10956 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
10957 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
10958 * target-insns.def (casesi, tablejump): New targetm instruction
10960 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
10961 (do_tablejump): Likewise.
10962 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
10963 (expand_sjlj_dispatch_table): Likewise.
10964 * targhooks.c (default_case_values_threshold): Likewise.
10966 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
10968 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
10969 Use rtx_insn * instead of rtx.
10970 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
10971 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
10972 (nios2_call_tls_get_addr): Likewise.
10973 (nios2_emit_expensive_div): Likewise.
10974 (nios2_emit_move_sequence): Change return type to bool.
10975 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
10976 Change return type to bool.
10978 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10981 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
10983 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
10986 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
10987 of register_operand. Remove constraint.
10989 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
10991 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
10992 the first argument.
10994 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
10996 * attribs.c (decl_attributes): Guard inform with the return value
10997 of the preceding warning.
10999 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
11001 * doc/invoke.texi (moverride): Move to correct section.
11003 2015-07-03 Richard Biener <rguenther@suse.de>
11005 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
11007 (dt_operand::gen_gimple_expr): After valueizing operands
11008 re-canonicalize operand order for commutative tree codes.
11010 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
11013 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
11015 (__crc32w): Likewise.
11016 (__crc32d): Likewise.
11017 (__rdpmc): Likewise.
11018 (__rdtscp): Likewise.
11019 (_rdpmc): Likewise.
11020 (_rdtscp): Likewise.
11021 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
11024 2015-07-03 Richard Biener <rguenther@suse.de>
11026 * fold-const.c (fold_mathfn_compare): Remove.
11027 (fold_inf_compare): Likewise.
11028 (fold_comparison): Move floating point comparison simplifications...
11029 * match.pd: ... to patterns here. Introduce simple_comparisons
11030 operator list and use it for patterns formerly in fold_comparison.
11032 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
11034 PR tree-optimization/66119
11035 * toplev.c (process_options): Don't set up default values for
11036 the sra_max_scalarization_size_{speed,size} parameters.
11037 * tree-sra (analyze_all_variable_accesses): If no values
11038 have been set for the sra_max_scalarization_size_{speed,size}
11039 parameters, call get_move_ratio to get target defaults.
11041 2015-07-03 Richard Biener <rguenther@suse.de>
11043 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
11044 * match.pd: ... here.
11046 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
11049 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
11050 is not actually the default on FreeBSD.
11052 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11054 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
11056 (CMPGE_8HI): Likewise.
11057 (CMPGE_4SI): Likewise.
11058 (CMPGE_2DI): Likewise.
11059 (CMPGE_U16QI): Likewise.
11060 (CMPGE_U8HI): Likewise.
11061 (CMPGE_U4SI): Likewise.
11062 (CMPGE_U2DI): Likewise.
11063 (CMPLE_16QI): Likewise.
11064 (CMPLE_8HI): Likewise.
11065 (CMPLE_4SI): Likewise.
11066 (CMPLE_2DI): Likewise.
11067 (CMPLE_U16QI): Likewise.
11068 (CMPLE_U8HI): Likewise.
11069 (CMPLE_U4SI): Likewise.
11070 (CMPLE_U2DI): Likewise.
11071 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11072 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
11073 ALTIVEC_BUILTIN_VEC_CMPLE.
11074 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
11075 floating-point vector modes.
11076 (vector_nlt<mode>): New define_expand.
11077 (vector_nltu<mode>): Likewise.
11078 (vector_ngt<mode>): Likewise.
11079 (vector_ngtu<mode>): Likewise.
11081 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
11083 PR rtl-optimization/66706
11084 * combine.c (make_compound_operation): If an AND of SUBREG of
11085 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
11087 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
11089 * tree-pass.h (make_pass_ch_vect): New.
11090 * passes.def: Add pass_ch_vect just before pass_if_conversion.
11092 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
11093 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
11094 make_pass_ch_vect): New.
11095 (pass_ch): Extend ch_base.
11097 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
11098 (ch_base::copy_headers): ...here.
11100 2015-07-02 Richard Biener <rguenther@suse.de>
11102 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
11103 * fold-const.c (get_pointer_modulus_and_residue): Remove.
11104 (fold_binary_loc): Implement (T)ptr & CST in terms of
11105 get_pointer_alignment_1.
11106 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
11107 Make sure to build the alignment test on a SSA name without
11108 final alignment info valid only after the prologue.
11110 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
11112 * config/cris/cris.md ("epilogue"): Remove condition.
11113 ("prologue"): Ditto.
11115 2015-07-02 Richard Biener <rguenther@suse.de>
11117 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
11118 parameter to record a condition that is false.
11119 (record_conditions): When recording an extra NE_EXPR that is
11120 true also record a EQ_EXPR that is false.
11122 2015-07-02 Bin Cheng <bin.cheng@arm.com>
11124 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
11125 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
11126 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
11127 (set_iv, find_interesting_uses_address, add_candidate_1): New
11128 argument to alloc_iv.
11129 (find_interesting_uses_op, find_interesting_uses_cond): Don't
11130 duplicate struct iv.
11131 (free_loop_data): Don't free struct iv explicitly.
11132 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
11134 2015-07-01 DJ Delorie <dj@redhat.com>
11136 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
11138 (SUPPORTS_DISCRIMINATOR): Define.
11140 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
11143 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
11144 there are no CALLs in the same pattern.
11146 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11148 PR rtl-optimization/61047
11149 * rtlanal.c (get_initial_register_offset): New function.
11150 (rtx_addr_can_trap_p_1): Check offsets of stack references.
11152 2015-07-01 Richard Biener <rguenther@suse.de>
11154 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
11155 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
11156 ~X CMP C -> X CMP' ~C to ...
11157 * match.pd: ... patterns here.
11159 2015-07-01 Nick Clifton <nickc@redhat.com>
11161 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
11162 a 16-bit value into a 20-bit memory slot.
11164 2015-07-01 Jiong Wang <jiong.wang@arm.com>
11166 * doc/sourcebuild.texi (AArch64-specific attributes): Document
11167 "aarch64_tiny", "aarch64_small", "aarch64_large",
11168 "aarch64_little_endian", "aarch64_big_endian".
11170 2015-07-01 Jiong Wang <jiong.wang@arm.com>
11172 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
11173 Document "aarch64_small_fpic".
11175 2015-07-01 Jiong Wang <jiong.wang@arm.com>
11177 * configure.ac: Add check for aarch64 assembler -fpic relocation
11179 * configure: Regenerate.
11180 * config.in: Regenerate.
11181 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
11182 to -fPIC if not support of -fpic relocation modifier in assembler.
11184 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
11187 * rtl.c (classify_insn): Handle returns in PARALLELs.
11189 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
11191 PR middle-end/66633
11192 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
11193 to true if the function is nested and if not optimizing.
11194 (convert_local_omp_clauses): Initialize need_frame to true if the
11195 function contains nested functions and if not optimizing.
11197 2015-07-01 Richard Biener <rguenther@suse.de>
11199 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
11200 (X & Y) ^ Y -> ~X & Y transforms to ...
11201 * match.pd: ... here.
11203 2015-07-01 Richard Biener <rguenther@suse.de>
11205 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
11206 of converts to avoid uninteresting noise from the conversion
11207 simplifying patterns.
11209 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
11211 * config/c6x/c6x.c (try_rename_operands): Do not depend on
11212 gcc_assert evaluating its argument for side-effect.
11214 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
11217 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
11220 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
11222 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
11223 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
11224 (hash_scc): Add this_ref_p and ref_p parameters and pass them
11225 to the inner DFS walk.
11227 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11229 * target-insns.def (jump): New targetm instruction pattern.
11230 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
11231 instead of gen_jump.
11232 (fix_up_crossing_landing_pad): Likewise.
11233 (add_labels_and_missing_jumps): Likewise.
11234 (fix_crossing_conditional_branches): Likewise.
11235 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11236 (force_nonfallthru_and_redirect): Likewise.
11237 * cse.c (cse_insn): Likewise.
11238 * expmed.c (expand_divmod): Likewise.
11239 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
11240 * haifa-sched.c (init_before_recovery): Likewise.
11241 (sched_create_recovery_edges): Likewise.
11242 * ifcvt.c (find_cond_trap): Likewise.
11243 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
11244 (expand_float, expand_fix): Likewise.
11245 * stmt.c (emit_jump): Likewise.
11247 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11249 * defaults.h (HAVE_load_multiple, gen_load_multiple)
11250 (HAVE_store_multiple, gen_store_multiple): Delete.
11251 * target-insns.def (load_multiple, store_multiple): New targetm
11252 instruction patterns.
11253 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
11254 of HAVE_*/gen_* interface.
11256 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11258 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
11259 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
11260 (gen_mem_signal_fence): Delete.
11261 * target-insns.def (mem_signal_fence, mem_thread_fence)
11262 (memory_barrier): New targetm instruction patterns.
11263 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
11265 (expand_mem_signal_fence): Likewise.
11267 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11269 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
11270 * target-insns.def (epilogue, prologue, sibcall_prologue): New
11271 targetm instruction patterns.
11272 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
11274 * calls.c (expand_call): Likewise.
11275 * cfgrtl.c (cfg_layout_finalize): Likewise.
11276 * df-scan.c (df_get_entry_block_def_set): Likewise.
11277 (df_get_exit_block_use_set): Likewise.
11278 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
11279 * final.c (final_start_function): Likewise.
11280 * function.c (thread_prologue_and_epilogue_insns): Likewise.
11281 (reposition_prologue_and_epilogue_notes): Likewise.
11282 * reorg.c (find_end_label): Likewise.
11283 * toplev.c (process_options): Likewise.
11285 2015-06-30 David Malcolm <dmalcolm@redhat.com>
11287 * typed-splay-tree.h: New file.
11289 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
11292 * lra-int.h (lra_substitute_pseudo): Add a parameter.
11293 (lra_substitute_pseudo_within_insn): Ditto.
11294 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
11296 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
11297 to lra_substitute_pseudo.
11298 * lra-lives.c (process_bb_lives): Add an argument to
11299 lra_substitute_pseudo_within_insn call.
11300 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
11301 argument to lra_substitute_pseudo and
11302 lra_substitute_pseudo_within_insn calls.
11303 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
11305 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
11307 * configure: Regenerated.
11309 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
11311 * config.gcc: Support i[34567]86-*-elfiamcu target.
11312 * config/i386/iamcu.h: New.
11313 * config/i386/i386.opt: Add -miamcu.
11314 * doc/invoke.texi: Document -miamcu.
11315 * common/config/i386/i386-common.c (ix86_handle_option): Turn
11316 off x87/MMX/SSE/AVX codegen for -miamcu.
11317 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11318 __iamcu/__iamcu__ for -miamcu.
11319 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
11320 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
11321 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
11322 * config/i386/i386.c (ix86_option_override_internal): Ignore and
11323 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
11324 MCU by default. Default long double to 64-bit for Intel MCU.
11325 Turn on -freg-struct-return for Intel MCU. Issue an error when
11326 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
11328 (function_arg_advance_32): Pass value whose size is no larger
11329 than 8 bytes in registers for Intel MCU.
11330 (function_arg_32): Likewise.
11331 (ix86_return_in_memory): Return value whose size is no larger
11332 than 8 bytes in registers for Intel MCU.
11333 (iamcu_alignment): New function.
11334 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
11336 (ix86_local_alignment): Don't increase alignment for Intel MCU.
11337 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
11340 2015-06-30 Marek Polacek <polacek@redhat.com>
11342 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
11343 both operands of the resulting expression.
11345 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
11346 the final expression with the operand's type and then convert
11347 it to the type of the expression.
11349 2015-06-30 Richard Biener <rguenther@suse.de>
11351 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
11352 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
11353 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
11354 * match.pd: ... to patterns here.
11356 2015-06-30 Richard Biener <rguenther@suse.de>
11358 PR tree-optimization/66704
11359 * tree-vect-data-refs.c (vect_setup_realignment): Use
11360 make_ssa_name for non-SSA name source.
11362 2015-06-30 Jakub Jelinek <jakub@redhat.com>
11364 PR middle-end/66702
11365 * omp-low.c (simd_clone_adjust): Handle addressable linear
11366 or uniform parameters or non-gimple type uniform parameters.
11368 2015-06-30 Richard Biener <rguenther@suse.de>
11370 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
11371 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
11372 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
11373 * match.pd: ... here.
11374 Add a few cases of A - B -> A + (-B) when B "easily" negates.
11375 Move (x & y) | x -> x and friends before
11376 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
11378 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
11380 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
11381 -mfix-ut699 is not specified.
11382 (leon3_load): Rename into...
11383 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
11386 2015-06-30 Marek Polacek <polacek@redhat.com>
11388 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
11389 * match.pd: ... here.
11391 2015-06-30 Richard Biener <rguenther@suse.de>
11393 * target-insns.def (canonicalize_funcptr_for_compare): Add.
11394 * fold-const.c (build_range_check): Replace uses of
11395 HAVE_canonicalize_funcptr_for_compare.
11396 (fold_widened_comparison): Likewise.
11397 (fold_sign_changed_comparison): Likewise.
11398 * dojump.c: Include "target.h".
11399 (do_compare_and_jump): Replace uses of
11400 HAVE_canonicalize_funcptr_for_compare and
11401 gen_canonicalize_funcptr_for_compare.
11402 * expr.c (do_store_flag): Likewise.
11404 2015-06-30 Tom de Vries <tom@codesourcery.com>
11406 PR tree-optimization/66652
11407 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
11408 max_loop_iterations to determine if nit + 1 overflows.
11410 2015-06-30 Richard Biener <rguenther@suse.de>
11412 * tree-vrp.c (register_edge_assert_for_2): Also register
11413 asserts for dominating conversion results.
11415 2015-06-30 Bin Cheng <bin.cheng@arm.com>
11417 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
11418 field in struct iv.
11420 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
11423 * configure.ac: Fix filds and fildq test for 64-bit.
11424 * configure: Regenerated.
11426 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
11428 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
11429 (nvptx_reorg): Here. Keep the non-subreg pieces.
11431 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
11433 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
11434 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
11436 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
11438 * config/i386/i386.md (*jcc_1): Use %! in asm template.
11439 Set attribute "length_nobnd" instead of "length".
11442 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
11444 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
11446 * config/nios2/nios2.c (nios2_delegitimize_address): Make
11447 assert less restrictive.
11449 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
11452 * cgraphunit.c (cgraph_node::finalize_function): Do not call
11453 do_warn_unused_parameter.
11454 * function.c (do_warn_unused_parameter): Move from here.
11455 * function.h (do_warn_unused_parameter): Do not declare.
11457 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11460 * gcc.target/arm/armv-sync-comp-swap.c: New.
11461 * gcc.target/arm/armv-sync-op-acquire.c: New.
11462 * gcc.target/arm/armv-sync-op-full.c: New.
11463 * gcc.target/arm/armv-sync-op-release.c: New.
11465 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11468 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
11469 initial acquire barrier with final barrier.
11471 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11474 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
11475 initial acquire barrier with final barrier.
11477 2015-06-29 Richard Henderson <rth@redhat.com>
11479 * config/i386/constraints.md (Bf): New constraint.
11480 * config/i386/i386-c.c (ix86_target_macros): Define
11481 __GCC_ASM_FLAG_OUTPUTS__.
11482 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
11484 * doc/extend.texi (FlagOutputOperands): Document them.
11486 2015-06-29 Jiong Wang <jiong.wang@arm.com>
11488 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
11489 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
11491 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
11492 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
11493 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
11494 (aarch64_symbol_context): Ditto.
11495 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
11496 and use new pattern name.
11497 (aarch64_expand_mov_immediate): Ditto.
11498 (aarch64_print_operand): Ditto.
11499 (aarch64_classify_tls_symbol): Ditto.
11501 2015-06-29 Marek Polacek <polacek@redhat.com>
11502 Marc Glisse <marc.glisse@inria.fr>
11504 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
11505 * match.pd: ... pattern here.
11507 2015-06-29 Tom de Vries <tom@codesourcery.com>
11509 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
11510 function structure.
11512 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11514 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
11515 feature description, split out the native option, add a link to
11516 the feature documentation, rearrange and slightly rewrite text.
11517 (Aarch64 options, -mcpu): Likewise.
11518 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
11519 +rdma implies Adv. SIMD.
11521 2015-06-29 Marek Polacek <polacek@redhat.com>
11524 * function.c (stack_protect_epilogue): Remove a cast to int.
11525 * doc/invoke.texi: Update -Wswitch-bool description.
11527 2015-06-29 Richard Biener <rguenther@suse.de>
11529 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
11530 * fold-const.c (fold_binary_loc): Move &A - &B simplification
11531 via ptr_difference_const ...
11532 * match.pd: ... here.
11533 When matching (X ^ Y) == Y also match with swapped operands.
11535 2015-06-29 Richard Biener <rguenther@suse.de>
11537 * lto-streamer.h (LTO_major_version): Bump to 5.
11539 2015-06-29 Richard Biener <rguenther@suse.de>
11541 PR tree-optimization/66677
11542 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
11543 STMT_VINFO_VEC_STMT clobbering less strict.
11545 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
11547 PR middle-end/64130
11548 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
11549 division, compute max and min when value ranges for dividend and
11550 divisor are available.
11552 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
11553 Sandra Loosemore <sandra@codesourcery.com>
11555 * regrename.h (regrename_do_replace): Change to return bool.
11556 * regrename.c (rename_chains): Check return value of
11557 regname_do_replace.
11558 (regrename_do_replace): Re-validate the modified insns and
11559 return bool status.
11560 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
11561 Update to match rename_chains changes.
11562 * config/c6x/c6x.c (try_rename_operands): Assert that
11563 regrename_do_replace returns true.
11565 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
11567 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
11568 operand 2 here. Use copy_addr_to_reg to copy non-index
11569 register operand 2 to a temporary.
11570 (<mode>_stx): Ditto for operand 1.
11571 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
11572 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
11573 (ix86_store_bounds): Ditto.
11575 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
11577 * print-tree.c (print_node) [TREE_VEC]: Print its length.
11579 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
11581 * gimple.c (gimple_call_set_fndecl): Remove.
11582 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
11583 build1_loc directly instead of build_fold_addr_expr_loc.
11585 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11587 * hash-map.h (hash_map::traverse): Use the definition of the
11588 Key typedef rather than the typedef itself.
11590 2015-06-26 Martin Jambor <mjambor@suse.cz>
11593 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
11594 NULL instead of calling dump_enabled_p.
11596 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11598 * config/aarch64/aarch64.opt: (override): New.
11599 * doc/invoke.texi (override): Document.
11600 * config/aarch64/aarch64.c (aarch64_flag_desc): New
11601 (aarch64_fusible_pairs): Likewise.
11602 (aarch64_tuning_flags): Likewise.
11603 (aarch64_tuning_override_function): Likewise.
11604 (aarch64_tuning_override_functions): Likewise.
11605 (aarch64_parse_one_option_token): Likewise.
11606 (aarch64_parse_boolean_options): Likewise.
11607 (aarch64_parse_fuse_string): Likewise.
11608 (aarch64_parse_tune_string): Likewise.
11609 (aarch64_parse_one_override_token): Likewise.
11610 (aarch64_parse_override_string): Likewise.
11611 (aarch64_override_options): Parse the -override string if it
11614 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11616 * config/aarch64/aarch64-protos.h (tune_params): Remove
11617 const from members.
11618 (aarch64_tune_params): Remove const, change to no longer be
11620 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
11621 change to no longer be a pointer, initialize to generic_tunings.
11622 (aarch64_min_divisions_for_recip_mul): Change dereference of
11623 aarch64_tune_params to member access.
11624 (aarch64_reassociation_width): Likewise.
11625 (aarch64_rtx_mult_cost): Likewise.
11626 (aarch64_address_cost): Likewise.
11627 (aarch64_branch_cost): Likewise.
11628 (aarch64_rtx_costs): Likewise.
11629 (aarch64_register_move_cost): Likewise.
11630 (aarch64_memory_move_cost): Likewise.
11631 (aarch64_sched_issue_rate): Likewise.
11632 (aarch64_builtin_vectorization_cost): Likewise.
11633 (aarch64_override_options): Take a copy of the selected tuning
11634 struct in to aarch64_tune_params, rather than just setting
11635 a pointer, change dereferences of aarch64_tune_params to member
11637 (aarch64_override_options_after_change): Change dereferences of
11638 aarch64_tune_params to member access.
11639 (aarch64_macro_fusion_p): Likewise.
11640 (aarch_macro_fusion_pair_p): Likewise.
11641 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
11643 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11645 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
11646 (aarch64_tune_flags): Likewise.
11647 (AARCH64_TUNE_FMA_STEERING): Likewise.
11648 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
11649 to AARCH64_FL_USE_FMA_STEERING_PASS.
11650 (cortex-a57.cortex-a53): Likewise.
11651 (cortex-a72): Use cortexa72_tunings.
11652 (cortex-a72.cortex-a53): Likewise.
11653 (exynos-m1): Likewise.
11654 * config/aarch64/aarch64-protos.h (tune_params): Add
11655 a field: extra_tuning_flags.
11656 * config/aarch64/aarch64-tuning-flags.def: New.
11657 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
11658 (aarch64_extra_tuning_flags): Likewise.
11659 (aarch64_tune_params): Declare here.
11660 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
11661 (cortexa53_tunings): Likewise.
11662 (cortexa57_tunings): Likewise.
11663 (thunderx_tunings): Likewise.
11664 (xgene1_tunings): Likewise.
11665 (cortexa72_tunings): New.
11666 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
11667 (gate): Check against aarch64_tune_params.
11668 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
11671 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11673 * config/aarch64/aarch64-fusion-pairs.def: New.
11674 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
11675 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
11676 aarch64_fusion_pairs.
11677 (AARCH64_FUSE_MOV_MOVK): Likewise.
11678 (AARCH64_FUSE_ADRP_ADD): Likewise.
11679 (AARCH64_FUSE_MOVK_MOVK): Likewise.
11680 (AARCH64_FUSE_ADRP_LDR): Likewise.
11681 (AARCH64_FUSE_CMP_BRANCH): Likewise.
11683 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11685 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
11686 SYMBOL_SMALL_GOT_28K.
11687 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
11688 relocation modifiers.
11689 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
11690 (ldr_got_small_28k_<mode>): New.
11691 (ldr_got_small_28k_sidi): New.
11692 * config/aarch64/iterators.md (got_modifier): New mode iterator.
11693 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
11694 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11695 SYMBOL_SMALL_GOT_28K.
11696 (aarch64_rtx_costs): Add costs for new instruction sequences.
11697 (initialize_aarch64_code_model): Initialize new model.
11698 (aarch64_classify_symbol): Recognize new model and new symbol classification.
11699 (aarch64_asm_preferred_eh_data_format): Support new model.
11700 (aarch64_load_symref_appropriately): Generate new instruction
11701 sequences for -fpic.
11702 (TARGET_USE_PSEUDO_PIC_REG): New definition.
11703 (aarch64_use_pseudo_pic_reg): New function.
11705 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11707 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11708 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
11709 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
11710 (aarch64_expand_mov_immediate): Ditto.
11711 (aarch64_print_operand): Ditto.
11712 (aarch64_classify_symbol): Ditto.
11714 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
11716 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
11718 2015-06-26 Bin Cheng <bin.cheng@arm.com>
11721 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
11722 assertion failed. Remove assertion itself.
11724 2015-06-26 Richard Biener <rguenther@suse.de>
11726 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
11727 and -A CMP CST -> A CMP -CST which is redundant with a pattern
11729 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
11730 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
11731 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
11732 * match.pd: ... patterns here.
11734 2015-06-26 Marek Polacek <polacek@redhat.com>
11736 * match.pd ((x | y) & ~(x & y) -> x ^ y,
11737 (x | y) & (~x ^ y) -> x & y): New patterns.
11739 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11741 * rtl.h (emit): Add an optional boolean parameter to control
11742 whether barriers are emitted.
11743 * emit-rtl.c (emit): Likewise.
11744 * gensupport.c (get_emit_function): Return null rather than "emit".
11745 * genemit.c (gen_emit_seq): Handle the null return value.
11746 Don't emit barriers after the final instruction in the sequence.
11747 * gentarget-def.c (main): Don't emit barriers after the instruction.
11749 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11751 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
11752 TARGET_UNIFIED_ASM.
11754 2015-06-26 Richard Biener <rguenther@suse.de>
11756 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
11758 2015-06-26 Richard Biener <rguenther@suse.de>
11760 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
11761 irrespective on whether the inner operation has a single use
11762 of both off are constant.
11764 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
11765 Segher Boessenkool <segher@kernel.crashing.org>
11768 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
11769 before doing PUT_MODE or PUT_CODE on operands to avoid
11770 in-place RTX modification.
11772 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11774 * gentarget-def.c (def_target_insn): Cast return of strtol to
11777 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11779 * gimple.h (gimple_call_set_fn): Move inline function.
11780 * gimple.c (gimple_call_set_fn): Relocate here.
11782 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
11786 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
11787 the replacement insn will work.
11789 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11791 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
11794 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11796 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
11797 * cgraph.h: Include ipa-ref.h and plugin-api.h.
11798 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
11799 (symtab_node::address_can_be_compared_p): Move function.
11800 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
11802 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
11803 * auto-profile.c: Likewise.
11804 * bb-reorder.c: Likewise.
11805 * builtins.c: Likewise.
11806 * calls.c: Likewise.
11807 * cfgexpand.c: Likewise.
11808 * cgraphbuild.c: Likewise.
11809 * cgraphclones.c: Likewise.
11810 * cgraphunit.c: Likewise.
11811 * combine.c: Likewise.
11812 * coverage.c: Likewise.
11813 * data-streamer-in.c: Likewise.
11814 * data-streamer-out.c: Likewise.
11815 * data-streamer.c: Likewise.
11816 * dbxout.c: Likewise.
11817 * dwarf2out.c: Likewise.
11818 * except.c: Likewise.
11819 * expr.c: Likewise.
11820 * final.c: Likewise.
11821 * fold-const.c: Likewise.
11822 * ggc-page.c: Likewise.
11823 * gimple-fold.c: Likewise.
11824 * gimple-iterator.c: Likewise.
11825 * gimple-pretty-print.c: Likewise.
11826 * gimple-streamer-in.c: Likewise.
11827 * gimple-streamer-out.c: Likewise.
11828 * gimple.c: Likewise.
11829 * gimplify.c: Likewise.
11830 * ipa-chkp.c: Likewise.
11831 * ipa-comdats.c: Likewise.
11832 * ipa-cp.c: Likewise.
11833 * ipa-devirt.c: Likewise.
11834 * ipa-icf-gimple.c: Likewise.
11835 * ipa-icf.c: Likewise.
11836 * ipa-inline-analysis.c: Likewise.
11837 * ipa-inline-transform.c: Likewise.
11838 * ipa-inline.c: Likewise.
11839 * ipa-polymorphic-call.c: Likewise.
11840 * ipa-profile.c: Likewise.
11841 * ipa-prop.c: Likewise.
11842 * ipa-pure-const.c: Likewise.
11843 * ipa-ref.c: Likewise.
11844 * ipa-reference.c: Likewise.
11845 * ipa-split.c: Likewise.
11846 * ipa-utils.c: Likewise.
11847 * ipa-visibility.c: Likewise.
11849 * langhooks.c: Likewise.
11850 * lto-cgraph.c: Likewise.
11851 * lto-compress.c: Likewise.
11852 * lto-opts.c: Likewise.
11853 * lto-section-in.c: Likewise.
11854 * lto-section-out.c: Likewise.
11855 * lto-streamer-in.c: Likewise.
11856 * lto-streamer-out.c: Likewise.
11857 * lto-streamer.c: Likewise.
11858 * omp-low.c: Likewise.
11859 * opts-global.c: Likewise.
11860 * passes.c: Likewise.
11861 * predict.c: Likewise.
11862 * print-tree.c: Likewise.
11863 * profile.c: Likewise.
11865 * sanopt.c: Likewise.
11866 * stor-layout.c: Likewise.
11867 * symtab.c: Likewise.
11868 * toplev.c: Likewise.
11869 * trans-mem.c: Likewise.
11870 * tree-cfg.c: Likewise.
11871 * tree-chkp.c: Likewise.
11872 * tree-eh.c: Likewise.
11873 * tree-emutls.c: Likewise.
11874 * tree-inline.c: Likewise.
11875 * tree-nested.c: Likewise.
11876 * tree-parloops.c: Likewise.
11877 * tree-pretty-print.c: Likewise.
11878 * tree-profile.c: Likewise.
11879 * tree-sra.c: Likewise.
11880 * tree-ssa-alias.c: Likewise.
11881 * tree-ssa-live.c: Likewise.
11882 * tree-ssa-loop-ivcanon.c: Likewise.
11883 * tree-ssa-loop-ivopts.c: Likewise.
11884 * tree-ssa-pre.c: Likewise.
11885 * tree-ssa-sccvn.c: Likewise.
11886 * tree-ssa-strlen.c: Likewise.
11887 * tree-ssa-structalias.c: Likewise.
11888 * tree-streamer-in.c: Likewise.
11889 * tree-streamer-out.c: Likewise.
11890 * tree-streamer.c: Likewise.
11891 * tree-switch-conversion.c: Likewise.
11892 * tree-tailcall.c: Likewise.
11893 * tree-vect-data-refs.c: Likewise.
11894 * tree-vect-stmts.c: Likewise.
11895 * tree-vectorizer.c: Likewise.
11896 * tree.c: Likewise.
11897 * tsan.c: Likewise.
11898 * ubsan.c: Likewise.
11899 * value-prof.c: Likewise.
11900 * varasm.c: Likewise.
11901 * varpool.c: Likewise.
11902 * config/arm/arm.c: Likewise.
11903 * config/bfin/bfin.c: Likewise.
11904 * config/c6x/c6x.c: Likewise.
11905 * config/cris/cris.c: Likewise.
11906 * config/darwin-c.c: Likewise.
11907 * config/darwin.c: Likewise.
11908 * config/i386/i386.c: Likewise.
11909 * config/i386/winnt.c: Likewise.
11910 * config/microblaze/microblaze.c: Likewise.
11911 * config/mips/mips.c: Likewise.
11912 * config/rs6000/rs6000.c: Likewise.
11913 * config/rx/rx.c: Likewise.
11914 * config/s390/s390.c: Likewise.
11915 * config/tilegx/mul-tables.c: Likewise.
11917 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11919 * config/aarch64/aarch64.c, config/alpha/alpha.c,
11920 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
11921 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
11922 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
11923 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11924 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11925 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11926 config/microblaze/microblaze.c, config/mips/mips.c,
11927 config/mmix/mmix.c, config/mn10300/mn10300.c,
11928 config/moxie/moxie.c, config/msp430/msp430.c,
11929 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11930 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11931 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11932 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11933 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11934 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11935 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
11936 target-def.h include.
11937 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
11939 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11941 * Makefile.in (TARGET_DEF): Add target-insns.def.
11942 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
11943 (build/gentarget-def.o): New rule.
11944 (genprogrtl): Add target-def.
11945 * target-insns.def, gentarget-def.c: New files.
11946 * target.def: Add targetm.have_* and targetm.gen_* hooks,
11947 based on the contents of target-insns.def.
11948 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
11949 (HAVE_return, gen_return): Delete.
11950 * target-def.h: Include insn-target-def.h.
11951 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
11952 instead of direct calls. Rely on them to do the appropriate assertions.
11953 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
11954 (convert_jumps_to_returns): Use targetm interface instead of
11956 (thread_prologue_and_epilogue_insns): Likewise.
11957 * reorg.c (find_end_label, dbr_schedule): Likewise.
11958 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
11959 * shrink-wrap.c (convert_to_simple_return): Likewise.
11960 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
11962 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11964 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
11965 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
11966 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
11967 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
11968 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11969 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11970 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11971 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
11972 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
11973 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11974 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11975 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11976 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11977 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11978 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11979 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
11982 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11984 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
11985 (unbounded_int_hashmap_traits::key_type): Likewise.
11986 * hash-map.h (hash_map): Get the key type from the traits.
11987 * hash-traits.h (default_hash_traits): By default, inherit from the
11988 template parameter.
11989 * alias.c (alias_set_traits): Delete.
11990 (alias_set_entry_d::children): Use alias_set_hash as the first
11991 template parameter.
11992 (record_alias_subset): Update accordingly.
11993 * except.c (tree_hash_traits): Delete.
11994 (type_to_runtime_map): Use tree_hash as the first template parameter.
11995 (init_eh): Update accordingly.
11996 * genmatch.c (capture_id_map_hasher): Delete.
11997 (cid_map_t): Use nofree_string_hash as first template parameter.
11998 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
11999 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
12000 Use symbol_compare_hash as the first template parameter in
12001 subdivide_hash_map.
12002 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
12003 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
12004 template parameter.
12005 * passes.c (pass_registry_hasher): Delete.
12006 (name_to_pass_map): Use nofree_string_hash as the first template
12008 (register_pass_name): Update accordingly.
12009 * sanopt.c (sanopt_tree_map_traits): Delete.
12010 (sanopt_tree_triplet_map_traits): Delete.
12011 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
12012 template parameter.
12013 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
12014 the first template parameter.
12015 * sese.c (rename_map_hasher): Delete.
12016 (rename_map_type): Use tree_ssa_name_hash as the first template
12018 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
12019 (function_summary::m_map): Use map_hash as the first template
12021 (function_summary::release): Update accordingly.
12022 * tree-if-conv.c (phi_args_hash_traits): Delete.
12023 (predicate_scalar_phi): Use tree_operand_hash as the first template
12024 parameter to phi_arg_map.
12025 * tree-inline.h (dependence_hasher): Delete.
12026 (copy_body_data::dependence_map): Use dependence_hash as the first
12027 template parameter.
12028 * tree-inline.c (remap_dependence_clique): Update accordingly.
12029 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
12030 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
12032 (addr_stridxptr): Update accordingly.
12033 * value-prof.c (profile_id_traits): Delete.
12034 (cgraph_node_map): Use profile_id_hash as the first template
12036 (init_node_map): Update accordingly.
12037 * config/alpha/alpha.c (string_traits): Delete.
12038 (machine_function::links): Use nofree_string_hash as the first
12039 template parameter.
12040 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
12041 * config/m32c/m32c.c (pragma_traits): Delete.
12042 (pragma_htab): Use nofree_string_hash as the first template parameter.
12043 (m32c_note_pragma_address): Update accordingly.
12044 * config/mep/mep.c (pragma_traits): Delete.
12045 (pragma_htab): Use nofree_string_hash as the first template parameter.
12046 (mep_note_pragma_flag): Update accordingly.
12047 * config/mips/mips.c (mips16_flip_traits): Delete.
12048 (mflip_mips16_htab): Use nofree_string_hash as the first template
12050 (mflip_mips16_use_mips16_p): Update accordingly.
12051 (local_alias_traits): Delete.
12052 (mips16_local_aliases): Use nofree_string_hash as the first template
12054 (mips16_local_alias): Update accordingly.
12056 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12058 * hash-map-traits.h (default_hashmap_traits): Delete.
12060 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12062 * hash-map-traits.h (unbounded_hashmap_traits): New class.
12063 (unbounded_int_hashmap_traits): Likewise.
12064 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
12066 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12068 * ipa-icf.h (symbol_compare_hash): New class.
12069 (symbol_compare_hashmap_traits): Use it.
12070 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
12071 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
12072 (mem_alloc_description::reverse_mem_map_t): Remove redundant
12073 default_hashmap_traits.
12074 * sanopt.c (sanopt_tree_triplet_hash): New class.
12075 (sanopt_tree_triplet_map_traits): Use it.
12077 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12079 * gengtype-parse.c (require_template_declaration): Allow '+' in
12080 template parameters. Consolidate cases.
12081 * hash-traits.h (int_hash): New class.
12082 * alias.c (alias_set_hash): New structure.
12083 (alias_set_traits): Use it.
12084 * symbol-summary.h (function_summary::map_hash): New class.
12085 (function_summary::summary_hashmap_traits): Use it.
12086 * tree-inline.h (dependence_hash): New class.
12087 (dependence_hasher): Use it.
12088 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
12089 * value-prof.c (profile_id_hash): New class.
12090 (profile_id_traits): Use it.
12092 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12094 * config/mips/mips.c (mips16_flip_traits): Use it.
12095 (local_alias_traits, mips16_local_aliases): Convert from a map of
12096 rtxes to a map of symbol names.
12097 (mips16_local_alias): Update accordingly.
12099 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12101 * hash-traits.h (string_hash, nofree_string_hash): New classes.
12102 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
12103 * passes.c (pass_registry_hasher): Likewise.
12104 * config/alpha/alpha.c (string_traits): Likewise.
12105 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
12106 * config/m32c/m32c.c (pragma_traits): Likewise.
12107 * config/mep/mep.c (pragma_traits): Likewise.
12109 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12111 * tree-hash-traits.h (tree_hash): New class.
12112 * except.c: Include tree-hash-traits.h.
12113 (tree_hash_traits): Use tree_hash.
12115 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12117 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
12118 * sese.c: Include tree-hash-traits.h.
12119 (rename_map_hasher): Use tree_ssa_name_hasher.
12121 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12123 * tree-hash-traits.h (tree_decl_hash): New class.
12124 * tree-ssa-strlen.c: Include tree-hash-traits.h.
12125 (stridxlist_hash_traits): Use tree_decl_hash.
12127 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12129 * tree-hash-traits.h: New file.
12130 (tree_operand_hash): New class.
12131 * sanopt.c: Include tree-hash-traits.h.
12132 (sanopt_tree_map_traits): Use tree_operand_hash.
12133 * tree-if-conv.c: Include tree-hash-traits.h.
12134 (phi_args_hash_traits): Use tree_operand_hash.
12135 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
12136 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
12138 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12140 * hash-map-traits.h: Include hash-traits.h.
12141 (simple_hashmap_traits): New class.
12142 * mem-stats.h (hash_map): Change the default traits to
12143 simple_hashmap_traits<default_hash_traits<Key> >.
12145 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12147 * hash-table.h: Update comments.
12149 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12151 * hash-traits.h (default_hash_traits): New structure.
12152 * hash-set.h (default_hashset_traits): Delete.
12153 (hash_set): Use default_hash_traits<Key> instead of
12154 default_hashset_traits. Delete hash_entry type and use Key directly.
12155 * ipa-devirt.c (pair_traits): Delete.
12156 (default_hash_traits <type_pair>): Override.
12157 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
12158 (odr_types_equivalent_p, add_type_duplicate): Likewise.
12160 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12162 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
12164 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12166 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
12167 (has_is_empty, is_empty_helper): Delete.
12168 (has_mark_deleted, mark_deleted_helper): Delete.
12169 (has_mark_empty, mark_empty_helper): Delete.
12170 (hash_table::is_deleted): Call the Descriptor unconditionally.
12171 (hash_table::is_empty): Likewise.
12172 (hash_table::mark_deleted): Likewise.
12173 (hash_table::mark_empty): Likewise.
12175 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12177 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
12178 redundant typedefs and members.
12179 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
12180 redundant typedefs.
12181 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
12182 * ipa-devirt.c (odr_name_hasher): Likewise.
12183 (polymorphic_call_target_hasher): Likewise.
12184 * ira-costs.c (cost_classes_hasher): Likewise.
12185 * statistics.c (stats_counter_hasher): Likewise.
12186 * trans-mem.c (log_entry_hasher): Likewise.
12187 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
12188 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
12189 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
12190 * var-tracking.c (variable_hasher): Likewise.
12191 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
12192 Remove redundant typedefs and members.
12194 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12196 * hash-traits.h (ggc_cache_hasher): Rename to...
12197 (ggc_cache_remove): ...this and remove typedefs.
12198 (ggc_cache_ptr_hash): New class.
12199 * hash-table.h: Update commentary.
12200 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
12201 rather than ggc_cache_hasher.
12202 (const_wide_int_hasher, reg_attr_hasher): Likewise.
12203 (const_double_hasher, const_fixed_hasher): Likewise.
12204 * function.c (insn_cache_hasher): Likewise.
12205 * trans-mem.c (tm_wrapper_hasher): Likewise.
12206 * tree.h (tree_decl_map_cache_hasher): Likewise.
12207 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
12208 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
12209 * ubsan.c (tree_type_map_cache_hasher): Likewise.
12210 * varasm.c (tm_clone_hasher): Likewise.
12211 * config/i386/i386.c (dllimport_hasher): Likewise.
12212 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
12213 (tree_hasher): Likewise.
12215 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12217 * hash-traits.h (ggc_hasher): Rename to...
12218 (ggc_remover): ...this and remove typedefs.
12219 (ggc_cache_hasher): Update accordingly. Add typedefs.
12220 (ggc_ptr_hash): New class.
12221 * hash-table.h: Update comment.
12222 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
12224 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
12225 (tree_descriptor_hasher): Likewise.
12226 * cgraph.c (function_version_hasher): Likewise.
12227 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
12228 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
12229 (dw_loc_list_hasher, addr_hasher): Likewise.
12230 * function.h (used_type_hasher): Likewise.
12231 * function.c (temp_address_hasher): Likewise.
12232 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
12233 * libfuncs.h (libfunc_hasher): Likewise.
12234 * lto-streamer.h (decl_state_hasher): Likewise.
12235 * optabs.c (libfunc_decl_hasher): Likewise.
12236 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
12237 * varasm.c (section_hasher, object_block_hasher): Likewise.
12238 (const_rtx_desc_hasher): Likewise.
12239 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
12240 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
12242 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12244 * hash-traits.h (free_ptr_hash): New class.
12245 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
12246 rather than typed_free_remove. Remove redudant typedefs.
12247 (external_ref_hasher): Likewise.
12248 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
12249 (ehspec_hasher): Likewise.
12250 * ggc-common.c (saving_hasher): Likewise.
12251 * gimplify.c (gimplify_hasher): Likewise.
12252 * haifa-sched.c (delay_i2_hasher): Likewise.
12253 * loop-invariant.c (invariant_expr_hasher): Likewise.
12254 * loop-iv.c (biv_entry_hasher): Likewise.
12255 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
12256 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
12257 * tree-cfg.c (locus_discrim_hasher): Likewise.
12258 * tree-eh.c (finally_tree_hasher): Likewise.
12259 * tree-into-ssa.c (var_info_hasher): Likewise.
12260 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
12261 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
12262 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
12263 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
12264 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
12265 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
12266 (shared_bitmap_hasher): Likewise.
12267 * tree-ssa-threadupdate.c (redirection_data): Likewise.
12268 * tree-vectorizer.h (peel_info_hasher): Likewise.
12269 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
12270 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
12272 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12274 * hash-table.h: Update comments.
12275 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
12276 (nofree_ptr_hash): New class.
12277 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
12278 than typed_noop_remove. Remove redudant typedefs.
12279 * attribs.c (attribute_hasher): Likewise.
12280 * cfg.c (bb_copy_hasher): Likewise.
12281 * cselib.c (cselib_hasher): Likewise.
12282 * dse.c (invariant_group_base_hasher): Likewise.
12283 * dwarf2cfi.c (trace_info_hasher): Likewise.
12284 * dwarf2out.c (macinfo_entry_hasher): Likewise.
12285 (comdat_type_hasher, loc_list_hasher): Likewise.
12286 * gcse.c (pre_ldst_expr_hasher): Likewise.
12287 * genmatch.c (id_base): Likewise.
12288 * genrecog.c (test_pattern_hasher): Likewise.
12289 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
12290 * haifa-sched.c (delay_i1_hasher): Likewise.
12291 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
12292 * ipa-icf.h (congruence_class_group_hash): Likewise.
12293 * ipa-profile.c (histogram_hash): Likewise.
12294 * ira-color.c (allocno_hard_regs_hasher): Likewise.
12295 * lto-streamer.h (string_slot_hasher): Likewise.
12296 * lto-streamer.c (tree_entry_hasher): Likewise.
12297 * plugin.c (event_hasher): Likewise.
12298 * postreload-gcse.c (expr_hasher): Likewise.
12299 * store-motion.c (st_expr_hasher): Likewise.
12300 * tree-sra.c (uid_decl_hasher): Likewise.
12301 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
12302 (ssa_name_var_hash): Likewise.
12303 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
12304 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
12305 * tree-ssa-pre.c (pre_expr_d): Likewise.
12306 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
12307 * vtable-verify.h (registration_hasher): Likewise.
12308 * vtable-verify.c (vtbl_map_hasher): Likewise.
12309 * config/arm/arm.c (libcall_hasher): Likewise.
12310 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
12311 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
12312 * config/sol2.c (comdat_entry_hasher): Likewise.
12313 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
12314 (print_fold_checksum, fold_checksum_tree): Likewise.
12315 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
12316 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
12317 (fold_build_call_array_loc): Likewise.
12318 * tree-ssa-ccp.c (gimple_htab): Likewise.
12319 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
12320 rather than pointer_type.
12322 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12324 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
12325 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
12327 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12329 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
12330 (ggc_hasher::ggc_mx): Likewise.
12331 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
12332 that duplicate ggc_hasher ones.
12334 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12336 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
12337 (gt_cleare_cache): Check here for deleted and empty entries.
12338 Replace handle_cache_entry with a call to keep_cache_entry.
12339 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
12340 (ggc_cache_hasher::keep_cache_entry): New function.
12341 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
12342 (tm_wrapper_hasher::keep_cache_entry): New function.
12343 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
12344 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
12345 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
12346 (type_cache_hasher::keep_cache_entry): New function.
12347 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
12348 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
12349 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
12350 (tree_type_map_cache_hasher::keep_cache_entry): New function.
12351 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
12352 (tm_clone_hasher::keep_cache_entry): New function.
12353 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
12354 (dllimport_hasher::keep_cache_entry): New function.
12356 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12358 * hash-table.h: Include hash-traits.h.
12359 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
12360 (ggc_cache_hasher): Move to...
12361 * hash-traits.h: ...this new file.
12363 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12365 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
12366 struct cl_optimization.
12367 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
12368 * tree.c (make_node_stat): Allocate cl_optimization struct.
12369 (copy_node_stat): Allocate and copy cl_optimization struct.
12371 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12373 * function.h (struct incoming_args): Move struct.
12374 (pass_by_reference, reference_callee_copied): Remove prototypes.
12375 * emit-rtl.h (struct incoming_args): Relocate struct here.
12376 * calls.h (pass_by_reference, reference_callee_copied): Relocate
12378 * function.c (pass_by_reference, reference_callee_copied): Move.
12379 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
12380 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
12381 * ipa-chkp.c: Include calls.h.
12383 2015-06-25 Andrew Macleod <amacleod@redhat.com>
12385 * alias.h (alias_set_type): Move typedef.
12386 * coretypes.h (alias_set_type): Relocate typedef here.
12387 * rtl.h: Don't include alias.h.
12389 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12391 * cgraph.h (cgraph_rtl_info): Move to rtl.h
12392 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
12394 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
12395 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
12397 * calls.c: Include hard-reg-set.h before rtl.h.
12400 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
12401 Vladimir Makarov <vmakarov@redhat.com>
12403 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
12406 2015-06-25 Richard Biener <rguenther@suse.de>
12408 * fold-const.c (fold_binary_loc): Move simplification of
12409 (X <<>> C1) & C2 ...
12410 * match.pd: ... here.
12412 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
12414 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
12416 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12418 * match.pd: Add patterns for vec_conds between 1 and 0.
12420 2015-06-25 Richard Biener <rguenther@suse.de>
12422 * tree-vect-stmts.c (vectorizable_conversion): Do not set
12423 STMT_VINFO_VEC_STMT for SLP.
12424 (vectorizable_store): Likewise.
12425 (vectorizable_load): Likewise.
12426 (vect_transform_stmt): Catch SLP vectorization clobbering
12427 STMT_VINFO_VEC_STMT.
12429 2015-06-25 Richard Biener <rguenther@suse.de>
12431 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
12433 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
12434 cleanup resulting dead code and parameters.
12435 (vect_transform_slp_perm_load): Adjust.
12437 2015-06-25 Nick Clifton <nickc@redhat.com>
12439 * config/bfin/bfin.c (bfin_expand_prologue): Set
12440 current_function_static_stack_size if flag_stack_usage_info is set.
12441 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12442 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
12443 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
12444 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
12446 2015-06-25 Tom de Vries <tom@codesourcery.com>
12448 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
12449 comment that the generated IV is unsigned.
12451 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12454 * config/arm/arm.c (arm_dbx_register_number): Return
12455 DWARF_FRAME_REGISTERS by default.
12457 2015-06-25 Tom de Vries <tom@codesourcery.com>
12459 * dominance.c (calculate_dominance_info): Fix verify_dominators call
12460 argument. Call verify_dominator when reusing dominator info.
12462 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
12465 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
12466 an additional element of the unspec vector. Modify indices
12468 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
12469 * config/sh/sh.c (prepare_move_operands): Pass incremented
12470 const_int to gen_GOTaddr2picreg.
12471 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
12473 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12475 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
12476 Condition on TARGET_FLOAT.
12478 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12480 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
12483 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12485 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
12487 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
12488 aarch64_err_no_fpadvsimd.
12490 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
12491 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
12492 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
12493 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
12494 Turn error into assert, test TARGET_FLOAT.
12495 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
12498 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
12501 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
12503 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
12505 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
12507 2015-06-24 Renlin Li <renlin.li@arm.com>
12509 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
12510 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
12512 2015-06-24 Richard Biener <rguenther@suse.de>
12514 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
12516 (lower_opt_convert): Support lowering of conditional view_convert.
12517 (parser::parse_operation): Likewise.
12518 (parser::parse_for): Likewise.
12520 2015-06-24 Renlin Li <renlin.li@arm.com>
12522 * varasm.c (emit_local): Use unsigned int for align variable.
12524 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12527 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
12528 for negative numbers.
12530 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12532 PR rtl-optimization/66306
12533 * reload.c (find_reloads): Swap the match_dup info for
12534 commutative operands.
12536 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12538 * config/s390/vx-builtins.md
12539 ("vec_scatter_element<mode>_<non_vec_int>")
12540 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
12541 attribute with bhfgq.
12543 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12545 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
12547 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12549 * config/s390/s390-builtin-types.def: Add flag to indicate the
12550 options under which the function type is needed.
12551 * config/s390/s390-builtins.def: Add flag to indicate the options
12552 under which the builtin is enabled.
12553 * config/s390/s390-builtins.h: Add flags parameter to macro
12555 (bflags_for_builtin): New function.
12556 (flags_for_builtin): Renamed to ...
12557 (opflags_for_builtin): ... this.
12558 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
12559 flags_for_builtin to bflags_for_builtin and
12560 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
12561 * config/s390/s390.c: Add initialization of bflags_builtin and
12562 opflags_builtin arrays.
12563 Remove code for flags_builtin.
12564 (s390_init_builtins): Only create builtin function types if one of
12565 their flags is active.
12566 Only create builtins if all of their flags are active.
12567 (s390_expand_builtin): Rename flags_for_builtin to
12568 opflags_for_builtin.
12570 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12572 * config/s390/vecintrin.h: Remove internal builtins.
12574 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12576 * config/s390/s390.c (s390_secondary_reload): Fix check for
12577 GENERAL_REGS register class.
12579 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12581 * config/s390/s390.c (s390_support_vector_misalignment): Call
12582 default implementation for !TARGET_VX.
12584 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12586 * config/s390/s390.c (s390_legitimate_constant_p): Add
12589 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12591 * config/s390/s390.c (s390_vector_abi): New variable definition.
12592 (s390_check_type_for_vector_abi): New function.
12593 (TARGET_ASM_FILE_END): New macro definition.
12594 (s390_asm_file_end): New function.
12595 (s390_function_arg): Call s390_check_type_for_vector_abi.
12596 (s390_gimplify_va_arg): Likewise.
12597 * configure: Regenerate.
12598 * configure.ac: Check for .gnu_attribute Binutils feature.
12600 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
12603 * config/bfin/bfin.c (hwloop_optimize): Initialize
12604 JUMP_LABEL for newly created jump.
12606 2015-06-23 Tristan Gingold <gingold@adacore.com>
12608 * collect-utils.c (collect_wait): Unlink the response file here
12610 (do_wait): ...here.
12611 (utils_cleanup): ...and here.
12613 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
12615 * df-scan.c: Don't include target-def.h.
12616 * targhooks.c: Likewise.
12617 * config/arm/arm-c.c: Likewise.
12618 * config/i386/i386-c.c: Likewise.
12619 * config/nds32/nds32-cost.c: Likewise.
12620 * config/nds32/nds32-fp-as-gp.c: Likewise.
12621 * config/nds32/nds32-intrinsic.c: Likewise.
12622 * config/nds32/nds32-isr.c: Likewise.
12623 * config/nds32/nds32-md-auxiliary.c: Likewise.
12624 * config/nds32/nds32-memory-manipulation.c: Likewise.
12625 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12626 * config/nds32/nds32-predicates.c: Likewise.
12628 2015-06-23 Richard Biener <rguenther@suse.de>
12630 PR tree-optimization/66636
12631 * tree-vect-stmts.c (vectorizable_store): Properly compute the
12632 def type for further defs for strided stores.
12634 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
12636 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
12637 conditional selects.
12638 (setcc_int<mode>, setcc_float<mode>): Reformat.
12640 2015-06-23 Marek Polacek <polacek@redhat.com>
12642 * match.pd ((x + y) - (x | y) -> x & y,
12643 (x + y) - (x & y) -> x | y): New patterns.
12645 2015-06-23 Ludovic Courtès <ludo@gnu.org>
12648 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
12649 '-dynamic-linker' within %{!shared: ...}.
12651 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
12654 * config/i386/predicates.md (addsub_vm_operator): New predicate.
12655 (addsub_vs_operator): Ditto.
12656 (addsub_vs_parallel): Ditto.
12657 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
12658 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
12659 Put minus RTX before plus and adjust vec_merge selector.
12660 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
12661 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
12662 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
12663 (addsub vec_merge splitters): New combiner splitters.
12664 (addsub vec_select/vec_concat splitters): Ditto.
12666 2015-06-23 Bin Cheng <bin.cheng@arm.com>
12668 PR tree-optimization/66449
12669 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
12670 POINTER_PLUS_EXPR for pointers.
12672 2015-06-23 Alan Modra <amodra@gmail.com>
12674 * rtlanal.c (commutative_operand_precedence): Correct comments.
12675 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
12676 declaration. Return an int. Distinguish REG,REG return from
12678 (struct simplify_plus_minus_op_data): Make local to function.
12679 (simplify_plus_minus): Don't set canonicalized if merely sorting
12680 registers. Avoid packing ops if nothing changes. White space fixes.
12682 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
12684 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
12685 -fdump-ada-spec is passed but not if -fsyntax-only is.
12687 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
12690 * lra-lives.c (process_bb_lives): Check insn copying the same
12691 reload pseudo and don't create a copy for it.
12693 2015-06-22 Tom de Vries <tom@codesourcery.com>
12695 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
12698 2015-06-22 Tom de Vries <tom@codesourcery.com>
12700 * builtins.def (DEF_GOMP_BUILTIN): Test
12701 'flag_tree_parallelize_loops > 1' instead of
12702 'flag_tree_parallelize_loops'. Test flag_cilkplus.
12704 2015-06-22 Tom de Vries <tom@codesourcery.com>
12706 * dominance.c (calculate_dominance_info): Verify dominators if
12709 2015-06-22 Marek Polacek <polacek@redhat.com>
12711 * match.pd ((x ^ y) ^ (x | y) -> x & y,
12712 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
12713 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
12714 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
12716 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
12719 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
12720 cost of embedded comparison.
12722 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12725 * config/rs6000/predicates.md (altivec_register_operand): Permit
12726 virtual stack registers.
12727 (vsx_register_operand): Likewise.
12728 (vfloat_operand): Likewise.
12729 (vint_operand): Likewise.
12730 (vlogical_operand): Likewise.
12732 2015-06-22 Richard Biener <rguenther@suse.de>
12734 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
12735 and single_scalar_iteration_cost members.
12736 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
12737 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
12738 (vect_get_single_scalar_iteration_cost): Remove.
12739 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
12740 Use LOOP_VINFO_SCALAR_ITERATION_COST.
12741 * tree-vect-loop.c (destroy_loop_vec_info): Free
12743 (vect_get_single_scalar_iteration_cost): Compute result into
12744 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
12745 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
12746 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
12747 (vect_estimate_min_profitable_iters): Use them.
12749 2015-06-22 Christian Bruel <christian.bruel@st.com>
12752 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
12753 (TARGET_INSERT_ATTRIBUTES): Define.
12754 (thumb_flipper): New var.
12755 * config/arm/arm.opt (-mflip-thumb): New switch.
12757 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12758 Martin Liska <mliska@suse.cz>
12761 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
12762 construction of arg_types.
12763 (sem_function::sem_function): Likewise.
12764 (sem_function::~sem_function): Remove destruction of arg_types.
12765 (sem_function::compatible_parm_types_p): New function.
12766 (sem_function::equals_wpa): Reorg matching of return values
12767 and parameter types.
12768 (sem_function::equals_private): Reorg mathcing of argument types.
12769 (sem_function::parse_tree_args): Remove.
12770 * ipa-icf.h (init_wpa): Do not call it.
12771 (parse_tree_args): Remove.
12772 (compatible_parm_types_p): Declare.
12773 (result_type): Remove.
12774 (arg_types): Remove.
12776 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12779 * ipa-polymorphic-call.c
12780 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
12781 initializing alias oracle; fix formating; set base_alias_set if it
12784 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
12786 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
12787 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
12788 (find_inc): Likewise.
12789 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
12791 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
12792 * df-scan.c (df_swap_refs): Remove.
12793 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
12794 * dominance.c (link_roots): Use std::swap instead of manually swapping.
12795 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
12796 * fold-const.c (fold_relational_const): Likewise.
12797 * genattrtab.c (simplify_test_exp): Likewise.
12798 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
12799 gimple_simplify): Likewise.
12800 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
12801 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
12802 * ipa-devirt.c (add_type_duplicate): Likewise.
12803 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
12804 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
12805 * lra.c (lra_create_copy): Likewise.
12806 * lto-streamer-out.c (DFS::DFS): Likewise.
12807 * modulo-sched.c (get_sched_window): Likewise.
12808 * omega.c (omega_pretty_print_problem): Likewise.
12809 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
12810 * reload1.c (reloads_unique_chain_p): Likewise.
12811 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
12812 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
12814 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
12816 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
12817 predicate_mem_writes): Likewise.
12818 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
12819 * tree-predcom.c (combine_chains): Likewise.
12820 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
12821 refs_may_alias_p_1): Likewise.
12822 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
12823 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12824 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
12825 number_of_iterations_cond): Likewise.
12826 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
12827 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
12828 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
12829 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
12830 * tree-vrp.c (extract_range_from_binary_expr_1,
12831 extract_range_from_unary_expr_1): Likewise.
12833 2015-06-20 Marek Polacek <polacek@redhat.com>
12835 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
12837 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
12840 * config/sh/sh.c (prepare_move_operands): Replace subreg
12841 index term with R0 for base and index addressing.
12843 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
12845 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
12847 (movsf_aarch64): Change condition from register_operand to
12848 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
12849 load1. Change type for alternative 7 to store1.
12850 (movdf_aarch64): Likewise.
12852 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
12854 * config/vax/vax.md: Adjust sign/zero extend patterns to
12855 handle SUBREGs in operands[1].
12857 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12859 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
12860 of manually swapping.
12861 (expand_vec_perm_interleave2): Likewise.
12863 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
12865 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
12866 reuse bounds created for abnormal ssa names.
12868 2015-06-19 Jakub Jelinek <jakub@redhat.com>
12870 * config/nvptx/nvptx.md (allocate_stack): Rename to...
12871 (allocate_stack_<mode>): ... this, and add :P on both
12872 match_operand and unspec.
12873 (allocate_stack): New expander.
12875 2015-06-19 Christian Bruel <christian.bruel@st.com>
12879 * config/arm/arm.c (arm_set_current_function): Handle
12880 explicit default options.
12882 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12884 * config/i386/i386.md (*movsicc_noc_zext): New insn.
12885 (zero-extended cmove with mem peephole2): New pattern.
12886 (cmove with mem peephole2): Merge patterns.
12888 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
12890 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
12892 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
12894 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
12895 * config/mips/mips.md (*madd4<mode>): Ditto.
12896 (*nmadd3<mode>) Ditto.
12897 (*nmadd4<mode>_fastmath): Ditto.
12898 (*nmadd3<mode>_fastmath): Ditto.
12899 (*nmsub4<mode>): Ditto.
12900 (*nmsub3<mode>): Ditto.
12901 (*nmsub4<mode>_fastmath): Ditto.
12902 (*nmsub3<mode>_fastmath): Ditto.
12904 2015-06-18 Michael Matz <matz@suse.de>
12906 PR middle-end/66253
12907 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
12908 grouped strided stores.
12909 (vectorizable_load): Don't use the DR from first_stmt in
12910 the non-SLP grouped strided case.
12912 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12915 * function.c (assign_bounds): Add arguments assign_regs,
12916 assign_special, assign_bt.
12917 (assign_parms): For vararg functions handle bounds in BT
12918 and special slots after incoming vararg bounds.
12920 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12922 PR middle-end/66568
12923 * cfgexpand.c (expand_return): Handle missing bounds.
12924 (expand_gimple_stmt_1): Likewise.
12925 * tree-chkp.c (chkp_expand_zero_bounds): New.
12926 * tree-chkp.h (chkp_expand_zero_bounds): New.
12928 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12930 PR middle-end/66567
12931 * ipa-chkp.c (chkp_maybe_create_clone): Require
12932 functions to be instrumentable.
12933 * tree-chkp.c (chkp_replace_function_pointer): Use
12934 chkp_instrumentable_p instead of attribute check.
12936 2015-06-18 Richard Biener <rguenther@suse.de>
12938 PR tree-optimization/66510
12939 * tree-vect-stmts.c (vectorizable_load): Properly compute the
12940 number of vector loads for SLP permuted loads.
12941 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
12942 check the stride for loop vectorization.
12943 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
12944 vectorization factor.
12945 (vect_analyze_group_access): If the group size is not a power
12946 of two require a epilogue loop.
12947 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
12948 compute and optimizing and alias test pruning after final
12949 vectorization factor computation.
12950 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
12952 (vect_transform_slp_perm_load): Properly compute the original
12953 number of vector load stmts.
12955 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12957 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
12958 "unlikely character , in @var" warning.
12960 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
12962 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
12963 (ix86_function_arg_advance): Ditto.
12964 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
12966 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12968 * function.h (struct rtl_data): Remove struct and accessor macros.
12969 * emit-rtl.h (struct rtl_data): Relocate to here.
12970 * Makefile.in (GTFILES): Add emit-rtl.h.
12971 * df-core.c: Include emit-rtl.h.
12972 * genattrtab.c: Likewise.
12973 * genconditions.c: Likewise.
12974 * genpreds.c: Likewise.
12975 * genrecog.c: Likewise.
12976 * regcprop.c: Likewise.
12977 * resource.c: Likewise.
12978 * sched-rgn.c: Likewise.
12979 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12980 * config/i386/winnt.c: Likewise.
12982 2015-06-17 Jakub Jelinek <jakub@redhat.com>
12984 PR middle-end/66429
12985 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
12986 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
12987 and has_force_vectorize_loops flags from cfun into
12989 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
12990 if simduid is non-NULL.
12991 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
12992 * passes.def (pass_simduid_cleanup): Add new pass after loop
12994 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
12995 indirection from htab argument's type.
12996 (shrink_simd_arrays): New function.
12997 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
12998 Don't call adjust_simduid_builtins if there are no loops.
12999 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
13000 (pass_simduid_cleanup::execute): New method.
13001 (make_pass_simduid_cleanup): New function.
13003 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
13005 * tree-core.h (tree_target_option): Make opts field a pointer to a
13006 cl_target_option instead of an instance of the struct.
13007 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
13009 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
13010 TARGET_OPTION_NODE.
13011 (copy_node_stat): Allocate and copy struct cl_target_option.
13013 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
13015 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
13016 Remove conditional exposure of prototypes.
13017 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
13018 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
13019 definitions in tree.h with functions.
13020 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
13022 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
13024 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
13026 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
13027 (*cmp<mode>_signed): ... this.
13028 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
13029 (*cmp<mode>_unsigned): ... this. Remove %b.
13031 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
13033 * coretypes.h: Include input.h and as-a.h.
13034 * rtl.h: Include input.h and as-a.h for generator files.
13035 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
13036 * vec.c: Don't include diagnostic-core.h.
13037 * alias.c: Do not include input.h, line-map.h or is-a.h.
13038 * asan.c: Likewise.
13039 * attribs.c: Likewise.
13040 * auto-inc-dec.c: Likewise.
13041 * auto-profile.c: Likewise.
13042 * bb-reorder.c: Likewise.
13043 * bt-load.c: Likewise.
13044 * builtins.c: Likewise.
13045 * caller-save.c: Likewise.
13046 * calls.c: Likewise.
13047 * ccmp.c: Likewise.
13049 * cfganal.c: Likewise.
13050 * cfgbuild.c: Likewise.
13051 * cfgcleanup.c: Likewise.
13052 * cfgexpand.c: Likewise.
13053 * cfghooks.c: Likewise.
13054 * cfgloop.c: Likewise.
13055 * cfgloop.h: Likewise.
13056 * cfgloopanal.c: Likewise.
13057 * cfgloopmanip.c: Likewise.
13058 * cfgrtl.c: Likewise.
13059 * cgraph.c: Likewise.
13060 * cgraphbuild.c: Likewise.
13061 * cgraphclones.c: Likewise.
13062 * cgraphunit.c: Likewise.
13063 * cilk-common.c: Likewise.
13064 * combine-stack-adj.c: Likewise.
13065 * combine.c: Likewise.
13066 * compare-elim.c: Likewise.
13067 * convert.c: Likewise.
13068 * coverage.c: Likewise.
13069 * cppbuiltin.c: Likewise.
13070 * cprop.c: Likewise.
13072 * cselib.c: Likewise.
13073 * data-streamer-in.c: Likewise.
13074 * data-streamer-out.c: Likewise.
13075 * data-streamer.c: Likewise.
13076 * dbxout.c: Likewise.
13079 * debug.c: Likewise.
13080 * df-core.c: Likewise.
13081 * df-problems.c: Likewise.
13082 * df-scan.c: Likewise.
13085 * diagnostic-core.h: Likewise.
13086 * diagnostic.c: Likewise.
13087 * dojump.c: Likewise.
13088 * dominance.c: Likewise.
13089 * domwalk.c: Likewise.
13090 * double-int.c: Likewise.
13092 * dumpfile.c: Likewise.
13093 * dumpfile.h: Likewise.
13094 * dwarf2asm.c: Likewise.
13095 * dwarf2cfi.c: Likewise.
13096 * dwarf2out.c: Likewise.
13097 * emit-rtl.c: Likewise.
13098 * et-forest.c: Likewise.
13099 * except.c: Likewise.
13100 * explow.c: Likewise.
13101 * expmed.c: Likewise.
13102 * expr.c: Likewise.
13103 * final.c: Likewise.
13104 * fixed-value.c: Likewise.
13105 * fold-const.c: Likewise.
13106 * function.c: Likewise.
13107 * fwprop.c: Likewise.
13108 * gcc-plugin.h: Likewise.
13109 * gcse.c: Likewise.
13110 * generic-match-head.c: Likewise.
13111 * ggc-page.c: Likewise.
13112 * gimple-builder.c: Likewise.
13113 * gimple-expr.c: Likewise.
13114 * gimple-fold.c: Likewise.
13115 * gimple-iterator.c: Likewise.
13116 * gimple-low.c: Likewise.
13117 * gimple-match-head.c: Likewise.
13118 * gimple-pretty-print.c: Likewise.
13119 * gimple-ssa-isolate-paths.c: Likewise.
13120 * gimple-ssa-strength-reduction.c: Likewise.
13121 * gimple-streamer-in.c: Likewise.
13122 * gimple-streamer-out.c: Likewise.
13123 * gimple-streamer.h: Likewise.
13124 * gimple-walk.c: Likewise.
13125 * gimple.c: Likewise.
13126 * gimplify-me.c: Likewise.
13127 * gimplify.c: Likewise.
13128 * godump.c: Likewise.
13129 * graph.c: Likewise.
13130 * graphite-blocking.c: Likewise.
13131 * graphite-dependences.c: Likewise.
13132 * graphite-interchange.c: Likewise.
13133 * graphite-isl-ast-to-gimple.c: Likewise.
13134 * graphite-optimize-isl.c: Likewise.
13135 * graphite-poly.c: Likewise.
13136 * graphite-scop-detection.c: Likewise.
13137 * graphite-sese-to-poly.c: Likewise.
13138 * graphite.c: Likewise.
13139 * haifa-sched.c: Likewise.
13140 * hw-doloop.c: Likewise.
13141 * ifcvt.c: Likewise.
13142 * init-regs.c: Likewise.
13143 * input.c: Likewise.
13144 * internal-fn.c: Likewise.
13145 * ipa-chkp.c: Likewise.
13146 * ipa-comdats.c: Likewise.
13147 * ipa-cp.c: Likewise.
13148 * ipa-devirt.c: Likewise.
13149 * ipa-icf-gimple.c: Likewise.
13150 * ipa-icf.c: Likewise.
13151 * ipa-inline-analysis.c: Likewise.
13152 * ipa-inline-transform.c: Likewise.
13153 * ipa-inline.c: Likewise.
13154 * ipa-polymorphic-call.c: Likewise.
13155 * ipa-profile.c: Likewise.
13156 * ipa-prop.c: Likewise.
13157 * ipa-pure-const.c: Likewise.
13158 * ipa-ref.c: Likewise.
13159 * ipa-reference.c: Likewise.
13160 * ipa-split.c: Likewise.
13161 * ipa-utils.c: Likewise.
13162 * ipa-visibility.c: Likewise.
13164 * ira-build.c: Likewise.
13165 * ira-color.c: Likewise.
13166 * ira-conflicts.c: Likewise.
13167 * ira-costs.c: Likewise.
13168 * ira-emit.c: Likewise.
13169 * ira-lives.c: Likewise.
13171 * jump.c: Likewise.
13172 * langhooks.c: Likewise.
13174 * loop-doloop.c: Likewise.
13175 * loop-init.c: Likewise.
13176 * loop-invariant.c: Likewise.
13177 * loop-iv.c: Likewise.
13178 * loop-unroll.c: Likewise.
13179 * lower-subreg.c: Likewise.
13180 * lra-assigns.c: Likewise.
13181 * lra-coalesce.c: Likewise.
13182 * lra-constraints.c: Likewise.
13183 * lra-eliminations.c: Likewise.
13184 * lra-lives.c: Likewise.
13185 * lra-remat.c: Likewise.
13186 * lra-spills.c: Likewise.
13188 * lto-cgraph.c: Likewise.
13189 * lto-compress.c: Likewise.
13190 * lto-opts.c: Likewise.
13191 * lto-section-in.c: Likewise.
13192 * lto-section-out.c: Likewise.
13193 * lto-streamer-in.c: Likewise.
13194 * lto-streamer-out.c: Likewise.
13195 * lto-streamer.c: Likewise.
13197 * mode-switching.c: Likewise.
13198 * modulo-sched.c: Likewise.
13199 * omega.c: Likewise.
13200 * omp-low.c: Likewise.
13201 * optabs.c: Likewise.
13202 * opts-global.c: Likewise.
13203 * opts.h: Likewise.
13204 * passes.c: Likewise.
13205 * plugin.c: Likewise.
13206 * postreload-gcse.c: Likewise.
13207 * postreload.c: Likewise.
13208 * predict.c: Likewise.
13209 * pretty-print.h: Likewise.
13210 * print-rtl.c: Likewise.
13211 * print-tree.c: Likewise.
13212 * profile.c: Likewise.
13213 * real.c: Likewise.
13214 * realmpfr.c: Likewise.
13215 * recog.c: Likewise.
13217 * reg-stack.c: Likewise.
13218 * regcprop.c: Likewise.
13219 * reginfo.c: Likewise.
13220 * regrename.c: Likewise.
13221 * regstat.c: Likewise.
13222 * reload.c: Likewise.
13223 * reload1.c: Likewise.
13224 * reorg.c: Likewise.
13225 * resource.c: Likewise.
13226 * rtl-chkp.c: Likewise.
13227 * rtl-error.c: Likewise.
13228 * rtlanal.c: Likewise.
13229 * rtlhooks.c: Likewise.
13230 * sanopt.c: Likewise.
13231 * sched-deps.c: Likewise.
13232 * sched-ebb.c: Likewise.
13233 * sched-rgn.c: Likewise.
13234 * sched-vis.c: Likewise.
13235 * sdbout.c: Likewise.
13236 * sel-sched-dump.c: Likewise.
13237 * sel-sched-ir.c: Likewise.
13238 * sel-sched.c: Likewise.
13239 * sese.c: Likewise.
13240 * shrink-wrap.c: Likewise.
13241 * simplify-rtx.c: Likewise.
13242 * stack-ptr-mod.c: Likewise.
13243 * statistics.c: Likewise.
13244 * stmt.c: Likewise.
13245 * stor-layout.c: Likewise.
13246 * store-motion.c: Likewise.
13247 * streamer-hooks.c: Likewise.
13248 * stringpool.c: Likewise.
13249 * symtab.c: Likewise.
13250 * target-globals.c: Likewise.
13251 * targhooks.c: Likewise.
13252 * toplev.c: Likewise.
13253 * tracer.c: Likewise.
13254 * trans-mem.c: Likewise.
13255 * tree-affine.c: Likewise.
13256 * tree-browser.c: Likewise.
13257 * tree-call-cdce.c: Likewise.
13258 * tree-cfg.c: Likewise.
13259 * tree-cfgcleanup.c: Likewise.
13260 * tree-chkp-opt.c: Likewise.
13261 * tree-chkp.c: Likewise.
13262 * tree-chrec.c: Likewise.
13263 * tree-complex.c: Likewise.
13264 * tree-data-ref.c: Likewise.
13265 * tree-dfa.c: Likewise.
13266 * tree-diagnostic.c: Likewise.
13267 * tree-dump.c: Likewise.
13268 * tree-eh.c: Likewise.
13269 * tree-emutls.c: Likewise.
13270 * tree-if-conv.c: Likewise.
13271 * tree-inline.c: Likewise.
13272 * tree-into-ssa.c: Likewise.
13273 * tree-iterator.c: Likewise.
13274 * tree-loop-distribution.c: Likewise.
13275 * tree-nested.c: Likewise.
13276 * tree-nrv.c: Likewise.
13277 * tree-object-size.c: Likewise.
13278 * tree-outof-ssa.c: Likewise.
13279 * tree-parloops.c: Likewise.
13280 * tree-phinodes.c: Likewise.
13281 * tree-predcom.c: Likewise.
13282 * tree-pretty-print.c: Likewise.
13283 * tree-profile.c: Likewise.
13284 * tree-scalar-evolution.c: Likewise.
13285 * tree-sra.c: Likewise.
13286 * tree-ssa-address.c: Likewise.
13287 * tree-ssa-alias.c: Likewise.
13288 * tree-ssa-ccp.c: Likewise.
13289 * tree-ssa-coalesce.c: Likewise.
13290 * tree-ssa-copy.c: Likewise.
13291 * tree-ssa-copyrename.c: Likewise.
13292 * tree-ssa-dce.c: Likewise.
13293 * tree-ssa-dom.c: Likewise.
13294 * tree-ssa-dse.c: Likewise.
13295 * tree-ssa-forwprop.c: Likewise.
13296 * tree-ssa-ifcombine.c: Likewise.
13297 * tree-ssa-live.c: Likewise.
13298 * tree-ssa-loop-ch.c: Likewise.
13299 * tree-ssa-loop-im.c: Likewise.
13300 * tree-ssa-loop-ivcanon.c: Likewise.
13301 * tree-ssa-loop-ivopts.c: Likewise.
13302 * tree-ssa-loop-manip.c: Likewise.
13303 * tree-ssa-loop-niter.c: Likewise.
13304 * tree-ssa-loop-prefetch.c: Likewise.
13305 * tree-ssa-loop-unswitch.c: Likewise.
13306 * tree-ssa-loop.c: Likewise.
13307 * tree-ssa-math-opts.c: Likewise.
13308 * tree-ssa-operands.c: Likewise.
13309 * tree-ssa-phiopt.c: Likewise.
13310 * tree-ssa-phiprop.c: Likewise.
13311 * tree-ssa-pre.c: Likewise.
13312 * tree-ssa-propagate.c: Likewise.
13313 * tree-ssa-reassoc.c: Likewise.
13314 * tree-ssa-sccvn.c: Likewise.
13315 * tree-ssa-scopedtables.c: Likewise.
13316 * tree-ssa-sink.c: Likewise.
13317 * tree-ssa-strlen.c: Likewise.
13318 * tree-ssa-structalias.c: Likewise.
13319 * tree-ssa-tail-merge.c: Likewise.
13320 * tree-ssa-ter.c: Likewise.
13321 * tree-ssa-threadedge.c: Likewise.
13322 * tree-ssa-threadupdate.c: Likewise.
13323 * tree-ssa-uncprop.c: Likewise.
13324 * tree-ssa-uninit.c: Likewise.
13325 * tree-ssa.c: Likewise.
13326 * tree-ssanames.c: Likewise.
13327 * tree-stdarg.c: Likewise.
13328 * tree-streamer-in.c: Likewise.
13329 * tree-streamer-out.c: Likewise.
13330 * tree-streamer.c: Likewise.
13331 * tree-switch-conversion.c: Likewise.
13332 * tree-tailcall.c: Likewise.
13333 * tree-vect-data-refs.c: Likewise.
13334 * tree-vect-generic.c: Likewise.
13335 * tree-vect-loop-manip.c: Likewise.
13336 * tree-vect-loop.c: Likewise.
13337 * tree-vect-patterns.c: Likewise.
13338 * tree-vect-slp.c: Likewise.
13339 * tree-vect-stmts.c: Likewise.
13340 * tree-vectorizer.c: Likewise.
13341 * tree-vrp.c: Likewise.
13342 * tree.c: Likewise.
13343 * tsan.c: Likewise.
13344 * ubsan.c: Likewise.
13345 * valtrack.c: Likewise.
13346 * value-prof.c: Likewise.
13347 * var-tracking.c: Likewise.
13348 * varasm.c: Likewise.
13349 * varpool.c: Likewise.
13350 * vmsdbgout.c: Likewise.
13351 * vtable-verify.c: Likewise.
13353 * wide-int.cc: Likewise.
13354 * xcoffout.c: Likewise.
13355 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
13356 * common/common-targhooks.c: Likewise.
13357 * config/aarch64/aarch64-builtins.c: Likewise.
13358 * config/aarch64/aarch64.c: Likewise.
13359 * config/alpha/alpha.c: Likewise.
13360 * config/arc/arc.c: Likewise.
13361 * config/arm/aarch-common.c: Likewise.
13362 * config/arm/arm-builtins.c: Likewise.
13363 * config/arm/arm-c.c: Likewise.
13364 * config/arm/arm.c: Likewise.
13365 * config/avr/avr-c.c: Likewise.
13366 * config/avr/avr-log.c: Likewise.
13367 * config/avr/avr.c: Likewise.
13368 * config/bfin/bfin.c: Likewise.
13369 * config/c6x/c6x.c: Likewise.
13370 * config/cr16/cr16.c: Likewise.
13371 * config/cris/cris.c: Likewise.
13372 * config/darwin-c.c: Likewise.
13373 * config/darwin.c: Likewise.
13374 * config/default-c.c: Likewise.
13375 * config/epiphany/epiphany.c: Likewise.
13376 * config/epiphany/mode-switch-use.c: Likewise.
13377 * config/epiphany/resolve-sw-modes.c: Likewise.
13378 * config/fr30/fr30.c: Likewise.
13379 * config/frv/frv.c: Likewise.
13380 * config/ft32/ft32.c: Likewise.
13381 * config/glibc-c.c: Likewise.
13382 * config/h8300/h8300.c: Likewise.
13383 * config/i386/i386-c.c: Likewise.
13384 * config/i386/i386.c: Likewise.
13385 * config/i386/msformat-c.c: Likewise.
13386 * config/i386/winnt-cxx.c: Likewise.
13387 * config/i386/winnt-stubs.c: Likewise.
13388 * config/i386/winnt.c: Likewise.
13389 * config/ia64/ia64-c.c: Likewise.
13390 * config/ia64/ia64.c: Likewise.
13391 * config/iq2000/iq2000.c: Likewise.
13392 * config/lm32/lm32.c: Likewise.
13393 * config/m32c/m32c-pragma.c: Likewise.
13394 * config/m32c/m32c.c: Likewise.
13395 * config/m32r/m32r.c: Likewise.
13396 * config/m68k/m68k.c: Likewise.
13397 * config/mcore/mcore.c: Likewise.
13398 * config/mep/mep-pragma.c: Likewise.
13399 * config/mep/mep.c: Likewise.
13400 * config/microblaze/microblaze-c.c: Likewise.
13401 * config/microblaze/microblaze.c: Likewise.
13402 * config/mips/mips.c: Likewise.
13403 * config/mmix/mmix.c: Likewise.
13404 * config/mn10300/mn10300.c: Likewise.
13405 * config/moxie/moxie.c: Likewise.
13406 * config/msp430/msp430-c.c: Likewise.
13407 * config/msp430/msp430.c: Likewise.
13408 * config/nds32/nds32-cost.c: Likewise.
13409 * config/nds32/nds32-fp-as-gp.c: Likewise.
13410 * config/nds32/nds32-intrinsic.c: Likewise.
13411 * config/nds32/nds32-isr.c: Likewise.
13412 * config/nds32/nds32-md-auxiliary.c: Likewise.
13413 * config/nds32/nds32-memory-manipulation.c: Likewise.
13414 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13415 * config/nds32/nds32-predicates.c: Likewise.
13416 * config/nds32/nds32.c: Likewise.
13417 * config/nios2/nios2.c: Likewise.
13418 * config/nvptx/nvptx.c: Likewise.
13419 * config/pa/pa.c: Likewise.
13420 * config/pdp11/pdp11.c: Likewise.
13421 * config/rl78/rl78-c.c: Likewise.
13422 * config/rl78/rl78.c: Likewise.
13423 * config/rs6000/rs6000-c.c: Likewise.
13424 * config/rs6000/rs6000.c: Likewise.
13425 * config/rx/rx.c: Likewise.
13426 * config/s390/s390-c.c: Likewise.
13427 * config/s390/s390.c: Likewise.
13428 * config/sh/sh-c.c: Likewise.
13429 * config/sh/sh-mem.cc: Likewise.
13430 * config/sh/sh.c: Likewise.
13431 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13432 * config/sh/sh_treg_combine.cc: Likewise.
13433 * config/sol2-c.c: Likewise.
13434 * config/sol2-cxx.c: Likewise.
13435 * config/sol2-stubs.c: Likewise.
13436 * config/sol2.c: Likewise.
13437 * config/sparc/sparc-c.c: Likewise.
13438 * config/sparc/sparc.c: Likewise.
13439 * config/spu/spu-c.c: Likewise.
13440 * config/spu/spu.c: Likewise.
13441 * config/stormy16/stormy16.c: Likewise.
13442 * config/tilegx/mul-tables.c: Likewise.
13443 * config/tilegx/tilegx-c.c: Likewise.
13444 * config/tilegx/tilegx.c: Likewise.
13445 * config/tilepro/mul-tables.c: Likewise.
13446 * config/tilepro/tilepro-c.c: Likewise.
13447 * config/tilepro/tilepro.c: Likewise.
13448 * config/v850/v850-c.c: Likewise.
13449 * config/v850/v850.c: Likewise.
13450 * config/vax/vax.c: Likewise.
13451 * config/visium/visium.c: Likewise.
13452 * config/vms/vms-c.c: Likewise.
13453 * config/vms/vms.c: Likewise.
13454 * config/vxworks.c: Likewise.
13455 * config/winnt-c.c: Likewise.
13456 * config/xtensa/xtensa.c: Likewise.
13458 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
13460 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
13462 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
13464 2015-06-17 Richard Biener <rguenther@suse.de>
13466 PR tree-optimization/66251
13467 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
13468 stmts for SLP strided stores.
13471 2015-05-22 Richard Biener <rguenther@suse.de>
13473 PR tree-optimization/66251
13474 * tree-vect-stmts.c (vectorizable_conversion): Properly
13475 set STMT_VINFO_VEC_STMT even for the SLP case.
13477 2015-05-26 Michael Matz <matz@suse.de>
13479 PR middle-end/66251
13480 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
13481 STMT_VINFO_VEC_STMT, also with SLP.
13483 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
13486 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
13487 (*avx_addsubv4df3_1s): Ditto.
13488 (*sse3_addsubv2df3_1): Ditto.
13489 (*sse3_addsubv2df3_1s): Ditto.
13490 (*avx_addsubv8sf3_1): Ditto.
13491 (*avx_addsubv8sf3_1s): Ditto.
13492 (*sse3_addsubv4sf3_1): Ditto.
13493 (*sse3_addsubv4sf3_1s): Ditto.
13495 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
13497 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
13498 (SYSROOT_SUFFIX_SPEC): Update.
13499 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
13500 (STARTFILE_PREFIX_SPEC): Update.
13501 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
13502 (MULTILIB_REQUIRED): New.
13503 (MULTILIB_OSDIRNAMES): New.
13504 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
13505 (MULTILIB_REQUIRED): New.
13506 (MULTILIB_OSDIRNAMES): New.
13508 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
13510 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
13511 * config/aarch64/aarch64-options-extensions.def: Update "fP",
13512 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
13513 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
13514 (AARCH64_FL_PAN): New.
13515 (AARCH64_FL_LOR): New.
13516 (AARCH64_FL_RDMA): New.
13517 (AARCH64_FL_FOR_ARCH8_1): New.
13518 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
13519 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
13521 2015-06-16 Martin Liska <mliska@suse.cz>
13523 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
13524 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
13527 2015-06-16 Richard Biener <rguenther@suse.de>
13529 * tree-vect-stmts.c (vectorizable_store): Adjust.
13530 (vectorizable_load): Likewise.
13531 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13533 (vect_create_data_ref_ptr): Likewise.
13534 (bump_vector_ptr): Adjust.
13536 2015-06-16 Richard Biener <rguenther@suse.de>
13538 * tree-vect-stmts.c (vectorizable_load): Properly start loads
13539 with the first element if this is grouped loads.
13541 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
13543 * config/arm/arm-protos.h (struct tune_params): Rename
13544 log_op_non_sc to log_op_non_short_circuit, and rename enum
13545 values to expand SC to SHORT_CIRCUIT.
13546 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
13547 to LOG_OP_NON_SHORT_CIRCUIT.
13548 (arm_fastmul_tune):Likewise
13549 (arm_strongarm_tune): Likewise.
13550 (arm_xscale_tune): Likewise.
13551 (arm_9e_tune): Likewise.
13552 (arm_marvell_pj4_tune): Likewise.
13553 (arm_v6t2_tune): Likewise.
13554 (arm_cortex_tune): Likewise.
13555 (arm_cortex_a8_tune): Likewise.
13556 (arm_cortex_a7_tune): Likewise.
13557 (arm_cortex_a15_tune): Likewise.
13558 (arm_cortex_a53_tune): Likewise.
13559 (arm_cortex_a57_tune): Likewise.
13560 (arm_xgene1_tune): Likewise.
13561 (arm_cortex_a5_tune): Likewise.
13562 (arm_cortex_a9_tune): Likewise.
13563 (arm_cortex_a12_tune): Likewise.
13564 (arm_v7m_tune): Likewise.
13565 (arm_cortex_m7_tune): Likewise.
13566 (arm_v6m_tune): Likewise.
13567 (arm_fa726te_tune): Likewise.
13569 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
13571 * altivec.md: Delete UNSPEC_VMLADDUHM.
13572 (mulv4si3_p8): New pattern.
13573 (mulv4si3): Use it for POWER8.
13574 (mulv8hi3): Use vmladduhm with zero addend.
13575 (altivec_vmladduhm): Descriptive RTL.
13577 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
13579 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
13580 to use neon_move instead of mov_imm.
13581 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
13582 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
13584 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
13585 aarch64_float_const_zero_rtx_p check before TFmode check.
13586 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
13588 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
13589 code and attributes to match. Change condition from register_operand
13590 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
13591 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
13594 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
13597 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
13598 there is no parent.
13600 2015-06-14 Shiva Chen <shiva0217@gmail.com>
13602 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
13603 HOST_WIDE_INT parameter.
13605 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
13608 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
13609 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
13611 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
13613 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
13615 * rtl.h (classify_insn): Declare.
13616 * emit-rtl.c (classify_insn): Move to...
13617 * rtl.c: ...here and add generator support.
13618 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
13619 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
13620 * genemit.c (gen_emit_seq): New function.
13621 (gen_expand, gen_split): Use it.
13623 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
13625 * tree.c (make_vector_stat): Fix comment to state that the
13626 function returns a VECTOR_CST.
13628 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
13630 * gensupport.h (add_implicit_parallel): Declare.
13631 * genrecog.c (add_implicit_parallel): Move to...
13632 * gensupport.c (add_implicit_parallel): ...here.
13633 (process_one_cond_exec): Use it.
13634 * genemit.c (gen_insn): Likewise.
13636 2015-06-13 Iain Sandoe <iain@codesourcery.com>
13639 * passes.c (rest_of_decl_compilation): Do not register globals for
13640 early debug if they are declared in built-ins.
13642 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
13644 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
13646 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13648 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
13650 (noce_try_cmove_arith): Likewise.
13651 (noce_get_alt_condition): Likewise.
13653 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13655 * common/config/i386/i386-common.c
13656 (OPTION_MASK_ISA_MWAITX_SET): New.
13657 (ix86_handle_option): Handle mwaitx.
13658 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
13659 (x86_64-*-*): Likewise.
13660 * config/i386/mwaitxintrin.h: New header.
13661 * config/i386/cpuid.h (bit_MWAITX): Define.
13662 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13664 * config/i386/i386.opt (mwaitx): New.
13665 * config/i386/i386-builtin-types.def
13666 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
13667 * config/i386/i386-c.c: Define __MWAITX__ if needed.
13668 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
13670 (ix86_option_override_internal): Handle new option.
13671 (processor_alias_table): Added PTA_MWAITX.
13672 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
13673 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
13674 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
13675 IX86_BUILTIN_MONITORX built-ins.
13676 * config/i386/i386.h (TARGET_MWAITX): New.
13677 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
13679 (mwaitx): New pattern.
13680 (monitorx_<mode>): New pattern.
13681 * config/i386/x86intrin.h: Include mwaitxintrin.h.
13682 * doc/extend.texi: Document monitorx and mwaitx builtins.
13683 * doc/invoke.texi: Document -mmwaitx option.
13685 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
13687 * emit-rtl.c (need_atomic_barrier_p): Mask model with
13688 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
13690 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13692 * dbxout.c (xcoff_debug_hooks): Provide a function for
13693 register_main_translation_unit hook.
13695 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13697 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
13698 variants cases from switch.
13699 (rs6000_post_atomic_barrier): Same.
13700 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
13701 (rs6000_expand_atomic_exchange): Same.
13702 (rs6000_expand_atomic_op): Same.
13703 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
13704 SYNC variants cases from switch.
13705 (atomic_load): Same.
13706 (atomic_store): Same.
13708 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
13710 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
13711 CONST_INT for goto.
13713 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
13716 * dwarf2out.c (check_die): Check for common duplicate attributes.
13717 (add_location_or_const_value_attribute): Do not add duplicate
13719 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
13721 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
13722 (gen_type_die_with_usage): Call check_die.
13723 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
13725 2015-06-11 Jason Merrill <jason@redhat.com>
13727 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
13730 2015-06-11 Marek Polacek <polacek@redhat.com>
13732 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
13734 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
13737 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
13738 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
13739 (*addx_extend_sp32): Fix pasto.
13740 (*subx_extend): Rename into...
13741 (*subx_extend_sp32): ...this.
13742 (*adddi3_extend_sp32): Add earlyclobber.
13743 (*subdi3_insn_sp32): Likewise.
13744 (*subdi3_extend_sp32): Likewise.
13745 (*and_not_di_sp32): Likewise.
13746 (*or_not_di_sp32): Likewise.
13747 (*xor_not_di_sp32): Likewise.
13748 (*negdi2_sp32): Likewise.
13749 (*one_cmpldi2_sp32): Likewise.
13751 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
13753 * debug.h (struct gcc_debug_hooks): Add a
13754 register_main_translation_unit hook.
13755 * debug.c (do_nothing_debug_hooks): Provide a function for this
13757 * dbxout.c (dbx_debug_hooks): Likewise.
13758 * sdbout.c (sdb_debug_hooks): Likewise.
13759 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13760 * dwarf2out.c (main_translation_unit): New global variable.
13761 (dwarf2out_register_main_translation_unit): New function
13762 implementing the new hook.
13763 (dwarf2_debug_hooks): Assign
13764 dwarf2out_register_main_translation_unit to this new hook.
13765 (dwarf2out_init): Associate any main translation unit to
13768 2015-06-11 Marek Polacek <polacek@redhat.com>
13770 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
13772 2015-06-11 Marek Polacek <polacek@redhat.com>
13774 * match.pd: Use single_use throughout.
13776 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13778 * config/arm/arm.c (arm_option_params_internal): When optimising
13779 for speed set max_insns_skipped when arm_restrict_it.
13781 2015-06-11 Christian Bruel <christian.bruel@st.com>
13784 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
13786 (arm_cpu_builtins): New function.
13787 (arm_pragma_target_parse): Call arm_cpu_builtins.
13788 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
13789 (arm_register_target_pragmas): Likewise.
13790 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
13791 Call arm_register_target_pragmas.
13792 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
13793 (arm_pragma_target_parse): Likewise.
13795 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
13797 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
13798 of the second operand.
13800 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
13803 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
13804 to prepare mask operand for AVX512 modes.
13806 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
13809 * doc/md.texi (Machine Constraints): Document that on the PowerPC
13810 if you use a constraint that targets a VSX register, you must use
13811 %x<n> in the template.
13813 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
13815 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
13816 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
13817 (define_insn "trap"): New definition.
13819 2015-06-10 Richard Biener <rguenther@suse.de>
13821 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
13823 (vect_supported_load_permutation_p): ... here. Handle
13824 supportable permutations in reductions.
13825 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
13826 for vectorizing strided group loads.
13828 2015-06-10 Jakub Jelinek <jakub@redhat.com>
13831 * config/i386/i386.c (ix86_split_long_move): For collisions
13832 involving direct tls segment refs, move the UNSPEC_TP possibly
13833 wrapped in ZERO_EXTEND out of the address for lea, to each of
13836 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13838 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
13839 dmb sy. Adjust tabs.
13841 2015-06-10 Tom de Vries <tom@codesourcery.com>
13843 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
13845 2015-06-10 Martin Liska <mliska@suse.cz>
13848 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
13849 all enum values in mem_alloc_origin.
13850 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
13852 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
13853 * bitmap.c (bitmap_register): Likewise.
13854 (dump_bitmap_statistics): Likewise.
13855 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
13856 (ggc_record_overhead): Likewise.
13857 * hash-map.h: Likewise.
13858 * hash-set.h: Likewise.
13859 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
13860 * hash-table.h: Likewise.
13861 * vec.c (vec_prefix::register_overhead): Likewise.
13862 (vec_prefix::release_overhead): Likewise.
13863 (dump_vec_loc_statistics): Likewise.
13865 2015-06-09 Christian Bruel <christian.bruel@st.com>
13868 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
13869 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
13870 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
13871 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
13872 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
13873 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
13874 (arm_valid_target_attribute_p): Likewise.
13875 (arm_set_current_function, arm_can_inline_p): Likewise.
13876 (arm_valid_target_attribute_rec): Likewise.
13877 (arm_previous_fndecl): New variable.
13878 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13879 (TARGET_CAN_INLINE_P): Define.
13880 (arm_asm_trampoline_template): Emit mode.
13881 (arm_file_start): Don't set unified syntax.
13882 (arm_declare_function_name): Set unified syntax and mode.
13883 (arm_option_override): Init target_option_default_node.
13884 and target_option_current_node.
13885 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
13886 (*call_symbol): Likewise.
13887 * doc/extend.texi: Document ARM/Thumb target attribute.
13888 * doc/invoke.texi: Likewise.
13890 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13893 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13894 PR rtl-optimization/64164
13895 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13896 * tree-ssa-copyrename.c: Removed.
13897 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13898 -ftree-coalesce-vars.
13899 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13900 * common.opt (ftree-copyrename): Ignore.
13901 (ftree-coalesce-inlined-vars): Likewise.
13902 * doc/invoke.texi: Remove the ignored options above.
13903 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13904 * tree-ssa-coalesce.h: ... here.
13905 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13906 headers required by it.
13907 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13908 across variables when flag_tree_coalesce_vars. Check register
13909 use and promoted modes to allow coalescing. Moved to
13910 tree-ssa-coalesce.c.
13911 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13912 with its member functions to tree-ssa-coalesce.c.
13913 (var_map_base_init): Likewise. Renamed to
13914 compute_samebase_partition_bases.
13915 (partition_view_normal): Drop want_bases parameter.
13916 (partition_view_bitmap): Likewise.
13917 * tree-ssa-live.h: Adjust declarations.
13918 * tree-ssa-coalesce.c: Include explow.h.
13919 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13920 default defs at the entry point.
13921 (dump_part_var_map): New.
13922 (compute_optimized_partition_bases): New, called by...
13923 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13924 of compute_samebase_partition_bases. Adjust.
13925 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13926 * cfgexpand.c (leader_merge): New.
13927 (get_rtl_for_parm_ssa_default_def): New.
13928 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13929 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13930 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13931 redundant MEM attr setting.
13932 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13934 (expand_one_stack_var): ... this. New wrapper to check and
13935 skip already expanded SSA partitions.
13936 (record_alignment_for_reg_var): New, factored out of...
13937 (expand_one_var): ... this.
13938 (expand_one_ssa_partition): New.
13939 (adjust_one_expanded_partition_var): New.
13940 (expand_one_register_var): Check and skip already expanded SSA
13942 (expand_used_vars): Don't create DECLs for anonymous SSA
13943 names. Expand all SSA partitions, then adjust all SSA names.
13944 (pass::execute): Replace the loops that set
13945 SA.partition_to_pseudo from partition leaders and cleared
13946 DECL_RTL for multi-location variables, and that which used to
13947 rename vars and set attrs, with one that clears DECL_RTL and
13948 checks that PARMs and RESULTs default_defs match DECL_RTL.
13949 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13950 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13951 * explow.c (promote_ssa_mode): New.
13952 * explow.h (promote_ssa_mode): Declare.
13953 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13954 * function.c: Include cfgexpand.h.
13955 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13956 (use_register_for_parm_decl): Wrapper for the above to
13957 special-case the result_ptr.
13958 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13959 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13960 multiple locations.
13961 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13962 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13963 (assign_parm_setup_block): Prefer SSA-assigned location.
13964 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13965 if stack_parm is NULL.
13966 (assign_parm_setup_stack): Prefer SSA-assigned location.
13967 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13968 rtl before testing for pointer bounds. Special-case result_ptr.
13969 (expand_function_start): Maybe reset DECL_RTL of result.
13970 Prefer SSA-assigned location for result and static chain.
13971 Factor out DECL_RESULT and SET_DECL_RTL.
13972 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13973 anonymous SSA names. Use promote_ssa_mode.
13974 (get_temp_reg): Likewise.
13975 (remove_ssa_form): Adjust.
13976 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13977 and get its reg_usage for reg invalidation.
13978 (compute_bb_dataflow): Pass it insn.
13979 (emit_notes_in_bb): Likewise.
13980 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13981 fail assert on conversion between unsigned types.
13983 2015-06-09 Tom de Vries <tom@codesourcery.com>
13985 PR tree-optimization/65460
13986 * omp-low.c (expand_omp_target): Set parallelized_function on
13987 cgraph_node for child_fn.
13989 2015-06-09 Tom de Vries <tom@codesourcery.com>
13991 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
13992 parallelized_function before add_new_function.
13994 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
13996 * gcc-plugin.h: Move decls to plugin.h and include it.
13997 * plugin.h: Relocate decls from gcc-plugin.h
13998 * ggc-page.c: Include required header files.
13999 * passes.c: Likewise.
14000 * cgraphunit.c: Likewise.
14002 2015-06-09 Tom de Vries <tom@codesourcery.com>
14004 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
14006 2015-06-09 Jason Merrill <jason@redhat.com>
14009 * toplev.c (check_global_declaration): Don't warn about a clone.
14011 2015-06-09 Marek Polacek <polacek@redhat.com>
14013 PR tree-optimization/66299
14014 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
14015 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
14018 2015-06-09 Richard Biener <rguenther@suse.de>
14020 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
14021 (vect_analyze_slp_instance): Instead do not falsely drop
14024 2015-06-09 Richard Biener <rguenther@suse.de>
14026 PR middle-end/66423
14027 * match.pd: Handle A % (unsigned)(1 << B).
14029 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
14031 * varasm.c (output_object_block_htab): Remove.
14032 (output_object_block_compare): New.
14033 (output_object_blocks): Sort named object_blocks before outputting
14036 2015-06-09 Richard Biener <rguenther@suse.de>
14038 PR tree-optimization/66419
14039 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
14040 consider GROUP_GAP when detecting a perfect subchain.
14042 2015-06-09 Nick Clifton <nickc@redhat.com>
14044 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
14045 place read only data in the .frodata section.
14047 2015-06-09 Shiva Chen <shiva0217@gmail.com>
14049 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
14050 (atomic_store<mode>): Likewise.
14052 2015-06-09 Richard Biener <rguenther@suse.de>
14054 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
14056 2015-06-09 Richard Biener <rguenther@suse.de>
14058 PR middle-end/66413
14059 * tree-inline.c (insert_init_debug_bind): Unshare value.
14061 2015-06-09 Richard Biener <rguenther@suse.de>
14063 PR tree-optimization/66396
14064 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
14065 Rename virtual operands.
14067 2015-06-09 Tom de Vries <tom@codesourcery.com>
14069 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
14070 always return false.
14072 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
14074 PR rtl-optimization/64164
14075 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14076 * tree-ssa-copyrename.c: Removed.
14077 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14078 -ftree-coalesce-vars.
14079 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14080 * common.opt (ftree-copyrename): Ignore.
14081 (ftree-coalesce-inlined-vars): Likewise.
14082 * doc/invoke.texi: Remove the ignored options above.
14083 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14084 * tree-ssa-coalesce.h: ... here.
14085 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14086 headers required by it.
14087 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14088 across variables when flag_tree_coalesce_vars. Check register
14089 use and promoted modes to allow coalescing. Moved to
14090 tree-ssa-coalesce.c.
14091 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14092 with its member functions to tree-ssa-coalesce.c.
14093 (var_map_base_init): Likewise. Renamed to
14094 compute_samebase_partition_bases.
14095 (partition_view_normal): Drop want_bases parameter.
14096 (partition_view_bitmap): Likewise.
14097 * tree-ssa-live.h: Adjust declarations.
14098 * tree-ssa-coalesce.c: Include explow.h.
14099 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14100 default defs at the entry point.
14101 (dump_part_var_map): New.
14102 (compute_optimized_partition_bases): New, called by...
14103 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14104 of compute_samebase_partition_bases. Adjust.
14105 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14106 * cfgexpand.c (leader_merge): New.
14107 (get_rtl_for_parm_ssa_default_def): New.
14108 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14109 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14110 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14111 redundant MEM attr setting.
14112 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14114 (expand_one_stack_var): ... this. New wrapper to check and
14115 skip already expanded SSA partitions.
14116 (record_alignment_for_reg_var): New, factored out of...
14117 (expand_one_var): ... this.
14118 (expand_one_ssa_partition): New.
14119 (adjust_one_expanded_partition_var): New.
14120 (expand_one_register_var): Check and skip already expanded SSA
14122 (expand_used_vars): Don't create DECLs for anonymous SSA
14123 names. Expand all SSA partitions, then adjust all SSA names.
14124 (pass::execute): Replace the loops that set
14125 SA.partition_to_pseudo from partition leaders and cleared
14126 DECL_RTL for multi-location variables, and that which used to
14127 rename vars and set attrs, with one that clears DECL_RTL and
14128 checks that PARMs and RESULTs default_defs match DECL_RTL.
14129 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14130 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14131 * explow.c (promote_ssa_mode): New.
14132 * explow.h (promote_ssa_mode): Declare.
14133 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14134 * function.c: Include cfgexpand.h.
14135 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14136 (use_register_for_parm_decl): Wrapper for the above to
14137 special-case the result_ptr.
14138 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14139 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14140 multiple locations.
14141 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14142 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14143 (assign_parm_setup_block): Prefer SSA-assigned location.
14144 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
14145 if stack_parm is NULL.
14146 (assign_parm_setup_stack): Prefer SSA-assigned location.
14147 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14148 rtl before testing for pointer bounds. Special-case result_ptr.
14149 (expand_function_start): Maybe reset DECL_RTL of result.
14150 Prefer SSA-assigned location for result and static chain.
14151 Factor out DECL_RESULT and SET_DECL_RTL.
14152 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14153 anonymous SSA names. Use promote_ssa_mode.
14154 (get_temp_reg): Likewise.
14155 (remove_ssa_form): Adjust.
14156 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14157 and get its reg_usage for reg invalidation.
14158 (compute_bb_dataflow): Pass it insn.
14159 (emit_notes_in_bb): Likewise.
14160 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
14161 fail assert on conversion between unsigned types.
14163 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
14166 * tree-inline.c (reset_debug_binding): New.
14167 (reset_debug_bindings): Likewise.
14168 (expand_call_inline): Call it.
14170 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14172 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
14175 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14177 * lto-streamer-out.c (lto_output_location): Stream
14178 reserved locations correctly.
14179 * lto-streamer-in.c (lto_output_location): Likewise.
14181 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
14183 * coretypes.h: Include hash-table.h and hash-set.h for host files.
14184 * ggc.h: Don't include statistics.h>
14185 * hash-map.h: Remove all includes.
14186 * hash-set.h: Likewise.
14187 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
14188 the include list. Remove <new>.
14189 * inchash.h: Remove all includes.
14190 * mem-stats.h: Likewise.
14191 * vec.h: No special processing for generators or ggc.
14192 * alias.c : Adjust include files.
14193 * alloc-pool.c : Likewise.
14194 * alloc-pool.h : Likewise.
14195 * asan.c : Likewise.
14196 * attribs.c : Likewise.
14197 * auto-inc-dec.c : Likewise.
14198 * auto-profile.c : Likewise.
14199 * bb-reorder.c : Likewise.
14200 * bitmap.c : Likewise.
14201 * bitmap.h : Likewise.
14202 * bt-load.c : Likewise.
14203 * builtins.c : Likewise.
14204 * caller-save.c : Likewise.
14205 * calls.c : Likewise.
14206 * ccmp.c : Likewise.
14207 * cfg.c : Likewise.
14208 * cfganal.c : Likewise.
14209 * cfgbuild.c : Likewise.
14210 * cfgcleanup.c : Likewise.
14211 * cfgexpand.c : Likewise.
14212 * cfghooks.c : Likewise.
14213 * cfgloop.c : Likewise.
14214 * cfgloop.h : Likewise.
14215 * cfgloopanal.c : Likewise.
14216 * cfgloopmanip.c : Likewise.
14217 * cfgrtl.c : Likewise.
14218 * cgraph.c : Likewise.
14219 * cgraphbuild.c : Likewise.
14220 * cgraphclones.c : Likewise.
14221 * cgraphunit.c : Likewise.
14222 * cilk-common.c : Likewise.
14223 * combine-stack-adj.c : Likewise.
14224 * combine.c : Likewise.
14225 * compare-elim.c : Likewise.
14226 * context.c : Likewise.
14227 * convert.c : Likewise.
14228 * coverage.c : Likewise.
14229 * cppbuiltin.c : Likewise.
14230 * cprop.c : Likewise.
14231 * cse.c : Likewise.
14232 * cselib.c : Likewise.
14233 * data-streamer-in.c : Likewise.
14234 * data-streamer-out.c : Likewise.
14235 * data-streamer.c : Likewise.
14236 * data-streamer.h : Likewise.
14237 * dbxout.c : Likewise.
14238 * dce.c : Likewise.
14239 * ddg.c : Likewise.
14240 * debug.c : Likewise.
14241 * df-core.c : Likewise.
14242 * df-problems.c : Likewise.
14243 * df-scan.c : Likewise.
14245 * dfp.c : Likewise.
14246 * dojump.c : Likewise.
14247 * dominance.c : Likewise.
14248 * domwalk.c : Likewise.
14249 * double-int.c : Likewise.
14250 * dse.c : Likewise.
14251 * dumpfile.c : Likewise.
14252 * dwarf2asm.c : Likewise.
14253 * dwarf2cfi.c : Likewise.
14254 * dwarf2out.c : Likewise.
14255 * emit-rtl.c : Likewise.
14256 * et-forest.c : Likewise.
14257 * except.c : Likewise.
14258 * except.h : Likewise.
14259 * explow.c : Likewise.
14260 * expmed.c : Likewise.
14261 * expr.c : Likewise.
14262 * final.c : Likewise.
14263 * fixed-value.c : Likewise.
14264 * fold-const.c : Likewise.
14265 * function.c : Likewise.
14266 * fwprop.c : Likewise.
14267 * gcc-plugin.h : Likewise.
14268 * gcc.c : Likewise.
14269 * gcse-common.c : Likewise.
14270 * gcse.c : Likewise.
14271 * genattrtab.c : Likewise.
14272 * genautomata.c : Likewise.
14273 * genconditions.c : Likewise.
14274 * genemit.c : Likewise.
14275 * generic-match-head.c : Likewise.
14276 * genextract.c : Likewise.
14277 * gengtype-state.c : Likewise.
14278 * gengtype.c : Likewise.
14279 * genhooks.c : Likewise.
14280 * genmatch.c : Likewise.
14281 * genmodes.c : Likewise.
14282 * genrecog.c : Likewise.
14283 * gensupport.c : Likewise.
14284 * ggc-common.c : Likewise.
14285 * ggc-internal.h : Likewise.
14286 * ggc-none.c : Likewise.
14287 * ggc-page.c : Likewise.
14288 * gimple-builder.c : Likewise.
14289 * gimple-expr.c : Likewise.
14290 * gimple-fold.c : Likewise.
14291 * gimple-iterator.c : Likewise.
14292 * gimple-low.c : Likewise.
14293 * gimple-match-head.c : Likewise.
14294 * gimple-pretty-print.c : Likewise.
14295 * gimple-ssa-isolate-paths.c : Likewise.
14296 * gimple-ssa-strength-reduction.c : Likewise.
14297 * gimple-ssa.h : Likewise.
14298 * gimple-streamer-in.c : Likewise.
14299 * gimple-streamer-out.c : Likewise.
14300 * gimple-streamer.h : Likewise.
14301 * gimple-walk.c : Likewise.
14302 * gimple.c : Likewise.
14303 * gimplify-me.c : Likewise.
14304 * gimplify.c : Likewise.
14305 * godump.c : Likewise.
14306 * graph.c : Likewise.
14307 * graphds.c : Likewise.
14308 * graphite-blocking.c : Likewise.
14309 * graphite-dependences.c : Likewise.
14310 * graphite-interchange.c : Likewise.
14311 * graphite-isl-ast-to-gimple.c : Likewise.
14312 * graphite-optimize-isl.c : Likewise.
14313 * graphite-poly.c : Likewise.
14314 * graphite-scop-detection.c : Likewise.
14315 * graphite-sese-to-poly.c : Likewise.
14316 * graphite.c : Likewise.
14317 * haifa-sched.c : Likewise.
14318 * hard-reg-set.h : Likewise.
14319 * hw-doloop.c : Likewise.
14320 * ifcvt.c : Likewise.
14321 * inchash.c : Likewise.
14322 * incpath.c : Likewise.
14323 * init-regs.c : Likewise.
14324 * input.c : Likewise.
14325 * internal-fn.c : Likewise.
14326 * ipa-chkp.c : Likewise.
14327 * ipa-comdats.c : Likewise.
14328 * ipa-cp.c : Likewise.
14329 * ipa-devirt.c : Likewise.
14330 * ipa-icf-gimple.c : Likewise.
14331 * ipa-icf.c : Likewise.
14332 * ipa-inline-analysis.c : Likewise.
14333 * ipa-inline-transform.c : Likewise.
14334 * ipa-inline.c : Likewise.
14335 * ipa-polymorphic-call.c : Likewise.
14336 * ipa-profile.c : Likewise.
14337 * ipa-prop.c : Likewise.
14338 * ipa-pure-const.c : Likewise.
14339 * ipa-ref.c : Likewise.
14340 * ipa-reference.c : Likewise.
14341 * ipa-split.c : Likewise.
14342 * ipa-utils.c : Likewise.
14343 * ipa-visibility.c : Likewise.
14344 * ipa.c : Likewise.
14345 * ira-build.c : Likewise.
14346 * ira-color.c : Likewise.
14347 * ira-conflicts.c : Likewise.
14348 * ira-costs.c : Likewise.
14349 * ira-emit.c : Likewise.
14350 * ira-lives.c : Likewise.
14351 * ira.c : Likewise.
14352 * jump.c : Likewise.
14353 * langhooks.c : Likewise.
14354 * lcm.c : Likewise.
14355 * libfuncs.h : Likewise.
14356 * lists.c : Likewise.
14357 * loop-doloop.c : Likewise.
14358 * loop-init.c : Likewise.
14359 * loop-invariant.c : Likewise.
14360 * loop-iv.c : Likewise.
14361 * loop-unroll.c : Likewise.
14362 * lower-subreg.c : Likewise.
14363 * lra-assigns.c : Likewise.
14364 * lra-coalesce.c : Likewise.
14365 * lra-constraints.c : Likewise.
14366 * lra-eliminations.c : Likewise.
14367 * lra-lives.c : Likewise.
14368 * lra-remat.c : Likewise.
14369 * lra-spills.c : Likewise.
14370 * lra.c : Likewise.
14371 * lto-cgraph.c : Likewise.
14372 * lto-compress.c : Likewise.
14373 * lto-opts.c : Likewise.
14374 * lto-section-in.c : Likewise.
14375 * lto-section-out.c : Likewise.
14376 * lto-streamer-in.c : Likewise.
14377 * lto-streamer-out.c : Likewise.
14378 * lto-streamer.c : Likewise.
14379 * lto-streamer.h : Likewise.
14380 * mcf.c : Likewise.
14381 * mode-switching.c : Likewise.
14382 * modulo-sched.c : Likewise.
14383 * omega.c : Likewise.
14384 * omp-low.c : Likewise.
14385 * optabs.c : Likewise.
14386 * opts-global.c : Likewise.
14387 * opts.h : Likewise.
14388 * passes.c : Likewise.
14389 * plugin.c : Likewise.
14390 * postreload-gcse.c : Likewise.
14391 * postreload.c : Likewise.
14392 * predict.c : Likewise.
14393 * print-rtl.c : Likewise.
14394 * print-tree.c : Likewise.
14395 * profile.c : Likewise.
14396 * read-md.c : Likewise.
14397 * read-md.h : Likewise.
14398 * read-rtl.c : Likewise.
14399 * real.c : Likewise.
14400 * realmpfr.c : Likewise.
14401 * recog.c : Likewise.
14402 * ree.c : Likewise.
14403 * reg-stack.c : Likewise.
14404 * regcprop.c : Likewise.
14405 * reginfo.c : Likewise.
14406 * regrename.c : Likewise.
14407 * regstat.c : Likewise.
14408 * reload.c : Likewise.
14409 * reload1.c : Likewise.
14410 * reorg.c : Likewise.
14411 * resource.c : Likewise.
14412 * rtl-chkp.c : Likewise.
14413 * rtl.c : Likewise.
14414 * rtl.h : Likewise.
14415 * rtlanal.c : Likewise.
14416 * rtlhash.c : Likewise.
14417 * rtlhash.h : Likewise.
14418 * rtlhooks.c : Likewise.
14419 * sanopt.c : Likewise.
14420 * sched-deps.c : Likewise.
14421 * sched-ebb.c : Likewise.
14422 * sched-rgn.c : Likewise.
14423 * sched-vis.c : Likewise.
14424 * sdbout.c : Likewise.
14425 * sel-sched-dump.c : Likewise.
14426 * sel-sched-ir.c : Likewise.
14427 * sel-sched-ir.h : Likewise.
14428 * sel-sched.c : Likewise.
14429 * sese.c : Likewise.
14430 * shrink-wrap.c : Likewise.
14431 * shrink-wrap.h : Likewise.
14432 * simplify-rtx.c : Likewise.
14433 * stack-ptr-mod.c : Likewise.
14434 * statistics.c : Likewise.
14435 * stmt.c : Likewise.
14436 * stor-layout.c : Likewise.
14437 * store-motion.c : Likewise.
14438 * stringpool.c : Likewise.
14439 * symtab.c : Likewise.
14440 * target-globals.c : Likewise.
14441 * targhooks.c : Likewise.
14442 * tlink.c : Likewise.
14443 * toplev.c : Likewise.
14444 * tracer.c : Likewise.
14445 * trans-mem.c : Likewise.
14446 * tree-affine.c : Likewise.
14447 * tree-affine.h : Likewise.
14448 * tree-browser.c : Likewise.
14449 * tree-call-cdce.c : Likewise.
14450 * tree-cfg.c : Likewise.
14451 * tree-cfgcleanup.c : Likewise.
14452 * tree-chkp-opt.c : Likewise.
14453 * tree-chkp.c : Likewise.
14454 * tree-chrec.c : Likewise.
14455 * tree-complex.c : Likewise.
14456 * tree-data-ref.c : Likewise.
14457 * tree-dfa.c : Likewise.
14458 * tree-diagnostic.c : Likewise.
14459 * tree-dump.c : Likewise.
14460 * tree-eh.c : Likewise.
14461 * tree-eh.h : Likewise.
14462 * tree-emutls.c : Likewise.
14463 * tree-hasher.h : Likewise.
14464 * tree-if-conv.c : Likewise.
14465 * tree-inline.c : Likewise.
14466 * tree-inline.h : Likewise.
14467 * tree-into-ssa.c : Likewise.
14468 * tree-iterator.c : Likewise.
14469 * tree-loop-distribution.c : Likewise.
14470 * tree-nested.c : Likewise.
14471 * tree-nrv.c : Likewise.
14472 * tree-object-size.c : Likewise.
14473 * tree-outof-ssa.c : Likewise.
14474 * tree-parloops.c : Likewise.
14475 * tree-phinodes.c : Likewise.
14476 * tree-predcom.c : Likewise.
14477 * tree-pretty-print.c : Likewise.
14478 * tree-profile.c : Likewise.
14479 * tree-scalar-evolution.c : Likewise.
14480 * tree-sra.c : Likewise.
14481 * tree-ssa-address.c : Likewise.
14482 * tree-ssa-alias.c : Likewise.
14483 * tree-ssa-ccp.c : Likewise.
14484 * tree-ssa-coalesce.c : Likewise.
14485 * tree-ssa-copy.c : Likewise.
14486 * tree-ssa-copyrename.c : Likewise.
14487 * tree-ssa-dce.c : Likewise.
14488 * tree-ssa-dom.c : Likewise.
14489 * tree-ssa-dse.c : Likewise.
14490 * tree-ssa-forwprop.c : Likewise.
14491 * tree-ssa-ifcombine.c : Likewise.
14492 * tree-ssa-live.c : Likewise.
14493 * tree-ssa-loop-ch.c : Likewise.
14494 * tree-ssa-loop-im.c : Likewise.
14495 * tree-ssa-loop-ivcanon.c : Likewise.
14496 * tree-ssa-loop-ivopts.c : Likewise.
14497 * tree-ssa-loop-manip.c : Likewise.
14498 * tree-ssa-loop-niter.c : Likewise.
14499 * tree-ssa-loop-prefetch.c : Likewise.
14500 * tree-ssa-loop-unswitch.c : Likewise.
14501 * tree-ssa-loop.c : Likewise.
14502 * tree-ssa-math-opts.c : Likewise.
14503 * tree-ssa-operands.c : Likewise.
14504 * tree-ssa-phiopt.c : Likewise.
14505 * tree-ssa-phiprop.c : Likewise.
14506 * tree-ssa-pre.c : Likewise.
14507 * tree-ssa-propagate.c : Likewise.
14508 * tree-ssa-reassoc.c : Likewise.
14509 * tree-ssa-sccvn.c : Likewise.
14510 * tree-ssa-scopedtables.c : Likewise.
14511 * tree-ssa-sink.c : Likewise.
14512 * tree-ssa-strlen.c : Likewise.
14513 * tree-ssa-structalias.c : Likewise.
14514 * tree-ssa-tail-merge.c : Likewise.
14515 * tree-ssa-ter.c : Likewise.
14516 * tree-ssa-threadedge.c : Likewise.
14517 * tree-ssa-threadupdate.c : Likewise.
14518 * tree-ssa-uncprop.c : Likewise.
14519 * tree-ssa-uninit.c : Likewise.
14520 * tree-ssa.c : Likewise.
14521 * tree-ssanames.c : Likewise.
14522 * tree-stdarg.c : Likewise.
14523 * tree-streamer-in.c : Likewise.
14524 * tree-streamer-out.c : Likewise.
14525 * tree-streamer.c : Likewise.
14526 * tree-streamer.h : Likewise.
14527 * tree-switch-conversion.c : Likewise.
14528 * tree-tailcall.c : Likewise.
14529 * tree-vect-data-refs.c : Likewise.
14530 * tree-vect-generic.c : Likewise.
14531 * tree-vect-loop-manip.c : Likewise.
14532 * tree-vect-loop.c : Likewise.
14533 * tree-vect-patterns.c : Likewise.
14534 * tree-vect-slp.c : Likewise.
14535 * tree-vect-stmts.c : Likewise.
14536 * tree-vectorizer.c : Likewise.
14537 * tree-vectorizer.h : Likewise.
14538 * tree-vrp.c : Likewise.
14539 * tree.c : Likewise.
14540 * tsan.c : Likewise.
14541 * ubsan.c : Likewise.
14542 * valtrack.c : Likewise.
14543 * valtrack.h : Likewise.
14544 * value-prof.c : Likewise.
14545 * var-tracking.c : Likewise.
14546 * varasm.c : Likewise.
14547 * varpool.c : Likewise.
14549 * vmsdbgout.c : Likewise.
14550 * vtable-verify.c : Likewise.
14551 * vtable-verify.h : Likewise.
14552 * web.c : Likewise.
14553 * wide-int.cc : Likewise.
14554 * xcoffout.c : Likewise.
14555 * config/aarch64/aarch64-builtins.c : Likewise.
14556 * config/aarch64/aarch64.c : Likewise.
14557 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
14558 * config/alpha/alpha.c : Likewise.
14559 * config/arc/arc.c : Likewise.
14560 * config/arm/aarch-common.c : Likewise.
14561 * config/arm/arm-builtins.c : Likewise.
14562 * config/arm/arm-c.c : Likewise.
14563 * config/arm/arm.c : Likewise.
14564 * config/avr/avr-c.c : Likewise.
14565 * config/avr/avr-log.c : Likewise.
14566 * config/avr/avr.c : Likewise.
14567 * config/bfin/bfin.c : Likewise.
14568 * config/c6x/c6x.c : Likewise.
14569 * config/cr16/cr16.c : Likewise.
14570 * config/cris/cris.c : Likewise.
14571 * config/darwin-c.c : Likewise.
14572 * config/darwin.c : Likewise.
14573 * config/default-c.c : Likewise.
14574 * config/epiphany/epiphany.c : Likewise.
14575 * config/epiphany/mode-switch-use.c : Likewise.
14576 * config/epiphany/resolve-sw-modes.c : Likewise.
14577 * config/fr30/fr30.c : Likewise.
14578 * config/frv/frv.c : Likewise.
14579 * config/ft32/ft32.c : Likewise.
14580 * config/glibc-c.c : Likewise.
14581 * config/h8300/h8300.c : Likewise.
14582 * config/i386/i386-c.c : Likewise.
14583 * config/i386/i386.c : Likewise.
14584 * config/i386/msformat-c.c : Likewise.
14585 * config/i386/winnt-cxx.c : Likewise.
14586 * config/i386/winnt-stubs.c : Likewise.
14587 * config/i386/winnt.c : Likewise.
14588 * config/ia64/ia64-c.c : Likewise.
14589 * config/ia64/ia64.c : Likewise.
14590 * config/iq2000/iq2000.c : Likewise.
14591 * config/lm32/lm32.c : Likewise.
14592 * config/m32c/m32c-pragma.c : Likewise.
14593 * config/m32c/m32c.c : Likewise.
14594 * config/m32r/m32r.c : Likewise.
14595 * config/m68k/m68k.c : Likewise.
14596 * config/mcore/mcore.c : Likewise.
14597 * config/mep/mep-pragma.c : Likewise.
14598 * config/mep/mep.c : Likewise.
14599 * config/microblaze/microblaze-c.c : Likewise.
14600 * config/microblaze/microblaze.c : Likewise.
14601 * config/mips/mips.c : Likewise.
14602 * config/mmix/mmix.c : Likewise.
14603 * config/mn10300/mn10300.c : Likewise.
14604 * config/moxie/moxie.c : Likewise.
14605 * config/msp430/msp430-c.c : Likewise.
14606 * config/msp430/msp430.c : Likewise.
14607 * config/nds32/nds32-cost.c : Likewise.
14608 * config/nds32/nds32-fp-as-gp.c : Likewise.
14609 * config/nds32/nds32-intrinsic.c : Likewise.
14610 * config/nds32/nds32-isr.c : Likewise.
14611 * config/nds32/nds32-md-auxiliary.c : Likewise.
14612 * config/nds32/nds32-memory-manipulation.c : Likewise.
14613 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
14614 * config/nds32/nds32-predicates.c : Likewise.
14615 * config/nds32/nds32.c : Likewise.
14616 * config/nios2/nios2.c : Likewise.
14617 * config/nvptx/nvptx.c : Likewise.
14618 * config/pa/pa.c : Likewise.
14619 * config/pdp11/pdp11.c : Likewise.
14620 * config/rl78/rl78-c.c : Likewise.
14621 * config/rl78/rl78.c : Likewise.
14622 * config/rs6000/rs6000-c.c : Likewise.
14623 * config/rs6000/rs6000.c : Likewise.
14624 * config/rx/rx.c : Likewise.
14625 * config/s390/s390-c.c : Likewise.
14626 * config/s390/s390.c : Likewise.
14627 * config/sh/sh-c.c : Likewise.
14628 * config/sh/sh-mem.cc : Likewise.
14629 * config/sh/sh.c : Likewise.
14630 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
14631 * config/sh/sh_treg_combine.cc : Likewise.
14632 * config/sol2-c.c : Likewise.
14633 * config/sol2-cxx.c : Likewise.
14634 * config/sol2-stubs.c : Likewise.
14635 * config/sol2.c : Likewise.
14636 * config/sparc/sparc-c.c : Likewise.
14637 * config/sparc/sparc.c : Likewise.
14638 * config/spu/spu-c.c : Likewise.
14639 * config/spu/spu.c : Likewise.
14640 * config/stormy16/stormy16.c : Likewise.
14641 * config/tilegx/mul-tables.c : Likewise.
14642 * config/tilegx/tilegx-c.c : Likewise.
14643 * config/tilegx/tilegx.c : Likewise.
14644 * config/tilepro/mul-tables.c : Likewise.
14645 * config/tilepro/tilepro-c.c : Likewise.
14646 * config/tilepro/tilepro.c : Likewise.
14647 * config/v850/v850-c.c : Likewise.
14648 * config/v850/v850.c : Likewise.
14649 * config/vax/vax.c : Likewise.
14650 * config/visium/visium.c : Likewise.
14651 * config/vms/vms-c.c : Likewise.
14652 * config/vms/vms.c : Likewise.
14653 * config/vxworks.c : Likewise.
14654 * config/winnt-c.c : Likewise.
14655 * config/xtensa/xtensa.c : Likewise.
14657 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14660 * ipa-utils.h (warn_types_mismatch): Update prototype.
14661 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
14663 (type_mismatch_p): New function.
14664 (warn_types_mismatch): Reorg to work better on non-C++ types.
14665 (odr_types_equivalent_p): Add loc1/loc2 parameters.
14666 (add_type_duplicate): Update.
14668 2015-06-08 Tom de Vries <tom@codesourcery.com>
14670 PR rtl-optimization/66444
14671 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
14674 2015-06-08 Richard Biener <rguenther@suse.de>
14676 PR tree-optimization/66422
14677 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
14678 block after inserted gcc_unreachable.
14680 2015-06-08 Nick Clifton <nickc@redhat.com>
14682 * config/rx/rx.c (rx_function_value): Do not promote vector types.
14683 (rx_promote_function_mode): Likewise.
14684 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
14686 2015-06-08 Jakub Jelinek <jakub@redhat.com>
14688 * genattrtab.c (insn_alternatives): Change type from int *
14690 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
14691 (get_attr_value): Change type of num_alt to uint64_t.
14692 (compute_alternative_mask): Change return type from
14693 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
14694 (make_alternative_compare, mk_attr_alt): Change argument type
14695 from int to uint64_t.
14696 (simplify_test_exp): Change type of i from int to uint64_t.
14697 Shift ((uint64_t) 1) instead of 1 up.
14698 (main): Adjust oballocvec first argument from int to uint64_t.
14699 Shift ((uint64_t) 1) instead of 1 up.
14701 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14704 * gdbhooks.py: Import sys.
14705 (intptr): New function. Replace int(...) by intptr(...).
14707 2015-06-08 Richard Biener <rguenther@suse.de>
14709 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
14710 adjustment for gaps at the end of a SLP load group properly.
14711 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
14712 all permutations we can generate.
14713 (vect_transform_slp_perm_load): Use the correct group-size.
14715 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
14717 * genmatch.c (expr::gen_transform): For conditions, guess the type
14718 from the second operand.
14720 2015-06-08 Tom de Vries <tom@codesourcery.com>
14722 PR tree-optimization/66442
14723 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
14724 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
14725 if the loop latch is not a singleton. Use
14726 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
14728 2015-06-08 Marek Polacek <polacek@redhat.com>
14731 * toplev.c (check_global_declaration): Don't warn about artificial
14734 2015-06-08 Tom de Vries <tom@codesourcery.com>
14736 PR tree-optimization/66436
14737 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
14739 * gimplify.c: Add tree-dump.h include.
14740 (gimplify_function_tree): Dump function to gimple dump file.
14741 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
14744 2015-06-08 Tom de Vries <tom@codesourcery.com>
14746 PR tree-optimization/66435
14747 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
14750 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
14752 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
14753 of ptr_type_node to not be ptr_to_node.
14754 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
14755 TREE_TYPE of pointers.
14756 * gimple-expr.c (useless_type_conversion): Reorder the check for
14757 function pointers and TYPE_CANONICAL.
14759 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
14762 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
14763 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
14764 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
14766 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
14767 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
14768 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
14769 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
14770 and non iso if unix2003.
14772 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
14774 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
14776 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
14778 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
14779 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
14780 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
14781 except.c, final.c, function.c, gcse-common.c, genemit.c,
14782 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
14783 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
14784 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
14785 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
14788 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
14790 * combine.c (combine_split_insns): Remove cast.
14791 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
14792 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
14793 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
14794 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
14795 * genemit.c (gen_split): Change return type of generated functions to
14797 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
14798 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
14799 gen_peephole2_* functions.
14800 (print_subroutine, main): Likewise.
14801 * recog.c (peephole2_optimize): Remove cast.
14802 (peep2_next_insn): Promote return type to rtx_insn.
14803 * recog.h (peep2_next_insn): Fix prototype.
14804 * rtl.h (try_split, split_insns): Likewise.
14806 2015-06-06 DJ Delorie <dj@redhat.com>
14808 * config/msp430/msp430.c (msp430_asm_integer): Support addition
14809 and subtraction too.
14811 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
14814 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
14815 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
14816 instead of Snd. Disparage Sid/z alternative with '^'.
14818 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
14820 * dwarf2out.c: Remove deferred_locations*.
14821 (dwarf2_debug_hooks): Add early_finish hook.
14822 Remove global_decl hook.
14823 Add early_global_decl and late_global_decl hook.
14824 New global early_dwarf.
14825 New structure set_early_dwarf.
14826 (output_die): Indicate whether a DIE was generated early
14827 when generating assembly with -dA.
14828 (struct limbo_die_struct): Document created_for field.
14829 Remove file_table_last_lookup.
14830 (remove_AT): Return TRUE if successful.
14831 (remove_child_TAG): Clear die_parent.
14832 (reparent_child): New function abstracted from...
14833 (splice_child_die): ...here.
14834 (new_die): ICE if a DIE ends up in limbo too late.
14836 (defer_location): Remove.
14837 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
14838 (fill_variable_array_bounds): New.
14839 (decl_start_label): Call fill_variable_array_bounds.
14840 (gen_formal_parameter_die): Rewrite to reuse previously generated
14842 (gen_subprogram_die): Same.
14843 (gen_variable_die): Same.
14844 (gen_const_die): Same.
14845 (gen_label_die): Same.
14846 (gen_lexical_block_die): Same.
14847 (decl_will_get_specification_p): New.
14848 (local_function_static): New.
14849 (gen_struct_or_union_type_die): Fill in variable-length fields.
14850 (gen_typedef_die): Fill in variable-length typedefs.
14851 (gen_tagged_type_die): Gracefully return on error_mark_node.
14852 Handle re-entrancy.
14853 (gen_type_die_with_usage): Handle variable-length types.
14854 Remove duplicate code for ARRAY_TYPE case.
14855 (process_scope_var): Only process imported modules during early
14857 (dwarf2out_early_global_decl): New.
14858 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
14859 (dwarf2out_type_decl): Set early_dwarf while calling
14861 (dwarf2out_decl): Verify that we did not recreate a previously
14863 Do not return on DECL_EXTERNALs in VAR_DECLs.
14864 Abstract some code to local_function_static.
14865 (lookup_filename): Remove use of file_table_last_lookup.
14866 Gracefully exit on missing file_name.
14867 (dwarf2out_finish): Verify limbo list.
14868 Remove deferred_locations_list use.
14869 Move deferred_asm_name and limbo flushing to...
14870 (dwarf2out_early_finish): ...here. New.
14871 (dwarf2out_c_finalize): Remove set of deferred_location_list,
14872 deferred_asm_name, and file_table_last_lookup.
14873 * cgraph.h (referred_to_p): Add default argument.
14874 * cgraphunit.c (referred_to_p): Add and handle include_self
14876 (analyze_functions): Add first_time argument.
14877 Call check_global_declaration for all symbols.
14878 Call late_global_decl for nodes for moribund nodes.
14879 (finalize_compilation_unit): Add new argument to
14881 Call early_global_decl for functions.
14882 Call early_finish debug hook.
14883 * dbxout.c (dbxout_early_global_decl): New.
14884 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
14885 (dbx_debug_hooks): Add new hooks.
14886 (xcoff_debug_hooks): Same.
14887 * debug.c (do_nothing_debug_hooks): Add early_finish field.
14888 Add early and late debug hooks.
14889 Remove global_decl hook.
14890 * debug.h (struct gcc_debug_hooks): Add early_finish,
14891 early_global_decl, and late_global_decl fields.
14892 Remove global_decl field.
14893 Document gcc_debug_hooks.
14894 * gengtype.c (output_typename): Remove.
14895 * godump.c (go_early_global_decl): New.
14896 (go_late_global_decl): New.
14897 (go_global_decl): Remove.
14898 (dump_go_spec_init): Remove global_decl. Add
14899 {early,late}_global_decl.
14900 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
14901 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
14902 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
14903 (write_global_declarations): Remove.
14904 (global_decl_processing): New.
14905 * langhooks.h (struct lang_hooks_for_decls): Remove
14906 final_write_globals field.
14907 Add post_compilation_parsing_cleanups field.
14908 * passes.c (rest_of_decl_compilation): Call early_global_decl.
14909 * sdbout.c: Add early and late_global_decl hooks. Remove
14910 sdbout_global_decl hook.
14911 Add early_finish field for sdb_debug_hooks.
14912 (sdbout_global_decl): Remove.
14913 (sdbout_early_global_decl): New.
14914 (sdbout_late_global_decl): New.
14915 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
14916 * toplev.c (check_global_declaration): Rename from
14917 check_global_declaration_1.
14918 Adapt to use symtab infrastructure.
14919 (check_global_declarations): Remove.
14920 (emit_debug_global_declarations): Remove.
14921 (compile_file): Remove call to final_write_globals langhook.
14922 Run the actual compilation process.
14923 Perform any post compilation parser cleanups.
14924 Generate late debug info.
14925 * toplev.h (check_global_declaration): New.
14926 (check_global_declaration_1): Remove.
14927 (check_global_declarations): Remove.
14928 (write_global_declarations): Remove.
14929 (emit_debug_global_declarations): Remove.
14930 (global_decl_processing): New.
14931 * tree-core.h (struct tree_block): Add DIE field.
14932 * tree.h (BLOCK_DIE): New.
14933 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
14935 (vmsdbgout_early_global_decl): New.
14936 (vmsdbgout_late_global_decl): New.
14937 Add early_finish debug hook field to vmsdbg_debug_hooks.
14938 Remove vmsdbgout_decl to vmsdbgout_function_decl.
14939 Add early and late_global_decl debug hooks.
14941 2015-06-05 Julian Brown <julian@codesourcery.com>
14942 Sandra Loosemore <sandra@codesourcery.com>
14944 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
14945 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
14946 to print-sysroot-suffix.sh script.
14948 2015-06-05 Tom de Vries <tom@codesourcery.com>
14950 merge from gomp4 branch:
14951 2015-05-28 Tom de Vries <tom@codesourcery.com>
14953 PR tree-optimization/65443
14954 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
14955 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
14956 (try_transform_to_exit_first_loop_alt): New function.
14957 (transform_to_exit_first_loop): Use
14958 try_transform_to_exit_first_loop_alt.
14960 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
14962 * builtins.c (expand_builtin_atomic_compare_exchange): Call
14963 emit_cmp_and_jump_insns with the mode of target.
14965 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14967 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
14969 2015-06-04 DJ Delorie <dj@redhat.com>
14971 * config/msp430/msp430.md (movsi_s): New. Special case for
14972 storing a 20-bit symbol into a 32-bit register.
14973 * config/msp430/msp430.c (msp430_subreg): Add support for it.
14974 * config/msp430/predicates.md (msp430_symbol_operand): New.
14976 2015-06-04 Sriraman Tallam <tmsriram@google.com>
14978 * c-family/c-common.c (noplt): New attribute.
14979 (handle_noplt_attribute): New handler.
14980 * calls.c (prepare_call_address): Check for noplt
14982 * config/i386/i386.c (ix86_expand_call): Check
14983 for noplt attribute.
14984 (ix86_nopic_noplt_attribute_p): New function.
14985 (ix86_output_call_insn): Output indirect call for non-pic
14987 * doc/extend.texi (noplt): Document new attribute.
14988 * doc/invoke.texi: Document new attribute.
14990 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
14992 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
14993 real.h, and fixed-value.h when included in host source files.
14994 * double-int.h: Remove redundant #includes listed above.
14995 * fixed-value.h: Likewise.
14996 * real.h: Likewise.
14997 * wide-int.h: Likewise.
14998 * inchash.h: Likewise.
14999 * rtl.h: Add some include files When included from a generator file.
15000 * target.h: Remove wide-int.h and insn-modes.h from the include list.
15001 * internal-fn.h: Don't include coretypes.h.
15002 * alias.c: Adjust includes for restructured coretypes.h.
15003 * asan.c: Likewise.
15004 * attribs.c: Likewise.
15005 * auto-inc-dec.c: Likewise.
15006 * auto-profile.c: Likewise.
15007 * bb-reorder.c: Likewise.
15008 * bt-load.c: Likewise.
15009 * builtins.c: Likewise.
15010 * caller-save.c: Likewise.
15011 * calls.c: Likewise.
15012 * ccmp.c: Likewise.
15014 * cfganal.c: Likewise.
15015 * cfgbuild.c: Likewise.
15016 * cfgcleanup.c: Likewise.
15017 * cfgexpand.c: Likewise.
15018 * cfghooks.c: Likewise.
15019 * cfgloop.c: Likewise.
15020 * cfgloop.h: Likewise.
15021 * cfgloopanal.c: Likewise.
15022 * cfgloopmanip.c: Likewise.
15023 * cfgrtl.c: Likewise.
15024 * cgraph.c: Likewise.
15025 * cgraphbuild.c: Likewise.
15026 * cgraphclones.c: Likewise.
15027 * cgraphunit.c: Likewise.
15028 * cilk-common.c: Likewise.
15029 * combine-stack-adj.c: Likewise.
15030 * combine.c: Likewise.
15031 * compare-elim.c: Likewise.
15032 * convert.c: Likewise.
15033 * coverage.c: Likewise.
15034 * cppbuiltin.c: Likewise.
15035 * cprop.c: Likewise.
15037 * cselib.c: Likewise.
15038 * data-streamer-in.c: Likewise.
15039 * data-streamer-out.c: Likewise.
15040 * data-streamer.c: Likewise.
15041 * dbxout.c: Likewise.
15044 * debug.c: Likewise.
15045 * df-core.c: Likewise.
15046 * df-problems.c: Likewise.
15047 * df-scan.c: Likewise.
15050 * dojump.c: Likewise.
15051 * dominance.c: Likewise.
15052 * domwalk.c: Likewise.
15053 * double-int.c: Likewise.
15055 * dumpfile.c: Likewise.
15056 * dwarf2asm.c: Likewise.
15057 * dwarf2cfi.c: Likewise.
15058 * dwarf2out.c: Likewise.
15059 * dwarf2out.h: Likewise.
15060 * emit-rtl.c: Likewise.
15061 * et-forest.c: Likewise.
15062 * except.c: Likewise.
15063 * explow.c: Likewise.
15064 * expmed.c: Likewise.
15065 * expr.c: Likewise.
15066 * final.c: Likewise.
15067 * fixed-value.c: Likewise.
15068 * fold-const.c: Likewise.
15069 * function.c: Likewise.
15070 * fwprop.c: Likewise.
15071 * gcc-plugin.h: Likewise.
15072 * gcse.c: Likewise.
15073 * generic-match-head.c: Likewise.
15074 * ggc-page.c: Likewise.
15075 * gimple-builder.c: Likewise.
15076 * gimple-expr.c: Likewise.
15077 * gimple-fold.c: Likewise.
15078 * gimple-iterator.c: Likewise.
15079 * gimple-low.c: Likewise.
15080 * gimple-match-head.c: Likewise.
15081 * gimple-pretty-print.c: Likewise.
15082 * gimple-ssa-isolate-paths.c: Likewise.
15083 * gimple-ssa-strength-reduction.c: Likewise.
15084 * gimple-streamer-in.c: Likewise.
15085 * gimple-streamer-out.c: Likewise.
15086 * gimple-streamer.h: Likewise.
15087 * gimple-walk.c: Likewise.
15088 * gimple.c: Likewise.
15089 * gimplify-me.c: Likewise.
15090 * gimplify.c: Likewise.
15091 * godump.c: Likewise.
15092 * graph.c: Likewise.
15093 * graphite-blocking.c: Likewise.
15094 * graphite-dependences.c: Likewise.
15095 * graphite-interchange.c: Likewise.
15096 * graphite-isl-ast-to-gimple.c: Likewise.
15097 * graphite-optimize-isl.c: Likewise.
15098 * graphite-poly.c: Likewise.
15099 * graphite-scop-detection.c: Likewise.
15100 * graphite-sese-to-poly.c: Likewise.
15101 * graphite.c: Likewise.
15102 * haifa-sched.c: Likewise.
15103 * hooks.h: Likewise.
15104 * hw-doloop.c: Likewise.
15105 * ifcvt.c: Likewise.
15106 * incpath.c: Likewise.
15107 * init-regs.c: Likewise.
15108 * internal-fn.c: Likewise.
15109 * ipa-chkp.c: Likewise.
15110 * ipa-comdats.c: Likewise.
15111 * ipa-cp.c: Likewise.
15112 * ipa-devirt.c: Likewise.
15113 * ipa-icf-gimple.c: Likewise.
15114 * ipa-icf.c: Likewise.
15115 * ipa-inline-analysis.c: Likewise.
15116 * ipa-inline-transform.c: Likewise.
15117 * ipa-inline.c: Likewise.
15118 * ipa-polymorphic-call.c: Likewise.
15119 * ipa-profile.c: Likewise.
15120 * ipa-prop.c: Likewise.
15121 * ipa-pure-const.c: Likewise.
15122 * ipa-ref.c: Likewise.
15123 * ipa-reference.c: Likewise.
15124 * ipa-split.c: Likewise.
15125 * ipa-utils.c: Likewise.
15126 * ipa-visibility.c: Likewise.
15128 * ira-build.c: Likewise.
15129 * ira-color.c: Likewise.
15130 * ira-conflicts.c: Likewise.
15131 * ira-costs.c: Likewise.
15132 * ira-emit.c: Likewise.
15133 * ira-lives.c: Likewise.
15135 * jump.c: Likewise.
15136 * langhooks.c: Likewise.
15138 * loop-doloop.c: Likewise.
15139 * loop-init.c: Likewise.
15140 * loop-invariant.c: Likewise.
15141 * loop-iv.c: Likewise.
15142 * loop-unroll.c: Likewise.
15143 * lower-subreg.c: Likewise.
15144 * lra-assigns.c: Likewise.
15145 * lra-coalesce.c: Likewise.
15146 * lra-constraints.c: Likewise.
15147 * lra-eliminations.c: Likewise.
15148 * lra-lives.c: Likewise.
15149 * lra-remat.c: Likewise.
15150 * lra-spills.c: Likewise.
15152 * lto-cgraph.c: Likewise.
15153 * lto-compress.c: Likewise.
15154 * lto-opts.c: Likewise.
15155 * lto-section-in.c: Likewise.
15156 * lto-section-out.c: Likewise.
15157 * lto-streamer-in.c: Likewise.
15158 * lto-streamer-out.c: Likewise.
15159 * lto-streamer.c: Likewise.
15161 * mode-switching.c: Likewise.
15162 * modulo-sched.c: Likewise.
15163 * omega.c: Likewise.
15164 * omp-low.c: Likewise.
15165 * optabs.c: Likewise.
15166 * opts-global.c: Likewise.
15167 * passes.c: Likewise.
15168 * plugin.c: Likewise.
15169 * postreload-gcse.c: Likewise.
15170 * postreload.c: Likewise.
15171 * predict.c: Likewise.
15172 * print-rtl.c: Likewise.
15173 * print-tree.c: Likewise.
15174 * profile.c: Likewise.
15175 * real.c: Likewise.
15176 * realmpfr.c: Likewise.
15177 * realmpfr.h: Likewise.
15178 * recog.c: Likewise.
15180 * reg-stack.c: Likewise.
15181 * regcprop.c: Likewise.
15182 * reginfo.c: Likewise.
15183 * regrename.c: Likewise.
15184 * regs.h: Likewise.
15185 * regstat.c: Likewise.
15186 * reload.c: Likewise.
15187 * reload1.c: Likewise.
15188 * reorg.c: Likewise.
15189 * resource.c: Likewise.
15190 * rtl-chkp.c: Likewise.
15191 * rtlanal.c: Likewise.
15192 * rtlhooks.c: Likewise.
15193 * sanopt.c: Likewise.
15194 * sched-deps.c: Likewise.
15195 * sched-ebb.c: Likewise.
15196 * sched-rgn.c: Likewise.
15197 * sched-vis.c: Likewise.
15198 * sdbout.c: Likewise.
15199 * sel-sched-dump.c: Likewise.
15200 * sel-sched-ir.c: Likewise.
15201 * sel-sched.c: Likewise.
15202 * sese.c: Likewise.
15203 * shrink-wrap.c: Likewise.
15204 * shrink-wrap.h: Likewise.
15205 * simplify-rtx.c: Likewise.
15206 * stack-ptr-mod.c: Likewise.
15207 * statistics.c: Likewise.
15208 * stmt.c: Likewise.
15209 * stor-layout.c: Likewise.
15210 * store-motion.c: Likewise.
15211 * stringpool.c: Likewise.
15212 * symtab.c: Likewise.
15213 * target-globals.c: Likewise.
15214 * targhooks.c: Likewise.
15215 * toplev.c: Likewise.
15216 * tracer.c: Likewise.
15217 * trans-mem.c: Likewise.
15218 * tree-affine.c: Likewise.
15219 * tree-affine.h: Likewise.
15220 * tree-browser.c: Likewise.
15221 * tree-call-cdce.c: Likewise.
15222 * tree-cfg.c: Likewise.
15223 * tree-cfgcleanup.c: Likewise.
15224 * tree-chkp-opt.c: Likewise.
15225 * tree-chkp.c: Likewise.
15226 * tree-chrec.c: Likewise.
15227 * tree-complex.c: Likewise.
15228 * tree-data-ref.c: Likewise.
15229 * tree-dfa.c: Likewise.
15230 * tree-diagnostic.c: Likewise.
15231 * tree-dump.c: Likewise.
15232 * tree-eh.c: Likewise.
15233 * tree-emutls.c: Likewise.
15234 * tree-if-conv.c: Likewise.
15235 * tree-inline.c: Likewise.
15236 * tree-into-ssa.c: Likewise.
15237 * tree-iterator.c: Likewise.
15238 * tree-loop-distribution.c: Likewise.
15239 * tree-nested.c: Likewise.
15240 * tree-nrv.c: Likewise.
15241 * tree-object-size.c: Likewise.
15242 * tree-outof-ssa.c: Likewise.
15243 * tree-parloops.c: Likewise.
15244 * tree-phinodes.c: Likewise.
15245 * tree-predcom.c: Likewise.
15246 * tree-pretty-print.c: Likewise.
15247 * tree-pretty-print.h: Likewise.
15248 * tree-profile.c: Likewise.
15249 * tree-scalar-evolution.c: Likewise.
15250 * tree-sra.c: Likewise.
15251 * tree-ssa-address.c: Likewise.
15252 * tree-ssa-alias.c: Likewise.
15253 * tree-ssa-ccp.c: Likewise.
15254 * tree-ssa-coalesce.c: Likewise.
15255 * tree-ssa-copy.c: Likewise.
15256 * tree-ssa-copyrename.c: Likewise.
15257 * tree-ssa-dce.c: Likewise.
15258 * tree-ssa-dom.c: Likewise.
15259 * tree-ssa-dse.c: Likewise.
15260 * tree-ssa-forwprop.c: Likewise.
15261 * tree-ssa-ifcombine.c: Likewise.
15262 * tree-ssa-live.c: Likewise.
15263 * tree-ssa-loop-ch.c: Likewise.
15264 * tree-ssa-loop-im.c: Likewise.
15265 * tree-ssa-loop-ivcanon.c: Likewise.
15266 * tree-ssa-loop-ivopts.c: Likewise.
15267 * tree-ssa-loop-manip.c: Likewise.
15268 * tree-ssa-loop-niter.c: Likewise.
15269 * tree-ssa-loop-prefetch.c: Likewise.
15270 * tree-ssa-loop-unswitch.c: Likewise.
15271 * tree-ssa-loop.c: Likewise.
15272 * tree-ssa-loop.h: Likewise.
15273 * tree-ssa-math-opts.c: Likewise.
15274 * tree-ssa-operands.c: Likewise.
15275 * tree-ssa-phiopt.c: Likewise.
15276 * tree-ssa-phiprop.c: Likewise.
15277 * tree-ssa-pre.c: Likewise.
15278 * tree-ssa-propagate.c: Likewise.
15279 * tree-ssa-reassoc.c: Likewise.
15280 * tree-ssa-sccvn.c: Likewise.
15281 * tree-ssa-scopedtables.c: Likewise.
15282 * tree-ssa-sink.c: Likewise.
15283 * tree-ssa-strlen.c: Likewise.
15284 * tree-ssa-structalias.c: Likewise.
15285 * tree-ssa-tail-merge.c: Likewise.
15286 * tree-ssa-ter.c: Likewise.
15287 * tree-ssa-threadedge.c: Likewise.
15288 * tree-ssa-threadupdate.c: Likewise.
15289 * tree-ssa-uncprop.c: Likewise.
15290 * tree-ssa-uninit.c: Likewise.
15291 * tree-ssa.c: Likewise.
15292 * tree-ssanames.c: Likewise.
15293 * tree-stdarg.c: Likewise.
15294 * tree-streamer-in.c: Likewise.
15295 * tree-streamer-out.c: Likewise.
15296 * tree-streamer.c: Likewise.
15297 * tree-switch-conversion.c: Likewise.
15298 * tree-tailcall.c: Likewise.
15299 * tree-vect-data-refs.c: Likewise.
15300 * tree-vect-generic.c: Likewise.
15301 * tree-vect-loop-manip.c: Likewise.
15302 * tree-vect-loop.c: Likewise.
15303 * tree-vect-patterns.c: Likewise.
15304 * tree-vect-slp.c: Likewise.
15305 * tree-vect-stmts.c: Likewise.
15306 * tree-vectorizer.c: Likewise.
15307 * tree-vrp.c: Likewise.
15308 * tree.c: Likewise.
15309 * tsan.c: Likewise.
15310 * ubsan.c: Likewise.
15311 * valtrack.c: Likewise.
15312 * value-prof.c: Likewise.
15313 * var-tracking.c: Likewise.
15314 * varasm.c: Likewise.
15315 * varpool.c: Likewise.
15316 * vmsdbgout.c: Likewise.
15317 * vtable-verify.c: Likewise.
15319 * wide-int-print.cc: Likewise.
15320 * wide-int-print.h: Likewise.
15321 * wide-int.cc: Likewise.
15322 * xcoffout.c: Likewise.
15323 * config/aarch64/aarch64-builtins.c: Likewise.
15324 * config/aarch64/aarch64.c: Likewise.
15325 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15326 * config/alpha/alpha.c: Likewise.
15327 * config/arc/arc.c: Likewise.
15328 * config/arm/aarch-common.c: Likewise.
15329 * config/arm/arm-builtins.c: Likewise.
15330 * config/arm/arm-c.c: Likewise.
15331 * config/arm/arm.c: Likewise.
15332 * config/avr/avr-c.c: Likewise.
15333 * config/avr/avr-log.c: Likewise.
15334 * config/avr/avr.c: Likewise.
15335 * config/bfin/bfin.c: Likewise.
15336 * config/c6x/c6x.c: Likewise.
15337 * config/cr16/cr16.c: Likewise.
15338 * config/cris/cris.c: Likewise.
15339 * config/darwin-c.c: Likewise.
15340 * config/darwin.c: Likewise.
15341 * config/default-c.c: Likewise.
15342 * config/epiphany/epiphany.c: Likewise.
15343 * config/epiphany/mode-switch-use.c: Likewise.
15344 * config/epiphany/resolve-sw-modes.c: Likewise.
15345 * config/fr30/fr30.c: Likewise.
15346 * config/frv/frv.c: Likewise.
15347 * config/ft32/ft32.c: Likewise.
15348 * config/glibc-c.c: Likewise.
15349 * config/h8300/h8300.c: Likewise.
15350 * config/i386/i386-c.c: Likewise.
15351 * config/i386/i386.c: Likewise.
15352 * config/i386/msformat-c.c: Likewise.
15353 * config/i386/winnt-cxx.c: Likewise.
15354 * config/i386/winnt-stubs.c: Likewise.
15355 * config/i386/winnt.c: Likewise.
15356 * config/ia64/ia64-c.c: Likewise.
15357 * config/ia64/ia64.c: Likewise.
15358 * config/iq2000/iq2000.c: Likewise.
15359 * config/lm32/lm32.c: Likewise.
15360 * config/m32c/m32c-pragma.c: Likewise.
15361 * config/m32c/m32c.c: Likewise.
15362 * config/m32r/m32r.c: Likewise.
15363 * config/m68k/m68k.c: Likewise.
15364 * config/mcore/mcore.c: Likewise.
15365 * config/mep/mep-pragma.c: Likewise.
15366 * config/mep/mep.c: Likewise.
15367 * config/microblaze/microblaze-c.c: Likewise.
15368 * config/microblaze/microblaze.c: Likewise.
15369 * config/mips/mips.c: Likewise.
15370 * config/mmix/mmix.c: Likewise.
15371 * config/mn10300/mn10300.c: Likewise.
15372 * config/moxie/moxie.c: Likewise.
15373 * config/msp430/msp430-c.c: Likewise.
15374 * config/msp430/msp430.c: Likewise.
15375 * config/nds32/nds32-cost.c: Likewise.
15376 * config/nds32/nds32-fp-as-gp.c: Likewise.
15377 * config/nds32/nds32-intrinsic.c: Likewise.
15378 * config/nds32/nds32-isr.c: Likewise.
15379 * config/nds32/nds32-md-auxiliary.c: Likewise.
15380 * config/nds32/nds32-memory-manipulation.c: Likewise.
15381 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15382 * config/nds32/nds32-predicates.c: Likewise.
15383 * config/nds32/nds32.c: Likewise.
15384 * config/nios2/nios2.c: Likewise.
15385 * config/nvptx/nvptx.c: Likewise.
15386 * config/pa/pa.c: Likewise.
15387 * config/pdp11/pdp11.c: Likewise.
15388 * config/rl78/rl78-c.c: Likewise.
15389 * config/rl78/rl78.c: Likewise.
15390 * config/rs6000/rs6000-c.c: Likewise.
15391 * config/rs6000/rs6000.c: Likewise.
15392 * config/rx/rx.c: Likewise.
15393 * config/s390/s390-c.c: Likewise.
15394 * config/s390/s390.c: Likewise.
15395 * config/sh/sh-c.c: Likewise.
15396 * config/sh/sh-mem.cc: Likewise.
15397 * config/sh/sh.c: Likewise.
15398 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15399 * config/sh/sh_treg_combine.cc: Likewise.
15400 * config/sol2-c.c: Likewise.
15401 * config/sol2-cxx.c: Likewise.
15402 * config/sol2-stubs.c: Likewise.
15403 * config/sol2.c: Likewise.
15404 * config/sparc/sparc-c.c: Likewise.
15405 * config/sparc/sparc.c: Likewise.
15406 * config/spu/spu-c.c: Likewise.
15407 * config/spu/spu.c: Likewise.
15408 * config/stormy16/stormy16.c: Likewise.
15409 * config/tilegx/mul-tables.c: Likewise.
15410 * config/tilegx/tilegx-c.c: Likewise.
15411 * config/tilegx/tilegx.c: Likewise.
15412 * config/tilepro/mul-tables.c: Likewise.
15413 * config/tilepro/tilepro-c.c: Likewise.
15414 * config/tilepro/tilepro.c: Likewise.
15415 * config/v850/v850-c.c: Likewise.
15416 * config/v850/v850.c: Likewise.
15417 * config/vax/vax.c: Likewise.
15418 * config/visium/visium.c: Likewise.
15419 * config/vms/vms-c.c: Likewise.
15420 * config/vms/vms.c: Likewise.
15421 * config/vxworks.c: Likewise.
15422 * config/winnt-c.c: Likewise.
15423 * config/xtensa/xtensa.c: Likewise.
15424 * common/config/bfin/bfin-common.c: Likewise.
15426 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
15428 * tree.h (tree_code_for_canonical_type_merging): New function.
15429 * tree.c (gimple_canonical_types_compatible_p): Use
15430 tree_code_for_canonical_type_merging..
15432 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15436 * doc/tm.texi: Regenerate.
15437 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
15438 * target.def (TARGET_RELAXED_ORDERING): Likewise.
15439 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
15440 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
15441 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
15442 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
15443 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
15444 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
15445 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
15447 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15449 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
15450 register fma steering pass.
15451 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
15452 AARCH64_TUNE_FMA_STEERING.
15454 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
15456 * tree.c (verify_type_variant): Verify that type and variant is
15458 (gimple_canonical_types_compatible_p): Look for main variants.
15460 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15462 * config.gcc (powerpc*-*-*): Add support for a new configure
15463 option --with-advance-toolchain=<xxx> which overrides using the
15464 default header files, libraries and dynamic linker.
15466 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
15467 specs to support the configure --with-advance-toolchain=<xxx>
15469 (INCLUDE_EXTRA_SPEC): Likewise.
15470 (LINK_OS_EXTRA_SPEC32): Likewise.
15471 (LINK_OK_EXTRA_SPEC64): Likewise.
15472 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
15473 (DYNAMIC_LINKER_PREFIX): Likewise.
15474 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
15476 (GLIBC_DYNAMIC_LINKER32): Likewise.
15477 (GLIBC_DYNAMIC_LINKER64): Likewise.
15478 (LINK_OS_LINUX_SPEC32): Likewise.
15479 (LINK_OS_LINUX_SPEC64): Likewise.
15481 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
15482 configuration option.
15484 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
15487 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
15488 to determine current function ABI.
15489 (ix86_function_value_regno_p): Ditto.
15491 2015-06-03 Martin Liska <mliska@suse.cz>
15493 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
15494 * bitmap.h (struct bitmap_usage): Likewise.
15495 * ggc-common.c (struct ggc_usage): Likewise.
15496 * mem-stats.h (struct mem_location): Likewise.
15497 (struct mem_usage): Likewise.
15498 * vec.c (struct vec_usage): Likewise.
15500 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
15502 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
15505 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
15507 * doc/plugins.texi (enum plugin_event): New event.
15508 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
15509 and PLUGIN_FINISH_FUNCTION.
15510 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
15511 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
15513 2015-06-03 Richard Biener <rguenther@suse.de>
15515 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
15516 compute GROUP_GAP for the first element.
15517 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
15520 2015-06-03 Nick Clifton <nickc@redhat.com>
15522 * config/rl78/rl78-real.md: Add peepholes to avoid a register
15523 copy when calling a function.
15524 * config/rl78/rl78.c (need_to_save): Do not push the frame
15525 pointer in an interrupt handler prologue if it is never used.
15527 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15529 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
15531 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15533 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
15534 reference when cloning alias node.
15536 2015-06-03 Martin Liska <mliska@suse.cz>
15538 * alloc-pool.h (struct pool_usage): Correct space padding.
15539 * ggc-page.c (ggc_print_statistics): Align columns in a report.
15540 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
15541 * tree.c (dump_tree_statistics): Align columns in a report.
15543 2015-06-03 Martin Liska <mliska@suse.cz>
15545 * alloc-pool.c (allocate_pool_descriptor): Remove.
15546 (struct pool_output_info): Likewise.
15547 (print_alloc_pool_statistics): Likewise.
15548 (dump_alloc_pool_statistics): Likewise.
15549 * alloc-pool.h (struct pool_usage): New struct.
15550 (pool_allocator::initialize): Change usage of memory statistics
15551 to a new interface.
15552 (pool_allocator::release): Likewise.
15553 (pool_allocator::allocate): Likewise.
15554 (pool_allocator::remove): Likewise.
15555 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
15556 for a pool allocator.
15557 * mem-stats.h (struct mem_location): Add new ctor.
15558 (struct mem_usage): Add counter for number of
15560 (mem_alloc_description::register_descriptor): New overload of
15561 * mem-stats.h (mem_location::to_string): New function.
15562 * bitmap.h (struct bitmap_usage): Use this new function.
15563 * ggc-common.c (struct ggc_usage): Likewise.
15566 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15568 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
15569 of GCC_INSN_FLAGS_H block.
15571 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
15573 * explow.c (plus_constant): Update check after force_const_mem call
15574 to see if the value returned is not a NULL_RTX.
15576 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15578 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
15579 remove instumentation thunks calling reachable functions.
15580 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
15581 * lto/lto-partition.c (privatize_symbol_name_1): New.
15582 (privatize_symbol_name): Privatize both decl and orig_decl
15583 names for instrumented functions.
15584 * cgraph.c (cgraph_node::verify_node): Add transparent
15585 alias chain check for instrumented node.
15587 2015-06-03 Marek Polacek <polacek@redhat.com>
15591 * tree.c (attribute_value_equal): Handle attribute format.
15592 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
15594 2015-06-03 Richard Biener <rguenther@suse.de>
15596 PR tree-optimization/63916
15597 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15598 Forward-propagate non-invariant addresses by splicing their
15599 reference ops if the result isn't going to be used by PRE.
15600 (vn_reference_lookup_3): Remove pointless assert.
15602 2015-06-03 Richard Biener <rguenther@suse.de>
15604 PR tree-optimization/66375
15605 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
15606 add to the evolution before following SSA edges.
15608 2015-06-03 Bin Cheng <bin.cheng@arm.com>
15610 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
15611 (dump_use, dump_cand, find_induction_variables): Pass new argument
15613 (record_use): Preserve the ssa name information in IV.
15615 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15617 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
15619 (add_mode_tests): Don't add mode tests if the predicate only
15620 accepts scalar constant integers. Otherwise, allow the mode
15621 of "op" to be VOIDmode if the predicate does accept such integers.
15623 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
15626 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
15627 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
15628 (aarch64_secondary_reload): Likewise
15629 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
15631 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
15634 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
15635 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15638 * cprop.c (try_replace_reg): Check cost of constants before propagating.
15640 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15642 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
15643 provide access to the IBM extended double floating point mode if
15644 long double is IEEE 128-bit floating point.
15645 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
15646 point if long double is the IBM extended double type.
15648 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
15649 enable adding IEEE 128-bit floating point support.
15650 (-mfloat128-software): Likewise.
15651 (-mfloat128-sw): Likewise.
15653 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
15654 128-bit floating point types to occupy any register if
15655 -mlong-double-64. Do not allow use of IFmode/KFmode unless
15656 -mfloat128-software is enabled.
15657 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
15659 (rs6000_option_override_internal): Add -mfloat128-* support.
15660 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
15662 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
15663 and float128 type nodes.
15664 (ieee128_float_type_node): Likewise.
15665 (ibm128_float_type_node): Likewise.
15667 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15670 * config/aarch64/geniterators.sh: Rewrite in awk.
15672 2015-06-02 Martin Liska <mliska@suse.cz>
15674 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
15675 values to avoid -Wmaybe-uninitialized errors.
15677 2015-06-02 Richard Biener <rguenther@suse.de>
15680 * dwarf2out.c (lookup_context_die): New function.
15681 (resolve_addr): Avoid forcing a full DIE for the
15682 target of a DW_TAG_GNU_call_site during late compilation.
15683 Instead create a stub DIE without a type if we have a
15684 context DIE present.
15686 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
15688 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
15690 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15692 PR tree-optimization/48052
15693 * cfgloop.h (struct control_iv): New.
15694 (struct loop): New field control_ivs.
15695 * tree-ssa-loop-niter.c : Include "stor-layout.h".
15696 (number_of_iterations_lt): Set no_overflow information.
15697 (number_of_iterations_exit): Init control iv in niter struct.
15698 (record_control_iv): New.
15699 (estimate_numbers_of_iterations_loop): Call record_control_iv.
15700 (loop_exits_before_overflow): New. Interface factored out of
15701 scev_probably_wraps_p.
15702 (scev_probably_wraps_p): Factor loop niter related code into
15703 loop_exits_before_overflow.
15704 (free_numbers_of_iterations_estimates_loop): Free control ivs.
15705 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
15707 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
15709 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
15710 the target doesn't belong to the current function.
15712 2015-06-02 Marek Polacek <polacek@redhat.com>
15714 PR middle-end/66345
15715 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
15716 get_maxval_strlen does not produce an INTEGER_CST.
15718 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
15720 * config/arc/constraints.md: Use lower-case names in match_code.
15721 * config/mmix/constraints.md: Likewise.
15723 2015-06-02 Richard Biener <rguenther@suse.de>
15725 PR tree-optimization/65961
15726 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
15727 check and clarify dump message.
15728 (vect_build_slp_tree): If all children are built up from scalars
15729 build up the parent from scalars instead.
15730 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
15732 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
15735 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
15736 instead of print ... .
15738 2015-06-02 Alan Modra <amodra@gmail.com>
15740 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
15743 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15745 PR tree-optimization/52563
15746 PR tree-optimization/62173
15747 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
15748 (alloc_iv, set_iv): New parameter.
15749 (determine_biv_step): Delete.
15750 (find_bivs): Inline original determine_biv_step. Pass new
15751 argument to set_iv.
15752 (idx_find_step): Use no_overflow information for conversion.
15753 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
15754 resolve_mixers handle folded_casts.
15755 (instantiate_scev_name): Change bool parameter to bool pointer.
15756 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
15757 (instantiate_array_ref, instantiate_scev_not): Ditto.
15758 (instantiate_scev_3, instantiate_scev_2): Ditto.
15759 (instantiate_scev_1, instantiate_scev_r): Ditto.
15760 (instantiate_scev_convert, ): Change parameter. Pass argument
15761 to chrec_convert_aggressive.
15762 (instantiate_scev): Change argument.
15763 (resolve_mixers): New parameter and set it.
15764 (scev_const_prop): New argument.
15765 * tree-scalar-evolution.h (resolve_mixers): New parameter.
15766 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
15768 (chrec_convert): New parameter. Move definition below.
15769 (chrec_convert_aggressive): New parameter and set it. Call
15770 convert_affine_scev.
15771 * tree-chrec.h (chrec_convert): New parameter.
15772 (chrec_convert_aggressive): Ditto.
15774 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
15776 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
15777 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
15778 the LHS of a no-return call if its type has variable size.
15779 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
15780 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
15782 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
15784 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
15785 * config.in: Regenerate.
15787 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
15789 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
15790 consecutive accesses within outer-loop with force_vectorize
15791 for references with zero step in inner-loop.
15793 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15795 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
15796 rather than from gcc/build directory.
15798 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15801 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
15802 for __sync memory models, emit initial loads and final barriers as
15805 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15808 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
15809 (aarch64_split_atomic_op): Check for __sync memory models, emit
15810 appropriate initial loads and final barriers.
15812 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15814 * Makefile.in: Fix gcov dependencies that should
15815 not point to a build folder.
15817 2015-06-01 Richard Biener <rguenther@suse.de>
15820 2015-05-29 Richard Biener <rguenther@suse.de>
15822 PR tree-optimization/66314
15823 * tree-ssa-threadupdate.c (create_block_for_threading): Add
15824 parameter that says which loop the new block belongs to.
15825 (ssa_create_duplicates): Blocks duplicated for the threaded
15826 path belong to the loop of the thread destination.
15828 2015-06-01 Martin Liska <mliska@suse.cz>
15830 * sched-deps.c: Include pool-alloc.h before
15831 cselib.h header file is included.
15833 2015-06-01 Richard Biener <rguenther@suse.de>
15835 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
15838 2015-06-01 Martin Liska <mliska@suse.cz>
15840 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
15841 a function local variable.
15843 2015-06-01 Martin Liska <mliska@suse.cz>
15845 * alloc-pool.c (create_alloc_pool): Remove.
15846 (empty_alloc_pool): Likewise.
15847 (free_alloc_pool): Likewise.
15848 (free_alloc_pool_if_empty): Likewise.
15849 (pool_alloc): Likewise.
15850 (pool_free): Likewise.
15851 * alloc-pool.h: Remove old declarations.
15853 2015-06-01 Martin Liska <mliska@suse.cz>
15855 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
15856 (ira_create_object): Likewise.
15857 (ira_create_allocno): Likewise.
15858 (ira_create_live_range): Likewise.
15859 (copy_live_range): Likewise.
15860 (ira_finish_live_range): Likewise.
15861 (ira_free_allocno_costs): Likewise.
15862 (finish_allocno): Likewise.
15863 (finish_allocnos): Likewise.
15864 (initiate_prefs): Likewise.
15865 (ira_create_pref): Likewise.
15866 (finish_pref): Likewise.
15867 (finish_prefs): Likewise.
15868 (initiate_copies): Likewise.
15869 (ira_create_copy): Likewise.
15870 (finish_copy): Likewise.
15871 (finish_copies): Likewise.
15872 (finish_prefs): Likewise.
15874 2015-06-01 Martin Liska <mliska@suse.cz>
15876 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
15877 (allocate_and_init_ipcp_value): Likewise.
15878 (ipcp_lattice::add_value): Likewise.
15879 (merge_agg_lats_step): Likewise.
15880 (ipcp_driver): Likewise.
15881 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
15882 (ipa_free_all_structures_after_iinln): Likewise.
15883 * ipa-prop.h: Likewise.
15885 2015-06-01 Martin Liska <mliska@suse.cz>
15887 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
15889 (set_hint_predicate): Likewise.
15890 (inline_summary_alloc): Likewise.
15891 (reset_inline_edge_summary): Likewise.
15892 (reset_inline_summary): Likewise.
15893 (set_cond_stmt_execution_predicate): Likewise.
15894 (set_switch_stmt_execution_predicate): Likewise.
15895 (compute_bb_predicates): Likewise.
15896 (estimate_function_body_sizes): Likewise.
15897 (inline_free_summary): Likewise.
15899 2015-06-01 Martin Liska <mliska@suse.cz>
15901 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
15902 (ipa_edge_duplication_hook): Likewise.
15903 (ipa_free_all_structures_after_ipa_cp): Likewise.
15904 (ipa_free_all_structures_after_iinln): Likewise.
15906 2015-06-01 Martin Liska <mliska@suse.cz>
15908 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
15909 (ipa_profile_generate_summary): Likewise.
15910 (ipa_profile_read_summary): Likewise.
15911 (ipa_profile): Likewise.
15913 2015-06-01 Martin Liska <mliska@suse.cz>
15915 * tree-ssa-structalias.c (new_var_info): Use new type-based
15917 (new_constraint): Likewise.
15918 (init_alias_vars): Likewise.
15919 (delete_points_to_sets): Likewise.
15921 2015-06-01 Martin Liska <mliska@suse.cz>
15923 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
15924 (free_strinfo): Likewise.
15925 (pass_strlen::execute): Likewise.
15927 2015-06-01 Martin Liska <mliska@suse.cz>
15929 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
15931 (vn_reference_insert_pieces): Likewise.
15932 (vn_phi_insert): Likewise.
15933 (visit_reference_op_call): Likewise.
15934 (copy_phi): Likewise.
15935 (copy_reference): Likewise.
15936 (process_scc): Likewise.
15937 (allocate_vn_table): Likewise.
15938 (free_vn_table): Likewise.
15940 2015-06-01 Martin Liska <mliska@suse.cz>
15942 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
15944 (add_repeat_to_ops_vec): Likewise.
15945 (get_ops): Likewise.
15946 (maybe_optimize_range_tests): Likewise.
15947 (init_reassoc): Likewise.
15948 (fini_reassoc): Likewise.
15950 2015-06-01 Martin Liska <mliska@suse.cz>
15952 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
15954 (bitmap_set_new): Likewise.
15955 (get_or_alloc_expr_for_constant): Likewise.
15956 (get_or_alloc_expr_for): Likewise.
15957 (phi_translate_1): Likewise.
15958 (compute_avail): Likewise.
15959 (init_pre): Likewise.
15960 (fini_pre): Likewise.
15962 2015-06-01 Martin Liska <mliska@suse.cz>
15964 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
15965 (delete_dep_node): Likewise.
15966 (create_deps_list): Likewise.
15967 (free_deps_list): Likewise.
15968 (sched_deps_init): Likewise.
15969 (sched_deps_finish): Likewise.
15971 2015-06-01 Martin Liska <mliska@suse.cz>
15973 * regcprop.c (free_debug_insn_changes): Use new type-based
15975 (replace_oldest_value_reg): Likewise.
15976 (pass_cprop_hardreg::execute): Likewise.
15978 2015-06-01 Martin Liska <mliska@suse.cz>
15980 * ira-build.c (initiate_cost_vectors): Use new type-based
15982 (ira_allocate_cost_vector): Likewise.
15983 (ira_free_cost_vector): Likewise.
15984 (finish_cost_vectors): Likewise.
15986 2015-06-01 Martin Liska <mliska@suse.cz>
15988 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
15990 (free_sched_pools): Likewise.
15991 * sel-sched-ir.h (_list_alloc): Likewise.
15992 (_list_remove): Likewise.
15994 2015-06-01 Martin Liska <mliska@suse.cz>
15996 * stmt.c (add_case_node): Use new type-based pool allocator.
15997 (expand_case): Likewise.
15998 (expand_sjlj_dispatch_table): Likewise.
16000 2015-06-01 Martin Liska <mliska@suse.cz>
16002 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
16003 (free_bb): Likewise.
16004 (pass_cse_reciprocals::execute): Likewise.
16006 2015-06-01 Martin Liska <mliska@suse.cz>
16008 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
16009 (sra_deinitialize) Likewise.
16010 (create_access_1) Likewise.
16011 (build_accesses_from_assign) Likewise.
16012 (create_artificial_child_access) Likewise.
16014 2015-06-01 Martin Liska <mliska@suse.cz>
16016 * dse.c (get_group_info):Use new type-based pool allocator.
16017 (dse_step0) Likewise.
16018 (free_store_info) Likewise.
16019 (delete_dead_store_insn) Likewise.
16020 (free_read_records) Likewise.
16021 (record_store) Likewise.
16022 (replace_read) Likewise.
16023 (check_mem_read_rtx) Likewise.
16024 (scan_insn) Likewise.
16025 (dse_step1) Likewise.
16026 (dse_step7) Likewise.
16028 2015-06-01 Martin Liska <mliska@suse.cz>
16030 * df-scan.c (struct df_scan_problem_data):Use new type-based
16032 (df_scan_free_internal) Likewise.
16033 (df_scan_alloc) Likewise.
16034 (df_grow_reg_info) Likewise.
16035 (df_free_ref) Likewise.
16036 (df_insn_create_insn_record) Likewise.
16037 (df_mw_hardreg_chain_delete) Likewise.
16038 (df_insn_info_delete) Likewise.
16039 (df_free_collection_rec) Likewise.
16040 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
16041 (df_sort_and_compress_mws) Likewise.
16042 (df_ref_create_structure) Likewise.
16043 (df_ref_record) Likewise.
16045 2015-06-01 Martin Liska <mliska@suse.cz>
16047 * df-problems.c (df_chain_create):Use new type-based pool allocator.
16048 (df_chain_unlink_1) Likewise.
16049 (df_chain_unlink) Likewise.
16050 (df_chain_remove_problem) Likewise.
16051 (df_chain_alloc) Likewise.
16052 (df_chain_free) Likewise.
16053 * df.h (struct dataflow) Likewise.
16055 2015-06-01 Martin Liska <mliska@suse.cz>
16057 * cselib.c (new_elt_list):Use new type-based pool allocator.
16058 (new_elt_loc_list) Likewise.
16059 (unchain_one_elt_list) Likewise.
16060 (unchain_one_elt_loc_list) Likewise.
16061 (unchain_one_value) Likewise.
16062 (new_cselib_val) Likewise.
16063 (cselib_init) Likewise.
16064 (cselib_finish) Likewise.
16066 2015-06-01 Martin Liska <mliska@suse.cz>
16068 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
16069 (sh_reorg) Likewise.
16071 2015-06-01 Martin Liska <mliska@suse.cz>
16073 * cfg.c (initialize_original_copy_tables):Use new type-based
16075 (free_original_copy_tables) Likewise.
16076 (copy_original_table_clear) Likewise.
16077 (copy_original_table_set) Likewise.
16079 2015-06-01 Martin Liska <mliska@suse.cz>
16081 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
16083 (asan_mem_ref_new) Likewise.
16084 (free_mem_ref_resources) Likewise.
16086 2015-06-01 Martin Liska <mliska@suse.cz>
16088 * var-tracking.c (variable_htab_free):Use new type-based
16090 (attrs_list_clear) Likewise.
16091 (attrs_list_insert) Likewise.
16092 (attrs_list_copy) Likewise.
16093 (shared_hash_unshare) Likewise.
16094 (shared_hash_destroy) Likewise.
16095 (unshare_variable) Likewise.
16096 (var_reg_delete_and_set) Likewise.
16097 (var_reg_delete) Likewise.
16098 (var_regno_delete) Likewise.
16099 (drop_overlapping_mem_locs) Likewise.
16100 (variable_union) Likewise.
16101 (insert_into_intersection) Likewise.
16102 (canonicalize_values_star) Likewise.
16103 (variable_merge_over_cur) Likewise.
16104 (dataflow_set_merge) Likewise.
16105 (remove_duplicate_values) Likewise.
16106 (variable_post_merge_new_vals) Likewise.
16107 (dataflow_set_preserve_mem_locs) Likewise.
16108 (dataflow_set_remove_mem_locs) Likewise.
16109 (variable_from_dropped) Likewise.
16110 (variable_was_changed) Likewise.
16111 (set_slot_part) Likewise.
16112 (clobber_slot_part) Likewise.
16113 (delete_slot_part) Likewise.
16114 (loc_exp_insert_dep) Likewise.
16115 (notify_dependents_of_changed_value) Likewise.
16116 (emit_notes_for_differences_1) Likewise.
16117 (vt_emit_notes) Likewise.
16118 (vt_initialize) Likewise.
16119 (vt_finalize) Likewise.
16121 2015-06-01 Martin Liska <mliska@suse.cz>
16123 * ira-color.c (init_update_cost_records):Use new type-based
16125 (get_update_cost_record) Likewise.
16126 (free_update_cost_record_list) Likewise.
16127 (finish_update_cost_records) Likewise.
16128 (initiate_cost_update) Likewise.
16130 2015-06-01 Martin Liska <mliska@suse.cz>
16132 * lra.c (init_insn_regs): Use new type-based pool allocator.
16133 (new_insn_reg) Likewise.
16134 (free_insn_reg) Likewise.
16135 (free_insn_regs) Likewise.
16136 (finish_insn_regs) Likewise.
16137 (init_insn_recog_data) Likewise.
16138 (init_reg_info) Likewise.
16139 (finish_reg_info) Likewise.
16140 (lra_free_copies) Likewise.
16141 (lra_create_copy) Likewise.
16142 (invalidate_insn_data_regno_info) Likewise.
16144 2015-06-01 Martin Liska <mliska@suse.cz>
16146 * lra-lives.c (free_live_range): Use new type-based pool allocator.
16147 (free_live_range_list) Likewise.
16148 (create_live_range) Likewise.
16149 (copy_live_range) Likewise.
16150 (lra_merge_live_ranges) Likewise.
16151 (remove_some_program_points_and_update_live_ranges) Likewise.
16152 (lra_live_ranges_init) Likewise.
16153 (lra_live_ranges_finish) Likewise.
16155 2015-06-01 Martin Liska <mliska@suse.cz>
16157 * et-forest.c (et_new_occ): Use new type-based pool allocator.
16158 (et_new_tree): Likewise.
16159 (et_free_tree): Likewise.
16160 (et_free_tree_force): Likewise.
16161 (et_free_pools): Likewise.
16162 (et_split): Likewise.
16164 2015-06-01 Martin Liska <mliska@suse.cz>
16166 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
16168 * alloc-pool.h (pool_allocator::pool_allocator): New function.
16169 (pool_allocator::release): Likewise.
16170 (inline pool_allocator::release_if_empty): Likewise.
16171 (inline pool_allocator::~pool_allocator): Likewise.
16172 (pool_allocator::allocate): Likewise.
16173 (pool_allocator::remove): Likewise.
16175 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
16177 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
16180 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
16182 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
16184 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
16185 (arm_macro_fusion_p): Likewise.
16186 (arm_macro_fusion_pair_p): Likewise.
16188 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
16190 * config/aarch64/aarch64-protos.h (tune_params): Rename
16191 fuseable_ops to fusible_ops.
16192 * config/aarch64/aarch64.c (generic_tunings): Rename
16193 fuseable_ops to fusible_ops.
16194 (cortexa53_tunings): Likewise.
16195 (cortexa57_tunings): Likewise.
16196 (thunderx_tunings): Likewise.
16197 (xgene1_tunings): Likewise.
16198 (aarch64_macro_fusion_p): Likewise.
16199 (aarch64_macro_fusion_pair_p): Likewise.
16201 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
16203 * config/s390/driver-native.c: New file.
16204 * config/s390/x-native: New file.
16205 * config.host: Add new files for s390.
16206 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
16208 * config.gcc: Likewise.
16209 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
16210 * config/s390/s390-opts.h (enum processor_type): Ditto.
16211 * config/s390/s390.c (s390_option_override): Catch unhandled
16214 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
16217 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
16218 redirection for instrumented calls.
16219 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
16220 (append_compiler_options): Append -fcheck-pointer-bounds.
16221 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
16222 (chkp_redirect_edge): New.
16223 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
16224 (chkp_redirect_edge): New.
16226 2015-06-01 Richard Biener <rguenther@suse.de>
16228 PR tree-optimization/66280
16229 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
16232 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16234 * config/aarch64/aarch64.md
16235 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
16238 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
16240 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
16241 Remove obsolete kludge.
16243 2015-06-01 Richard Biener <rguenther@suse.de>
16245 * tree-ssa-reassoc.c (get_rank): Simplify.
16247 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
16249 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
16250 * configure: Regenerated.
16252 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
16254 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
16255 issue (add space between string literal and macro).
16256 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
16258 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
16260 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
16261 implict or explicit -fPIE or -fpie.
16263 2015-05-30 Mike Frysinger <vapier@gentoo.org>
16265 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
16267 2015-05-28 DJ Delorie <dj@redhat.com>
16269 * expmed.c (extract_bit_field_1): Avoid clobbering a
16270 yet-to-be-used base/index register.
16272 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
16274 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
16275 (alias_stats): Add num_universal.
16276 (alias_set_subset_of): Special case pointers; be ready for NULL
16278 (alias_sets_conflict_p): Special case pointers; be ready for NULL
16280 (init_alias_set_entry): Break out from ...
16281 (record_alias_subset): ... here; propagate new fields;
16282 allocate children only when really needed.
16283 (get_alias_set): Do less generous pointer globbing.
16284 (dump_alias_stats_in_alias_c): Update statistics.
16286 2015-05-30 Alan Modra <amodra@gmail.com>
16288 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
16289 correct block for use of r12.
16290 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
16292 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16295 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
16298 2015-05-29 Jakub Jelinek <jakub@redhat.com>
16300 PR tree-optimization/66142
16301 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
16302 virtual phis that feed themselves.
16304 2015-05-29 Richard Biener <rguenther@suse.de>
16306 PR tree-optimization/66314
16307 * tree-ssa-threadupdate.c (create_block_for_threading): Add
16308 parameter that says which loop the new block belongs to.
16309 (ssa_create_duplicates): Blocks duplicated for the threaded
16310 path belong to the loop of the thread destination.
16312 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16314 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
16315 to cleanup-saved-temps.
16316 * doc/sourcebuild.texi (Clean up generated test files): Expand
16318 (dg-keep-saved-temps): Document new proc.
16319 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
16320 cleanup-saved-temps): Remove.
16322 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
16324 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
16325 gcc_AC_CHECK_DECLS.
16326 * configure: Regenerate.
16328 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16330 * config/nios2/linux.h (CPP_SPEC): Define.
16332 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16334 * config/microblaze/linux.h (CPP_SPEC): Define.
16336 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16338 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
16339 -pthread is specified.
16341 2015-05-28 Richard Biener <rguenther@suse.de>
16343 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
16344 (vect_fixup_scalar_cycles_with_patterns): Likewise.
16345 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
16346 after pattern recog.
16347 (vect_create_epilog_for_reduction): Properly handle reductions
16349 (vectorizable_reduction): Likewise.
16350 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
16352 (vect_get_constant_vectors): Create the correct number of
16353 initial values for reductions.
16354 (vect_schedule_slp_instance): Handle reduction chains that are
16355 type changing properly.
16356 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
16358 2015-05-28 Richard Biener <rguenther@suse.de>
16360 PR tree-optimization/66142
16361 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
16362 values better in memcpy destination handling. Handle non-aliasing
16365 2015-05-28 Lawrence Velázquez <vq@larryv.me>
16368 * config/darwin-c.c (version_components): New global enum.
16369 (parse_version, version_as_legacy_macro)
16370 (version_as_modern_macro, macosx_version_as_macro): New functions.
16371 (version_as_macro): Remove.
16372 (darwin_cpp_builtins): Use new function.
16374 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
16376 * builtins.c (expand_builtin_acc_on_device): Mark parameters
16377 with ATTRIBUTE_UNUSED.
16379 2015-05-28 Julian Brown <julian@codesourcery.com>
16383 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
16384 sequence for !ACCEL_COMPILER.
16386 2015-05-28 Nick Clifton <nickc@redhat.com>
16388 * config/rx/rx.c (push_regs): New function. Extracts code from...
16389 (rx_expand_prologue): ... here. Use push_regs to push even small
16390 spans of registers.
16391 (pop_regs): New function.
16392 (rx_expand_epilogue): Use pop_regs to pop even small spans of
16395 2015-05-28 Richard Biener <rguenther@suse.de>
16397 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
16399 (SLP_INSTANCE_BODY_COST_VEC): Remove.
16400 (vect_update_slp_costs_according_to_vf): Likewise.
16401 (vect_slp_analyze_operations): Update prototype.
16402 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
16403 vect_update_slp_costs_according_to_vf, adjust.
16404 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
16405 (vect_analyze_slp_cost_1): Likewise.
16406 (vect_analyze_slp_cost): Likewise. Properly deal with
16407 widening reduction ops. Commit body costs.
16408 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
16409 cost for loops from here.
16410 (vect_slp_analyze_operations): But do it from here when
16411 the vectorization factor is known and stmts are analyzed.
16412 (vect_bb_vectorization_profitable_p): Simplify.
16413 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
16414 (vect_update_slp_costs_according_to_vf): Remove.
16416 2015-05-27 Magnus Granberg <zorry@gentoo.org>
16417 H.J. Lu <hongjiu.lu@intel.com>
16419 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
16420 (BUILD_CFLAGS): Likewise.
16421 (BUILD_CXXFLAGS): Likewise.
16422 (LINKER): Add @NO_PIE_FLAG@.
16423 (BUILD_LDFLAGS): Likewise.
16424 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
16425 --enable-default-pie.
16426 * common.opt (fPIE): Initialize to -1.
16428 (no-pie): New option.
16429 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
16430 * configure.ac: Add --enable-default-pie.
16431 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
16432 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
16433 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
16434 * gcc.c (NO_PIE_SPEC): New.
16435 (PIE_SPEC): Likewise.
16436 (NO_FPIE1_SPEC): Likewise.
16437 (FPIE1_SPEC): Likewise.
16438 (NO_FPIE2_SPEC): Likewise.
16439 (FPIE2_SPEC): Likewise.
16440 (NO_FPIE2_SPEC): Likewise.
16441 (FPIE_SPEC): Likewise.
16442 (NO_FPIE_SPEC): Likewise.
16443 (NO_FPIC1_SPEC): Likewise.
16444 (FPIC1_SPEC): Likewise.
16445 (NO_FPIC2_SPEC): Likewise.
16446 (FPIC2_SPEC): Likewise.
16447 (NO_FPIC2_SPEC): Likewise.
16448 (FPIC_SPEC): Likewise.
16449 (NO_FPIC_SPEC): Likewise.
16450 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
16451 (FPIE1_OR_FPIC1_SPEC): Likewise.
16452 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
16453 (FPIE2_OR_FPIC2_SPEC): Likewise.
16454 (NO_FPIE_AND_FPIC_SPEC): Likewise.
16455 (FPIE_OR_FPIC_SPEC): Likewise.
16456 (LD_PIE_SPEC): Likewise.
16457 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
16458 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
16459 * config/darwin.h (PIE_SPEC): Renamed to ...
16460 (DARWIN_PIE_SPEC): This.
16461 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
16462 * config/darwin9.h (PIE_SPEC): Renamed to ...
16463 (DARWIN_PIE_SPEC): This.
16464 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
16465 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
16466 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
16467 FPIE2_OR_FPIC2_SPEC.
16468 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
16469 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
16470 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
16471 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16472 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16473 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16474 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
16475 * config/m32r/m32r.h (ASM_SPEC): Likewise.
16476 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
16477 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16478 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
16479 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
16480 * config/sparc/linux.h (ASM_SPEC): Likewise.
16481 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16482 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
16483 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
16484 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16485 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16486 * config/sparc/sparc.h (ASM_SPEC): Likewise.
16487 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
16488 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
16489 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
16490 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
16491 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
16492 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
16493 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
16494 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
16495 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
16496 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
16497 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
16498 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
16499 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16500 * config/vax/linux.h (ASM_SPEC): Likewise.
16501 * doc/install.texi: Document --enable-default-pie.
16502 * doc/invoke.texi: Document -no-pie.
16503 * config.in: Regenerated.
16504 * configure: Likewise.
16506 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
16508 PR rtl-optimization/66168
16509 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
16510 can_move_invariant_reg.
16512 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
16515 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
16516 REG_EQUAL note when doing insert.
16518 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
16519 instead of "%d" for 'o' operand.
16521 2015-05-27 Nathan Sidwell <nathan@acm.org>
16524 * tree.c (build_pointer_type_for_mode): Canonical type does not
16525 inherit can_alias_all.
16526 (build_reference_type_for_mode): Likewise.
16528 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
16530 * expr.h (array_at_struct_end_p): Move to...
16531 (array_ref_element_size): Likewise.
16532 (component_ref_field_offset): Likewise.
16533 * tree.h (array_ref_element_size): ...here.
16534 (array_at_struct_end_p): Likewise.
16535 (component_ref_field_offset): Likewise.
16536 * expr.c (array_ref_element_size): Move to...
16537 (array_ref_low_bound): Likewise.
16538 (array_at_struct_end_p): Likewise.
16539 (array_ref_up_bound): Likewise.
16540 (component_ref_field_offset): Likewise.
16541 * tree.c (array_ref_element_size): ...here.
16542 (array_ref_low_bound): Likewise.
16543 (array_ref_up_bound): Likewise.
16544 (array_at_struct_end_p): Likewise.
16545 (component_ref_field_offset): Likewise.
16547 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16548 Szabolcs Nagy <szabolcs.nagy@arm.com>
16550 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
16552 2015-05-27 Jason Merrill <jason@redhat.com>
16555 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
16556 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
16557 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
16559 2015-05-22 Aditya Kumar <hiraditya@msn.com>
16561 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
16564 * statistics.c (statistics_fini_pass): Print pass name.
16566 2015-05-27 Richard Biener <rguenther@suse.de>
16568 PR tree-optimization/66272
16570 2014-08-15 Richard Biener <rguenther@suse.de>
16572 PR tree-optimization/62031
16573 * tree-data-ref.c (dr_analyze_indices): Do not set
16574 DR_UNCONSTRAINED_BASE.
16575 (dr_may_alias_p): All indirect accesses have to go the
16576 formerly DR_UNCONSTRAINED_BASE path.
16577 * tree-data-ref.h (struct indices): Remove
16578 unconstrained_base member.
16579 (DR_UNCONSTRAINED_BASE): Remove.
16581 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
16583 * dwarf2out.c: Remove block_map.
16584 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
16585 (gen_lexical_block_die): Same.
16586 (dwarf2out_function_decl): Remove block_map use.
16587 (dwarf2out_c_finalize): Same.
16588 * tree-core.h (struct tree_block): Add die field.
16589 * tree.h (BLOCK_DIE): New.
16591 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16594 * expr.c (memory_load_overlap): New function.
16595 (emit_push_insn): When pushing partial args to the stack would
16596 clobber the register part load the overlapping part into a pseudo
16597 and put it into the hard reg after pushing. Change return type
16598 to bool. Add bool argument.
16599 * expr.h (emit_push_insn): Change return type to bool.
16601 * calls.c (expand_call): Cancel sibcall optimization when encountering
16602 partial argument on targets with ARGS_GROW_DOWNWARD and
16603 !STACK_GROWS_DOWNWARD.
16604 (emit_library_call_value_1): Update callsite of emit_push_insn.
16605 (store_one_arg): Likewise.
16607 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16609 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
16611 2015-05-27 Martin Liska <mliska@suse.cz>
16613 * Makefile.in: Add additional dependencies related to memory report
16615 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
16616 * bitmap.c (struct bitmap_descriptor_d): Remove.
16617 (struct loc): Likewise.
16618 (struct bitmap_desc_hasher): Likewise.
16619 (bitmap_desc_hasher::hash): Likewise.
16620 (bitmap_desc_hasher::equal): Likewise.
16621 (get_bitmap_descriptor): Likewise.
16622 (bitmap_register): User new memory descriptor API.
16623 (register_overhead): Likewise.
16624 (bitmap_find_bit): Register nsearches and search_iter statistics.
16625 (struct bitmap_output_info): Remove.
16626 (print_statistics): Likewise.
16627 (dump_bitmap_statistics): Use new memory descriptor.
16628 * bitmap.h (struct bitmap_usage): New class.
16629 * genmatch.c: Extend header file inclusion.
16630 * genpreds.c: Likewise.
16631 * ggc-common.c (struct ggc_usage): New class.
16632 (struct ggc_loc_desc_hasher): Remove.
16633 (ggc_loc_desc_hasher::hash): Likewise.
16634 (ggc_loc_desc_hasher::equal): Likewise.
16635 (struct ggc_ptr_hash_entry): Likewise.
16636 (struct ptr_hash_hasher): Likewise.
16637 (ptr_hash_hasher::hash): Likewise.
16638 (ptr_hash_hasher::equal): Likewise.
16639 (make_loc_descriptor): Likewise.
16640 (ggc_prune_ptr): Likewise.
16641 (dump_ggc_loc_statistics): Use new memory descriptor.
16642 (ggc_record_overhead): Likewise.
16643 (ggc_free_overhead): Likewise.
16644 (final_cmp_statistic): Remove.
16645 (cmp_statistic): Likewise.
16646 (ggc_add_statistics): Liekwise.
16647 (ggc_prune_overhead_list): Likewise.
16648 * hash-map-traits.h: New file.
16649 * hash-map.h (struct default_hashmap_traits): Move the traits to a
16650 separate header file.
16651 * hash-set.h: Pass memory statistics info to ctor.
16652 * hash-table.c (void dump_hash_table_loc_statistics): New function.
16653 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
16654 (hash_table::~hash_table): Register memory release operation.
16655 (hash_table::alloc_entries): Handle memory allocation operation.
16656 (hash_table::expand): Likewise.
16657 * inchash.c (iterative_hash_hashval_t): Move implementation to header
16659 (iterative_hash_host_wide_int): Likewise.
16660 * inchash.h (class hash): Likewise.
16661 * mem-stats-traits.h: New file.
16662 * mem-stats.h: New file.
16663 (mem_location): Add new class.
16664 (mem_usage): Likewise.
16665 (mem_alloc_description): Likewise.
16666 * sese.c: Add new header file inclusision.
16667 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
16669 * tree-sra.c: Add new header file inclusision.
16670 * vec.c (struct vec_descriptor): Remove.
16671 (hash_descriptor): Likewise.
16672 (struct vec_usage): Likewise.
16673 (struct ptr_hash_entry): Likewise.
16674 (hash_ptr): Likewise.
16675 (eq_ptr): Likewise.
16676 (vec_prefix::register_overhead): Use new memory descriptor API.
16677 (vec_prefix::release_overhead): Likewise.
16678 (add_statistics): Remove.
16679 (dump_vec_loc_statistics): Use new memory descriptor API.
16680 * vec.h (struct vec_prefix): Likewise.
16681 (va_heap::reserve): Likewise.
16682 (va_heap::release): Likewise.
16683 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
16685 2015-05-27 Richard Biener <rguenther@suse.de>
16687 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
16688 earlier and remove ??? comment.
16689 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
16690 and got called from loop analysis bail out. Always pass the SLP
16691 node to the vectorizable_* functions.
16692 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
16693 the premature SLP check here.
16694 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
16695 detected SLP stmts.
16696 (vect_detect_hybrid_slp_1): Likewise.
16698 2015-05-26 Jeff Law <law@redhat.com>
16700 * combine.c (find_split_point): Verify that the shift count is a
16701 constant when choosing (plus (ashift ...)) as a split point.
16703 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
16704 No functional changes.
16706 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
16708 * ipa-polymorphic-call.c
16709 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
16710 case when call target is already known.
16712 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
16715 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
16716 take into account the case that operands[1] and operands[2]
16717 are the same register.
16719 2015-05-26 Michael Matz <matz@suse.de>
16721 PR middle-end/66251
16723 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
16725 (vect_create_vectorized_demotion_stmts): Always set
16726 STMT_VINFO_VEC_STMT, also with SLP.
16727 (vectorizable_store): Handle strided group stores.
16729 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16732 * config/aarch64/aarch64.md
16733 (*adds_shift_imm_<mode>): New pattern.
16734 (*subs_shift_imm_<mode>): Likewise.
16735 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16736 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16737 (*add_uxt<mode>_shift2): Likewise.
16738 (*add_uxtsi_shift2_uxtw): Likewise.
16739 (*sub_uxt<mode>_shift2): Likewise.
16740 (*sub_uxtsi_shift2_uxtw): Likewise.
16742 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
16744 * config/rs6000/constraints.md (Y, U): Use match_test.
16746 2015-05-26 Christian Bruel <christian.bruel@st.com>
16749 * config/arm/arm.c (arm_option_check_internal)
16750 (arm_option_params_internal): Check opts->target_flags to set macros.
16751 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16752 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
16753 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16754 (builtin_define): Replaced with def_or_undef_macro.
16755 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16756 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
16757 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16758 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
16759 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
16760 (TARGET_ARM_FEATURE_LDREX_P)
16761 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
16762 * config/arm/arm-c.c (def_or_undef_macro): New function.
16763 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
16765 2015-05-26 Christian Bruel <christian.bruel@st.com>
16767 * c-common.h (builtin_define_with_int_value)
16768 (builtin_define_type_sizeof): Declare.
16769 * c-cppbuiltin.c (builtin_define_with_int_value)
16770 (builtin_define_type_sizeof): Externalize.
16771 (builtin_define_std): Cleanup declaration.
16772 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
16773 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
16774 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
16775 (builtin_define, builtin_assert): New macros.
16777 2015-05-26 Richard Biener <rguenther@suse.de>
16779 PR tree-optimization/66142
16780 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
16781 MEM_REFs for the same base address.
16783 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16786 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
16788 2015-05-26 Jason Merrill <jason@redhat.com>
16790 * configure.ac: Set CXXFLAGS for ISL test.
16791 * configure: Regenerate.
16793 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
16794 strstr and basename.
16795 * configure: Regenerate.
16797 2015-05-26 Richard Biener <rguenther@suse.de>
16799 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
16800 X % C -> X & (C - 1) for C being a power-of two to ...
16801 * match.pd: ... patterns.
16803 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
16805 * match.pd (swapped_tcc_comparison): New operator list.
16806 (-A CMP -B): New simplification.
16807 * fold-const.c (fold_comparison): Remove corresponding code.
16809 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16811 * caller-save.c (init_caller_save): Base temporary register numbers
16812 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
16813 * cfgloopanal.c (init_set_costs): Likewise.
16814 * dojump.c (prefer_and_bit_test): Likewise.
16815 * expr.c (init_expr_target): Likewise.
16816 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16817 * lower-subreg.c (init_lower_subreg): Likewise.
16818 * postreload.c (reload_cse_regs_1): Likewise.
16820 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16822 * gensupport.h (compute_test_codes): Declare.
16823 * gensupport.c (compute_predicate_codes): Rename to...
16824 (compute_test_codes): ...this. Generalize error message.
16825 (process_define_predicate): Update accordingly.
16826 * genpreds.c (compute_maybe_allows): Delete.
16827 (add_constraint): Use compute_test_codes to determine whether
16828 something can accept a SUBREG, REG or MEM.
16830 2015-05-26 Torvald Riegel <triegel@redhat.com>
16832 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
16833 'memory model' to align with C++11; fix description of memory orders;
16836 2015-05-26 Richard Biener <rguenther@suse.de>
16838 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
16839 (vect_analyze_loop_operations): ... here. Remove slp parameter,
16840 detect whether we apply SLP. Remove call to
16841 vect_update_slp_costs_according_to_vf.
16842 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
16843 vect_update_slp_costs_according_to_vf from here. Dispatch
16844 to vect_slp_analyze_operations to analyze SLP stmts.
16845 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
16846 unused bb_vec_info parameter, adjust assert.
16847 (vect_slp_analyze_operations): Pass in the slp instance tree
16848 instead of bb_vec_info.
16849 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
16850 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
16852 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16854 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
16855 Q_REGS. Expand comment.
16856 (REG_CLASS_NAMES): Ditto.
16857 (REG_CLASS_CONTENTS): Ditto.
16859 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
16862 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
16863 when LEGACY_INT_REGNO_P is processed.
16865 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16867 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
16869 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16871 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
16872 register if not marked dead/unused, before return.
16874 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16877 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
16878 is set; check for assembler name at LTO time.
16879 (type_in_anonymous_namespace): Remove hacks, check that all
16880 anonymous types are called "<anon>"
16881 (odr_type_p): Simplify; add check for "<anon>"
16882 (odr_subtypes_equivalent): Add odr_type_p check.
16883 * tree.c (need_assembler_name_p): Even anonymous namespace needs
16886 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16888 * ipa-utils.h (method_class_type): Remove.
16889 * cgraphunit.c (walk_polymorphic_call_targets): Use
16890 TYPE_METHOD_BASETYPE.
16891 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
16892 on main variants only.
16893 (method_class_type): Remove.
16894 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
16895 (build_type_inheritance_graph): Likewise.
16896 * ipa-icf.c (sem_function::equals_wpa): Likewise.
16897 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
16898 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
16900 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16902 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
16903 is_typedef_decl, typedef_variant_p): Constify.
16904 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
16905 is_typedef_decl, typedef_variant_p): Constify.
16907 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16909 * defaults.h (gen_tablejump): New function.
16910 (HAVE_tablejump): Add default value.
16912 * stmt.c: Likewise.
16914 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16916 * defaults.h (gen_store_multiple): New function.
16917 (HAVE_store_multiple): Add default value.
16918 * expr.c (move_block_from_reg): Adjust.
16920 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16922 * defaults.h (gen_load_multiple): New function.
16923 (HAVE_load_multiple): Add default value.
16924 * expr.c (move_block_to_reg): Adjust.
16926 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16928 * defaults.h (gen_mem_signal_fence): New function.
16929 (HAVE_mem_signal_fence): Add default value.
16930 * optabs.c: Adjust.
16932 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16934 * defaults.h (gen_memory_barrier): New function.
16935 (HAVE_memory_barrier): Add default value.
16936 * optabs.c: Adjust.
16938 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16940 * defaults.h (gen_mem_thread_fence): New function.
16941 (HAVE_mem_thread_fence): Add default definition.
16942 * optabs.c: Adjust.
16944 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16946 * combine.c (find_split_point): Check the value of HAVE_lo_sum
16947 instead of if it is defined.
16948 (combine_simplify_rtx): Likewise.
16949 * lra-constraints.c (process_address_1): Likewise.
16950 * config/darwin.c: Adjust.
16951 * genconfig.c (main): Always define HAVE_lo_sum.
16953 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16955 * genmatch.c (parser::parse_operation): Reject expanding
16956 operator-list inside 'for'.
16958 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16960 * genmatch.c (parser::parse_for): Reject iterator if used as
16963 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16965 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
16966 after end of id-list.
16968 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16970 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
16971 we do not try to compute canonical type for type that does not need
16973 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
16975 * tree.h (type_with_alias_set_p): New.
16977 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16979 * tree.c (gimple_canonical_types_compatible_p): Do not compare
16980 function attributes.
16981 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
16983 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
16985 * Makefile.in (check_gcc_parallelize): Delete.
16986 (lang_checks_parallelized): Update comment.
16988 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
16990 PR rtl-optimization/66237
16991 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
16992 location of an "as_a" cast.
16994 2015-05-22 Jeff Law <law@redhat.com>
16996 * config/pa/pa.md (non-canonical shift-add insns): Remove.
16997 (peepholes with non-canonical RTL sources): Remove.
16998 (peepholes for indexed stores of FP regs in integer modes): Match and
16999 generate canonical RTL.
17001 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
17003 PR tree-optimization/63387
17004 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
17005 ((x ord x) & (y ord y) -> (x ord y),
17006 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
17007 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
17008 vectors like scalars.
17010 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
17012 * convert.c (convert_to_integer, convert_to_vector): Include the
17013 types in the error message.
17015 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
17017 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
17020 2015-05-22 Jeff Law <law@redhat.com>
17022 * config/pa/pa.md (integer_indexed_store splitters): Use
17023 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
17024 insns -- adjusting the constant 2nd operand accordingly.
17026 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
17027 (plus (ashift X log2) Y) if it is a split point.
17029 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
17030 out of hppa_legitimize_address to handle both forms of a multiply
17032 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
17033 Always generate the ASHIFT variant as the result is not directly
17034 used in a MEM. Update comments and refactor slightly to improve
17037 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17040 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
17041 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
17042 (aarch64_composite_type_p): Return false if given type and mode are
17043 for a short vector.
17045 2015-05-22 Richard Biener <rguenther@suse.de>
17047 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
17049 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
17050 patterns when determining whether SLP is pure.
17051 (vect_is_slp_reduction): Remove check for pattern stmts.
17052 (vect_is_simple_reduction_1): Remove dead code.
17053 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
17054 (vect_get_and_check_slp_defs): Pass in the stmt number.
17055 Allow the first def in a reduction to be not a pattern stmt when
17056 the rest of the stmts def are patterns.
17057 (vect_build_slp_tree_1): Allow tcc_expression codes like
17058 SAD_EXPR and DOT_PROD_EXPR.
17059 (vect_build_slp_tree): Adjust.
17060 (vect_analyze_slp): Refactor and move BB vect error message ...
17061 (vect_slp_analyze_bb_1): ... here.
17063 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
17065 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
17066 for CSWTCH temporary.
17068 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17070 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
17071 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
17074 2015-05-22 Richard Biener <rguenther@suse.de>
17076 PR tree-optimization/66251
17077 * tree-vect-stmts.c (vectorizable_conversion): Properly
17078 set STMT_VINFO_VEC_STMT even for the SLP case.
17080 2015-05-22 Marek Polacek <polacek@redhat.com>
17082 * doc/extend.texi: Use @pxref instead of @xref.
17084 2015-05-22 hiraditya <hiraditya@msn.com>
17086 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
17089 2015-05-22 Richard Biener <rguenther@suse.de>
17091 PR tree-optimization/65701
17092 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17093 Move peeling cost models into one place. Peel for alignment
17094 for single loads only if an aligned load is cheaper than
17097 2015-05-22 Marek Polacek <polacek@redhat.com>
17100 * doc/extend.texi (Enumerator Attributes): New section.
17101 Document syntax of enumerator attributes.
17103 2015-05-22 Richard Biener <rguenther@suse.de>
17105 * tree-vect-loop.c (get_reduction_op): New function.
17106 (vect_model_reduction_cost): Use it, add reduc_index parameter.
17107 Make ready for BB reductions.
17108 (vect_create_epilog_for_reduction): Use get_reduction_op.
17109 (vectorizable_reduction): Init reduc_index to a valid value.
17110 Adjust vect_model_reduction_cost call.
17111 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
17112 operand for reduction defaults. Add SAD_EXPR support.
17113 Assert we have a neutral op for SLP reductions.
17114 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
17115 walking pattern stmt ops only recurse to SSA names.
17117 2015-05-22 Richard Biener <rguenther@suse.de>
17119 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
17120 assert with guard, remove check on detected reduction.
17121 (vect_recog_sad_pattern): Likewise.
17122 (vect_recog_widen_sum_pattern): Likewise.
17124 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17126 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
17127 __always_inline__ attribute.
17128 (vaesdq_u8): Likewise.
17129 (vaesmcq_u8): Likewise.
17130 (vaesimcq_u8): Likewise.
17131 (vsha1cq_u32): Likewise.
17132 (vsha1mq_u32): Likewise.
17133 (vsha1pq_u32): Likewise.
17134 (vsha1h_u32): Likewise.
17135 (vsha1su0q_u32): Likewise.
17136 (vsha1su1q_u32): Likewise.
17137 (vsha256hq_u32): Likewise.
17138 (vsha256h2q_u32): Likewise.
17139 (vsha256su0q_u32): Likewise.
17140 (vsha256su1q_u32): Likewise.
17141 (vmull_p64): Likewise.
17142 (vmull_high_p64): Likewise.
17144 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17146 * final.c (final_scan_insn): Don't check HAVE_peephole with the
17148 * output.h: Likewise.
17149 * genconfig.c (main): Alwways define HAVE_peephole.
17150 * genpeep.c: Don't emit checks of HAVE_peephole.
17152 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17154 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
17155 check HAVE_conditional_move with the preprocessor.
17157 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17159 * genconfig.c (main): Always define HAVE_conditional_move.
17160 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
17161 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
17164 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17166 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
17167 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
17168 and FRAME_POINTER_REGNUM with the preprocessor.
17170 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17172 * defaults.h: Add default for STACK_PUSH_CODE.
17173 * expr.c: Don't redefine STACK_PUSH_CODE.
17174 * recog.c: Likewise.
17176 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17178 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
17179 sched-deps.c: Use if instead of preprocessor checks with
17180 STACK_GROWS_DOWNWARD.
17182 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17184 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
17186 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
17187 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
17188 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
17189 * doc/tm.texi: Regenerate.
17191 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
17194 * config/i386/constraints.md (Bg): New constraint for GOT memory
17196 * config/i386/i386.md (*call_got_x32): New pattern.
17197 (*call_value_got_x32): Likewise.
17198 * config/i386/predicates.md (GOT_memory_operand): New predicate.
17200 2015-05-21 Jakub Jelinek <jakub@redhat.com>
17202 PR tree-optimization/66233
17203 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
17206 2015-05-21 Jeff Law <law@redhat.com>
17208 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
17209 than MULT for shadd sequences.
17211 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
17213 * alias.c (alias_stats): New static var.
17214 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
17215 (dump_alias_stats_in_alias_c): New function.
17216 * alias.h (dump_alias_stats_in_alias_c): Declare.
17217 * tree-ssa-alias.c (dump_alias_stats): Call it.
17219 2015-05-08 Michael Matz <matz@suse.de>
17221 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
17223 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
17224 (STMT_VINFO_STRIDED_P): ... this.
17225 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
17226 (vect_verify_datarefs_alignment): Likewise.
17227 (vect_enhance_data_refs_alignment): Likewise.
17228 (vect_analyze_data_ref_access): Likewise.
17229 (vect_analyze_data_refs): Accept strided stores.
17230 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
17231 (vect_model_load_cost): Adjust for macro rename.
17232 (vectorizable_mask_load_store): Likewise.
17233 (vectorizable_load): Likewise.
17234 (vectorizable_store): Open code strided stores.
17236 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17238 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
17239 Document sqrt_insn.
17241 2015-05-21 Richard Biener <rguenther@suse.de>
17244 * match.pd: Guard pattern optimzing (int)(float)int
17245 conversions to apply only on GIMPLE.
17247 2015-05-21 Jeff Law <law@redhat.com>
17249 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
17250 multiply-accumulate/shift-add insn generation.
17252 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
17255 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
17256 operands[1] are the same.
17258 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
17260 PR middle-end/66221
17261 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
17262 build_distinct_type_copy to copy bounds.
17264 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
17266 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
17267 Change to unsigned int.
17269 2015-05-20 Jeff Law <law@redhat.com>
17271 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
17272 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
17273 (pa_shadd_constant_p): Allow constants for shadd insns rather
17274 than valid scaling constants for memory addresses.
17275 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
17276 * config/pa/predicates.md (mem_shadd_operand): New predicate.
17277 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
17278 (shift-add insns using ASHIFT): New patterns.
17280 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
17282 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
17284 (fix_up_fall_thru_edges): Likewise.
17285 (fix_crossing_conditional_branches): Likewise. Promote jump targets
17286 from to rtx_insn to rtx_code_label where feasible.
17287 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
17288 gen_move_insn (returned type changed to rtx_insn).
17289 * builtins.c (expand_errno_check): Fix arguments of
17290 do_compare_rtx_and_jump (now expects rtx_code_label).
17291 (expand_builtin_acc_on_device): Likewise.
17292 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
17293 invert_jump (now exprects rtx_jump_insn).
17294 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
17295 (construct_init_block): Use rtx_code_label.
17296 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
17297 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
17298 calling redirect_jump.
17299 (patch_jump_insn): Likewise.
17300 (redirect_branch_edge): Likewise.
17301 (force_nonfallthru_and_redirect): Likewise.
17302 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
17304 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
17305 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
17306 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
17307 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
17308 to store the value retured by gen_label_rtx.
17309 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
17311 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
17312 (split_branches): Fix calls of redirect_jump.
17313 * dojump.c (jumpifnot): Promote argument type from rtx to
17315 (jumpifnot_1): Likewise.
17316 (jumpif): Likewise.
17317 (jumpif_1): Likewise.
17318 (do_jump_1): Likewise.
17319 (do_jump): Likewise. Use rtx_code_label when feasible.
17320 (do_jump_by_parts_greater_rtx): Likewise.
17321 (do_jump_by_parts_zero_rtx): Likewise.
17322 (do_jump_by_parts_equality_rtx): Likewise.
17323 (do_compare_rtx_and_jump): Likewise.
17324 * dojump.h: Update function prototypes.
17325 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
17327 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
17329 (emit_label_before): Likewise.
17330 (emit_jump_insn_after_noloc): Likewise.
17331 (emit_jump_insn_after_setloc): Likewise.
17332 (emit_jump_insn_after): Likewise
17333 (emit_jump_insn_before_setloc): Likewise.
17334 (emit_jump_insn_before): Likewise.
17335 (emit_label_before): Promote return type to rtx_code_label.
17336 (emit_label): Likewise.
17337 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
17338 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
17340 (emit_stack_restore): Likewise.
17341 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
17342 (do_cmp_and_jump): Likewise.
17343 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
17344 from rtx to rtx_code_label.
17345 (gen_move_insn_uncast): New function.
17346 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
17347 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
17348 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
17349 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
17350 invert_jump_1 and redirect_jump_1.
17351 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
17352 do_compare_rtx_and_jump.
17353 (expand_addsub_overflow): Likewise.
17354 (expand_neg_overflow): Likewise.
17355 (expand_mul_overflow): Likewise.
17356 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
17357 return value of gen_move_insn.
17358 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
17359 * loop-doloop.c (add_test): Use rtx_code_label.
17360 (doloop_modify): Likewise.
17361 (doloop_optimize): Likewise.
17362 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
17363 * lra-constraints.c (emit_spill_move): Remove cast of value returned
17365 (inherit_reload_reg): Add cast when calling dump_insn_slim.
17366 (split_reg): Likewise.
17367 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
17369 * optabs.c (expand_binop_directly): Remove casts of values returned by
17371 (expand_unop_direct): Likewise.
17372 (expand_abs): Likewise.
17373 (maybe_emit_unop_insn): Likewise.
17374 (maybe_gen_insn): Promote return type to rtx_insn.
17375 * optabs.h: Update prototype of maybe_gen_insn.
17376 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
17378 * recog.c (struct peep2_insn_data): Promote type of insn field to
17380 (peep2_reinit_state): Use NULL instead of NULL_RTX.
17381 (peep2_attempt): Remove casts of insn in peep2_insn_data.
17382 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
17383 * recog.h (struct insn_gen_fn): Promote return types of function
17384 pointers and operator ().from rtx to rtx_insn.
17385 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
17386 (fill_eager_delay_slots): Likewise.
17387 (relax_delay_slots): Likewise.
17388 (make_return_insns): Likewise.
17389 (dbr_schedule): Likewise.
17390 (optimize_skips): Likewise.
17391 (reorg_redirect_jump): Likewise.
17392 (fill_slots_from_thread): Likewise.
17393 * reorg.h: Update prototypes.
17394 * resource.c (find_dead_or_set_registers): Use dyn_cast to
17395 rtx_jump_insn instead of check. Use it's jump_target method.
17396 * rtl.h (rtx_jump_insn::jump_label): Define new method.
17397 (rtx_jump_insn::jump_target): Define new method.
17398 (rtx_jump_insn::set_jump_target): Define new method.
17399 * rtlanal.c (tablejump_p): Promote type of one local variable.
17400 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
17401 (sched_analyze_insn): Likewise.
17402 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
17403 (print_insn): Likewise.
17404 * stmt.c (label_rtx): Promote return type to rtx_insn.
17405 (force_label_rtx): Likewise.
17406 (jump_target_rtx): Define new function.
17407 (expand_label): Use it, get rid of one cast.
17408 (expand_naked_return): Promote rtx to rtx_code_label.
17409 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
17410 (expand_case): Use rtx_code_label instread of rtx where feasible.
17411 (expand_sjlj_dispatch_table): Likewise.
17412 (emit_case_nodes): Likewise.
17413 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
17414 * store-motion.c (insert_store): Make use of new return type of
17415 gen_move_insn and remove a cast.
17416 (replace_store_insn): Likewise.
17418 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
17420 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
17421 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
17423 2015-05-20 Jeff Law <law@redhat.com>
17425 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
17426 dispose of the jump thread path when the jump threading
17427 opportunity is cancelled.
17429 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17431 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
17432 when printing the caret character.
17434 2015-05-20 Marek Polacek <polacek@redhat.com>
17436 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
17438 2015-05-20 Marek Polacek <polacek@redhat.com>
17440 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
17441 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
17442 * gimple-fold.c (canonicalize_bool): Likewise.
17443 (same_bool_result_p): Likewise.
17444 * tree-if-conv.c (parse_predicate): Likewise.
17446 2015-05-20 Marek Polacek <polacek@redhat.com>
17448 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
17449 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
17451 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17453 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
17454 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
17457 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
17459 * config/mips/mips.h (micromips_globals): Declare.
17461 2015-05-20 David Malcolm <dmalcolm@redhat.com>
17463 * timevar.def (TV_INITIALIZE_RTL): New.
17464 * toplev.c (initialize_rtl): Use an auto_timevar to account this
17465 function's time to TV_INITIALIZE_RTL.
17467 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
17469 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
17470 gimple_build_nop calls.
17471 (chkp_find_bounds_for_elem): Likewise.
17472 (chkp_get_zero_bounds): Likewise.
17473 (chkp_get_none_bounds): Likewise.
17474 (chkp_get_bounds_by_definition): Likewise.
17475 (chkp_generate_extern_var_bounds): Likewise.
17476 (chkp_get_bounds_for_decl_addr): Likewise.
17477 (chkp_get_bounds_for_string_cst): Likewise.
17479 2015-05-20 Bin Cheng <bin.cheng@arm.com>
17481 PR tree-optimization/65447
17482 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
17483 (dump_use, dump_uses): Support to dump sub use.
17484 (record_use): New parameters to support sub use. Remove call to
17486 (record_sub_use, record_group_use): New functions.
17487 (compute_max_addr_offset, split_all_small_groups): New functions.
17488 (group_address_uses, rewrite_use_address): New functions.
17489 (strip_offset): New declaration.
17490 (find_interesting_uses_address): Call record_group_use.
17491 (add_candidate): New assertion.
17492 (infinite_cost_p): Move definition forward.
17493 (add_costs): Check INFTY cost and return immediately.
17494 (get_computation_cost_at): Clear setup cost and dependent bitmap
17496 (determine_use_iv_cost_address): Compute cost for sub uses.
17497 (rewrite_use_address_1): Rename from old rewrite_use_address.
17498 (free_loop_data): Free sub uses.
17499 (tree_ssa_iv_optimize_loop): Call group_address_uses.
17501 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17502 Jim Wilson <jim.wilson@linaro.org>
17504 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
17505 new fields loadv and storev.
17506 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
17507 Initialize loadv and storev.
17508 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
17509 (cortexa53_extra_costs): Likewise.
17510 (cortexa57_extra_costs): Likewise.
17511 (xgene1_extra_costs): Likewise.
17512 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
17515 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17517 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
17519 (cortexa8_extra_costs): Likewise.
17520 (cortexa5_extra_costs): Likewise.
17521 (cortexa7_extra_costs): Likewise.
17522 (cortexa12_extra_costs): Likewise.
17523 (cortexa15_extra_costs): Likewise.
17524 (v7m_extra_costs): Likewise.
17526 2015-05-20 Jeff Law <law@redhat.com>
17528 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
17529 instead of open-coded version. Also delete the jump thread created
17530 within this function.
17532 2015-05-20 Alan Modra <amodra@gmail.com>
17534 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
17535 stack adjusting insn. Formatting.
17536 (rs6000_emit_prologue): Track stack adjusting insn, and use of
17537 r12. If possible, emit first -fsplit-stack arg pointer insn
17538 before stack adjust. Don't use r12 to save cr if split-stack.
17540 2015-05-20 Alan Modra <amodra@gmail.com>
17542 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
17544 (rs6000_supports_split_stack): New function.
17545 * gcc/config/rs6000/rs6000.c (machine_function): Add
17546 split_stack_arg_pointer.
17547 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
17548 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
17549 rather than virtual_incoming_args_rtx.
17550 (rs6000_va_start): Likewise.
17551 (split_stack_arg_pointer_used_p): New function.
17552 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
17553 (morestack_ref): New var.
17554 (gen_add3_const, rs6000_expand_split_stack_prologue,
17555 rs6000_internal_arg_pointer, rs6000_live_on_entry,
17556 rs6000_split_stack_space_check): New functions.
17557 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
17558 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
17559 (UNSPECV_SPLIT_STACK_RETURN): Define.
17560 (split_stack_prologue, load_split_stack_limit,
17561 load_split_stack_limit_di, load_split_stack_limit_si,
17562 split_stack_return, split_stack_space_check): New expands and insns.
17563 * gcc/config/rs6000/rs6000-protos.h
17564 (rs6000_expand_split_stack_prologue): Declare.
17565 (rs6000_split_stack_space_check): Declare.
17567 2015-05-20 Alan Modra <amodra@gmail.com>
17569 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
17570 (direct_return): Test vrsave_size rather than vrsave_mask.
17571 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
17572 (rs6000_emit_epilogue): Likewise.
17574 2015-05-20 Alan Modra <amodra@gmail.com>
17576 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
17577 when not saving registers.
17578 (debug_stack_info): Adjust to omit printing unused offsets,
17580 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
17583 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17586 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
17587 value_type to const char *.
17589 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
17591 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
17592 to build a biarch toolchain again.
17594 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17596 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
17597 or implicit declarations.
17598 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
17600 (get_odr_type): Check type has linkage before adding bases.
17601 (register_odr_type): Check that type has linkage before adding it.
17602 (type_known_to_have_no_deriavations_p): Rename to ..
17603 (type_known_to_have_no_derivations_p): This one.
17604 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
17605 (type_known_to_have_no_derivations_p): This one.
17606 * ipa-polymorphic-call.c
17607 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
17610 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17612 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
17613 (layout_type): Use RECORD_OR_UNION_TYPE_P.
17615 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17617 * config/s390/s390.c (s390_vector_bool_type_p): New function.
17618 (s390_invalid_binary_op): New function.
17619 (TARGET_INVALID_BINARY_OP): Define macro.
17621 2015-05-19 David Sherwood <david.sherwood@arm.com>
17623 * loop-invariant.c (create_new_invariant): Don't calculate address cost
17624 if mode is not a scalar integer.
17625 (get_inv_cost): Increase computational cost for unused invariants.
17627 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17629 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
17630 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
17631 * config/s390/s390-builtin-types.def: New file.
17632 * config/s390/s390-builtins.def: New file.
17633 * config/s390/s390-builtins.h: New file.
17634 * config/s390/s390-c.c: New file.
17635 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
17636 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
17637 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
17638 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
17640 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
17642 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
17643 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
17644 variable definitions.
17645 (s390_const_operand_ok): New function.
17646 (s390_expand_builtin): Rewrite.
17647 (s390_init_builtins): New function.
17648 (s390_handle_vectorbool_attribute): New function.
17649 (s390_attribute_table): Add s390_vector_bool attribute.
17650 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
17651 (s390_branch_condition_mask): Generate masks for new modes.
17652 (s390_expand_vec_compare_cc): New function.
17653 (s390_mangle_type): Add mangling for vector bool types.
17654 (enum s390_builtin): Remove.
17655 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
17657 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
17658 s390_cpu_cpp_builtins.
17659 (REGISTER_TARGET_PRAGMAS): New macro.
17660 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
17661 (insn_cmp mode attribute): Add new CC modes.
17662 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
17663 (lcbb): New pattern definition.
17664 * config/s390/s390intrin.h: Include vecintrin.h.
17665 * config/s390/t-s390: New file.
17666 * config/s390/vecintrin.h: New file.
17667 * config/s390/vector.md: Include vx-builtins.md.
17668 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
17671 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17673 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
17675 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
17676 (s390_select_ccmode): Likewise.
17677 (s390_canonicalize_comparison): Swap operands if necessary.
17678 (s390_expand_vec_compare_scalar): Expand DFmode compare using
17679 single element vector instructions.
17680 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
17681 (s390_branch_condition_mask): Generate CC masks for the new modes.
17682 * config/s390/s390.md (v0, vf, vd): New mode attributes.
17683 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
17684 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
17685 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
17686 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
17687 (*extend<DSF:mode><BFP:mode>2): New insn definition.
17688 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
17689 (extend<DSF:mode><BFP:mode>2): Turn into expander.
17690 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
17691 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
17692 (sqrt<mode>2): Add vector instruction.
17694 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17696 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
17698 * config/s390/predicates.md (const0_operand, constm1_operand)
17699 (constable_operand): Accept vector operands.
17700 * config/s390/s390-modes.def: Add supported vector modes.
17701 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
17702 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
17703 (s390_bytemask_vector_p, s390_expand_vec_strlen)
17704 (s390_expand_vec_compare, s390_expand_vcond)
17705 (s390_expand_vec_init): Add prototypes.
17706 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
17707 (s390_vector_mode_supported_p): New function.
17708 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
17709 (s390_contiguous_bitmask_vector_p): New function.
17710 (s390_bytemask_vector_p): New function.
17711 (s390_split_ok_p): Vector regs don't work either.
17712 (regclass_map): Add VEC_REGS.
17713 (s390_legitimate_constant_p): Handle vector constants.
17714 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
17715 (legitimate_reload_vector_constant_p): New function.
17716 (s390_preferred_reload_class): Handle CONST_VECTOR.
17717 (s390_reload_symref_address): Likewise.
17718 (s390_secondary_reload): Vector memory instructions only support
17719 short displacements. Rename reload*_nonoffmem* to reload*_la*.
17720 (s390_emit_ccraw_jump): New function.
17721 (s390_expand_vec_strlen): New function.
17722 (s390_expand_vec_compare): New function.
17723 (s390_expand_vcond): New function.
17724 (s390_expand_vec_init): New function.
17725 (s390_dwarf_frame_reg_mode): New function.
17726 (print_operand): Handle addresses with 'O' and 'R' constraints.
17727 (NR_C_MODES, constant_modes): Add vector modes.
17728 (s390_output_pool_entry): Handle vector constants.
17729 (s390_hard_regno_mode_ok): Handle vector registers.
17730 (s390_class_max_nregs): Likewise.
17731 (s390_cannot_change_mode_class): New function.
17732 (s390_invalid_arg_for_unprototyped_fn): New function.
17733 (s390_function_arg_vector): New function.
17734 (s390_function_arg_float): Remove size variable.
17735 (s390_pass_by_reference): Handle vector arguments.
17736 (s390_function_arg_advance): Likewise.
17737 (s390_function_arg): Likewise.
17738 (s390_return_in_memory): Vector values are returned in a VR if
17740 (s390_function_and_libcall_value): Handle vector arguments.
17741 (s390_gimplify_va_arg): Likewise.
17742 (s390_call_saved_register_used): Consider the arguments named.
17743 (s390_conditional_register_usage): Disable v16-v31 for non-vec
17745 (s390_preferred_simd_mode): New function.
17746 (s390_support_vector_misalignment): New function.
17747 (s390_vector_alignment): New function.
17748 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
17749 (TARGET_VECTOR_MODE_SUPPORTED_P)
17750 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
17751 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17752 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
17753 (TARGET_VECTOR_ALIGNMENT): Define target macro.
17754 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
17755 (FIRST_PSEUDO_REGISTER): Increase value.
17756 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
17757 (VECTOR_REG_P): Define macros.
17758 (FIXED_REGISTERS, CALL_USED_REGISTERS)
17759 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
17760 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
17761 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
17762 Add vector registers.
17763 (CANNOT_CHANGE_MODE_CLASS): Call C function.
17764 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
17765 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
17767 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
17768 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
17769 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
17770 (VR*_REGNUM): New constants.
17771 (ALL): New mode iterator.
17772 (INTALL): Remove mode iterator.
17774 (movti): Implement TImode moves for VRs.
17775 Disable TImode splitter for VR targets.
17776 Implement splitting TImode GPR<->VR moves.
17777 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
17778 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
17779 reload<mode>_la_in, reload<mode>_la_out.
17780 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
17781 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
17782 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
17783 (mov<mode> SF SD): Prefer lder, lde for loading.
17784 Add lrl and strl instructions.
17785 Add vector instructions.
17786 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
17787 Call s390_expand_vec_strlen on z13.
17788 (*cc_to_int): Change predicate to nonimmediate_operand.
17789 (addti3): Rename to *addti3. New expander.
17790 (subti3): Rename to *subti3. New expander.
17791 * config/s390/vector.md: New file.
17793 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17795 * common/config/s390/s390-common.c (processor_flags_table): Add
17797 * config.gcc: Add z13.
17798 * config/s390/s390-opts.h (enum processor_type): Add
17799 PROCESSOR_2964_Z13.
17800 * config/s390/s390.c (s390_adjust_priority): Check for
17801 PROCESSOR_2964_Z13.
17802 (s390_reorg): Likewise.
17803 (s390_sched_reorder): Likewise.
17804 (s390_sched_variable_issue): Likewise.
17805 (s390_loop_unroll_adjust): Likewise.
17806 (s390_option_override): Likewise. Default to -mvx when available.
17807 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
17808 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
17809 (TARGET_VX_ABI): Define macros.
17811 (TARGET_DEFAULT): Add MASK_OPT_VX.
17812 * config/s390/s390.md ("cpu" attribute): Add z13.
17813 ("cpu_facility" attribute): Add vec.
17814 * config/s390/s390.opt (processor_type): Add z13.
17815 (mvx): New options.
17816 * doc/invoke.texi: Add z13 option for -march.
17818 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17820 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
17821 mode check to make sure that only scalar integer values are
17824 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17826 * tree.c (verify_type_variant): Fix #undef.
17827 (gimple_canonical_types_compatible_p): Move here from lto.c
17828 (verify_type): Verify TYPE_CANONICAL compatibility.
17829 * tree.h (gimple_canonical_types_compatible_p): Declare.
17831 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17833 PR middle-end/66199
17834 * tree.h (OMP_TEAMS_COMBINED): Define.
17835 * gimplify.c (enum gimplify_omp_var_data): Add
17836 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
17837 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
17838 (omp_notice_variable): Accept both ORT_TEAMS
17839 and ORT_COMBINED_TEAMS. Don't recurse if
17840 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
17841 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
17843 (omp_no_lastprivate): New function.
17844 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
17845 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
17846 notice_outer and set appropriate bits, otherwise make
17847 sure default(none) combined constructs won't complain.
17848 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
17849 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
17850 omp_no_lastprivate either remove the clause or turn it
17851 into OMP_CLAUSE_PRIVATE.
17852 (gimplify_omp_for): Fix up handling of implicit
17853 lastprivate or linear iterators.
17854 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
17855 ORT_COMBINED_TEAMS.
17856 * omp-low.c (lower_omp_for_lastprivate): For combined
17857 for simd use fd.loop.n2 from the for rather than simd.
17859 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17861 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
17862 instead of gen_rtx_raw_REG.
17863 (cris_expand_epilogue): Likewise.
17864 * config/microblaze/microblaze.c (microblaze_classify_address):
17866 * config/sparc/sparc.md: Likewise.
17868 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
17870 * config/alpha/alpha.c (alpha_legitimize_reload_address)
17871 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
17872 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
17873 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
17874 Use CASE_CONST_SCALAR_INT.
17875 (print_operand) <case 'M'>: Use mode_width_operand to check the
17876 value of the constant.
17877 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
17878 * config/alpha/predicates.md (input_operand): Use general_operand
17879 instead of match_code as operand check.
17880 (symbolic_operand): Use match_code with subexpression digits.
17881 * config/alpha/constraints.md (Q): Ditto.
17883 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17885 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
17887 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17889 * config/s390/s390.c (s390_secondary_reload): Fix check for
17890 load/store relative.
17892 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17894 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
17895 alternative_mask to uint64_t.
17897 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17899 PR tree-optimization/66187
17900 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
17901 Pass TYPE_SIGN to tree_int_cst_min_precision. If
17902 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
17904 2015-05-19 David Malcolm <dmalcolm@redhat.com>
17906 * diagnostic.c (diagnostic_report_current_module): Strengthen
17907 local "new_map" from const line_map * to
17908 const line_map_ordinary *.
17909 * genmatch.c (error_cb): Likewise for local "map".
17910 (output_line_directive): Likewise for local "map".
17911 * input.c (expand_location_1): Likewise for local "map".
17912 Pass NULL rather than &map to
17913 linemap_unwind_to_first_non_reserved_loc, since the value is never
17914 read from there, and the value written back not read from here.
17915 (is_location_from_builtin_token): Strengthen local "map" from
17916 const line_map * to const line_map_ordinary *.
17917 (dump_location_info): Strengthen locals "map" from
17918 line_map *, one to const line_map_ordinary *, the other
17919 to const line_map_macro *.
17920 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
17921 const line_map * to const line_map_macro *.
17922 (maybe_unwind_expanded_macro_loc): Add a call to
17923 linemap_check_macro when writing to the "map" field of the
17925 Introduce local const line_map_ordinary * "ord_map", using it in
17926 place of "map" in the part of the function where we know we have
17927 an ordinary map. Strengthen local "m" from const line_map * to
17928 const line_map_ordinary *.
17930 2015-05-19 Nick Clifton <nickc@redhat.com>
17933 * config/msp430/msp430.md (zero_extendhisi2): Add support for
17934 separate source and destination registers.
17936 2015-05-19 Richard Biener <rguenther@suse.de>
17938 PR tree-optimization/66165
17939 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
17940 for no load permutation.
17942 PR tree-optimization/66185
17943 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
17944 when building the SLP node from scalars.
17946 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17947 Tristan Gingold <gingold@adacore.com>
17949 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
17950 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
17951 (expand_stack_restore): Call record_new_stack_level.
17952 (expand_stack_save): Do not call do_pending_stack_adjust.
17953 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
17954 * calls.c (expand_call): Call record_new_stack_level for alloca.
17955 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
17956 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
17957 (update_sjlj_context): New global function.
17958 * except.h (update_sjlj_context): Declare.
17959 * explow.c (record_new_stack_level): New global function.
17960 (allocate_dynamic_stack_space): Call record_new_stack_level.
17961 * explow.h (record_new_stack_level): Declare.
17962 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
17963 * cfgrtl.c (duplicate_insn_chain): Likewise.
17965 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17967 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
17968 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
17969 STACK_GROWS_DOWNWARD as normal if.
17970 (expand_call): Likewise.
17972 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
17975 * config/sh/sh.md (*round_int_even): New insn_and_split and
17976 accompanying new unnamed split.
17978 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17980 * bitmap.c (bitmap_set_range): Handle count==1 specially.
17981 (bitmap_clear_range): Likewise.
17982 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
17983 bitmap_set_range unconditionally.
17984 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17985 * df-scan.c (df_mark_reg): Likewise.
17986 * haifa-sched.c (setup_ref_regs): Likewise.
17987 * sched-rgn.c (update_live_1): Likewise.
17989 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17991 * regs.h (END_HARD_REGNO): Delete.
17992 (END_REGNO): Move to...
17994 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
17995 * caller-save.c (mark_set_regs): Likewise.
17996 * combine.c (move_deaths, distribute_notes): Likewise.
17997 * cse.c (invalidate, invalidate_for_call): Likewise.
17998 * df-scan.c (df_ref_record): Likewise.
17999 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
18000 (record_last_reg_set_info): Likewise.
18001 * reg-stack.c (convert_regs_exit): Likewise.
18002 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
18003 * resource.c (update_live_status): Likewise.
18004 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
18006 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18008 * rtl.h (reg_info): Add an nregs field.
18009 (REG_NREGS): Use it.
18010 (SET_REGNO_RAW): Delete.
18011 (set_regno_raw): New function.
18012 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
18013 (END_REGNO): Redefine in terms of REG_NREGS.
18014 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
18016 * emit-rtl.c (set_mode_and_regno): Likewise.
18017 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
18018 instead of SET_REGNO_RAW.
18020 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18022 * rtl.h (PUT_MODE_RAW): New macro.
18023 (PUT_REG_NOTE_KIND): Use it.
18024 (set_mode_and_regno): Declare.
18025 (gen_raw_REG): Change regno to "unsigned int".
18026 (gen_rtx_REG): Change "unsigned" to "unsigned int".
18027 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
18028 use set_mode_and_regno to change the mode of registers.
18029 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
18030 * emit-rtl.c (set_mode_and_regno): New function.
18031 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
18032 * caller-save.c (reg_save_code): Use set_mode_and_regno.
18033 * expr.c (init_expr_target): Likewise.
18034 * ira.c (setup_prohibited_mode_move_regs): Likewise.
18035 * postreload.c (reload_cse_simplify_operands): Likewise.
18037 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18039 * caller-save.c (init_caller_save): Use word_mode and
18040 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
18041 * expr.c (init_expr_target): Likewise.
18042 * ira.c (setup_prohibited_mode_move_regs): Likewise.
18043 * postreload.c (reload_cse_regs_1): Likewise.
18045 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18047 * rtl.def (REG): Change format to "r".
18048 * rtl.h (rtunion): Remove rt_reg.
18049 (reg_info): New structure.
18050 (rtx_def): Add reg field to main union.
18051 (X0REGATTR): Delete.
18052 (REG_CHECK): New macro.
18053 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
18054 * rtl.c (rtx_format): Document "r".
18055 (rtx_code_size): Handle REG specially.
18056 * gengenrtl.c (special_format): Return true for formats
18058 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
18059 Deal with REG_ATTRS after the field loop.
18060 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
18061 * expmed.c (init_expmed): Call gen_raw_REG instead of
18063 * expr.c (init_expr_target): Likewise.
18064 * regcprop.c (maybe_mode_change): Likewise.
18065 * varasm.c (make_decl_rtl): Likewise.
18066 * final.c (leaf_renumber_regs_insn): Return early after
18068 * genemit.c (gen_exp): Handle 'r' fields.
18069 * genpeep.c (match_rtx): Likewise.
18070 * gensupport.c (subst_pattern_match): Likewise.
18071 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
18072 (alter_constraints, subst_dup): Likewise.
18073 * read-rtl.c (read_rtx_code): Likewise.
18074 * print-rtl.c (print_rtx): Likewise.
18075 * genrecog.c (find_operand, find_matching_operand): Likewise.
18076 (validate_pattern, match_pattern_2): Likewise.
18077 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
18078 (rtx_test::regno_field): New function.
18079 (operator ==, safe_to_hoist_p, transition_parameter_type)
18080 (parameter_type_string, print_parameter_value)
18081 (print_nonbool_test, print_test): Handle new enum values.
18082 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
18083 * lra-constraints.c (operands_match_p): Likewise.
18085 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18087 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
18088 Change type of new_regno to unsigned int.
18089 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
18090 new_regno to unsigned int.
18091 (df_ref_change_reg_with_loc): Remove old_regno parameter.
18092 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
18093 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
18094 (SET_REGNO_RAW): Add space after ",".
18096 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18098 * rtl.h (REG_NREGS): New macro
18099 * alias.c (record_set): Use it.
18100 * cfgcleanup.c (mark_effect): Likewise.
18101 * combine.c (likely_spilled_retval_1): Likewise.
18102 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
18103 (move_deaths, distribute_notes): Likewise.
18104 * cselib.c (cselib_record_set): Likewise.
18105 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
18106 * df-scan.c (df_mark_reg): Likewise.
18107 * dse.c (look_for_hardregs): Likewise.
18108 * dwarf2out.c (reg_loc_descriptor): Likewise.
18109 (multiple_reg_loc_descriptor): Likewise.
18110 * expr.c (write_complex_part, read_complex_part): Likewise.
18111 (emit_move_complex): Likewise.
18112 * haifa-sched.c (setup_ref_regs): Likewise.
18113 * ira-lives.c (mark_hard_reg_live): Likewise.
18114 * lra.c (lra_set_insn_recog_data): Likewise.
18115 * mode-switching.c (create_pre_exit): Likewise.
18116 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
18117 (reload_combine_recognize_pattern): Likewise.
18118 (reload_combine_note_use, move2add_record_mode): Likewise.
18119 (reload_cse_move2add): Likewise.
18120 * reg-stack.c (subst_stack_regs_pat): Likewise.
18121 * regcprop.c (kill_value, copy_value): Likewise.
18122 (copyprop_hardreg_forward_1): Likewise.
18123 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
18124 (build_def_use): Likewise.
18125 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
18126 (deps_analyze_insn): Likewise.
18127 * sched-rgn.c (check_live_1, update_live_1): Likewise.
18128 * sel-sched.c (count_occurrences_equiv): Likewise.
18129 * valtrack.c (dead_debug_insert_temp): Likewise.
18131 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18133 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
18134 * dse.c (note_add_store): Likewise.
18135 * ira-lives.c (mark_hard_reg_dead): Likewise.
18136 * loop-invariant.c (mark_reg_store): Likewise.
18137 (mark_reg_death): Likewise.
18138 * postreload.c (reload_combine): Likewise.
18139 (reload_combine_note_store): Likewise.
18140 (reload_combine_note_use): Likewise.
18141 * recog.c (peep2_reg_dead_p): Likewise.
18143 2015-05-19 Alan Modra <amodra@gmail.com>
18145 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
18146 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
18147 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
18149 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
18150 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
18151 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
18152 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
18154 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
18156 * config/mips/mips.md (JOIN_MODE): New mode iterator.
18157 (join2_load_Store<JOIN_MODE:mode>): New pattern.
18158 (join2_loadhi): Likewise.
18159 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
18160 load-load and store-stores.
18161 * config/mips/mips.opt (mload-store-pairs): New option.
18162 (TARGET_LOAD_STORE_PAIRS): New macro.
18163 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
18164 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
18165 * config/mips/mips.c (mips_load_store_bonding_p): New function.
18167 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
18169 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
18171 * dojump.c (do_compare_rtx_and_jump): Likewise.
18172 * expmed.c (emit_store_flag_1): Likewise.
18173 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
18174 * final.c (sprint_ul): Use std::reverse for reversing a string.
18175 * fold-const.c (extract_muldiv_1): Use std::swap.
18176 * genmodes.c (emit_mode_int_n): Likewise.
18177 * ifcvt.c (dead_or_predicable): Likewise.
18178 * ira-build.c (ira_merge_live_ranges): Likewise.
18179 (swap_allocno_copy_ends_if_necessary): Likewise.
18180 * ira.c (ira_setup_alts): Likewise.
18181 * loop-iv.c (iv_analyze_expr): Likewise.
18182 (implies_p): Likewise.
18183 (canon_condition): Likewise.
18184 * lra-constraints.c (swap_operands): Likewise.
18185 * lra-lives.c (lra_merge_live_ranges): Likewise.
18186 * omega.c (swap): Remove.
18188 (omega_unprotect_1): Use std::swap.
18189 (omega_solve_geq): Likewise.
18190 * optabs.c (expand_binop_directly): Likewise.
18191 (expand_binop): Likewise.
18192 (emit_conditional_move): Likewise.
18193 (emit_conditional_add): Likewise.
18194 * postreload.c (reload_cse_simplify_operands): Likewise.
18195 * reg-stack.c (emit_swap_insn): Likewise.
18196 (swap_to_top): Likewise.
18197 (compare_for_stack_reg): Likewise.
18198 (subst_asm_stack_regs): Likewise.
18199 * reload.c (find_reloads): Likewise.
18200 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
18201 * sel-sched.c (invoke_reorder_hooks): Likewise.
18202 (create_block_for_bookkeeping): Likewise.
18203 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
18204 (lambda_matrix_right_hermite): Use std::swap.
18205 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
18206 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
18207 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
18208 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
18209 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
18210 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
18211 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
18212 * tree-vrp.c (compare_ranges): Likewise.
18213 * var-tracking.c (add_with_sets): Likewise.
18214 (vt_find_locations): Likewise.
18216 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
18218 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
18220 (FBSD_ENDFILE_SPEC): Likewise.
18221 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
18222 config/freebsd-spec.h.
18223 (ENDFILE_SPEC): Likewise.
18225 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
18226 Richard Henderson <rth@redhat.com>
18229 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
18230 Check for a memory location that is not a reference (using an AND)
18231 to an unaligned location here.
18232 * config/alpha/predicates.md (normal_memory_operand): Remove.
18234 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
18236 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
18237 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
18239 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
18241 * config/mips/mips.c (micromips_globals): New variable.
18242 (mips_set_compression_mode): Save and reinitialize target-dependent
18243 state for microMIPS.
18245 2015-05-18 Martin Liska <mliska@suse.cz>
18247 * dbgcnt.def: Add new counter.
18248 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
18250 2015-05-18 Martin Liska <mliska@suse.cz>
18252 * dbgcnt.def: Sort counters.
18253 * opts.c (common_handle_option): Do not compile if
18254 -fdbg-cnt-list is enabled.
18256 2015-05-18 Tom de Vries <tom@codesourcery.com>
18258 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
18259 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
18260 address operator to va_list operand.
18261 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
18263 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
18265 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
18266 * config/s390/s390.c (s390_gimplify_va_arg): Same.
18267 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
18269 2015-05-18 Tom de Vries <tom@codesourcery.com>
18271 * tree-ssa-tail-merge.c: Fix whitespace.
18273 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
18275 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
18276 cortex-a17, and cortex-a17.cortex-a7.
18278 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
18281 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
18283 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
18286 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
18287 QImode inner modes for TARGET_AVX512BW. Force mask operand
18288 to a register for AVX512F modes.
18290 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18292 * toplev.c (emit_debug_global_declarations): Do not output debug info
18293 when doing slim LTO objects.
18295 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18297 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
18298 odr_types_equivalent_p): Declare.
18299 (odr_type_p): Use gcc_checking_assert.
18300 (type_in_anonymous_namespace_p) Declare.
18301 (type_with_linkage_p): Declare.
18302 * common.opt (Wlto-type-mismatch): New warning.
18303 * ipa-devirt.c (compound_type_base): New function.
18304 (odr_or_derived_type_p): New function.
18305 (odr_types_equivalent_p): New function.
18306 (add_type_duplicate): Simplify.
18307 (type_with_linkage_p): Add hack to prevent false positives on C types
18308 (type_in_anonymous_namespace_p): Likewise.
18309 * tree.c (need_assembler_name_p): Use type_with_linkage.
18310 * tree.h (type_in_anonymous_namespace_p): Remove.
18311 * doc/invoke.texi (-Wlto-type-mismatch): Document
18313 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18315 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
18316 (verify_type): Verify STRING_FLAG.
18318 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
18321 * tree-pretty-print.c (percent_K_format): Replace locus pointer
18322 with accessor function.
18323 * tree-diagnostic.c (diagnostic_report_current_function): Use
18324 diagnostic_location function.
18325 (maybe_unwind_expanded_macro_loc): Likewise.
18326 (virt_loc_aware_diagnostic_finalizer): Likewise.
18327 (default_tree_printer): Replace locus pointer with accessor function.
18328 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
18329 (diagnostic_set_info_translated): Initialize second location.
18330 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
18331 (diagnostic_show_locus): Handle two locations. Call
18332 diagnostic_print_caret_line.
18333 (diagnostic_print_caret_line): New.
18334 (default_diagnostic_starter): Use diagnostic_location function.
18335 (diagnostic_report_diagnostic): Use diagnostic_location function.
18336 (verbatim): Do not set text.locus.
18337 * diagnostic.h (struct diagnostic_info): Remove location field.
18338 (struct diagnostic_context): Make caret_chars an array of two.
18339 (diagnostic_location): New inline.
18340 (diagnostic_expand_location): Handle two locations.
18341 (diagnostic_same_line): New inline.
18342 (diagnostic_print_caret_line): Declare.
18343 (CARET_LINE_MARGIN): New constant.
18344 * pretty-print.c (pp_printf): Do not set text.locus.
18345 (pp_verbatim): Do not set text.locus.
18346 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
18347 (struct text_info): Replace locus pointer with locations
18348 array. Add accessor functions.
18350 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
18351 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18354 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
18355 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
18356 large constants in register instead of splitting them.
18358 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
18361 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
18362 replacements in memory addresses.
18363 (get_unaligned_address): Ditto.
18365 2015-05-16 James Bowman <james.bowman@ftdichip.com>
18367 * config/ft32/*: New files for FT32 port.
18368 * doc/install.texi: Add FT32 information.
18369 * doc/invoke.texi: Add FT32 information.
18370 * doc/md.texi: Add FT32 information.
18371 * doc/contrib.texi: Self added.
18373 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
18375 PR tree-optimization/64454
18376 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
18377 (-1 - A -> ~A): Remove unnecessary condition.
18379 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
18381 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
18382 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
18383 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
18385 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
18387 * ipa-chkp.h (chkp_wrap_function): New.
18388 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
18389 (chkp_wrap_function_name): New.
18390 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
18391 to get wrapper name.
18392 * lto-cgraph.c: Include ipa-chkp.h.
18393 (input_cgraph_1): Avoid alias chain for wrappers.
18395 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18397 PR middle-end/66134
18398 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
18399 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
18401 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18403 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
18404 (AARCH64_FL_SLOWMUL): Delete.
18405 (AARCH64_FL_CRC): Redefine to 1<<3.
18406 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
18408 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18410 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
18413 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
18415 * config/alpha/alpha.md (extendqidi2): Use general_operand
18416 instead of some_operand for operand[1] predicate.
18417 (extendhidi2): Ditto.
18418 (cbranchdi4): Use general_operand instead of some_operand
18419 for operand[1] and operands[2] predicates.
18420 (cstoredi4): Ditto.
18421 * config/alpha/predicates.md (some_operand): Remove unused predicate.
18422 (some_ni_operand): Ditto.
18424 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
18426 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
18427 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
18428 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
18429 low part of the constant using alpha_emit_set_const_1.
18430 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
18432 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
18434 * varasm.c (output_constant_pool_1): Pass down alignment from
18435 constant pool entry's descriptor to output_constant_pool_2.
18436 (output_object_block): Add comment prior to call to
18437 output_constant_pool_1.
18439 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
18441 PR rtl-optimization/65862
18442 * target.def (ira_change_pseudo_allocno_class): New hook.
18443 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
18445 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
18446 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
18448 * ira-costs.c (find_costs_and_classes): Call the hook and change
18449 classes when it is necessary.
18450 * doc/tm.texi: Update.
18452 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
18454 * config/i386/i386.md (sibcall_memory): Check that register with
18455 callee address is not also used as one of the arguments, instead
18456 of checking that it is not live after the sibcall.
18457 (sibcall_pop_memory): Ditto.
18458 (sibcall_value_memory): Ditto.
18459 (sibcall_value_pop_memory): Ditto.
18461 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
18463 * generic-match-head.c (types_match): Handle non-types.
18464 * gimple-match-head.c (types_match): Likewise.
18465 * match.pd: Remove unnecessary TREE_TYPE for types_match.
18467 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
18469 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
18470 (csneg3<mode>_insn): Enable expansion of pattern.
18472 2015-05-14 Nick Clifton <nickc@redhat.com>
18474 * config/rl78/rl78.c (rl78_select_section): Select the correct
18475 default section based upon the category of the decl.
18477 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
18479 PR rtl-optimization/30967
18480 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
18481 destination mode for the cost of scc patterns.
18483 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
18485 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
18486 using SWIM248 mode iterator.
18487 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
18488 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
18489 for operand[2] constraint.
18490 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
18492 2015-05-13 Jakub Jelinek <jakub@redhat.com>
18494 PR middle-end/66133
18495 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
18496 make sure it is never noreturn, even when the task body does not
18498 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
18499 right before GIMPLE_OMP_RETURN.
18500 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
18501 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
18502 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
18504 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18506 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
18507 * tree-ssa-math-opts.c: Include params.h
18508 (pow_synth_sqrt_info): New struct.
18509 (representable_as_half_series_p): New function.
18510 (get_fn_chain): Likewise.
18511 (print_nested_fn): Likewise.
18512 (dump_fractional_sqrt_sequence): Likewise.
18513 (dump_integer_part): Likewise.
18514 (expand_pow_as_sqrts): Likewise.
18515 (gimple_expand_builtin_pow): Use above to attempt to expand
18516 pow as series of square roots. Removed now unused variables.
18518 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
18520 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
18521 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
18522 Remove *p0 and *p1 arguments. Rewrite function.
18523 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
18524 (alpha_split_const_mov): Update calls to alpha_extract_integer and
18525 alpha_emit_set_long_const.
18526 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
18527 (alpha_output_mi_thunk_osf): Ditto.
18528 * config/alpha/alpha.md (movti): Do not check operands[1]
18531 2015-05-13 Richard Biener <rguenther@suse.de>
18533 PR tree-optimization/66129
18534 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
18536 (vect_schedule_slp_instance): Fix typo.
18538 2015-05-13 David Malcolm <dmalcolm@redhat.com>
18540 * common.opt (fdump-internal-locations): New option.
18541 * input.c: Include diagnostic-core.h.
18542 (get_end_location): New function.
18543 (write_digit): New function.
18544 (write_digit_row): New function.
18545 (dump_location_range): New function.
18546 (dump_labelled_location_range): New function.
18547 (dump_location_info): New function.
18548 * input.h (dump_location_info): New prototype.
18549 * toplev.c (compile_file): Handle flag_dump_locations.
18551 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
18553 * gimple-expr.h (is_gimple_constant): Reorder.
18554 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
18556 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
18558 * combine.c (simplify_set): When generating a CC set, if the
18559 source already is in the correct mode, do not wrap it in a
18560 compare. Simplify the rest of that code.
18562 2015-05-13 Richard Biener <rguenther@suse.de>
18564 PR tree-optimization/66123
18565 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
18568 2015-05-13 Richard Biener <rguenther@suse.de>
18570 PR middle-end/66110
18571 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
18573 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
18575 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
18577 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
18578 * aclocal.m4: Regenerated with automake-1.11.6.
18580 2015-05-13 Tom de Vries <tom@codesourcery.com>
18582 PR tree-optimization/66010
18583 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
18584 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
18585 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
18586 and rval based on do_deref.
18588 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18591 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
18592 link time constants into adress expressions and therefore set
18595 2015-05-13 Jakub Jelinek <jakub@redhat.com>
18598 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
18599 Use SWI248 iterator instead of SWI.
18600 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
18601 Use eq_attr "alternative" "0" instead of match_test in
18602 length_immediate attribute computation.
18603 (*mulvhi4, *mulvhi4_1): New define_insns.
18606 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
18607 SIGNED to get precision of non-negative value.
18609 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18612 * function.c (diddle_return_value_1): Process bounds first.
18613 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
18616 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18618 PR rtl-optimization/64616
18619 * loop-invariant.c (can_move_invariant_reg): New.
18620 (move_invariant_reg): Call above new function to decide whether
18621 instruction can just be moved, skipping creation of temporary
18624 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18626 PR target/pr66047.c
18627 * i386.c (ix86_function_sseregparm): Only return -1 if local function
18628 with implied regparm is called from -mno-sse function.
18629 (init_cumulative_args): Output error if ix86_function_sseregparm
18630 return -1 and SSE register would be needed.
18631 (function_arg_advance_32): Likewise.
18632 (function_arg_32): Likewise.
18633 * i386.h (ix86_args): Add decl field.
18635 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18638 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
18639 inlines across optimization boundary.
18641 2015-05-12 Jason Merrill <jason@redhat.com>
18643 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
18644 string literal and macro name.
18646 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
18648 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
18649 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
18650 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
18652 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18654 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
18655 (-Wmisleading-indentation): New option.
18656 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
18658 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
18660 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
18661 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
18662 (alpha_extract_integer): Ditto.
18663 (alpha_legitimate_constant_p): Ditto.
18664 (alpha_split_tmode_pair): Ditto.
18665 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
18666 (alpha_expand_mov): Ditto.
18667 (print_operand): Remove handling of 'H' modifier.
18668 <case 'm'>: Remove CONST_DOUBLE handling.
18669 (summarize_insn): Handle CONST_WIDE_INT.
18670 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
18672 (movti): Handle CONST_WIDE_INT.
18673 * config/alpha/constraints.md ('H'): Remove constraint definition.
18674 ('G'): Do not match MODE_FLOAT class.
18675 * config/alpha/predicates.md (const0_operand): Also match
18677 (non_add_const_operand): Ditto.
18678 (non_zero_const_operand): Ditto.
18679 (some_operand): Ditto.
18680 (input_operand): Ditto. Handle CONST_WIDE_INT.
18681 (and_operand): Do not match const_double.
18682 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
18684 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
18687 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
18688 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
18689 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
18690 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
18691 is_mm_seq_cst, is_mm_sync): New accessor functions.
18692 * builtins.c (expand_builtin_sync_operation,
18693 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
18694 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
18695 (get_memmodel, expand_builtin_atomic_compare_exchange,
18696 expand_builtin_atomic_load, expand_builtin_atomic_store,
18697 expand_builtin_atomic_clear): Use new accessor routines.
18698 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
18699 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
18700 (maybe_emit_sync_lock_test_and_set): Use new accessors and
18701 MEMMODEL_SYNC_ACQUIRE.
18702 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
18703 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
18704 expand_atomic_store): Use new accessors.
18705 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
18706 * tsan.c (instrument_builtin_call): Update check for memory model beyond
18707 final enum to use MEMMODEL_LAST.
18708 * c-family/c-common.c: Use new accessor for memmodel_base.
18709 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
18711 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
18712 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
18713 mem_thread_fence, *dmb): Likewise.
18714 * config/alpha/alpha.c (alpha_split_compare_and_swap,
18715 alpha_split_compare_and_swap_12): Likewise.
18716 * config/arm/arm.c (arm_expand_compare_and_swap,
18717 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
18718 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
18719 atomic_loaddi): Likewise.
18720 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
18722 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
18723 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
18725 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
18726 atomic_store<mode>, atomic_compare_and_swap<mode>,
18727 atomic_exchange<mode>): Use new accessors.
18728 * config/mips/mips.c (mips_process_sync_loop): Likewise.
18729 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
18730 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
18731 rs6000_post_atomic_barrier): Add new cases.
18732 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
18733 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
18734 (atomic_load<mode>): Add new cases and use new accessors.
18735 (store_quadpti): Add new cases.
18736 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
18738 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
18739 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
18742 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18744 * ipa-devirt.c (type_with_linkage_p): New function.
18745 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
18747 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
18748 (can_be_name_hashed_p): Simplify.
18749 (hash_odr_name): Check that type has linkage before checking if it is
18751 (types_same_for_odr): Likewise.
18752 (odr_name_hasher::equal): Likewise.
18753 (odr_subtypes_equivalent_p): Likewise.
18754 (warn_types_mismatch): Likewise.
18755 (get_odr_type): Likewise.
18756 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
18757 * ipa-utils.h (odr_type_p): Move offline.
18758 * tree.c (need_assembler_name_p): Fix handling of types
18760 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
18762 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18764 * timevar.c (timevar_enable): Delete in favor of...
18765 (g_timer): New global.
18766 (struct timevar_def): Move to timevar.h inside class timer.
18767 (struct timevar_stack_def): Likewise.
18768 (timevars): Delete global in favor of field "m_timevars" within
18769 class timer in timevar.h
18770 (stack): Likewise, in favor of field "m_stack".
18771 (unused_stack_instances): Likewise, in favor of field
18772 "m_unused_stack_instances".
18773 (start_time): Likewise, in favor of field "m_start_time".
18774 (get_time): Eliminate check for timevar_enable.
18775 (timer::timer): New function, built from part of timevar_init.
18776 (timevar_init): Rewrite idempotency test from using
18777 "timevar_enable" bool to using dynamic allocation of "g_timer".
18778 Move rest of implementation into timer's constructor.
18779 (timevar_push_1): Rename to...
18780 (timer::push): ...this, adding "m_" prefixes to variables that
18781 are now fields of timer.
18782 (timevar_pop_1): Likewise, rename to...
18783 (timer::pop): ...this, and add "m_" prefixes.
18784 (timevar_start): Replace test for "timevar_enable" with one for
18785 "g_timer", and move bulk of implementation to...
18786 (timer::start): ...here, adding "m_" prefixes.
18787 (timevar_stop): Likewise, from here...
18788 (timer::stop): ...to here.
18789 (timevar_cond_start): Likewise, from here...
18790 (timer::cond_start): ...to here.
18791 (timevar_cond_stop): Likewise, from here...
18792 (timer::cond_stop): ...to here.
18793 (validate_phases): Rename to...
18794 (timer::validate_phases): ...this, and add "m_" prefixes. Make
18795 locals "total" and "tv" const.
18796 (timevar_print): Rename to...
18797 (timer::print): ...this, and add "m_" prefixes. Make locals
18798 "total" and "tv" const. Eliminate test for timevar_enable.
18799 * timevar.h (timevar_enable): Eliminate.
18800 (g_timer): New declaration.
18801 (timevar_push_1): Eliminate.
18802 (timevar_pop_1): Eliminate.
18803 (timevar_print): Eliminate.
18804 (class timer): New class.
18805 (timevar_push): Rewrite to use g_timer.
18806 (timevar_pop): Likewise.
18807 * toplev.c (toplev::~toplev): Likewise.
18809 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
18811 * arm-protos.h (arm_sched_autopref): Delete.
18812 (tune_params): Re-organize, use enums for flag values.
18813 (FUSE_OPS): New macro.
18814 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
18815 (ARM_PREFETCH_BENEFICIAL): Likewise.
18816 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
18817 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
18818 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
18819 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
18820 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
18821 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
18822 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
18823 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
18825 (arm_option_override, thumb2_reorg, arm_print_tune_info)
18826 (aarch_macro_fusion_pair_p): Update uses of current_tune.
18827 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
18829 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
18831 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
18834 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
18835 Sandra Loosemore <sandra@codesourcery.com>
18837 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
18839 (REG_CLASS_NAMES): Add "IJMP_REGS".
18840 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
18841 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
18842 use new "c" register constraint.
18843 * config/nios2/constraint.md (c): New register constraint
18844 corresponding to IJMP_REGS.
18846 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18848 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
18849 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
18850 define_splits): Delete, revamp, transmogrify into ...
18851 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18852 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18853 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18856 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18858 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
18859 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
18861 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18863 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
18864 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
18865 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
18866 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
18867 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
18868 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
18869 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
18870 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
18871 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
18872 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18873 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
18874 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
18875 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
18876 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
18877 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
18878 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
18879 and 30 corresponding splitters): Delete.
18881 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18883 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
18886 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18888 * combine.c (recog_for_combine_1): New function, factored out
18889 from recog_for_combine.
18890 (change_zero_ext): New function.
18891 (recog_for_combine): If recog fails, try again with the pattern
18892 modified by change_zero_ext; if that still fails, restore the
18895 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18897 * combine.c (get_undo_marker): New function.
18898 (undo_to_marker): New function, largely factored out from ...
18899 (undo_all): ... this. Adjust.
18901 2015-05-12 Richard Biener <rguenther@suse.de>
18903 PR tree-optimization/66101
18904 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
18905 fixup if we turn a loop exit edge to a fallthru edge.
18907 2015-05-12 Richard Biener <rguenther@suse.de>
18909 PR tree-optimization/37021
18910 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
18911 (SLP_TREE_TWO_OPERATORS): New define.
18912 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
18913 SLP_TREE_TWO_OPERATORS.
18914 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
18916 (vect_build_slp_tree): Adjust.
18917 (vect_analyze_slp_cost_1): Likewise.
18918 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
18919 emitting two vector stmts and mixing the results.
18921 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
18923 * call.c (print_z_candidates): Remove dead code.
18925 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18927 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
18928 and zEC12_simple_fp.
18929 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
18932 2015-05-12 Tom de Vries <tom@codesourcery.com>
18934 PR tree-optimization/66010
18935 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
18937 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
18938 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
18939 va_lists are passed, and remove corresponding handling.
18940 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
18941 do_deref argument to ifn_va_arg.
18942 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
18945 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18948 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
18949 REG before taking its REGNO.
18951 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
18953 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
18954 rsp->sign_bit_copies and rsp->nonzero_bits into ...
18955 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
18956 present to get more accurate information about the number of sign bit
18957 copies and non zero bits.
18959 2015-05-12 Richard Biener <rguenther@suse.de>
18961 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
18962 do not allow unrolling.
18964 2015-05-11 Richard Henderson <rth@redhat.com>
18966 * config/i386/i386-modes.def (CCP): New.
18967 * config/i386/i386.c (put_condition_code): Handle it.
18968 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
18970 2015-05-11 Richard Henderson <rth@redhat.com>
18972 * target.def (md_asm_clobbers): Replace with...
18973 (md_asm_adjust): this.
18974 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
18975 (TARGET_MD_ASM_ADJUST): New.
18976 * tm.texi: Rebuild.
18977 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
18978 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
18979 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
18981 * cfgexpand.c (check_operand_nalternatives): Accept vector of
18982 constraints instead of lists of outputs and inputs.
18983 (expand_asm_stmt): Save and restore input_location around the
18984 body of the function. Move asm data into vectors instead of
18985 building tree lists. Generate cleanup sequences as needed,
18986 rather than waiting til the end. Use new md_asm_adjust hook.
18988 * config/vxworks.c: Include vec.h before target.h.
18989 * gimple.c: Likewise.
18990 * incpath.c: Likewise.
18991 * mode-switching.c: Likewise.
18993 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
18994 (cris_md_asm_adjust): this.
18995 (TARGET_MD_ASM_CLOBBERS): Remove.
18996 (TARGET_MD_ASM_ADJUST): New.
18997 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
18998 (ix86_md_asm_adjust): this.
18999 (TARGET_MD_ASM_CLOBBERS): Remove.
19000 (TARGET_MD_ASM_ADJUST): New.
19001 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
19002 (mn10300_md_asm_adjust): this.
19003 (TARGET_MD_ASM_CLOBBERS): Remove.
19004 (TARGET_MD_ASM_ADJUST): New.
19005 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
19006 (rs6000_md_asm_adjust): this.
19007 (TARGET_MD_ASM_CLOBBERS): Remove.
19008 (TARGET_MD_ASM_ADJUST): New.
19009 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
19010 (visium_md_asm_adjust): this.
19011 (TARGET_MD_ASM_CLOBBERS): Remove.
19012 (TARGET_MD_ASM_ADJUST): New.
19014 2015-05-11 Richard Henderson <rth@redhat.com>
19016 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
19017 if noutputs is zero.
19018 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
19020 * cfgexpand.c (expand_asm_operands): Merge into...
19021 (expand_asm_stmt): ... here.
19023 * cfgexpand.c (expand_asm_operands): Don't call
19024 resolve_asm_operand_names.
19025 * stmt.c (resolve_asm_operand_names): Clarify block comment.
19027 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
19029 * dwarf2out.c (gen_member_die): Sanity check that we access
19030 TYPE_MAIN_VARIANT for TYPE_METHODS.
19031 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
19032 checking TYPE_METHODS.
19033 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
19035 (build_distinct_type_copy): Clear TYPE_METHODS.
19036 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
19037 (verify_type): Allow TYPE_METHODS to be error_mark_node.
19038 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
19040 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
19042 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
19043 (emit_pattern_before_setloc): Likewise.
19045 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
19047 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
19048 for define_peephole2s.
19049 (get_peephole2_pattern): New function.
19050 (main): Use it. Call validate_pattern.
19052 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19054 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
19055 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
19056 (Last callee saved reg is different for AVR_TINY architecture)
19058 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
19060 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
19061 when looking for memory references.
19063 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
19066 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
19067 via function pointers.
19069 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
19071 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
19072 indirect call by forcing address into a pseudo with -fno-plt.
19073 * common.opt (flag_plt): New option.
19074 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
19075 ([-fno-plt]): Document.
19077 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
19080 * config/rs6000/option-defaults.h: Add space between string literal
19083 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
19085 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
19086 accross ARM targets.
19088 2015-05-11 Christian Bruel <christian.bruel@st.com>
19090 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
19091 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
19093 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
19095 PR rtl-optimization/66076
19096 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
19097 Don't grow the heap array if it is already big enough from a
19098 previous iteration.
19100 2015-05-11 Christian Bruel <christian.bruel@st.com>
19102 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
19103 (is_called_in_ARM_mode): Remove.
19104 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
19105 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
19106 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
19107 arm_declare_function_name.
19109 2015-05-11 Christian Bruel <christian.bruel@st.com>
19111 * config/arm/arm.c (arm_option_override): Reoganized and split into :
19112 (arm_option_params_internal); New function.
19113 (arm_option_check_internal): New function.
19114 (arm_option_override_internal): New function.
19115 (thumb_code, thumb1_code): Remove.
19116 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
19117 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
19118 (thumb_code, thumb1_code): Remove.
19119 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
19121 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
19123 * config/alpha/alpha.c (alpha_emit_set_const_1)
19124 (alpha_emit_set_long_const, alpha_extract_integer)
19125 (alpha_legitimate_constant_p, alpha_split_const_mov)
19126 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
19127 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
19128 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
19130 * config/alpha/predicates.md (mode_mask_operand): Do not match
19132 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
19133 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
19134 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
19135 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
19136 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
19138 2015-05-11 Jakub Jelinek <jakub@redhat.com>
19141 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
19142 default_binds_local_p_2.
19143 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
19144 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
19146 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19148 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
19150 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19152 Patch by Richard Biener
19153 * coverage.c (coverage_obj_init): Delay building of type variant
19154 until the type is finished.
19156 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19158 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
19159 mismatch between C and C++ type; compoare correctly ARG_TYPES
19160 for non-prototypes and output correctly parameter index for METHOD_TYPE.
19161 (odr_types_equivalent_p): Fix wording of warning about attributes;
19162 it is OK to match prototype and non-prototype.
19164 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19166 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
19167 TYPE_ARG_TYPES list.
19168 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
19169 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
19171 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19173 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
19174 * tree.h (is_lang_specific): Constify.
19176 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
19178 PR tree-optimization/64454
19179 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
19182 2015-05-08 Jason Merrill <jason@redhat.com>
19184 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
19185 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
19186 config/darwin.h, config/darwin9.h, config/elfos.h,
19187 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
19188 config/microblaze/microblaze.h, config/mips/mips.h,
19189 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
19190 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
19191 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
19192 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
19193 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
19194 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
19195 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
19196 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
19197 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
19198 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
19199 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
19200 between string literal and macro name.
19202 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19204 * jump.c: Change argument types to rtx_insn *.
19207 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19209 * lra-constraints.c: Change argument type to rtx_insn *.
19211 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19213 * df-problems.c: Change argument type to rtx_insn *.
19215 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19217 * combine.c: Change argument type to rtx_insn *.
19219 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19222 * rtlanal.c: Change argument type to rtx_insn *.
19224 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19226 * sched-deps.c: Change argument types to rtx_insn *.
19227 * sched-int.h: Adjust.
19229 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19231 * dwarf2cfi.c: Change argument type to rtx_insn *.
19233 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19235 * ira.c (decrease_live_ranges_number): Changetype of local
19236 variable to rtx_insn *.
19237 * recog.c: Change argument types to rtx_insn *.
19240 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19242 * reorg.c: Change argument types to rtx_insn *.
19244 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19246 * ira-color.c: Change argument types to rtx_insn *.
19247 * lra-eliminations.c: Likewise.
19250 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19252 * gcse.c: Change argument types to rtx_insn *.
19254 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19256 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
19258 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19260 * emit-rtl.c (emit_debug_insn_before): Change argument type to
19264 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19266 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
19269 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19271 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
19274 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19276 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
19279 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19281 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
19284 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19286 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
19290 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19292 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
19296 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19298 * except.c (can_nonlocal_goto): Change type of argument to
19302 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19304 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
19307 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19309 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
19310 * cfgrtl.c (can_delete_label_p): Adjust.
19313 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19315 * reorg.c (stop_search_p): Change argument to rtx_insn *.
19317 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19319 * except.c (make_reg_eh_region_note): Change argument to
19321 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
19322 * except.h: Adjust.
19324 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19326 * mode-switching.c (commit_mode_sets): Change type of local
19327 variable from rtx to rtx_insn *.
19329 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
19331 * doc/install.texi (--enable-languages): Add missing jit and lto info.
19332 Add ^ to grep command.
19333 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
19334 arg to last gimple_simplify declaration. Add missing gimple_build
19335 declaration for built-in function case with four tree args.
19337 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
19338 Szabolcs Nagy <szabolcs.nagy@arm.com>
19340 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
19341 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
19342 (GNU_USER_DYNAMIC_LINKERN32): Update.
19344 2015-05-08 Richard Biener <rguenther@suse.de>
19346 PR tree-optimization/66036
19347 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19348 Handle strided group loads.
19349 (vect_verify_datarefs_alignment): Likewise.
19350 (vect_enhance_data_refs_alignment): Likewise.
19351 (vect_analyze_group_access): Likewise.
19352 (vect_analyze_data_ref_access): Likewise.
19353 (vect_analyze_data_ref_accesses): Likewise.
19354 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
19355 (vectorizable_load): Likewise.
19357 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
19359 * config/rs6000/rs6000.md: Require operand inequality in one
19362 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
19363 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19365 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
19367 * config/rx/rx.md (movdi, movdf): Likewise.
19368 Likewise for define_peephole2s.
19370 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19372 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
19373 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
19374 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
19375 vtst_u64): Rewrite using gcc vector extensions.
19377 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19379 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
19380 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
19382 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19384 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
19386 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19388 * config/glibc-stdint.h (OPTION_MUSL): Define.
19389 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
19390 Change the definition based on OPTION_MUSL for 64 bit targets.
19391 * config/linux.h (OPTION_MUSL): Redefine.
19392 * config/alpha/linux.h (OPTION_MUSL): Redefine.
19393 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
19394 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
19396 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
19397 Szabolcs Nagy <szabolcs.nagy@arm.com>
19399 * config.gcc (LIBC_MUSL): New tm_defines macro.
19400 * config/linux.h (OPTION_MUSL): Define.
19401 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
19402 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
19403 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19404 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19405 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19406 * config/linux.opt (mmusl): New option.
19407 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
19408 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19409 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19410 * configure: Regenerate.
19412 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
19413 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19416 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
19417 * config/i386/knetbsd-gnu64.h: New file.
19419 2015-05-08 Marek Polacek <polacek@redhat.com>
19422 * doc/invoke.texi: Document -Woverride-init-side-effects.
19424 2015-05-07 Marek Polacek <polacek@redhat.com>
19427 * doc/invoke.texi: Document -Wshift-negative-value.
19429 2015-05-06 Aditya Kumar <hiraditya@msn.com>
19431 * gcov-tool.c (do_merge): Refactore to remove int ret.
19432 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
19433 !type == FUNC to type != FUNC.
19434 * reload.h (struct target_reload): Changee to type of
19435 x_spill_indirect_levels from bool to unsigned char.
19437 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
19439 * rtl.h (always_void_p): New function.
19440 * gengenrtl.c (always_void_p): Likewise.
19441 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
19442 with code foo are always VOIDmode.
19443 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
19444 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
19445 compare-elim.c, config/aarch64/aarch64.c,
19446 config/aarch64/aarch64.md, config/alpha/alpha.c,
19447 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
19448 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
19449 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
19450 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19451 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
19452 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
19453 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
19454 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
19455 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
19456 config/ia64/vect.md, config/iq2000/iq2000.c,
19457 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
19458 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
19459 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
19460 config/mep/mep.c, config/microblaze/microblaze.c,
19461 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
19462 config/mn10300/mn10300.c, config/msp430/msp430.c,
19463 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
19464 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
19465 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
19466 config/rs6000/altivec.md, config/rs6000/rs6000.c,
19467 config/rs6000/rs6000.md, config/rs6000/vector.md,
19468 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
19469 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
19470 config/sh/sh.md, config/sh/sh_treg_combine.cc,
19471 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
19472 config/spu/spu.md, config/stormy16/stormy16.c,
19473 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
19474 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
19475 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
19476 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
19477 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
19478 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
19479 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
19480 var-tracking.c: Update calls accordingly.
19482 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19485 PR middle-end/54303
19486 * varasm.c (function_mergeable_rodata_prefix): New function.
19487 (mergeable_string_section): Use it.
19488 (mergeable_constant_section): Use it.
19490 2015-05-07 Jeff Law <law@redhat.com>
19493 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19494 simplifier to narrow arithmetic.
19495 * generic-match-head.c: (types_match, single_use): New functions.
19496 * gimple-match-head.c: (types_match, single_use): New functions.
19498 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19500 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
19503 2015-05-07 Richard Biener <rguenther@suse.de>
19505 PR tree-optimization/66002
19506 * passes.def: Schedule another pass_merge_phi after ifcombine, right
19509 2015-05-07 Marek Polacek <polacek@redhat.com>
19510 Martin Uecker <uecker@eecs.berkeley.edu>
19512 * doc/invoke.texi: Document -fsanitize=bounds-strict.
19513 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
19514 into SANITIZE_NONDEFAULT.
19515 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
19517 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
19520 * config/alpha/alpha.c (alpha_override_options_after_change): New.
19521 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
19522 (alpha_override_options): Move align_loops, align_jumps and
19523 align_functions handling into alpha_override_options_after_change.
19525 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
19526 Chris Jones <chrisj@nvidia.com>
19527 Joshua Conner <jconner@nvidia.com>
19529 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
19530 linking of crtfastmath.o.
19531 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
19533 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19535 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
19536 (cstore<mode>4_unsigned_imm): New expander.
19537 (cstore<mode>4): Remove empty constraint strings. Use the new
19540 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
19543 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
19546 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
19548 * config/aarch64/geniterators.sh: Use standard BRE in sed.
19550 2015-05-06 Alan Modra <amodra@gmail.com>
19553 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
19554 (UNSPEC_NOP): Define.
19555 (reload_vsx_from_gpr<mode>): Add missing DONE.
19556 (reload_gpr_from_vsx<mode>): Likewise.
19557 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
19558 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
19560 2015-05-06 Christian Bruel <christian.bruel@st.com>
19563 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
19564 align_jumps, align_functions into aarch64_override_options_after_change.
19566 2015-05-06 Richard Biener <rguenther@suse.de>
19568 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
19569 vect_transform_slp_perm_load to check if we support a permutation
19570 for basic-block vectorization.
19572 2015-05-06 Nick Clifton <nickc@redhat.com>
19574 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
19575 used, even if it is not being used as a frame pointer.
19577 2015-05-05 Jason Merrill <jason@redhat.com>
19579 * dwarf2out.c (gen_member_die): Don't emit anything for an
19580 anonymous class constructor.
19582 2015-05-05 David Malcolm <dmalcolm@redhat.com>
19584 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
19585 that it reflects the block structure.
19586 (afdo_propagate_edge): Likewise.
19587 (afdo_calculate_branch_prob): Likewise.
19588 (afdo_annotate_cfg): Likewise.
19589 * cfgcleanup.c (equal_different_set_p): Likewise.
19590 (try_crossjump_to_edge): Likewise.
19591 * cgraph.c (cgraph_node::verify_node): Likewise.
19592 * cgraphunit.c (expand_all_functions): Likewise.
19593 * config/i386/i386.c (ix86_expand_copysign): Likewise.
19594 (exact_dependency_1): Likewise.
19595 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
19596 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
19597 * gensupport.c (process_define_subst): Likewise.
19598 * lto-wrapper.c (merge_and_complain): Likewise.
19599 * tree-if-conv.c (if_convertible_bb_p): Likewise.
19600 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
19601 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
19602 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
19603 * tree-vect-loop.c (vectorizable_reduction): Likewise.
19604 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
19605 * tree-vect-stmts.c (vectorizable_shift): Likewise.
19606 * tree-vrp.c (vrp_finalize): Likewise.
19607 * tree.c (variably_modified_type_p): Likewise.
19609 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
19611 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
19612 on darwin12 and later.
19613 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
19614 file to pass -rdynamic on darwin12 and later.
19615 * config/darwin.opt (rdynamic): Add.
19617 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19619 * doc/extend.texi (C Extensions): Update menu for moved Variable
19620 Attributes and Type Attributes sections.
19622 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19625 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
19626 if rep_8byte stringop strategy was specified for 32-bit target.
19628 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
19631 * config/i386/i386.md (vector convert to float spltiter): Check for
19632 xmm16+, when splitting scalar float conversion.
19633 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
19635 2015-05-05 Nick Clifton <nickc@redhat.com>
19637 * config/msp430/msp430-opts.h (enum msp430_regions): New.
19638 * config/msp430/msp430.c (msp430_override_options): Complain if
19639 -mcode-region or -mdata-region is used on a non MSP430X.
19640 (msp430_section_attr): New function. Checks lower, upper and
19642 (msp430_attribute_table): Add lower, upper and either.
19643 (gen_prefix): New function. Generates a prefix for a section
19645 (msp430_select_section): New function - handles the choice of
19646 section for an object. Takes into account memory region
19647 attributes and options.
19648 (msp430_function_section): Use gen_prefix.
19649 (TARGET_SECTION_TYPE_FLAGS): Define.
19650 (msp430_section_type_flags): New function.
19651 (TARGET_ASM_UNIQUE_SECTION): Define.
19652 (msp430_unique_section): New function.
19653 (msp430_output_aligned_decl_common): New function.
19654 (msp430_do_not_relax_short_jumps): New function.
19655 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
19657 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19658 * config/msp430/msp430-protos.h
19659 (msp430_do_not_relax_short_jumps): New prototype.
19660 (msp430_output_aligned_decl_common): New prototype.
19661 * config/msp430/msp430.md (length): New attribute.
19662 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
19663 then use a long code sequence for short jumps.
19664 * config/msp430/msp430.opt (mcode-region): New.
19665 (mdata-region): New.
19666 * doc/invoke.texi: Document new options.
19667 * doc/extend.texi: Document new attributes.
19669 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19671 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
19672 (tune_params): Add field branch_costs.
19673 (aarch64_branch_cost): Declare.
19674 * gcc/config/aarch64.c (generic_branch_cost): New.
19675 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
19676 (cortexa53_tunings): Likewise.
19677 (cortexa57_tunings): Likewise.
19678 (thunderx_tunings): Likewise.
19679 (xgene1_tunings): Likewise.
19680 (aarch64_branch_cost): Define.
19681 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
19683 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19685 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
19686 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
19687 * config/i386/i386.md: Ditto.
19688 * config/i386/winnt.c: Ditto.
19690 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19692 * doc/extend.texi (__atomic Builtins): Move implementation details
19693 to the end of the description, rewrite opening paragraphs, state
19694 difference with __sync builtins, state C11/C++11 assumptions,
19695 weaken itemized descriptions, add explanation of memory model
19696 behaviour, expand description of compare-exchange, simplify text.
19698 2015-05-05 Renlin Li <renlin.li@arm.com>
19700 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
19702 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
19704 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
19705 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19706 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
19707 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19708 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
19709 * configure: Regenerate.
19710 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
19711 * doc/install.texi (aarch64*-*-*): Document new
19712 --enable-fix-cortex-a53-843419 option.
19713 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
19714 and -mno-fix-cortex-a53-843419 options.
19716 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19719 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
19721 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
19723 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
19724 fix overactive TYPE_MIN_VALUE check and add FIXME for type
19725 compatibility problems.
19727 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19729 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
19731 (cbranchsi4_reg): New.
19732 * config/microblaze/microblaze.c
19733 (microblaze_expand_conditional_branch_reg): New.
19734 * config/microblaze/microblaze-protos.h
19735 (microblaze_expand_conditional_branch_reg): New prototype.
19737 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19739 * config/microblaze/microblaze.md (peephole2): New.
19741 2015-05-04 Jeff Law <law@redhat.com>
19744 2015-05-04 Jeff Law <law@redhat.com>
19746 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19747 simplifier to narrow arithmetic.
19748 * generic-match-head.c: (types_match, single_use): New functions.
19749 * gimple-match-head.c: (types_match, single_use): New functions.
19751 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
19754 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
19755 (split_branches): Likewise.
19757 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
19759 * common.opt (fdelete-null-pointer-checks): Init to -1.
19760 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
19761 override flag_delete_null_pointer_checks default.
19762 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
19763 behavior re address zero. Better document target-specific behavior.
19764 (-fisolate-errneous-paths-dereference): Mention relationship to
19765 -fdelete-null-pointer-checks.
19767 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19769 PR tree-optimization/65984
19770 * ubsan.c: Include tree-cfg.h.
19771 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
19772 stmt_could_throw_p test, rename can_throw variable to ends_bb.
19774 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19776 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
19777 to CONST_DOUBLE_P predicate.
19778 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
19779 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
19780 allow only operands that satisfy standard_sse_constant_p predicate.
19781 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
19782 to CONST_DOUBLE_P predicate.
19784 2015-05-04 Jeff Law <law@redhat.com>
19786 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19787 simplifier to narrow arithmetic.
19788 * generic-match-head.c: (types_match, single_use): New functions.
19789 * gimple-match-head.c: (types_match, single_use): New functions.
19791 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
19793 * config/arm/arm.c: Restore bootstrap.
19795 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19797 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
19798 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
19799 as CONST_WIDE_INT, not CONST_DOUBLE.
19800 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
19801 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
19802 (ix86_find_base_term): Do not check for CONST_DOUBLE.
19803 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
19804 (ix86_build_signbit_mask): Rewrite using wide ints.
19805 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
19806 (ix86_rtx_costs): Handle CONST_WIDE_INT.
19807 (find_constant): Ditto.
19808 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
19809 using gen_int_mode.
19810 * config/i386/predicates.md (x86_64_immediate_operand)
19811 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19812 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
19813 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19814 (const0_operand): Also match const_wide_int.
19815 (constm1_operand): Ditto.
19816 (const1_operand): Ditto.
19818 2015-05-04 Richard Biener <rguenther@suse.de>
19820 PR tree-optimization/65965
19821 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
19822 store groups at gaps.
19824 2015-05-04 Richard Biener <rguenther@suse.de>
19826 PR tree-optimization/65935
19827 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
19828 then make sure to apply that swapping to the IL.
19830 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19832 * Makefile.in (PATCHLEVEL_c): New variable.
19833 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
19834 expand the same way as if DEVPHASE_c was non-empty.
19836 2015-05-04 Kai Tietz <ktietz@redhat.com>
19839 * lto-wrapper.c (run_gcc): Open filename
19842 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
19844 * doc/extend.texi (Variable Attributes, Type Attributes): Move
19845 sections up in file, to immediately after the Function Attributes
19848 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
19850 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
19852 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19854 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
19855 (insert_partition_copy_on_edge): Adjust.
19856 (insert_rtx_to_part_on_edge): Likewise.
19857 (insert_part_to_rtx_on_edge): Likewise.
19859 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19861 * function.c (set_return_jump_label): Change type of argument to
19863 * function.h (set_return_jump_label): Adjust.
19865 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19867 * reload.h (struct reg_equivs_t): Change type of init to
19869 * ira.c (fix_reg_equiv_init): Adjust.
19870 * reload1.c (eliminate_regs_1): Likewise.
19871 (init_eliminable_invariants): Likewise.
19873 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19875 * cselib.c (fp_setter_insn): Take a rtx_insn *.
19876 * cselib.h (fp_setter_insn): Adjust.
19878 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19880 * recog.c (struct validate_replace_src_data): Change type of
19881 insn field to rtx_insn *.
19882 (validate_replace_src_group): Change type of argument to rtx_insn *.
19883 * recog.h (validate_replace_src_group): Adjust.
19885 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19887 * haifa-sched.c: Change the type of some variables to rtx_insn *.
19888 * sched-deps.c: Likewise.
19889 * sched-int.h: Likewise.
19890 * sched-rgn.c: Likewise.
19891 * sel-sched.c: Likewise.
19893 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19896 * config/i386/i386.c: Change the type of some arguments to
19898 * config/arm/arm.c: Likewise.
19900 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19902 * lra-constraints.c: Change type of some arguments to rtx_insn *.
19904 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19906 * regcprop.c (kill_autoinc_value): Change type of argument to
19909 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19911 * genrecog.c (print_subroutine): Adjust.
19912 * recog.c (get_bool_attr_mask_uncached): Likewise.
19913 * recog.h (struct recog_data_d): Change the type of insn to
19916 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19918 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
19920 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19922 * df-problems.c (df_set_note): Change type of argument to
19925 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19927 * builtins.c (expand_builtin_trap): Change type of local
19928 variable to rtx_insn *.
19929 (add_sched_insns_for_speculation): Likewise.
19930 (ix86_emit_save_regs): Likewise.
19931 (get_scratch_register_on_entry): Likewise.
19932 (ix86_emit_restore_reg_using_pop): Likewise.
19933 (ix86_emit_leave): Likewise.
19934 (ix86_emit_restore_regs_using_mov): Likewise.
19935 (ix86_expand_epilogue): Likewise.
19937 (rl78_alloc_physical_registers_umul): Likewise.
19938 * cselib.c (discard_useless_locs): Likewise.
19939 (cselib_invalidate_regno): Likewise.
19940 (cselib_invalidate_mem): Likewise.
19941 * function.c (expand_function_start): Likewise.
19942 (emit_use_return_register_into_block): Likewise.
19943 * gcse.c: Likewise.
19944 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
19945 * ifcvt.c (noce_get_alt_condition): Likewise.
19946 * loop-doloop.c (doloop_condition_get): Likewise.
19947 * lra-constraints.c (inherit_in_ebb): Likewise.
19948 * modulo-sched.c (sms_schedule_by_order): Likewise.
19949 * recog.c (next_insn_tests_no_inequality): Likewise.
19950 * reorg.c (emit_delay_sequence): Likewise.
19951 (update_reg_dead_notes): Likewise.
19952 (fix_reg_dead_note): Likewise.
19953 (fill_slots_from_thread): Likewise.
19954 (delete_computation): Likewise.
19956 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
19958 * doc/extend.texi (Variable Attributes): Add menu and proper
19959 @nodes to subsections. Move Microsoft Windows attributes to
19960 their own subsection.
19961 (Type Attributes): Reorganize introduction to remove duplicate
19962 list of attributes. Add menu and proper @nodes to subsections.
19963 Alphabetize the main table of common attributes.
19965 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
19967 * match.pd: New simplification patterns.
19968 (x + (x & 1)) -> ((x + 1) & ~1)
19969 (x & ~(x & y)) -> ((x & ~y))
19970 (x | ~(x | y)) -> ((x | ~y))
19972 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19974 * target.def (attribute_table): Mention that struct attribute_spec
19975 is defined in tree-core.h rather than tree.h
19976 * doc/tm.texi: Regenerate.
19978 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
19980 * genrecog.c (test): Rename to rtx_test. Update rest of file
19983 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
19985 PR translation/65959
19986 * params.h (DEFPARAM): Rename msgid to nocmsgid.
19988 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19990 * gcc/config/aarch64/aarch64-protos.h (tune_params):
19991 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
19992 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
19993 Return value depending on target.
19994 (generic_tunings): Initialize new target settings.
19995 (cortexa53_tunings): Likewise.
19996 (cortexa57_tunings): Likewise.
19997 (thunderx_tunings): Likewise.
19998 (xgene1_tunings): Likewise.
20000 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
20002 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
20003 Make Cortex-A53 shift costs more accurate.
20005 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20007 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
20010 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
20012 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
20013 Calculate cost of op0 and op1 in PLUS and MINUS cases.
20015 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20017 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
20018 Add cost of op0 in the compare-with-fpzero case.
20020 2015-04-30 David Malcolm <dmalcolm@redhat.com>
20022 * builtins.c (fold_builtin_1): Remove spurious second
20024 * cgraph.h (symtab_node::get_availability): Likewise.
20025 * opts.c (common_handle_option): Remove spurious second semicolon.
20026 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
20027 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
20029 2015-04-30 Caroline Tice <cmtice@google.com>
20031 PR gcov-profile/65929
20032 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
20033 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
20034 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
20035 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
20036 * doc/tm.texi: Regenerate.
20037 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
20038 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
20039 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
20040 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
20042 2015-04-30 Marek Polacek <polacek@redhat.com>
20044 * varasm.c (handle_cache_entry): Fix logic.
20046 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20048 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
20049 (*extrsi5_insn_uxtw_alt): Likewise.
20050 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
20051 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
20054 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20056 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
20059 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20061 * config/aarch64/aarch64.md
20062 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
20063 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
20064 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
20065 appropriately. Handle alternative EON form.
20067 2015-04-30 Renlin Li <renlin.li@arm.com>
20069 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
20070 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
20072 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
20075 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
20076 -fstrict-aliasing boundaries.
20078 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20080 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
20081 and [SU]MNEGL patterns.
20083 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20085 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
20086 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
20087 combined arithmetic-shift ops. Properly handle all shift and extend
20088 operations that can occur in combination with PLUS/MINUS.
20089 Rename maybe_fma to compound_p.
20090 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
20091 arithmetic and shift operations.
20093 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20095 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
20096 rather than arith_shift cost when costing ADD/MINUS of an
20099 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
20102 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
20105 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
20107 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
20108 are for the same position.
20110 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
20112 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
20114 (vectorize_loops): Use it.
20116 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
20118 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
20119 for aggregate types.
20120 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
20121 type to be non_ODR.
20122 * tree.c (need_assembler_name_p): Compute mangled name for
20123 non-fundamental types and integer types.
20125 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
20127 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
20129 * expr.c (expand_expr_real_2): Likewise.
20131 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
20133 * tree.c (build_common_builtin_nodes): Do not build
20134 __builtin_alloca_with_align as equivalent of library alloca.
20136 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
20138 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
20139 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
20141 * tree.c: Include print-tree.h and ipa-utils.h
20142 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
20143 (free_lang_data_in_cgraph): Call verify_type.
20144 (verify_type_variant): New function.
20145 (verify_type): New function.
20146 * tree.h (verify_type): Declare.
20148 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
20150 * config/mips/mips-cpus.def: (mips4): Change default processor
20151 from PROCESSOR_R8000 to PROCESSOR_R10000.
20153 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
20155 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
20156 la/jalr instead of jal.
20158 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
20161 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
20162 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
20163 (setcc+movzbl peephole2): Check also clobbered reg.
20164 (setcc+andl peephole2): Ditto.
20166 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
20169 * config/nvptx/mkoffload.c (target_ilp32): New variable.
20170 (main): Set it depending on "-foffload-abi=[...]".
20171 (compile_native, main): Use it to pass "-m32" or "-m64" to the
20174 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
20177 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
20178 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
20179 Flip lane index back at assembly time for bigendian.
20181 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
20183 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
20184 * gimplify.c (gimplify_omp_workshare): Use it.
20186 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
20188 * Makefile.in (build/genrecog.o): Depend on inchash.h.
20189 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
20191 * genrecog.c: Rewrite most of the code except for the third page.
20193 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
20195 * inchash.h, inchash.c: Include bconfig.h for build objects.
20196 * Makefile.in (build/inchash.o): New rule.
20198 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
20201 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
20202 number in type attribute expression.
20204 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
20206 * loop-iv.c (canon_condition): Generalize to all types of integer
20209 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
20211 * gimple-walk.c: Prune duplicate or unneeded includes.
20212 (walk_gimple_asm): Only call parse_input_constraint or
20213 parse_output_constraint if their findings are used.
20214 Honour parse_input_constraint and parse_output_constraint
20217 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
20219 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
20221 2015-04-29 Tom de Vries <tom@codesourcery.com>
20223 PR tree-optimization/65893
20224 * passes.def (pass_all_optimizations): Move pass_stdarg to after
20227 2015-04-29 Richard Biener <rguenther@suse.de>
20229 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
20230 compute GROUP_SIZE for basic-block SLP.
20231 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
20232 take into account gaps.
20233 (vect_get_mask_element): Properly reject references to previous
20235 (vect_transform_slp_perm_load): Likewise.
20237 2015-04-29 Christian Bruel <christian.bruel@st.com>
20240 * config/i386/i386.c (ix86_default_align): New function.
20241 (ix86_override_options_after_change): Call ix86_default_align.
20242 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
20243 (ix86_override_options_after_change): New function.
20245 2015-04-28 Jeff Law <law@redhat.com>
20247 * tree-ssa-dom.c (record_equality); Fix comment typos.
20249 2015-04-28 Tom de Vries <tom@codesourcery.com>
20251 PR tree-optimization/65887
20252 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
20254 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
20256 * doc/extend.texi (Declaring Attributes of Functions): Split into
20257 subsections by target. Alphabetize the table of common attributes.
20258 Rewrite some of the introductory text to reflect the new structure.
20259 Update some cross-references to point to the new subsections.
20260 (Attribute Syntax): Put paragraph about "__" naming here. Remove
20261 duplicate copies in the discussion of function, label, and type
20264 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
20267 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
20269 2015-04-28 Jason Merrill <jason@redhat.com>
20272 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
20273 (finalize_type_size): Respect TYPE_USER_ALIGN.
20274 (layout_type) [ARRAY_TYPE]: Likewise.
20276 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
20278 * config/arm/arm.md (*arm_movt): Fix type attribute.
20279 (*cmpsi_shiftsi): Likewise.
20280 (*cmpsi_shiftsi_swp): Likewise.
20281 (*movsicc_insn): Likewise.
20282 (*cond_move): Likewise.
20283 (*if_plus_move): Likewise.
20284 (*if_move_plus): Likewise.
20285 (*if_arith_move): Likewise.
20286 (*if_move_arith): Likewise.
20287 (*if_shift_move): Likewise.
20288 (*if_move_shift): Likewise.
20289 (*arm_movtas_ze): Likewise.
20290 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
20291 redundancy and type attribute.
20292 (*thumb2_movsi_insn): Fix type attribute.
20293 (*thumb2_addsi_short): Likewise.
20294 (thumb2_addsi3_compare0): Likewise.
20295 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
20296 attributes accordingly.
20298 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
20301 * function.c (pad_to_arg_alignment): Add parentheses.
20303 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
20305 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
20306 libgcc/config/frv/elf-lib.h.
20308 2015-04-28 Tom de Vries <tom@codesourcery.com>
20310 * tree-call-cdce.c: Fix example in header comment.
20312 2015-04-28 Richard Biener <rguenther@suse.de>
20314 PR tree-optimization/62283
20315 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
20316 fails fatally and we are vectorizing a basic-block simply
20317 cause the child to be constructed piecewise.
20318 (vect_analyze_slp_cost_1): Adjust.
20319 (vect_detect_hybrid_slp_stmts): Likewise.
20320 (vect_bb_slp_scalar_cost): Likewise.
20321 (vect_get_constant_vectors): For piecewise constructed
20322 constants place them after the last def.
20323 (vect_get_slp_defs): Adjust.
20324 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
20325 externals for basic-block vectorization.
20327 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20330 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
20332 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
20333 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
20334 (AARCH64_TUNE_FMA_STEERING): Likewise.
20335 * config/aarch64/aarch64-cores.def: Set
20336 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
20337 FMUL/FMADD instructions.
20338 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
20339 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
20340 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
20341 * config/aarch64/cortex-a57-fma-steering.h: New file.
20342 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20344 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
20346 * gensupport.c (std_preds): Add missing codes to address_operand entry.
20348 2015-04-28 Richard Biener <rguenther@suse.de>
20350 PR tree-optimization/65851
20351 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
20352 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
20353 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
20354 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
20355 (ccp_visit_phi_node): Adjust.
20356 (evaluate_stmt): For simplifications to SSA names return its
20357 lattice value if that isn't VARYING. Return immediately when
20358 simplified to a constant.
20359 (visit_assignment): Adjust.
20360 (ccp_visit_stmt): Likewise.
20362 2015-04-28 Tom de Vries <tom@codesourcery.com>
20364 PR tree-optimization/65818
20365 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
20368 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20370 * calls.c (save_fixed_argument_area): Don't check
20371 ARGS_GROW_DOWNWARD with the preprocessor.
20372 (restore_fixed_argument_area): Likewise.
20373 (mem_overlaps_already_clobbered_arg_p): Likewise.
20374 (check_sibcall_argument_overlap): Likewise.
20375 (expand_call): Likewise.
20376 (emit_library_call_value_1): Likewise.
20377 (store_one_arg): Likewise.
20378 * function.c (assign_parms): Likewise.
20379 (locate_and_pad_parm): Likewise.
20380 (pad_to_arg_alignment): Likewise.
20381 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
20383 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20385 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
20386 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
20387 * calls.c (save_fixed_argument_area): Don't chekc if
20388 ARGS_GROW_DOWNWARD is defined.
20389 (restore_fixed_argument_area): Likewise.
20390 (mem_overlaps_already_clobbered_arg_p): Likewise.
20391 (check_sibcall_argument_overlap): Likewise.
20392 (expand_call): Likewise.
20393 (emit_library_call_value_1): Likewise.
20394 (store_one_arg): Likewise.
20395 * function.c (assign_parms): Likewise.
20396 (locate_and_pad_parm): Likewise.
20397 (pad_to_arg_alignment): Likewise.
20398 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
20400 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20402 * defaults.h (gen_epilogue): New function.
20403 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
20405 * cfgrtl.c (cfg_layout_finalize): Likewise.
20406 * df-scan.c: Likewise.
20407 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20408 (reposition_prologue_and_epilogue_notes): Likewise.
20409 * reorg.c (find_end_label): Likewise.
20410 * toplev.c: Likewise.
20412 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20414 * bb-reorder.c (HAVE_return): Don't check if its undefined.
20415 * defaults.h (gen_simple_return): New function.
20416 (gen_simple_return): Likewise.
20417 (HAVE_return): Add default definition to false.
20418 (HAVE_simple_return): Likewise.
20419 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
20420 HAVE_return and HAVE_simple_return are defined.
20421 * function.c (gen_return_pattern): Likewise.
20422 (convert_jumps_to_returns): Likewise.
20423 (thread_prologue_and_epilogue_insns): Likewise.
20424 * reorg.c (find_end_label): Likewise.
20425 (dbr_schedule): Likewise.
20426 * shrink-wrap.c: Likewise.
20427 * shrink-wrap.h: Likewise.
20429 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20431 * defaults.h (EPILOGUE_USES): Add default definition of false.
20432 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
20433 * resource.c (init_resource_info): Likewise.
20435 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20437 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
20439 * dwarf2out.c (field_byte_offset): REmove check if
20440 PCC_BITFIELD_TYPE_MATTERS is defined.
20441 * stor-layout.c (layout_decl): Likewise.
20442 (update_alignment_for_field): Likewise.
20443 (place_field): Likewise.
20445 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20447 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
20449 * regrename.c (check_new_reg_p): Remove check if
20450 HARD_REGNO_RENAME_OK is defined.
20451 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
20453 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20455 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
20456 * cse.c (fold_rtx): Likewise.
20457 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
20458 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
20459 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
20460 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
20461 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
20462 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
20463 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
20464 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
20465 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
20466 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
20468 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
20469 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
20470 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
20471 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
20472 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
20473 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
20474 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
20475 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
20476 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
20477 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
20478 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
20479 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
20480 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
20481 * doc/tm.texi: Regenerate.
20482 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
20483 either true or false.
20485 2015-04-27 Jeff Law <law@redhat.com>
20487 PR tree-optimization/65217
20488 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
20489 of them has a single use, make sure it is the LHS of the implied
20492 2015-04-28 Alan Modra <amodra@gmail.com>
20495 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
20496 (offsettable_ok_by_alignment): Use minimum of decl and toc
20497 pointer alignment. Replace dead code with assertion.
20498 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
20499 case if size exceeds toc pointer alignment.
20500 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
20501 (rs6000_emit_move): Likewise.
20502 * configure.ac: Add linker toc pointer alignment check.
20503 * configure: Regenerate.
20504 * config.in: Regenerate.
20506 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
20508 * config.gcc: Add h8300-*-linux.
20509 * config/h8300/linux.h: New.
20510 * config/h8300/t-linux: New.
20511 * config/h8300/h8300.c (h8300_option_override): Normal mode
20512 is not supported for h8300-*-linux.
20513 (h8300_file_start): Target priority change.
20514 (get_shift_alg): Likewise.
20515 (h8300_shift_need_scratch_p): Likewise.
20516 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
20517 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
20519 2015-04-27 Caroline Tice <cmtice@google.com>
20521 * final.c (final_scan_insn): Output cold_function_name as function
20523 * varasm.c (cold_function_name): Make global.
20524 (assemble_start_function): Re-set cold_function_name.
20525 (assemble_end_function): Output cold partition size.
20526 * varasm.h (cold_function_name): Declare global.
20528 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
20530 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
20531 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
20533 (*movxi_internal_avx512f): Ditto.
20534 (define_split): Check for xmm16+, when splitting scalar float_extend.
20535 (*extendsfdf2_mixed): Use "v" constraint.
20536 (define_split): Check for xmm16+, when splitting scalar float_truncate.
20537 (*truncdfsf_fast_sse): Use "v" constraint.
20538 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
20539 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
20540 (define_peephole2): Check for xmm16+, when converting scalar
20542 (define_peephole2): Check for xmm16+, when converting scalar
20544 (*fop_<mode>_comm_mixed): Use "v" constraint.
20545 (*fop_<mode>_comm_sse): Ditto.
20546 (*fop_<mode>_1_mixed): Ditto.
20547 (*sqrt<mode>2_sse): Ditto.
20548 (*ieee_s<ieee_maxmin><mode>3): Ditto.
20550 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20552 * combine.c (simplify_if_then_else): Use std::swap instead
20553 of manually swapping.
20554 (known_cond): Likewise.
20555 (simplify_comparison): Likewise.
20557 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
20560 * config/rs6000/htm.md: Remove all define_expands.
20561 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
20562 UNSPECV_HTM_TABORTWCI): Remove.
20563 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
20564 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
20565 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
20566 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
20567 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
20568 tabortwci_internal): Remove define_insns.
20569 (tabort<wd>c, tabort<wd>ci): New define_insns.
20570 (tabort): Use gpc_reg_operand.
20571 (tcheck): Remove operand.
20572 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
20573 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
20575 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
20576 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
20577 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
20578 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
20579 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
20580 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
20581 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
20582 (tcheck): Remove builtin argument.
20583 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
20585 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
20586 tabortdc and tabortdci builtins when not in 64-bit mode.
20587 Modify code to handle the loss of the HTM define_expands.
20588 Emit code to copy the CR register to TARGET.
20589 (htm_init_builtins): Modify code to handle the loss of the HTM
20591 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
20592 (RS6000_BTC_64BIT): Likewise.
20593 (RS6000_BTC_CR): New macro.
20594 * doc/extend.texi: Update documentation for htm builtins.
20596 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20598 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
20599 of manually swapping.
20600 (simplify_associative_operation): Likewise.
20601 (simplify_binary_operation): Likewise.
20602 (simplify_plus_minus): Likewise.
20603 (simplify_relational_operation): Likewise.
20604 (simplify_ternary_operation): Likewise.
20606 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20608 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
20609 (xs_hi_nonmemory_operand): Remove error.
20610 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
20611 general_operand rather than xs_hi_general_operand.
20613 2015-04-27 Richard Biener <rguenther@suse.de>
20615 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
20616 (record_equivalences_from_stmt): Valueize rhs.
20617 (record_equality): Canonicalize x and y order via
20618 tree_swap_operands_p. Do not swap operands for same loop depth.
20620 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
20624 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
20625 Add hint how to use own spec file.
20627 2015-04-27 Jakub Jelinek <jakub@redhat.com>
20629 PR tree-optimization/65875
20630 * tree-vrp.c (update_value_range): If in is_new case setting
20631 old_vr to VR_VARYING, also set new_vr to it. Remove
20632 old_vr->type == VR_VARYING test.
20633 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
20634 SSA_PROP_INTERESTING if update_value_range returned true,
20635 but new range is VR_VARYING.
20637 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
20639 * combine.c (sign_extend_short_imm): New.
20640 (set_nonzero_bits_and_sign_copies): Use above new function for sign
20641 extension of src short immediate.
20642 (reg_nonzero_bits_for_combine): Likewise for tem.
20644 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20646 * stor-layout.c (self_referential_component_ref_p): New predicate.
20647 (copy_self_referential_tree_r): Use it.
20648 (self_referential_size): Punt for simple operations directly involving
20649 self-referential component references.
20650 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
20652 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20654 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
20656 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20658 * vec.h (vec): Make splice arguments const. Update definitions
20661 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
20663 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
20666 2015-04-26 Tom de Vries <tom@codesourcery.com>
20668 PR tree-optimization/65826
20669 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
20671 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
20673 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
20674 (*madd3<mode>): Ditto.
20675 (*msub4<mode>): Ditto.
20676 (*msub3<mode>): Ditto.
20677 (*nmadd4<mode>): Ditto.
20678 (*nmadd3<mode>): Ditto.
20679 (*nmadd4<mode>_fastmath): Ditto.
20680 (*nmadd3<mode>_fastmath): Ditto.
20681 (*nmsub4<mode>): Ditto.
20682 (*nmsub3<mode>): Ditto.
20683 (*nmsub4<mode>_fastmath): Ditto.
20684 (*nmsub3<mode>_fastmath): Ditto.
20686 2015-04-24 Jason Merrill <jason@redhat.com>
20689 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
20690 down when building TYPE_CANONICAL.
20691 (build_pointer_type_for_mode): Likewise.
20693 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
20695 * genrecog.c (validate_pattern): Check matching constraint refers
20696 to a lower numbered operand.
20698 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20701 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
20702 save to independent variables use the Save attribute. This will
20703 allow these options to be modified with the #pragma/attribute
20705 (-mallow-movmisalign): Likewise.
20706 (-mallow-df-permute): Likewise.
20707 (-msched-groups): Likewise.
20708 (-malways-hint): Likewise.
20709 (-malign-branch-targets): Likewise.
20710 (-mvectorize-builtins): Likewise.
20711 (-msave-toc-indirect): Likewise.
20713 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
20714 can be set via the #pragma/attribute target support.
20715 (rs6000_opt_vars): Likewise.
20716 (rs6000_inner_target_options): If VSX was set, also set
20717 -mno-avoid-indexed-addresses.
20719 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20721 * config/arm/iterators.md (shiftable_ops): Rename to...
20722 (SHIFTABLE_OPS): ... This. Update use in comments.
20723 (ior_xor): Rename to...
20724 (IOR_XOR): ... This.
20725 (vqh_ops): Rename to...
20726 (VQH_OPS): ... This.
20727 (vqhs_ops): Rename to...
20728 (VQHS_OPS): ... This.
20729 (rshifts): Rename to...
20730 (RSHIFTS): ... This.
20731 (returns): Rename to...
20732 (RETURNS): ... This.
20733 * config/arm/arm.md: Update uses of the above.
20734 * config/arm/neon.md: Likewise.
20736 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20738 * config.host (case ${host}): Add aarch64*-*-linux case.
20739 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
20740 fields to all the cores.
20741 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
20742 Add MCPU_MTUNE_NATIVE_SPECS.
20743 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
20744 field to all extensions.
20745 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
20746 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
20747 Adjust definition of AARCH64_OPT_EXTENSION.
20748 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
20749 (MCPU_MTUNE_NATIVE_SPECS): Define.
20750 * config/aarch64/driver-aarch64.c: New file.
20751 * config/aarch64/x-arch64: New file.
20752 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
20755 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20756 Wei Mi <wmi@google.com>
20758 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
20759 * config/i386/i386.c (extract_base_offset_in_addr): New function.
20760 (ix86_operands_ok_for_move_multiple): Ditto.
20761 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
20762 (movlpd/movhpd to movupd peephole2): Ditto.
20764 2015-04-24 Marek Polacek <polacek@redhat.com>
20767 * input.h (from_macro_expansion_at): Define.
20770 * doc/invoke.texi: Update description of -Wlogical-op.
20772 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20774 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
20775 ternary operator in fprintf and harmonize spacing.
20777 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20779 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
20780 Mark operand1 commutative.
20782 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20784 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
20785 input operands in memory.
20786 (*vec_concatv2si_sse4_1): Ditto.
20787 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
20788 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
20790 (vec_extract_hi_v32hi): Ditto.
20791 (vec_extract_hi_v64hi): Ditto.
20792 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
20794 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20795 Steven Bosscher <steven@gcc.gnu.org>
20797 PR rtl-optimization/34503
20798 * cprop.c (cprop_reg_p): New.
20799 (hash_scan_set): Use above function to check if register can be
20801 (find_avail_set): Return up to two sets, one whose source is a
20802 register and one whose source is a constant. Sets are returned in an
20803 array passed as parameter rather than as a return value.
20804 (cprop_insn): Use a do while loop rather than a goto. Try each of the
20805 sets returned by find_avail_set, starting with the one whose source is
20806 a constant. Use cprop_reg_p to check if register can be propagated.
20807 (do_local_cprop): Use cprop_reg_p to check if register can be
20809 (implicit_set_cond_p): Likewise.
20811 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20813 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
20814 (sem_function::equals): IGNORED_NODES parameter is now unused;
20815 update call of equals_private.
20816 (sem_function::equals_private): Do not call equals_wpa; skip
20817 gimple body matching if there is no body.
20818 (sem_function::init): Add logic to hash tthunk info.
20819 (sem_function::parse): Also parse thunks.
20820 * ipa-icf.h (equals_private): Update declaration.
20822 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20824 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
20825 asterisk from name so this can be generated directly.
20826 (*altivec_stvx_<mode>_internal): Likewise.
20827 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
20828 that this is never called during or after reload/lra.
20829 (rs6000_frame_related): Remove split_reg
20830 argument and logic that references it.
20831 (emit_frame_save): Remove last parameter from call to
20832 rs6000_frame_related.
20833 (rs6000_emit_prologue): Remove last parameter from eight calls to
20834 rs6000_frame_related. Force generation of stvx instruction for
20835 Altivec register saves. Remove split_reg handling, which is no
20837 (rs6000_emit_epilogue): Force generation of lvx instruction for
20838 Altivec register restores.
20840 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20842 * config/rs6000/rs6000.opt (mcrypto): Change option description to
20843 match category changes in ISA 2.07B.
20845 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20847 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
20849 (cmp_op, cmp_type): New code attributes.
20850 (NEON_VCMP, NEON_VACMP): New int iterators.
20851 (cmp_op_unsp): New int attribute.
20852 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
20853 (neon_vceq<mode>): Delete.
20854 (neon_vc<cmp_op><mode>_insn): New pattern.
20855 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
20856 (neon_vcgeu<mode>): Delete.
20857 (neon_vcle<mode>): Likewise.
20858 (neon_vclt<mode>: Likewise.
20859 (neon_vcage<mode>): Likewise.
20860 (neon_vcagt<mode>): Likewise.
20861 (neon_vca<cmp_op><mode>): New define_expand.
20862 (neon_vca<cmp_op><mode>_insn): New pattern.
20863 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
20865 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20867 * tree.h (attribute_value_equal): Declare.
20868 * tree.c (attribute_value_equal): Export.
20870 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20872 * ipa-icf.c (sem_item::compare_attributes): New function.
20873 (sem_item::compare_referenced_symbol_properties): Compare variable
20875 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
20876 (sem_function::param_used_p): New function.
20877 (sem_function::equals_wpa): Fix attribute comparsion; match
20878 parameter type codes; do not compare paremter flags when
20879 they are not used; compare edge flags; compare indirect calls.
20880 (sem_item::update_hash_by_addr_refs): Hash reference type.
20881 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
20882 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
20883 reference use type.
20884 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
20885 * ipa-icf.h (compare_attributes, param_used_p): Declare.
20887 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20889 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
20891 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
20892 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
20893 (sem_item::compare_referenced_symbol_properties): New.
20894 (sem_item::hash_referenced_symbol_properties): New.
20895 (sem_item::compare_cgraph_references): Rename to ...
20896 (sem_item::compare_symbol_references): ... this one; use
20897 compare_referenced_symbol_properties.
20898 (sem_function::equals_wpa): Do not compare
20899 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
20900 DECL_IS_OPERATOR_NEW; compare pointer sizes.
20901 (sem_item::update_hash_by_addr_refs): Call
20902 hash_referenced_symbol_properties.
20903 (sem_item::update_hash_by_local_refs): Cleanup.
20904 (sem_function::merge): Do not mix up symbol properties.
20905 (sem_variable::equals_wpa): Use compare_symbol_references.
20906 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
20907 (sem_item::hash_referenced_symbol_properties): New.
20908 (sem_item::compare_symbol_references): New.
20909 (sem_item::compare_cgraph_references): Remove.
20911 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
20914 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
20915 Emit size of local.
20917 2015-04-23 Nick Clifton <nickc@redhat.com>
20919 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
20920 ATTRIBUTE_UNUSED to x parameter.
20921 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
20923 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20925 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
20926 TARGET_CRYPTO to TARGET_P8_VECTOR>
20927 (crypto_vpermxor_<mode>): Likewise.
20928 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
20929 (BU_CRYPTO_3A): Likewise.
20930 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
20931 (BU_CRYPTO_OVERLOAD_3A): New #define.
20932 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
20933 (VPMSUMH): Likewise.
20934 (VPMSUMW): Likewise.
20935 (VPMSUMD): Likewise.
20936 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
20937 (VPERMXOR_V4SI): Likewise.
20938 (VPERMXOR_V8HI): Likewise.
20939 (VPERMXOR_V16QI): Likewise.
20940 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
20941 BU_CRYPTO_OVERLOAD_2A.
20942 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
20943 BU_CRYPTO_OVERLOAD_3A.
20944 * config/rs6000/rs6000.opt (mcrypto): Change description of
20947 2015-04-23 Richard Biener <rguenther@suse.de>
20949 * passes.def: Remove copy propagation passes run directly after CCP.
20950 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
20952 (ccp_visit_phi_node): Rework to handle first executable edge
20955 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
20957 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20958 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20959 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20960 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
20961 (thumb_legimitimize_reload_address): Remove.
20962 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
20964 (thumb_legimitimize_reload_address): Remove.
20966 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20968 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
20970 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20972 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
20974 (store_multiple): Likewise.
20976 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20978 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
20979 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
20980 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
20981 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
20982 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
20983 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
20984 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
20985 Specify issue_rate value.
20986 (arm_issue_rate): Look up issue rate from tuning structs. Remove
20987 large switch statement.
20988 (arm_marvell_pj4_tune): New struct.
20989 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
20992 2015-04-23 Richard Biener <rguenther@suse.de>
20994 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
20995 (vect_find_last_store_in_slp_instance): Rename to ...
20996 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
20997 (vect_analyze_slp_cost_1): Use vector_load for constant defs
20998 and vec_construct for external defs when estimating prologue cost.
20999 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
21000 Compute costs here only when vectorizing loops.
21001 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
21002 have been determined.
21003 (vect_schedule_slp_instance): Simplify vectorized code placement
21004 and prepare for in-BB external defs.
21005 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
21006 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
21007 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
21009 (vect_model_load_cost): Likewise.
21010 (vectorizable_store): Instead add it here.
21011 (vectorizable_load): Likewise.
21012 (vect_is_simple_use): Dump def type textually.
21014 2015-04-23 Richard Biener <rguenther@suse.de>
21016 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
21017 * cfgloop.c (verify_loop_structure): Verify the root loop node.
21018 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
21019 instead of get_eh_region_from_lp_number.
21020 * loop-init.c (fix_loop_structure): If we removed a loop, reset
21023 2015-04-23 Anton Blanchard <anton@samba.org>
21025 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
21026 need for -mprofile-kernel to save LR to stack.
21028 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21030 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
21032 (insn_is_swappable_p): Return 1 for a convert from double to
21033 single precision when all of its uses are splats of BE element
21036 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21038 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
21040 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21043 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
21044 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
21045 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
21047 (rs6000_builtin_mask_for_load): Return 0 for targets with
21048 efficient unaligned VSX accesses so that the vectorizer will use
21049 direct unaligned loads.
21050 (rs6000_builtin_support_vector_misalignment): Always return true
21051 for targets with efficient unaligned VSX accesses.
21052 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
21053 stores on targets with efficient unaligned VSX accesses is almost
21054 always the same as the cost of an aligned load or store, so model
21056 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
21057 unaligned vectors if we have efficient unaligned VSX accesses.
21058 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
21059 undocumented option.
21061 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21064 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
21066 * config.gcc (LIBC_MUSL): New tm_defines macro.
21067 * config/linux.h (OPTION_MUSL): Define.
21068 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
21069 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
21070 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
21072 * config/linux.opt (mmusl): New option.
21073 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
21074 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
21076 * configure: Regenerate.
21078 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
21080 * config.gcc (LIBC_MUSL): New tm_defines macro.
21081 * config/linux.h (OPTION_MUSL): Define.
21082 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
21083 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
21084 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
21086 * config/linux.opt (mmusl): New option.
21087 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
21088 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
21090 * configure: Regenerate.
21092 2015-04-22 Yury Gribov <y.gribov@samsung.com>
21094 * doc/invoke.texi (-fsanitize-sections): Update description.
21095 * asan.c (set_sanitized_sections): Parse incoming arg.
21096 (section_sanitized_p): Support wildcards.
21098 2015-04-22 Tom de Vries <tom@codesourcery.com>
21100 PR tree-optimization/65823
21101 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
21102 equality between ap_copy and ap.
21104 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21107 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
21109 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21112 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
21114 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21117 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
21118 remove already contained t-files.
21120 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21122 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
21123 Remove unneeded forward declarations.
21124 (suitable_for_tail_call_opt_p): Commentary typo fix.
21126 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21128 * varasm.c (emit_bss): Remove redundant guard.
21130 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21132 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
21134 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21136 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
21138 2015-04-22 Hale Wang <hale.wang@arm.com>
21139 Terry Guo <terry.guo@arm.com>
21141 PR rtl-optimization/64818
21142 * combine.c (can_combine_p): Don't combine user-specified
21143 register if it is in an asm input.
21145 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
21148 * passes.def (early_optimizations): Add pass_dse.
21150 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21152 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
21153 * reorg.c (redundant_insn): Remove ifdef
21154 INSN_REFERENCES_ARE_DELAYED.
21155 * resource.c (mark_referenced_resources): Likewise.
21157 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21159 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
21160 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
21161 * resource.c (mark_set_resources): Likewise.
21163 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21165 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
21166 * cfgcleanup.c (flow_find_cross_jump): Likewise.
21167 (flow_find_head_matching_sequence): Likewise.
21168 (try_head_merge_bb): Likewise.
21169 * combine.c (can_combine_p): Likewise.
21170 (try_combine): Likewise.
21171 (distribute_notes): Likewise.
21172 * df-problems.c (can_move_insns_across): Likewise.
21173 * final.c (final): Likewise.
21174 * gcse.c (insert_insn_end_basic_block): Likewise.
21175 * ira.c (find_moveable_pseudos): Likewise.
21176 * reorg.c (try_merge_delay_insns): Likewise.
21177 (fill_simple_delay_slots): Likewise.
21178 (fill_slots_from_thread): Likewise.
21179 * sched-deps.c (sched_analyze_2): Likewise.
21181 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21183 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
21184 PIC_OFFSET_TABLE_REGNUM.
21186 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21188 * alias.c (init_alias_target): Remove ifdef
21189 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
21190 * df-scan.c (df_insn_refs_collect): Likewise.
21191 (df_get_regular_block_artificial_uses): Likewise.
21192 (df_get_eh_block_artificial_uses): Likewise.
21193 (df_get_entry_block_def_set): Likewise.
21194 (df_get_exit_block_use_set): Likewise.
21195 * emit-rtl.c (gen_rtx_REG): Likewise.
21196 * ira.c (ira_setup_eliminable_regset): Likewise.
21197 * reginfo.c (init_reg_sets_1): Likewise.
21198 * regrename.c (rename_chains): Likewise.
21199 * reload1.c (reload): Likewise.
21200 (eliminate_regs_in_insn): Likewise.
21201 * resource.c (mark_referenced_resources): Likewise.
21202 (init_resource_info): Likewise.
21204 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21206 * defaults.h (MASK_RETURN_ADDR): New definition.
21207 * except.c (expand_builtin_extract_return_addr): Remove ifdef
21210 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21212 * defaults.h (RETURN_ADDR_OFFSET): New definition.
21213 * except.c (expand_builtin_extract_return_addr): Remove ifdef
21214 RETURN_ADDR_OFFSET.
21215 (expand_builtin_frob_return_addr): Likewise.
21217 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21219 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
21220 (try_redirect_by_replacing_jump): Likewise.
21221 (rtl_tidy_fallthru_edge): Likewise.
21222 * combine.c (insn_a_feeds_b): Likewise.
21223 (find_split_point): Likewise.
21224 (simplify_set): Likewise.
21225 * cprop.c (cprop_jump): Likewise.
21226 * cse.c (cse_extended_basic_block): Likewise.
21227 * df-problems.c (can_move_insns_across): Likewise.
21228 * function.c (emit_use_return_register_into_block): Likewise.
21229 * haifa-sched.c (sched_init): Likewise.
21230 * ira.c (find_moveable_pseudos): Likewise.
21231 * loop-invariant.c (find_invariant_insn): Likewise.
21232 * lra-constraints.c (curr_insn_transform): Likewise.
21233 * postreload.c (reload_combine_recognize_const_pattern):
21235 * reload.c (find_reloads): Likewise.
21236 * reorg.c (delete_scheduled_jump): Likewise.
21237 (steal_delay_list_from_target): Likewise.
21238 (steal_delay_list_from_fallthrough): Likewise.
21239 (redundant_insn): Likewise.
21240 (fill_simple_delay_slots): Likewise.
21241 (fill_slots_from_thread): Likewise.
21242 (delete_computation): Likewise.
21243 * sched-rgn.c (add_branch_dependences): Likewise.
21245 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21247 * genconfig.c (main): Always define HAVE_cc0.
21248 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
21250 * cfgcleanup.c (flow_find_cross_jump): Likewise.
21251 (flow_find_head_matching_sequence): Likewise.
21252 (try_head_merge_bb): Likewise.
21253 * cfgrtl.c (rtl_merge_blocks): Likewise.
21254 (try_redirect_by_replacing_jump): Likewise.
21255 (rtl_tidy_fallthru_edge): Likewise.
21256 * combine.c (do_SUBST_MODE): Likewise.
21257 (insn_a_feeds_b): Likewise.
21258 (combine_instructions): Likewise.
21259 (can_combine_p): Likewise.
21260 (try_combine): Likewise.
21261 (find_split_point): Likewise.
21263 (simplify_set): Likewise.
21264 (distribute_notes): Likewise.
21265 * cprop.c (cprop_jump): Likewise.
21266 * cse.c (cse_extended_basic_block): Likewise.
21267 * df-problems.c (can_move_insns_across): Likewise.
21268 * final.c (final): Likewise.
21269 (final_scan_insn): Likewise.
21270 * function.c (emit_use_return_register_into_block): Likewise.
21271 * gcse.c (insert_insn_end_basic_block): Likewise.
21272 * haifa-sched.c (sched_init): Likewise.
21273 * ira.c (find_moveable_pseudos): Likewise.
21274 * loop-invariant.c (find_invariant_insn): Likewise.
21275 * lra-constraints.c (curr_insn_transform): Likewise.
21276 * optabs.c (prepare_cmp_insn): Likewise.
21277 * postreload.c (reload_combine_recognize_const_pattern):
21279 * reload.c (find_reloads): Likewise.
21280 (find_reloads_address_1): Likewise.
21281 * reorg.c (delete_scheduled_jump): Likewise.
21282 (steal_delay_list_from_target): Likewise.
21283 (steal_delay_list_from_fallthrough): Likewise.
21284 (try_merge_delay_insns): Likewise.
21285 (redundant_insn): Likewise.
21286 (fill_simple_delay_slots): Likewise.
21287 (fill_slots_from_thread): Likewise.
21288 (delete_computation): Likewise.
21289 (relax_delay_slots): Likewise.
21290 * sched-deps.c (sched_analyze_2): Likewise.
21291 * sched-rgn.c (add_branch_dependences): Likewise.
21293 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21295 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
21296 that is trivially ded on non cc0 targets.
21297 (simplify_set): Likewise.
21298 (mark_used_regs_combine): Likewise.
21299 * cse.c (new_basic_block): Likewise.
21300 (fold_rtx): Likewise.
21301 (cse_insn): Likewise.
21302 (cse_extended_basic_block): Likewise.
21303 (set_live_p): Likewise.
21304 * rtlanal.c (canonicalize_condition): Likewise.
21305 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
21307 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21309 * conditions.h: Define macros even if HAVE_cc0 is undefined.
21310 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
21311 * final.c: Likewise.
21312 * jump.c: Likewise.
21313 * recog.c: Likewise.
21314 * recog.h: Declare functions even when HAVE_cc0 is undefined.
21315 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
21317 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21319 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
21320 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
21321 * builtins.c (expand_builtin): Remove check if
21322 EH_RETURN_DATA_REGNO is defined.
21323 * df-scan.c (df_bb_refs_collect): Likewise.
21324 (df_get_exit_block_use_set): Likewise.
21325 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
21326 * ira-lives.c (process_bb_node_lives): Likewise.
21327 * lra-lives.c (process_bb_lives): Likewise.
21329 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
21331 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
21332 FIRST_PSEUDO_REG): New.
21333 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
21334 (ARG_POINTER_REGNUM): Define to ARGP_REG.
21335 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
21336 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
21337 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
21338 (FIRST_INT_REG): New.
21339 (LAST_INT_REG): New.
21340 (FIRST_*_REG): Define using *_REG.
21341 (LAST_*_REG): Ditto.
21342 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
21343 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
21344 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
21346 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21348 * expmed.c: (synth_mult): Only assume overlapping
21349 shift with previous steps in alg_sub_t_m2 case.
21351 2015-04-21 Richard Biener <rguenther@suse.de>
21353 PR tree-optimization/65650
21354 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
21355 transitions involving copies.
21356 (set_lattice_value): Adjust for copy lattice state.
21357 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
21358 if that doesn't dominate the merge point.
21359 (bit_value_unop): Adjust what we treat as varying mask.
21360 (bit_value_binop): Likewise.
21361 (bit_value_assume_aligned): Likewise.
21362 (evaluate_stmt): When we simplified to a SSA name record a copy
21363 instead of dropping to varying.
21364 (visit_assignment): Simplify.
21366 * gimple-match.h (gimple_simplify): Add another callback.
21367 * gimple-fold.c (fold_stmt_1): Adjust caller.
21368 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
21369 for the 2nd callback.
21370 * gimple-match-head.c (gimple_simplify): Add a callback that is
21371 used to valueize the stmt operands and use it that way.
21373 2015-04-21 Richard Biener <rguenther@suse.de>
21375 PR tree-optimization/65788
21376 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
21378 2015-04-21 Richard Biener <rguenther@suse.de>
21380 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
21381 vec_construct cost by vec_stmt_cost.
21383 2015-04-21 Richard Biener <rguenther@suse.de>
21385 * cfghooks.h (create_basic_block): Replace with two overloads
21386 for RTL and GIMPLE.
21387 (split_block): Likewise.
21388 * cfghooks.c (split_block): Rename to ...
21389 (split_block_1): ... this.
21390 (split_block): Add two type-safe overloads for RTL and GIMPLE.
21391 (split_block_after_labels): Call split_block_1.
21392 (create_basic_block): Rename to ...
21393 (create_basic_block_1): ... this.
21394 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
21395 (create_empty_bb): Call create_basic_block_1.
21396 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
21397 split_block_after_labels.
21398 * omp-low.c (expand_parallel_call): Likewise.
21399 (expand_omp_target): Likewise.
21400 (simd_clone_adjust): Likewise.
21401 * tree-chkp.c (chkp_get_entry_block): Likewise.
21402 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
21403 create_basic_block overload.
21404 (cgraph_node::expand_thunk): Likewise.
21405 * tree-cfg.c (make_blocks): Likewise.
21406 (handle_abnormal_edges): Likewise.
21407 * tree-inline.c (copy_bb): Likewise.
21409 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21411 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
21413 (*xor_one_cmplsidi3_ze): Likewise.
21415 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
21417 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
21418 use df_remove_problem rather than manually removing problems, leaving
21419 holes in df->problems_in_order[].
21421 2015-04-21 Tom de Vries <tom@codesourcery.com>
21423 PR tree-optimization/65802
21424 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
21426 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21428 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
21430 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
21431 at '.'. Assert that there's enough space for everything.
21433 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
21435 PR tree-optimization/64950
21437 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
21440 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
21443 2015-04-20 Shiva Chen <shiva0217@gmail.com>
21445 PR rtl-optimization/64916
21446 * cfgcleanup.c (values_equal_p): New function.
21447 (can_replace_by): Use it.
21449 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
21452 * doc/invoke.texi ([-Wnarrowing]): Update.
21454 2015-04-20 Jeff Law <law@redhat.com>
21456 PR tree-optimization/65658
21457 * tree-ssa-threadupdate.c (redirection_block_p): Remove
21458 redundant test for GIMPLE_ASSIGN in last change.
21460 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
21462 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
21463 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
21464 (legitimize_tls_address): Ditto.
21465 (ix86_expand_move): Ditto.
21466 (ix86_expand_binary_operator): Remove reload_in_progress checks.
21467 (ix86_expand_unary_operator): Ditto.
21468 * config/i386/predicates.md (index_register_operand): Ditto.
21470 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
21472 * reorg.c (try_merge_delay_insns): Improve correctness checking
21473 for targets with multiple delay slots.
21475 2015-04-20 Jeff Law <law@redhat.com>
21477 PR tree-optimization/65658
21478 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
21481 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
21483 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
21484 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
21487 2015-04-20 Jakub Jelinek <jakub@redhat.com>
21490 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
21492 2015-04-20 Richard Biener <rguenther@suse.de>
21494 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
21495 * gimple-fold.c (gimple_build_valueize): New function.
21496 (gimple_build): Always use gimple_build_valueize as valueize hook.
21498 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
21501 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
21502 and overwrite variable parts if <= 1/2 the elements are variable.
21504 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
21506 PR rtl-optimization/65805
21507 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
21508 Don't use difference of offset and previous offset if
21509 update_sp_offset is non-zero.
21510 (eliminate_regs_in_insn): Ditto.
21511 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
21512 lra_eliminate_regs_1 call.
21513 * lra-constraints.c (get_equiv_with_elimination): Ditto.
21515 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
21517 * hash-table.h: Remove version of hash_table that stored value_type *.
21518 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
21519 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
21520 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
21521 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
21522 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
21523 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
21524 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
21525 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
21526 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
21527 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
21528 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
21529 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
21530 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
21531 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
21532 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
21533 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
21535 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21536 Jakub Jelinek <jakub@redhat.com>
21539 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
21540 subsequent SH_NONE operand does not overwrite an existing *special
21542 (adjust_extract): Handle case where a vec_extract operation is
21543 wrapped in a PARALLEL.
21545 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21548 * config/i386/i386.c (ix86_binds_local_p): Define only if
21549 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
21551 2015-04-17 Jeff Law <law@redhat.com>
21553 PR tree-optimization/47679
21554 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
21555 * tree-ssa-scopedtables.c: New file.
21556 * tree-ssa-scopedtables.h: New file.
21557 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
21558 (const_and_copies): Change name/type.
21559 (record_const_or_copy): Move into tree-ssa-scopedtables.c
21560 (record_const_or_copy_1): Similarly.
21561 (restore_vars_to_original_value): Similarly.
21562 (pass_dominator::execute): Create and destroy const_and_copies table.
21563 (thread_across_edge): Update passing of const_and_copies.
21564 (record_temporary_equivalence): Use method calls rather than
21565 manipulating const_and_copies directly.
21566 (record_equality, cprop_into_successor_phis): Similarly.
21567 (dom_opt_dom_walker::before_dom_children): Similarly.
21568 (dom_opt_dom_walker::after_dom_children): Similarly.
21569 (eliminate_redundant_computations): Similarly.
21570 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
21571 (record_temporary_equivalence): Likewise.
21572 (invalidate_equivalences): Likewise.
21573 (record_temporary_equivalences_from_phis): Update due to type
21574 change of const_and_copies. Use method calls rather than
21575 manipulating the stack directly.
21576 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
21577 (thread_through_normal_block, thread_across_edge): Likewise.
21578 (thread_across_edge): Likewise.
21579 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
21580 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
21582 (identify_jump_threads): Update due to type change of equiv_stack.
21583 (finalize_jump_threads): Delete the equiv_stack when complete.
21585 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
21587 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
21588 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
21589 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
21591 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
21594 * config.gcc: Exit with a comment when we do not have a major version
21595 number for the FreeBSD target.
21597 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21600 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
21601 maybe_allows_mem bitfields.
21602 (maybe_allows_none_start, maybe_allows_none_end,
21603 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
21604 maybe_allows_mem_end): New variables.
21605 (compute_maybe_allows): New function.
21606 (add_constraint): Use it to initialize maybe_allows_reg and
21607 maybe_allows_mem fields.
21608 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
21609 is_address constraints such that those that allow neither mem nor
21610 reg come first, then those that only allow reg but not mem, then
21611 those that only allow mem but not reg, then the rest.
21612 (write_allows_reg_mem_function): New function.
21613 (write_tm_preds_h): Call it.
21614 * stmt.c (parse_output_constraint, parse_input_constraint): Use
21615 the generated insn_extra_constraint_allows_reg_mem function
21616 instead of always setting *allows_reg = true; *allows_mem = true;
21617 for unknown extra constraints.
21619 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21622 * output.h (default_binds_local_p_3): New.
21623 * varasm.c (default_binds_local_p_3): Make it public. Take an
21624 argument to indicate if common symbol may be local. If common
21625 symbol may be local, treat non-external variable as defined
21627 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
21628 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
21629 * config/i386/i386.c (ix86_binds_local_p): New.
21630 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
21631 ix86_binds_local_p.
21633 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21636 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
21637 trying mem_loc_descriptor on XEXP (rtl, 0).
21639 2015-04-17 Martin Liska <mliska@suse.cz>
21641 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
21642 Release symbol_compare_collection.
21643 * ipa-reference.c: Add TODO that a vector should be released.
21645 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
21648 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
21649 to new AVR-LibC file layout (bug #44574).
21650 (*avrlibc_devicelib): Same.
21651 * config/avr/avr-mcus.def: Adjust comments.
21652 * config/avr/avr.opt (nodevicelib): Adjust help.
21654 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
21656 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
21658 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
21661 * gimplify.c (gimplify_init_constructor): Always emit a
21662 side-effecting constructor.
21664 2015-04-17 Tom de Vries <tom@codesourcery.com>
21666 PR tree-optimization/64950
21667 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
21668 in cfun->curr_properties.
21669 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
21670 if we generate an IFN_VA_ARG.
21671 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
21672 function if PROP_gimple_lva is not set in src function.
21674 2015-04-17 Tom de Vries <tom@codesourcery.com>
21675 Michael Matz <matz@suse.de>
21677 PR tree-optimization/64950
21678 * gimple-iterator.c (update_modified_stmts): Remove static.
21679 * gimple-iterator.h (update_modified_stmts): Declare.
21680 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
21681 (gimplify_va_arg_internal): New function.
21682 (gimplify_va_arg_expr): Use IFN_VA_ARG.
21683 * gimplify.h (gimplify_va_arg_internal): Declare.
21684 * internal-fn.c (expand_VA_ARG): New unreachable function.
21685 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
21686 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
21687 (expand_ifn_va_arg): New function.
21688 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
21689 (pass_stdarg::execute): Call expand_ifn_va_arg.
21690 (pass_data_lower_vaarg): New pass_data.
21691 (pass_lower_vaarg): New gimple_opt_pass.
21692 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
21693 (make_pass_lower_vaarg): New function.
21694 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
21695 properties_required field.
21696 * passes.def (all_passes): Add pass_lower_vaarg.
21697 * tree-pass.h (PROP_gimple_lva): Add define.
21698 (make_pass_lower_vaarg): Declare.
21700 2015-04-17 Tom de Vries <tom@codesourcery.com>
21702 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
21703 * calls.c (call_expr_flags): Same.
21705 2015-04-17 Tom de Vries <tom@codesourcery.com>
21707 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
21708 (pass_stdarg::execute): ... here.
21710 2015-04-17 Tom de Vries <tom@codesourcery.com>
21711 Michael Matz <matz@suse.de>
21713 * tree-cfg.c (make_blocks_1): Factor out of ...
21714 (make_blocks): ... here.
21715 (make_edges_bb): Factor out of ...
21716 (make_edges): ... here.
21717 (gimple_find_sub_bbs): New function.
21718 * tree-cfg.h (gimple_find_sub_bbs): Declare.
21720 2015-04-17 Tom de Vries <tom@codesourcery.com>
21722 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
21724 2015-04-17 Yury Gribov <y.gribov@samsung.com>
21726 * asan.c (set_sanitized_sections): New function.
21727 (section_sanitized_p): Ditto.
21728 (asan_protect_global): Optionally sanitize user-defined
21730 * asan.h (set_sanitized_sections): Declare new function.
21731 * common.opt (fsanitize-sections): New option.
21732 * doc/invoke.texi (-fsanitize-sections): Document new option.
21733 * opts-global.c (handle_common_deferred_options): Handle new
21736 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21739 * dwarf2out.c (loc_list_from_tree): Return NULL
21740 for DEBUG_EXPR_DECL.
21742 2015-04-17 Christian Bruel <christian.bruel@st.com>
21744 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
21747 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21749 * ira-color.c (setup_left_conflict_sizes_p): Do not process
21750 node itself when computing left conflict subnode size.
21752 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21754 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
21755 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
21756 *fop_<mode>_1_sse using enabled attribute. Use
21757 register_mixssei387nonimm_operand operand 1 predicate. Change
21758 alternative 3 constraints from "x" to "v".
21760 2015-04-16 Richard Biener <rguenther@suse.de>
21762 PR tree-optimization/65774
21763 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
21764 bit-value tracking on.
21766 2015-04-16 Richard Biener <rguenther@suse.de>
21768 PR tree-optimization/64277
21769 * tree-vrp.c (check_array_ref): Fix anti-range handling,
21770 simplify upper bound handling.
21771 (search_for_addr_array): Simplify.
21772 (check_array_bounds): Handle ADDR_EXPRs here.
21773 (check_all_array_refs): Simplify.
21775 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21777 * config/i386/i386.c (print_reg): Rewrite function.
21779 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21781 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
21782 Invert the condition.
21784 2015-04-16 Renlin Li <renlin.li@arm.com>
21786 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
21787 simplifications for UNSIGNED_FLOAT.
21789 2015-04-16 Nick Clifton <nickc@redhat.com>
21791 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
21793 (enum rl78_cpu_type): New.
21794 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
21795 (umulhi3_shift_virt): Remove m constraint from operand 1.
21796 (umulqihi3_virt): Likewise.
21797 * config/rl78/rl78.c (rl78_option_override): Add code to process
21798 -mcpu and -mmul options.
21799 (rl78_alloc_physical_registers): Add code to handle divhi and
21800 divsi valloc attributes.
21801 (set_origin): Likewise.
21802 * config/rl78/rl78.h (RL78_MUL_G14): Define.
21803 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
21804 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
21806 (ASM_SPEC): Pass -mcpu on to assembler.
21807 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
21808 (mulqi3_rl78): Likewise.
21809 (mulhi3_g13): Likewise.
21810 (mulhi3): Generate the G13 or G14 versions of the insn directly.
21811 (mulsi3): Likewise.
21812 (mulhi3_g14): Add clobbers of AX and BC.
21813 (mulsi3_g14): Likewise.
21814 (mulsi3_g13): Likewise.
21815 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
21816 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
21817 * config/rl78/rl78.opt (mmul): Initialise value to
21819 (mcpu): New option.
21820 (m13, m14, mrl78): New option aliases.
21821 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
21822 (MULTILIB_DIRNAMES): Add g13 and g14.
21823 * doc/invoke.texi: Document -mcpu and -mmul options.
21825 2015-04-16 Richard Biener <rguenther@suse.de>
21827 * tree-ssa-ccp.c (likely_value): See if we have operands that
21828 are marked as never simulate again and return CONSTANT in this
21830 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
21831 not have any operands that will be simulated again as
21832 not being simulated again.
21834 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
21836 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
21837 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
21838 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
21840 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
21842 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
21843 *float<SWI48:mode><MODEF:mode>2_sse.
21844 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
21846 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
21849 2015-04-15 Tom de Vries <tom@codesourcery.com>
21852 * function.c (push_dummy_function): New function.
21853 (init_dummy_function_start): Use push_dummy_function.
21854 (pop_dummy_function): New function. Factored out of ...
21855 (expand_dummy_function_end): ... here.
21856 * function.h (push_dummy_function, pop_dummy_function): Declare.
21857 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
21858 pop_dummy_function.
21859 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
21861 2015-04-15 Jeff Law <law@redhat.com>
21863 PR tree-optimization/47679
21864 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
21865 need for forward declaration in upcoming changes.
21866 (record_conditions, record_edge_info): Likewise.
21868 PR rtl-optimization/42522
21869 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
21870 SIGN_EXTRACT as a whole object rather than simplifying
21873 2015-04-15 Jakub Jelinek <jakub@redhat.com>
21876 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
21877 and GIMPLE_PREDICT use break instead of return true. For
21878 GIMPLE_EH_DISPATCH, compare dispatch region.
21880 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
21882 * doc/extend.texi (__sync Builtins): Simplify some text. Update
21883 details about the implementation. Make clear preference for
21884 __atomic builtins. Reduce possibility of future change.
21886 2015-04-15 Nick Clifton <nickc@redhat.com>
21888 * config/rx/rx.opt (mallow-string-insns): New option.
21889 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
21890 builtin if string instructions are denied.
21891 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
21892 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
21894 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
21895 * config/rx/rx.md (movstr): Enable pattern only if string
21896 instructions are allowed.
21897 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
21898 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
21899 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
21900 (MULTILIB_DIRNAMES): Add no-strings.
21901 * doc/invoke.texi: Document -mno-allow-string-insns.
21903 2015-04-15 Alan Modra <amodra@gmail.com>
21907 PR middle-end/36043
21908 * calls.c (load_register_parameters): Don't load past end of
21909 mem unless suitably aligned.
21911 2015-04-15 Nick Clifton <nickc@redhat.com>
21913 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
21914 decrement instruction as being frame related.
21915 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
21917 If zero extending a function address enclose the operation in
21919 (rl78_preferred_reload_class): New function.
21920 (TARGET_PREFERRED_RELOAD_CLASS): Define.
21921 * config/rl78/rl78.md: Remove useless constraints in expanders.
21922 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
21923 (mulhi3_rl78): Likewise.
21924 (mulhi3_g13): Likewise.
21925 (mulsi3_rl78): Likewise.
21926 (es_addr): Move to before the multiply patterns.
21928 2015-04-15 Alan Modra <amodra@gmail.com>
21930 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
21931 and sequence_stack. Add seq.
21932 (seq_stack): Delete.
21933 * function.c (prepare_function_start): Don't access x_last_insn.
21934 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
21935 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
21936 * emit_rtl.c (start_sequence, push_topmost_sequence,
21937 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
21938 sequence accessors.
21939 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
21940 remove_insn): Likewise. Simplify.
21941 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
21942 and pop_topmost_sequence.
21943 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
21945 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
21947 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
21950 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
21953 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21955 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
21956 (LEGACY_INT_REGNO_P): Ditto.
21957 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
21958 (ANY_MASK_REG_P): Remove.
21959 (BND_REG_P): Rename from ANY_BND_REG_P.
21960 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
21961 legacy integer registers. Do not handle MMX_REG_P in a special way.
21962 Merge 64byte and 32byte SSE handling.
21964 2015-04-14 Nick Clifton <nickc@redhat.com>
21966 * expr.c (expand_assignment): Force an address offset computation
21967 into a register before changing its mode.
21968 (expand_expr_real_1): Likewise.
21970 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
21972 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
21973 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
21974 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
21975 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
21976 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
21977 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
21978 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
21979 and __aarch64_vget_lane_any.
21981 2015-04-14 Jakub Jelinek <jakub@redhat.com>
21983 PR rtl-optimization/65761
21984 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
21985 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
21987 2015-04-14 Richard Biener <rguenther@suse.de>
21989 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
21990 (graphite_can_represent_scev): Use POINTER_TYPE_P.
21992 2015-04-14 Richard Biener <rguenther@suse.de>
21994 PR tree-optimization/65758
21995 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
21997 (ccp_lattice_meet): Likewise.
21998 (bit_value_unop): Likewise.
21999 (bit_value_binop): Likewise.
22000 (bit_value_assume_aligned): Likewise.
22002 2015-04-14 Christian Bruel <christian.bruel@st.com>
22004 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
22007 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
22009 PR tree-optimization/63387
22010 * match.pd ((x unord x) | (y unord y) -> (x unord y),
22011 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
22013 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
22015 * config/i386/predicates.md (any_QIreg_operand): Rename from
22016 q_regs_operand. Do not process subregs.
22017 (QIreg_operand): Use QI_REGNO_P predicate.
22018 (ext_QIreg_operand): Ditto.
22019 (ext_register_operand): Ditto.
22020 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
22021 (AND splitters): Ditto.
22022 (AND with -65536 splitter): Add SWI48 mode for operand 0.
22023 (AND with -256 splitter): Use any_QIreg_operand predicate and
22024 SWI248 mode for operand 0.
22025 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
22026 mode for operand 0.
22027 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
22029 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
22031 * doc/plugins.texi: Rewrite first introductory paragraph.
22033 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22035 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
22036 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
22038 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22040 * ipa-profie.c (ipa_profile): Check number of parameters
22041 and possible polymorphic call targets before
22044 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
22046 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
22047 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
22049 2015-04-13 Richard Biener <rguenther@suse.de>
22051 PR tree-optimization/65204
22052 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
22053 takens for bit-CCP.
22055 2015-04-13 Richard Biener <rguenther@suse.de>
22058 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
22059 and cond_not_taken_branch_cost to 4 and 2.
22060 (bdver2_cost): Likewise.
22061 (bdver3_cost): Likewise.
22062 (bdver4_cost): Likewise.
22064 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22066 * hash-table.h (hash_table constructor): Add mem stats.
22067 (alloc_entries): Likewise.
22069 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22071 * ipa-cp.c (ipcp_driver): Relase prev_edge.
22072 * passes.c (execute_one_pass): Only add transform if pass has one.
22074 2015-04-12 Joseph Myers <joseph@codesourcery.com>
22076 * config/i386/i386.c (ix86_option_override_internal): Don't set
22077 -fprefetch-loop-arrays if optimizing for size.
22079 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22080 Gerald Pfeifer <gerald@pfeifer.com>
22082 * doc/contrib.texi (Contributors): Add Martin Jambor and
22085 2015-04-12 Jakub Jelinek <jakub@redhat.com>
22087 * BASE-VER: Set to 6.0.0.
22089 PR tree-optimization/65747
22090 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
22091 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
22093 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
22095 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
22096 sentence. Improve grammar.
22098 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
22100 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
22102 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
22105 * ipa-inline-transform.c (speculation_removed): Remove static var.
22106 (check_speculations): New function.
22107 (clone_inlined_nodes): Do not check spculations.
22108 (inline_call): Call check_speculations.
22109 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
22110 consider non-invariants.
22112 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
22113 Martin Liska <mliska@suse.cz>
22116 * ipa-icf.c (sem_item::compare_cgraph_references): function and
22117 variable can not match.
22118 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
22119 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
22121 2015-04-11 Jakub Jelinek <jakub@redhat.com>
22123 PR tree-optimization/65735
22124 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
22125 Remove visited_phis argument, add visited_bbs, avoid recursing into the
22126 same bb rather than just into the same phi node.
22127 (thread_through_normal_block): Adjust caller.
22129 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
22131 * doc/contrib.texi (Contributors): Add Ira Rosen.
22133 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
22135 * gcov.c (find_source): Fix miswording in error message.
22136 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
22137 (ix86_expand_sse_comi_round): Fix typo in error message.
22139 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
22141 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
22143 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
22145 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
22147 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
22150 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
22151 Print bad_spills_num and insn_pseudos_num.
22153 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22156 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
22157 when creating +1 values for SImode.
22159 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
22162 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
22165 2015-04-10 Jakub Jelinek <jakub@redhat.com>
22166 Iain Sandoe <iain@codesourcery.com>
22169 * configure: Regenerate.
22171 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
22174 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
22176 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
22178 * doc/contrib.texi (Contributors): Add John Marino.
22180 2015-04-09 Jakub Jelinek <jakub@redhat.com>
22182 PR tree-optimization/65709
22183 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
22184 TREE_TYPE (TREE_TYPE (t)).
22186 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
22189 * lra-int.h (lra_bad_spill_regno_start): New.
22190 * lra.c (lra_bad_spill_regno_start): New.
22191 (lra): Set up lra_bad_spill_regno_start. Set up
22192 lra_constraint_new_regno_start unconditionally.
22193 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
22196 2015-04-09 Marek Polacek <polacek@redhat.com>
22197 Jakub Jelinek <jakub@redhat.com>
22199 PR middle-end/65554
22200 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
22201 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
22204 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
22206 PR rtl-optimization/65693
22207 * combine.c (is_parallel_of_n_reg_sets): Move outside of
22210 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
22213 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
22214 device specs file if "device-specs%s" didn't resolve to a path.
22216 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
22219 * config/i386/i386.c (fixup_modeless_constant): New.
22220 (ix86_expand_args_builtin): Fixup modeless constant operand.
22221 (ix86_expand_round_builtin): Ditto.
22222 (ix86_expand_special_args_builtin): Ditto.
22223 (ix86_expand_builtin): Ditto.
22225 2015-04-09 Jakub Jelinek <jakub@redhat.com>
22228 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
22229 any pow2 integer in between 2 and 0x80000000U inclusive.
22231 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
22233 PR rtl-optimization/65693
22234 * combine.c (is_parallel_of_n_reg_sets): Change first argument
22235 from an rtx_insn * to an rtx.
22236 (try_combine): Adjust both callers. Use it once more.
22238 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22240 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
22241 (chkp_make_static_const_bounds): Search existing
22242 symbol by assembler name. Use make_decl_one_only.
22243 (chkp_get_zero_bounds_var): Remove node search which
22244 is now performed in chkp_make_static_const_bounds.
22245 (chkp_get_none_bounds_var): Likewise.
22247 2015-04-08 Michael Witten <mfwitten@gmail.com>
22249 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
22252 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22254 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
22256 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
22258 * doc/extend.texi (__sync Builtins): Fix grammar.
22260 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22262 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
22264 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22266 * varasm.c (emit_local): Move definition of align.
22268 2015-04-08 Julian Brown <julian@codesourcery.com>
22270 * config/nvptx/mkoffload.c (process): Support variable mapping.
22272 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
22274 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
22276 (alpha_write_one_linkage): Correct typo.
22278 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22280 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
22282 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
22284 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
22286 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22288 * tree-chkp.h (chkp_insert_retbnd_call): New.
22289 * tree-chkp.c (chkp_insert_retbnd_call): New.
22290 * ipa-split.c (insert_bndret_call_after): Remove.
22291 (split_function): Use chkp_insert_retbnd_call.
22292 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
22293 bounds for instrumented functions.
22295 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
22298 * calls.c (initialize_argument_information): When producing tail
22299 call also turn SSA_NAMES passed by references to original PARM_DECLs
22301 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
22304 * lra-remat.c (do_remat): Process input and non-input insn
22305 registers separately.
22307 2015-04-07 Jakub Jelinek <jakub@redhat.com>
22310 * valtrack.c (debug_lowpart_subreg): New function.
22311 (dead_debug_insert_temp): Use it.
22313 PR middle-end/65680
22314 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
22315 into signed HOST_WIDE_INT the same as negative bit_offset.
22317 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
22319 * ipa-comdats.c (ipa_comdats): Visit all thunks
22320 to set proper comdat group.
22322 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22325 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
22326 on constants for NEON VSTRUCT modes.
22328 2015-04-07 Jakub Jelinek <jakub@redhat.com>
22329 Iain Sandoe <iain@codesourcery.com>
22332 * configure: Regenerate.
22334 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22337 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
22338 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
22339 that LFD is used to load double constants instead of LFS. Add
22340 defaults for all costs structures. Add comments for missing
22341 initialization fields.
22342 (size32_cost): Likewise.
22343 (size64_cost): Likewise.
22344 (rs64a_cost): Likewise.
22345 (mpccore_cost): Likewise.
22346 (ppc403_cost): Likewise.
22347 (ppc405_cost): Likewise.
22348 (ppc440_cost): Likewise.
22349 (ppc476_cost): Likewise.
22350 (ppc601_cost): Likewise.
22351 (ppc603_cost): Likewise.
22352 (ppc604_cost): Likewise.
22353 (ppc604e_cost): Likewise.
22354 (ppc620_cost): Likewise.
22355 (ppc630_cost): Likewise.
22356 (ppccell_cost): Likewise.
22357 (ppc750_cost): Likewise.
22358 (ppc7450_cost): Likewise.
22359 (ppc8540_cost): Likewise.
22360 (ppce300c2c3_cost): Likewise.
22361 (ppce500mc_cost): Likewise.
22362 (ppce500mc64_cost): Likewise.
22363 (ppce5500_cost): Likewise.
22364 (ppce6500_cost): Likewise.
22365 (titan_cost): Likewise.
22366 (power4_cost): Likewise.
22367 (power6_cost): Likewise.
22368 (power7_cost): Likewise.
22369 (power8_cost): Likewise.
22370 (ppca2_cost): Likewise.
22371 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
22373 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
22374 instead of XXLOR to copy SFmode to clear out dirty bits created
22375 when SFmode denormals are generated.
22376 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
22377 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
22379 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
22381 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
22382 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
22383 * config/aarch64/aarch64-tune.md: Regenerate.
22385 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
22387 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
22388 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
22389 * config/arm/arm-cores.def (exynos-m1): New core.
22390 * config/arm/arm-tune.md: Regenerate.
22391 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
22392 * config/arm/bpabi.h: Likewise.
22394 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
22396 * ipa-cp (set_single_call_flag): Remove too
22397 restrictive assert.
22399 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
22401 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
22402 GOMP_offload_unregister from the destructor.
22404 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
22406 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
22407 flags for instrumentation thunk.
22408 (chkp_produce_thunks): Likewise.
22410 2015-04-05 Martin Liska <mliska@suse.cz>
22413 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
22414 has computed data structure.
22415 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22417 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
22419 * invoke.texi (inline-unit-growth): Increase growth to 20%
22420 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
22422 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
22425 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
22427 (lra_rematerialization_iter): New.
22428 * lra.c (lra): Initialize lra_rematerialization_iter.
22429 Stop updating lra_constraint_new_regno_start after switching of
22430 inheritance and rematerialization.
22431 * lra-remat.c (lra_rematerialization_iter): New.
22432 (lra_remat): Add printing pass iteration. Do rematerialization
22433 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
22435 2015-04-04 Richard Biener <rguenther@suse.de>
22437 PR tree-optimization/64909
22438 PR tree-optimization/65660
22439 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
22440 to take a cost vector for scalar iteration cost.
22441 (vect_get_single_scalar_iteration_cost): Likewise.
22442 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
22443 Compute the scalar iteration cost into a cost vector.
22444 (vect_get_known_peeling_cost): Use the scalar cost vector to
22445 account for the cost of the peeled iterations.
22446 (vect_estimate_min_profitable_iters): Likewise.
22447 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
22450 2015-04-04 Alan Modra <amodra@gmail.com>
22454 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
22455 0.0 constant unless TARGET_VSX.
22456 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
22459 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22462 * ipa-inline-transform.c (inline_call): Skip sanity check to work
22465 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22468 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
22469 speculative indirect edges to avoid ordering issue.
22471 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22474 * ipa-inline.c (edge_badness): Add combined size to the denominator.
22476 2015-04-03 Jakub Jelinek <jakub@redhat.com>
22478 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
22479 TYPE_ARTIFICIAL on the .omp_data* types.
22481 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22483 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
22484 instrumentation thunks.
22486 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22488 * config/i386/i386.c (ix86_expand_call): Avoid nested
22489 PARALLEL in returned call value.
22491 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22493 * lto-cgraph.c (input_cgraph_1): Always link instrumented
22494 assembler name with original one.
22496 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22498 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
22500 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22502 Revert parts of r216820.
22503 * config/i386/i386.md (movqi_internal): Correct type calculation
22504 for alternatives 3 and 5.
22506 2015-04-02 Jakub Jelinek <jakub@redhat.com>
22508 PR preprocessor/61977
22509 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
22510 predefine __vector/__bool/__pixel macros nor context sensitive
22511 macros for CLK_ASM.
22512 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
22514 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
22516 * config/pa/pa.c (pa_output_move_double): Directly handle register
22517 indexed memory operand. Simplify handling of scaled register indexed
22520 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22523 * config/i386/linux-common.h (MPX_SPEC): New.
22524 (CHKP_SPEC): Add MPX_SPEC.
22525 * doc/invoke.texi (-fcheck-pointer-boudns): Document
22526 possible issues with '-z bndplt' support in linker.
22528 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22530 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
22531 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
22532 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
22533 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
22534 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
22536 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
22538 * config/i386/sync.md (UNSPEC_MOVA): Remove.
22539 (atomic_load<mode>): Change operand 0 predicate to
22540 nonimmediate_operand and fix up the destination when needed.
22542 (atomic_loaddi_fpu): Use UNSPEC_LDA.
22543 (atomic_store<mode>): Change operand 1 predicate to
22544 nonimmendate_operand and move the source to register when needed.
22546 (atomic_store<mode>_1): Use UNSPEC_STA.
22547 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
22548 Fix moves from memory operand. Use UNSPEC_STA.
22550 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
22552 * expmed.c (strict_volatile_bitfield_p): Check that the access will
22553 not cross a MODESIZE boundary.
22554 (store_bit_field, extract_bit_field): Added assertions in the
22555 strict volatile bitfields code path.
22557 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
22560 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
22561 Increase args array size by one to avoid buffer overflow.
22563 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22565 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
22567 * ipa-inline.c (edge_badness): Add wrapper penalty.
22568 (sum_callers): Move up.
22569 (inline_small_functions): Set single_caller.
22570 * ipa-inline.h (inline_summary): Add single_caller.
22571 * ipa-split.c (split_function): Set split_part.
22572 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
22573 * cgraph.h (cgraph_node): Add split_part.
22575 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
22578 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
22579 Do not split operands 0 and operands 2 to halfmode.
22580 (atomic_compare_and_swap<mode>): Update for
22581 atomic_compare_and_swap<dwi>_doubleword changes.
22583 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22585 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
22586 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
22587 no caching is done.
22589 2015-03-31 Martin Liska <mliska@suse.cz>
22592 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
22593 has already filled up function summary.
22594 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22596 2015-03-31 Richard Biener <rguenther@suse.de>
22598 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
22601 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
22603 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
22605 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
22606 (s390_asm_output_function_label): Adapt to new signature of
22607 s390_function_num_hotpatch_hw
22608 Optimise the code generating assembler output.
22609 Add comments to assembler file.
22611 2015-03-31 Richard Biener <rguenther@suse.de>
22613 PR middle-end/65626
22614 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
22615 of the noreturn call so it is last and cleanup_control_flow_bb
22616 can do the CFG part.
22618 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
22621 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
22622 same_comdat_group for external symbols.
22623 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
22624 infinite same_comdat_group traversal loop.
22626 2015-03-31 Jakub Jelinek <jakub@redhat.com>
22629 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
22630 automatically to $headers.
22632 2015-03-30 Jakub Jelinek <jakub@redhat.com>
22635 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
22636 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
22638 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
22640 * ipa-prop.c (param_type_may_change_p): Likewise.
22641 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
22642 (remove_unused_scope_block_p): Add in_ctor_dtor_block
22643 argument. Before inlining, preserve
22644 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
22645 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
22647 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
22649 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22652 * ipa-inline.c (edge_badness): Base denominator on callee's
22655 2015-03-27 Martin Jambor <mjambor@suse.cz>
22658 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
22659 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
22660 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
22661 node_calling_single_call.
22662 * ipa-cp.c (count_callers): New function.
22663 (set_single_call_flag): Likewise.
22664 (initialize_node_lattices): Count callers and set single_flag_call if
22666 (incorporate_penalties): New function.
22667 (good_cloning_opportunity_p): Use it, dump new flags.
22668 (propagate_constants_topo): Set node_within_scc flag if appropriate.
22669 * doc/invoke.texi (ipa-cp-recursion-penalty,
22670 ipa-cp-single-call-pentalty): Document.
22672 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22675 * symtab.c (symtab_node::get_partitioning_class): Register vars
22677 * varpool.c (symbol_table::output_variables) Do not assemble unefined
22678 decls for non-symbols.
22680 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
22683 * output.h (default_binds_local_p_2): New.
22684 * varasm.c (default_binds_local_p_2): Renamed to ...
22685 (default_binds_local_p_3): This. Don't return true on protected
22686 data symbol if protected data may be external.
22687 (default_binds_local_p): Use default_binds_local_p_3.
22688 (default_binds_local_p_1): Likewise.
22689 (default_binds_local_p_2): New.
22690 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
22691 default_binds_local_p_2 if TARGET_MACHO is undefined.
22693 2015-03-27 Jakub Jelinek <jakub@redhat.com>
22696 * config/i386/i386.c (legitimize_pic_address): If base
22697 is SYMBOL_REF or LABEL_REF using %rip addressing, force
22698 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
22700 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22703 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
22706 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22709 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
22710 of optimized out indirect call.
22711 (redirect_to_unreachable): Always build symbol table node for
22712 BUILT_IN_UNREACHABLE
22714 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
22717 * ira-costs.c (record_reg_classes): Process all constraint string
22720 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
22722 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
22726 * config/c6x/constraints.md (S3): New constraint.
22727 * config/c6x/c6x.md (real_jump): Use it.
22729 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22731 PR middle-end/65595
22732 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
22733 do redirection if the call is not optimized out.
22735 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
22738 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
22739 (fchkp-check-incomplete-type): Add LTO.
22740 (fchkp-zero-input-bounds-for-main): Likewise.
22741 (fchkp-first-field-has-own-bounds): Likewise.
22742 (fchkp-narrow-bounds): Likewise.
22743 (fchkp-narrow-to-innermost-array): Likewise.
22744 (fchkp-use-static-bounds): Likewise.
22745 (fchkp-use-static-const-bounds): Likewise.
22746 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22748 2015-03-27 Marek Polacek <polacek@redhat.com>
22750 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
22752 2015-03-27 Marek Polacek <polacek@redhat.com>
22755 * ubsan.c (ubsan_create_edge): New function.
22756 (instrument_bool_enum_load): Call it.
22757 (instrument_nonnull_arg): Likewise.
22758 (instrument_nonnull_return): Likewise.
22759 (instrument_object_size): Likewise.
22761 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22763 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
22766 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22769 * lto-streamer.h (class lto_location_cache): New.
22770 (struct data_in): Add location_cache.
22771 (lto_input_location): Update prototype.
22772 (stream_input_location_now): New.
22773 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
22774 pointer to location.
22775 (stream_input_location): Update.
22776 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
22777 (warn_odr): Apply location cache before warning.
22778 (lto_input_location): Update prototype.
22779 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
22780 Use stream_input_location_now.
22781 * lto-streamer-in.c (lto_location_cache::current_cache): New static
22783 (lto_location_cache::cmp_loc): New function.
22784 (lto_location_cache::apply_location_cache): New function.
22785 (lto_location_cache::accept_location_cache): New function.
22786 (lto_location_cache::revert_location_cache): New function.
22787 (lto_location_cache::input_location): New function.
22788 (lto_input_location): Do location caching.
22789 (stream_input_location_now): New function.
22790 (input_eh_region, input_struct_function_base): Use
22791 stream_input_location_now.
22792 (lto_data_in_create): use new.
22793 (lto_data_in_delete): Use delete.
22794 * tree-streamer-in.c (unpack_ts_block_value_fields,
22795 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
22796 lto_input_ts_exp_tree_pointers): Update for cached location api.
22798 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22801 * passes.def: Add pass_nothrow.
22802 * ipa-pure-const.c: (pass_data_nothrow): New.
22803 (pass_nothrow): New.
22804 (pass_nothrow::execute): New.
22805 (make_pass_nothrow): New.
22806 * tree-pass.h (make_pass_nothrow): Declare.
22808 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22810 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
22811 edge to change by speculation resolution or redirection.
22812 (edge_set_predicate): Likewise.
22813 (inline_summary_t::duplicate): Likewise.
22814 (remap_edge_summaries): Likewise.
22816 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22818 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
22820 (can_inline_edge_p): Relax option matching for always inline functions.
22822 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
22825 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
22826 Check operand 4 and operand 0 for equality.
22827 (avx512f_vextract<shuffletype>32x4_1_maskm):
22828 Check operand 6 and operand 0 for equality.
22829 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
22831 (vec_extract_hi_<mode>_maskm): Ditto.
22833 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22835 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
22836 dead calls back to live.
22837 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
22839 (cgraph_node::verify_node): ... here; verify only callee edges,
22841 * cif-code.def (CILK_SPAWN): New code.
22843 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22845 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
22846 (edge_set_predicate): Use it to mark unreachable edges.
22847 (inline_summary_t::duplicate): Remove unnecesary code.
22848 (remap_edge_summaries): Likewise.
22849 (dump_inline_summary): Report contains_cilk_spawn.
22850 (compute_inline_parameters): Compute contains_cilk_spawn.
22851 (inline_read_section, inline_write_summary): Stream
22852 contains_cilk_spawn.
22853 * ipa-inline.c (can_inline_edge_p): Do not touch
22854 DECL_STRUCT_FUNCTION that may not be available;
22855 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
22856 remove check for callee_fun->can_throw_non_call_exceptions and
22857 replace it by optimization attribute check; check for flag_exceptions.
22858 * ipa-inline-transform.c (inline_call): Maintain
22859 DECL_FUNCTION_PERSONALITY
22860 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
22862 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22864 PR tree-optimization/65551
22865 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
22866 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
22868 2015-03-26 Richard Biener <rguenther@suse.de>
22870 PR middle-end/65555
22871 * tree-cfg.c (verify_gimple_call): Do not require a call to
22872 have no LHS if it wasn't recognized as control altering yet.
22874 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22876 PR tree-optimization/64715
22877 * passes.def: Add another instance of pass_object_sizes before ccp1.
22878 * tree-object-size.c (pass_object_sizes::execute): In
22879 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
22880 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
22881 __bos result and the computed constant. Remove redundant
22882 checks, obsoleted by gimple_call_builtin_p test.
22884 * var-tracking.c (variable_tracking_main_1): Don't track
22885 variables for targetm.no_register_allocation targets.
22887 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
22889 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
22890 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
22892 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
22895 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
22896 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
22897 0.0 is correctly setup.
22898 (extenddftf2_internal): Likewise.
22900 2015-03-25 Sebastian Pop <s.pop@samsung.com>
22902 PR tree-optimization/65177
22903 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
22905 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
22906 edges not adjacent on the path to the original code.
22908 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
22911 * doc/install.texi (Building a native compiler): Document new
22912 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
22913 configuration assumes that the host supports the linker plugin.
22915 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
22918 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
22919 chain for generated call.
22921 2015-03-25 Richard Biener <rguenther@suse.de>
22923 * passes.c (pass_manager::execute_early_local_passes): Guard
22924 execution of pass_chkp_instrumentation_passes with
22925 flag_check_pointer_bounds.
22926 (pass_chkp_instrumentation_passes::gate): Likewise.
22928 2015-03-25 Martin Liska <mliska@suse.cz>
22930 PR tree-optimization/65538
22931 * symbol-summary.h (function_summary::~function_summary):
22932 Relese memory for allocated summaries.
22933 (function_summary::release): New function.
22935 2015-03-25 Jakub Jelinek <jakub@redhat.com>
22938 * lto-streamer-out.c (DFS::worklist): New struct.
22939 (DFS::worklist_vec): New data member.
22940 (DFS::next_dfs_num): Remove.
22941 (DFS::DFS): Rewritten using worklist instead of recursion,
22942 using most of code from DFS::DFS_write_tree.
22943 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
22944 pass it to DFS_write_tree calls.
22945 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
22946 quick initial checks push it into worklist_vec and return.
22948 2015-03-25 Richard Biener <rguenther@suse.de>
22950 PR middle-end/65519
22951 * genmatch.c (expr::gen_transform): Re-write to avoid
22952 using gimple_build.
22954 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22956 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
22958 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22960 * config/arm/arm.opt (print_tune_info): New option.
22961 * config/arm/arm.c (arm_print_tune_info): New function.
22962 (arm_file_start): Call arm_print_tune_info.
22963 * config/arm/arm-protos.h (struct tune_params): Add comment.
22964 * doc/invoke.texi (@item -mprint-tune-info): New item.
22965 (-mtune): mention it in ARM Option Summary.
22967 2015-03-25 DJ Delorie <dj@redhat.com>
22969 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
22972 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
22973 Martin Liska <mliska@suse.cz>
22975 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
22976 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
22977 (sem_item::add_type): New function.
22978 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
22979 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
22980 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
22981 (sem_function::equals_wpa): Fix typo.
22982 * ipa-icf.h (sem_item::add_type): New function.
22983 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
22986 2015-03-24 Jakub Jelinek <jakub@redhat.com>
22988 PR tree-optimization/65533
22989 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
22990 with swapped operands, call vect_free_slp_tree on
22991 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
22994 2015-03-24 Richard Biener <rguenther@suse.de>
22996 PR middle-end/65517
22997 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
22998 for fixup if necessary.
23000 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
23002 * doc/extend.texi (Function Attributes): Add @cindex entries
23003 for all attributes and regularize their format. Delete text
23004 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
23005 information about "eightbit_data", "tiny_data", and "model"
23006 variable attributes to the Variable Attributes section. Fix
23007 some obvious typos and copy-editing issues.
23008 (Variable Attributes, Type Attributes): Likewise add/fix
23009 @cindex entries for all attributes.
23011 2015-03-23 Jakub Jelinek <jakub@redhat.com>
23014 * tree-chkp.c (chkp_build_returned_bound): Ignore
23015 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
23017 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
23020 * config/sh/predicates.md (simple_mem_operand,
23021 displacement_mem_operand): Add test for reg.
23022 (short_displacement_mem_operand): Test for displacement_mem_operand
23023 before invoking sh_disp_addr_displacement.
23024 * config/sh/constraints.md (Sdd, Sra): Simplify.
23025 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
23026 Remove redundant displacement_mem_operand tests.
23028 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
23031 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
23032 the same -mmcu=MCU more than once.
23034 2015-03-23 Jakub Jelinek <jakub@redhat.com>
23037 * ipa-devirt.c: Remove duplicate demangle.h include.
23040 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
23042 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
23043 REG_POINTER on *destptr after adjusting it for prologue size.
23046 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
23047 ultimate_alias_target ()->order ints instead of
23048 ultimate_alias_target () pointers.
23050 2015-03-23 Richard Biener <rguenther@suse.de>
23052 PR tree-optimization/65518
23053 * tree-vect-stmts.c (vectorizable_load): Reject single-element
23054 interleaving cases we generate absymal code for.
23056 2015-03-23 Richard Biener <rguenther@suse.de>
23058 PR tree-optimization/65494
23059 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
23061 (vect_analyze_slp_instance): But do that here, always and once.
23063 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23065 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
23066 adding T or multiplying by T+1 and subracting T.
23068 2015-03-22 Jeff Law <law@redhat.com>
23070 PR rtl-optimization/64317
23071 * Makefile.in (OBJS): Add gcse-common.c
23072 * gcse.c: Include gcse-common.h
23073 (struct modify_pair_s): Move structure definition to gcse-common.h
23074 (compute_transp): Move function to gcse-common.c.
23075 (canon_list_insert): Similarly.
23076 (record_last_mem_set_info): Break out some code and put it into
23077 gcse-common.c. Call into the new common code.
23078 (compute_local_properties): Pass additional arguments to compute_transp.
23079 * postreload-gcse.c: Include gcse-common.h and df.h
23080 (modify_mem_list_set, blocks_with_calls): New variables.
23081 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
23082 (get_bb_avail_insn): Pass in the expression index too.
23083 (alloc_mem): Allocate memory for the new bitmaps and lists.
23084 (free_mem): Free memory for the new bitmaps and lists.
23085 (insert_expr_in_table): Record a bitmap index for each entry we
23087 (record_last_mem_set_info): Call into common code in gcse-common.c.
23088 (get_bb_avail_insn): If no available insn was found in the requested
23089 BB. If BB has a single predecessor, see if the expression is
23090 transparent in BB and available in that single predecessor.
23091 (compute_expr_transp): New wrapper for compute_transp.
23092 (eliminate_partially_redundant_load): Pass expression's bitmap_index
23093 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
23094 (gcse_after_reload_main): If there are elements in the hash table,
23095 then compute transparency for all the elements in the hash table.
23096 * gcse-common.h: New file.
23097 * gcse-common.c: New file.
23099 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
23101 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
23103 (System Headers): Likewise.
23105 (Traditional macros): Likewise.
23106 (Invocation): Likewise.
23107 (Option Index): Likewise.
23108 * doc/cppopts.texi (-M): Likewise.
23109 (-finput-charset): Likewise.
23110 (--help): Likewise.
23111 * doc.invoke.texi (AVR Options): Likewise.
23112 (V850 Options): Likewise.
23114 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
23117 * ipa-devirt.c: Include demangle.h
23118 (odr_type_d): Add field rtti_broken.
23119 (odr_subtypes_equivalent_p): Do not require name to match.
23120 (compare_virtual_tables): Fix typo; if type already has ODR violation,
23121 bypass the tests; be ready for function referneces in vtables that are
23122 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
23123 (warn_odr): Give up for nameless types.
23124 (warn_types_mismatch): Report mismatch in mangled names;
23125 report mismatch in anonymous namespaces; look into component types to
23126 give useful error; report when mismatch is dragged in from other ODR
23128 (odr_types_equivalent_p): Match types for being polymorphic; avoid
23129 duplicated diagnostics.
23130 (add_type_duplicate): Reorder checks so more informative ones come
23131 first; fix typo; do not output "the extra base is defined here" when
23133 (BINFO_N_BASE_BINFOS): Relax sanity check.
23135 2015-03-22 Martin Liska <mliska@suse.cz>
23136 Jakub Jelinek <jakub@redhat.com>
23138 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
23139 masks that can potentially include a builtin.
23140 (ix86_add_new_builtins): Introduce fast filter for isa values
23141 that cannot trigger builtin inclusion.
23143 2015-03-22 Martin Liska <mliska@suse.cz>
23145 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
23146 (sem_item::update_hash_by_local_refs): Likewise.
23147 (sem_variable::get_hash): Empty line is fixed.
23148 (sem_item_optimizer::execute): Include adding of hash references.
23149 (sem_item_optimizer::update_hash_by_addr_refs): New function.
23150 (sem_item_optimizer::build_hash_based_classes): Use local hash.
23151 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
23152 (sem_item::update_hash_by_local_refs): Likewise.
23154 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
23157 * ipa-comdats.c (enqueue_references): Walk through thunks.
23158 (ipa_comdats): Likewise.
23159 (set_comdat_group_1): New function.
23161 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
23164 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
23167 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
23168 Gerald Pfeifer <gerald@pfeifer.com>
23170 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
23172 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
23173 Sandra Loosemore <sandra@codesourcery.com>
23175 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
23176 function parameter declaration.
23177 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
23178 Update arguments to nios2_adjust_call_address().
23179 (sibcall_internal): Rename from *sibcall.
23180 (sibcall_value_internal): Rename from *sibcall_value.
23181 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
23182 (nios2_large_got_address): Add target temp reg parameter.
23183 (nios2_got_address): Adjust call to nios2_large_got_address, add
23184 force_reg around it.
23185 (nios2_load_pic_address): Add target temp reg parameter, replace call
23186 to nios2_got_address with corresponding code.
23187 (nios2_legitimize_constant_address): Update call to
23188 nios2_load_pic_address.
23189 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
23190 to use temp reg for PIC loading purposes.
23191 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
23192 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
23193 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
23195 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
23197 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
23198 usage of "the @option{...}".
23199 (-Wopenmp-simd): Likewise.
23200 (-fsanitize-recover): Likewise.
23201 (-fsanitize-undefined-trap-on-error): Likewise.
23203 (tracer-dynamic-coverage-feedback): Likewise.
23204 (reorder-block-duplicate-feedback): Likewise.
23205 (loop-unroll-jam-size): Likewise.
23208 (-mabs=legacy): Likewise.
23209 (-mupper-regs-df): Likewise.
23210 (-mupper-regs-sf): Likewise.
23211 (-mpointers-to-nested-functions): Likewise.
23213 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
23215 * doc/extend.texi (Cilk Plus Builtins): Add markup.
23217 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
23219 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
23220 additional index entries and cross-references.
23221 (-fchkp-check-incomplete-type): Likewise.
23222 (-fchkp-first-field-has-own-bounds): Likewise.
23223 (-fchkp-narrow-to-innermost-array): Likewise.
23224 (-fchkp-use-fast-string-functions): Likewise.
23225 (-fchkp-use-nochk-string-functions): Likewise.
23226 (-fchkp-use-static-const-bounds): Likewise.
23227 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
23228 (-fchkp-instrument-marked-only): Likewise.
23229 (-fchkp-use-wrappers): Likewise.
23230 (-static-libmpx): Likewise.
23231 (-static-libmpxwrappers): Likewise.
23232 * doc/extend.texi (bnd_legacy): Likewise.
23233 (bnd_instrument): Likewise.
23234 (bnd_variable_size): Likewise.
23235 (Pointer Bounds Checker builtins): Likewise.
23237 2015-03-21 Tom de Vries <tom@codesourcery.com>
23239 PR tree-optimization/65458
23240 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
23241 * cgraph.h (cgraph_node): Add parallelized_function field.
23242 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
23243 (input_overwrite_node): Read parallelized_function field.
23244 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
23245 parallelized_function on cgraph_node for child_fn.
23246 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
23247 Remove include of gt-tree-parloops.h.
23248 (parallelized_functions): Remove static variable.
23249 (parallelized_function_p): Rewrite using parallelized_function field of
23251 (create_loop_fn): Remove adding to parallelized_functions.
23252 * Makefile.in (GTFILES): Remove tree-parloops.c
23254 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
23256 PR rtl-optimization/64366
23257 * lra.c (lra_update_insn_regno_info): Consider regs in
23258 CALL_INSN_FUNCTION_USAGE memory.
23260 2015-03-20 Richard Biener <rguenther@suse.de>
23262 PR middle-end/64715
23263 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
23264 for type comparison and gcc_checking_assert.
23265 (chrec_fold_plus_poly_poly): Likewise.
23266 (chrec_fold_multiply_poly_poly): Likewise.
23267 (chrec_convert_1): Likewise.
23268 * gimplify.c (gimplify_expr): Remove premature folding of
23269 &X + CST to &MEM[&X, CST].
23271 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
23273 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
23275 (ipa_inline): Recompute inline_failed codes.
23276 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
23277 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
23280 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
23282 PR rtl-optimization/60851
23283 * recog.c (constrain_operands): Accept a pseudo register before reload
23284 for LRA enabled targets.
23286 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
23289 * config/rs6000/predicates.md (easy_fp_constant): Remove special
23290 -ffast-math handling that kept non-0 constants live in the RTL
23291 until reload. Remove logic testing the number of instructions it
23292 took to create a constant in a GPR that was never used, due to a
23293 test for soft-float earlier.
23294 (memory_fp_constant): Delete, no longer used.
23296 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
23297 alternatives for loading non-0 constants into GPRs for hard
23298 floating point that is no longer needed due to changes in
23299 easy_fp_constant. Add support for loading 0.0 into GPRs.
23300 (mov<mode>_hardfloat32): Likewise.
23301 (mov<mode>_hardfloat64): Likewise.
23302 (mov<mode>_64bit_dm): Likewise.
23303 (movtd_64bit_nodm): Likewise.
23304 (pre-reload move FP constant define_split): Delete define_split,
23305 since it is no longer used.
23306 (extenddftf2_internal): Remove GHF constraints that are not valid
23309 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
23311 PR rtl-optimization/63491
23312 * lra-constraints.c (check_and_process_move): Use src instead of
23313 sreg. Remove some dead code.
23315 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
23318 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
23319 (sem_variable::merge): Likewise.
23321 2015-03-19 Martin Liska <mliska@suse.cz>
23324 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
23325 all fields of cgraph_thunk_info.
23327 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
23329 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
23330 clone instrumented thunks.
23332 2015-03-19 Richard Biener <rguenther@suse.de>
23335 2015-03-10 Richard Biener <rguenther@suse.de>
23337 PR middle-end/63155
23338 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23339 * tree-ssa-coalesce.c: Include timevar.h.
23340 (attempt_coalesce): Handle graph being NULL.
23341 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23342 Split out abnormal coalescing to ...
23343 (perform_abnormal_coalescing): ... this function.
23344 (coalesce_ssa_name): Perform abnormal coalescing without computing
23346 (verify_ssa_coalescing_worker): New function.
23347 (verify_ssa_coalescing): Likewise.
23349 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23350 Jakub Jelinek <jakub@redhat.com>
23353 * tsan.c (instrument_gimple): Clear tail call flag on
23356 2015-03-19 Jakub Jelinek <jakub@redhat.com>
23359 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
23360 call in the return bb.
23361 (find_split_points): Add RETURN_BB argument, don't call
23363 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
23364 if true append TSAN_FUNC_EXIT internal call after the call to
23365 the split off function.
23366 (execute_split_functions): Call find_return_bb here.
23367 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
23368 Adjust find_split_points and split_function calls.
23370 2015-03-18 DJ Delorie <dj@redhat.com>
23372 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
23373 (iorqi3_virt): Likewise.
23375 2015-03-18 Tom de Vries <tom@codesourcery.com>
23377 * tree-parloops.c (parallelize_loops): Make static.
23378 * tree-parloops.h (parallelize_loops): Remove extern declaration.
23380 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
23382 PR middle-end/64491
23384 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
23386 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
23387 condition would be removed due to undefined behaviour.
23389 2015-03-18 Martin Liska <mliska@suse.cz>
23392 * cgraph.c (cgraph_node::get_create): Remove unnecessary
23393 xstrdup_for_dump wrapper.
23394 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
23396 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
23397 with xstrdup_for_dump.
23398 (sem_variable::equals): Likewise.
23399 (sem_item_optimizer::read_section): Use symtab_node::name instead of
23401 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
23402 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
23403 symtab_node::asm_name with xstrdup_for_dump.
23404 (congruence_class::dump): Use symtab_node::name instead of
23406 * ipa-icf.h (symtab_node::name): Remove.
23407 (symtab_node::asm_name): Likewise.
23409 2015-03-18 Jakub Jelinek <jakub@redhat.com>
23411 PR tree-optimization/65450
23412 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
23414 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
23415 it instead of duplicate_ssa_name_ptr_info.
23418 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
23420 2015-03-18 Richard Biener <rguenther@suse.de>
23422 * tree-data-ref.h (struct access_matrix): Remove.
23423 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
23424 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
23425 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
23426 (am_vector_index_for_loop): Likewise.
23427 (struct data_reference): Remove access_matrix member.
23428 (DR_ACCESS_MATRIX): Remove.
23429 (lambda_vector_new): Add comment.
23430 (lambda_matrix_new): Use XOBNEWVEC.
23432 2015-03-18 Richard Biener <rguenther@suse.de>
23434 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
23435 (pass_ch::execute): Cleanup the CFG only if we did sth.
23436 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
23438 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23440 * expmed.c (synth_mult): Use std::swap instead of manually
23441 swapping algorithms.
23443 2015-03-18 Jakub Jelinek <jakub@redhat.com>
23446 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
23448 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
23451 * config/avr/avr.opt (-nodevicelib): New option.
23452 * doc/invoke.texi (AVR Options): Document it.
23453 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
23454 libgcc.a, libc.a, libm.a.
23455 * config/avr/specs.h: Same.
23456 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
23457 which don't (directly) depend on the device. Print more help.
23458 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
23459 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
23460 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
23462 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
23463 for specs file name.
23464 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
23465 * config/avr/avr-mcus.def: Adjust initializers and comments.
23467 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
23469 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
23470 DECL_ONE_ONLY to check if decl is one only.
23471 * ipa-split.c (consider_split): Limit splitt of one only functions.
23473 2015-03-16 Jakub Jelinek <jakub@redhat.com>
23475 PR tree-optimization/65427
23476 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
23478 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
23480 2015-03-16 Marek Polacek <polacek@redhat.com>
23482 * cgraph.h (add_new_static_var): Remove declaration.
23483 * varpool.c (add_new_static_var): Remove function.
23485 2015-03-16 Jakub Jelinek <jakub@redhat.com>
23487 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
23488 instead of vec<tree> * with vec_alloc and release for args.
23491 PR middle-end/65431
23492 * omp-low.c (delete_omp_context): Only splay_tree_delete
23493 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
23494 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
23496 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
23499 * cfgexpand.c (align_base): New function.
23500 (alloc_stack_frame_space): Call it.
23501 (expand_stack_vars): Align prev_frame to be sure
23502 data->asan_vec elements aligned properly.
23504 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
23506 PR middle-end/65409
23507 * expr.c (store_field): Do not do a direct block copy if the source is
23508 a PARALLEL with BLKmode.
23510 2015-03-16 Tom de Vries <tom@codesourcery.com>
23512 PR middle-end/65414
23514 2015-03-12 Tom de Vries <tom@codesourcery.com>
23516 PR rtl-optimization/64895
23517 * lra-lives.c (check_pseudos_live_through_calls): Use
23518 actual_call_used_reg_set instead of call_used_reg_set, if available.
23520 2015-03-16 Alan Modra <amodra@gmail.com>
23523 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
23524 Modify Z->r bswapdi splitter to use dest in place of scratch.
23525 In r->Z and Z->r bswapdi splitter rename word_high, word_low
23526 to word1, word2 and rearrange logic to suit.
23527 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
23528 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
23529 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
23530 Add one '?' on r->r. Modify Z->r splitter to avoid need for
23533 2015-03-14 Jakub Jelinek <jakub@redhat.com>
23535 PR tree-optimization/65369
23536 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
23537 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
23538 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
23540 PR tree-optimization/65418
23541 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
23542 are casts in the first PLUS_EXPR operand, ensure tbias and
23543 *totallowp are in the inner type.
23545 PR rtl-optimization/65401
23546 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
23547 argument. If true, adjust_address_nv of x with big-endian
23548 correction for the mode widening to GET_MODE (y).
23549 (make_field_assignment): Don't do MEM mode widening here.
23550 Use MEM_P instead of GET_CODE == MEM.
23552 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
23554 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
23555 the external decls.
23557 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23560 * config/arm/arm.c (arm_gen_constant, AND case): Use
23561 ARM_SIGN_EXTEND when constructing AND mask.
23563 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
23565 * graph.c (print_graph_cfg): Make function names visible and append
23566 parenthesis to it. Also make groups of basic blocks belonging to the
23567 same function visible.
23569 2015-03-12 Richard Biener <rguenther@suse.de>
23571 PR middle-end/44563
23572 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
23573 to avoid quadratic behavior with inline expansion splitting blocks.
23574 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
23575 with the successor if the predecessor will be merged with it.
23576 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
23577 entry block with its successor.
23579 2015-03-13 Richard Biener <rguenther@suse.de>
23581 PR middle-end/44563
23582 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
23583 (cleanup_tree_cfg_1): Do not call it.
23584 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
23585 (fixup_noreturn_call): Mark the stmt as control altering.
23586 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
23588 (pass_data_fixup_cfg): Produce a dump file.
23589 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
23590 (need_noreturn_fixup): New global.
23591 (pass_dominator::execute): Fixup queued noreturn calls.
23592 (optimize_stmt): Queue calls that became noreturn for fixup.
23593 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
23594 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
23595 (el_to_fixup): New global.
23596 (eliminate_dom_walker::before_dom_childre): Queue calls that
23597 became noreturn for fixup.
23598 (eliminate): Fixup queued noreturn calls.
23599 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
23600 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
23601 (substitute_and_fold_dom_walker::before_dom_children): Queue
23602 alls that became noreturn for fixup.
23603 (substitute_and_fold): Fixup queued noreturn calls.
23605 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
23607 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
23608 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
23609 are building; for methods check ODR type of class they belong to if
23610 they may lead to a polymorphic call.
23611 (sem_function::compare_polymorphic_p): Be bit smarter about testing
23612 when function may lead to a polymorphic call.
23613 (sem_function::compare_type_list): Remove.
23614 (sem_variable::equals): Update use of compatible_types_p.
23615 (sem_variable::parse_tree_refs): Remove.
23616 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
23618 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
23620 (func_checker::compatible_polymorphic_types_p): Break out from ...
23621 (unc_checker::compatible_types_p): ... here.
23622 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
23624 (unc_checker::compatible_types_p): Update.
23625 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
23628 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23630 PR rtl-optimization/65235
23631 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
23632 When first element of vec_concat is const_int, calculate its size
23633 using second element.
23635 2015-03-12 Richard Biener <rguenther@suse.de>
23637 PR middle-end/65270
23638 * fold-const.c (operand_equal_p): Fix ordering of resetting
23639 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
23641 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
23643 * config/s390/s390.c (s390_reorg): Move code to output nops after label
23645 (s390_asm_output_function_label): Likewise.
23646 * config/s390/s390.c (s390_asm_output_function_label):
23647 Fix function label alignment with -mhtopatch.
23648 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
23649 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
23650 ("nop_2_byte"): New define_insn.
23651 ("nop_4_byte"): Likewise.
23652 ("nop_6_byte"): Likewise.
23653 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
23654 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
23656 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23659 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
23662 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23665 * toplev.c (process_options): Restrict Pointer Bounds Checker
23666 usage with Address Sanitizer.
23668 2015-03-12 Richard Biener <rguenther@suse.de>
23670 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
23672 * omp-low.c (expand_omp_taskreg): Split block before removing
23674 (expand_omp_target): Likewise.
23675 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
23676 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
23677 stmt to split_block.
23679 2015-03-12 Tom de Vries <tom@codesourcery.com>
23681 PR rtl-optimization/64895
23682 * lra-lives.c (check_pseudos_live_through_calls): Use
23683 actual_call_used_reg_set instead of call_used_reg_set, if available.
23685 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23687 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
23688 (cgraph_node::remove): Likewise.
23689 (cgraph_node::get_untransformed_body): Likewise.
23690 * varpool.c (varpool_node::remove): Likewise.
23691 (varpool_node::get_constructor): Add sanity check.
23693 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
23695 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
23697 (-fabi-compat-version): Likewise.
23698 (-ffriend-injection): Likewise.
23699 (-Wdeclaration-after-statement): Likewise.
23700 (-fomit-frame-pointer): Likewise.
23701 (-ftree-coalesce-inlined-vars): Likewise.
23702 (-fvisibility=): Likewise.
23703 * doc/extend.texi (Typeof): Likewise.
23704 (Zero Length): Likewise.
23705 (Escaped Newlines): Likewise.
23706 (Compound Literals): Likewise.
23707 (Function Attributes): Likewise.
23708 (Label Attributes): Likewise.
23709 (Type Attributes): Likewise.
23710 (Function Names): Likewise.
23711 (Other Builtins): Likewise.
23712 (Function Specific Option Pragmas): Likewise.
23713 (C++ Interface): Likewise.
23715 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
23717 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
23719 2015-03-11 Marek Polacek <polacek@redhat.com>
23721 PR tree-optimization/65388
23722 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
23724 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23727 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
23728 * configure: Regenerate.
23729 * config.in: Regenerate.
23730 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
23731 [-mn-flash]: Document it.
23732 [__AVR_ARCH__]: Document avrtiny.
23734 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
23735 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
23736 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
23738 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23740 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
23742 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23745 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
23746 allow reloads of PLUS in floating point/VSX registers.
23748 2015-03-11 Junmo Park <junmoz.park@samsung.com>
23750 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
23751 crypto_sha256_fast.
23752 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
23754 2015-03-11 Richard Biener <rguenther@suse.de>
23756 PR tree-optimization/65310
23757 * tree-sra.c (build_ref_for_offset): Also preserve larger
23760 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
23762 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
23764 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23767 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
23769 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
23771 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23773 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
23774 (sem_function::equals_wpa): ... here.
23776 2015-03-10 Marek Polacek <polacek@redhat.com>
23777 Jakub Jelinek <jakub@redhat.com>
23780 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
23781 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
23784 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23787 * config/rs6000/t-linux: For powerpc64* target set
23788 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
23790 2015-03-10 Richard Biener <rguenther@suse.de>
23792 PR middle-end/44563
23793 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
23794 for redirect_all_calls.
23796 2015-03-10 Marek Polacek <polacek@redhat.com>
23798 * gdbinit.in (pcfun): Define and document.
23800 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
23802 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
23803 of libgomp-plugin.h.
23804 (find_target_compiler): Support a case when the path to gcc is
23805 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
23806 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
23807 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
23809 (main): Use GCC_INSTALL_NAME as target_driver_name.
23810 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
23812 (mkoffload.o): Remove obsolete include path and defines.
23813 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
23815 2015-03-10 Richard Biener <rguenther@suse.de>
23817 PR middle-end/63155
23818 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23819 * tree-ssa-coalesce.c: Include timevar.h.
23820 (attempt_coalesce): Handle graph being NULL.
23821 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23822 Split out abnormal coalescing to ...
23823 (perform_abnormal_coalescing): ... this function.
23824 (coalesce_ssa_name): Perform abnormal coalescing without computing
23826 (verify_ssa_coalescing_worker): New function.
23827 (verify_ssa_coalescing): Likewise.
23829 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23832 * config.gcc (extra_options) [avr]: Remove.
23833 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
23834 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
23835 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
23837 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
23838 (-mmcu=): Add Var and MissingArgError properties.
23840 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
23841 * config/avr/t-multilib: Regenerate.
23842 * config/avr/specs.h: New file.
23843 * config/avr/driver-avr.c: New file.
23844 * config/avr/genopt.sh: Remove file.
23845 * config/avr/avr-tables.opt: Remove file.
23846 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
23847 * config/avr/avr-c.c: Same.
23848 * avr-arch.h: Same.
23849 (avr_current_device): Remove proto.
23850 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
23851 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
23852 (EXTRA_SPEC_FUNCTIONS): Define.
23853 (avr_devicespecs_file): New specs function proto.
23854 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
23855 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
23856 (avr_current_device): Remove definition and usage.
23857 (avr_set_core_architecture): New static function.
23858 (avr_option_override): Use it.
23859 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
23860 (mcu_name): New static array.
23861 (comparator, avr_archs_str, avr_mcus_str): New static functions.
23862 (avr_inform_devices, avr_inform_core_architectures): New functions.
23863 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
23864 (avrlibc.h) [WITH_AVRLIBC]: Include.
23865 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
23866 (print_mcu): Rewrite from scratch.
23867 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
23868 Forward to avr-specific specs defined in device-specs file.
23869 * config/avr/t-avr (driver-avr.o): New rule.
23870 (avr-devices.o): Depend on avr-arch.h.
23871 (avr-mcus): No more depend on avr-tables.opt.
23872 (avr-tables.opt): Remove rule.
23873 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
23875 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23877 * c-family/c.opt (fchkp-use-wrappers): New.
23878 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
23879 (chkp_wrap_function): New.
23880 (chkp_build_instrumented_fndecl): Support wrapped
23882 * doc/invoke.texi (-fcheck-pointer-bounds): New.
23883 (-fchkp-check-incomplete-type): New.
23884 (-fchkp-first-field-has-own-bounds): New.
23885 (-fchkp-narrow-bounds): New.
23886 (-fchkp-narrow-to-innermost-array): New.
23887 (-fchkp-optimize): New.
23888 (-fchkp-use-fast-string-functions): New.
23889 (-fchkp-use-nochk-string-functions): New.
23890 (-fchkp-use-static-bounds): New.
23891 (-fchkp-use-static-const-bounds): New.
23892 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
23893 (-fchkp-check-read): New.
23894 (-fchkp-check-write): New.
23895 (-fchkp-store-bounds): New.
23896 (-fchkp-instrument-calls): New.
23897 (-fchkp-instrument-marked-only): New.
23898 (-fchkp-use-wrappers): New.
23899 (-static-libmpx): New.
23900 (-static-libmpxwrappers): New.
23902 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23904 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
23905 (CHKP_SPEC): Add wrappers library.
23906 * c-family/c.opt (static-libmpxwrappers): New.
23908 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23910 * config/i386/linux-common.h (LIBMPX_LIBS): New.
23911 (LIBMPX_SPEC): New.
23913 * gcc.c (CHKP_SPEC): New.
23914 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
23915 * c-family/c.opt (static-libmpx): New.
23917 2015-03-10 Richard Biener <rguenther@suse.de>
23919 PR middle-end/44563
23920 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
23922 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
23923 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
23924 (cgraph_add_edge_to_call_site_hash): Likewise.
23925 (cgraph_node::get_edge): Likewise.
23926 (cgraph_edge::set_call_stmt): Likewise.
23927 (cgraph_edge::remove_caller): Likewise.
23929 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
23931 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
23932 (callee_saved_gpr_regs_size): ... this.
23933 (callee_saved_regs_first_regno): Rename to ...
23934 (callee_saved_first_gpr_regno): ... this.
23935 (callee_saved_regs_last_regno) Rename to ...
23936 (callee_saved_last_gpr_regno): ... this.
23937 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
23939 (nds32_initial_elimination_offset): Likewise.
23940 (nds32_expand_prologue): Likewise.
23941 (nds32_expand_epilogue): Likewise.
23942 (nds32_expand_prologue_v3push): Likewise.
23943 (nds32_expand_epilogue_v3pop): Likewise.
23944 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
23945 Adjust renamed variables.
23946 (nds32_output_stack_pop): Likewise.
23948 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
23950 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
23953 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23955 PR rtl-optimization/65321
23956 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
23958 * var-tracking.c (use_narrower_mode): Likewise.
23960 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23962 PR tree-optimization/65355
23963 * varasm.c (notice_global_symbol): Do not produce RTL.
23964 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
23966 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
23967 check for section anchors.
23969 2015-03-10 Alan Modra <amodra@gmail.com>
23972 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
23973 to be single-arch by default. Set cpu_is_64bit for powerpc64
23974 given --with-cpu=native.
23975 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
23976 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
23978 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
23979 rs6000_isa_flags rather than TARGET_64BIT.
23981 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
23982 Kaz Kojima <kkojima@gcc.gnu.org>
23984 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
23986 2015-03-09 Jakub Jelinek <jakub@redhat.com>
23989 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
23990 on a TREE_BINFO, instead use BINFO_TYPE.
23992 2015-03-09 Richard Biener <rguenther@suse.de>
23994 PR middle-end/65270
23995 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
23996 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
23997 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
23998 of that. When comparing dereferences compare alignment.
23999 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
24001 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
24003 * ipa-inline-analysis.c (check_callers): Check
24004 node->can_remove_if_no_direct_calls_and_refs_p.
24005 (growth_likely_positive): Reorganize to call
24006 can_remove_if_no_direct_calls_p later.
24007 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
24008 will_be_removed_from_program_if_no_direct_calls_p): Add
24009 will_inline parameter.
24010 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
24011 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
24012 Handle inliner case correctly.
24014 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
24016 PR tree-optimization/63743
24017 * cfgexpand.c (reorder_operands): Also reorder if only second operand
24018 had its definition forwarded by TER.
24020 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
24023 * ipa-utils.h (types_odr_comparable): Add strict argument.
24024 * ipa-devirt.c: Fix whitespace;
24025 (odr_hasher): Remove.
24026 (odr_name_hasher, odr_vtable_hasher): New hashers.
24027 (can_be_name_hashed_p): New predicate.
24028 (hash_type_name): remove.
24029 (hash_odr_name): New.
24030 (odr_name_hasher::hash): new.
24031 (can_be_vtable_hashed_p): New.
24032 (hash_odr_vtable): New.
24033 (odr_vtable_hasher::hash): New.
24034 (types_same_for_odr): Add strict parameter.
24035 (types_odr_comparable): Likewise.
24036 (odr_name_hasher::equal): New.
24037 (odr_vtable_hasher::equal): New.
24038 (odr_name_hasher::remove): New.
24039 (odr_hash_type): Change to hash_table<odr_name_hasher>.
24040 (odr_vtable_hash_type): New.
24041 (odr_vtable_hash): New.
24042 (odr_subtypes_equivalent_p): Do strict comparsion.
24043 (add_type_duplicate): Merge type names; cleanup; avoid type
24045 (register_odr_type): Initialize vtable hash.
24046 (build_type_inheritance_graph): Likewise
24047 (get_odr_type): Reorg to use two hashes.
24048 (dump_possible_polymorphic_call_targets): Move sanity check after debug
24050 (ipa_devirt): Dump type_inheritance_graph.
24051 (types_same_for_odr): Add strict mode.
24053 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
24056 * cgraph.h (symtab_node): Add definition_alignment,
24057 can_increase_alignment_p and increase_alignment.
24058 * symtab.c (symtab_node::can_increase_alignment_p,
24059 increase_alignment_1, symtab_node::increase_alignment,
24060 symtab_node::definition_alignment): New.
24061 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
24062 can_increase_alignment_p.
24063 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
24064 * tree-vect-stmts.c (ensure_base_align): Likewise.
24065 * varasm.c (function_section_1): Use definition_alignment.
24066 (assemble_start_function): Likewise.
24067 (emit_local): likewise.
24068 (build_constant_desc): Likewsie.
24069 (output_constant_def_contents): Likewise.
24070 (place_block_symbol): Likewise.
24071 (output_object_block): Likewise.
24073 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
24076 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
24077 when outputting debug.
24079 2015-03-07 Marek Polacek <polacek@redhat.com>
24080 Martin Uecker <uecker@eecs.berkeley.edu>
24083 * doc/invoke.texi: Update description of -fsanitize=bounds.
24085 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
24087 * tree-ssa-phiopt.c (neg_replacement): Remove.
24088 (tree_ssa_phiopt_worker): Remove negate optimization.
24090 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
24093 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
24095 2015-03-06 Richard Biener <rguenther@suse.de>
24097 PR middle-end/64928
24098 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
24099 and liveout_obstack members.
24100 (calculate_live_on_exit): Remove.
24101 (calculate_live_ranges): Change declaration.
24102 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
24103 (new_tree_live_info): Adjust.
24104 (calculate_live_ranges): Delete livein when not wanted.
24105 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
24106 Deal with partly deleted live info.
24107 (loe_visit_block): Remove temporary bitmap by using
24108 bitmap_ior_and_compl_into.
24109 (live_worklist): Adjust accordingly.
24110 (calculate_live_on_exit): Make static.
24111 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
24112 we do not need livein.
24114 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
24116 * real.c (real_from_string): Fix typo in assertion.
24118 2015-03-06 Alex Velenko <alex.velenko@arm.com>
24120 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
24123 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
24125 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
24127 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
24130 * lra-assigns.c (find_hard_regno_for): Rename to
24131 find_hard_regno_for_1. Add a new parameter.
24132 (find_hard_regno_for): New function using find_hard_regno_for_1.
24134 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
24136 PR rtl-optimization/65067
24137 * expmed.c (store_bit_field, extract_bit_field): Reworked the
24138 strict volatile bitfield handling.
24140 2015-03-05 Martin Liska <mliska@suse.cz>
24143 * ipa-icf.c (sem_variable::equals): Compare variables types.
24145 2015-03-05 Richard Henderson <rth@redhat.com>
24148 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
24149 correctly check weak symbol binding.
24151 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
24153 PR middle-end/65315
24154 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
24157 2015-03-05 Martin Liska <mliska@suse.cz>
24159 * ipa-inline.c (inline_small_functions): Set default value to
24160 prevent warning during bootstrap.
24161 * tree.h: Add pragma guard that ignores false positives during
24164 2015-03-05 Richard Biener <rguenther@suse.de>
24166 PR tree-optimization/65310
24167 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
24168 Properly preserve alignment of the base of the access.
24170 2015-03-05 Richard Biener <rguenther@suse.de>
24173 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
24174 Compare dependence info.
24176 2015-03-05 Richard Biener <rguenther@suse.de>
24178 PR middle-end/65233
24179 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
24181 (walk_ssa_copies): Revert last chage. Instead do not walk
24182 SSA names registered for SSA update.
24184 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
24187 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
24188 vtable references for their containing type.
24189 (sem_function::equals_wpa): Compare TYPE_RESTRICT
24190 and type attributes.
24192 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
24194 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
24195 before negating it.
24196 * stor-layout.c (finalize_record_size): Revert latest change.
24198 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
24200 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
24202 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
24204 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
24205 for correct comdat handling.
24206 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
24208 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
24209 (used_from_object_file_p_worker): Remove.
24210 (cgraph_node::only_called_directly_or_alised): Add
24211 used_from_object_file_p.
24212 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
24213 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
24214 can_remove_if_no_direct_calls_and_refs_p.
24216 2015-03-04 Nick Clifton <nickc@redhat.com>
24218 * config/rl78/rl78.h (enum reg_class): Remove real registers from
24219 General register class.
24220 * config/rl78/rl78-real.md: Replace general register constraints
24221 with real+virtual register constraints.
24223 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24225 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
24226 from checking for -mhtm option.
24228 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
24230 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
24231 (struct ipa_sra_check_caller_data): Add has_thunk field.
24232 (ipa_sra_check_caller): Check for thunk.
24233 (ipa_sra_preliminary_function_checks): Give up on function with
24235 (ipa_early_sra): Use call_for_symbol_and_aliases.
24237 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
24240 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
24241 called for __stack_chk_guard symbol.
24243 2015-03-03 DJ Delorie <dj@redhat.com>
24245 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
24247 (*addhi3_real): Likewise.
24248 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
24249 pattern to match incrementing memory.
24250 * config/rl78/predicates.md (rl78_1_2_operand): New.
24251 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
24252 it's the same and only mem.
24253 (rl78_alloc_physical_registers_op2): If there's effectively only
24254 one MEM, transcode it into HL.
24255 (rl78_far_p): Reject addresses that aren't legitimate.
24257 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
24259 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
24262 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
24264 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
24266 Implement call0 ABI for xtensa
24267 * config/xtensa/constraints.md ("a" constraint): Include stack
24268 pointer in case of call0 ABI.
24269 ("q" constraint): Make empty in case of call0 ABI.
24270 ("D" constraint): Include stack pointer in case of call0 ABI.
24271 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
24272 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
24274 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
24276 (xtensa_regno_to_class): Make it a local variable in the
24277 function xtensa_regno_to_class.
24278 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
24279 macro, function prototype and implementation.
24280 (reg_nonleaf_alloc_order): Make it a local variable in the
24281 function order_regs_for_local_alloc.
24282 (xtensa_conditional_register_usage): New function.
24283 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
24284 (xtensa_valid_move): Allow direct moves to stack pointer
24285 register in call0 ABI.
24286 (xtensa_setup_frame_addresses): Only spill register windows in
24288 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
24289 call0 ABI respectively.
24290 (xtensa_function_arg_1): Only mark a7 register for copying in
24292 (xtensa_call_save_reg): New function.
24293 (compute_frame_size): Add space for callee saved register
24294 storage to the frame size in call0 ABI.
24295 (xtensa_expand_prologue): Generate code to set up stack frame
24296 and save callee-saved registers in call0 ABI.
24297 (xtensa_expand_epilogue): New function.
24298 (xtensa_set_return_address): New function.
24299 (xtensa_return_addr): Calculate return address in call0 ABI.
24300 (xtensa_builtin_saveregs): Only mark a7 register for copying and
24301 emit copying code in windowed ABI.
24302 (order_regs_for_local_alloc): Add preferred register allocation
24303 order for non-leaf function in call0 ABI.
24304 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
24305 (xtensa_asm_trampoline_template): Add trampoline generation for
24307 (xtensa_trampoline_init): Add trampoline initialization for
24309 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
24311 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
24312 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
24313 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
24314 ABI call-used registers.
24315 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
24316 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
24318 (REG_CLASS_CONTENTS): Include all registers into the preferred
24319 reload registers set, adjust the set in the
24320 xtensa_conditional_register_usage.
24321 (xtensa_regno_to_class): Drop variable declaration.
24322 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
24324 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
24326 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
24327 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
24328 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
24329 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
24330 location in call0 ABI.
24331 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
24332 stack adjustment size when handling exception.
24333 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
24334 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
24336 ("return" pattern): Generate ret.n/ret in call0 ABI.
24337 ("epilogue" pattern): Expand epilogue.
24338 ("nonlocal_goto" pattern): Use default in call0 ABI.
24339 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
24340 emit eh_set_a0_* depending on ABI.
24341 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
24342 ("eh_set_a0_call0", "blockage"): New patterns.
24344 2015-03-03 Martin Liska <mliska@suse.cz>
24347 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
24349 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
24352 * config/rs6000/rs6000-tables.opt: Regenerate table.
24354 2015-03-03 Renlin Li <renlin.li@arm.com>
24356 * doc/md.texi (@item ^): Change ? into ^.
24358 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
24360 * doc/tm.texi: Regenerated.
24362 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
24364 * builtins.c (expand_builtin_return_addr): Add
24365 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
24366 surrounding #ifdef.
24367 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
24369 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
24371 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
24373 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
24376 2015-03-03 Martin Jambor <mjambor@suse.cz>
24377 Eric Botcazou <ebotcazou@adacore.com>
24379 * tree-sra.c (ipa_sra_check_caller_data): New type.
24380 (has_caller_p): Removed.
24381 (ipa_sra_check_caller): New function.
24382 (ipa_sra_preliminary_function_checks): Use it.
24384 2015-03-03 Martin Liska <mliska@suse.cz>
24386 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
24387 instead of if branch.
24389 2015-03-03 Martin Liska <mliska@suse.cz>
24392 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
24394 2015-03-23 Jeff Law <law@redhat.com>
24396 PR tree-optimization/65241
24397 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
24398 hash table if INSERT is true.
24400 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24403 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
24405 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24408 * config/avr/avr.c (context.h, tree-pass.h): Include them.
24409 (avr_pass_data_recompute_notes): New static variable.
24410 (avr_pass_recompute_notes): New class.
24411 (avr_register_passes): New static function.
24412 (avr_option_override): Call it.
24414 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24416 Fix various problems with specs file generation.
24419 * config.gcc (extra_gcc_objs) [avr]: Remove.
24420 * config/avr/driver-avr.c: Remove file.
24421 * config/avr/t-avr (driver-avr.o): Remove rule.
24422 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
24423 INCLUDES to build. Depend on TM_H.
24424 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
24425 build warnings. Fix non-matching types and non-existing %-codes.
24427 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
24428 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
24429 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
24430 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
24431 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
24432 (LIBGCC_SPEC): Remove definitions.
24434 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
24436 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
24437 to create a register in testing mode.
24439 2015-03-03 Martin Liska <mliska@suse.cz>
24440 Jan Hubicka <hubicka@ucw.cz>
24443 * cgraph.c (cgraph_node::has_thunk_p): New function.
24444 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
24445 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
24446 (sem_function::merge): Assert is changed.
24448 2015-03-03 Martin Liska <mliska@suse.cz>
24449 Martin Jambor <mjambor@suse.cz>
24452 * ipa-icf.c (sem_item_optimizer::execute): Change function
24453 return value to boolean.
24454 (sem_item_optimizer::merge_classes): Likewise.
24455 (ipa_icf_driver): Return TODO_remove_functions in case there's
24456 a merge operation processed.
24457 * ipa-icf.h: Change function return value to boolean.
24459 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24462 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
24463 processor type for 64-bit little endian PowerPC.
24465 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
24466 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
24467 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
24468 printing built-in mask so it does not pass NULL pointers.
24470 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
24473 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
24476 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
24477 !ISA_HAS_FP_CONDMOVE.
24479 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
24481 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
24484 2015-03-02 Ulrich Drepper <drepper@gmail.com>
24486 * doc/invoke.texi (Options for Code Generation Conventions):
24487 Fix URL of DSO paper.
24489 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24492 * ipa-inline.c (check_callers): Looks for recursion.
24493 (inline_to_all_callers): Give up on uninlinable or recursive edges.
24494 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
24495 summary of inline clones.
24496 (do_estimate_growth_1): Fix recursion check.
24498 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24501 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
24504 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24505 Aldy Hernandez <aldyh@redhat.com>
24508 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
24509 when checking TYPE_BINFO.
24511 2015-03-02 Richard Biener <rguenther@suse.de>
24514 * ipa-icf-gimple.c: Include builtins.h.
24515 (func_checker::compare_memory_operand): Compare base alignment.
24517 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
24520 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
24521 are never passed by reference.
24523 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
24526 * tree-chkp.c (chkp_check_lower): Don't check against
24527 zero bounds for already instrumented functions.
24528 (chkp_check_upper): Likewise.
24529 (chkp_fini): Clean pass local data to avoid wrong reusage.
24531 2015-02-28 Martin Liska <mliska@suse.cz>
24532 Jan Hubicka <hubicka@ucw.cz>
24534 * ipa-icf.c (sem_variable::equals): Improve debug output;
24535 get variable constructor.
24536 (sem_variable::parse): Do not filter out too early; give up on
24537 volatile and register vars.
24538 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
24540 * ipa-icf.h (sem_variable::init): Do not set ctor.
24541 (sem_variable::ctor): Remove.
24543 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
24545 PR middle-end/65233
24546 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
24548 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24550 * ipa-icf.c: Include stor-layout.h
24551 (sem_function::compare_cgraph_references): Rename to ...
24552 (sem_item::compare_cgraph_references): ... this one.
24553 (sem_variable::equals_wpa): New function
24554 (sem_variable::equals): Do not check stuff already verified by
24556 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
24557 * ipa-icf.h (sem_item): Add compare_cgraph_references.
24558 (sem_function): Remove compare_cgraph_references.
24559 (sem_variable): Turns equals_wpa into non-inline.
24561 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24563 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
24564 (sem_item::add_expr): New function.
24565 (sem_function::hash_stmt): Handle operands of most statements.
24566 (sem_variable::get_hash): Hash the actual constructor.
24567 * ipa-icf.h (sem_item): Add add_expr.
24568 (sem_function): Update prototype of hash_stmt
24570 2015-02-28 Martin Liska <mliska@suse.cz>
24571 Jan Hubicka <hubicka@ucw.cz>
24574 * ipa-icf-gimple.c (func_checker::compare_function_decl):
24576 (func_checker::compare_variable_decl): Skip symtab vars.
24577 (func_checker::compare_cst_or_decl): Update.
24578 * ipa-icf.c (sem_function::parse): Do not consider aliases.
24579 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
24580 use correct symtab predicates.
24581 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
24582 (sem_variable::parse): Update comment.
24583 (sem_item_optimizer::build_graph): Consider ultimate aliases
24586 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24588 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
24591 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24593 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
24594 (sem_variable::merge) Likewise.
24596 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24598 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
24599 target; also match flag_ipa_devirt.
24601 2015-03-01 Martin Liska <mliska@suse.cz>
24602 Jan Hubicka <hubicka@ucw.cz>
24604 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
24605 Validate variable alignment.
24606 * ipa-icf.c (sem_function::equals_private): Be more precise
24607 about non-common function attributes.
24608 (sem_variable::equals): Likewise.
24610 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24613 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
24614 across COMDAT group boundary.
24616 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24619 * ipa-icf.c (clear_decl_rtl): New function.
24620 (sem_function::merge): Clear RTL before forming alias.
24621 (sem_variable::merge): Clear RTL before forming alias.
24623 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24626 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
24628 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
24630 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
24633 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24635 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
24636 a typo in the description.
24638 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24641 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24642 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24643 * lra-constraints.c: Include "params.h".
24644 (EBB_PROBABILITY_CUTOFF): Use
24645 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
24646 (lra_inheritance): Use '<' instead of '<=' for
24647 EBB_PROBABILITY_CUTOFF.
24648 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
24651 2015-02-27 Martin Liska <mliska@suse.cz>
24653 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
24654 vector length condition.
24656 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
24658 * doc/extend.texi (x86 transactional memory intrinsics):
24659 Reorganize discussion of _xbegin. Clarify that the return
24660 value is a bit mask. Expand example and move to end of section.
24662 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24663 Aldy Hernandez <aldyh@redhat.com>
24665 PR rtl-optimization/65220
24666 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
24668 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24671 * lra-remat.c (update_scratch_ops): New.
24672 (do_remat): Call it.
24673 * lra.c (lra_register_new_scratch_op): New. Take code from ...
24674 (remove_scratches): ... here.
24675 * lra-int.h (lra_register_new_scratch_op): New prototype.
24677 2015-02-27 Marek Polacek <polacek@redhat.com>
24680 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
24681 -Wformat-signedness anymore.
24683 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24685 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
24687 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
24689 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24691 * config/s390/s390.c (enum s390_builtin):
24692 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
24693 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
24694 (s390_init_builtins): Generate new builtin functions.
24695 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
24696 (s390_sfpc, s390_efpc): New pattern definitions.
24698 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24700 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
24701 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
24702 (s390_builtin_decls): New array.
24703 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
24704 (s390_builtin_decl): New function.
24705 (TARGET_BUILTIN_DECL): Define macro.
24707 2015-02-27 Richard Biener <rguenther@suse.de>
24709 PR middle-end/63175
24710 * builtins.c (get_object_alignment_2): Make sure to re-apply
24711 the ANDed mask after recursing to its operand gets us a new
24712 misalignment bit position.
24714 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
24715 Martin Liska <mliska@suse.cz>
24718 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
24719 Use address_matters_p.
24720 (redirect_all_callers, set_addressable): New functions.
24721 (sem_function::merge): Reorganize and fix merging issues.
24722 (sem_variable::merge): Likewise.
24723 (sem_variable::compare_sections): Remove.
24724 * common.opt (fmerge-all-constants, fmerge-constants): Remove
24726 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
24728 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
24730 (address_matters_1): New function.
24731 (symtab_node::address_matters_p): New function.
24732 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
24733 check for merged flag.
24734 * cgraph.h (address_matters_p): Declare.
24735 (symtab_node::address_taken_from_non_vtable_p): Remove.
24736 (symtab_node::address_can_be_compared_p): New method.
24737 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
24738 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
24740 (comdat_can_be_unshared_p_1) Use address_matters_p.
24741 (update_vtable_references): Fix formating.
24742 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
24743 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
24744 * cgraphclones.c: Preserve merged and icf_merged flags.
24746 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
24748 * doc/extend.texi (Function Attributes): Fix spelling and typos.
24749 (Label Attributes): Likewise.
24750 (Cilk Plus Builtins): Likewise.
24751 (ARC SIMD Built-in Functions): Likewise.
24752 (ARM C Language Extensions (ACLE)): Likewise.
24753 (PowerPC Built-in Functions): Likewise.
24754 (PowerPC Hardware Transactional Memory Built-in Functions):
24757 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24759 PR tree-optimization/65216
24760 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
24761 new stmt and new SSA_NAME for lhs whenever the arguments have
24762 changed and weren't just swapped. Fix comment typo.
24764 PR tree-optimization/65215
24765 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
24766 for PDP endian targets.
24767 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
24768 Fix up formatting issues.
24769 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
24770 size is smaller than the original, adjust MEM_REF offset by the
24771 difference of sizes. Use is_gimple_mem_ref_addr instead of
24772 is_gimple_min_invariant test to avoid adding address temporaries.
24774 2015-02-26 Martin Liska <mliska@suse.cz>
24775 Jan Hubicka <hubicka@ucw.cz>
24778 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
24779 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
24780 (sem_item_optimizer::process_cong_reduction): Include division by
24781 sensitive references.
24782 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
24783 * ipa-ref.c (ipa_ref::address_matters_p): New function.
24784 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
24786 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
24789 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
24791 * config/avr/avr.c: Same.
24792 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
24793 Refuse any constant address not in 0..0xbf.
24794 * config/avr/avr.md (*mov<mode>, *movsf): Remove
24795 tiny_valid_direct_memory_access_range from insn conditions.
24796 (mov<mode>): Don't special-case expansion of avrtiny addresses.
24798 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
24801 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
24802 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
24803 * config/sh/predicates.md (const_logical_operand): New predicate.
24804 * config/sh/sh.md: Add new peephole2 patterns.
24806 2015-02-26 Marek Polacek <polacek@redhat.com>
24809 * ipa-inline.c (early_inliner): Recompute inline parameters.
24811 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24814 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
24815 instructions with TImode operands are included in the analysis.
24817 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24819 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
24820 of an EDGE_FSM_THREAD.
24822 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24824 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
24826 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
24829 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
24831 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24833 PR tree-optimization/65048
24834 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
24835 (thread_through_all_blocks): Call valid_jump_thread_path.
24836 Remove invalid FSM jump-thread paths.
24838 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24840 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
24841 (ipa_write_optimization_summaries): Likewise.
24842 * tree-streamer.h: Include data-streamer.h.
24843 (streamer_mode_table): Declare extern variable.
24844 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
24845 * lto-streamer-out.c (lto_output_init_mode_table,
24846 lto_write_mode_table): New functions.
24847 (produce_asm_for_decls): Call lto_write_mode_table when streaming
24849 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
24850 (lto_create_simple_input_block): Add mode_table argument to the
24851 lto_input_block constructors.
24852 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
24854 * data-streamer-in.c (string_for_index): Likewise.
24855 * ipa-inline-analysis.c (inline_read_section): Likewise.
24856 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
24857 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
24858 * lto-streamer-in.c (lto_read_body_or_constructor,
24859 lto_input_toplevel_asms): Likewise.
24860 (lto_input_mode_table): New function.
24861 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
24862 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
24863 Use bp_pack_machine_mode.
24864 * real.h (struct real_format): Add name field.
24865 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
24866 (class lto_input_block): Add mode_table member.
24867 (lto_input_block::lto_input_block): Add mode_table_ argument,
24868 initialize mode_table.
24869 (struct lto_file_decl_data): Add mode_table field.
24870 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
24871 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
24872 unpack_ts_decl_common_value_fields,
24873 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
24874 * tree-streamer.c (streamer_mode_table): New variable.
24875 * real.c (ieee_single_format, mips_single_format,
24876 motorola_single_format, spu_single_format, ieee_double_format,
24877 mips_double_format, motorola_double_format,
24878 ieee_extended_motorola_format, ieee_extended_intel_96_format,
24879 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
24880 ibm_extended_format, mips_extended_format, ieee_quad_format,
24881 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
24882 decimal_single_format, decimal_double_format, decimal_quad_format,
24883 ieee_half_format, arm_half_format, real_internal_format): Add name
24885 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
24887 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
24890 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
24891 reordering for selective scheduling.
24893 2015-02-26 Terry Guo <terry.guo@arm.com>
24895 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
24896 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
24897 (arm_arch_no_volatile_ce): Declare new global variable.
24898 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
24899 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
24900 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
24901 (TARGET_NO_VOLATILE_CE): New macro.
24902 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
24903 volatile memory access in IT block
24905 2015-02-25 Kai Tietz <ktietz@redhat.com>
24907 PR tree-optimization/61917
24908 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
24909 that reduc_def_stmt is null.
24911 2015-02-25 Martin Liska <mliska@suse.cz>
24913 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
24914 hard register variables.
24916 2015-02-25 Kai Tietz <ktietz@redhat.com>
24919 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
24920 (symtab::noninterposable_alias): Likewise.
24922 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
24925 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
24927 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
24929 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
24932 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
24933 as split condition; force split via '#' in output pattern.
24935 2015-02-25 Richard Biener <rguenther@suse.de>
24936 Kai Tietz <ktietz@redhat.com>
24938 PR tree-optimization/61917
24939 * tree-vect-loop.c (vectorizable_reduction): Allow
24940 vect_internal_def without reduction to exit graceful.
24942 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24945 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
24946 only with NONDEBUG_INSN_P.
24948 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24950 Use variadic macros with avr-log.c.
24952 * config/avr/avr-protos.h (avr_vdump): New prototype.
24953 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
24954 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
24955 * config/avr/avr-log.c: Adjust comments.
24956 (avr_vdump): New function.
24957 (avr_vadump): Pass caller as 2nd argument instead of format string.
24958 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
24959 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
24961 2015-02-25 Jakub Jelinek <jakub@redhat.com>
24964 * target.def (target_option_stream_in): New target hook.
24965 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
24966 targetm.target_option.post_stream_in if non-NULL.
24967 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
24968 * doc/tm.texi: Updated.
24969 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
24971 (TARGET_OPTION_POST_STREAM_IN): Redefine.
24973 2015-02-24 Jeff Law <law@redhat.com>
24976 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
24977 of operand 0 and operand 2.
24978 (zero_cost_loop_end, loop_end): Similarly.
24980 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
24982 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
24985 2015-02-24 DJ Delorie <dj@redhat.com>
24987 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
24988 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
24989 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
24990 instead of hardcoding SImode.
24992 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
24994 * omp-low.c (create_omp_child_function): Tag entrypoint
24995 functions with a special attribute.
24997 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
25000 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
25002 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
25004 PR rtl-optimization/65123
25005 * lra-remat.c (operand_to_remat): Check hard regs in insn
25008 2015-02-24 Nick Clifton <nickc@redhat.com>
25010 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
25013 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
25016 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
25017 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
25018 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
25019 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
25020 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
25021 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
25022 (BUILT_IN_GOACC_PARALLEL): Specify as
25023 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
25024 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
25025 * builtin-types.def
25026 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
25027 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
25028 Remove function types.
25029 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
25030 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
25031 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
25032 New function types.
25034 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
25036 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
25038 2015-02-24 Jakub Jelinek <jakub@redhat.com>
25040 PR tree-optimization/65170
25041 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
25042 if val[1] < 0, clear also val[2] and return 3.
25044 2015-02-24 Alan Modra <amodra@gmail.com>
25047 * config/rs6000/rs6000.c (get_memref_parts): Only return true
25048 when *base is a reg. Handle nested plus addresses. Simplify
25051 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
25053 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
25054 use natural alignment when optimizing for size.
25056 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
25059 * config/sh/sh.md (movsicc_true+3): Remove peephole.
25060 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
25061 * config/sh/sh.c (replace_n_hard_rtx): Remove.
25063 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
25066 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
25067 too big for a wide_int. Implement missing wrapping operation.
25069 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
25072 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
25073 instead of const_int 4294901760.
25075 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
25077 * config/avr/t-avr: Fix typo in comment.
25079 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
25081 * doc/rtl.texi (fma): Clarify documentation.
25083 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
25086 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
25087 over input_location.
25089 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
25091 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
25092 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
25093 restrict alignments to absolute_biggest_alignment.
25094 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
25096 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
25097 * doc/tm.texi: Regenerate.
25098 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
25100 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
25103 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
25105 2015-02-20 Richard Biener <rguenther@suse.de>
25107 PR tree-optimization/65136
25108 * tree-ssa-propagate.c: Include cfgloop.h.
25109 (replace_phi_args_in): Avoid replacing loop latch edge PHI
25110 arguments with constants.
25112 2015-02-20 Jakub Jelinek <jakub@redhat.com>
25113 Martin Liska <mliska@suse.cz>
25116 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
25117 don't try to create_thunk if stdarg_p. If
25118 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
25119 redirect_callers if possible.
25120 (sem_item_optimizer::execute): Call unregister_hooks here...
25121 (ipa_icf_driver): ... instead of here.
25123 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25125 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
25126 Mark operand 0 as earlyclobber in 2nd alternative.
25127 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
25128 Write negated shift amount into QI lowpart operand 0 and use it
25130 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
25132 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
25134 * cgraph.h (clone_function_name_1): Declare.
25135 * cgraphclones.c (clone_function_name_1): New function.
25136 (clone_function_name): Use it.
25137 * lto-partition.c: Include "stringpool.h".
25138 (must_not_rename, maybe_rewrite_identifier)
25139 (validize_symbol_for_target): New static functions.
25140 (privatize_symbol_name): Use must_not_rename.
25141 (promote_symbol): Call validize_symbol_for_target.
25142 (lto_promote_cross_file_statics): Likewise.
25143 (lto_promote_statics_nonwpa): Likewise.
25145 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
25148 * config/avr/avr.md (pushhi_insn): New insn.
25149 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
25151 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
25152 Jakub Jelinek <jakub@redhat.com>
25154 * tree-streamer.c (preload_common_nodes): Don't preload
25155 TI_VA_LIST* for offloading.
25156 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
25159 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
25161 * config/pa/pa.c (pa_emit_move_sequence): Always force
25162 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
25165 * config/pa/pa.c (pa_reloc_rw_mask): New function.
25166 (TARGET_ASM_RELOC_RW_MASK): Define.
25167 (pa_cannot_force_const_mem): Revert previous change.
25169 2015-02-19 Martin Jambor <mjmabor@suse.cz>
25170 Jan Hubicka <hubicka@ucw.cz>
25173 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
25174 across jump functions.
25176 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
25178 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
25180 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
25182 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
25184 2015-02-19 Richard Henderson <rth@redhat.com>
25186 PR middle-end/65074
25187 * varasm.c (default_binds_local_p_2): Don't test node->definition;
25188 test DECL_EXTERNAL independent of symtab_node.
25190 2015-02-19 Jakub Jelinek <jakub@redhat.com>
25193 * varpool.c (varpool_node::get_constructor): Return early
25194 if this->lto_file_data is NULL.
25196 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25198 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
25199 (rank_for_schedule_debug): Update.
25200 (ready_sort): Make static. Move sorting logic to ...
25201 (ready_sort_debug, ready_sort_real): New static functions.
25202 (schedule_block): Sort both debug insns and real insns in preparation
25203 for ready list trimming. Improve debug output.
25204 * sched-int.h (ready_sort): Remove global declaration.
25206 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
25208 * ipa-icf.c (sem_function::equals_private): Adjust.
25209 (sem_function::bb_dict_test): Take a vec<int> * instead of
25211 * ipa-icf.h (bb_dict_test): Likewise.
25213 2015-02-18 Jakub Jelinek <jakub@redhat.com>
25215 PR gcov-profile/64634
25216 * tree-eh.c (frob_into_branch_around): Fix up typos
25217 in function comment.
25218 (lower_catch): Put eh_seq resulting from EH lowering of
25219 the cleanup sequence after the cleanup rather than before it.
25221 2015-02-18 Tom de Vries <tom@codesourcery.com>
25223 * common.opt (fstdarg-opt): New option.
25224 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
25225 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
25226 (@item -fstdarg-opt): New item.
25228 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
25231 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
25232 for common symbols.
25234 2015-02-18 Jakub Jelinek <jakub@redhat.com>
25236 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
25238 (ALL_HOST_OBJS): Add mkoffload.o.
25239 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
25241 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
25243 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
25244 (compare_virtual_tables): Be smarter about skipping typeinfos;
25245 do sane output on virtual table table mismatch.
25246 (warn_odr): Be ready for forward declarations of enums;
25247 output sane info on base mismatch and virtual table mismatch.
25248 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
25249 when only one type is polymorphic.
25250 (get_odr_type): Fix hashtable corruption.
25251 (dump_odr_type): Dump mangled names.
25253 2015-02-18 Richard Biener <rguenther@suse.de>
25255 PR tree-optimization/65063
25256 * tree-predcom.c (determine_unroll_factor): Return 1 if we
25257 have replaced looparound PHIs.
25259 2015-02-18 Martin Liska <mliska@suse.cz>
25261 * lto-streamer.c (lto_streamer_init): Encapsulate
25262 streamer_check_handled_ts_structures with checking macro.
25264 2015-02-18 Jakub Jelinek <jakub@redhat.com>
25267 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
25268 section if !implicit_section.
25269 (cgraph_node::create_version_clone_with_body): Likewise.
25270 * trans-mem.c (ipa_tm_create_version): Likewise.
25272 2015-02-18 Richard Biener <rguenther@suse.de>
25274 PR tree-optimization/62217
25275 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
25278 2015-02-18 Marek Polacek <polacek@redhat.com>
25281 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
25282 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
25283 is in range [-16K, -1]. Don't issue run-time error if
25284 (ptr > ptr + offset).
25286 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
25288 * doc/install.texi (nvptx-*-none): New section.
25289 * doc/invoke.texi (Nvidia PTX Options): Likewise.
25290 * config/nvptx/nvptx.opt: Update.
25292 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
25293 (access_check): New functions, copied from
25294 config/i386/intelmic-mkoffload.c.
25295 (main): For non-installed testing, look in all COMPILER_PATHs for
25298 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
25300 2015-02-18 Andrew Pinski <apinski@cavium.com>
25301 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25303 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
25304 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
25306 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
25308 * ipa-visibility.c (function_and_variable_visibility): Only
25309 check locality if node is not already local.
25310 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
25311 call_for_symbol_and_aliases instead of
25312 call_for_symbol_thunks_and_aliases.
25313 (ipa_inline): Likewise.
25314 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25315 first walk aliases.
25316 * ipa.c (symbol_table::remove_unreachable_nodes): Use
25317 call_for_symbol_and_aliases.
25318 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
25319 (ipa_propagate_frequency_1): Use it; use opt_for_fn
25320 (ipa_propagate_frequency): Update.
25321 (ipa_profile): Add opt_for_fn gueards.
25323 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
25325 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
25326 * doc/invoke.texi (SH options): Document it.
25327 * config/sh/sh.c (sh_insn_length_adjustment): Check
25328 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
25330 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
25332 * common.opt (fipa-cp-alignment): New.
25333 * ipa-cp.c (ipcp_store_alignment_results): Check
25334 flag_ipa_cp_alignment.
25335 * opts.c (default_options_table): Enable -fipa-cp-alignment for
25337 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
25338 * doc/invoke.texi: Document -fipa-cp-alignment.
25340 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
25343 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
25344 to nil. Adjust comments.
25346 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
25348 * ipa-visibility.c (function_and_variable_visibility): Only
25349 check locality if node is not already local.
25350 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
25351 call_for_symbol_and_aliases instead of
25352 call_for_symbol_thunks_and_aliases.
25353 (ipa_inline): Likewise.
25354 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25355 first walk aliases.
25356 * ipa.c (symbol_table::remove_unreachable_nodes): Use
25357 call_for_symbol_and_aliases.
25358 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
25359 (ipa_propagate_frequency_1): Use it; use opt_for_fn
25360 (ipa_propagate_frequency): Update.
25361 (ipa_profile): Add opt_for_fn guards.
25363 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
25365 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
25366 skipping of "strange" tokens.
25368 2015-02-17 Jeff Law <law@redhat.com>
25370 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
25373 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
25375 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
25376 as forcing a HARD_DEP between instructions, thereby
25377 disallowing rewriting to break dependencies.
25379 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
25381 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
25382 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
25383 variables in boundary that have no inlitalizer encoded and are
25385 * varasm.c (default_binds_local_p_2): External definitions do not
25386 count as definitions here.
25388 2015-02-16 Jeff Law <law@redhat.com>
25390 PR tree-optimization/64823
25391 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
25393 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
25394 threading through blocks with PHIs, but no statements.
25395 (thread_through_normal_block): Distinguish between blocks where
25396 we did not process all the statements and blocks with no statements.
25398 2015-02-16 Jakub Jelinek <jakub@redhat.com>
25399 James Greenhalgh <james.greenhalgh@arm.com>
25402 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
25403 section if not linkonce. Fix up formatting.
25404 (cgraph_node::create_version_clone_with_body): Copy section.
25405 * trans-mem.c (ipa_tm_create_version): Likewise.
25407 2015-02-16 Richard Biener <rguenther@suse.de>
25409 PR tree-optimization/65077
25410 * tree-ssa-structalias.c (get_constraint_for_1): Handle
25411 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
25412 (find_func_aliases): Allow float values to carry pointers again.
25414 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
25416 * doc/install.texi (Specific): Reorder targets list to put
25417 aarch64 in alphabetical order. Add a link to aarch64*-*-*
25420 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
25421 David Edelsohn <dje.gcc@gmail.com>
25424 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
25425 mapping class to external variable or function reference.
25426 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
25429 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
25432 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
25433 ASM_WEAKEN_DECL if defined.
25435 2015-02-16 Richard Biener <rguenther@suse.de>
25438 * varasm.c (default_file_start): For LTO produced units
25439 emit <artificial> as file directive.
25441 2015-02-16 Richard Biener <rguenther@suse.de>
25443 PR tree-optimization/63593
25444 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
25445 stmts and releasing SSA names until...
25446 (execute_pred_commoning): ... after processing all chains.
25448 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
25451 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
25452 external functions.
25454 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
25456 * doc/bugreport.texi: Adjust section titles throughout the file
25457 to use "Title Case".
25458 * doc/extend.texi: Likewise.
25459 * doc/gcov.texi: Likewise.
25460 * doc/implement-c.texi: Likewise.
25461 * doc/implement-cxx.texi: Likewise.
25462 * doc/invoke.texi: Likewise.
25463 * doc/objc.texi: Likewise.
25464 * doc/standards.texi: Likewise.
25465 * doc/trouble.texi: Likewise.
25467 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
25469 * cgraph.h (symtab_node::has_aliases_p): Simplify.
25470 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
25471 * tree.c (lookup_binfo_at_offset): Make static.
25472 (get_binfo_at_offset): Do not shadow offset; add explanatory
25475 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
25477 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
25478 for all floading point loads and stores except those using a register
25480 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
25483 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
25485 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
25486 (do_estimate_growth_1): Record if any uninlinable edge was seen.
25487 (estimate_growth): Handle uninlinable edges correctly.
25488 (check_callers): New.
25489 (growth_likely_positive): Handle aliases correctly.
25491 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
25493 * ipa-chkp.c: Use iterate_direct_aliases.
25494 * symtab.c (resolution_used_from_other_file_p): Move inline.
25495 (symtab_node::create_reference): Fix formating.
25496 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
25497 (symtab_node::iterate_reference): Move inline.
25498 (symtab_node::iterate_referring): Move inline.
25499 (symtab_node::iterate_direct_aliases): Move inline.
25500 (symtab_node::used_from_object_file_p_worker): Inline into ...
25501 (symtab_node::used_from_object_file_p): ... this one; move inline.
25502 (symtab_node::call_for_symbol_and_aliases): Move inline;
25503 use iterate_direct_aliases.
25504 (symtab_node::call_for_symbol_and_aliases_1): New method.
25505 (cgraph_node::call_for_symbol_and_aliases): Move inline;
25506 use iterate_direct_aliases.
25507 (cgraph_node::call_for_symbol_and_aliases_1): New method.
25508 (varpool_node::call_for_node_and_aliases): Rename to ...
25509 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
25510 use iterate_direct_aliases.
25511 (varpool_node::call_for_symbol_and_aliases_1): New method.
25512 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
25513 (ipa_discover_readonly_nonaddressable_var): Update.
25514 * ipa-devirt.c: Fix formating.
25515 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
25517 (cgraph_node::call_for_symbol_and_aliases): Move inline.
25518 (cgraph_node::call_for_symbol_and_aliases_1): New function..
25519 * cgraph.h (used_from_object_file_p_worker): Remove.
25520 (resolution_used_from_other_file_p): Move inline.
25521 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
25522 (symtab_node::iterate_reference): Move inline.
25523 (symtab_node::iterate_referring): Move inline.
25524 (symtab_node::iterate_direct_aliases): Move inline.
25525 (symtab_node::used_from_object_file_p_worker): Inline into ...
25526 (symtab_node::used_from_object_file_p): Move inline.
25527 * tree-emutls.c (ipa_lower_emutls): Update.
25528 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
25529 (varpool_node::call_for_node_and_aliases): Remove.
25531 2015-02-14 Jakub Jelinek <jakub@redhat.com>
25533 PR tree-optimization/62209
25534 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
25535 op == range->exp, insert seq and gimplified code after labels
25536 instead of after the phi.
25538 2015-02-13 Jeff Law <law@redhat.com>
25541 Revert my change for tree-optimization/64823.
25543 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25545 PR tree-optimization/65053
25546 * tree-ssa-phiopt.c (value_replacement): When moving assign before
25547 cond, either reset VR on lhs or set it to phi result VR.
25549 2015-02-13 Jeff Law <law@redhat.com>
25551 PR tree-optimization/64823
25552 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
25553 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
25554 threading through blocks with PHIs, but no statements.
25555 (thread_through_normal_block): Distinguish between blocks where
25556 we did not process all the statements and blocks with no statements.
25558 PR rtl-optimization/47477
25559 * match.pd (convert (plus/minus (convert @0) (convert @1): New
25560 simplifier to narrow arithmetic.
25562 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
25565 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
25566 polymorphic call info when type is not known to be preserved.
25568 2015-02-13 Maritn Jambor <mjambor@suse.cz>
25571 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
25572 (inline_call): Use it.
25574 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
25576 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
25577 GOMP_DEVICE_NVIDIA_PTX.
25579 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25582 * stmt.c (emit_case_nodes): Use void_type_node instead of
25583 NULL_TREE as LABEL_DECL type.
25585 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
25587 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
25589 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
25590 symbolic references to data to be forced to constant memory on the
25593 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
25595 PR tree-optimization/65002
25596 * tree-cfg.c (pass_data_fixup_cfg): Don't update
25598 * tree-sra.c (some_callers_have_no_vuse_p): New.
25599 (ipa_early_sra): Reject functions whose callers
25600 assume function is read only.
25602 2015-02-13 Richard Biener <rguenther@suse.de>
25605 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
25606 for LTO produced CUs.
25608 2015-02-13 Bin Cheng <bin.cheng@arm.com>
25610 PR tree-optimization/64705
25611 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
25612 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
25613 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
25614 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
25615 expand_simple_operations.
25617 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
25618 Richard Henderson <rth@redhat.com>
25621 * cgraphunit.c (cgraph_node::finalize_function): Set definition
25622 before notice_global_symbol.
25623 (varpool_node::finalize_decl): Likewise.
25624 * varasm.c (default_binds_local_p_2): Rename from
25625 default_binds_local_p_1, add weak_dominate argument. Use direct
25626 returns instead of assigning to local variable. Unify varpool and
25627 cgraph paths via symtab_node. Reject undef weak variables before
25628 testing visibility. Reorder tests for simplicity.
25629 (default_binds_local_p): Use default_binds_local_p_2.
25630 (default_binds_local_p_1): Likewise.
25631 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
25633 (default_elf_asm_output_external): Emit visibility when specified.
25635 2015-02-13 Alan Modra <amodra@gmail.com>
25637 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
25638 code setting up r11 for out-of-line fp restore.
25640 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
25642 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
25643 (muser-mode): Likewise.
25645 2015-02-13 Alan Modra <amodra@gmail.com>
25647 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
25648 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
25650 2015-02-12 David Howells <dhowells@redhat.com>
25652 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
25654 * tree-ssa-uninit.c (dump_predicates): Likewise.
25655 * opts.c (print_filtered_help): Likewise.
25657 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25659 * dwarf2out.c (output_die): Use "%s", name instead of name to
25660 avoid -Wformat-security warning.
25662 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
25663 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25664 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
25665 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25667 2015-02-12 Jason Merrill <jason@redhat.com>
25669 * common.opt (-flifetime-dse): New.
25671 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25674 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
25676 PR tree-optimization/65014
25677 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
25678 use original second operand of arg0 or arg1 instead of
25679 that adjusted by STRIP_NOPS.
25681 2015-02-11 Jeff Law <law@redhat.com>
25684 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
25685 that needs to be queued, just queue it for a single cycle.
25687 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
25689 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
25690 bodies of thunks; comment on why.
25691 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
25692 symbols are extern.
25694 2015-02-11 Richard Henderson <rth@redhat.com>
25697 * tree-eh.c (mark_reachable_handlers): Mark source and destination
25698 regions of __builtin_eh_copy_values.
25700 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25702 PR middle-end/65003
25703 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
25704 ultimate alias is MEM with SYMBOL_REF satisfying
25705 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
25706 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
25708 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
25710 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
25711 "diagnostic-core.h".
25712 (main): Initialize progname, and call diagnostic_initialize.
25714 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
25715 instead of __OPENMP_TARGET__.
25717 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
25718 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
25719 hard-coding PTX_ID.
25721 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
25723 * doc/sourcebuild.texi (pie_enabled): Document.
25725 2015-02-11 Martin Liska <mliska@suse.cz>
25728 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
25729 a return value for call to a function that is noreturn.
25731 2015-02-11 Richard Biener <rguenther@suse.de>
25734 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
25737 2015-02-11 Andrew Pinski <apinski@cavium.com>
25740 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
25741 Change the first argument type to size_type_node and add another
25743 (aarch64_simd_expand_builtin): Handle the new argument to
25744 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
25745 print an out when the first two arguments are not
25746 nonzero integer constants.
25747 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
25748 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
25750 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25753 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
25754 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
25755 (ix86_set_current_function): Rewritten.
25756 (ix86_add_new_builtins): Temporarily clear current_target_pragma
25757 when creating builtin fndecls.
25759 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25762 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
25764 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
25765 have no comdat group.
25766 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
25767 (lto_output_varpool_node): Always output alias info.
25768 (output_refs): Output refs of boundary aliases, too.
25769 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
25770 (output_symtab): Output call eges in thunks in boundary.
25771 (get_alias_symbol): Remove.
25772 (input_node, input_varpool_node): Do not special case weakrefs.
25773 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
25774 alias and thunks targets in the boundary; do not take removed symbols
25775 from their comdat groups.
25776 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
25777 (cgraph_node::global_info): Remove.
25778 (cgraph_node::rtl_info): Look through aliases and thunks.
25779 * cgrpah.h (global_info): Remove.
25780 (non_local_p): Remove.
25782 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25783 Sandra Loosemore <sandra@codesourcery.com>
25785 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
25786 to inline asm. List dialects in proper order.
25788 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25789 Sandra Loosemore <sandra@codesourcery.com>
25791 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
25793 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25795 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
25796 modified) reference to Solaris.
25798 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
25800 * doc/extend.texi (Extended Asm): Fix typos.
25802 2015-02-10 Jakub Jelinek <jakub@redhat.com>
25805 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
25807 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
25810 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
25811 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
25812 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
25813 * config/sh/constraints.md (Ara, Add): New constraints.
25814 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
25816 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
25817 atomic_mem_operand_0. Don't use force_reg on the memory address.
25818 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
25819 Sra constraint. Convert to insn_and_split. Add workaround for
25821 (atomic_compare_and_swap<mode>_hard): Copy to
25822 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
25823 Use atomic_mem_operand_0 predicate.
25824 (atomic_compare_and_swap<mode>_soft_gusa,
25825 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
25826 AraAdd constraints.
25827 (atomic_compare_and_swap<mode>_soft_tcb,
25828 atomic_compare_and_swap<mode>_soft_imask,
25829 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
25830 atomic_mem_operand_0 predicate and SraSdd constraints.
25831 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
25833 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
25834 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
25835 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
25836 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
25837 force_reg on the memory address.
25838 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
25839 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
25840 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
25841 atomic_mem_operand_1 predicate and Sra constraint.
25842 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
25843 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25844 Use atomic_mem_operand_1 predicate.
25845 (atomic_<fetchop_name><mode>_hard): Copy to
25846 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25847 Use atomic_mem_operand_1 predicate.
25848 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
25849 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25850 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
25851 insn_and_split. Use atomic_mem_operand_1 predicate.
25852 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
25853 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
25854 Use atomic_mem_operand_1 predicate.
25855 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
25856 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25857 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
25858 in generated insn with original mem operand before emitting the insn.
25859 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
25860 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
25861 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
25862 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
25863 Use atomic_mem_operand_1 predicate and AraAdd constraints.
25864 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
25865 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
25866 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
25867 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
25868 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
25869 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
25870 atomic_not_fetch<mode>_soft_tcb,
25871 atomic_<fetchop_name>_fetch<mode>_soft_imask,
25872 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
25873 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
25874 Use atomic_mem_operand_1 predicate and SraSdd constraints.
25876 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
25878 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
25879 and 3 earlyclobber operands.
25881 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25883 * common.opt (fstack-reuse): Mark as optimization.
25885 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25888 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
25890 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
25892 PR tree-optimization/64326
25893 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
25895 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
25897 PR gcov-profile/61889
25898 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
25900 2015-02-10 Richard Biener <rguenther@suse.de>
25902 PR tree-optimization/64995
25903 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
25904 value we use is final.
25905 (visit_reference_op_store): Always valueize op.
25906 (visit_use): Properly valueize vuses.
25908 2015-02-10 Richard Biener <rguenther@suse.de>
25910 PR tree-optimization/64909
25911 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
25912 pass a scalar-stmt count estimate to the cost model.
25913 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
25915 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
25917 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
25918 enabled by default together with var-tracking.
25920 2015-02-10 Nick Clifton <nickc@redhat.com>
25922 * config/rl78/rl78.c: Remove DIV attribute code accidentally
25923 included in previous rl78 commit.
25925 2015-02-10 Richard Biener <rguenther@suse.de>
25927 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
25928 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
25929 return the bitpack.
25931 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25933 PR gcov-profile/61889
25934 * config.in: regenerate.
25935 * configure.in: Likewise.
25936 * configure.ac: Check for ftw.h.
25937 * gcov-tool.c: Check for ftw.h before using nftw.
25939 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25942 * ipa-visibility.c (update_visibility_by_resolution_info): Only
25943 assert when not in lto mode.
25945 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25947 * ira-color.c (setup_left_conflict_sizes_p): Simplify
25948 initialization/assignment of conflict_size.
25950 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
25953 * ipa-cp.c (gather_caller_stats): Skip thunks.
25954 (propagate_constants_topo): Skip aliases.
25956 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
25959 * config/sh/sh.c (sh_option_override): Don't change
25960 -freorder-blocks-and-partition to -freorder-blocks even when
25961 unwinding is enabled.
25962 (sh_can_follow_jump): Return false if the followee jump is
25963 a crossing jump when -freorder-blocks-and-partition is specified.
25964 * config/sh/sh.md (*jump_compact_crossing): New insn.
25966 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
25967 Kaz Kojima <kkojima@gcc.gnu.org>
25970 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
25971 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
25972 (sh_can_redirect_branch): Rename to ...
25973 (sh_can_follow_jump): ... this. Constify argument types.
25974 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
25975 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
25976 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
25977 * doc/tm.texi: Regenerate.
25979 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25982 * builtins.c (expand_builtin): Call targetm.expand_builtin
25983 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
25985 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25988 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
25990 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25993 * ipa-icf.c (set_local): New function.
25994 (sem_function::merge): Use it.
25996 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25998 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
25999 (add_type_duplicate): Fix comparison of BINFOs.
26001 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26003 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
26004 on getting VOID pointer.
26006 2015-02-09 Jakub Jelinek <jakub@redhat.com>
26009 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
26012 2015-02-09 Richard Biener <rguenther@suse.de>
26014 * genmatch.c (replace_id): Copy expr_type.
26016 2015-02-09 Richard Biener <rguenther@suse.de>
26018 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
26019 (streamer_write_tree_bitfields): Declare.
26020 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
26021 properly unpack padding.
26022 (unpack_value_fields): Inline ...
26023 (streamer_read_tree_bitfields): ... here.
26024 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
26025 and properly add padding bits.
26026 (streamer_pack_tree_bitfields): Fold into ...
26027 (streamer_write_tree_bitfields): ... this new function,
26028 exposing the bitpack object.
26029 * lto-streamer-out.c (lto_write_tree_1): Call
26030 streamer_write_tree_bitfields.
26032 2015-02-09 Richard Biener <rguenther@suse.de>
26034 PR tree-optimization/54000
26035 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
26036 (struct ivopts_data): Add loop_loc member.
26037 (tree_ssa_iv_optimize_loop): Dump loop location.
26038 (create_new_ivs): Likewise, also dump number of IVs generated.
26040 2015-02-09 Martin Liska <mliska@suse.cz>
26042 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
26043 just if not yet registered.
26044 (ipa_icf_generate_summary): Register callgraph hooks.
26046 2015-02-08 Andrew Pinski <apinski@cavium.com>
26048 * config/aarch64/aarch64.c (gty_dummy): Delete.
26050 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26053 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
26054 (cgraph_node::local_p): Remove thunk related FIXME.
26056 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26059 * i386.c (ix86_function_regparm): Look through aliases to see if callee
26060 is local and optimized.
26061 (ix86_function_sseregparm): Likewise; also use target's SSE math
26062 settings; error out instead of silently generating wrong code
26064 (init_cumulative_args): Look through aliases.
26066 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26069 * ipa-split.c (execute_split_functions): Split if function has aliases.
26071 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26074 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
26075 aliases before trying to expand it.
26076 (cgraph_node::expand_thunk): Fix formating.
26078 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
26080 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
26081 (Using Assembly Language with C): Expand introduction.
26082 (Basic Asm): Copy-edit. Add more information about uses of
26084 (Extended Asm): Copy-edit. Document new escape syntax and
26086 (Global Reg Vars): Copy-edit.
26087 (Local Reg Vars): Likewise.
26089 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
26093 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
26094 (DBX_CONTIN_CHAR): Define.
26096 2015-02-06 Sebastian Pop <s.pop@samsung.com>
26097 Brian Rzycki <b.rzycki@samsung.com>
26099 PR tree-optimization/64878
26100 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
26101 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
26102 Stop recursion at loop phi nodes after having visited a loop phi node.
26104 2015-02-06 Jakub Jelinek <jakub@redhat.com>
26106 * toplev.c (process_options): Change flag_ipa_ra before creating
26107 optimization_{default,current}_node.
26110 * cgraphunit.c (cgraph_node::expand_thunk): If
26111 restype is not is_gimple_reg_type nor the thunk_fndecl
26112 returns aggregate_value_p, set restmp to a temporary variable
26113 instead of resdecl.
26115 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
26117 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
26119 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26122 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
26123 add a general secondary reload handler for SDmode, unless we have
26124 both read/write support for SDmode.
26126 2015-02-06 Jakub Jelinek <jakub@redhat.com>
26128 PR middle-end/64937
26129 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
26130 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
26131 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
26132 1 before, push it to abstract_vec.
26133 (dwarf2out_abstract_function): Adjust caller. Don't call
26134 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
26135 DECL_ABSTRACT_P flags for all abstract_vec elts.
26137 2015-02-06 Renlin Li <renlin.li@arm.com>
26139 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
26141 * tree-ssa.c (execute_update_addresses_taken): Likewise.
26143 2015-02-06 Jeff Law <law@redhat.com>
26146 * config/h8300/h8300.c (push): New argument "in_prologue".
26147 Pass "in_prologue" along to "F".
26148 (h8300_push_pop): Corresponding changes.
26149 (h8300_expand_prologue): Likewise.
26150 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
26152 2015-02-06 Jakub Jelinek <jakub@redhat.com>
26154 PR rtl-optimization/64957
26156 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
26157 IOR rather than for AND.
26159 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
26162 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
26163 of shift-add and (add + shift) operations. Rename local variable.
26165 2015-02-05 Jeff Law <law@redhat.com>
26168 * config/h8300/constraints.md (U): Correctly dectect
26169 "eightbit_data" memory addresses.
26170 * config/h8300/h8300.c (eightbit_constant_address_p): Also
26171 handle (const (plus (symbol_ref (x)))) where x is declared
26172 as an 8-bit data memory address.
26173 * config/h8300/h8300.md (call, call_value): Correctly detect
26174 "funcvec" functions.
26177 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
26178 24 to 28 bits for the H8/300.
26180 2015-02-06 Alan Modra <amodra@gmail.com>
26183 * config/rs6000/rs6000.c (chain_already_loaded): New function.
26184 (rs6000_call_aix): Use it.
26186 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
26188 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
26191 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
26193 * config/h8300/constraints.md ("U" constraint): Use strict
26194 variant of REG_OK_FOR_BASE_P after reload has started.
26196 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
26198 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
26199 define to zero if !TARGET_NEON.
26200 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
26202 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26203 Trevor Saunders <tsaunders@mozilla.com>
26206 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
26208 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26211 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
26212 when removing varpool nodes.
26214 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26217 * varpool.c (varpool_node::remove): Fix order of variables.
26219 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26222 * ipa-inline.c (inline_small_functions): Fix ordering issue between
26223 speculation resolution and key updates.
26225 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26227 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
26228 about not letting any speculative edges unupdated.
26230 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26233 * gcov-io.c (gcov_var): Export.
26235 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26237 PR middle-end/64922
26238 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
26239 edges that become speculative.
26241 2015-02-04 Jakub Jelinek <jakub@redhat.com>
26243 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
26244 or DW_LANG_Fortran08.
26245 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
26247 (gen_compile_unit_die): Handle "GNU Fortran2003" and
26248 "GNU Fortran2008" language strings.
26249 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
26250 * langhooks.h (lang_GNU_Fortran): New prototype.
26251 * langhooks.c (lang_GNU_Fortran): New function.
26252 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
26255 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
26257 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
26258 (RTX_OK_FOR_OLO10_P): Likewise.
26260 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
26262 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
26264 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26266 PR middle-end/64922
26267 * gimple.c: Include gimple-ssa.h.
26268 (maybe_remove_unused_call_args): New function.
26269 * gimple.h (maybe_remove_unused_call_args): Declare.
26270 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
26271 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
26272 * gimple-fold.c (gimple_fold_call): Likewise.
26274 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
26276 PR rtl-optimization/64905
26277 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
26278 pointer alignment if it isn't needed.
26280 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
26282 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
26283 cortex-a72.cortex-a53.
26284 * config/aarch64/aarch64-tune.md: Regenerate.
26285 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
26287 2015-02-04 Nick Clifton <nickc@redhat.com>
26289 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
26292 2015-02-04 Jakub Jelinek <jakub@redhat.com>
26294 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
26295 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
26296 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
26298 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
26299 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
26300 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
26301 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
26302 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
26303 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
26304 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
26305 * tree-core.h (enum built_in_function): In between
26306 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
26307 for builtins that use DEF_BUILTIN_CHKP macro.
26309 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
26312 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
26313 operands for tcc_comparison exprs. Fix typos.
26316 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
26317 of two XORs that have an intervening AND or IOR.
26320 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
26321 simplification of XOR of AND to not allocate new rtx before
26322 committing to a simplification.
26324 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26326 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
26327 manual swaps in all peepholes.
26329 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26331 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
26332 of manual swapping implementation.
26333 (aarch64_expand_vec_perm_const_1): Likewise.
26335 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
26337 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
26338 (generic_addrcost_table): Remove NAMED_PARAM.
26339 (cortexa57_addrcost_table): Likewise.
26340 (xgene1_addrcost_table): Likewise.
26341 (generic_regmove_table): Likewise.
26342 (cortexa53_regmove_table): Likewise.
26343 (xgene1_regmove_table): Likewise.
26344 (generic_vector_table): Likewise.
26345 (cortexa57_vector_table): Likewise.
26346 (xgene1_vector_table): Likewise.
26347 (generic_tunings): Likewise.
26348 (cortexa53_tunings): Likewise.
26349 (cortexa57_tunings): Likewise.
26350 (xgene1_tunings): Likewise.
26352 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
26354 * config/arm/arm-cores.def: Add cortex-a72 and
26355 cortex-a72.cortex-a53.
26356 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
26357 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
26358 * config/arm/arm-tune.md: Regenerate.
26359 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
26360 "cortex-a72.cortex-a53".
26361 * doc/invoke.texi (ARM Options/-mtune): Likewise.
26363 2015-02-04 Nick Clifton <nickc@redhat.com>
26366 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
26368 (nonimmediate_di_operand): Likewise.
26370 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
26371 prefixes of known F5 using MSP430 MCUs.
26373 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26375 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
26376 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
26377 instead of __builtin_sqrt.
26379 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
26381 * varasm.c (do_assemble_alias): Follow transparent alias
26383 (default_assemble_visibility): Follow transparent alias
26384 chain for decl name.
26386 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
26388 PR middle-end/62103
26389 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
26390 to compute size of referenced value in the constant case.
26392 2015-02-03 Jakub Jelinek <jakub@redhat.com>
26394 PR rtl-optimization/64756
26395 * cse.c (invalidate_dest): New function.
26396 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
26397 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
26398 invalidate and do not record it.
26400 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
26403 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
26404 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
26405 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
26406 atomic_nand<mode>_soft_tcb): New insns.
26407 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
26408 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
26409 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
26410 Split into atomic_not_fetchsi_hard if operands[0] is unused.
26411 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
26412 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
26413 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
26414 atomic_not<mode>_hard if operands[0] is unused.
26415 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
26416 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
26417 if operands[0] is unused.
26418 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
26419 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
26420 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
26421 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
26423 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
26424 into atomic_not<mode>_soft_tcb if operands[0] is unused.
26425 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
26426 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
26427 if operands[0] is unused.
26428 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
26429 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
26430 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
26431 atomic_nand_fetchsi_hard if operands[0] is unused.
26432 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
26433 atomic_nand<mode>_hard if operands[0] is unused.
26434 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
26435 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
26436 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
26437 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
26438 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
26439 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
26440 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
26441 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
26442 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
26443 atomic_not<mode>_hard if operands[0] is unused.
26444 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
26445 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
26447 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
26448 into atomic_not<mode>_soft_tcb if operands[0] is unused.
26449 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
26450 atomic_nand<mode>_hard if operands[0] is unused.
26451 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
26452 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
26454 2015-02-03 David Malcolm <dmalcolm@redhat.com>
26457 * Makefile.in (GCC_OBJS): Add gcc-main.o.
26458 * gcc-main.c: New file, containing "main" taken from gcc.c.
26459 * gcc.c (do_self_spec): Free decoded_options.
26460 (class driver): Move declaration to gcc.h.
26461 (main): Move declaration and implementation to new file
26463 (driver_get_configure_time_options): New function.
26464 * gcc.h (class driver): Move this declaration here, from
26466 (driver_get_configure_time_options): New declaration.
26468 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
26470 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
26471 cross-module inlining.
26472 * cgraph.h (cgraph_node): Add flag merged.
26473 * ipa-icf.c (sem_function::merge): Maintain it.
26475 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
26477 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
26478 instead of OBJECT_P.
26480 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
26483 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
26484 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
26485 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
26486 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
26488 2015-02-03 Jakub Jelinek <jakub@redhat.com>
26491 * combine.c (reg_n_sets_max): New variable.
26492 (can_change_dest_mode, reg_nonzero_bits_for_combine,
26493 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
26494 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
26495 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
26496 (rest_of_handle_combine): Initialize reg_n_sets_max.
26498 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
26500 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
26501 if some always_inline was inlined, apply changes before inlining
26504 2015-02-02 David Malcolm <dmalcolm@redhat.com>
26507 * config/arm/arm.c (arm_option_override): Set
26508 arm_selected_arch/cpu/tune to NULL on entry.
26510 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
26511 Andrew Pinski <pinskia@gcc.gnu.org>
26512 Jakub Jelinek <jakub@gcc.gnu.org>
26515 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
26516 integer typing for small model. Use IN_RANGE.
26518 2015-02-02 Richard Biener <rguenther@suse.de>
26520 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
26521 * tree-vrp.c (vrp_valueize_1): Likewise.
26523 2015-02-02 Alan Modra <amodra@gmail.com>
26525 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
26526 than mem for toc_restore.
26527 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
26528 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
26529 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
26531 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
26534 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
26535 explicit default options.
26537 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
26540 * ipa-utils.c (ipa_merge_profiles): Add release argument.
26541 * ipa-icf.c (sem_function::merge): Do not release body when merging.
26542 * ipa-utils.h (ipa_merge_profiles): Update prototype.
26544 2015-02-01 Jakub Jelinek <jakub@redhat.com>
26547 * cfgexpand.c (deep_ter_debug_map): New variable.
26548 (avoid_deep_ter_for_debug): New function.
26549 (expand_debug_expr): If TERed SSA_NAME is in
26550 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
26551 instead of trying to expand SSA_NAME's def stmt.
26552 (expand_debug_locations): When expanding debug bind
26553 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
26554 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
26556 (pass_expand::execute): Call avoid_deep_ter_for_debug on
26557 all debug bind stmts. Delete deep_ter_debug_map after
26558 expand_debug_location if non-NULL and clear it.
26560 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
26563 * config/sh/sync.md (atomic_fetch_notsi_hard,
26564 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
26565 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
26566 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
26567 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
26568 atomic_not_fetch<mode>_soft_imask): New insns.
26570 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26572 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
26573 (rank_for_schedule_debug): Split from ...
26574 (rank_for_schedule): ... this.
26575 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
26576 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
26578 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26580 * doc/md.texi (Machine Constraints): Alphabetize table by target.
26581 * doc/extend.texi (x86 Variable Attributes): Move section to
26582 correct alphabetization after renaming.
26583 (x86 Type Attributes): Likewise.
26584 (Target Builtins): Re-alphabetize menu.
26585 (x86 Built-in Functions): Move section to correct alphabetization
26587 (x86 transactional memory intrinsics): Likewise.
26588 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
26589 and x86 Windows Options in table and menu.
26590 (x86 Options): Move section to correct alphabetization after
26592 (x86 Windows Options): Likewise.
26594 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26596 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
26597 preferred names of the architecture and its 32- and 64-bit
26599 * doc/invoke.texi: Likewise.
26600 * doc/md.texi: Likewise.
26602 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26605 * config/i386/predicates.md (address_no_seg_operand): Reject
26606 non-CONST_INT_P operands in invalid mode.
26608 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26610 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
26611 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
26612 * config/i386/predicates.md (address_no_seg_operand): Call
26613 address_operand with VOIDmode.
26614 (vsib_address_operand): Ditto.
26615 (address_mpx_no_base_operand): Ditto.
26616 (address_mpx_no_index_operand): Ditto.
26618 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26621 * lra-constraints.c (original_subreg_reg_mode): New.
26622 (simplify_operand_subreg): Try to simplify subreg of const. Use
26623 original_subreg_reg_mode for it.
26624 (swap_operands): Update original_subreg_reg_mode.
26625 (curr_insn_transform): Set up original_subreg_reg_mode.
26627 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26630 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
26632 (process_alt_operands): Use it.
26633 (curr_insn_transform): Check the optional reload pseudo class is
26636 2015-01-30 Joseph Myers <joseph@codesourcery.com>
26638 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
26639 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
26641 * toplev.h (init_asm_output): Update comment on use of
26642 UNKNOWN_LOCATION with fatal_error.
26643 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
26644 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
26645 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
26646 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
26647 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
26648 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
26649 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
26650 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
26651 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
26652 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
26653 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
26654 fatal_error changed to pass input_location as first argument.
26656 2015-01-30 Martin Liska <mliska@suse.cz>
26658 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
26659 in #pragma GCC diagnostic guards.
26661 2015-01-30 Richard Biener <rguenther@suse.de>
26663 PR tree-optimization/64829
26664 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
26665 not add a widening conversion pattern but hand off extra
26666 widenings to callers.
26667 (vect_recog_widen_mult_pattern): Handle extra widening produced
26668 by vect_handle_widen_op_by_const.
26669 (vect_recog_widen_shift_pattern): Likewise.
26670 (vect_pattern_recog_1): Remove excess vertical space in dumping.
26671 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
26672 (vect_init_vector_1): Likewise.
26673 (vect_get_vec_def_for_operand): Likewise.
26674 (vect_finish_stmt_generation): Likewise.
26675 (vectorizable_load): Likewise.
26676 (vect_analyze_stmt): Likewise.
26677 (vect_is_simple_use): Likewise.
26679 2015-01-29 Jeff Law <law@redhat.com>
26681 * combine.c (try_combine): Fix typo in comment.
26683 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
26686 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
26687 (rs6000_stack_info): Add assert.
26688 (rs6000_output_savres_externs): New function, split off from...
26689 (rs6000_output_function_prologue): ... here. Do not call it for
26692 2015-01-29 Jeff Law <law@redhat.com>
26695 * combine.c (try_combine): If I0 is a memory load and I3 a store
26696 to a related address, increase the "goodness" of doing a 4-insn
26697 combination with I0-I3.
26698 (make_field_assignment): Handle SUBREGs in the ior+and case.
26700 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
26702 PR tree-optimization/64746
26703 * tree-if-conv.c (mask_exists): New function.
26704 (predicate_mem_writes): Save created mask with given size for further
26706 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
26707 (ifcvt_repair_bool_pattern): Collect all statements that are root
26708 of bool pattern and use iterative algorithm to remove multiple uses
26709 of predicates, display number of required iterations.
26711 2015-01-29 Richard Biener <rguenther@suse.de>
26713 PR tree-optimization/64853
26714 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
26715 stmt will get simulated again.
26716 * tree-ssa-ccp.c (valueize_op_1): Likewise.
26718 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26720 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
26721 return_in_pc. Remove redundant assignments.
26722 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
26723 (arm_expand_epilogue): Don't compare boolean with true in if condition.
26725 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
26727 * config/i386/i386.c (ix86_mode_after): Make static.
26729 2015-01-29 Richard Biener <rguenther@suse.de>
26731 PR tree-optimization/64844
26732 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
26733 dump cost model analysis.
26734 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26735 Do not register adjusted load/store costs here.
26737 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26738 Uros Bizjak <ubizjak@gmail.com>
26740 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
26741 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
26742 using x86_use_pseudo_pic_reg.
26743 * config/i386/i386.c (ix86_conditional_register_usage): Remove
26744 support for fixed PIC register.
26745 (ix86_use_pseudo_pic_reg): Not static any more.
26747 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26749 PR middle-end/64805
26750 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
26751 to avoid error in cgraph node verification.
26753 2015-01-29 Marek Polacek <polacek@redhat.com>
26755 * doc/standards.texi: Reflect that the default for C is gnu11.
26757 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
26760 * reorg.c (switch_text_sections_between_p): New function.
26761 (relax_delay_slots): Call it when testing if the jump insn
26762 is removable. Use targetm.can_follow_jump when testing if
26763 the conditional branch can follow an unconditional jump.
26765 2015-01-27 Caroline Tice <cmtice@google.com>
26767 Committing VTV Cywin/Ming patch for Patrick Wollgast
26768 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
26769 if -fvtable-verify=preinit/std is used.
26770 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
26771 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
26772 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
26773 if -fvtable-verify=preinit/std is used.
26774 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
26775 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
26776 if -fvtable-verify=preinit/std is used.
26777 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
26778 * config/i386/mingw32.h (LIB_SPEC): Likewise.
26779 * varasm.c (assemble_variable): Add code to properly set the comdat
26780 section and name for the .vtable_map_vars section in case the
26781 target is PE or COFF.
26783 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26786 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
26787 make sane BB profile.
26788 (cgraph_node::expand_thunk): Make sane BB profile.
26789 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
26790 * cgraph.h (init_lowered_empty_function): Update prototype.
26791 * config/i386/i386.c (make_resolver_func): Update call.
26792 * predict.c (gate): Disable branch prediction pass if
26793 profile is already there.
26795 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26797 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
26798 * opth-gen.awk: Likewise.
26799 * common.opt: Mark flag_fp_contract_mode as Optimization.
26801 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
26803 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
26804 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
26806 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
26809 * config/sh/predicates.md (atomic_arith_operand,
26810 atomic_logical_operand): Remove.
26811 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
26812 (atomic_arith_operand_0): New predicate.
26813 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
26814 Use atomic_arith_operand_0 for input values.
26815 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
26816 atomic_compare_and_swap<mode>_soft_gusa,
26817 atomic_compare_and_swap<mode>_soft_tcb,
26818 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
26819 arith_reg_operand instead of register_operand.
26820 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
26821 atomic_arith_operand_0 for newval input.
26822 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
26823 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
26824 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
26825 arith_reg_operand instead of register_operand.
26826 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
26827 fetchop_predicate_1, fetchop_constraint_1_llcs,
26828 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
26829 fetchop_constraint_1_imask): New code iterator attributes.
26830 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
26831 register_operand. Use fetchop_predicate_1.
26832 (atomic_fetch_<fetchop_name>si_hard,
26833 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
26834 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
26835 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
26836 and arith_reg_operand instead of register_operand. Use
26837 fetchop_predicate_1, fetchop_constraint_1_gusa.
26838 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
26839 and arith_reg_operand instead of register_operand. Use
26840 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
26842 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
26843 and arith_reg_operand instead of register_operand. Use
26844 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
26846 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
26847 register_operand. Use atomic_logical_operand_1.
26848 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
26849 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
26850 arith_reg_operand instead of register_operand.
26851 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
26852 Use arith_reg_dest and arith_reg_operand instead of register_operand.
26853 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
26854 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
26855 register_operand. Use fetchop_predicate_1.
26856 (atomic_<fetchop_name>_fetchsi_hard,
26857 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
26858 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26859 fetchop_constraint_1_llcs.
26860 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
26861 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26862 fetchop_constraint_1_gusa.
26863 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
26864 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26865 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
26866 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
26867 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26868 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
26869 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
26870 register_operand. Use atomic_logical_operand_1.
26871 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
26872 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
26873 arith_reg_operand instead of register_operand.
26874 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
26875 arith_reg_operand instead of register_operand. Use logical_operand
26876 and K08. Adjust asm sequence to allow R0 usage.
26877 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
26878 arith_reg_operand instead of register_operand. Use logical_operand
26881 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26884 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
26885 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
26886 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
26887 only get_full_len HOST_WIDE_INTs from get_val () array rather than
26888 all bits in *val_wide.
26890 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
26892 * varpool.c (tls_model_names): Fix names.
26893 (varpool_node::dump): Dump tls- prefix for tls models.
26895 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
26896 Bernd Schmidt <bernds@codesourcery.com>
26897 Nathan Sidwell <nathan@codesourcery.com>
26899 * config/nvptx/mkoffload.c: New file.
26900 * config/nvptx/t-nvptx: Add build rules for it.
26901 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
26902 (extra_programs): Add mkoffload.
26903 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
26905 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
26907 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
26909 PR middle-end/64809
26910 * cfgexpand.c (reorder_operands): Skip debug gimples.
26912 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
26914 PR tree-optimization/64277
26915 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
26916 range info when possible to refine estimation.
26918 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26920 PR tree-optimization/64718
26921 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
26922 be a 16bit unsigned integer when n->range is 16.
26923 (bswap_replace): Convert src to that type if necessary for all bswap
26924 sizes. Fix rotation right notation in nearby comment. Use bswap_type
26925 set in pass_optimize_bswap::execute ().
26927 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
26929 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
26930 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
26931 integer and floating point variants.
26932 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
26934 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
26936 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
26937 for all vector modes.
26939 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26942 * doc/sourcebuild.texi (comdat_group): Document.
26944 2015-01-28 Terry Guo <terry.guo@arm.com>
26946 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
26948 2015-01-27 David Malcolm <dmalcolm@redhat.com>
26950 * toplev.c (print_version): Add param "show_global_state", and
26951 only print GGC and plugin information if it is true.
26952 (init_asm_output): Pass in "true" for the new param when calling
26954 (process_options): Likewise.
26955 (toplev::main): Likewise.
26956 * toplev.h (print_version): Add new param to decl.
26958 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26962 * tree.c (lookup_binfo_at_offset): New function.
26963 (get_binfo_at_offset): Use it.
26965 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26968 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
26969 on vtable being vtable.
26971 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
26973 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
26974 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
26975 -mhotpatch= option.
26976 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
26977 -mno-hotpatch options. Change syntax of -mhotpatch= option.
26978 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
26980 (s390_hotpatch_trampoline_halfwords_max): Renamed.
26981 (s390_hotpatch_hw_max): New name.
26982 (s390_hotpatch_trampoline_halfwords): Renamed.
26983 (s390_hotpatch_hw_before_label): New name.
26984 (get_hotpatch_attribute): Removed.
26985 (s390_hotpatch_hw_after_label): New name.
26986 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
26988 (s390_attribute_table): Ditto.
26989 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
26990 (s390_function_num_hotpatch_hw): New name.
26991 Remove special handling of inline functions and hotpatching.
26992 Return number of nops before and after the function label.
26993 (s390_can_inline_p): Removed.
26994 (s390_asm_output_function_label): Emit a configurable number of nops
26995 after the function label.
26996 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
26997 (TARGET_CAN_INLINE_P) Removed.
26998 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
27000 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27001 Jiong Wang <jiong.wang@arm.com>
27003 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
27005 (cb<optab><mode>1): Likewise.
27006 * config/aarch64/iterators.md (bcond): New define_code_attr.
27008 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27010 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
27013 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27015 * config/s390/s390.c (s390_register_move_cost): Increase costs for
27018 2015-01-27 Richard Biener <rguenther@suse.de>
27020 * tree-vrp.c (update_value_range): Intersect the range with
27021 old recorded SSA name range information.
27023 2015-01-27 Nick Clifton <nickc@redhat.com>
27025 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
27026 BC, DE and HL registers directly, not via AX.
27027 When decrementing the stack pointer by a large amount, transfer SP
27028 into AX and perform the subtraction there.
27029 (rl78_expand_epilogue): Perform the inverse of the above
27032 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27034 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
27036 2015-01-27 Jakub Jelinek <jakub@redhat.com>
27037 Yury Gribov <y.gribov@samsung.com>
27040 * ubsan.c (ubsan_source_location): Refactor code.
27041 (ubsan_type_descriptor): Update type size. Refactor code.
27043 2015-01-27 Richard Biener <rguenther@suse.de>
27045 PR tree-optimization/56273
27046 PR tree-optimization/59124
27047 PR tree-optimization/64277
27048 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
27049 from the first VRP pass.
27051 2015-01-27 Jakub Jelinek <jakub@redhat.com>
27054 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
27055 handle the first argument in the same loop as all the other arguments.
27057 PR rtl-optimization/61058
27058 * jump.c (cleanup_barriers): Update basic block boundaries
27059 if BLOCK_FOR_INSN is non-NULL on PREV.
27061 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
27063 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
27064 bounds narrowing, already instrumented calls and calls to
27065 not instrumentable functions.
27067 2015-01-27 Jakub Jelinek <jakub@redhat.com>
27069 PR tree-optimization/64807
27070 * wide-int.cc (wi::divmod_internal): Clear
27071 b_dividend[dividend_blocks_needed].
27073 2015-01-26 DJ Delorie <dj@redhat.com>
27075 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
27076 volatile memory references.
27078 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
27081 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
27083 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
27084 shifts if it already fits into K08.
27086 2015-01-26 Jakub Jelinek <jakub@redhat.com>
27089 * ipa-inline.c (inline_small_functions): Print "unknown" even
27090 if edge->call_stmt is non-NULL, but has builtins or unknown
27093 PR middle-end/64421
27094 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
27095 with asterisk, skip the first character.
27097 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
27100 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
27103 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
27106 * config/i386/i386.md (*movdi_internal): Also check operand 0
27107 to determine TYPE_LEA operand.
27108 (*movsi_internal): Ditto.
27110 2015-01-26 Jakub Jelinek <jakub@redhat.com>
27112 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
27113 OPTION_MASK_QUAD_MEMORY_ATOMIC.
27115 2015-01-26 Renlin Li <renlin.li@arm.com>
27117 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
27119 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
27122 2015-01-26 Richard Biener <rguenther@suse.de>
27124 PR middle-end/64764
27125 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
27126 combining two BIT_AND_EXPR predicates.
27128 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
27131 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
27133 2015-01-26 Terry Guo <terry.guo@arm.com>
27135 * config/arm/arm.c (arm_file_start): Update the assignment of
27136 Tag_ABI_HardFP_use.
27138 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
27140 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
27142 config/arm/arm.md: Include the new Cortex-A57 model.
27143 (generic_sched): Don't use generic_sched when tuning for
27146 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
27147 Uros Bizjak <ubizjak@gmail.com>
27149 * config/i386/i386.c (get_builtin_code_for_version): Add
27150 support for BMI and BMI2 multiversion functions.
27152 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27154 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
27155 (extract_bit_field): Likewise.
27156 (extract_low_bits): Likewise.
27157 (expand_mult): Likewise.
27158 (expand_mult_highpart_adjust): Likewise.
27160 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
27162 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
27163 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
27164 * config/i386/i386.c (processor_model): Add
27165 M_INTEL_COREI7_BROADWELL.
27166 (arch_names_table): Add "broadwell".
27168 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
27177 * config/sh/sh-protos.h
27178 (sh_extending_set_of_reg::can_use_as_unextended_reg,
27179 sh_extending_set_of_reg::use_as_unextended_reg,
27180 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
27181 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
27182 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
27183 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
27184 (sh_treg_insns): New class.
27185 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
27186 (scope_counter): New class.
27187 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
27188 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
27189 sh_extending_set_of_reg::can_use_as_unextended_reg,
27190 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
27191 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
27192 sh_split_treg_set_expr): New functions.
27193 (addsubcosts): Handle treg_set_expr.
27194 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
27195 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
27196 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
27197 (sh_insn_operands_modified_between_p): Make non-static.
27198 * config/sh/predicates.md (zero_extend_movu_operand): Allow
27199 simple_mem_operand in addition to displacement_mem_operand.
27200 (zero_extend_operand): Don't allow zero_extend_movu_operand.
27201 (treg_set_expr, treg_set_expr_not_const01,
27202 arith_reg_or_treg_set_expr): New predicates.
27203 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
27204 arith_or_int_operand instead of logical_operand. Convert to
27205 insn_and_split. Try to optimize constant operand in splitter.
27206 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
27207 (*tstqi_t_zero): Delete.
27208 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
27209 (tstsi_t_and_not): Delete.
27210 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
27211 Convert to insn_and_split.
27212 (unnamed split, tstsi_t_zero_extract_xor,
27213 tstsi_t_zero_extract_subreg_xor_little,
27214 tstsi_t_zero_extract_subreg_xor_big): Delete.
27215 (*tstsi_t_shift_mask): New insn_and_split.
27216 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
27217 to recombine with surrounding insns when splitting.
27218 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
27219 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
27220 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
27221 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
27222 (*cbranch_div0s: Delete.
27223 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
27224 Try to recombine with surrounding insns when splitting. Add operand
27226 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
27227 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
27228 *addc_r_r_msb, *addc_2r_msb): Delete.
27229 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
27231 (*addc_negreg_t): New insn_and_split.
27232 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
27233 Try to recombine with surrounding insns when splitting.
27234 Add operand order variants.
27235 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
27236 insn_and_split patterns.
27237 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
27238 surrounding insns when splitting.
27239 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
27240 (*rotcl): Likewise. Add zero_extract variant.
27241 (*ashrsi2_31): New insn_and_split.
27242 (*negc): Convert to insn_and_split. Use treg_set_expr.
27243 (*zero_extend<mode>si2_disp_mem): Update comment.
27244 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
27246 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
27247 with surrounding insns when splitting.
27248 (any_treg_expr_to_reg): New insn_and_split.
27249 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
27250 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
27251 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
27252 *zero_extract_2): New single bit zero extract patterns.
27253 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
27254 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
27255 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
27256 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
27258 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
27259 register_operand for set source.
27261 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
27263 * i386.opt (prefetch_sse): New targetsave.
27264 * i386.c (ix86_function_specific_save): Save prefetch_sse.
27265 (ix86_function_specific_restore): Restore prefetch_sse and initialize
27266 ix86_cost/ix86_tune_cost.
27268 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27270 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
27271 Support the JIT by using 0 as the language type.
27273 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
27276 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
27277 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
27278 (mark_regno_live, process_bb_lives): Pass new parameter value to
27279 make_hard_regno_born.
27281 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27283 PR rtl-optimization/63637
27284 PR rtl-optimization/60663
27285 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
27286 if elt->cost is MAX_COST for ASM_OPERANDS.
27287 (find_sets_in_insn): Fix up comment typo.
27288 (cse_insn): Don't set src_volatile for all non-volatile
27289 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
27290 or with "memory" clobber. Set elt->cost to MAX_COST
27291 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
27292 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
27294 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
27296 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
27299 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
27301 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
27302 libgcc/config/i386/elf-lib.h.
27304 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27307 * gcc.c (print_configuration): Don't print a blank line at the end
27309 (run_attempt): ... but here unstead.
27311 PR middle-end/64734
27312 * omp-low.c (scan_sharing_clauses): Don't ignore
27313 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
27314 on target data/update constructs.
27316 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
27319 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
27320 (DEBUG_RELOAD): Removed define.
27321 (m32c_limit_reload_class): Enable traces with if DEBUG0.
27322 (m32c_function_arg): Added a type cast.
27323 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
27324 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
27325 * config/m32c/bitops.md (andqi3_16): Likewise.
27326 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
27327 (push_a01_l): Likewise.
27329 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27332 * main.c (main): Construct toplev instances with init_signals=true.
27333 * toplev.c (general_init): Add param "init_signals", and use it to
27334 conditionalize the calls to signal and host_hooks.extra_signals.
27335 (toplev::toplev): Add param "init_signals".
27336 (toplev::main): When invoking general_init, pass m_init_signals
27337 to control whether signal-handlers are installed.
27338 * toplev.h (toplev::toplev): Add param "init_signals".
27339 (toplev::m_init_signals): New field.
27341 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27344 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
27345 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
27346 latter may be affected by the former (e.g. on i686).
27348 2015-01-23 Martin Liska <mliska@suse.cz>
27350 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
27351 false positive during profiledbootstrap.
27353 2015-01-23 Tom de Vries <tom@codesourcery.com>
27356 * lto-opts.c (lto_write_options): Output non-explicit conservative
27358 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
27359 (append_compiler_options): Pass -fopenacc through.
27361 2015-01-23 Tom de Vries <tom@codesourcery.com>
27364 * lto-opts.c (lto_write_options): Output non-explicit conservative
27366 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
27367 (append_compiler_options): Pass -fopenmp through.
27369 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27372 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
27375 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
27376 * diagnostic.def (DK_ICE_NOBT): New kind.
27377 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
27378 like DK_ICE, but never print backtrace.
27379 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
27380 (internal_error_no_backtrace): New function.
27381 * gcc.c (execute): Use internal_error_no_backtrace instead of
27384 2015-01-22 Jeff Law <law@redhat.com>
27387 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
27388 improve code density for small immediate to memory case.
27389 (insv): Better handle bitfield assignments when the field is
27390 being set to all ones.
27391 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
27394 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27395 Jakub Jelinek <jakub@redhat.com>
27397 PR middle-end/64729
27398 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
27399 for !TARGET_LIBC_PROVIDES_SSP version and
27400 -fstack-protector-{all,strong,explicit} otherwise.
27401 * config/freebsd.h (LINK_SSP_SPEC): Handle
27402 -fstack-protector-{strong,explicit}.
27404 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
27405 H.J. Lu <hongjiu.lu@intel.com>
27408 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
27411 2015-01-22 Wei Mi <wmi@google.com>
27413 PR rtl-optimization/64557
27414 * dse.c (record_store): Call get_addr for mem_addr.
27415 (check_mem_read_rtx): Likewise.
27417 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
27419 * fold-const.c (const_binop): Add early return for non-tcc_binary.
27421 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
27423 * toplev.c (init_local_tick): Process the failure when read
27424 fails for random_seed.
27426 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
27427 'pretty_name' to avoid memory overflow.
27429 2015-01-22 Richard Biener <rguenther@suse.de>
27431 PR middle-end/64728
27432 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
27433 abnormal coalescing on undefined SSA names.
27435 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
27439 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
27441 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
27443 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
27445 PR middle-end/63325
27446 * fold-const.c (fold_checksum_tree): Don't include value of
27447 expr->decl_with_vis.symtab_node in the checksum.
27449 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27451 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
27453 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
27456 * gcc.c (insert_comments): New function.
27457 (try_generate_repro): Call it.
27458 (append_text): Removed.
27460 2015-01-22 Richard Biener <rguenther@suse.de>
27462 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
27463 with IL incompatible options. Properly honor user optimize
27466 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
27468 PR rtl-optimization/64682
27469 * combine.c (distribute_notes): When moving a death note for
27470 a register that is set in the new I2, make sure to put it
27471 before that new I2.
27473 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
27475 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
27476 not TARGET_DEFAULT.
27478 2015-01-21 Jakub Jelinek <jakub@redhat.com>
27481 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
27482 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
27483 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
27486 * doc/invoke.texi (-fsanitize=vptr): Document.
27488 PR rtl-optimization/62078
27489 * dse.c: Include cfgcleanup.h.
27490 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
27491 anything call purge_all_dead_edges and cleanup_cfg at the end
27494 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
27496 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
27499 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
27501 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
27504 2015-01-21 David Sherwood <david.sherwood@arm.com>
27505 Tejas Belagod <Tejas.Belagod@arm.com>
27507 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
27508 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
27509 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
27512 2015-01-21 David Sherwood <david.sherwood@arm.com>
27513 Tejas Belagod <Tejas.Belagod@arm.com>
27515 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
27516 (aarch64_reverse_mask): New decls.
27517 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
27518 (insn_count): New mode_attr.
27519 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
27520 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
27521 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
27522 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
27523 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
27524 (aarch64_simd_st4): New patterns.
27525 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
27526 (aarch64_reverse_mask): New functions.
27528 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
27530 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
27532 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
27533 addressing modes for BE.
27534 (aarch64_print_operand): Add 'R' specifier.
27535 (aarch64_simd_disambiguate_copy): Delete.
27536 (aarch64_simd_emit_reg_reg_move): New function.
27537 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
27538 in define_splits for structural moves.
27539 (mov<mode>): Use less restrictive predicates.
27540 (*aarch64_mov<mode>): Simplify and only allow for LE.
27541 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
27543 2015-01-21 Alan Hayward <alan.hayward@arm.com>
27545 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
27547 2015-01-21 Richard Henderson <rth@redhat.com>
27550 * ccmp.c (used_in_cond_stmt_p): Remove.
27551 (expand_ccmp_expr): Don't use it.
27553 2015-01-21 Nick Clifton <nickc@redhat.com>
27555 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
27558 2015-01-21 Richard Biener <rguenther@suse.de>
27560 PR middle-end/64313
27561 * tree-core.h (builtin_info, builtin_info_type): Turn from
27562 an object with two arrays into an array of an object with
27563 decl and two flags, implicit_p and declared_p.
27564 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
27565 set_builtin_decl, set_builtin_decl_implicit_p,
27566 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
27567 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
27568 * builtins.c (builtin_info): Adjust.
27569 * gimplify.c (gimplify_addr_expr): References to builtins
27570 that have been declared by the user makes them eligible for
27571 use by the compiler. Call set_builtin_decl_implicit_p on them.
27573 2015-01-20 Jeff Law <law@redhat.com>
27576 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
27577 allow pc-relative addresses in operand predicates or constraints.
27579 2015-01-21 Bin Cheng <bin.cheng@arm.com>
27581 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
27582 neon on aarch32 processors for stringops.
27584 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27587 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
27589 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27592 * ipa-inline.c: Include lto-streamer.h
27593 (report_inline_failed_reason): Output source file differences and
27594 flags on optimization/target node mismatch.
27595 (can_inline_edge_p): Consider caller to be the outer inline function;
27596 be less restrictive about matching opimize and optimize_size attributes.
27597 (inline_account_function_p): Break out from ...
27598 (inline_small_functions): ... here.
27599 * ipa-inline-transform.c (clone_inlined_nodes): Use
27600 inline_account_function_p.
27601 (inline_call): Use optimize attribution; use inline_account_function_p.
27602 (inline_transform): Use opt_for_fn.
27603 * ipa-inline.h (inline_account_function_p): Declare.
27605 2015-01-20 Jakub Jelinek <jakub@redhat.com>
27608 * dwarf2out.c (decl_piece_node): Don't put bitsize into
27609 mode if bitsize <= 0.
27610 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
27611 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
27612 sizes and positions.
27614 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
27616 * config/nios2/nios2.c (nios2_asm_file_end): Implement
27617 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
27619 (TARGET_ASM_FILE_END): Define.
27621 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27623 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
27624 (struct tune_params): Use the enum.
27625 * arm.c (arm_*_tune): Update.
27626 (arm_option_override): Update.
27628 2015-01-20 Richard Biener <rguenther@suse.de>
27631 * ipa-reference.c (add_static_var): Inline ...
27632 (analyze_function): ... here after splitting out from ...
27633 (is_proper_for_analysis): ... this.
27635 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
27638 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
27639 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
27640 replace the conditional with it's true branch.
27641 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
27642 (arm_lra_p): Remove.
27644 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
27646 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
27648 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27650 * config/tilegx/mul-tables.c: Move symtab.h include after
27651 coretypes.h include.
27652 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
27653 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
27654 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
27655 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
27656 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27658 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
27662 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27664 PR rtl-optimization/64081
27665 * loop-iv.c (def_pred_latch_p): New function.
27666 (latch_dominating_def): Allow specific cases with non-single
27668 (iv_get_reaching_def): Likewise.
27669 (check_complex_exit_p): New function.
27670 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27671 with exits not executing on any iteration.
27673 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27676 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
27677 to set branch cost.
27679 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27682 * i386.c (gate): Check flag_expensive_optimizations and
27684 (ix86_option_override_internal): Drop optimize_size condition
27685 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
27686 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
27687 MASK_PREFER_AVX128.
27688 (ix86_avx256_split_vector_move_misalign,
27689 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
27690 * sse.md (all uses of TARGET_PREFER_AVX128): Add
27691 optimize_insn_for_speed_p check.
27693 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
27695 * config/mips/mips.h (FP_ASM_SPEC): New define.
27696 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
27699 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
27702 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
27703 nullptr for insn when reaching the first insn.
27704 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
27705 (sh_insn_operands_modified_between_p): Add nullptr check.
27706 (sh_find_extending_set_of_reg): Fix log message. Don't accept
27707 sign extending mem load if the insn contains any UNSPEC or
27710 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27712 * params.def (inline-unit-growth): Drop to 15%.
27713 * invoke.texi (inline-unit-growth): Document change.
27715 2015-01-19 Martin Liska <mliska@suse.cz>
27718 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
27719 function for second argument of OBJ_TYPE_REF.
27721 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27724 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
27725 whether function is an alias.
27727 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27729 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
27732 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
27734 PR rtl-optimization/64671
27735 * lra-remat.c (operand_to_remat): Don't consider jump and call
27738 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
27741 * config/rs6000/default64.h: Include rs6000-cpus.def.
27742 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
27743 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
27744 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
27746 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
27748 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
27749 pseudo-op to specify assembler dialect.
27751 2015-01-19 Martin Liska <mliska@suse.cz>
27754 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
27755 Handle safe potentially removed nodes during filtering.
27757 2015-01-19 Martin Liska <mliska@suse.cz>
27759 * doc/extend.texi (no_icf): Add new attribute description.
27760 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
27761 where the pass attempts to merge a function with no_icf attribute.
27763 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27766 * doc/md.texi (ARM Options): Document register constraints.
27768 2015-01-19 Jiong Wang <jiong.wang@arm.com>
27769 Andrew Pinski <apinski@cavium.com>
27772 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
27773 (ashl<mode>3): Don't expand if operands[2] is not constant.
27775 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27778 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
27779 Match xor-and-xor RTL pattern.
27781 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27783 PR rtl-optimization/64081
27784 * loop-iv.c (def_pred_latch_p): New function.
27785 (latch_dominating_def): Allow specific cases with non-single
27787 (iv_get_reaching_def): Likewise.
27788 (check_complex_exit_p): New function.
27789 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27790 with exits not executing on any iteration.
27792 2015-01-19 Jakub Jelinek <jakub@redhat.com>
27794 * common.opt (fgraphite): Fix a typo.
27796 2015-01-19 Felix Yang <felix.yang@huawei.com>
27798 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
27800 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
27801 uminp, smax_nanp, smin_nanp): New builtins.
27802 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
27803 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
27804 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
27805 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
27806 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
27807 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
27808 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
27809 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
27810 vpminnms_f32): Rewrite using builtin functions.
27812 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
27815 * omp-low.c (offload_symbol_decl): Remove variable.
27816 (get_offload_symbol_decl): Remove function.
27817 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
27818 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
27819 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
27820 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
27821 BUILT_IN_GOACC_UPDATE don't pass it at all.
27823 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27825 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
27828 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27830 * ipa-chkp.c (chkp_produce_thunks): Add early param
27831 to split thunks production into two passes. Keep
27832 'always_inline' function bodies after the first pass.
27833 (pass_data_ipa_chkp_early_produce_thunks): New.
27834 (pass_ipa_chkp_early_produce_thunks): New.
27835 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
27836 chkp_produce_thunks signature.
27837 (make_pass_ipa_chkp_early_produce_thunks): New.
27838 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
27839 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
27840 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
27842 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27844 * cgraph.c (cgraph_node::dump): Dump profile flags.
27846 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
27849 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
27850 reg appear first in the parallel.
27852 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27854 * ipa-reference.c (set_reference_optimization_summary,
27855 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
27857 (ignore_module_statics): New static var.
27858 (propagate_bits): If ipa-reference is disabled, do not look into local
27860 (analyze_function): Disable analysis when ipa_reference is disabled.
27861 (generate_summary): Do not dump when reference is disabled;
27862 collect vars accessed from functions with ipa-reference disabled.
27863 (get_read_write_all_from_node): When ipa-reference is disabled, use the
27865 (gate): Enable for LTO.
27866 (ignore_edge_p): New function.
27867 (propagate): Skip functions w/o ipa-reference analysis.
27868 * optc-save-gen.awk: Handle optimize_debug correctly.
27869 * opth-gen.awk: Likewise.
27870 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
27871 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
27872 fira-share-save-slots, fira-share-spill-slots,
27873 fmodulo-sched-allow-regmoves, fpartial-inlining,
27874 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
27875 ftracer, ftree-parallelize-loops, fassociative-math,
27876 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
27878 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
27879 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
27881 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
27884 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27887 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
27889 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
27891 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
27893 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
27894 Remove duplicate option listings.
27896 2015-01-18 Felix Yang <felix.yang@huawei.com>
27898 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
27899 (autofdo_source_profile::get_callsite_total_count,
27900 function_instance::get_function_instance_by_decl,
27901 string_table::get_index, string_table::get_index_by_decl,
27902 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
27903 Fix comment typos. Reformatting and minor code rearrangement.
27905 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27907 * config/rs6000/rs6000.md (probe_stack): Delete.
27908 (probe_stack_address): New.
27910 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27912 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
27913 to test for 32-bit ABIs, not !TARGET_POWERPC64.
27915 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27917 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
27918 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
27919 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
27921 (rs6000_libcall_value): Use the new function.
27923 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
27925 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
27927 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
27929 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
27930 implement a more precise life analysis for it during backward scan.
27932 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
27934 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
27936 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
27938 PR rtl-optimization/52773
27939 * calls.c (emit_library_call_value): When pushing arguments use
27940 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
27941 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
27942 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
27944 2015-01-17 Jeff Law <law@redhat.com>
27946 PR rtl-optimization/32790
27947 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
27948 not ZERO_EXTEND in SET_DESTs.
27950 2015-01-17 Alan Modra <amodra@gmail.com>
27952 * cprop.c (do_local_cprop): Revert last change.
27954 2015-01-16 DJ Delorie <dj@redhat.com>
27955 Nick Clifton <nickc@redhat.com>
27957 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
27958 (addhi3_real): Likewise. Fix [HL+0] syntax.
27959 (subqi3_real): Likewise.
27960 (subhi3_real): Likewise.
27961 (cbranchqi4_real): Likewise. Allow saddr,#imm.
27962 (cbranchhi4_real): Likewise.
27963 (cbranchhi4_real_inverted): Likewise.
27964 (cbranchsi4_real_lt): Likewise.
27965 (cbranchsi4_real_ge): Likewise.
27966 (cbranchsi4_real_ge): Likewise.
27967 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
27968 (sub<mode>3_virt): Likewise.
27969 (cbranchqi4_virt): Likewise.
27970 (cbranchhi4_virt): Likewise.
27971 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
27972 always use '[reg+imm]' even when imm is zero.
27973 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
27974 (rl78_general_operand): New.
27975 (rl78_nonimmediate_operand): New.
27976 (rl78_nonfar_operand): Use them.
27977 (rl78_nonfar_nonimm_operand): Likewise.
27978 (rl78_stack_based_mem): Fix.
27979 * config/rl78/constraints.md (Ibqi): New.
27984 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
27985 (iorqi3): Likewise.
27986 (xorqi3): Likewise.
27987 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
27989 * config/rl78/constrains (Qs8): New constraint.
27990 * config/rl78/rl78.c (rl78_flags_already_set): New function.
27991 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
27992 * config/rl78/rl78-real.md (update_Z): New attribute.
27993 Update patterns to set it.
27994 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
27995 shorter compare and branch sequence can be used.
27996 (cbranchhi4_real): Likewise.
27997 (cbranchhi4_real_inverted): Likewise.
27999 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
28000 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
28002 * config/rl78/rl78.c (rl78_get_name_encoding): New.
28003 (rl78_option_override): Allow -mes0 only if C.
28004 (characterize_address): Support subregs of symbol_refs.
28005 (rl78_addr_space_address_mode): Move. Add __near.
28006 (rl78_far_p): Likewise.
28007 (rl78_addr_space_pointer_mode): Likewise.
28008 (rl78_as_legitimate_address): Likewise.
28009 (rl78_addr_space_subset_p): Likewise.
28010 (rl78_addr_space_convert): Likewise.
28011 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
28012 symbols with -mes0.
28013 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
28015 (rl78_alloc_physical_registers_op1): Change logic to prefer
28016 symbol[BC] addressing.
28017 (frodata_section): New.
28018 (rl78_asm_init_sections): Initialize it.
28019 (rl78_select_section): Put __far readonly symbols in .frodata.
28020 (rl78_make_type_far): New.
28021 (rl78_insert_attributes): Force all readonly symbols to be
28023 (rl78_asm_out_integer): New.
28024 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
28025 * config/rl78/rl78.opt (-mes0): New.
28027 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
28028 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
28029 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
28030 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
28031 (rl78_saddr_p): New.
28032 (rl78_output_aligned_common): New.
28033 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
28034 (rl78_handle_saddr_attribute): New.
28035 (rl78_handle_naked_attribute): New.
28036 (rl78_attribute_table): Add saddr.
28037 (rl78_print_operand_1): Don't print '!' on saddr operands.
28038 (rl78_print_operand_1): Strip encodings.
28040 (rl78_strip_name_encoding): New.
28041 (rl78_attrlist_to_encoding): New.
28042 (rl78_encode_section_info): New.
28043 (rl78_asm_init_sections): New.
28044 (rl78_select_section): New.
28045 (rl78_output_labelref): New.
28046 (rl78_output_aligned_common): New.
28047 (rl78_asm_out_integer): New.
28048 (rl78_asm_ctor_dtor): New.
28049 (rl78_asm_constructor): New.
28050 (rl78_asm_destructor): New.
28052 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
28053 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
28054 (transcode_memory_rtx): Update.
28055 (rl78_expand_epilogue): Use A_REG instead of 0.
28057 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28059 * config/arm/arm-protos.h (struct tune_params): New field
28060 sched_autopref_queue_depth.
28061 * config/arm/arm.c (sched-int.h): Include header.
28062 (arm_first_cycle_multipass_dfa_lookahead_guard,)
28063 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
28064 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
28065 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
28066 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
28067 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
28068 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
28069 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
28070 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
28071 * config/arm/t-arm (arm.o): Update.
28072 * haifa-sched.c (update_insn_after_change): Update.
28073 (rank_for_schedule): Use auto-prefetcher model, if requested.
28074 (autopref_multipass_init): New static function.
28075 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
28076 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
28077 variable for debug dumps.
28078 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
28079 (autopref_multipass_dfa_lookahead_guard): New global function that
28080 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
28081 (init_h_i_d): Update.
28082 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
28083 * sched-int.h (enum autopref_multipass_data_status): New const enum.
28084 (autopref_multipass_data_): Structure for auto-prefetcher data.
28085 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
28086 (struct _haifa_insn_data:autopref_multipass_data): New field.
28087 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
28088 (autopref_multipass_dfa_lookahead_guard): Declare.
28090 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28092 * rtlanal.c (get_base_term): Handle SCRATCH.
28094 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28096 * config/aarch64/aarch64.c
28097 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
28098 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
28100 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
28101 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
28103 2015-01-17 Alan Modra <amodra@gmail.com>
28105 * cprop.c (do_local_cprop): Disallow replacement of fixed
28108 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28111 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
28114 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
28116 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
28117 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
28119 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28121 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
28122 * config/arm/thumb1.md: ... Here.
28124 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28126 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
28127 TImode for TARGET_32BIT.
28129 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28131 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
28132 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
28134 (rs6000_abi_word_mode): New function.
28136 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28138 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
28139 instead of UNITS_PER_WORD to describe the size of stack slots.
28141 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28143 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
28144 as rs6000_promote_function_mode. Move comment to there.
28145 (rs6000_promote_function_mode): New function.
28147 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28149 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
28150 -mpowerpc64 is active.
28152 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
28154 PR middle-end/64353
28155 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
28158 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
28160 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
28161 introduced in revision 219724.
28163 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28164 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28167 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
28168 destination is not a GP reg.
28169 (*movdi_aarch64): Likewise.
28171 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
28174 * config/rs6000/default64.h: Revert ISA change.
28176 2015-01-16 Richard Biener <rguenther@suse.de>
28178 PR middle-end/64614
28179 * tree-ssa-uninit.c: Include tree-cfg.h.
28180 (MAX_SWITCH_CASES): New define.
28181 (convert_control_dep_chain_into_preds): Handle switch statements.
28182 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
28183 (normalize_one_pred_1): Do not split bit-manipulations.
28186 2015-01-16 Richard Biener <rguenther@suse.de>
28188 PR tree-optimization/64568
28189 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
28190 complex load rewriting for TARGET_MEM_REFs.
28192 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
28194 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
28196 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
28199 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
28201 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
28202 (aarch64_lra_p): Remove.
28204 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
28207 * ipa-chkp.h (chkp_instrumentable_p): New.
28208 * ipa-chkp.c: Include tree-inline.h.
28209 (chkp_instrumentable_p): New.
28210 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
28211 Fix processing of not instrumentable functions.
28212 (chkp_versioning): Use chkp_instrumentable_p. Warn about
28213 not instrumentable functions.
28214 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
28215 chkp_instrumentable_p.
28216 * tree-inline.h (copy_forbidden): New.
28217 * tree-inline.c (copy_forbidden): Not static anymore.
28219 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28221 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
28224 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
28226 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
28227 type OP_OUT to OP_INOUT.
28229 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
28231 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
28232 (high x) y) to y if x and y have the same base.
28234 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
28236 * config/arm/cortex-a57.md: New.
28237 * config/aarch64/aarch64.md: Include it.
28238 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
28239 * config/aarch64/aarch64-tune.md: Regenerate.
28241 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
28244 * ccmp.c (expand_ccmp_next): New function.
28245 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
28246 and compare insn sequence.
28247 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
28248 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
28249 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
28250 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
28251 (*ccmp_ior): Changed to ccmp_ior<mode>.
28252 (cmp<mode>): New pattern.
28253 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
28255 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
28257 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
28259 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
28260 _mm256_bsrli_epi128): New.
28261 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
28263 2015-01-15 Jiong Wang <jiong.wang@arm.com>
28265 * expmed.c (store_bit_field_using_insv): Improve warning message.
28266 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
28268 2015-01-15 Jiong Wang <jiong.wang@arm.com>
28270 PR rtl-optimization/64011
28271 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
28272 there is partial overflow.
28274 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28276 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
28278 (nds32_expand_epilogue_v3pop): Likewise.
28279 * config/nds32/nds32.md (sibcall): Define this for sibling call
28281 (sibcall_register): Likewise.
28282 (sibcall_immediate): Likewise.
28283 (sibcall_value): Likewise.
28284 (sibcall_value_register): Likewise.
28285 (sibcall_value_immediate): Likewise.
28286 (sibcall_epilogue): Likewise.
28287 (epilogue): Pass false to indicate this is not a sibcall epilogue.
28288 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
28289 (nds32_expand_epilogue_v3pop): Likewise.
28291 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28293 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
28294 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
28295 (return_internal): New.
28296 (return): Define this named pattern.
28297 (simple_return): Define this named pattern.
28298 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
28299 pattern instead of unspec_volatile_func_return.
28300 (nds32_expand_epilogue_v3pop): Likewise.
28301 (nds32_can_use_return_insn): New function.
28303 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28305 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
28306 * config/nds32/nds32.md (pop25return): New.
28307 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
28308 pop25return pattern.
28310 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28312 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
28313 -mforbid-fp-as-gp, and -mex9 options.
28315 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28317 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
28318 remove -mgp-direct option.
28320 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28322 * doc/invoke.texi (--param early-inlining-insns): Update default value.
28323 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
28325 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28327 * ipa-inline.c (inline_small_functions): Work around hints
28330 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
28333 * doc/invoke.texi (Option Summary): Document new Nios II
28335 (Nios II Options): Likewise.
28336 * config/nios2/nios2.opt: Add -mgpopt= option support.
28337 Modify existing -mgpopt and -mno-gpopt options to be aliases.
28338 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
28339 * config/nios2/nios2.c (nios2_option_override): Adjust
28340 -mgpopt defaulting.
28341 (nios2_in_small_data_p): Return true for explicit small data
28342 sections even with -G0.
28343 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
28346 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28349 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
28351 (inline_call): Fix removal of aliases.
28353 2015-01-15 Jakub Jelinek <jakub@redhat.com>
28355 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
28356 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
28357 * opts.c (common_handle_option): Add -fsanitize=vptr.
28358 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
28359 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
28360 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
28361 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
28362 (ubsan_expand_vptr_ifn): New prototype.
28363 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
28364 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
28365 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
28366 expand_LOOP_VECTORIZED): Make argument nameless, remove
28368 (expand_UBSAN_VPTR): New function.
28369 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
28371 (UBSAN_VPTR): New internal function.
28372 * sanopt.c (tree_map_traits): Renamed to ...
28373 (sanopt_tree_map_traits): ... this.
28374 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
28375 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
28376 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
28377 (maybe_optimize_ubsan_vptr_ifn): New function.
28378 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
28379 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
28381 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
28382 internal calls like pure functions for aliasing, even when they
28383 have other side-effects that prevent making them ECF_PURE.
28384 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
28385 (ubsan_expand_vptr_ifn): New function.
28387 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
28389 PR rtl-optimization/64110
28390 * stmt.c (parse_output_constraint): Process '^' and '$'.
28391 (parse_input_constraint): Ditto.
28392 * lra-constraints.c (process_alt_operands): Process the new
28394 * ira-costs.c (record_reg_classes): Process the new constraint
28396 * genoutput.c (indep_constraints): Add '^' and '$'.
28397 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
28398 * doc/md.texi: Add description of the new constraints.
28400 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
28401 Bernd Schmidt <bernds@codesourcery.com>
28402 Cesar Philippidis <cesar@codesourcery.com>
28403 James Norris <jnorris@codesourcery.com>
28404 Tom de Vries <tom@codesourcery.com>
28405 Ilmir Usmanov <i.usmanov@samsung.com>
28406 Dmitry Bocharnikov <dmitry.b@samsung.com>
28407 Evgeny Gavrin <e.gavrin@samsung.com>
28408 Jakub Jelinek <jakub@redhat.com>
28410 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
28411 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28412 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28413 New function types.
28414 * builtins.c: Include "gomp-constants.h".
28415 (expand_builtin_acc_on_device): New function.
28416 (expand_builtin, is_inexpensive_builtin): Handle
28417 BUILT_IN_ACC_ON_DEVICE.
28418 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
28420 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
28422 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
28423 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
28424 i386/intelmic-offload.h.
28425 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
28426 to libgomp and its dependencies.
28427 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
28428 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28429 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28430 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28431 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28432 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28433 * doc/generic.texi: Update for OpenACC changes.
28434 * doc/gimple.texi: Likewise.
28435 * doc/invoke.texi: Likewise.
28436 * doc/sourcebuild.texi: Likewise.
28437 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
28438 GF_OMP_FOR_KIND_OACC_LOOP.
28439 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
28440 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
28441 GF_OMP_TARGET_KIND_OACC_UPDATE,
28442 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
28444 * gimple.c: Update comments for OpenACC changes.
28445 * gimple.def: Likewise.
28446 * gimple.h: Likewise.
28447 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
28448 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
28449 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
28450 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
28451 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
28453 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
28454 * gimplify.c: Include "gomp-constants.h".
28455 Update comments for OpenACC changes.
28456 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
28457 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
28458 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
28459 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
28460 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
28461 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
28462 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
28463 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
28464 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
28466 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
28467 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
28468 OMP_CLAUSE_SET_MAP_KIND.
28469 (gimplify_oacc_cache): New function.
28470 (gimplify_omp_for): Handle OACC_LOOP.
28471 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
28473 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
28474 OACC_EXIT_DATA, OACC_UPDATE.
28475 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
28476 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
28477 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
28478 (gimplify_body): Consider flag_openacc next to flag_openmp.
28479 * lto-streamer-out.c: Include "gomp-constants.h".
28480 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
28481 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
28482 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
28483 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
28484 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
28485 (BUILT_IN_ACC_ON_DEVICE): New builtins.
28486 * omp-low.c: Include "gomp-constants.h".
28487 Update comments for OpenACC changes.
28488 (struct omp_context): Add reduction_map, gwv_below, gwv_this
28490 (extract_omp_for_data, use_pointer_for_field, install_var_field)
28491 (new_omp_context, delete_omp_context, scan_sharing_clauses)
28492 (create_omp_child_function, scan_omp_for, scan_omp_target)
28493 (check_omp_nesting_restrictions, lower_reduction_clauses)
28494 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
28495 Update for OpenACC changes.
28496 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
28497 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
28498 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
28499 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
28500 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
28501 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
28503 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
28504 Handle GF_OMP_FOR_KIND_OACC_LOOP.
28505 (expand_omp_target, lower_omp_target): Handle
28506 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
28507 GF_OMP_TARGET_KIND_OACC_UPDATE,
28508 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
28509 GF_OMP_TARGET_KIND_OACC_DATA.
28510 (pass_expand_omp::execute, execute_lower_omp)
28511 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
28513 (offload_symbol_decl): New variable.
28514 (oacc_get_reduction_array_id, oacc_max_threads)
28515 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
28516 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
28517 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
28518 (oacc_gimple_assign, oacc_initialize_reduction_data)
28519 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
28521 (is_targetreg_ctx): Remove function.
28522 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
28523 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
28524 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
28525 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
28526 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
28527 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
28528 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
28529 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
28530 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
28531 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
28532 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
28533 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
28534 * tree-core.h: Update comments for OpenACC changes.
28535 (enum omp_clause_map_kind): Remove.
28536 (struct tree_omp_clause): Change type of map_kind member from enum
28537 omp_clause_map_kind to unsigned char.
28538 * tree-inline.c: Update comments for OpenACC changes.
28539 * tree-nested.c: Likewise. Include "gomp-constants.h".
28540 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
28541 (convert_tramp_reference_stmt, convert_gimple_call): Update for
28542 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
28543 OMP_CLAUSE_SET_MAP_KIND.
28544 * tree-pretty-print.c: Include "gomp-constants.h".
28545 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
28546 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
28547 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
28548 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
28549 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
28550 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
28551 instead of OMP_CLAUSE_MAP_*.
28552 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
28553 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
28554 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
28555 * tree-streamer-in.c: Include "gomp-constants.h".
28556 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
28557 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
28558 * tree-streamer-out.c: Include "gomp-constants.h".
28559 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
28561 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
28562 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
28563 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
28564 * tree.c (omp_clause_num_ops): Update accordingly.
28565 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
28567 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
28568 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
28569 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
28570 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
28571 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
28572 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
28573 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
28574 (OMP_CLAUSE_SET_MAP_KIND): New macro.
28575 * varpool.c (varpool_node::get_create): Consider flag_openacc next
28577 * config/i386/intelmic-offload.h: New file.
28578 * config/nvptx/offload.h: Likewise.
28580 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28582 * explow.h: Remove duplicate contents.
28583 * dojump.h: Likewise.
28585 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
28587 * arm.c (arm_xgene_tune): Add default initializer for instruction
28590 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28594 * ipa.c (symbol_table::remove_unreachable_nodes):
28595 Do not put abstract origins into boundary.
28597 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
28599 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
28600 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
28602 2015-01-15 Steve Ellcey <sellcey@mips.com>
28604 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
28605 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
28606 builtins.def, and chkp-builtins.def.
28608 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
28610 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
28613 2015-01-15 Richard Biener <rguenther@suse.de>
28615 PR tree-optimization/61743
28616 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
28617 information on PHIs for some simple cases.
28619 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28621 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
28623 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
28624 * config/arm/arm-cores.def (xgene1): New entry.
28625 * config/arm/arm-tables.opt: Regenerate.
28626 * config/arm/arm-tune.md: Regenerate.
28627 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
28629 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
28631 * tree-if-conv.c: Include hash-map.h.
28632 (aggressive_if_conv): New variable.
28633 (fold_build_cond_expr): Add simplification of non-zero condition.
28634 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
28635 destination block is not always executed.
28636 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
28637 than two predecessors if AGGRESSIVE_IF_CONV is true.
28638 (if_convertible_stmt_p): Fix commentary.
28639 (all_preds_critical_p): New function.
28640 (has_pred_critical_p): New function.
28641 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
28642 BB can have more than two predecessors and all incoming edges can be
28644 (predicate_bbs): Skip predication for loop exit block, use build2_loc
28645 to compute predicate for true edge.
28646 (find_phi_replacement_condition): Delete this function.
28647 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
28648 Allow interchange PHI arguments if EXTENDED is false.
28649 Change check that block containing reduction statement candidate
28650 is predecessor of phi-block since phi may have more than two arguments.
28651 (phi_args_hash_traits): New helper structure.
28652 (struct phi_args_hash_traits): New type.
28653 (phi_args_hash_traits::hash): New function.
28654 (phi_args_hash_traits::equal_keys): New function.
28655 (gen_phi_arg_condition): New function.
28656 (predicate_scalar_phi): Add handling of phi nodes with more than two
28657 arguments, delete COND and TRUE_BB arguments, insert body of
28658 find_phi_replacement_condition to predicate ordinary phi nodes.
28659 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
28660 delete call of find_phi_replacement_condition and invoke
28661 predicate_scalar_phi with two arguments.
28662 (insert_gimplified_predicates): Add assert that non-predicated block
28663 don't have statements to insert.
28664 (ifcvt_split_critical_edges): New function.
28665 (ifcvt_split_def_stmt): Likewise.
28666 (ifcvt_walk_pattern_tree): Likewise.
28667 (stmt_is_root_of_bool_pattern): Likewise.
28668 (ifcvt_repair_bool_pattern): Likewise.
28669 (ifcvt_local_dce): Likewise.
28670 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
28671 is copy of inner or outer loop force_vectorize field, invoke
28672 ifcvt_split_critical_edges, ifcvt_local_dce and
28673 ifcvt_repair_bool_pattern for aggressive if-conversion.
28675 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
28677 * config/aarch64/aarch64.md: Include xgene1.md.
28678 * config/aarch64/xgene1.md: New file.
28680 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28682 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
28683 xgene1 (APM XGene-1) core definition.
28684 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
28685 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
28686 * doc/invoke.texi: Document -mcpu=xgene1.
28688 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28690 * dojump.h: New header file.
28691 * explow.h: Likewise.
28692 * expr.h: Remove includes.
28693 Move expmed.c prototypes to expmed.h.
28694 Move dojump.c prototypes to dojump.h.
28695 Move alias.c prototypes to alias.h.
28696 Move explow.c prototypes to explow.h.
28697 Move calls.c prototypes to calls.h.
28698 Move emit-rtl.c prototypes to emit-rtl.h.
28699 Move varasm.c prototypes to varasm.h.
28700 Move stmt.c prototypes to stmt.h.
28701 (saved_pending_stack_adjust): Move to dojump.h.
28702 (adjust_address): Move to explow.h.
28703 (adjust_address_nv): Move to emit-rtl.h.
28704 (adjust_bitfield_address): Likewise.
28705 (adjust_bitfield_address_size): Likewise.
28706 (adjust_bitfield_address_nv): Likewise.
28707 (adjust_automodify_address_nv): Likewise.
28708 * explow.c (expr_size): Move to expr.c.
28709 (int_expr_size): Likewise.
28710 (tree_expr_size): Likewise.
28711 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28712 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28713 * genemit.c (main): Generate includes statistics.h, real.h,
28714 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
28716 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
28717 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
28718 explow.h, emit-rtl.h, stmt.h.
28719 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
28720 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
28721 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
28722 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
28723 emit-rtl.h, varasm.h, stmt.h.
28724 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
28725 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
28726 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
28727 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
28728 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
28729 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
28730 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
28731 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
28732 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
28733 tm.h tree.h varasm.h vec.h wide-int.h.
28734 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28735 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28736 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
28737 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
28738 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
28739 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
28740 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
28741 * loop-iv.c: Likewise.
28742 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
28743 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
28744 statistics.h stmt.h tree.h varasm.h wide-int.h.
28745 * lra-constraints.c: Likewise.
28746 * lra-eliminations.c: Likewise.
28747 * lra-lives.c: Likewise.
28748 * lra-remat.c: Likewise.
28749 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28750 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
28751 statistics.h stmt.h tree.h varasm.h wide-int.h.
28752 * hw-doloop.c: Likewise.
28753 * ira-color.c: Likewise.
28754 * ira-emit.c: Likewise.
28755 * loop-doloop.c: Likewise.
28756 * loop-invariant.c: Likewise.
28757 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28758 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
28759 statistics.h stmt.h tree.h varasm.h wide-int.h.
28760 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
28761 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
28762 statistics.h stmt.h tree.h varasm.h wide-int.h.
28763 * combine-stack-adj.c: Likewise.
28766 * ifcvt.c: Likewise.
28767 * ira-costs.c: Likewise.
28768 * jump.c: Likewise.
28769 * lra-coalesce.c: Likewise.
28770 * lra-spills.c: Likewise.
28771 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28772 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
28773 stmt.h varasm.h wide-int.h.
28774 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28775 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28777 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
28778 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
28779 statistics.h stmt.h varasm.h wide-int.h.
28780 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
28781 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
28782 varasm.h wide-int.h.
28783 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
28784 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28785 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
28786 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
28787 statistics.h stmt.h.
28788 * config/tilepro/tilepro.c: Likewise.
28789 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
28790 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
28791 * config/pdp11/pdp11.c: Likewise.
28792 * config/xtensa/xtensa.c: Likewise.
28793 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
28794 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28796 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28797 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28798 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
28799 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28800 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28801 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
28802 * rtl-chkp.c: Likewise.
28803 * tree-chkp-opt.c: Likewise.
28804 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
28805 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28806 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
28807 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28808 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28809 statistics.h stmt.h.
28810 * tree-vect-data-refs.c: Likewise.
28811 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
28812 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28813 rtl.h statistics.h stmt.h varasm.h.
28814 * internal-fn.c: Likewise.
28815 * ipa-icf-gimple.c: Likewise.
28816 * lto-section-out.c: Likewise.
28817 * tree-data-ref.c: Likewise.
28818 * tree-nested.c: Likewise.
28819 * tree-outof-ssa.c: Likewise.
28820 * tree-predcom.c: Likewise.
28821 * tree-pretty-print.c: Likewise.
28822 * tree-scalar-evolution.c: Likewise.
28823 * tree-ssa-strlen.c: Likewise.
28824 * tree-vect-loop.c: Likewise.
28825 * tree-vect-patterns.c: Likewise.
28826 * tree-vect-slp.c: Likewise.
28827 * tree-vect-stmts.c: Likewise.
28828 * tsan.c: Likewise.
28829 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28830 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
28832 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
28833 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28834 statistics.h stmt.h varasm.h.
28835 * loop-unroll.c: Likewise.
28836 * ubsan.c: Likewise.
28837 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
28838 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
28840 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28841 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
28842 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
28843 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28844 statistics.h stmt.h.
28845 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
28846 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28847 statistics.h stmt.h varasm.h.
28848 * gimple-match-head.c: Likewise.
28849 * lto-cgraph.c: Likewise.
28850 * lto-section-in.c: Likewise.
28851 * lto-streamer-in.c: Likewise.
28852 * lto-streamer-out.c: Likewise.
28853 * tree-affine.c: Likewise.
28854 * tree-cfg.c: Likewise.
28855 * tree-cfgcleanup.c: Likewise.
28856 * tree-if-conv.c: Likewise.
28857 * tree-into-ssa.c: Likewise.
28858 * tree-ssa-alias.c: Likewise.
28859 * tree-ssa-copyrename.c: Likewise.
28860 * tree-ssa-dse.c: Likewise.
28861 * tree-ssa-forwprop.c: Likewise.
28862 * tree-ssa-live.c: Likewise.
28863 * tree-ssa-math-opts.c: Likewise.
28864 * tree-ssa-pre.c: Likewise.
28865 * tree-ssa-sccvn.c: Likewise.
28866 * tree-tailcall.c: Likewise.
28867 * tree-vect-generic.c: Likewise.
28868 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28869 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
28870 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28871 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
28872 * varasm.c: Likewise.
28873 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28874 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
28876 * init-regs.c: Likewise.
28878 * omp-low.c: Likewise.
28879 * stack-ptr-mod.c: Likewise.
28880 * tree-ssa-reassoc.c: Likewise.
28881 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28882 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
28884 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28885 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
28886 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28887 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
28888 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28889 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
28890 * tree-ssa-phiopt.c: Likewise.
28891 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28892 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28893 * config/fr30/fr30.c: Likewise.
28894 * config/frv/frv.c: Likewise.
28895 * expr.c: Likewise.
28896 * final.c: Likewise.
28897 * optabs.c: Likewise.
28898 * passes.c: Likewise.
28899 * simplify-rtx.c: Likewise.
28900 * stmt.c: Likewise.
28901 * toplev.c: Likewise.
28902 * var-tracking.c: Likewise.
28903 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28904 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28905 * lower-subreg.c: Likewise.
28906 * postreload-gcse.c: Likewise.
28908 * reginfo.c: Likewise.
28909 * store-motion.c: Likewise.
28910 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28911 fixed-value.h hashtab.h real.h stmt.h varasm.h.
28912 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28913 fixed-value.h hashtab.h statistics.h stmt.h.
28914 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28915 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28916 * except.c: Likewise.
28917 * explow.c: Likewise.
28918 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28919 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
28921 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28922 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
28923 * tree-ssa-structalias.c: Likewise.
28924 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28925 fixed-value.h insn-config.h real.h statistics.h.
28926 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28927 fixed-value.h insn-config.h real.h statistics.h stmt.h.
28928 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28929 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28930 * cfgbuild.c: Likewise.
28931 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28932 fixed-value.h real.h rtl.h statistics.h stmt.h.
28933 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28934 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28935 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28936 fixed-value.h real.h statistics.h stmt.h.
28937 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28938 fixed-value.h real.h statistics.h stmt.h varasm.h.
28939 * cprop.c: Likewise.
28940 * modulo-sched.c: Likewise.
28941 * postreload.c: Likewise.
28942 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28943 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
28944 statistics.h stmt.h varasm.h.
28945 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
28946 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28947 rtl.h statistics.h stmt.h varasm.h.
28948 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
28949 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
28951 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28952 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
28954 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
28955 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
28957 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
28958 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28959 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28960 function.h real.h statistics.h stmt.h varasm.h.
28961 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28962 insn-config.h real.h statistics.h stmt.h.
28963 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28964 statistics.h stmt.h.
28965 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
28966 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
28967 statistics.h stmt.h varasm.h.
28968 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
28969 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
28970 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28971 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
28972 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
28973 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28974 statistics.h stmt.h varasm.h.
28975 * ipa-polymorphic-call.c: Likewise.
28976 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
28977 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28978 statistics.h stmt.h.
28979 * config/c6x/c6x.c: Likewise.
28980 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
28981 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28982 statistics.h stmt.h varasm.h.
28983 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
28984 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
28986 * ipa-split.c: Likewise.
28987 * tree-eh.c: Likewise.
28988 * tree-ssa-dce.c: Likewise.
28989 * tree-ssa-loop-niter.c: Likewise.
28990 * tree-vrp.c: Likewise.
28991 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
28992 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
28994 * config/nds32/nds32-fp-as-gp.c: Likewise.
28995 * config/nds32/nds32-intrinsic.c: Likewise.
28996 * config/nds32/nds32-isr.c: Likewise.
28997 * config/nds32/nds32-md-auxiliary.c: Likewise.
28998 * config/nds32/nds32-memory-manipulation.c: Likewise.
28999 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
29000 * config/nds32/nds32-predicates.c: Likewise.
29001 * config/nds32/nds32.c: Likewise.
29002 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
29003 fixed-value.h hashtab.h real.h statistics.h.
29004 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
29005 fixed-value.h hashtab.h real.h statistics.h stmt.h.
29006 * config/arm/arm.c: Likewise.
29007 * config/avr/avr.c: Likewise.
29008 * config/bfin/bfin.c: Likewise.
29009 * config/h8300/h8300.c: Likewise.
29010 * config/i386/i386.c: Likewise.
29011 * config/ia64/ia64.c: Likewise.
29012 * config/iq2000/iq2000.c: Likewise.
29013 * config/m32c/m32c.c: Likewise.
29014 * config/m32r/m32r.c: Likewise.
29015 * config/m68k/m68k.c: Likewise.
29016 * config/mcore/mcore.c: Likewise.
29017 * config/mep/mep.c: Likewise.
29018 * config/mips/mips.c: Likewise.
29019 * config/mn10300/mn10300.c: Likewise.
29020 * config/moxie/moxie.c: Likewise.
29021 * config/pa/pa.c: Likewise.
29022 * config/rl78/rl78.c: Likewise.
29023 * config/rx/rx.c: Likewise.
29024 * config/s390/s390.c: Likewise.
29025 * config/sh/sh.c: Likewise.
29026 * config/sparc/sparc.c: Likewise.
29027 * config/spu/spu.c: Likewise.
29028 * config/stormy16/stormy16.c: Likewise.
29029 * config/v850/v850.c: Likewise.
29030 * config/vax/vax.c: Likewise.
29031 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
29032 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
29033 * config/msp430/msp430.c: Likewise.
29034 * predict.c: Likewise.
29035 * value-prof.c: Likewise.
29036 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
29037 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
29038 * config/microblaze/microblaze.c: Likewise.
29039 * config/nios2/nios2.c: Likewise.
29040 * config/rs6000/rs6000.c: Likewise.
29041 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
29042 insn-config.h real.h rtl.h statistics.h stmt.h.
29043 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
29044 insn-config.h real.h statistics.h stmt.h.
29045 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
29046 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
29047 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
29048 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
29049 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
29050 fixed-value.h real.h statistics.h stmt.h.
29051 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
29052 fixed-value.h statistics.h stmt.h.
29053 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
29056 2015-01-15 Jakub Jelinek <jakub@redhat.com>
29058 * gengtype.c (create_user_defined_type): Workaround
29059 -Wmaybe-uninitialized false positives.
29060 * cse.c (fold_rtx): Likewise.
29061 * loop-invariant.c (gain_for_invariant): Likewise.
29063 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
29065 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
29066 set the memory attributes in all cases but clear MEM_EXPR if need be.
29068 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
29070 PR tree-optimization/64434
29071 * cfgexpand.c (reorder_operands): New function.
29072 (expand_gimple_basic_block): Insert call of reorder_operands if
29075 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
29077 * config/mips/micromips.md (*swp): Remove explicit parallel.
29078 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
29079 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
29080 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
29081 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
29082 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
29083 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
29084 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
29085 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
29086 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
29087 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
29088 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
29089 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
29090 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
29091 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
29092 (mips_wrdsp): Likewise.
29093 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
29095 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
29096 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
29097 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
29098 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
29099 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
29100 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
29101 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
29102 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
29103 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
29105 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
29107 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
29108 (mips_print_operand): Support 'y' to print exact log2 in decimal
29110 * config/mips/mips.h (ISA_HAS_LSA): New define.
29111 (ISA_HAS_DLSA): Likewise.
29112 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
29113 * config/mips/predicates.md (const_immlsa_operand): New predicate.
29115 2015-01-15 Martin Liska <mliska@suse.cz>
29118 * optc-save-gen.awk: Add support for array types.
29120 2015-01-15 Richard Biener <rguenther@suse.de>
29122 PR middle-end/64365
29123 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
29124 for MEM_REF access functions with the same base can never partially
29127 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
29129 * common.opt: New option -fstack-protector-explicit.
29130 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
29131 (stack_protect_decl_phase): Handle stack_protect attribute for
29132 explicit stack protection requests.
29133 (expand_used_vars): Similarly.
29134 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
29135 * doc/extend.texi: Add documentation for "stack_protect" attribute.
29136 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
29138 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
29141 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
29143 (sh_extending_set_of_reg): New struct.
29144 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
29145 sh_remove_reg_dead_or_unused_notes): New Declarations.
29146 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
29147 sh_find_extending_set_of_reg, sh_split_tst_subregs,
29148 sh_extending_set_of_reg::use_as_extended_reg): New functions.
29149 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
29150 convert to insn_and_split and use new function sh_split_tst_subregs.
29152 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
29154 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
29156 (Optimization Options): Move -fuse-ld documentation to...
29157 (Link Options): ...here.
29159 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
29161 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
29163 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
29164 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
29165 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
29166 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
29167 instead of ZR for the memory operand of LL/SC.
29168 (compare_and_swap_12, sync_add<mode>): Likewise.
29169 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
29170 (sync_new_<optab>_12, sync_nand_12): Likewise.
29171 (sync_old_nand_12, sync_new_nand_12): Likewise.
29172 (sync_sub<mode>, sync_old_add<mode>): Likewise.
29173 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
29174 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
29175 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
29176 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
29177 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
29178 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
29179 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
29180 * doc/md.texi (ZC): Update description.
29182 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
29184 * builtins.c (expand_builtin_atomic_exchange): Remove error when
29185 memory model is CONSUME.
29186 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
29187 expand_builtin_atomic_store): Change invalid memory model errors to
29189 (expand_builtin_atomic_clear): Change invalid model errors to warnings
29190 and issue warning for CONSUME.
29192 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
29194 * lto-cgraph: Update function comments for
29195 lto_symtab_encoder_encode_*.
29197 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
29199 * Makefile.in (site.exp): Do not set ENABLE_LTO.
29201 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
29203 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
29204 * lto-cgraph.c (select_what_to_stream): Remove argument, use
29205 lto_stream_offload_p instead.
29206 * lto-streamer.h (select_what_to_stream): Remove argument.
29207 * passes.c (ipa_write_summaries): Likewise.
29208 * tree-pass.h (ipa_write_summaries): Likewise.
29210 2015-01-14 Richard Biener <rguenther@suse.de>
29212 PR tree-optimization/59354
29213 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
29214 groups larger than the slp group size as having gaps.
29216 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
29218 PR middle-end/59448
29219 * builtins.c (get_memmodel): Promote consume to acquire always.
29221 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
29224 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
29227 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
29230 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
29232 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
29233 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
29234 AVX512VBMI, as it implies AVX512BW.
29236 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
29239 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
29240 (vec_unpacks_hi_v16sf): Ditto.
29242 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29244 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
29247 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29249 * doc/invoke.texi (mapcs): Mention deprecation.
29250 (mapcs-frame): Likewise.
29252 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
29255 * config/arm/arm.c (callee_saved_reg_p): Define.
29256 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
29257 register is callee saved instead of !call_used_regs[reg].
29258 (thumb1_compute_save_reg_mask): Likewise.
29260 2015-01-14 Hale Wang <hale.wang@arm.com>
29262 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
29265 2015-01-14 Richard Biener <rguenther@suse.de>
29268 * tree-inline.c (insert_debug_decl_map): Check destination
29269 function MAY_HAVE_DEBUG_STMTS.
29270 (insert_init_debug_bind): Likewise.
29271 (insert_init_stmt): Remove redundant check.
29272 (remap_gimple_stmt): Drop debug stmts if the destination
29273 function has var-tracking assignments disabled.
29275 2015-01-14 Martin Liska <mliska@suse.cz>
29277 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
29278 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
29280 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29283 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
29284 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
29286 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
29288 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
29289 level from an ARCH; do not inject the default.
29290 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
29291 MIPS_ISA_LEVEL_SPEC.
29292 (MIPS_ISA_NAN2008_SPEC): Update comment.
29293 (BASE_DRIVER_SELF_SPECS): Likewise.
29294 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
29295 MIPS_DEFAULT_ISA_LEVEL_SPEC.
29296 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
29297 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
29298 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
29300 2015-01-14 Richard Biener <rguenther@suse.de>
29302 PR tree-optimization/64493
29303 PR tree-optimization/64495
29304 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
29305 assign the proper vectorized PHI to the inner loop exit PHIs.
29307 2015-01-14 Joey Ye <joey.ye@arm.com>
29309 * config/arm/arm.c (arm_compute_save_reg_mask):
29310 Do not save lr in case of tail call.
29311 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
29313 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
29315 * tree-vrp.c (check_array_ref): Emit more warnings
29316 for warn_array_bounds >= 2.
29317 * common.opt: New option -Warray-bounds=.
29318 * doc/invoke.texi: Document -Warray-bounds=.
29320 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
29322 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
29323 (mforbid-fp-as-gp): Remove.
29325 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
29326 (nds32_symbol_load_store_p): Remove.
29327 (nds32_fp_as_gp_check_available): Clean up implementation.
29328 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
29330 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
29331 fp-as-gp and ex9 cases.
29333 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29335 * tree-profile.c (init_ic_make_global_vars): Drop workaround
29336 for bintuils bug 14342.
29337 (init_ic_make_global_vars): Likewise.
29338 (gimple_init_edge_profiler): Likewise.
29339 (gimple_gen_ic_func_profiler): Likewise.
29341 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29343 * ipa-inline.c (inline_small_functions): Swap the operands in
29346 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29349 * ipa-inline-analysis.c (node_growth_cache): Remove.
29350 (initialize_growth_caches): Do not initialize it.
29351 (free_growth_caches): Do not free it.
29352 (do_estimate_growth): Rename to ...
29353 (estimate_growth): ... this one; drop growth cache code.
29354 (growth_likely_positive): Always go the heuristics way.
29355 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
29356 (reset_edge_caches): Do not reset node growth.
29357 (heap_edge_removal_hook): Do not maintain cache.
29358 (inline_small_functions): Likewise; strenghten sanity check.
29359 (ipa_inline): Do not maintain caches.
29360 * ipa-inline.h (node_growth_cache): Remove.
29361 (do_estimate_growth): Remove to ...
29362 (estimate_growth): this one; remove inline version.
29363 (reset_node_growth_cache): Remove.
29365 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29368 * ipa-inline.c (inline_small_functions): Update callee keys after
29369 resolving speculation
29370 (inline_small_functions): Always check monotonicity of the queue.
29372 2015-01-13 Marek Polacek <polacek@redhat.com>
29374 PR middle-end/64391
29375 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
29377 2015-01-13 Jakub Jelinek <jakub@redhat.com>
29379 PR rtl-optimization/64286
29380 * ree.c (combine_reaching_defs): Move part of comment earlier,
29381 remove !SCALAR_INT_MODE_P check.
29382 (add_removable_extension): Don't add vector mode
29383 extensions if all uses of the source register aren't the same
29386 2015-01-13 Renlin Li <renlin.li@arm.com>
29388 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
29389 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
29391 2015-01-13 Martin Liska <mliska@suse.cz>
29393 * ipa-icf.c (sem_function::equals_private): Call new functions
29394 cl_target_option_print_diff and cl_optimization_print_diff.
29395 * optc-save-gen.awk (cl_target_option_print_diff): New function.
29396 (cl_optimization_print_diff): Likewise.
29397 * opth-gen.awk: Likewise.
29399 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
29401 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
29402 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
29403 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
29404 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
29405 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
29406 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
29408 2015-01-13 Andrew Pinski <apinski@cavium.com>
29410 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
29411 instead of src mode.
29413 2015-01-13 Richard Biener <rguenther@suse.de>
29416 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
29419 2015-01-13 Andrew Pinski <apinski@cavium.com>
29421 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
29423 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
29425 2015-01-13 Jakub Jelinek <jakub@redhat.com>
29427 PR middle-end/63974
29428 * cfgexpand.c (expand_computed_goto): Don't call
29429 convert_memory_address here.
29431 2015-01-13 Richard Biener <rguenther@suse.de>
29433 PR tree-optimization/64406
29434 * tree-loop-distibution.c (pass_loop_distribution::execute):
29435 Reset the SCEV hashtable if we distributed anything.
29437 2015-01-13 Richard Biener <rguenther@suse.de>
29439 PR tree-optimization/64404
29440 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
29441 SLP types for CSEd loads.
29443 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29445 PR tree-optimization/64436
29446 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
29447 merge of two symbolic numbers for a bitwise OR to ...
29448 (perform_symbolic_merge): This. Also fix computation of the range and
29449 end of the symbolic number corresponding to the result of a bitwise OR.
29451 2015-01-13 Richard Biener <rguenther@suse.de>
29453 PR tree-optimization/64568
29454 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
29455 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
29457 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29459 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
29460 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
29462 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29464 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
29465 target-specific symbol_ref flag.
29466 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
29467 resides in rodata section.
29468 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
29469 (nds32_encode_section_info): New function.
29471 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29473 * config/nds32/nds32.md (call): Use pseudo instruction bal which
29474 clobbers TA_REGNUM if large code model is specified.
29475 (call_register): Likewise.
29476 (call_immediate): Likewise.
29477 (call_value): Likewise.
29478 (call_value_register): Likewise.
29479 (call_value_immediate): Likewise.
29481 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29483 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
29484 (TARGET_CMODEL_MEDIUM): New macro.
29485 (TARGET_CMODEL_LARGE): New macro.
29486 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
29487 code model setting in assembly code.
29489 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29491 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29492 Remove MASK_GP_DIRECT flag.
29493 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
29494 one of the multilib default options.
29495 * config/nds32/nds32.opt (mgp-direct): Remove.
29496 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
29497 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
29499 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29501 * config/nds32/nds32.opt (mcmodel): Add new option.
29502 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
29503 to describe code model.
29505 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
29508 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
29510 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
29512 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
29513 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
29514 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
29515 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
29516 __builtin_sh_set_fpscr.
29518 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
29520 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
29521 after a funtion name just to indicate it is a function.
29522 ([-fsanitize-undefined-trap-on-error]): Likewise.
29523 ([-fdbg-cnt=]): Likewise.
29524 ([-mmemcpy]): Likewise.
29525 ([-mflush-func]): Likewise.
29526 ([-msynci]): Likewise.
29528 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
29530 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
29533 2015-01-12 Jakub Jelinek <jakub@redhat.com>
29535 PR tree-optimization/64563
29536 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
29537 instead of != VR_VARYING.
29540 * config/i386/i386.c (ix86_expand_prologue): Add
29541 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
29543 PR tree-optimization/64454
29544 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
29545 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
29546 for signed or [0, op1 - 1] for unsigned modulo.
29547 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
29548 even if op1 does not satisfy integer_pow2p.
29551 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
29553 2015-01-12 Jeff Law <law@redhat.com>
29556 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
29557 (trunchiqi2, truncsihi2): Similarly.
29559 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
29560 rather than calling F.
29562 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
29564 * tsan.c (instrument_expr): Use force_gimple_operand.
29565 Use may_be_nonaddressable_p instead of is_gimple_addressable.
29567 2015-01-12 Richard Biener <rguenther@suse.de>
29569 PR tree-optimization/64530
29570 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
29573 2015-01-12 Richard Biener <rguenther@suse.de>
29575 PR middle-end/64357
29576 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
29579 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29581 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
29582 Cortex-A17 tuning parameters.
29583 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
29585 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29587 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
29588 * config/arm/arm.c (arm_macro_fusion_p): New function.
29589 (arm_macro_fusion_pair_p): Likewise.
29590 (TARGET_SCHED_MACRO_FUSION_P): Define.
29591 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
29592 (ARM_FUSE_NOTHING): Likewise.
29593 (ARM_FUSE_MOVW_MOVT): Likewise.
29594 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
29595 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
29596 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
29597 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
29598 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
29599 arm_cortex_a5_tune): Specify fuseable_ops value.
29601 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
29604 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
29605 test for PIE with copy reloc.
29606 * configure: Regenerated.
29608 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29610 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
29612 (arm_tls_descseq_addr): Likewise.
29613 (arm_gen_movmemqi): Likewise.
29614 (arm_expand_epilogue_apcs_frame): Likewise.
29615 (arm_expand_epilogue): Likewise.
29616 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
29619 2015-01-12 Martin Liska <mliska@suse.cz>
29622 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
29623 volatility for correct operands.
29625 2015-01-12 Martin Liska <mliska@suse.cz>
29627 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
29628 indication that a function is not leaf.
29629 (sem_function::compare_polymorphic_p): Likewise.
29631 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29633 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
29634 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
29635 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
29636 fold-const.h, tree-check.h.
29638 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29642 * ipa-inline.c (compute_uninlined_call_time,
29643 compute_inlined_call_time): Use counts for extra precision when
29645 (big_speedup_p): Fix formating.
29646 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
29647 (relative_time_benefit): Remove.
29648 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
29649 merge guessed and read profile paths.
29650 (inline_small_functions): Count only !optimize_size functions into
29651 initial size; be more lax about sanity check when profile is used;
29652 be sure to update inlined function profile when profile is read.
29654 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29657 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
29658 cost when edge becomes direct.
29659 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
29660 is resolved or when introducing new speculation.
29662 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
29666 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
29667 '||' to fix typo issue.
29669 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
29670 accept and return NULL.
29672 2015-01-12 Martin Liska <mliska@suse.cz>
29674 * cgraph.c (cgraph_edge::remove_callee): Move function to header
29675 file for being inlined.
29676 (cgraph_set_edge_callee): Delete.
29677 (cgraph_edge::redirect_callee): Move function to header file
29679 (cgraph_edge::make_direct): Use new function.
29680 (cgraph_edge::dump_edge_flags): New function created from
29681 static dump_edge_flags function.
29682 (cgraph_node::dump): Use new function.
29683 (cgraph_edge::verify_count_and_frequency): New function created
29684 from verify_edge_count_and_frequency.
29685 (cgraph_edge::verify_corresponds_to_fndecl): New function created
29686 from verify_edge_corresponds_to_fndecl.
29687 (verify_edge_corresponds_to_fndecl): Delete.
29688 (cgraph_node::verify_node): Use new function.
29689 * cgraph.h (cgraph_edge::set_callee): New function.
29690 (cgraph_edge::dump_edge_flags): Likewise.
29691 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
29693 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
29695 * ipa-utils.c (estimate_function_body_sizes): Do not
29696 free node params when called late with early=true.
29698 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
29700 * doc/md.texi (Instruction Patterns): Rewrite text for
29702 (Example): Likewise.
29704 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
29706 * doc/invoke.texi (Option Summary): Break long lines.
29707 [(-fdiagnostics-color)]: Put long literal in @smallexample
29709 [(-fsanitize-recover)]: Likewise.
29710 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
29711 [(-ffast-math)]: Likewise.
29712 [(--param max-inline-insns-recursive)]: Likewise.
29713 [(--param max-inline-recursive-depth)]: Likewise.
29714 [(-mno-text-section-literals)]: Likewise.
29716 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
29718 * doc/install.texi: Update for libgomp being renamed from "GNU
29719 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
29721 * doc/sourcebuild.texi: Likewise.
29723 2015-01-10 Anthony Green <green@moxielogic.com>
29725 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
29726 mul.x availability for moxiebox configuration.
29728 2015-01-09 Anthony Green <green@moxielogic.com>
29730 * config/moxie/moxie.md: Tabify assembly output.
29732 2015-01-09 Anthony Green <green@moxielogic.com>
29734 * config/moxie/moxie.md (CC_REG): Correct register definition.
29736 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
29738 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
29739 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
29742 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29744 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
29746 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
29747 Jakub Jelinek <jakub@redhat.com>
29749 PR middle-end/64412
29750 * lto-streamer.h (lto_stream_offload_p): New declaration.
29751 * lto-streamer.c (lto_stream_offload_p): New variable.
29752 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
29753 at the same time as section_name_prefix.
29754 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
29755 if lto_stream_offload_p.
29756 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
29757 stream TREE_TARGET_OPTION if lto_stream_offload_p.
29758 (write_ts_function_decl_tree_pointers): Don't
29759 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
29760 * tree-streamer-in.c (unpack_value_fields): Don't stream
29761 TREE_TARGET_OPTION in if ACCEL_COMPILER.
29762 (lto_input_ts_function_decl_tree_pointers): Don't stream
29763 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
29764 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
29765 instead of section_name_prefix string comparisons.
29767 2015-01-09 Jakub Jelinek <jakub@redhat.com>
29769 PR rtl-optimization/64536
29770 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
29773 2015-01-09 Michael Collison <michael.collison@linaro.org>
29775 PR tree-optimization/64322
29776 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
29777 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
29779 2015-01-09 Tom de Vries <tom@codesourcery.com>
29781 PR rtl-optimization/64539
29782 * regcprop.c (kill_clobbered_values): Factor out of ...
29783 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
29784 instead of note_stores with kill_clobbered_value.
29786 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29788 * ginclude/unwind-arm-common.h: Revert previous commit.
29790 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29792 * config.gcc (arm*-*-freebsd*): New configuration.
29793 * config/arm/freebsd.h: New file.
29794 * config.host: Add extra components for arm*-*-freebsd*.
29795 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
29796 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
29798 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29800 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
29802 * config/rs6000/t-rtems: Add e6500 multilibs.
29804 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29806 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
29809 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29811 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
29812 MULTILIB_EXCEPTIONS.
29814 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29816 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
29817 MULTILIB_EXCEPTIONS.
29819 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29821 * config/arm/t-rtems-eabi: Rename to...
29822 * config/arm/t-rtems: ...this.
29823 * config/arm/rtems-eabi.h: Rename to...
29824 * config/arm/rtems.h: ...this.
29825 * config.gcc (arm*-*-rtems*): Reflect changes above.
29827 2015-01-09 Richard Biener <rguenther@suse.de>
29829 PR tree-optimization/64410
29830 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
29832 (execute_update_addresses_taken): Deal with that.
29833 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
29834 loads/stores for complex variables.
29836 2015-01-09 Martin Liska <mliska@suse.cz>
29838 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
29840 (func_checker::compare_memory_operand): New function.
29841 (func_checker::compare_operand): Split case to newly
29843 (func_checker::compare_cst_or_decl): New function.
29844 (func_checker::compare_gimple_call): Identify
29846 (func_checker::compare_gimple_assign): Likewise.
29847 * ipa-icf-gimple.h: New function.
29849 2015-01-09 Martin Liska <mliska@suse.cz>
29852 * sreal.c (sreal::dump): Change unsigned format to signed for
29854 (sreal::to_double): Replace exp2 with scalbln.
29856 2015-01-09 Martin Liska <mliska@suse.cz>
29858 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
29859 * ipa-icf.c (sem_function::equals_private): Add support for target and
29860 (sem_item_optimizer::merge_classes): Remove redundant function
29861 optimization flags comparison.
29862 * tree.h (target_opts_for_fn): New function.
29864 2015-01-09 Tom de Vries <tom@codesourcery.com>
29866 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
29868 2015-01-09 Kito Cheng <kito@0xlab.org>
29870 PR rtl-optimization/64348
29871 * lra-constraints.c (split_reg): Fix caller-save store/restore
29872 instruction generation.
29874 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
29876 PR gcov-profile/61790
29877 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
29878 long long. Fallback to int64_t if host doesn't have long long and
29879 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
29881 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29883 PR tree-optimization/63989
29884 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
29885 from 1000 to 10000.
29886 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
29887 (get_stridx): If we don't have a record for certain SSA_NAME,
29888 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
29889 constant offset, call get_stridx_plus_constant.
29890 (get_stridx_plus_constant): New function.
29891 (zero_length_string): Don't use get_stridx here.
29894 PR middle-end/64388
29895 * dse.c (struct insn_info): Mention frame_read set also
29896 before reload for tail calls on some targets.
29897 (scan_insn): Revert 2014-12-22 change. Set frame_read
29898 also before reload for tail calls if
29899 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
29900 instead of add_non_frame_wild_read for non-const/memset
29901 tail calls after reload.
29903 2015-01-08 Jason Merrill <jason@redhat.com>
29905 * ubsan.c (do_ubsan_in_current_function): New.
29906 (pass_ubsan::gate): Use it.
29907 * ubsan.h: Declare it.
29908 * convert.c (convert_to_integer): Use it.
29910 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29913 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
29914 compare_code when it is unconditionally overwritten afterwards.
29915 Use ix86_reverse_condition instead of reverse_condition. Don't
29916 change code if *reverse_condition* returned UNKNOWN and don't
29917 swap ct/cf and negate diff in that case.
29919 2015-01-08 Mike Stump <mikestump@comcast.net>
29921 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
29922 (pass_tsan_O0::gate): Likewise.
29923 * extend.texi (Function Attributes): Add no_sanitize_thread
29926 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
29928 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
29929 for registering builtins.
29930 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
29931 add -fopenmp to the argv_obstack used when invoking
29932 compile_for_target.
29934 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
29935 add "-m32" or "-m64" to argv_obstack.
29936 (generate_host_descr_file): Likewise, when invoking host_compiler.
29937 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
29940 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29942 * config/sh/sh-mem.cc: Use constant as second operand when emitting
29945 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29948 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
29949 constant load if constant operand fits into I08.
29951 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29954 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
29955 and TREE_THIS_VOLATILE for MEM_REFs.
29956 (build5_stat): Fix up initialization of TREE_READONLY and
29957 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
29959 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
29962 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
29963 of r for the second alternative of the destination operand.
29965 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
29968 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
29970 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29972 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
29974 ([-fivar-visibility], [-fvisibility]): Likewise.
29976 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29978 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
29979 the file where @code, @command, etc is more appropriate.
29981 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
29983 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
29984 of -mrecip= documentation.
29986 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29989 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
29990 correct reload handler if -m32 -mpowerpc64 is used.
29992 2015-01-06 Tom de Vries <tom@codesourcery.com>
29994 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
29996 2015-01-08 Christian Bruel <christian.bruel@st.com>
29999 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
30001 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
30003 PR tree-optimization/63259
30004 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
30005 if optab exists for 16bit byteswap.
30007 2015-01-06 Jakub Jelinek <jakub@redhat.com>
30009 * opts.c (common_handle_option): Add support for
30010 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
30011 * doc/invoke.texi: Document -fno-sanitize=all,
30012 -f{,no-}sanitize-recover=all. Document that
30013 -fsanitize=float-cast-overflow is not enabled
30014 by -fsanitize=undefined. Fix up documentation
30015 of -f{,no-}sanitize-recover.
30017 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
30019 * config.gcc: Add Visium support.
30020 * configure.ac: Likewise.
30021 * configure: Regenerate.
30022 * doc/extend.texi (interrupt attribute): Add Visium.
30023 * doc/invoke.texi: Document Visium options.
30024 * doc/install.texi: Document Visium target.
30025 * doc/md.texi: Document Visium constraints.
30026 * common/config/visium: New directory.
30027 * config/visium: Likewise.
30029 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
30031 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
30032 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
30034 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
30036 * combine.c (combine_validate_cost): Do not count the cost of a
30037 split I2 twice. Do not display it twice in the dump, either.
30039 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
30041 Revert parts of r219199.
30042 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
30044 ([-Wtraditional]): Restore markup on <limits.h>.
30046 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
30049 * doc/invoke.texi: Document -Wsuggest-override.
30051 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
30053 PR rtl-optimization/64287
30054 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
30055 (process_options): Disable flag_ipa_ra if profiling.
30057 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
30059 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
30061 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
30063 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
30064 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
30065 put under #if TARGET_LOOPS guard.
30067 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
30069 * config/i386/i386.c (output_387_binary_op): Use std::swap.
30071 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
30073 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
30074 * rtl.h (refers_to_regno_p): Add overload.
30076 * bt-load.c: Likewise.
30077 * combine.c: Likewise.
30078 * df-scan.c: Likewise.
30079 * sched-deps.c: Likewise.
30080 * config/s390/s390.c: Likewise.
30081 * config/m32r/m32r.c: Likewise.
30082 * config/rs6000/spe.md: Likewise.
30083 * config/rs6000/rs6000.c: Likewise.
30084 * config/pa/pa.c: Likewise.
30085 * config/stormy16/stormy16.c: Likewise.
30086 * config/cris/cris.c: Likewise.
30087 * config/arc/arc.md: Likewise.
30088 * config/arc/arc.c: Likewise.
30089 * config/sh/sh.md: Likewise.
30090 * config/sh/sh.c: Likewise.
30091 * config/frv/frv.c: Likewise.
30093 2015-01-05 Jakub Jelinek <jakub@redhat.com>
30096 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
30097 call as cleanup of the whole body.
30098 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
30099 * tsan.c (replace_func_exit): New function.
30100 (instrument_func_exit): Moved earlier.
30101 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
30102 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
30104 (tsan_pass): Don't call instrument_func_exit.
30105 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
30106 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
30110 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
30111 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
30112 it to libubsan handler instead of EXPR. Fold comparisons earlier,
30113 if the result is integer_zerop, return NULL_TREE.
30114 * convert.c (convert_to_integer): Pass expr as ARG.
30116 PR tree-optimization/64465
30117 * tree-inline.c (redirect_all_calls): During inlining
30118 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
30119 changed the stmt to a non-throwing call.
30121 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
30123 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
30124 etc markup throughout the file.
30126 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
30128 Enable experimental TSAN support for Ada.
30129 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
30131 2015-01-05 Jakub Jelinek <jakub@redhat.com>
30133 PR tree-optimization/64494
30134 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
30135 clear SSA_NAME_ANTI_RANGE_P flag.
30137 2015-01-05 Marek Polacek <polacek@redhat.com>
30139 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
30141 2015-01-05 Jakub Jelinek <jakub@redhat.com>
30143 Update copyright years.
30145 * gcc.c (process_command): Update copyright notice dates.
30146 * gcov-dump.c: Ditto.
30148 * doc/cpp.texi: Bump @copying's copyright year.
30149 * doc/cppinternals.texi: Ditto.
30150 * doc/gcc.texi: Ditto.
30151 * doc/gccint.texi: Ditto.
30152 * doc/gcov.texi: Ditto.
30153 * doc/install.texi: Ditto.
30154 * doc/invoke.texi: Ditto.
30156 * auto-profile.c, auto-profile.h: Fix up Copyright line.
30158 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
30160 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
30162 ([-fvtable-verify], [-fvtv-debug]): Likewise.
30163 ([-Wabi]): Likewise.
30164 ([-fmessage-length]): Likewise.
30165 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
30166 ([-Wno-discarded-qualifiers]): Likewise.
30167 ([-Wnodiscarded-array-qualifiers]): Likewise.
30168 ([-Wno-virtual-move-assign]): Likewise.
30169 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
30170 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
30171 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
30172 ([-fsanitize-undefined-trap-on-error]): Likewise.
30173 ([-floop-interchange]): Likewise.
30174 ([-ftree-coalesce-inlined-vars]): Likewise.
30175 ([-fvect-cost-model]): Likewise.
30176 ([-flto]): Likewise.
30177 ([--param]): Likewise.
30178 (Spec Files): Likewise.
30179 ([-mstrict-align]): Likewise.
30180 ([-mfix-cortex-a53-835769]): Likewise.
30181 ([-march], [-mtune]): Likewise.
30182 ([-mpic-register]): Likewise.
30183 ([-munaligned-access]): Likewise.
30184 ([-msp8]): Likewise.
30185 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
30186 (AVR Built-in Macros): Likewise.
30187 ([-mpreferred-stack-boundary]): Likewise.
30188 ([-mtune-crtl]): Likewise.
30189 ([-mashf]): Likewise.
30190 ([-mmcu=]): Likewise.
30191 ([-minrt]): Likewise.
30192 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
30193 ([-mupper-regs]): Likewise.
30194 ([-matomic-model]): Likewise.
30195 ([-mdiv]): Likewise.
30196 ([-mzdcbranch]): Likewise.
30197 ([-mdisable-callt]): Likewise.
30198 ([-msoft-float]): Likewise.
30199 ([-m8byte-align]): Likewise.
30200 ([-fstack-reuse]): Likewise.
30202 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
30204 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
30205 Fix markup, light copy-editing.
30206 ([-fauto-profile]): Rewrite to fix formatting and content
30209 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
30211 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
30212 Copy-edit description.
30213 ([-fisolate-erroneous-paths-attribute]): Likewise.
30214 * common.opt (fisolate-erroneous-paths-dereference):
30215 Copy-edit description.
30216 (fisolate-erroneous-paths-attribute): Likewise.
30218 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
30220 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
30223 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
30225 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
30226 ([-fvtv-debug]): Likewise.
30227 ([-Wc++-compat]): Likewise.
30228 ([-Wc++11-compat]): Likewise.
30229 ([-Wc++14-compat]): Likewise.
30230 ([-Wno-sized-deallocation]): Likewise.
30231 ([-femit-class-debug-always]): Likewise.
30232 ([-femit-struct-debug-detailed]): Likewise.
30233 ([-fno-keep-inline-dllexport]): Likewise.
30234 ([-fira-algorithm]): Likewise.
30235 ([-fira-region]): Likewise.
30236 ([-flra-remat]): Likewise.
30237 ([-fipa-ra]): Likewise.
30238 ([-fhoist-adjacent-loads]): Likewise.
30239 ([-fisolate-erroneous-paths-dereference]): Likewise.
30240 ([-fisolate-erroneous-paths-attribute]): Likewise.
30241 ([-ftree-switch-conversion]): Likewise.
30242 ([-ftree-tail-merge]): Likewise.
30243 ([-ftree-loop-if-convert]): Likewise.
30244 ([-ftree-loop-if-convert-stores]): Likewise.
30245 ([-ftree-loop-distribution]): Likewise.
30246 ([-ftree-loop-distribute-patterns]): Likewise.
30247 ([-flto-compression-level]): Likewise.
30248 ([-flto-report]): Likewise.
30249 ([-flto-report-wpa]): Likewise.
30250 ([-fuse-linker-plugin]): Likewise.
30251 ([-mfix-cortex-a53-835769]): Likewise.
30252 ([-mno-fix-cortex-a53-835769]): Likewise.
30253 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
30254 explicit listing; add a note to the discussion indicating they
30255 exist. Reorder table to group similar options. Add missing
30256 @opindex entries. Add @need commands throughout the table to
30257 allow it to be split across multiple pages.
30258 ([-m8bit-idiv]): Fix @opindex.
30259 ([-mavx256-split-unaligned-load]): Likewise.
30260 ([-mavx256-split-unaligned-store]): Likewise.
30261 ([-mstack-protector-guard]): Likewise.
30262 ([-mcpu=]): Likewise.
30263 ([-mcpu]): Likewise.
30264 ([-mpointer-size=]): Likewise.
30266 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
30268 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
30269 instead of `m' constraint. Likewise for unnamed movb comparison
30270 patterns using reg_before_reload_operand predicate.
30271 * config/pa/predicates.md (reg_before_reload_operand): Tighten
30272 predicate to reject register index and LO_SUM DLT memory forms
30275 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
30277 * doc/invoke.texi (Option Summary): Fix spelling of
30278 -fdevirtualize-at-ltrans.
30279 ([-fdevirtualize]): Fix markup.
30280 ([-fdevirtualize-speculatively]): Fix typo.
30281 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
30282 implementor-speaky.
30283 * common.opt (fdevirtualize-at-ltrans): Likewise.
30284 * ipa-devirt.c: Fix typos in comments throughout the file.
30285 (ipa_devirt): Fix typos in format strings for dump output.
30287 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
30289 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
30290 discussion of defaults, light copy-editing.
30292 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
30294 * tsan.c (instrument_expr): corrected previous checkin.
30296 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
30298 Instrument bit field and unaligned accesses for TSAN.
30299 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
30300 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
30301 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
30302 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
30303 unaligned memory regions.
30305 2015-01-01 Anthony Green <green@moxielogic.com>
30307 * config/moxie/predicates.md (moxie_general_movsrc_operand):
30308 Restrict move source register offsets to 16 bits.
30310 Copyright (C) 2015 Free Software Foundation, Inc.
30312 Copying and distribution of this file, with or without modification,
30313 are permitted in any medium without royalty provided the copyright
30314 notice and this notice are preserved.