1 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
3 * config/arm/aarch-common-protos.h
4 (aarch_accumulator_forwarding): New.
5 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
6 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
7 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
8 * config/arm/cortex-a53.md: Rewrite.
10 2015-10-01 Richard Biener <rguenther@suse.de>
12 * gimple-match.h (mprts_hook): Declare.
13 * gimple-match.head.c (mprts_hook): Define.
14 (maybe_push_res_to_seq): Use new hook.
15 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
16 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
17 (vn_ssa_aux::has_constants): Remove.
18 * tree-ssa-sccvn.c: Include gimple-match.h.
19 (VN_INFO_GET): Assert we don't re-use SSA names.
20 (vn_get_expr_for): Remove.
21 (expr_has_constants): Likewise.
22 (stmt_has_constants): Likewise.
23 (simplify_binary_expression): Likewise.
24 (simplify_unary_expression): Likewise.
25 (vn_lookup_simplify_result): New hook.
27 (visit_reference_op_call): Likewise.
28 (visit_phi): Likewise.
29 (visit_use): Likewise.
30 (process_scc): Likewise.
31 (init_scc_vn): Likewise.
32 (visit_reference_op_load): Likewise. Use match-and-simplify and
33 a gimple seq for inserted expressions.
34 (try_to_simplify): Remove GENERIC stmt combining code.
35 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
36 * tree-ssa-pre.c (eliminate_insert): Adjust.
37 (eliminate_dom_walker::before_dom_children): Likewise.
39 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
41 * doc/invoke.texi (Optimization Options): Add
42 -freorder-blocks-algorithm=.
43 (Optimize Options) <-O>: Add -freorder-blocks.
44 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
45 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
46 <-freorder-blocks>: Also enabled at levels -O and -Os.
47 <-freorder-blocks-algorithm=>: Document new option.
49 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
51 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
52 with flag_reorder_blocks_algorithm.
53 * common.opt (freorder-blocks-algorithm=): New flag.
54 (reorder_blocks_algorithm): New enum.
55 * flag-types.h (reorder_blocks_algorithm): New enum.
56 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
57 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
59 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
61 * bb-reorder.c: Add intro comment.
62 (reorder_basic_blocks_software_trace_cache): Print a header to
64 (edge_order): New function.
65 (reorder_basic_blocks_simple): New function.
66 (reorder_basic_blocks): Choose between the STC and the simple
67 algorithms (always choose the former).
69 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
71 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
72 function, factored out from ...
73 (reorder_basic_blocks): ... here.
75 2015-10-01 Tom de Vries <tom@codesourcery.com>
77 * tree-cfg.c (dump_function_to_file): Dump function attributes using
78 __attribute__(()) string. Move dumping of function attributes to before
81 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
84 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
85 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
86 based on gold linker version.
87 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
88 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
89 * configure, config.in: Regenerate.
91 2015-10-01 Alan Modra <amodra@gmail.com>
93 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
94 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
95 (rs6000_output_mi_thunk): Likewise.
97 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
99 * config/nvptx/mkoffload.c (process): Change offload data format.
101 2015-09-30 Jeff Law <law@redhat.com>
103 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
104 with constant conditions.
105 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
106 (remove_ctrl_stmt_and_useless_edges): No longer static.
107 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
108 (remove_ctrl_stmt_and_useless_edges): Likewise.
110 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
111 Cesar Philippidis <cesar@codesourcery.com>
113 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
114 (TARGET_GOACC_VALIDATE_DIMS): Override.
115 * target.def (TARGET_GOACC): New target hook prefix.
116 (validate_dims): New hook.
117 * targhooks.h (default_goacc_validate_dims): New.
118 * omp-low.c (oacc_validate_dims): New.
119 (execute_oacc_device_lower): New.
120 (default_goacc_validate_dims): New.
121 (pass_data_oacc_device_lower): New.
122 (pass_oacc_device_lower): New pass.
123 (make_pass_oacc_device_lower): New.
124 * tree-pass.h (make_pass_oacc_device_lower): Declare.
125 * passes.def (pass_oacc_device_lower): Add it.
126 * doc/tm.texi: Rebuilt.
127 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
128 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
130 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
132 PR rtl-optimization/67037
133 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
135 2015-09-30 Bernd Schmidt <bernds@redhat.com>
137 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
138 * passes.c: Include tree-ssanames.h.
139 (execute_function_todo): Flush the pending free SSA_NAMEs after
140 eliminating unreachable basic blocks.
141 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
142 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
143 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
144 (flush_ssanames_freelist): New function.
145 (release_ssaname_fn): Put released names on the queue.
146 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
147 * tree-ssanames.h (flush_ssanames_freelist): Declare.
149 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
151 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
152 (generate_target_descr_file, generate_target_offloadend_file)
153 (generate_host_descr_file, prepare_target_image, main): Pass it
155 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
156 (compile_native, main): Pass it on.
157 * lto-wrapper.c (compile_offload_image): Likewise.
159 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
160 Ilya Verbin <ilya.verbin@intel.com>
161 Andrey Turetskiy <andrey.turetskiy@intel.com>
163 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
164 (prepare_target_image, main): Refactor argv building to use
167 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
169 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
170 * config/spu/spu.c (spu_expand_atomic_op): New function.
171 * config/spu/spu.md (AINT): New mode iterator.
172 (ATOMIC): New code iterator.
173 (atomic_name, atomic_pred): New code predicates.
174 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
175 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
176 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
177 "atomic_<atomic_name>_fetch<mode>"): Likewise.
179 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
181 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
183 (scalar_chain::convert_reg): Likewise.
185 2015-09-30 Richard Biener <rguenther@suse.de>
187 * builtins.c: Add comment that no new simplifications shouldd
190 2015-09-30 Marek Polacek <polacek@redhat.com>
192 PR tree-optimization/67690
193 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
194 reset_flow_sensitive_info_in_bb.
195 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
196 * tree-ssanames.c: Include "gimple-iterator.h".
197 (reset_flow_sensitive_info_in_bb): New function.
198 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
200 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
202 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
203 variable, replacing it with...
204 (offload_abi): ... this new variable. Adjust all users.
205 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
207 2015-09-30 Matthias Klose <doko@ubuntu.com>
209 * configure.ac: Remove extraneous ;;.
210 * configure: Regenerate.
212 2015-09-29 James Bowman <james.bowman@ftdichip.com>
214 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
215 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
216 predicate, disallow register for operand 2.
218 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
220 * graphite-dependences.c (scop_get_dependences): Moved in down
221 in order to be visible to its caller.
222 * graphite-poly.h: Removed compute_deps, and extend_schedule.
224 2015-09-29 Sebastian Pop <s.pop@samsung.com>
225 Aditya Kumar <aditya.k7@samsung.com>
227 PR tree-optimization/67754
228 * graphite-optimize-isl.c (optimize_isl): Call
229 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
231 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
233 * builtins.c (expand_builtin_acc_on_device): Delete.
234 (expand_builtin): Don't call it.
235 (fold_builtin_1): Fold acc_on_device.
237 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
239 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
240 (ix86_nsaved_sseregs): Likewise.
242 2015-09-29 Jeff Law <law@redhat.com>
244 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
245 computation of unused value.
247 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
248 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
249 inline macro expansion.
251 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
253 * config/sh/sh.c (gen_shl_and): Fix undefined left shift
255 (gen_shl_sext): Likewise.
256 * config/sh/sh.md (divsi3): Likewise.
257 (imm->ext_dest_operand splitter): Likewise.
259 2015-09-29 Sebastian Pop <s.pop@samsung.com>
260 Aditya Kumar <aditya.k7@samsung.com>
262 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
263 (nb_data_writes_in_bb): Remove.
265 (split_reduction_stmt): Remove.
266 (is_reduction_operation_p): Remove.
267 (phi_contains_arg): Remove.
268 (follow_ssa_with_commutative_ops): Remove.
269 (detect_commutative_reduction_arg): Remove.
270 (detect_commutative_reduction_assign): Remove.
271 (follow_inital_value_to_phi): Remove.
272 (edge_initial_value_for_loop_phi): Remove.
273 (initial_value_for_loop_phi): Remove.
274 (used_outside_reduction): Remove.
275 (detect_commutative_reduction): Remove.
276 (translate_scalar_reduction_to_array_for_stmt): Remove.
277 (remove_phi): Remove.
278 (dr_indices_valid_in_loop): Remove.
279 (close_phi_written_to_memory): Remove.
280 (translate_scalar_reduction_to_array): Remove.
281 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
282 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
283 (rewrite_commutative_reductions_out_of_ssa): Remove.
284 (build_poly_scop): Remove call to
285 rewrite_commutative_reductions_out_of_ssa.
287 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
289 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
290 Add new insn types for vector load and store pairs.
291 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
292 types "neon_ldp{,_q}".
293 * config/arm/cortex-a57.md (neon_load_c): Add insn types
295 (neon_store_complex): Add insn types "neon_stp{,_q}".
296 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
299 2015-09-29 Jeff Law <law@redhat.com>
301 * config/rx/constraints.md (Int08): Fix undefined left shift
303 (Sint08, Sint16, Sint24): Likewise.
304 * config/rx/rx.c (rx_get_stack_layout): Likewise.
306 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
309 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
310 left shift behaviour.
311 * config/msp430/constraints.md ('L' constraint): Similarly.
312 ('Ys' constraint): Similarly.
314 2015-09-29 Richard Biener <rguenther@suse.de>
316 PR tree-optimization/67170
317 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
318 the translate function pointer parameter to get the
319 bool whether to disambiguate only by reference.
320 (walk_non_aliased_vuses): Likewise.
321 * tree-ssa-alias.c (maybe_skip_until): Adjust.
322 (get_continuation_for_phi_1): Likewise.
323 (get_continuation_for_phi): Likewise.
324 (walk_non_aliased_vuses): Likewise.
325 * tree-ssa-sccvn.c (const_parms): New bitmap.
326 (vn_reference_lookup_3): Adjust for interface change.
327 Disambiguate parameters pointing to readonly memory.
328 (free_scc_vn): Free const_parms.
329 (run_scc_vn): Initialize const_parms from a fn spec attribute.
331 2015-09-29 Richard Biener <rguenther@suse.de>
333 PR tree-optimization/67741
334 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
335 builtin calls with correct signature.
337 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
340 * config/i386/i386.c: Include dbgcnt.h.
341 (has_non_address_hard_reg): New.
342 (convertible_comparison_p): New.
343 (scalar_to_vector_candidate_p): New.
344 (remove_non_convertible_regs): New.
346 (scalar_chain::scalar_chain): New.
347 (scalar_chain::~scalar_chain): New.
348 (scalar_chain::add_to_queue): New.
349 (scalar_chain::mark_dual_mode_def): New.
350 (scalar_chain::analyze_register_chain): New.
351 (scalar_chain::add_insn): New.
352 (scalar_chain::build): New.
353 (scalar_chain::compute_convert_gain): New.
354 (scalar_chain::replace_with_subreg): New.
355 (scalar_chain::replace_with_subreg_in_insn): New.
356 (scalar_chain::emit_conversion_insns): New.
357 (scalar_chain::make_vector_copies): New.
358 (scalar_chain::convert_reg): New.
359 (scalar_chain::convert_op): New.
360 (scalar_chain::convert_insn): New.
361 (scalar_chain::convert): New.
362 (convert_scalars_to_vector): New.
363 (pass_data_stv): New.
365 (make_pass_stv): New.
366 (ix86_option_override): Created and register stv pass.
367 (flag_opts): Add -mstv.
368 (ix86_option_override_internal): Likewise.
369 * config/i386/i386.md (SWIM1248x): New.
370 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
371 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
372 (*anddi3_doubleword): New.
373 (*zext<mode>_doubleword): New.
374 (*zextsi_doubleword): New.
375 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
376 (*<code>di3_doubleword): New.
377 * config/i386/i386.opt (mstv): New.
378 * dbgcnt.def (stv_conversion): New.
380 2015-09-29 Tom de Vries <tom@codesourcery.com>
382 * tree-cfg.c (dump_function_to_file): Dump function attributes.
384 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
387 * config/sh/sh.c (sh_override_options_after_change): New.
388 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
389 (sh_option_override): Move align_loops, align_jumps and
390 align_functions handling into sh_override_options_after_change.
392 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
394 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
395 (nvptx_record_offload_symbol): Record function execution geometry.
396 * config/nvptx/mkoffload.c (process): Include launch geometry in
398 * omp-low.c (oacc_launch_pack): New.
399 (replace_oacc_fn_attrib): New.
400 (set_oacc_fn_attrib): New.
401 (get_oacc_fn_attrib): New.
402 (expand_omp_target): Create keyed varargs for GOACC_parallel call
404 * omp-low.h (get_oacc_fn_attrib): Declare.
405 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
406 (DEF_FUNCTION_TYPE_VAR_11): Delete.
407 * tree.h (OMP_CLAUSE_EXPR): New.
408 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
410 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
411 Sebastian Pop <s.pop@samsung.com>
413 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
415 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
416 Sebastian Pop <s.pop@samsung.com>
418 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
419 * graphite-scop-detection.c (struct sese_l): New type.
420 (get_entry_bb): API for getting entry bb of SESE.
421 (get_exit_bb): API for getting exit bb of SESE.
422 (class debug_printer): New type. Simple printer in debug mode.
423 (trivially_empty_bb_p): New. Return true when BB is empty or
424 contains only debug instructions.
425 (graphite_can_represent_expr): Call scalar_evoution_in_region
426 instead of analyze_scalar_evolution. Pass in scop instead of only
428 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
430 (stmt_simple_for_scop_p): Same.
431 (harmful_stmt_in_bb): Same.
432 (graphite_can_represent_loop): Deleted.
433 (struct scopdet_info): Deleted.
434 (scopdet_basic_block_info): Deleted.
435 (build_scops_1): Deleted.
436 (bb_in_sd_region): Deleted.
437 (find_single_entry_edge): Deleted.
438 (find_single_exit_edge): Deleted.
439 (create_single_entry_edge): Deleted.
440 (sd_region_without_exit): Deleted.
441 (create_single_exit_edge): Deleted.
442 (unmark_exit_edges): Deleted.
443 (mark_exit_edges): Deleted.
444 (create_sese_edges): Deleted.
445 (build_graphite_scops): Deleted.
446 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
447 (build_scops): Use the new scop_builder to build scops.
448 (dot_all_scops_1): Use the new pretty printer. Print loop father
450 (loop_body_is_valid_scop): New. Return true if loop body is a
452 (class scop_builder): New. Builds SCoPs for polyhedral
454 (scop_builder): New constructor.
455 (static sese_l invalid_sese): sese_l with invalid edges.
456 (get_sese): Get an sese (from a loop) if possible, invalid_sese
458 (get_nearest_dom_with_single_entry): Get nearest dominator of a
459 basic_block with single entry. Return NULL if we get to the
460 beginning of a function.
461 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
462 a basic_block with single exit. Return NULL if we get to the
463 beginning of a function.
464 (print_sese): Pretty-print SESE.
465 (merge_sese): Merge two SESEs if possible and return the new SESE.
466 (build_scop_depth): Start building the SCoP within a loop nest.
467 (build_scop_breadth): Start building the SCoP at a single loop
468 depth. Merge adjacent SESEs if valid.
469 (can_represent_loop_1): Returns true if Graphite can represent
470 loop inside SCoP. Helper for can_represent_loop.
471 (can_represent_loop): Returns true if Graphite can represent LOOP
472 and all its nested loops in SCoP.
473 (loop_is_valid_scop): Returns true if LOOP and all its nests
474 constitute a valid SCoP.
475 (region_has_one_loop): Returns true of a region has only one loop.
476 (add_scop): Add SCoP to the list of valid scops. Removes an
477 already existing scop if it intersects with or subsumed by this one.
478 (harmful_stmt_in_region): Returns true if SCoP has any statment
479 which cannot be represented by Graphite.
480 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
481 (remove_subscops): Remove any SCoP from the list of already found
482 SCoPs, if subsumed by S1.
483 (intersects): Return true if region bounded by SCoPs S1 and S2
485 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
486 * graphite.c (print_graphite_scop_statistics):
487 (print_graphite_statistics): Print SCoP info while debugging.
488 (graphite_initialize): Early exit in case number of loops in a
489 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
490 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
492 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
493 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
494 (recompute_all_dominators): Recalculate POST_DOMINATORS.
495 * tree-cfg.c (print_loops): Print the function name while printing
498 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
499 Sebastian Pop <s.pop@samsung.com>
501 PR tree-optimization/67700
502 * graphite-sese-to-poly.c (parameter_index_in_region): Call
503 invariant_in_sese_p_rec.
504 (extract_affine): Same.
505 (rewrite_cross_bb_scalar_deps): Call update_ssa.
506 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
507 * sese.h (invariant_in_sese_p_rec): Declare.
509 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
511 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
513 2015-09-28 Jiong Wang <jiong.wang@arm.com>
516 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
517 Jiong Wang <jiong.wang@arm.com>
519 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
520 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
521 (REG_CLASS_NAMES): Likewise.
522 (REG_CLASS_CONTENTS): Likewise.
523 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
524 (aarch64_register_move_cost): Likewise.
525 (aarch64_load_symref_appropriately): Invoke the new added pattern if
527 * config/aarch64/constraints.md (Uc0): New constraint.
529 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
531 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
533 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
535 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
536 SECTION_EXCLUDE in XO mapping class.
538 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
541 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
542 and handle ne and eq codes.
543 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
544 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
545 CONST_INT_P. Use reverse_condition.
546 (sh_split_treg_set_expr): Likewise.
548 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
550 * config/arm/types.md (type): Add rotate_imm.
551 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
553 (*rorsi3_insn_uxtw): Likewise.
554 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
555 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
556 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
558 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
560 PR rtl-optimization/67481
561 * ifcvt.c (contains_ccmode_rtx_p): New function.
562 (insn_valid_noce_process_p): Use it.
564 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
566 PR rtl-optimization/67456
567 PR rtl-optimization/67464
568 PR rtl-optimization/67465
569 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
570 move in the mode of x. Handle combination of complex and simple
571 block pairs as well as the case when one is empty.
573 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
575 * doc/gimple.texi: Update references to gimple_statement_base.
576 * gdbhooks.py: Likewise.
577 * gimple.h: Likewise.
579 2015-09-28 Daniel Cederman <cederman@gaisler.com>
581 * config/sparc/driver-sparc.c: map LEON to leon3
583 2015-09-28 Daniel Cederman <cederman@gaisler.com>
585 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
586 and make it inverse to change default
587 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
589 * doc/invoke.texi: Document change of default
591 2015-09-28 Daniel Cederman <cederman@gaisler.com>
593 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
594 true on %f0 for a target without FPU.
595 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
597 (untyped_return): Do not load %f0 for a target without FPU.
599 2015-09-28 Andrew Pinski <apinski@cavium.com>
601 * config/aarch64/aarch64.md (prefetch):
602 Change the predicate of operand 0 to register_operand.
604 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
606 * config/i386/predicates.md (register_sse4nonimm_operand): New
608 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
609 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
610 Use register_sse4nonimm_operand as operand 0 predicate.
611 (*vec_extractv8hi_sse2): Remove insn pattern.
612 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
613 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
615 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
616 Kaz Kojima <kkojima@gcc.gnu.org>
619 * config/sh/sh-protos.h (sh_lra_p): Declare.
620 * config/sh/sh.c (sh_lra_p): Make non-static.
621 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
622 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
623 Expand into addsi3_scr if operands[2] if needed.
624 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
625 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
626 (addsi3_scr, *addsi3): New insn_and_split patterns.
628 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
630 PR rtl-optimization/64164
631 PR tree-optimization/67312
635 * cfgexpand.c (parm_in_stack_slot_p): Remove.
636 (ssa_default_def_partition): Remove.
637 (get_rtl_for_parm_ssa_default_def): Remove.
638 (set_rtl): Check that RTL assignments match expectations.
639 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
640 default def location for params and results. Record SSA names
641 or types in REG and MEM attrs, respectively.
643 (expand_one_ssa_partition): Drop logic that assigned MEMs with
644 unassigned addresses.
645 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
646 deferred stack alloc vars.
647 (expand_used_vars): Skip partitions holding parm default defs.
648 Move adjust_one_expanded_partition_var loop...
649 (pass_expand::execute): ... here. Drop redundant assert.
650 Adjust comments before the final loop over all ssa names.
651 Require assigned rtl of parms and results to match exactly.
652 Reset its attributes to match them, not any other variables in
654 (expand_debug_expr): Use entry value for PARM's default defs
655 only iff they have zero nondebug uses.
656 * cfgexpand.h (parm_in_stack_slot_p): Remove.
657 (get_rtl_for_parm_ssa_default_def): Remove.
658 (set_parm_rtl): Declare.
659 * doc/invoke.texi: Improve wording.
660 * explow.c (promote_decl_mode): Fix promote_function_mode for
661 result decls not by reference.
662 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
663 bypass TYPE_MODE to get the actual vector mode.
664 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
665 2015-08-19's changes as follows. Drop include of
666 basic-block.h and df.h.
667 (rtl_for_parm): Remove.
668 (maybe_reset_rtl_for_parm): Remove.
669 (parm_in_unassigned_mem_p): Remove.
670 (use_register_for_decl): Add logic for RESULT_DECLs matching
671 assign_parms' behavior.
672 (split_complex_args): Revert.
673 (assign_parms_augmented_arg_list): Revert. Add comment
674 referencing the logic above.
675 (assign_parm_adjust_stack_rtl): Revert.
676 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
677 of SET_DECL_RTL. Set up a REG if the parm demands so.
678 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
679 calls into a single set_parm_rtl. Set up a temporary RTL
680 temporarily for expand_assignment.
681 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
682 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
683 (assign_bounds): Revert.
684 (assign_parms): Revert. Use set_parm_rtl.
685 (allocate_struct_function): Relayout result and parms of
686 non-abstruct functions.
687 (expand_function_start): Revert. Use set_parm_rtl. If the
688 result is not a hard reg, create a pseudo from the promoted
689 mode of the default def. Promote static chain mode.
690 * tree-outof-ssa.c (remove_ssa_form): Drop unused
691 partition_has_default_def. Set up
692 partitions_for_parm_default_defs.
693 (finish_out_of_ssa): Remove partition_has_default_def.
694 Release partitions_for_parm_default_defs.
695 * tree-outof-ssa.h (struct ssaexpand): Remove
696 partition_has_default_def. Add
697 partitions_for_parm_default_defs.
698 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
700 (build_ssa_conflict_graph): Fix conflict-detection of default
701 defs of even unused default defs of params and results.
702 (for_all_parms): New.
703 (create_default_def): New.
704 (register_default_def): New.
705 (coalesce_with_default): New.
706 (create_outofssa_var_map): Create default defs for all parms
707 and results, and register their partitions. Add GIMPLE_RETURN
708 operands as coalesce candidates with results. Add default
709 defs of each parm or result as coalesce candidates with its
710 other defs. Mark each result def, and each default def of
711 parms, as used_in_copy.
712 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
713 with the ssa names, even anonymous ones. Drop
714 parm_in_stack_slot_p calls. Require same signedness and
716 (coalesce_ssa_name): Add coalesce candidates for all defs of
717 each parm and result, even unused ones.
718 (parm_default_def_partition_arg): New type.
719 (set_parm_default_def_partition): New.
720 (get_parm_default_def_partitions): New.
721 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
722 * tree-ssa-live.c (partition_view_init): Regard unused defs of
723 parms and results as used.
724 (verify_live_on_entry): Don't error out just because they're
727 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
729 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
730 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
731 (output_fde): Don't output length for debug_frame on AIX.
732 (output_call_frame_info): Don't output length for debug_frame on AIX.
733 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
734 HAVE_XCOFF_DWARF_EXTRAS.
735 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
736 HAVE_XCOFF_DWARF_EXTRAS.
737 (output_compilation_unit_header): Don't output length on AIX.
738 (output_pubnames): Don't output length on AIX.
739 (output_aranges): Delete argument. Compute length locally. Don't
740 output length on AIX.
741 (output_line_info): Don't output length on AIX.
742 (dwarf2out_finish): Don't compute aranges_length.
743 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
744 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
745 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
746 symbol decoration for AIX.
747 (rs6000_xcoff_debug_unwind_info): New.
748 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
750 (rs6000_xcoff_declare_function_name): Emit different
751 .function pseudo-op when DWARF2_DEBUG. Don't call
752 xcoffout_declare_function for DWARF2_DEBUG.
753 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
755 * config/rs6000/aix71.h: New.
756 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
758 * configure: Regenerate.
759 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
762 2015-09-26 Jeff Law <law@redhat.com>
764 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
766 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
769 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
772 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
775 * config/cris/cris.md (asrandb): Fix left shift undefined
779 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
782 * lra-constarints.c (match_reload): Check presence of the input pseudo
783 in the output operand.
785 2015-09-25 Tobias Burnus <burnus@net-b.de>
787 * doc/invoke.texi (-fsanitize): Minor wording tweak.
789 2015-09-25 Tobias Burnus <burnus@net-b.de>
791 * doc/invoke.texi (-fsanitize): Update URLs.
793 2015-09-25 Teresa Johnson <tejohnson@google.com>
795 * opts.c (finish_options): Unset -freorder-blocks-and-partition
796 if not using profile.
798 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
800 PR pretty-print/67567
801 * pretty-print.c (pp_string): Add gcc_checking_assert.
802 * pretty-print.h (output_buffer_append_r): Likewise.
804 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
807 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
808 addr2 individually. Don't emit logical or insn if one is known to
809 be aligned approriately.
810 (sh_expand_cmpnstr): Likewise.
812 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
814 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
815 __builtin_aarch64_fp[sc]r arguments into a register.
817 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
819 * config.gcc (x86_archs): Replace lakemount with lakemont.
820 (with_cpu): Likewise.
821 (with_arch): Likewise.
822 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
823 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
824 __tune_lakemount__ with __tune_lakemont__.
825 * config/i386/i386.c (lakemount_cost): Renamed to ...
826 (lakemont_cost): This.
827 (m_LAKEMOUNT): Renamed to ...
829 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
830 (processor_target_table): Replace "lakemount" with "lakemont".
831 (processor_alias_table): Likewise.
832 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
834 (ix86_adjust_cost): Likewise.
835 (ia32_multipass_dfa_lookahead): Likewise.
836 * config/i386/i386.h (processor_type): Likewise.
837 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
838 * doc/invoke.texi: Replace lakemount with lakemont. Replace
839 Lakemount with Lakemont.
841 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
843 * config.gcc (x86_archs): Replace iamcu with lakemount.
844 (with_cpu): Likewise.
845 (with_arch): Likewise.
846 * doc/invoke.texi: Likewise.
847 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
848 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
849 __tune_iamcu__ with __tune_lakemount__.
850 * config/i386/i386.c (iamcu_cost): Renamed to ...
851 (lakemount_cost): This.
852 (m_IAMCU): Renamed to ...
854 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
855 (processor_target_table): Replace "iamcu" with "lakemount".
856 (processor_alias_table): Likewise.
857 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
859 (ix86_adjust_cost): Likewise.
860 (ia32_multipass_dfa_lookahead): Likewise.
861 * config/i386/i386.h (processor_type): Likewise.
862 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
864 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
866 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
867 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
869 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
870 (pa_expand_compare_and_swap_loop): New.
871 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
872 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
873 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
874 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
875 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
878 2015-09-24 Michael Collison <michael.collison@linaro.org>
881 * read-md.c (read_name): Allow mode iterators inside angle
882 brackets in rtl expressions.
884 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
887 * ira-color.c (update_allocno_cost): Add parameter.
888 (update_costs_from_allocno): Decrease conflict cost. Pass the new
891 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
894 * opts-common.c (prune_options): Discard all -fdiagnostics-color
895 but the last one, which is moved to the front to be processed
897 * opts.c (enable_warning_as_error): Reject options that do not
900 2015-09-24 Jiong Wang <jiong.wang@arm.com>
902 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
904 2015-09-24 Jiong Wang <jiong.wang@arm.com>
906 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
907 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
908 (aarch64_cannot_force_const_mem): Likewise.
909 (aarch64_classify_address): Likewise.
910 (aarch64_classify_symbolic_expression): Likewise.
911 (aarch64_print_operand): Likewise.
912 (aarch64_classify_symbol): Likewise.
913 (aarch64_mov_operand_p): Likewise.
914 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
915 (aarch64_mov_operand): Likewise.
917 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
919 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
920 for info->spe_gp_size.
922 2015-09-24 Richard Biener <rguenther@suse.de>
925 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
928 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
930 * tree-object-size.c (plus_stmt_object_size)
931 (cond_expr_object_size): Change the formal parameters from gimple
933 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
934 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
935 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
937 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
939 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
940 Check for ld -type pie on Solaris 11.x and 12.
941 * configure: Regenerate.
942 * config.in: Regenerate.
944 * gcc.c (LD_PIE_SPEC): Allow redefinition.
946 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
947 (STARTFILE_SPEC): Use it.
948 (ENDFILE_CRTEND_SPEC): Define.
949 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
950 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
951 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
952 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
953 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
954 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
955 (ENDFILE_ARCH_SPEC): Define.
956 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
958 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
960 * configure.ac (gcc_cv_solaris_crts): New test.
961 * configure. Regenerate.
962 * config.in: Regenerate.
963 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
964 HAVE_SOLARIS_CRTS variant.
966 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
968 * tree-inline.h (count_insns_seq): Delete prototype.
969 (estimate_num_insns_seq): Define prototype.
970 * tree-inline.c (count_insns_seq): Delete.
971 (estimate_num_insns_seq): Remove static qualifier.
972 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
973 with estimate_num_insns_seq.
975 2015-09-24 Richard Biener <rguenther@suse.de>
977 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
979 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
980 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
982 (ao_ref_init_from_vn_reference): Record clique and base in the
984 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
986 2015-09-24 Richard Biener <rguenther@suse.de>
988 PR tree-optimization/48885
989 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
990 as not including any restrict tags from other pointers.
992 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
994 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
995 character when appending to offload_targets.
997 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
998 offload targets by commas, not colons.
999 * config.in: Regenerate.
1000 * configure: Likewise.
1001 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
1002 instead of setting up the default offload targets here...
1003 (process_command): ..., do it here.
1005 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
1006 targets are separated by commas.
1007 * config.h.in: Regenerate.
1009 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
1010 Nathan Sidwell <nathan@codesourcery.com>
1012 * omp-low.h (omp_reduction_init_op): Declare.
1013 * omp-low.c (omp_reduction_init_op): New, broken out of ...
1014 (omp_reduction_init): ... here. Call it.
1015 * tree-parloops.c (initialize_reductions): Use
1016 omp_reduction_init_op.
1018 2015-09-23 Richard Biener <rguenther@suse.de>
1021 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
1022 undefined overflow unless they will cancel out.
1024 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
1026 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
1029 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1032 * opts.h (write_langs): Declare.
1033 * opts-global.c (write_langs): Make it extern.
1035 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
1038 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
1039 overlapping regs when matching the pattern.
1041 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
1043 * config/aarch64/aarch64-simd.md
1044 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
1045 (aarch64_float_truncate_hi_v4sf_le): New.
1046 (aarch64_float_truncate_hi_v4sf_be): Likewise.
1048 2015-09-23 Richard Biener <rguenther@suse.de>
1050 * tree-ssa-structalias.c (intra_create_variable_infos): Build
1051 representatives for all restrict qualified pointer destinations.
1053 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
1055 * config/i386/i386.md (define_code_attr mshift): New.
1056 (define_mode_iterator SWI1248_AVX512BW): Rename ...
1057 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
1059 (define_insn "*k<logic><mode>"): Use new iterator name.
1060 (define_insn "*<mshift><mode>3"): New.
1062 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
1065 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
1066 mark the block as accessible.
1068 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
1070 * function.c (thread_prologue_and_epilogue_insns): Delete
1071 orig_entry_edge argument to try_shrink_wrapping.
1072 * shrink-wrap.c (can_get_prologue): New function.
1073 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
1074 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
1075 can_get_prologue where needed. Remove code that finds a single
1076 edge for the prologue. Remove code that tests if any reg clobbered
1077 by the prologue is live on the prologue edge. Remove code that finds
1078 the new prologue edge after duplicating blocks. Make a new prologue
1080 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
1082 2015-09-22 Jeff Law <law@redhat.com>
1084 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
1087 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1089 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
1090 -Wtemplates, -Wnamespaces): Document.
1092 2015-09-22 Tom de Vries <tom@codesourcery.com>
1094 PR tree-optimization/67671
1095 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
1096 pointer references as restrict.
1098 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
1100 * config/nios2/nios2.c (nios2_legitimize_address): When handling
1101 'reg + reloc' cases, allow first operand to be non-REG, and use
1102 force_reg() to enforce address pattern.
1104 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
1107 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
1108 (define_mode_iterator VI12_AVX_AVX512F): New.
1109 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
1110 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
1111 (define_insn "*<code><mode>3"): ... Into new pattern using
1112 VI12_AVX_AVX512F iterators without masking.
1114 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
1116 * config.gcc: Support "skylake-avx512".
1117 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
1118 PROCESSOR_SKYLAKE_AVX512.
1119 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
1120 (processor_target_table): Add "skylake-avx512".
1121 (PTA_SKYLAKE_AVX512): Define.
1122 (ix86_option_override_internal): Add "skylake_avx512".
1123 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
1124 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
1125 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
1126 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
1127 * doc/invoke.texi (skylake-avx512): New.
1129 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
1131 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
1133 (define_insn "kunpcksi"): Ditto.
1134 (define_insn "kunpckdi"): Ditto.
1136 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
1138 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
1139 iterator instead of fixed modes.
1141 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1143 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
1145 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
1146 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
1147 out_result. Update to support update-fetch operations.
1148 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
1149 Adjust for change to aarch64_gen_atomic_ldop.
1150 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
1151 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
1152 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
1153 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
1154 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
1156 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1158 * config/aarch64/aarch64-protos.h
1159 (aarch64_atomic_ldop_supported_p): Declare.
1160 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
1161 (enum aarch64_atomic_load_op_code): New.
1162 (aarch64_emit_atomic_load_op): New.
1163 (aarch64_gen_atomic_ldop): Update to support load-operate
1165 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
1167 (aarch64_atomic_<atomic_optab><mode>): New.
1168 (aarch64_atomic_<atomic_optab><mode>_lse): New.
1169 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
1170 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
1171 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
1173 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1175 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
1176 (UNSPECV_ATOMIC_LDOP_OR): New.
1177 (UNSPECV_ATOMIC_LDOP_BIC): New.
1178 (UNSPECV_ATOMIC_LDOP_XOR): New.
1179 (UNSPECV_ATOMIC_LDOP_PLUS): New.
1182 (aarch64_atomic_load<atomic_ldop><mode>): New.
1184 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1186 * config/aarch64/aarch64.md
1187 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
1190 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1192 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
1194 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
1195 (aarch64_gen_atomic_ldop): New.
1196 (aarch64_split_atomic_op): Fix whitespace and add a comment.
1197 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
1198 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
1199 (atomic_exchange<mode>): Replace with an expander.
1200 (aarch64_atomic_exchange<mode>): New.
1201 (aarch64_atomic_exchange<mode>_lse): New.
1202 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
1203 (aarch64_atomic_swp<mode>): New.
1205 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1207 * tree-inline.c (expand_call_inline): Use inform for extra note.
1208 Do not give a note with UNKNOWN_LOCATION.
1209 Replace input_location with gimple_location (stmt).
1210 Use true/false instead of TRUE/FALSE.
1212 2015-09-22 Tom de Vries <tom@codesourcery.com>
1214 PR tree-optimization/67666
1215 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
1216 with single field non-conservative.
1218 2015-09-21 David S. Miller <davem@davemloft.net>
1222 2015-09-11 David S. Miller <davem@davemloft.net>
1224 * config/sparc/constraints.md: Make "U" constraint a real register
1226 * config/sparc/sparc.c (TARGET_LRA_P): Define.
1227 (D_MODES, DF_MODES): Add missing cast.
1228 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
1229 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
1230 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
1232 * config/sparc/sparc.h (PROMOTE_MODE): Define.
1233 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1234 provide these insn when flag_pic.
1236 2015-09-17 David S. Miller <davem@davemloft.net>
1238 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
1240 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
1242 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1243 (HARD_REGNO_CALLER_SAVE_MODE): Define.
1244 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1245 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1246 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1247 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1248 provide when flag_pic.
1250 2015-09-21 Jeff Law <law@redhat.com>
1252 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
1255 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1257 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
1259 2015-09-21 Richard Biener <rguenther@suse.de>
1261 * passes.c (rest_of_decl_compilation): Do not call
1262 dwarf2out_early_global_decl for aliases.
1264 2015-09-21 Richard Biener <rguenther@suse.de>
1267 * dwarf2out.c (add_location_or_const_value_attribute): Remove
1268 attribute parameter. Early exit if either DW_AT_const_value
1269 or DW_AT_location are present already.
1270 (gen_variable_die): Adjust caller.
1271 (dwarf2out_late_global_decl): Likewise.
1273 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1276 * config/sh/sh.c (sh_remove_overlapping_post_inc,
1277 sh_peephole_emit_move_insn): Add new functions.
1278 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
1279 sh_peephole_emit_move_insn): Declere them.
1280 * config/sh/sh.md: Use them in various peephole2 patterns.
1282 2015-09-21 Richard Biener <rguenther@suse.de>
1285 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
1286 address with -fno-delete-null-pointer-checks.
1288 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
1290 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
1291 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
1292 (reduc_uplus_v16qi): Remove.
1294 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
1295 (reduc_<VEC_reduc_name>_v2df): Remove.
1296 (reduc_<VEC_reduc_name>_v4sf): Remove.
1297 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
1299 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
1300 gen_ function by removing * prefix.
1301 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
1303 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1306 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1307 Print i_bound without converting it to a tree.
1309 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
1311 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
1312 operands[4] operands[5] swap with std::swap, removed tmp variable.
1313 (arm_evpc_neon_vzip): Replaced in0/in1 and
1314 out0/out1 swaps with std::swap, removed x variable.
1315 (arm_evpc_neon_vtrn): Replaced in0/int1 and
1316 out0/out1 swaos with std::swap, removed x variable.
1317 (arm_expand_vec_perm_const_1): Replaced
1318 d->op0/d->op1 swap with std::swap, removed x variable.
1319 (arm_evpc_neon_vuzp): Replaced in0/in1 and
1320 out0/out1 swaps with std::swap, removed x variable.
1322 2015-09-21 Jonathan Yong <10walls@gmail.com>
1324 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
1325 sysroot/usr/lib/32api for additional win32 libraries,
1326 fixes failing Cygwin bootstrapping.
1328 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1330 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
1332 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1335 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
1336 (*mov_t_msb_neg): Rewrite negc pattern.
1338 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1340 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
1341 immediate generation code.
1343 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1345 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
1346 redundant immediate generation code.
1348 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1350 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
1351 (AARCH64_NUM_BITMASKS): Remove.
1352 (aarch64_bitmasks_cmp): Remove.
1353 (aarch64_build_bitmask_table): Remove.
1355 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1357 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
1358 slow immediate matching loops with a faster algorithm.
1360 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1362 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
1365 2015-09-20 Jeff Law <law@redhat.com>
1367 PR tree-optimization/47679
1368 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
1369 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
1370 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
1371 (thread_through_normal_block): Use record_temporary_equivalences.
1373 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
1375 * coretypes.h (gimple): Change typedef to be a forward declaration.
1376 * gimple.h (gimple_statement_base): rename to gimple.
1377 * (all functions and types using gimple): Adjust.
1380 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
1381 David Edelsohn <dje.gcc@gmail.com>
1383 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
1384 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1385 (EH_FRAME_THROUGH_COLLECT2): Define.
1386 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1387 (ASM_OUTPUT_DWARF_PCREL): Define.
1388 (ASM_OUTPUT_DWARF_DATAREL): Define.
1390 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
1392 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
1395 2015-09-18 Jeff Law <law@redhat.com>
1397 PR tree-optimization/47679
1398 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
1400 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
1401 object. Update constructor.
1402 (pass_dominator::execute): Corresponding chagnes to declaration
1403 and initialization of avail_exprs_stack. Update constructor call
1404 for dom_opt_dom_walker object.
1405 (lookup_avail_expr, record_cond): Accept additional argument. Pass
1406 it down to children as needed.
1407 (record_equivalences_from_incoming_edge): Likewise.
1408 (eliminate_redundant_computations): Likewise.
1409 (record_equivalences_from_stmt): Likewise.
1410 (simplify_stmt_for_jump_threading): Likewise.
1411 (record_temporary_equivalences): Likewise.
1412 (optimize_stmt): Likewise.
1413 (dom_opt_dom_walker::thread_across_edge): Update access to
1414 avail_exprs_stack object and pass it to children as needed.
1415 (dom_opt_dom_walker::before_dom_children): Similarly.
1416 (dom_opt_dom_walker::after_dom_children): Similarly.
1417 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
1418 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
1419 Add avail_expr_stack argument. Pass it to children as needed.
1420 (dummy_simplify): Likewise.
1421 (simplify_control_stmt_condition): Likewise.
1422 (thread_around_empty_blocks): Likewise.
1423 (thread_through_normal_block): Likewise.
1424 (thread_across_edge): Likewise.
1425 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1426 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
1428 PR tree-optimization/47679
1429 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
1431 (dom_opt_dom_walker): New private member holding the const_and_copies
1432 object. Update constructor.
1433 (pass_dominator::execute): Corresponding changes to declaration
1434 and initialization of const_and_copies. Update constructor call
1435 for the dom_opt_dom_walker object.
1436 (record_temporary_equivalences): Accept const_and_copies argument
1437 pass it down to children as needed.
1438 (record_equality): Likewise.
1439 (record_equivalences_from_incoming_edge): Likewise.
1440 (cprop_into_successor_phis, optimize_stmt): Likewise.
1441 (eliminate_redundant_computations): Likewise.
1442 (dom_opt_dom_walker::thread_across_edge): Update access to
1443 const_and_copies object and pass it to children as needed.
1444 (dom_opt_dom_walker::before_dom_children): Similarly.
1445 (dom_opt_dom_walker::after_dom_children): Similarly.
1447 PR tree-optimization/47679
1448 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
1449 it into the avail_exprs_stack class.
1450 (pass_dominator::execute): Corresponding changes to declaration
1451 and initialization of avail_exprs. Pass avail_exprs to
1452 dump_dominator_optimization_stats.
1453 (record_cond): Extract avail_exprs from avail_exprs_stack.
1454 (lookup_avail_expr): Similarly.
1455 (htab_staticstics): Remove unnecessary prototype. Move to earlier
1457 (dump_dominator_optimization_stats): Make static and prototype.
1458 Add argument for the hash table to dump.
1459 (debug_dominator_optimization_stats): Remove.
1460 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
1462 (debug_dominator_optimization_stats): Similarly.
1463 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
1464 "void" in prototype for pop_to_marker method. Add accessor method
1465 for the underlying avail_exprs table.
1467 * tree-ssa-threadedge.c: Remove trailing whitespace.
1469 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
1471 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
1473 (pa_ldil_cint_p): Likewise.
1474 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
1475 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
1477 * config/pa/pa.md: Likewise.
1479 2015-09-18 David Malcolm <dmalcolm@redhat.com>
1481 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
1482 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
1483 (diagnostic_show_locus): Likewise.
1484 (diagnostic_print_caret_line): Likewise.
1485 * diagnostic-show-locus.c: New file.
1487 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
1489 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
1490 "back" parameter. Declare label in #if block.
1492 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
1495 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
1496 the address to a register.
1498 2015-09-18 Jeff Law <law@redhat.com>
1500 PR tree-optimization/47679
1501 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
1502 * tree-ssa-dom.c: Remove unnecessary header includes.
1503 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
1504 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
1505 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
1506 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
1507 (pass_phi_only_cprop::execute): Likewise.
1508 (make_pass_phi_only_cprop): Likewise.
1509 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
1510 uses of file scoped statics by passing the required objects
1511 as parameters wherever needed.
1513 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
1514 David Edelsohn <dje.gcc@gmail.com>
1516 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
1517 EH_FRAME_THROUGH_COLLECT2.
1518 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
1520 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
1521 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
1522 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
1523 * except.c (switch_to_exception_section): Use a read-only section
1524 even if EH_FRAME_SECTION_NAME is undefined.
1525 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
1526 * collect2.c (write_c_file_stat): Provide dbase on AIX.
1527 (scan_prog_file): Don't export __dso_handle nor
1529 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1530 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1531 (ASM_OUTPUT_DWARF_PCREL): Define.
1532 (ASM_OUTPUT_DWARF_DATAREL): Define.
1533 (EH_FRAME_THROUGH_COLLECT2): Define.
1534 (EH_FRAME_IN_DATA_SECTION): Delete.
1535 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
1536 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
1538 (rs6000_asm_output_dwarf_datarel): Declare.
1539 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
1540 (rs6000_aix_asm_output_dwarf_datarel): New.
1541 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
1542 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
1543 (EH_FRAME_THROUGH_COLLECT2): Define.
1544 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
1545 (EH_FRAME_THROUGH_COLLECT2): Define.
1546 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1547 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
1548 (EH_FRAME_THROUGH_COLLECT2): New.
1549 (ASM_OUTPUT_DWARF_DATAREL): New.
1550 * doc/tm.texi: Regenerate.
1552 2015-09-18 Richard Biener <rguenther@suse.de>
1554 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
1555 we're in early phase.
1556 (schedule_generic_params_dies_gen): Likewise.
1557 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
1558 work as possible, retaining unhandled cases.
1559 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
1560 clear out generic_type_instances at the end.
1561 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
1562 (dwarf2out_early_finish): ... here. Do most of
1563 gen_remaining_tmpl_value_param_die_attribute here.
1565 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
1567 PR tree-optimization/67283
1568 * tree-sra.c (type_consists_of_records_p): Rename to...
1569 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1570 (completely_scalarize_record): Rename to...
1571 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
1572 (scalarize_elem): New.
1573 (analyze_all_variable_accesses): Follow renamings.
1575 2015-09-18 Richard Biener <rguenther@suse.de>
1577 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
1580 2015-09-18 Richard Biener <rguenther@suse.de>
1582 PR tree-optimization/66142
1583 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
1584 treat MEM[&x] and x the same.
1585 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
1586 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
1587 when we simplified sth.
1588 (vn_reference_maybe_forwprop_address): Likewise.
1589 (valueize_refs_1): When we simplified through
1590 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
1591 set valueized_anything to true.
1592 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
1593 one ref kills the other instead of just a offset-based test.
1594 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
1595 for the operand_equal_p test to compare bases and also compare
1598 2015-09-17 Christian Bruel <christian.bruel@st.com>
1600 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
1602 2015-09-17 Richard Henderson <rth@redhat.com>
1605 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
1606 pointers that encode the alignment of the object.
1608 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1610 PR rtl-optimization/66790
1611 * df-problems.c (LIVE): Amend documentation.
1613 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
1615 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
1617 (GTFILES): Replace optabs.c with optabs-libfunc.c.
1618 * genopinit.c (main): Add an include guard to insn-opinit.h.
1619 Protect the rtx_code parts with NUM_RTX_CODE.
1620 * optabs.h: Split parts out to...
1621 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
1622 * optabs.c: Split parts out to...
1623 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
1624 * cilk-common.c: Include optabs-query.h rather than optabs.h.
1625 * fold-const.c: Likewise.
1626 * target-globals.c: Likewise.
1627 * tree-if-conv.c: Likewise.
1628 * tree-ssa-forwprop.c: Likewise.
1629 * tree-ssa-loop-prefetch.c: Likewise.
1630 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
1631 Remove unncessary include files.
1632 * tree-ssa-phiopt.c: Likewise.
1633 * tree-ssa-reassoc.c: Likewise.
1634 * tree-switch-conversion.c: Likewise.
1635 * tree-vect-data-refs.c: Likewise.
1636 * tree-vect-generic.c: Likewise.
1637 * tree-vect-loop.c: Likewise.
1638 * tree-vect-patterns.c: Likewise.
1639 * tree-vect-slp.c: Likewise.
1640 * tree-vect-stmts.c: Likewise.
1641 * tree-vrp.c: Likewise.
1642 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
1643 rather than optabs.h.
1644 * expr.c: Include optabs-tree.h.
1645 * function.c: Likewise.
1647 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1650 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
1651 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
1652 * config/arm/arm.c: Include common/common-target.h.
1653 (use_return_insn): Return 0 if the static chain register was saved
1654 above a non-APCS frame.
1655 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
1656 (struct scratch_reg): New.
1657 (get_scratch_register_on_entry): New function.
1658 (release_scratch_register_on_entry): Likewise.
1659 (arm_emit_probe_stack_range): Likewise.
1660 (output_probe_stack_range): Likewise.
1661 (arm_expand_prologue): Factor out code dealing with the IP register
1662 for nested function and adjust it for stack checking.
1663 Invoke arm_emit_probe_stack_range if static builtin stack checking
1665 (thumb1_expand_prologue): Sorry out if static builtin stack checking
1667 (arm_expand_epilogue): Add the saved static chain register, if any, to
1668 the amount of pre-pushed registers to pop.
1669 (arm_frame_pointer_required): Return true if static stack checking is
1670 enabled and we want to catch the exception with the EABI unwinder.
1671 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
1672 (UNSPEC_PROBE_STACK_RANGE): Likewise.
1673 * config/arm/arm.md (probe_stack): New insn.
1674 (probe_stack_range): Likewise.
1676 2015-09-17 Richard Biener <rguenther@suse.de>
1678 * genmatch.c (parser::parse_expr): Improve error message
1679 for mis-placed flags.
1681 2015-09-17 Richard Biener <rguenther@suse.de>
1683 * passes.c (rest_of_decl_compilation): Always call early_global_decl
1684 debug hook when we created a varpool node.
1685 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
1686 dwarf2out_early_global_decl, when not just add location or
1687 value attributes to existing DIEs.
1689 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
1691 * config/aarch64/aarch64.md (copysigndf3): New.
1692 (copysignsf3): Likewise.
1694 2015-09-17 David S. Miller <davem@davemloft.net>
1696 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
1697 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
1698 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1699 (HARD_REGNO_CALLER_SAVE_MODE): Define.
1700 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1701 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1702 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1703 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1704 provide when flag_pic.
1706 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
1708 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
1709 object_allocator change.
1711 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1713 PR tree-optimization/66388
1714 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
1715 (dump_iv): Dump no_overflow information.
1716 (alloc_iv): Initialize new field for struct iv.
1717 (mark_bivs): Count number of no_overflow bivs.
1718 (find_deriving_biv_for_expr, record_biv_for_address_use): New
1720 (idx_find_step): Call new functions above.
1721 (add_candidate_1, add_candidate): New paramter.
1722 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
1723 (get_computation_aff): Simplify convertion of cand for BIV.
1724 (get_computation_cost_at): Step cand's base if necessary.
1726 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1728 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
1730 (tree_simplify_using_condition): Ditto.
1731 (simplify_using_initial_conditions): Ditto.
1732 (loop_exits_before_overflow): Pass new argument to function
1733 simplify_using_initial_conditions. Remove case for type conversions
1735 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
1737 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
1738 in iv base using loop initial conditions.
1740 2015-09-16 Jeff Law <law@redhat.com>
1742 PR tree-optimization/47679
1743 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
1744 (free_all_edge_infos): Use it.
1745 (allocate_edge_info): Free preexisting edge info data.
1746 (pass_dominator::execute): Set up initial edge info structures.
1747 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
1749 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
1750 If non-null, then push/pop markers appropriately.
1751 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1752 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
1755 2015-09-16 James Bowman <james.bowman@ftdichip.com>
1757 * config/ft32/ft32.c: Fix the memory address space predicate.
1759 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
1762 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
1763 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
1765 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1767 * toplev.h (check_global_declaration): Remove declaration.
1768 * toplev.c (check_global_declaration): Move to ...
1769 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
1770 (analyze_functions): Update call.
1772 2015-09-16 David S. Miller <davem@davemloft.net>
1774 * lra-constraints.c (simplify_operand_subreg): Do not assume that
1775 lowpart of a SUBREG has offset zero.
1777 2015-09-16 Jeff Law <law@redhat.com>
1779 PR tree-optimization/47679
1780 * tree-ssa-dom.c (enum expr_kind): Moved from here to
1781 tree-ssa-scopedtables.h.
1782 (struct hashable_expr, class expr_hash_elt): Likewise.
1783 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
1784 Move associated methods into tree-ssa-scopedtables.c.
1785 (avail_expr_hash, initialize_expr_from_cond): Similarly.
1786 (hashable_expr_equal_p, add_expr_commutative): Likewise.
1787 (add_hashable_expr): Likewise.
1788 (record_cond): Delete element directly.
1789 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
1790 private copy ctor and assignment operator methods.
1791 (expr_elt_hasher): Inline trivial methods.
1792 (initialize_expr_from_cond): Prototype.
1793 * tree-ssa-scopedtables.c: Add necessary includes, functions and
1794 methods that were previously in tree-ssa-dom.c. Improve various
1797 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
1799 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
1801 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
1804 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
1807 2015-09-16 Richard Biener <rguenther@suse.de>
1810 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
1811 location of possibly shared trees.
1813 2015-09-16 Richard Biener <rguenther@suse.de>
1816 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
1818 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
1820 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
1821 offset and size computations instead of HOST_WIDE_INT.
1823 2015-09-16 Richard Biener <rguenther@suse.de>
1826 * fold-const.c (extract_muldiv_1): Properly extend multiplication
1827 result before builting a tree via wide_int_to_tree.
1829 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1831 * Makefile.in: Add memory-block.cc
1832 (pool_allocator::initialize): Use fixed block size.
1833 (pool_allocator::release): Use memory_block_pool.
1834 (pool_allocator::allocate): Likewise.
1835 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
1837 * cfg.c (initialize_original_copy_tables): Likewise.
1838 * cselib.c (elt_list_pool, elt_loc_list_pool,
1839 cselib_val_pool): Likewise.
1840 * df-problems.c (df_chain_alloc): Likewise.
1841 * df-scan.c (df_scan_alloc): Likewise.
1842 * dse.c (cse_store_info_pool, rtx_store_info_pool,
1843 read_info_type_pool, insn_info_type_pool, bb_info_pool,
1844 group_info_pool, deferred_change_pool): Likewise.
1845 * et-forest.c (et_nodes, et_occurrences): Likewise.
1846 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
1847 ipcp_agg_lattice_pool): Likewise.
1848 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
1849 * ipa-profile.c (histogram_pool): Likewise.
1850 * ipa-prop.c (ipa_refdesc_pool): Likewise.
1851 * ira-build.c (live_range_pool, allocno_pool, object_pool,
1852 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
1853 * ira-color.c (update_cost_record_pool): Likewise.
1854 * lra-lives.c (lra_live_range_pool): Likewise.
1855 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
1856 * memory-block.cc: New file.
1857 * memory-block.h: New file.
1858 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
1859 * sched-deps.c (sched_deps_init): Likewise.
1860 * sel-sched-ir.c (sched_lists_pool): Likewise.
1861 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
1862 * tree-sra.c (access_pool): Likewise.
1863 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1864 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
1865 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
1866 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1867 * tree-ssa-strlen.c (strinfo_pool): Likewise.
1868 * tree-ssa-structalias.c (variable_info_pool): Likewise.
1869 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
1870 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
1872 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1874 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
1876 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
1879 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1881 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
1882 to pass TLS call argument, according to current ABI.
1883 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
1884 callx0 for TLS call, according to current ABI.
1886 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1888 * tree-eh.c (lower_try_finally_dup_block): Clear location information
1889 on stack restore statements.
1890 (decide_copy_try_finally): Do not consider a stack restore statement as
1891 coming from sources.
1893 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
1895 * config/alpha/alpha.c (alpha_expand_block_clear): Use
1896 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
1898 2015-09-15 Jeff Law <law@redhat.com>
1900 PR tree-optimization/47679
1901 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
1902 methods and private members.
1903 (avail_exprs_stack): Similarly. Change type of global
1904 from a pair of expr_hash_elt_t to the new class.
1905 (expr_elt_hasher::hash): Corresponding changes.
1906 (expr_elt_hasher::equal): Similarly.
1907 (avail_expr_hash): Similarly.
1908 (pass_dominator::execute): Similarly.
1909 (dom_opt_dom_walker::thread_across_edge): Similarly.
1910 (record_cond): Similarly.
1911 (dom_opt_dom_walker::before_dom_children): Similarly.
1912 (dom_opt_dom_walker::after_dom_children): Similarly.
1913 (lookup_avail_expr): Likewise.
1914 (initialize_hash_element): Now a expr_hash_elt constructor.
1915 (initialize_hash_element_from_expr): Similarly.
1916 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
1917 (free_expr_hash_elt): Call dtor for the element.
1918 (remove_local_expressions_from_table): Now the "pop_to_marker"
1919 method in the available_exprs_stack class.
1920 (avail_expr_stack::record_expr): Method factored out.
1921 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
1923 (hashable_expr_equal_p): Fix formatting.
1925 2015-09-15 David Malcolm <dmalcolm@redhat.com>
1927 * input.h (location_get_source_line): Drop "expanded_location"
1928 param in favor of a file and line number.
1929 * input.c (location_get_source_line): Likewise.
1930 (dump_location_info): Update for change in signature of
1931 location_get_source_line.
1932 * diagnostic.c (diagnostic_print_caret_line): Likewise.
1934 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1936 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
1937 Bump to 4KB for SJLJ exceptions.
1938 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
1939 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
1940 * doc/tm.texi: Regenerate.
1942 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1944 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
1945 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
1948 2015-09-15 Richard Biener <rguenther@suse.de>
1950 PR tree-optimization/67470
1951 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
1952 structure for PHI hoisting by inserting a forwarder block
1955 2015-09-15 Christian Bruel <christian.bruel@st.com>
1957 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
1958 (arm_option_print): New function.
1960 2015-09-15 Christian Bruel <christian.bruel@st.com>
1963 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
1964 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
1965 Remove flags parameter.
1966 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
1967 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
1968 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
1969 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
1970 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
1971 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
1972 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
1973 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
1975 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1977 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
1979 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
1980 AARCH64_VALID_SIMD_DREG_MODE.
1982 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1984 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
1985 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
1986 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
1987 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
1988 aarch64_ld4_lane<mode>): Combine together, making...
1989 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1990 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
1991 aarch64_st4_lane<mode>): Combine together, making...
1992 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1993 * config/aarch64/iterators.md (nregs): Add comment.
1995 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1997 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
1998 Change operand mode from <V_TWO_ELEM> to BLK.
1999 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
2000 (aarch64_vec_store_lanesoi_lane<mode): Likewise
2001 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
2002 (aarch64_ld2_lane<mode>): Likewise.
2003 (aarch64_st2_lane<VQ:mode>): Likewise.
2004 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
2006 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2008 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
2009 Change operand mode from <V_FOUR_ELEM> to BLK.
2010 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
2011 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
2012 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
2013 (aarch64_ld4_lane<mode>): Likewise.
2014 (aarch64_st4_lane<mode>): Likewise.
2015 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
2017 2015-09-15 Richard Biener <rguenther@suse.de>
2020 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
2021 transfer EH info from old to new stmt.
2022 (replace_call_with_value): Likewise.
2023 (replace_call_with_call_and_fold): Likewise.
2024 (gimple_fold_builtin_memory_op): Likewise.
2025 (gimple_fold_builtin_memset): Likewise.
2026 (gimple_fold_builtin_stpcpy): Likewise.
2027 (gimple_fold_call): Likewise.
2029 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2031 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
2033 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
2034 (aarch64_simd_intEI_type_node): Likewise.
2035 (aarch64_simd_builtin_std_type): Remove EImode case.
2036 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
2037 * config/aarch64/aarch64-modes.def: Remove EImode.
2039 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2041 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
2042 Change operand mode from <V_THREE_ELEM> to BLK.
2043 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
2044 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
2045 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
2046 (aarch64_ld3_lane<mode>): Likewise.
2047 (aarch64_st3_lane<mode>): Likewise.
2048 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
2050 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2052 * config/aarch64/aarch64-simd.md
2053 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
2054 Change all TImode operands to BLKmode.
2055 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
2056 Change all EImode operands to BLKmode.
2057 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
2058 Change all OImode operands to BLKmode.
2060 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
2061 and call set_mem_size.
2062 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
2064 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
2066 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2068 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
2070 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
2072 (vec_store_lanesci_lane<mode>): Rename to...
2073 (aarch64_vec_store_lanesci_lane<mode>): ...this.
2075 (vec_store_lanesxi_lane<mode>): Rename to...
2076 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
2078 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
2079 aarch64_st4_lane<mode>): Follow renaming.
2081 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2083 * config/s390/s390.c (s390_const_operand_ok): Add missing
2086 2015-09-15 Richard Biener <rguenther@suse.de>
2089 * lto-streamer.h (lto_location_cache::current_sysp): Properly
2091 * lto-streamer-out.c (clear_line_info): Likewise.
2093 2015-09-15 Richard Biener <rguenther@suse.de>
2095 * doc/match-and-simplify.texi: Fix wording.
2097 2015-09-15 Bin Cheng <bin.cheng@arm.com>
2099 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
2100 unnecessary type conversion in op1.
2102 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
2104 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
2105 (dup_block_and_redirect): Delete function.
2106 (can_dup_for_shrink_wrapping): New function.
2107 (fix_fake_fallthrough_edge): New function.
2108 (try_shrink_wrapping): Rewrite function.
2109 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
2111 2015-09-14 Rich Felker <dalias@libc.org>
2113 * configure.ac: Change target pattern for sh TLS support
2114 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
2115 * configure: Regenerate.
2117 2015-09-14 Jeff Law <law@redhat.com>
2119 PR tree-optimization/47679
2120 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
2121 type rather than void *.
2123 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2126 * diagnostic.c (diagnostic_initialize): Do not set
2127 some_warnings_are_errors.
2128 (diagnostic_finish): Use DK_WERROR count instead.
2129 (diagnostic_report_diagnostic): Do not set
2130 some_warnings_are_errors.
2131 * diagnostic.h (struct diagnostic_context): Remove
2132 some_warnings_are_errors.
2134 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
2136 * config/sparc/predicates.md (const_all_ones_operand): Use
2137 CONSTM1_RTX to simplify definition.
2139 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
2142 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
2145 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
2147 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
2148 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
2149 OPT_fshow_column to handled saved option cases.
2150 (append_compiler_options): Do not skip the above added options.
2152 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2155 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
2156 nopcrelative_literal_loads.
2157 (aarch64_classify_address): Likewise.
2158 (aarch64_constant_pool_reload_icode): Define.
2159 (aarch64_secondary_reload): Handle secondary reloads for
2161 (aarch64_override_options): Handle nopcrelative_literal_loads.
2162 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
2163 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
2165 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
2166 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
2167 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
2169 * doc/invoke.texi (mpc-relative-literal-loads): Document.
2171 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
2174 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
2175 sync_compare_and_swap_optab libcall to target_oval.
2177 2015-09-14 Marek Polacek <polacek@redhat.com>
2179 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
2181 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
2183 2015-09-11 Mark Wielaard <mjw@redhat.com>
2186 * toplev.c (check_global_declaration): Check and use
2187 warn_unused_const_variable.
2188 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
2189 (-Wunused-variable): Remove non-constant. For C implies
2190 -Wunused-const-variable.
2191 (-Wunused-const-variable): New.
2193 2015-09-14 Richard Biener <rguenther@suse.de>
2195 * doc/match-and-simplify.texi: Update for changed syntax
2196 of inner ifs and the new switch expression.
2198 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
2200 * config/i386/haswell.md: New file describing Haswell pipeline.
2201 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
2202 haswell-like processors.
2203 (ix86_reassociation_width): Increase reassociation width for 64-bit
2204 Haswell processor family.
2205 * config/i386/i386.md: Introduce haswell cpu and include new md file.
2207 2015-09-14 Richard Biener <rguenther@suse.de>
2209 * doc/match-and-simplify.texi: Fixup some formatting issues
2210 and document the 's' flag.
2212 2015-09-13 Olivier Hainque <hainque@adacore.com>
2213 Eric Botcazou <ebotcazou@adacore.com>
2215 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
2216 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
2217 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
2218 (TARGET_CPU_gr5): Likewise.
2219 (TARGET_CPU_gr6): Likewise.
2220 (MULTILIB_DEFAULTS): Likewise.
2221 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
2222 for mcpu=gr5 and mcpu=gr6.
2223 (MULTILIB_DIRNAMES): Adjust accordingly.
2225 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2227 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
2228 (mem_ref_p): Likewise.
2229 (outermost_indep_loop): Adjust.
2230 (mem_ref_in_stmt): Likewise.
2231 (determine_max_movement): Likewise.
2232 (mem_ref_alloc): Likewise.
2233 (record_mem_ref_loc): Likewise.
2234 (set_ref_stored_in_loop): Likewise.
2235 (mark_ref_stored): Likewise.
2236 (gather_mem_refs_stmt): Likewise.
2237 (mem_refs_may_alias_p): Likewise.
2238 (for_all_locs_in_loop): Likewise.
2239 (struct rewrite_mem_ref_loc): Likewise.
2240 (rewrite_mem_refs): Likewise.
2241 (struct first_mem_ref_loc_1): Likewise.
2242 (first_mem_ref_loc): Likewise.
2243 (struct sm_set_flag_if_changed): Likewise.
2244 (execute_sm_if_changed_flag_set): Likewise.
2245 (execute_sm): Likewise.
2246 (hoist_memory_references):
2247 (struct ref_always_accessed): Likewise.
2248 (ref_always_accessed_p): Likewise.
2249 (refs_independent_p): Likewise.
2250 (record_dep_loop): Likewise.
2251 (ref_indep_loop_p_1): Likewise.
2252 (ref_indep_loop_p_2): Likewise.
2253 (ref_indep_loop_p): Likewise.
2254 (can_sm_ref_p): Likewise.
2255 (find_refs_for_sm): Likewise.
2256 (tree_ssa_lim_finalize): Likewise.
2258 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2260 * dwarf2out.c (dw_attr_ref): Remove typedef.
2261 (dw_line_info_ref): Likewise.
2262 (pubname_ref): Likewise.
2263 (dw_ranges_ref): Likewise.
2264 (dw_ranges_by_label_ref): Likewise.
2265 (comdat_type_node_ref): Likewise.
2267 (get_AT_low_pc): Likewise.
2268 (get_AT_hi_pc): Likewise.
2269 (get_AT_string): Likewise.
2270 (get_AT_flag): Likewise.
2271 (get_AT_unsigned): Likewise.
2272 (get_AT_ref): Likewise.
2273 (get_AT_file): Likewise.
2274 (remove_AT): Likewise.
2275 (print_die): Likewise.
2276 (check_die): Likewise.
2277 (die_checksum): Likewise.
2278 (attr_checksum_ordered): Likewise.
2279 (struct checksum_attributes): Likewise.
2280 (collect_checksum_attributes): Likewise.
2281 (die_checksum_ordered): Likewise.
2282 (same_die_p): Likewise.
2283 (is_declaration_die): Likewise.
2284 (clone_die): Likewise.
2285 (clone_as_declaration): Likewise.
2286 (copy_declaration_context): Likewise.
2287 (break_out_comdat_types): Likewise.
2288 (copy_decls_walk): Likewise.
2289 (output_location_lists): Likewise.
2290 (external_ref_hasher::hash): Likewise.
2291 (optimize_external_refs_1): Likewise.
2292 (build_abbrev_table): Likewise.
2293 (size_of_die): Likewise.
2294 (unmark_all_dies): Likewise.
2295 (size_of_pubnames): Likewise.
2296 (output_die_abbrevs): Likewise.
2297 (output_die): Likewise.
2298 (output_pubnames): Likewise.
2299 (add_ranges_num): Likewise.
2300 (add_ranges_by_labels): Likewise.
2301 (add_high_low_attributes): Likewise.
2302 (gen_producer_string): Likewise.
2303 (dwarf2out_set_name): Likewise.
2304 (new_line_info_table): Likewise.
2305 (prune_unused_types_walk_attribs): Likewise.
2306 (prune_unused_types_update_strings): Likewise.
2307 (prune_unused_types): Likewise.
2308 (resolve_addr): Likewise.
2309 (optimize_location_lists_1): Likewise.
2310 (index_location_lists): Likewise.
2311 (dwarf2out_finish): Likewise.
2313 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2315 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
2317 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2319 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
2320 (dump_asserts_for): Adjust.
2321 (register_new_assert_for): Likewise.
2322 (process_assert_insertions): Likewise.
2323 (insert_range_assertions): Likewise.
2325 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2327 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
2329 (new_temp_expr_table): Adjust.
2330 (free_temp_expr_table): Likewise.
2331 (version_to_be_replaced_p): Likewise.
2332 (make_dependent_on_partition): Likewise.
2333 (add_to_partition_kill_list): Likewise.
2334 (remove_from_partition_kill_list): Likewise.
2335 (add_dependence): Likewise.
2336 (finished_with_expr): Likewise.
2337 (process_replaceable): Likewise.
2338 (kill_expr): Likewise.
2339 (kill_virtual_exprs): Likewise.
2340 (mark_replaceable): Likewise.
2341 (find_replaceable_in_bb): Likewise.
2342 (find_replaceable_exprs): Likewise.
2343 (debug_ter): Likewise.
2345 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2347 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
2348 (struct btr_user): Rename from btr_user_s.
2349 (struct btr_def): Rename from btr_def_s.
2350 (find_btr_def_group): Adjust.
2351 (add_btr_def): Likewise.
2352 (new_btr_user): Likewise.
2353 (note_other_use_this_block): Likewise.
2354 (compute_defs_uses_and_gen): Likewise.
2355 (link_btr_uses): Likewise.
2356 (build_btr_def_use_webs): Likewise.
2357 (block_at_edge_of_live_range_p): Likewise.
2358 (btr_def_live_range): Likewise.
2359 (combine_btr_defs): Likewise.
2360 (move_btr_def): Likewise.
2361 (migrate_btr_def): Likewise.
2362 (migrate_btr_defs): Likewise.
2364 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2366 * var-tracking.c (shared_hash_def): Rename to shared_hash.
2367 (shared_hash): Remove typedef.
2368 (struct dataflow_set): Adjust.
2369 (shared_hash_unshare): Likewise.
2370 (dataflow_set_merge): Likewise.
2371 (vt_initialize): Likewise.
2372 (vt_finalize): Likewise.
2374 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2376 * var-tracking.c (struct location_chain): Rename from
2378 (struct variable_part): Adjust.
2379 (variable_htab_free): Likewise.
2380 (unshare_variable): Likewise.
2381 (get_init_value): Likewise.
2382 (get_addr_from_local_cache): Likewise.
2383 (drop_overlapping_mem_locs): Likewise.
2384 (val_reset): Likewise.
2385 (struct variable_union_info): Likewise.
2386 (variable_union): Likewise.
2387 (find_loc_in_1pdv): Likewise.
2388 (insert_into_intersection): Likewise.
2389 (intersect_loc_chains): Likewise.
2390 (canonicalize_loc_order_check): Likewise.
2391 (canonicalize_values_mark): Likewise.
2392 (canonicalize_values_star): Likewise.
2393 (canonicalize_vars_star): Likewise.
2394 (variable_merge_over_cur): Likewise.
2395 (remove_duplicate_values): Likewise.
2396 (variable_post_merge_new_vals): Likewise.
2397 (variable_post_merge_perm_vals): Likewise.
2398 (find_mem_expr_in_1pdv): Likewise.
2399 (dataflow_set_preserve_mem_locs): Likewise.
2400 (dataflow_set_remove_mem_locs): Likewise.
2401 (variable_part_different_p): Likewise.
2402 (onepart_variable_different_p): Likewise.
2403 (find_src_set_src): Likewise.
2404 (dump_var): Likewise.
2405 (set_slot_part): Likewise.
2406 (clobber_slot_part): Likewise.
2407 (delete_slot_part): Likewise.
2408 (vt_expand_var_loc_chain): Likewise.
2409 (emit_note_insn_var_location): Likewise.
2410 (vt_finalize): Likewise.
2412 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2414 * dse.c (store_info_t): Remove typedef.
2415 (group_info_t): Likewise.
2416 (const_group_info_t): Likewise.
2417 (deferred_change_t): Likewise.
2418 (get_group_info): Adjust.
2419 (free_store_info): Likewise.
2420 (canon_address): Likewise.
2421 (clear_rhs_from_active_local_stores): Likewise.
2422 (record_store): Likewise.
2423 (replace_read): Likewise.
2424 (check_mem_read_rtx): Likewise.
2425 (scan_insn): Likewise.
2426 (remove_useless_values): Likewise.
2427 (dse_step1): Likewise.
2428 (dse_step2_init): Likewise.
2429 (dse_step2_nospill): Likewise.
2430 (scan_stores_nospill): Likewise.
2431 (scan_reads_nospill): Likewise.
2432 (dse_step3_exit_block_scan): Likewise.
2433 (dse_step3): Likewise.
2434 (dse_step5_nospill): Likewise.
2435 (dse_step6): Likewise.
2437 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2439 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
2440 (alias_set_entry): Remove typedef.
2441 (alias_set_subset_of): Adjust.
2442 (alias_sets_conflict_p): Likewise.
2443 (init_alias_set_entry): Likewise.
2444 (get_alias_set): Likewise.
2445 (new_alias_set): Likewise.
2446 (record_alias_subset): Likewise.
2448 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
2450 * doc/install.texi (Downloading the source): Mark up
2451 contrib/download_prerequisites properly and drop leading "./".
2453 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2455 * config/arc/arc.h: Remove define of STRUCT_VALUE.
2456 * config/lm32/lm32.h: Likewise.
2457 * config/mep/mep.h: Likewise.
2458 * config/visium/visium.h: Likewise.
2459 * system.h: Poison STRUCT_VALUE macro.
2461 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
2463 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
2464 CONSTANT_P operands.
2466 2015-09-11 David S. Miller <davem@davemloft.net>
2468 * config/sparc/constraints.md: Make "U" constraint a real register
2470 * config/sparc/sparc.c (TARGET_LRA_P): Define.
2471 (D_MODES, DF_MODES): Add missing cast.
2472 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
2473 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
2474 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
2476 * config/sparc/sparc.h (PROMOTE_MODE): Define.
2477 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2478 provide these insn when flag_pic.
2480 2015-09-11 Jeff Law <law@redhat.com>
2482 PR tree-optimization/47679
2483 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
2484 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
2485 member with m_. Update inline member functions as necessary. Add
2487 * tree-ssa-scopedtables.c: Update const_and_copies's member
2488 functions to use m_ prefix to access the stack.
2490 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
2492 * graphite-optimize-isl.c (disable_tiling): Remove.
2493 (get_schedule_for_band): Do not use disable_tiling.
2494 (get_prevector_map): Delete function.
2495 (enable_polly_vector): Remove.
2496 (get_schedule_for_band_list): Remove dead code.
2498 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
2500 * graphite-optimize-isl.c (get_tile_map): Refactor.
2501 (get_schedule_for_band): Same.
2502 (getScheduleForBand): Same.
2503 (get_prevector_map): Same.
2504 (get_schedule_for_band_list): Same.
2505 (get_schedule_map): Same.
2506 (get_single_map): Same.
2507 (apply_schedule_map_to_scop): Same.
2508 (optimize_isl): Same.
2510 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2513 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
2515 * config/aarch64/iterators.md (GPF_TF_F16): New.
2518 2015-09-10 Nathan Sidwell <nathan@acm.org>
2520 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
2521 (nvptx_reorg): Adjust comments.
2523 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
2526 * configure.ac: Check if setenv and unsetenv are declared.
2527 * configure: Rebuild.
2528 * config.in: Rebuild.
2529 * system.h: Declare setenv and unsetenv if not declared.
2531 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2533 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
2534 commentary to simplify permute mask adjustment equation.
2535 (special_handling_values): Add SH_VPERM.
2536 (const_load_sequence_p): New function.
2537 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
2538 the mask loaded from the constant pool.
2539 (adjust_vperm): New function.
2540 (handle_special_swappables): Call adjust_vperm.
2541 (dump_swap_insn_table): Handle SH_VPERM.
2543 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
2545 * shrink-wrap.c (requires_stack_frame_p): Remove static.
2546 * shrink-wrap.h (requires_stack_frame_p): Put back.
2548 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
2550 * reload1.c (elimination_costs_in_insn): Locally turn
2551 -Wmaybe-uninitialized into a warning.
2553 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
2555 * shrink-wrap.c (requires_stack_frame_p): Make static.
2556 (prepare_shrink_wrap): Likewise.
2557 (dup_block_and_redirect): Likewise.
2558 * shrink-wrap.h: Remove declarations of those functions.
2560 2015-09-10 Mark Wielaard <mjw@redhat.com>
2562 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
2564 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
2567 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
2568 missing simplify_gen_subreg.
2570 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2572 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
2573 the vector element is bigger than 64 bit.
2575 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2577 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
2578 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
2580 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2582 * config/s390/s390.c: Add V1TImode to constant pool modes.
2584 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2587 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
2588 predicate. Set predicable_short_it attr to "no".
2590 2015-09-10 Jiong Wang <jiong.wang@arm.com>
2592 PR rtl-optimization/67421
2593 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
2594 left wide shift tranformation.
2596 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2598 * common/config/arc/arc-common.c: Remove references to A5.
2599 * config/arc/arc-opts.h: Likewise.
2600 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
2601 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
2602 * config/arc/t-arc-newlib: Likewise.
2604 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2606 * config/arc/arc.md (length): Fix attribute length for conditional
2607 executed instructions with long immediate.
2609 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2611 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
2612 type for second alternative.
2614 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
2616 * doc/invoke.texi (Downloading GCC): Mention
2617 contrib/download_prerequisites script.
2619 2015-09-10 Jakub Jelinek <jakub@redhat.com>
2622 * gimplify.c (gimplify_omp_for): If inner stmt is not found
2623 for combined loop, assert seen_error () and return GS_ERROR.
2626 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
2627 if decl is already in outer->variables.
2630 * gimplify.c (gimplify_scan_omp_clauses): Instead of
2631 asserting that decl is not specified in octx->variables,
2632 break out of the loop if it is.
2635 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
2636 iterator is not explicitly determined, but is defined inside
2637 of the combined workshare region, handle it like if it has
2638 DECL_EXPR in OMP_FOR_PRE_BODY.
2640 2015-09-09 Nathan Sidwell <nathan@acm.org>
2642 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
2643 (*cmp<mode>): Add assembler spacing.
2644 (setcc_int<mode>, set_cc_float<mode>): Likewise.
2645 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
2647 (write_func_decl_from_insn): Refactor argument loops & comma emission.
2648 (nvptx_expand_call): Likewise.
2649 (nvptx_output_call_insn): Likewise.
2650 (nvptx_reorg_subreg): Add spacing.
2652 2015-09-09 Marek Polacek <polacek@redhat.com>
2655 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
2658 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2661 * doc/invoke.texi ([Wsubobject-linkage]): Document.
2663 2015-09-09 Tom de Vries <tom@codesourcery.com>
2665 * params-list.h: Add missing copyright notice.
2667 2015-09-09 Nathan Sidwell <nathan@acm.org>
2669 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
2670 sel_truesi, not andsi.
2672 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2674 * config/arm/arm.md (*subsi3_compare0): Rename to...
2675 (subsi3_compare0): ... This.
2676 (modsi3): New define_expand.
2677 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
2678 when operand is power of 2.
2680 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2682 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
2683 (*neg<mode>2_compare0): Rename to...
2684 (neg<mode>2_compare0): ... This.
2685 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
2686 Move check for speed inside the if-then-elses. Reflect
2687 CSNEG sequence in MOD by power of 2 case.
2689 2015-09-09 Alan Modra <amodra@gmail.com>
2692 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
2693 reload replacement for PRE_MODIFY address reg.
2695 2015-09-09 Sebastian Pop <s.pop@samsung.com>
2697 PR tree-optimization/53852
2698 * config.in: Regenerate.
2699 * configure: Regenerate.
2700 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
2701 * graphite-optimize-isl.c (optimize_isl): Stop computation when
2702 PARAM_MAX_ISL_OPERATIONS is reached.
2703 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
2704 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
2705 result equal to isl_stat_ok as the status now can be isl_error_quota.
2706 (subtract_commutative_associative_deps): Same.
2707 (compute_deps): Same.
2709 2015-09-08 Aditya Kumar <hiraditya@msn.com>
2710 Sebastian Pop <s.pop@samsung.com>
2712 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2713 Return the parameter if it was saved in corresponding
2714 parameter_rename_map of the region.
2715 (copy_def): Copy def from sese region to the newly created region.
2716 (copy_internal_parameters): Copy all the internal parameters defined
2717 within a region to the newly created region.
2718 (graphite_regenerate_ast_isl): Copy parameters to the new region before
2719 translating isl to gimple.
2720 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
2721 the loop-nest does not have any data-references.
2722 (build_graphite_scops): Create a scop only when there is at least one
2724 (contains_only_close_phi_nodes): Deleted.
2725 (print_graphite_scop_statistics): Deleted
2726 (print_graphite_statistics): Deleted
2727 (limit_scops): Deleted.
2728 (build_scops): Removed call to limit_scops.
2729 * sese.c (new_sese): Construct.
2730 (free_sese): Destruct.
2731 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
2733 (set_rename): Pass sese region so that parameters inside the region can
2734 be added to its parameter_rename_map.
2735 (rename_uses): Pass sese region.
2736 (graphite_copy_stmts_from_block): Do not copy parameters that have been
2737 generated in the header of the scop. For each SSA_NAME in the
2738 parameter_rename_map rename its usage.
2739 (invariant_in_sese_p_rec): Return false if tree t is defined outside
2741 (scalar_evolution_in_region): If the tree t is invariant just return t.
2742 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
2743 struct sese to keep track of all the parameters which need renaming.
2744 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
2746 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
2748 2015-09-08 Tom de Vries <tom@codesourcery.com>
2750 * Makefile.in (generated_files): Add params.list.
2751 (params.list, s-params.list): Add rule.
2752 * params.h (enum compiler_param): Include params-list.h. Move define
2753 DEFPARAM, include params.def and undef DEFPARAM ...
2754 * params-list.h: ... here. New file.
2756 2015-09-08 David Malcolm <dmalcolm@redhat.com>
2758 * pretty-print.h (printer_fn): Fix typo in comment.
2760 2015-09-07 Jeff Law <law@redhat.com>
2762 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
2764 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2766 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
2767 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
2768 (arm_neon_fp16_hw): New.
2770 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2772 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
2773 UNITS_PER_WORD >= 4.
2775 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2777 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
2778 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
2779 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
2780 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
2781 (aarch64_float_extend_lo_v2df): Rename to...
2782 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
2784 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
2785 (float_extend_lo): Add v4sf.
2787 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
2788 * config/aarch64/iterators.md (VQ_HSF): New iterator.
2789 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
2790 (Vwide): New mode_attr.
2792 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2794 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
2795 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
2796 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
2797 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
2798 V4HF and V8HF variants to iterator.
2800 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
2802 * config/aarch64/iterators.md (VDQF_F16): New.
2803 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
2805 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2807 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
2808 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2809 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
2810 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
2811 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
2812 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2813 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
2814 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
2815 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
2816 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
2817 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
2818 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2819 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
2820 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
2821 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
2822 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
2823 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
2824 vld1q_dup_f16): New.
2826 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2828 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
2829 Reparameterize to...
2830 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
2831 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
2832 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
2834 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
2836 (float_truncate_lo_): Use BUILTIN_VDF iterator.
2838 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
2840 * config/aarch64/iterators.md (VDF, Vdtype): New.
2841 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
2843 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2845 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
2846 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
2847 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
2848 Add __builtin_aarch64_simd_hf.
2849 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
2850 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
2851 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
2852 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
2853 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
2854 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
2855 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
2856 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
2857 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
2859 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
2860 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
2861 (VDC, Vdbl): Add V4HF.
2863 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2865 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
2866 V4HFmode and V8HFmode.
2867 (aarch64_split_simd_move): Add case for V8HFmode.
2868 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
2869 (aarch64_simd_builtin_std_type): Handle HFmode.
2870 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
2872 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
2873 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
2874 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
2876 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
2879 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
2880 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
2882 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
2883 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
2884 vst1q_lane_f16): New.
2885 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
2886 (VALLDI_F16, VALL_F16): New.
2887 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
2888 Add cases for V4HF and V8HF.
2889 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
2891 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2893 * config/arm/arm-builtins.c (VAR11, VAR12): New.
2894 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
2895 vld4_dup): Add v4hf variant.
2896 (vget_high, vget_low): Add v8hf variant.
2897 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
2898 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
2899 v4hf and v8hf variants.
2901 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
2903 (V_DOUBLE): Add case for V4HF.
2905 (V_HALF): Add case for V8HF.
2906 (VDQX): Add V4HF, V8HF.
2907 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
2908 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
2910 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
2911 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
2912 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
2913 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
2914 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
2915 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
2916 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
2917 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
2918 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
2920 (neon_vcreate, neon_vreinterpretv8qi<mode>,
2921 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
2922 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
2923 Change VDX to VD_RE.
2925 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
2926 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
2927 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
2929 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
2930 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
2931 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
2932 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
2933 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
2934 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
2935 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
2936 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
2937 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
2939 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2941 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
2942 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
2943 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
2944 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
2945 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2946 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
2947 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
2948 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
2949 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
2950 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
2953 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2955 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
2957 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
2959 * config/arm/arm-builtins.c (v8hf_UP): New.
2960 (arm_init_simd_builtin_types): Initialise Float16x8_t.
2962 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
2964 * config/arm/arm_neon.h (float16x8_t): New typedef.
2966 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2968 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
2969 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
2970 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
2971 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
2972 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2973 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
2974 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
2975 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
2976 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2977 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
2979 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
2981 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
2982 non-alphanumeric characters in the symbol name.
2984 2015-09-07 Marek Polacek <polacek@redhat.com>
2987 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
2990 2015-09-07 Marek Polacek <polacek@redhat.com>
2992 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
2994 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
2996 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
2999 2015-09-04 Jakub Jelinek <jakub@redhat.com>
3002 * tree-ssa-live.c: Include cfgloop.h.
3003 (remove_unused_locals): Clear loop->simduid if simduid is about
3004 to be removed from cfun->local_decls.
3006 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3009 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
3012 2015-09-04 Tom de Vries <tom@codesourcery.com>
3014 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
3016 2015-09-04 Jeff Law <law@redhat.com>
3018 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
3019 unnecessary constructor. It's now trivial and implemented inside...
3020 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
3021 constructor. Add comments to various methods. Remove unused
3023 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
3024 * tree-vrp.c (identify_jump_threads): Likewise.
3025 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
3027 (thread_across_edge): Similarly.
3028 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
3029 arguments in constructor call.
3031 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
3033 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
3034 temp path contains a '-'.
3036 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
3037 Petr Murzin <petr.murzin@intel.com>
3038 Kirill Yukhin <kirill.yukhin@intel.com>
3040 * config/i386/i386-builtin-types.def
3041 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
3042 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
3043 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
3044 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
3045 * config/i386/i386.c
3046 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
3047 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
3048 IX86_BUILTIN_SCATTERALTDIV16SI.
3049 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
3050 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
3051 __builtin_ia32_scatteraltdiv8si.
3052 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
3053 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
3054 IX86_BUILTIN_SCATTERALTDIV16SI.
3055 (ix86_vectorize_builtin_scatter): New.
3056 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
3057 ix86_vectorize_builtin_scatter.
3059 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
3060 Petr Murzin <petr.murzin@intel.com>
3061 Kirill Yukhin <kirill.yukhin@intel.com>
3063 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
3064 * doc/tm.texi: Regenerate.
3065 * target.def: Add scatter builtin.
3066 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
3067 for loads/stores in case of gather/scatter accordingly.
3068 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
3069 STMT_VINFO_GATHER_P(S).
3070 (vect_check_gather): Rename to ...
3071 (vect_check_gather_scatter): this.
3072 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
3073 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
3074 (vect_check_gather_scatter): Use it instead of vect_check_gather.
3075 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
3076 variable and new checkings for it accordingly.
3078 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
3079 STMT_VINFO_GATHER_P(S).
3080 (vect_check_gather_scatter): Use it instead of vect_check_gather.
3081 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
3083 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
3085 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
3087 (mulv16qi3): New define_expand.
3089 2015-09-03 Martin Sebor <msebor@redhat.com>
3092 * doc/extend.texi (Other Builtins): Document when the address
3093 of a built-in function can be taken.
3095 2015-09-03 Richard Biener <rguenther@suse.de>
3097 * dwarf2out.c (flush_limbo_die_list): Split out from ...
3098 (dwarf2out_early_finish): ... here.
3099 (dwarf2out_finish): Do not call dwarf2out_early_finish but
3100 flush_limbo_die_list. Assert we have no deferred asm names.
3102 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3104 * optabs.c (expand_binop): Don't create a broadcast vector with a
3105 source element wider than the inner mode.
3107 2015-09-03 Richard Biener <rguenther@suse.de>
3109 * varasm.c (output_constant): Use fold_convert instead of
3112 2015-09-03 Tom de Vries <tom@codesourcery.com>
3114 PR tree-optimization/65637
3115 * omp-low.c (expand_omp_for_static_chunk): Handle case that
3116 fin_bb has 2 predecessors.
3118 2015-09-03 Tom de Vries <tom@codesourcery.com>
3120 PR tree-optimization/65637
3121 * omp-low.c (find_phi_with_arg_on_edge): New function.
3122 (expand_omp_for_static_chunk): Fix inner loop phi.
3124 2015-09-03 Tom de Vries <tom@codesourcery.com>
3126 PR tree-optimization/65637
3127 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
3130 2015-09-03 Tom de Vries <tom@codesourcery.com>
3132 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
3134 2015-09-03 Tom de Vries <tom@codesourcery.com>
3136 * doc/invoke.texi (parloops-chunk-size): Add item.
3137 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
3138 * tree-parloops.c: Include params.h.
3139 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
3140 param parloops-chunk-size is used.
3142 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3145 * fold-const.c (fold_binary_loc) : Move
3146 Transform (x >> c) << c into x & (-1<<c) or
3147 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
3148 types using simplify and match.
3149 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
3150 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
3152 2015-09-03 Richard Biener <rguenther@suse.de>
3155 * tree-ssa-structalias.c (ctor_for_analysis): New function.
3156 (create_variable_info_for_1): Use ctor_for_analysis instead
3158 (create_variable_info_for): Likewise.
3160 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
3163 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
3164 in new callgraph edge.
3166 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
3171 * config/aarch64/aarch64-simd.md
3172 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
3173 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
3174 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
3175 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
3177 2015-09-02 Alan Modra <amodra@gmail.com>
3179 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
3180 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
3181 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
3183 2015-09-02 Alan Modra <amodra@gmail.com>
3186 * config/rs6000/predicates.md (current_file_function_operand): Don't
3187 return true for weak symbols.
3188 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
3190 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
3191 Andrew Bennett <andrew.bennett@imgtec.com>
3193 * config/mips/mips-opts.h (mips_cb_setting): New enum.
3194 * config/mips/mips-protos.h: Add definitions for
3195 mips_output_jump and mips_output_equal_conditional_branch
3196 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
3198 (mips_emit_compare): Add support for the MIPS R6 conditional
3200 (mips_process_sync_loop): Likewise.
3201 (mips_output_order_conditional_branch): Likewise.
3202 (mips16_build_call_stub): Change MIPS_CALL to
3204 (mips_print_operand_punctuation): Update 's' case to only
3205 apply to micromips r2.
3206 (mips_adjust_insn_length): Add support for forbidden slot
3208 (mips_avoid_hazard): Likewise.
3209 (mips_reorg_process_insns): Likewise.
3210 (mips_output_jump): New function.
3211 (mips_output_equal_conditional_branch): Likewise.
3212 (mips_output_conditional_branch): Use jrc/bc if compact
3213 branch support is enabled. Ensure the forbidden slots
3214 between the two branch instructions is filled with a nop.
3215 (mips_option_override): Add support to process the compact
3216 branch option and set the correct defaults. Prevent
3217 non-explict relocs being using for MIPS R6.
3218 (mips_trampoline_init): Add compact branch support.
3219 (mips_mult_zero_zero_cost): Allow zero initialisation of
3220 accumulators with TARGET_DSP.
3221 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
3222 (TARGET_CB_MAYBE): New define.
3223 (TARGET_CB_ALWAYS): New define.
3224 (ISA_HAS_DELAY_SLOTS): New define.
3225 (ISA_HAS_COMPACT_BRANCHES): New define.
3226 (ISA_HAS_JRC): New define.
3227 (MIPS_BRANCH_C): New define.
3228 (MIPS_CALL): Removed.
3229 (MICROMIPS_J): Removed.
3230 * config/mips/mips.md (compact_form): New attr.
3231 (hazard): Add support for forbidden slots.
3232 (define_delay): Add support for compact branches.
3233 (*branch_order<mode>): Likewise.
3234 (*branch_order<mode>_inverted): Likewise.
3235 (*branch_equality<mode>): Likewise.
3236 (*branch_equality<mode>_inverted): Likewise.
3237 (*jump_absolute): Likewise.
3238 (*jump_pic): Likewise.
3239 (indirect_jump): Use mips_output_jump to produce assembly output.
3240 (tablejump_<mode>"): Likewise.
3241 (*<optab>"): Likewise.
3242 (<optab>_internal): Likewise.
3243 (sibcall_internal): Likewise.
3244 (sibcall_value_internal): Likewise.
3245 (sibcall_value_multiple_internal): Likewise.
3246 (call_internal): Likewise.
3247 (call_split): Likewise.
3248 (call_internal_direct): Likewise.
3249 (call_direct_split): Likewise.
3250 (call_value_internal): Likewise.
3251 (call_value_split): Likewise.
3252 (call_value_internal_direct): Likewise.
3253 (call_value_direct_split): Likewise.
3254 (call_value_multiple_internal): Likewise.
3255 (call_value_multiple_split): Likewise.
3256 (mips_get_fcsr_mips16_<mode>): Likewise.
3257 (mips_set_fcsr_mips16_<mode>): Likewise.
3258 (tls_get_tp_mips16_<mode>): Likewise.
3259 * config/mips/mips.opt: Add -mcompact-branches option.
3260 * config/mips/predicates.md (order_operator): Ensure the
3261 conditional compact branches are only used if the ISA them.
3262 * doc/invoke.texi: Document -mcompact-branches option.
3264 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
3267 * lra-lives.c (process_bb_lives): Process move pseudos with the
3268 same value for copies and preferences
3269 * lra-constraints.c (match_reload): Create match reload pseudo
3270 with the same value from single dying input pseudo.
3272 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
3275 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
3277 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
3279 * trans-mem.c: Add contributed-by.
3280 * trans-mem.h: Same.
3282 2015-09-01 Richard Biener <rguenther@suse.de>
3284 * expr.c (expand_expr_real_1): For expanding TERed defs
3285 set the current location to that of the def if not UNKNOWN.
3287 2015-09-01 David Sherwood <david.sherwood@arm.com>
3289 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
3291 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3293 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
3294 then_cost, else_cost fields. Change branch_cost field to unsigned int.
3295 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
3297 (noce_simple_bbs): New function.
3298 (noce_try_move): Bail if basic blocks are not simple.
3299 (noce_try_store_flag): Likewise.
3300 (noce_try_store_flag_constants): Likewise.
3301 (noce_try_addcc): Likewise.
3302 (noce_try_store_flag_mask): Likewise.
3303 (noce_try_cmove): Likewise.
3304 (noce_try_minmax): Likewise.
3305 (noce_try_abs): Likewise.
3306 (noce_try_sign_mask): Likewise.
3307 (noce_try_bitop): Likewise.
3308 (bbs_ok_for_cmove_arith): New function.
3309 (noce_emit_all_but_last): Likewise.
3310 (noce_emit_insn): Likewise.
3311 (noce_emit_bb): Likewise.
3312 (noce_try_cmove_arith): Handle non-simple basic blocks.
3313 (insn_valid_noce_process_p): New function.
3314 (contains_mem_rtx_p): Likewise.
3315 (bb_valid_for_noce_process_p): Likewise.
3316 (noce_process_if_block): Allow non-simple basic blocks
3319 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
3321 * tree-ssa-dom.c (record_equivalences_from_phis,
3322 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
3323 (lookup_avail_expr): Likewise, and remove comment and unused temp.
3325 2015-09-01 Nick Clifton <nickc@redhat.com>
3327 * config/msp430/msp430.opt (mcpu): Fix typo.
3329 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3331 * config/aarch64/aarch64.c (aarch64_set_current_function):
3332 Re-layout any vector parameters have non-simd layout.
3333 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
3335 (aarch64_simd_expand_args): Delete call to the above.
3337 2015-08-31 Mike Frysinger <vapier@gentoo.org>
3339 * doc/invoke.texi (asan-stack): Add space before option.
3341 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
3343 * tree.h (zerop): New function.
3344 * tree.c (zerop): Likewise.
3345 (element_precision): Handle expressions.
3346 * match.pd (define_predicates): Add zerop.
3347 (x <= +Inf): Fix comment.
3348 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
3349 * fold-const.c (fold_binary_loc): ... here. Remove.
3351 2015-08-31 Richard Biener <rguenther@suse.de>
3354 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
3356 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
3358 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
3359 (CEXPI): New operator list.
3360 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
3361 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
3363 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
3365 2015-08-31 Tom de Vries <tom@codesourcery.com>
3367 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
3368 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
3370 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
3371 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
3372 (rewrite_into_loop_closed_ssa): ... here.
3373 (replace_uses_in_dominated_bbs): Remove function.
3374 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
3375 rewrite_into_loop_closed_ssa_1.
3377 2015-08-31 Michael Matz <matz@suse.de>
3379 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
3380 enter entry and exit blocks for reverse post order.
3382 2015-08-31 Richard Biener <rguenther@suse.de>
3384 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
3385 (lto_location_cache::current_sysp): Likewise.
3386 (output_block::current_sysp): Likewise.
3387 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
3388 (lto_location_cache::apply_location_cache): Properly record
3389 system header locations.
3390 (lto_location_cache::input_location): Input whether a file
3392 * lto-streamer-out.c (lto_output_location): Stream whether a file
3395 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3398 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
3400 2015-08-31 Tom de Vries <tom@codesourcery.com>
3402 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
3403 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
3404 Improve function header comments.
3406 2015-08-30 Michael Collison <michael.collison@linaro.org>
3409 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
3412 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3414 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
3415 special_handling bitfield.
3416 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
3417 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
3418 that represents a general xxpermdi.
3419 (insn_is_swappable_p): Add handling for vec_concat of two
3420 doublewords, which maps to a specific xxpermdi.
3421 (adjust_xxpermdi): New function.
3422 (adjust_concat): Likewise.
3423 (handle_special_swappables): Call adjust_xxpermdi and
3425 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
3427 2015-08-30 Rich Felker <dalias@libc.org>
3429 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
3430 case instead of sh[123456ble]-*-*.
3432 2015-08-29 Anatoly Sokolov <aesok@post.ru>
3434 * ira.c (print_unform_and_important_classes,
3435 print_translated_classes): Remove reg_class_names static array.
3436 (print_unform_and_important_classes): Rename to ...
3437 (print_uniform_and_important_classes): ... this.
3438 (ira_debug_allocno_classes): Update accordingly.
3440 2015-08-29 Tom de Vries <tom@codesourcery.com>
3442 PR tree-optimization/46193
3443 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
3446 2015-08-28 Jeff Law <law@redhat.com>
3449 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
3450 unable to find X NE 0 in the tables, return X as the simplified
3452 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
3453 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
3455 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
3456 after removing the control flow statement and unnecessary edges.
3458 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
3461 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3463 PR tree-optimization/67283
3464 * tree-sra.c (type_consists_of_records_p): Rename to...
3465 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3467 (completely_scalarize_record): Rename to...
3468 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
3470 (scalarize_elem): New.
3472 2015-08-28 Jiong Wang <jiong.wang@arm.com>
3474 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
3475 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
3476 (aarch64_symbol_type): Likewise.
3477 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3479 (aarch64_expand_mov_immediate): Likewise.
3480 (aarch64_print_operand): Likewise.
3481 (aarch64_classify_tls_symbol): Likewise.
3483 2015-08-28 Richard Biener <rguenther@suse.de>
3485 * cgraphunit.c (symbol_table::compile): Move early debug generation
3487 (symbol_table::finalize_compilation_unit): ... back here and
3488 add a !seen_error () guard.
3490 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3492 * toplev.c (process_options): Do not use flag_loop_block,
3493 flag_loop_interchange, and flag_loop_strip_mine. Add check for
3494 flag_loop_optimize_isl.
3496 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3498 * Makefile.in (OBJS): Remove graphite-blocking.o and
3499 graphite-interchange.o.
3500 * common.opt (floop-strip-mine, floop-interchange, floop-block):
3501 Alias of floop-nest-optimize.
3502 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
3503 Document as alias of -floop-nest-optimize.
3504 * graphite-blocking.c: Remove.
3505 * graphite-interchange.c: Remove.
3506 * graphite-optimize-isl.c: Include dumpfile.h.
3507 (getScheduleForBand): Add dump for tiled loops. Use
3508 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
3509 * graphite-poly.c (scop_max_loop_depth): Remove.
3510 (print_scattering_function_1): Remove.
3511 (print_scattering_function): Remove.
3512 (print_scattering_functions): Remove.
3513 (debug_scattering_function): Remove.
3514 (debug_scattering_functions): Remove.
3515 (apply_poly_transforms): Remove use of flag_loop_block,
3516 flag_loop_strip_mine, and flag_loop_interchange.
3517 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
3519 (print_pdr_access_layout): Remove.
3520 (print_pdr): Print ISL representation.
3521 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
3522 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
3524 (openscop_print_pbb_domain): Remove.
3525 (print_pbb): Remove call to print_scattering_function.
3526 (openscop_print_scop_context): Remove.
3527 (print_scop_context): Do not print matrices anymore.
3528 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
3529 SCOP_TRANSFORMED_SCHEDULE.
3530 (print_isl_set): Add printing of a new line.
3531 (print_isl_map): Same.
3532 (print_isl_aff): Same.
3533 (print_isl_constraint): Same.
3534 (loop_to_lst): Remove.
3535 (scop_to_lst): Remove.
3536 (lst_indent_to): Remove.
3537 (print_lst): Remove.
3538 (debug_lst): Remove.
3539 (dot_lst_1): Remove.
3541 (reverse_loop_at_level): Remove.
3542 (reverse_loop_for_pbbs): Remove.
3543 * graphite-poly.h (pdr_dim_iter_domain): Remove.
3544 (pdr_nb_params): Remove.
3545 (pdr_alias_set_dim): Remove.
3546 (pdr_subscript_dim): Remove.
3547 (pdr_iterator_dim): Remove.
3548 (pdr_parameter_dim): Remove.
3549 (same_pdr_p): Remove.
3550 (struct poly_scattering): Remove.
3551 (struct poly_bb): Remove _original, _transformed, _saved.
3552 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
3553 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
3554 (PBB_NB_LOCAL_VARIABLES): Remove.
3555 (PBB_NB_SCATTERING_TRANSFORM): Remove.
3556 (schedule_to_scattering): Remove.
3557 (number_of_write_pdrs): Remove.
3558 (pbb_dim_iter_domain): Remove.
3559 (pbb_nb_params): Remove.
3560 (pbb_nb_scattering_orig): Remove.
3561 (pbb_nb_scattering_transform): Remove.
3562 (pbb_nb_dynamic_scattering_transform): Remove.
3563 (pbb_nb_local_vars): Remove.
3564 (pbb_iterator_dim): Remove.
3565 (pbb_parameter_dim): Remove.
3566 (psco_scattering_dim): Remove.
3567 (psct_scattering_dim): Remove.
3568 (psct_local_var_dim): Remove.
3569 (psco_iterator_dim): Remove.
3570 (psct_iterator_dim): Remove.
3571 (psco_parameter_dim): Remove.
3572 (psct_parameter_dim): Remove.
3573 (psct_dynamic_dim): Remove.
3574 (psct_static_dim): Remove.
3575 (psct_add_local_variable): Remove.
3576 (new_lst_loop): Remove.
3577 (new_lst_stmt): Remove.
3580 (lst_add_loop_under_loop): Remove.
3581 (lst_depth): Remove.
3582 (lst_dewey_number): Remove.
3583 (lst_dewey_number_at_depth): Remove.
3586 (lst_find_pbb): Remove.
3587 (find_lst_loop): Remove.
3588 (lst_find_first_pbb): Remove.
3589 (lst_empty_p): Remove.
3590 (lst_find_last_pbb): Remove.
3591 (lst_contains_p): Remove.
3592 (lst_contains_pbb): Remove.
3593 (lst_create_nest): Remove.
3594 (lst_remove_from_sequence): Remove.
3595 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
3596 (lst_niter_for_loop): Remove.
3597 (pbb_update_scattering): Remove.
3598 (lst_update_scattering_under): Remove.
3599 (lst_update_scattering): Remove.
3600 (lst_insert_in_sequence): Remove.
3601 (lst_replace): Remove.
3602 (lst_substitute_3): Remove.
3603 (lst_distribute_lst): Remove.
3604 (lst_remove_all_before_including_pbb): Remove.
3605 (lst_remove_all_before_excluding_pbb): Remove.
3606 (struct scop): Remove original_schedule, transformed_schedule, and
3608 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
3609 (SCOP_SAVED_SCHEDULE): Remove.
3610 (poly_scattering_new): Remove.
3611 (poly_scattering_free): Remove.
3612 (poly_scattering_copy): Remove.
3613 (store_scattering_pbb): Remove.
3614 (store_lst_schedule): Remove.
3615 (restore_lst_schedule): Remove.
3616 (store_scattering): Remove.
3617 (restore_scattering_pbb): Remove.
3618 (restore_scattering): Remove.
3619 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3620 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
3621 compute the scattering polyhedron dimension from the dimension of
3623 (build_scop_scattering): Update call to
3624 build_pbb_scattering_polyhedrons.
3625 (build_poly_scop): Remove call to scop_to_lst.
3626 * graphite.c (graphite_transform_loops): Add call to print_scop.
3627 (gate_graphite_transforms): Remove use of flag_loop_block,
3628 flag_loop_interchange, and flag_loop_strip_mine.
3630 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3632 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
3633 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
3634 -floop-nest-optimize.
3635 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
3636 (generate_luj_sepclass): Remove.
3637 (generate_luj_options): Remove.
3638 (set_options): Remove opt_luj.
3639 (scop_to_isl_ast): Remove opt_luj.
3640 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
3641 flag_loop_unroll_jam.
3642 (getPrevectorMap_full): Remove.
3643 (getScheduleForBandList): Remove map_sepcl.
3644 (getScheduleMap): Same.
3645 (apply_schedule_map_to_scop): Remove sepcl.
3646 (optimize_isl): Same.
3647 * graphite-poly.c (apply_poly_transforms): Remove check for
3648 flag_loop_unroll_jam.
3649 (new_poly_bb): Remove map_sepclass.
3650 * graphite-poly.h (struct poly_bb): Same.
3651 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
3652 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
3653 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
3654 * toplev.c (process_options): Remove flag_loop_unroll_jam.
3656 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
3659 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
3661 (UNSPEC_ADD_CARRY): Remove.
3662 (addqi3_cconly_overflow): New expander.
3663 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
3664 Adjust for changed add<mode>3_carry.
3665 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
3666 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
3667 (<plusminus_insn><mode>3_carry): Remove expander.
3668 (*<plusminus_insn><mode>3_carry): Split insn pattern to
3669 add<mode>3_carry and sub<mode>3_carry.
3670 (plusminus_carry_mnemonic): Remove code attribute.
3671 (add<mode>3_carry): Canonicalize insn pattern.
3672 (*addsi3_carry_zext): Ditto.
3673 (sub<mode>3_carry): Ditto.
3674 (*subsi3_carry_zext): Ditto.
3675 (adcx<mode>3): Remove insn pattern.
3676 (addcarry<mode>): New insn pattern.
3677 (subborrow<mode>): Ditto.
3678 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
3679 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
3680 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
3681 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
3682 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
3683 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
3684 Rewrite expander to not clobber carry flag chains.
3686 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
3688 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
3689 instead of a rotate.
3691 2015-08-27 Marek Polacek <polacek@redhat.com>
3694 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
3695 an entry into an irreducible region.
3697 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3699 * configure: Regenerate.
3701 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3703 PR tree-optimization/67283
3704 * tree-sra.c (type_consists_of_records_p): Rename to...
3705 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3707 (completely_scalarize_record): Rename to...
3708 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
3709 (scalarize_elem): New.
3711 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3713 * tree-sra.c (completely_scalarize_var): Rename to...
3714 (create_total_scalarization_access): ... Here. Drop call to
3715 completely_scalarize_record.
3717 (analyze_all_variable_accesses): Replace completely_scalarize_var
3718 with create_total_scalarization_access and completely_scalarize_record.
3720 2015-08-27 Alan Modra <amodra@gmail.com>
3723 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
3726 2015-08-27 Richard Biener <rguenther@suse.de>
3728 * passes.c (rest_of_decl_compilation): Guard early_global_decl
3729 call with !seen_error ().
3730 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
3731 early debug generation and finish...
3732 (symbol_table::compile): ... here to put it after a !seen_error ()
3735 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3737 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
3740 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3741 Andre Vieira <andre.simoesdiasvieira@arm.com>
3743 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
3744 (*cb<optab><mode>1): Likewise.
3745 (*tb<optab><mode>1): Likewise.
3746 (*cb<optab><mode>1): Likewise.
3747 * config/aarch64/iterators.md (inv_cb): New code attribute.
3749 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
3750 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
3752 2015-08-27 Richard Biener <rguenther@suse.de>
3754 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
3756 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
3758 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
3761 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3763 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
3766 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
3768 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
3769 floating point in VSX registers.
3770 (rs6000_output_move_128bit): Always print out the set insn if we
3771 can't generate an appropriate 128-bit move.
3772 (rs6000_generate_compare): Add support for IEEE 128-bit floating
3773 point in VSX registers comparisons.
3774 (rs6000_expand_float128_convert): Likewise.
3776 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
3777 predicate for only GPR hard registers.
3779 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
3780 modes to iterators. Add new iterators for moving 128-bit values in
3781 scalar FPR registers and VSX registers.
3782 (FMOVE128): Likewise.
3783 (FMOVE128_FPR): Likewise.
3784 (FMOVE128_GPR): Likewise.
3785 (FMOVE128_VSX): Likewise.
3786 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
3791 (RELOAD): Add IEEE 128-bit floating point modes.
3792 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
3793 floating point in VSX registers modes.
3794 (signbit<mode>2, IBM128 iterator): Likewise.
3795 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
3796 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
3798 (neg<mode>2, TFIFKF iterator): Likewise.
3799 (negtf2_internal): Likewise.
3801 (abs<mode>2, TFIFKF iterator): Likewise.
3802 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
3803 VSX insn support for negate, absolute value, and negative absolute
3805 (ieee_128bit_vsx_neg<mode>2): Likewise.
3806 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
3807 (ieee_128bit_vsx_abs<mode>2): Likewise.
3808 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
3809 (ieee_128bit_vsx_nabs<mode>2): Likewise.
3810 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
3811 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
3812 floating point in VSX registers.
3813 (unpack<mode>_dm): Likewise.
3814 (unpack<mode>_nodm): Likewise.
3815 (pack<mode>): Likewise.
3816 (unpackv1ti): Likewise.
3817 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
3818 (packv1ti): Likewise.
3819 (pack<mode>, FMOVE128_VSX iterator): Likewise.
3820 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
3822 (extenddftf2_internal): Likewise.
3823 (trunctfdf2): Likewise.
3824 (trunctfdf2_internal2): Likewise.
3825 (fix_trunc_helper): Likewise.
3826 (fix_trunctfdi2"): Likewise.
3827 (floatditf2): Likewise.
3828 (floatuns<mode>tf2): Likewise.
3829 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3830 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3831 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3832 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3833 (float<SDI:mode><IFKF:mode>2): Likewise.
3834 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3836 2015-08-26 Renlin Li <renlin.li@arm.com>
3838 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
3840 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3841 Jiong Wang <jiong.wang@arm.com>
3843 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
3844 (tlsie_tiny_<mode>): New define_insn.
3845 (tlsie_tiny_sidi): Likewise.
3846 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3848 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
3849 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
3851 (aarch64_expand_mov_immediate): Likewise.
3852 (aarch64_print_operand): Likewise.
3853 (arch64_classify_tls_symbol): Likewise.
3855 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3857 * config/arm/arm-arches.def: Replace single value flags with
3858 an initializer built from ARM_FSET_MAKE_CPU1.
3859 * config/arm/arm-cores.def: Likewise.
3860 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
3861 derivation from the ARM_CORE macro definition, use the given value
3863 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
3864 ARM_ARCH macro definition, use the given value instead.
3866 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3868 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
3870 (struct builtin_description): Replace field mask with field
3872 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
3873 (IWMMXT2_BUILTIN): Likewise.
3874 (IWMMXT2_BUILTIN2): Likewise.
3875 (FP_BUILTIN): Likewise.
3876 (CRC32_BUILTIN): Likewise.
3877 (CRYPTO_BUILTIN): Likewise.
3878 (iwmmx_mbuiltin): Likewise.
3879 (iwmmx2_mbuiltin): Likewise.
3880 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
3881 struct builtin_description.
3883 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3885 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
3886 (struct builtin_description): Change type of mask to unsigned
3888 * config/arm/arm-protos.h (insn_flags): Declare as type
3890 (tune_flags): Likewise.
3891 * config/arm/arm.c (feature_count): New.
3892 (insn_flags): Define as type arm_feature_set.
3893 (tune_flags): Likewise.
3894 (struct processors): Define field flags as type arm_feature_set.
3895 (all_cores): Update for change to struct processors.
3896 (all_architectures): Likewise.
3897 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
3899 (arm_option_override_internal): Likewise.
3900 (arm_option_override): Likewise.
3902 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3903 Jiong Wang <jiong.wang@arm.com>
3905 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
3906 tls size for tiny, small, large memory model.
3907 (aarch64_load_symref_appropriately): Support new symbol types.
3908 (aarch64_expand_mov_immediate): Likewise.
3909 (aarch64_print_operand): Likewise.
3910 (aarch64_classify_tls_symbol): Likewise.
3911 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
3912 (aarch64_symbol_type): Likewise.
3913 * config/aarch64/aarch64.md (tlsle): Deleted.
3914 (tlsle12_<mode>): New define_insn.
3915 (tlsle24_<mode>): Likewise.
3916 (tlsle32_<mode>): Likewise.
3917 (tlsle48_<mode>): Likewise.
3918 * doc/sourcebuild.texi (AArch64-specific attributes): Document
3921 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3923 * config/arm/arm-protos.h (FL_NONE): New.
3925 (arm_feature_set): New.
3926 (ARM_FSET_MAKE): New.
3927 (ARM_FSET_MAKE_CPU1): New.
3928 (ARM_FSET_MAKE_CPU2): New.
3929 (ARM_FSET_CPU1): New.
3930 (ARM_FSET_CPU2): New.
3931 (ARM_FSET_EMPTY): New.
3932 (ARM_FSET_ANY): New.
3933 (ARM_FSET_HAS_CPU1): New.
3934 (ARM_FSET_HAS_CPU2): New.
3935 (ARM_FSET_HAS_CPU): New.
3936 (ARM_FSET_ADD_CPU1): New.
3937 (ARM_FSET_ADD_CPU2): New.
3938 (ARM_FSET_DEL_CPU1): New.
3939 (ARM_FSET_DEL_CPU2): New.
3940 (ARM_FSET_UNION): New.
3941 (ARM_FSET_INTER): New.
3942 (ARM_FSET_XOR): New.
3943 (ARM_FSET_EXCLUDE): New.
3944 (AFM_FSET_IS_EMPTY): New.
3945 (ARM_FSET_CPU_SUBSET): New.
3947 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3949 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
3950 SYMBOL_TLSLE to SYMBOL_TLSLE24.
3951 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3953 (aarch64_expand_mov_immediate): Likewise.
3954 (aarch64_print_operand): Likewise.
3955 (aarch64_classify_symbol): Likewise.
3957 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3959 * config/aarch64/aarch64.opt (mtls-size): New entry.
3960 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
3961 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
3962 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
3964 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3966 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
3967 ARM_CORE entry. Fix some white-space.
3968 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
3969 ARM_CORE definition.
3971 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3973 * fold-const.c (fold_binary_loc) : Move Optimize
3974 root(x)*root(y) as root(x*y) to match.pd.
3975 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
3976 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
3977 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
3978 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
3979 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
3980 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
3981 (mult (exps:s @0) (exps:s @1)) : New simplifier.
3982 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
3983 (rdiv @0 (exps:s @1)) : New simplifier.
3985 2015-08-25 Joseph Myers <joseph@codesourcery.com>
3987 * gcc.c (driver::finalize): Only assign to extra_specs if
3990 2015-08-25 Marek Polacek <polacek@redhat.com>
3993 * varasm.c (declare_weak): Return after giving an error.
3995 2015-08-25 David Malcolm <dmalcolm@redhat.com>
3997 * gcc-main.c (main): Add params to driver ctor.
3998 * gcc.c (class env_manager): New.
4000 (env_manager::init): New.
4001 (env_manager::get): New.
4002 (env_manager::xput): New.
4003 (env_manager::restore): New.
4004 Poison getenv and putenv.
4005 (DEFAULT_TARGET_SYSTEM_ROOT): New.
4006 (target_system_root): Update initialization to use
4007 DEFAULT_TARGET_SYSTEM_ROOT.
4008 (struct spec_list): Add field "default_ptr".
4009 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
4010 (init_spec): Likewise.
4011 (set_spec): Clear field "default_ptr".
4012 (read_specs): Free "spec" and "buffer".
4013 (xputenv): Reimplement in terms of env_manager.
4014 (process_command): Replace ::getenv calls with calls to the
4015 env_manager singleton.
4016 (process_brace_body): Free string in three places.
4017 (driver::driver): New.
4018 (driver::~driver): New.
4019 (used_arg): Convert from a function to...
4020 (class used_arg_t): ...this class, and...
4021 (used_arg): ...this new global instance.
4022 (used_arg_t::finalize): New function.
4023 (getenv_spec_function): Add "const" to local "value". Replace
4024 ::getenv call with call to the env_manager singleton.
4025 (path_prefix_reset): New function.
4026 (driver::finalize): New function.
4027 * gcc.h (driver::driver): New.
4028 (driver::~driver): New.
4029 (driver::finalize): New.
4031 2015-08-25 Nathan Sidwell <nathan@acm.org>
4033 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
4034 target doesn't have one.
4036 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
4039 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
4041 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
4044 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
4045 a define_insn, remove second alternative.
4047 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
4048 Joseph Myers <joseph@codesourcery.com>
4050 * gcc.c (struct switchstr): Expand comment.
4052 2015-08-25 Nathan Sidwell <nathan@acm.org>
4054 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
4055 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
4057 2015-08-25 Richard Biener <rguenther@suse.de>
4060 * genmatch.c (expr::gen_transform): Verify the result of
4061 builtin_decl_implicit.
4062 (dt_simplify::gen_1): Likewise.
4064 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
4066 * config/arm/constraints.md: Also list Cs and US ARM-specific
4067 constraints as used.
4069 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
4072 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
4074 (nonpic_symbol_mentioned_p): Likewise.
4075 (sh_delegitimize_address): Likewise.
4076 (sh_function_ok_for_sibcall): Take into account weak symbols.
4077 (sh_expand_sym_label2reg): New.
4078 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
4079 * config/sh/sh.md (UNSPEC_PCREL): New enum.
4080 (call_pcrel): Use sh_expand_sym_label2reg.
4081 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
4082 (symPCREL_label2reg) New expand.
4084 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
4086 * graphite-poly.c: Change type of region from void* to sese.
4087 * graphite-poly.h (struct scop): Changing the type of scop::region
4088 from void* to sese. Change accessor macro accordingly.
4089 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
4091 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
4093 * graphite-scop-detection.c (stmt_simple_for_scop_p):
4094 Constrain only on INTEGER_TYPE.
4096 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
4099 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
4100 -mefficient-unaligned-vsx on ISA 2.7.
4102 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
4103 option to a masked option.
4105 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
4106 logic for -mefficient-unaligned-vsx so that it is set via an arch
4107 ISA option, instead of being set if -mtune=power8 is set. Move
4108 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
4109 near other default option handling.
4111 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4113 * genflags.c (gen_macro): Delete.
4114 (gen_proto): Don't create GEN.*CALL.* macros.
4115 * gensupport.h (get_file_location): Declare.
4116 * gensupport.c (rtx_locs): New variable.
4117 (read_md_rtx): Record rtx locations.
4118 (get_file_location): New function.
4119 * target-insns.def (call, call_pop, call_value, call_value_pop)
4120 (sibcall, sibcall_value): New patterns.
4121 * gentarget-def.c (parse_argument): New function.
4122 (def_target_insn): Use it. Handle optional operands. Raise an
4123 error if an .md pattern has the wrong number of operands for the
4124 pattern name. Remove the names of unused operands from the prototype.
4125 * builtins.c (expand_builtin_apply): Use targetm functions
4126 instead of HAVE_call_value and GEN_CALL_VALUE.
4127 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
4128 and sibcall_value_pop.
4129 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
4131 * config/alpha/alpha.md (untyped_call): Likewise.
4132 * config/iq2000/iq2000.md (untyped_call): Likewise.
4133 * config/m68k/m68k.md (untyped_call): Likewise.
4134 * config/mips/mips.md (untyped_call): Likewise.
4135 * config/pa/pa.md (untyped_call): Likewise.
4136 * config/rs6000/rs6000.md (untyped_call): Likewise.
4137 * config/sparc/sparc.md (untyped_call): Likewise.
4138 * config/tilegx/tilegx.md (untyped_call): Likewise.
4139 * config/tilepro/tilepro.md (untyped_call): Likewise.
4140 * config/visium/visium.md (untyped_call): Likewise.
4141 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
4142 gen_call_value instead of GEN_CALL_VALUE.
4143 * config/arm/arm.md (untyped_call): Likewise.
4144 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
4147 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4149 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
4150 (have_cbranchcc4): New variable.
4151 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
4152 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
4153 (if_convert): Initialize have_cbranchcc4.
4155 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4157 * builtins.c (expand_cmpstrn): Rename to...
4158 (expand_cmpstrn_or_cmpmem): ...this.
4159 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
4160 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
4161 Remove mode argument.
4162 (expand_builtin): Update accordingly.
4164 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4166 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
4167 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
4168 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
4169 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
4170 Add predicates for operands 0 and 3.
4171 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
4173 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
4174 immediate_operand to nonmemory_operand.
4176 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4178 * df-scan.c (df_insn_info_init_fields): New function, split out
4180 (df_insn_create_insn_record): ...here.
4181 (df_insn_info_free_fields): New function, split out from...
4182 (df_insn_info_delete): ...here.
4183 (df_insn_rescan): Use the new functions instead of freeing and
4184 reallocating the df_insn_info.
4186 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4188 * doc/install.texi (Binaries): Remove links no longer valid.
4190 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
4192 * config/nvptx/mkoffload.c (process): Replace
4193 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
4195 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
4198 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
4200 2015-08-24 Renlin Li <renlin.li@arm.com>
4202 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
4203 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
4204 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
4205 * config/arm/constraints.md ("j"): Add check for high code.
4207 2015-08-24 Tom de Vries <tom@codesourcery.com>
4209 PR tree-optimization/65468
4210 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
4213 2015-08-24 Nathan Sidwell <nathan@acm.org>
4215 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
4216 change to nvptx_type_from_mode call. Use arg_promotion for both
4217 split and non-split args.
4219 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4221 * target-insns.def (movstr): New pattern.
4222 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
4223 (expand_movstr): Use targetm rather than HAVE_movstr/
4226 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4228 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
4231 2015-08-24 Andrew Pinski <apinski@cavium.com>
4233 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
4234 AARCH64_EXTRA_TUNING_OPTION.
4235 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
4237 (aarch64_extra_tuning_flags): Base the shifted value on the index
4238 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
4239 * config/aarch64/aarch64.c: Remove the last argument to
4240 AARCH64_EXTRA_TUNING_OPTION.
4242 2015-08-23 Nathan Sidwell <nathan@acm.org>
4244 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
4246 (nvptx_declare_function_name): Insert formatting tabs for
4249 2015-08-23 Tom de Vries <tom@codesourcery.com>
4251 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
4252 parm_decl, rather than generating a dummy default def in cfun.
4253 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
4254 ssa_name from cfun and child_fn do not share a stmt as def stmt.
4255 (move_stmt_op): Handle PARM_DECl.
4256 (gather_ssa_name_hash_map_from): New function.
4257 (move_sese_region_to_fn): Add default defs for function params, and add
4258 them to vars_map. Release copied ssa names.
4259 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
4261 2015-08-23 Tom de Vries <tom@codesourcery.com>
4263 * doc/sourcebuild.texi: Rename vect_no_int_max with
4264 vect_no_int_min_max. Update description.
4266 2015-08-22 Andrew Pinski <apinski@cavium.com>
4268 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
4269 * config/aarch64/aarch64-protos.h
4270 (aarch64_fusion_pairs_index): New enum.
4271 (aarch64_fusion_pairs): Base the shifted value on the index instead
4272 Rewrite AARCH64_FUSE_ALL to be based on the end index.
4273 of the argument to AARCH64_FUSION_PAIR.
4274 * config/aarch64/aarch64.c: Remove the last argument to
4275 AARCH64_FUSION_PAIR.
4277 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
4279 * dominance.c (new_zero_array): Define.
4280 (dom_info): Redefine as class with proper encapsulation.
4281 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
4283 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
4284 allocations/deallocations. Pass function as parameter (instead of
4286 (dom_info::get_idom): Define accessor method.
4287 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
4288 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
4289 (calculate_dominance_info): Adjust to use dom_info class.
4290 (verify_dominators): Likewise.
4292 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
4294 * print-rtl.c (print_rtx): Check the correct range for
4295 flag_dump_unnumbered_links to behave as documented.
4297 PR rtl-optimization/67227
4298 PR rtl-optimization/64164
4299 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
4300 (nonoverlapping_memrefs_p): Test offsets and sizes when given
4301 identical gimple_reg exprs.
4303 2015-08-21 Nathan Sidwell <nathan@acm.org>
4305 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
4307 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
4308 crtl->stack_alignment_needed to determine alignment.
4309 (nvptx_get_drap_rtx): New.
4310 (TARGET_GET_DRAP_RTX): Override.
4311 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
4313 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4315 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
4317 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4319 * configure.ac: Remove uwin* cases.
4320 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
4321 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
4322 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
4323 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
4324 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
4325 i[34567]86-*-uwin*, powerpc-*-beos*.
4327 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
4329 * gencodes.c (gencodes): Print the comma for the preceding
4330 enum value rather than the current one. Use aliased enum values
4331 rather than #defines for compiled-out patterns.
4332 (main): Update accordingly. Replace LAST_INSN_CODE with
4334 * lra.c (insn_code_data): Update accordingly.
4335 (finish_insn_code_data_once, get_static_insn_data): Likewise.
4336 * recog.h (target_recog): Likewise.
4337 (preprocess_insn_constraints): Change parameter to unsigned int.
4338 * recog.c (preprocess_insn_constraints): Likewise.
4339 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
4340 * tree-vect-stmts.c (vectorizable_operation): Simplify.
4342 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
4344 PR rtl-optimization/61657
4345 * loop-iv.c (iv_number_of_iterations): Declare up and down as
4346 unsigned. Remove superflous uint64_t cast.
4348 2014-08-21 Felix Yang <felix.yang@huawei.com>
4349 Jiji Jiang <jiangjiji@huawei.com>
4351 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
4352 argument and get builtin function code directly from CALL.
4353 (gimple_stringop_fixed_value): Modified accordingly.
4354 (gimple_stringops_transform, gimple_stringops_values_to_profile):
4355 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
4357 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
4359 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
4361 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4363 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
4365 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
4366 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
4367 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
4368 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
4369 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
4370 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
4371 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
4372 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
4373 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
4374 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
4376 * match.pd (SIN ) : New Operator.
4377 (TAN) : New Operator.
4378 (mult (SQRT@1 @0) @1) : New simplifier.
4379 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
4380 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
4381 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
4382 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
4383 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
4384 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
4385 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
4386 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
4387 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
4388 (rdiv @0 (POW:s @1 @2)) : New simplifier.
4390 2015-08-21 Bin Cheng <bin.cheng@arm.com>
4392 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
4393 loop if EXPR is simplified to const value.
4395 2015-08-21 Yury Gribov <y.gribov@samsung.com>
4397 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
4398 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
4400 2015-08-21 Richard Biener <rguenther@suse.de>
4403 * gimple-fold.c (replace_stmt_with_simplification): Assert
4404 seq is empty when replacing a call with itself but different
4406 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
4407 a call require that it is const.
4409 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4411 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
4412 * builtins.c (get_object_alignment_2): Adjust.
4413 * varasm.c (align_variable): Likewise.
4414 (get_variable_align): Likewise.
4415 (build_constant_desc): Likewise.
4416 (force_const_mem): Likewise.
4417 * doc/tm.texi.in: Likewise.
4418 * doc/tm.texi: Regenerate.
4420 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4422 * genconfig.c (main): Always define HAVE_cc0.
4423 * recog.c (rest_of_handle_peephole2): Adjust.
4425 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4427 * reorg.c (relax_delay_slots): Don't use #if to check value of
4430 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4432 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
4433 * targhooks.c (default_have_conditional_execution): Adjust.
4435 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
4437 * rtl.h (rtvec_all_equal_p): Declare.
4438 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
4439 * rtl.c (rtvec_all_equal_p): New function.
4440 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
4441 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
4442 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
4443 * config/arm/arm.c (neon_vdup_constant): Likewise.
4444 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
4445 * config/tilegx/constraints.md (W, Y): Likewise.
4446 * config/tilepro/constraints.md (W, Y): Likewise.
4447 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
4448 (classify_immediate): Use unwrap_const_vec_duplicate.
4449 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
4450 (reg_or_v2s8bit_operand): Likewise.
4451 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
4452 (reg_or_v4s8bit_operand): Likewise.
4454 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4456 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
4457 (vec_shasigma_be): New #define.
4458 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
4459 (VPMSUMH): Likewise.
4460 (VPMSUMW): Likewise.
4461 (VPMSUMD): Likewise.
4462 (VPMSUM): New BU_P8V_OVERLOAD_2.
4463 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
4464 entries for VEC_MADD and VEC_VPMSUM.
4466 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
4468 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
4469 Multiply argument avr_n_flash by 64 to match unit of "KiB".
4470 (avr_pgm_check_var_decl): Same.
4472 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
4474 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
4475 initialization of HFmode scalar type (float16_t) to...
4476 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
4479 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
4481 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
4482 having an -mfp16-format.
4484 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
4486 * config/i386/predicates.md (vector_all_ones_operand): Use
4487 CONSTM1_RTX to simplify definition.
4489 2015-08-20 Richard Biener <rguenther@suse.de>
4491 * toplev.c (compile_file): Remove loop calling late_global_decl
4493 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
4494 on decls we assembled.
4496 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
4498 * common/config/aarch64/aarch64-common.c
4499 (AARCH64_CPU_NAME_LENGTH): Delete.
4500 (aarch64_option_extension): New.
4501 (all_extensions): Likewise.
4502 (processor_name_to_arch): Likewise.
4503 (arch_to_arch_name): Likewise.
4505 (all_architectures): Likewise.
4506 (aarch64_get_extension_string_for_isa_flags): Likewise.
4507 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
4509 * config/aarch64/aarch64-protos.h
4510 (aarch64_get_extension_string_for_isa_flags): New.
4511 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
4512 (aarch64_option_print): Get the string to print from
4513 aarch64_get_extension_string_for_isa_flags.
4514 (aarch64_declare_function_name): Likewise.
4515 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
4516 (MCPU_TO_MARCH_SPEC): This.
4517 (ASM_CPU_SPEC): Use it.
4518 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
4519 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
4520 (EXTRA_SPEC_FUNCTIONS): Use it.
4522 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
4524 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
4525 expansion when !ISA_HAS_LWL_LWR.
4526 (mips_block_move_straight): Update the size of elements copied to
4527 account for alignment when !ISA_HAS_LWL_LWR.
4528 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
4530 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4532 * expr.c (expand_expr_real_2): Check gimple statement during
4535 2015-08-19 Magnus Granberg <zorry@gentoo.org>
4537 * common.opt (fstack-protector): Initialize to -1.
4538 (fstack-protector-all): Likewise.
4539 (fstack-protector-strong): Likewise.
4540 (fstack-protector-explicit): Likewise.
4541 * configure.ac: Add --enable-default-ssp.
4542 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
4543 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
4545 * doc/install.texi: Document --enable-default-ssp.
4546 * config.in: Regenerated.
4547 * configure: Likewise.
4549 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
4551 PR rtl-optimization/64164
4552 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
4553 (parm_in_stack_slot_p): ... this. Disregard mode, what
4554 matters is whether the parm will live in a pseudo or a stack
4556 (expand_one_ssa_partition): Deal with params without a default
4557 def. Disregard mode.
4558 * cfgexpand.h: Renamed function declaration.
4559 * tree-ssa-coalesce.c: Adjust.
4560 * function.c (split_complex_args): Allocate stack slot for
4561 unassigned parms before splitting.
4562 (parm_in_unassigned_mem_p): New. Use it instead of
4563 parm_maybe_byref_p throughout this file.
4564 (assign_parm_setup_block): Use it. Accept pseudos in the
4565 expand-assigned rtl.
4566 (assign_parm_setup_reg): Drop BLKmode requirement.
4567 (assign_parm_setup_stack): Allocate and fill in the address of
4568 unassigned MEM parms.
4570 2015-08-19 David Sherwood <david.sherwood@arm.com>
4572 * genmodes.c (emit_mode_unit_size_inline): New function.
4573 (emit_mode_unit_precision_inline): New function.
4574 (emit_insn_modes_h): Emit new #define. Emit new functions.
4575 (emit_mode_unit_size): New function.
4576 (emit_mode_unit_precision): New function.
4577 (emit_mode_adjustments): Add mode_unit_size adjustments.
4578 (emit_insn_modes_c): Emit new arrays.
4579 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
4580 use new inline methods.
4582 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4584 * config/aarch64/aarch64.c (bit_count): Delete prototype
4586 (aarch64_print_operand): Use popcount_hwi instead of the above.
4588 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4590 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
4593 2015-08-19 Marek Polacek <polacek@redhat.com>
4596 * gimple-ssa-isolate-paths.c
4597 (insert_trap_and_remove_trailing_statements): Rename to ...
4598 (insert_trap): ... this. Don't remove trailing statements; split
4600 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
4602 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
4605 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
4606 conditionalize the whole on __GNUC__. Add fallback code
4607 depending neither on undefined nor implementation-defined behaviour.
4609 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4611 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
4612 whitespaces with tab.
4614 2015-08-19 Florian Weimer <fweimer@redhat.com>
4616 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
4617 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
4618 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
4619 Move Name_Ids instantiation to the Prj.Proc package, to avoid
4622 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4624 * config/arm/arm.c (bounds_check): Use %wd print format
4625 for HOST_WIDE_INT arguments.
4627 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
4629 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
4630 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
4631 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
4632 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
4633 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
4634 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
4635 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
4636 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
4637 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
4640 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
4642 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
4643 function.c, graphite-scop-detection.c, haifa-sched.c,
4644 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
4645 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
4646 varasm.c: Remove typedefs of structs.
4648 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
4650 * config/rs6000/altivec.h (vec_adde): New define.
4651 (vec_addec): Likewise.
4652 (vec_double): Likewise.
4653 (vec_bperm): Likewise.
4655 * config/rs6000/rs6000-builtin.def (ADDE): New
4656 BU_ALTIVEC_OVERLOAD_3.
4658 (DOUBLE): New BU_VSX_OVERLOAD_1.
4659 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
4660 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
4661 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
4662 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
4663 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
4664 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
4665 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
4666 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
4667 and P8V_BUILTIN_VEC_VBPERMQ.
4669 2015-08-18 Jason Merrill <jason@redhat.com>
4671 * print-tree.c (print_node): Handle TREE_BINFO.
4673 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4676 * builtins.c (expand_builtin_signbit): Add asserts to make sure
4677 we can expand BUILT_IN_SIGNBIT inline.
4678 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
4679 * doc/extend.texi: Document the type-generic __builtin_signbit.
4681 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
4683 PR rtl-optimization/67218
4684 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
4685 (simplify_unary_operation_1): Use it.
4687 2015-08-18 Marek Polacek <polacek@redhat.com>
4690 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
4691 if the call isn't valid.
4692 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
4693 gimple_call_builtin_p.
4694 (call_may_clobber_ref_p_1): Likewise.
4695 (stmt_kills_ref_p): Likewise.
4697 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
4699 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
4700 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
4701 (mips_hard_regno_scratch_ok): Likewise.
4702 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
4703 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
4705 2015-08-18 Bin Cheng <bin.cheng@arm.com>
4707 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
4708 (determine_value_range): Call refine_value_range_using_guard for
4709 each loop initial condition to improve value range.
4711 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
4713 * config/i386/i386.c: Remove include of fibheap.h.
4715 2015-08-17 Richard Biener <rguenther@suse.de>
4717 PR tree-optimization/67221
4718 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
4719 (sccvn_dom_walker::before_dom_children): Mark backedges of
4720 non-executable blocks as not executable.
4722 2015-08-17 David Sherwood <david.sherwood@arm.com>
4724 * config/arm/arm.c (neon_element_bits): Replace call to
4725 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
4726 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
4727 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
4728 (neon_vdup_lane<mode>): Likewise.
4729 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
4730 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
4731 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
4732 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
4733 * config/spu/spu.c (arith_immediate_p): Likewise.
4734 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
4735 * expr.c (expand_expr_real_2): Likewise.
4736 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
4737 * simplify-rtx.c (simplify_immed_subreg): Likewise.
4738 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
4739 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
4741 * fold-const.c (fold_binary_loc): Replace call to
4742 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
4743 GET_MODE_UNIT_PRECISION (m).
4745 2015-08-17 Mike Stump <mikestump@comcast.net>
4747 * config/arm/arm.c (arm_block_move_unaligned_straight):
4748 Emit normal move instead of unaligned load when source or destination
4749 are appropriately aligned.
4751 2015-08-17 Richard Biener <rguenther@suse.de>
4752 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4755 * match.pd (div (coss (op @0) : New simplifier.
4757 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
4759 PR rtl-optimization/64164
4762 PR rtl-optimization/67000
4765 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4766 * tree-ssa-copyrename.c: Removed.
4767 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4768 -ftree-coalesce-vars.
4769 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4770 * common.opt (ftree-copyrename): Ignore.
4771 (ftree-coalesce-inlined-vars): Likewise.
4772 * doc/invoke.texi: Remove the ignored options above.
4773 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4774 * tree-ssa-coalesce.h: ... here.
4775 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4776 headers required by it.
4777 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4778 across variables when flag_tree_coalesce_vars. Check register
4779 use and promoted modes to allow coalescing. Do not coalesce
4780 maybe-byref parms with SSA_NAMEs of other variables, or
4781 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
4782 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4783 with its member functions to tree-ssa-coalesce.c.
4784 (var_map_base_init): Likewise. Renamed to
4785 compute_samebase_partition_bases.
4786 (partition_view_normal): Drop want_bases parameter.
4787 (partition_view_bitmap): Likewise.
4788 * tree-ssa-live.h: Adjust declarations.
4789 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
4790 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4791 default defs at the entry point.
4792 (dump_part_var_map): New.
4793 (compute_optimized_partition_bases): New, called by...
4794 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4795 of compute_samebase_partition_bases. Adjust.
4796 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4797 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
4798 (ssa_default_def_partition): New.
4799 (get_rtl_for_parm_ssa_default_def): New.
4800 (align_local_variable, add_stack_var): Support anonymous SSA
4802 (defer_stack_allocation): Likewise. Declare earlier.
4803 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4804 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4805 Do no record deferred-allocation marker in
4806 SA.partition_to_pseudo.
4807 (expand_stack_vars): Adjust check for the marker in it.
4808 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4809 redundant MEM attr setting.
4810 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4812 (expand_one_stack_var): ... this. New wrapper to check and
4813 skip already expanded SSA partitions.
4814 (record_alignment_for_reg_var): New, factored out of...
4815 (expand_one_var): ... this.
4816 (expand_one_ssa_partition): New.
4817 (adjust_one_expanded_partition_var): New.
4818 (expand_one_register_var): Check and skip already expanded SSA
4820 (expand_used_vars): Don't create DECLs for anonymous SSA
4821 names. Expand all SSA partitions, then adjust all SSA names.
4822 (pass::execute): Replace the loops that set
4823 SA.partition_to_pseudo from partition leaders and cleared
4824 DECL_RTL for multi-location variables, and that which used to
4825 rename vars and set attrs, with one that clears DECL_RTL and
4826 checks that PARMs and RESULTs default_defs match DECL_RTL.
4827 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4828 * emit-rtl.c: Include stor-layout.h.
4829 (set_reg_attrs_for_parm): Handle NULL decl.
4830 (set_reg_attrs_for_decl_rtl): Take mode from expression if
4832 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
4833 rather than its possibly-NULL DECL.
4834 * explow.c (promote_ssa_mode): New.
4835 * explow.h (promote_ssa_mode): Declare.
4836 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4837 (read_complex_part): Export.
4838 * expr.h (read_complex_part): Declare.
4839 * cfgexpand.h (parm_maybe_byref_p): Declare.
4840 * function.c: Include cfgexpand.h.
4841 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4842 (use_register_for_parm_decl): Wrapper for the above to
4843 special-case the result_ptr.
4844 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4845 (split_complex_args): Take assign_parm_data_all argument.
4846 Pass it to rtl_for_parm. Set up rtl and context for split
4847 args. Reset complex parm before fetching its default decl
4849 (assign_parms_unsplit_complex): Use the default-def complex
4850 parm rtl if it matches the components.
4851 (assign_parms_augmented_arg_list): Adjust.
4852 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4853 multiple locations. Recognize split complex args.
4854 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4855 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4856 (assign_parm_setup_block): Prefer SSA-assigned location, and
4857 fill in its address if the memory location of a maybe-byref
4858 parm was not assigned by cfgexpand.
4859 (assign_parm_setup_reg): Likewise. Adjust its mode as
4860 needed. Use entry_parm for equiv if stack_parm is NULL. Make
4861 sure passed_pointer parms don't need conversion. Copy address
4863 (assign_parm_setup_stack): Prefer SSA-assigned location.
4864 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4865 rtl before testing for pointer bounds. Special-case result_ptr.
4866 (expand_function_start): Maybe reset DECL_RTL of result.
4867 Prefer SSA-assigned location for result and static chain.
4868 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
4869 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
4870 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4871 anonymous SSA names. Use promote_ssa_mode.
4872 (get_temp_reg): Likewise.
4873 (remove_ssa_form): Adjust.
4874 * stor-layout.c (layout_decl): Don't set mem attributes of
4876 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4877 and get its reg_usage for reg invalidation.
4878 (compute_bb_dataflow): Pass it insn.
4879 (emit_notes_in_bb): Likewise.
4881 2015-08-14 Marek Polacek <polacek@redhat.com>
4883 * tree-core.h (tree_base): Fix typo.
4885 2015-08-14 Marek Polacek <polacek@redhat.com>
4888 * gimple.c (infer_nonnull_range_by_attribute): Check that the
4889 nonnull argument position is not outside function arguments.
4891 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
4894 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
4895 'lconst_atomic' with 'const_atomic'.
4896 (atomic_fetch_<optab><mode>): Likewise.
4897 (atomic_<optab>_fetch<mode>): Likewise.
4898 * config/aarch64/iterators.md (lconst-atomic): Move below
4900 (const_atomic): New.
4902 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
4903 Bernd Schmidt <bernds@codesourcery.com>
4905 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
4907 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
4908 (DWARF2_DEBUGGING_INFO): Don't define.
4909 * debug.h (dwarf2_lineno_debug_hooks): Declare.
4910 * toplev.c (process_options): Add a case for it.
4911 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
4912 (dwarf2out_init): Skip most initializations if
4913 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
4915 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
4916 DWARF2_LINENO_DEBUGGING_INFO.
4917 * opts.c (set_debug_level): Likewise.
4919 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
4921 * config/arm/types.md (is_neon_type): Add missing types.
4923 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
4925 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
4927 * config/i386/i386.c (PTA_SKYLAKE): New macros.
4928 (processor_alias_table): Add skylake description.
4929 (enum processor_model): Add skylake processor.
4930 (arch_names_table): Add skylake record.
4931 * doc/invoke.texi: Add skylake item.
4933 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
4935 * ira-int.h: Include recog.h.
4936 * ira-build.c: Don't include recog.h.
4937 * ira-color.c: Likewise.
4938 * ira-conflicts.c: Likewise.
4939 * ira-costs.c: Likewise.
4940 * ira-emit.c: Likewise.
4941 * ira-lives.c: Likewise.
4943 * sched-deps.c: Likewise.
4944 * sel-sched.c: Likewise.
4945 * target-globals.c: Likewise.
4947 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
4950 * reload1.c (elimination_costs_in_insn): Make it obvious to the
4951 compiler that the n_dups and n_operands loop bounds are invariant.
4953 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4955 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
4956 expressions in A and B.
4958 2015-08-13 Richard Biener <rguenther@suse.de>
4960 * tree.c (nonnull_arg_p): Move from ...
4961 * tree-vrp.c (nonnull_arg_p): ... here.
4962 * tree.h (nonnull_arg_p): Declare.
4963 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
4964 here, register ptr != 0 for nonnull_arg_p pointer arguments.
4965 Properly initialize static chain and by-reference result pointer.
4966 (run_scc_vn): Adjust.
4968 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
4970 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
4973 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
4975 * config/aarch64/aarch64-protos.h
4976 (aarch64_gen_atomic_cas): Declare.
4977 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
4978 Choose appropriate instruction pattern for the target.
4979 (aarch64_gen_atomic_cas): New.
4980 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
4981 (atomic_compare_and_swap<mode>_1): Rename to
4982 aarch64_compare_and_swap<mode>. Fix some indentation.
4983 (aarch64_compare_and_swap<mode>_lse): New.
4984 (aarch64_atomic_cas<mode>): New.
4986 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
4988 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
4991 2015-08-13 Richard Biener <rguenther@suse.de>
4993 PR tree-optimization/67191
4994 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
4995 assert we value-numbered last stmts operand because it can validly
4996 trigger for unreachable code.
4998 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5000 PR rtl-optimization/67103
5001 * ifcvt.c (noce_try_store_flag_constants): Move
5002 x = (-(test != 0) & (b - a)) + a transformation to...
5003 (noce_try_cmove): ... Here. Try it if normal conditional
5006 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
5008 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
5010 * config/mips/mips.md (processor): Remove w32 and w64.
5012 2015-08-13 Richard Biener <rguenther@suse.de>
5014 PR tree-optimization/66502
5015 PR tree-optimization/67167
5016 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
5018 (vn_phi_lookup): Adjust.
5019 (vn_phi_insert): Likewise.
5020 (visit_phi): Prefer to value-number to another PHI node
5021 over value-numbering to a PHI argument.
5022 (init_scc_vn): Mark DFS back edges.
5024 2015-08-13 Richard Biener <rguenther@suse.de>
5026 * gimple.h (gcall::code_): New constant static member.
5027 (gcond::code_): Likewise.
5028 * gimple.c (gcall::code_): Define.
5029 (gcond::code_): Likewise.
5030 (is_a_helper <const gcond *>): Add.
5031 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
5032 and forward to a new gcall overload with less checking and a
5033 cheaper way to access the operand.
5034 (gimple_call_lhs_ptr): Likewise.
5035 (gimple_call_set_lhs): Likewise.
5036 (gimple_call_internal_p): Likewise.
5037 (gimple_call_with_bounds_p): Likewise.
5038 (gimple_call_set_with_bounds): Likewise.
5039 (gimple_call_internal_fn): Likewise.
5040 (gimple_call_set_ctrl_altering): Likewise.
5041 (gimple_call_ctrl_altering_p): Likewise.
5042 (gimple_call_fntype): Likewise.
5043 (gimple_call_fn): Likewise.
5044 (gimple_call_fn_ptr): Likewise.
5045 (gimple_call_set_fndecl): Likewise.
5046 (gimple_call_fndecl): Likewise.
5047 (gimple_call_chain): Likewise.
5048 (gimple_call_num_args): Likewise.
5049 (gimple_call_arg): Likewise.
5050 (gimple_call_arg_ptr): Likewise.
5051 (gimple_call_set_arg): Likewise.
5052 (gimple_call_noreturn_p): Likewise.
5053 (gimple_cond_code): Likewise.
5054 (gimple_cond_lhs): Likewise.
5055 (gimple_cond_rhs): Likewise.
5056 (gimple_has_lhs): Reduce checking.
5058 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5061 * match.pd (div (mult @0 @1) @1) : New simplifier.
5063 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
5066 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
5067 predicate to allow construction of vector constants using the
5068 VSLDOI vector shift instruction.
5070 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
5073 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
5074 the number of bytes to be shifted left and filled in with either
5075 all zero or all one bits.
5076 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
5078 (output_vec_const_move): On power8, generate XXLORC to generate
5079 a vector constant with all 1's. Do a split if we need to use a
5082 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
5083 properly test for the MSB.
5085 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
5086 vector constants that can be created with VSLDOI.
5088 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
5091 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
5092 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
5093 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
5094 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
5095 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
5096 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5097 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
5098 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
5099 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
5101 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
5103 * config/xtensa/constraints.md (define_constraint "Y"): New
5105 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
5106 * config/xtensa/linux.h (ASM_SPEC): Likewise.
5107 * config/xtensa/predicates.md (move_operand): Match constants
5108 and symbols in the presence of TARGET_AUTO_LITPOOLS.
5109 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
5110 immediate references to TLS data.
5111 (xtensa_emit_move_sequence): Don't force constants to memory in
5112 the presence of TARGET_AUTO_LITPOOLS.
5113 (print_operand): Add 'y' format, same as default, but capable of
5114 printing SF mode constants as well.
5115 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
5116 (movsf_internal): Add movi pattern that loads literal.
5117 (movsf, movdf): Don't force constants to memory in the presence
5118 of TARGET_AUTO_LITPOOLS.
5119 (movdf_internal): Add 'Y' constraint.
5120 * config/xtensa/xtensa.opt (mauto-litpools): New option.
5121 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
5123 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
5125 * config/arm/arm-fpus.def: Replace booleans with feature flags.
5127 * config/arm/arm.c (ARM_FPU): Update macro.
5128 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
5129 (TARGET_FP16): Likewise.
5130 (TARGET_CRYPTO): Likewise.
5131 (TARGET_NEON): Likewise.
5132 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
5135 2015-08-12 Tom de Vries <tom@codesourcery.com>
5139 * doc/install.texi: Remove --with_host_libstdcxx item. Update
5140 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
5141 accordingly. Mention default for --with-stage1-ldflags.
5143 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
5145 * config/arm/arm.h (arm_fpu_feature_set): New.
5146 (ARM_FPU_FSET_HAS): New.
5150 (FPU_FL_CRYPTO): New.
5152 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5154 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
5155 after -mcmodel=large -fPIC sorry.
5157 2015-08-12 Richard Biener <rguenther@suse.de>
5159 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
5160 comparison operand order and commutative ternary op operand order.
5161 (sccvn_dom_walker::cond_stack): New state to track temporary
5163 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
5165 (sccvn_dom_walker::record_cond): Add a single temporary conditional
5167 (sccvn_dom_walker::record_conds): Add a temporary conditional
5168 expressions and all related expressions also true/false.
5169 (sccvn_dom_walker::before_dom_children): Record temporary
5170 expressions based on the controlling condition of a single
5171 predecessor. When trying to simplify a conditional statement
5172 lookup expressions we might have inserted earlier.
5174 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
5177 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
5178 to ARM core registers.
5180 2015-08-12 Nathan Sidwell <nathan@acm.org>
5182 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
5183 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
5185 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
5187 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
5189 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
5191 2015-08-12 Richard Biener <rguenther@suse.de>
5193 * gimple.h (remove_pointer): New trait.
5194 (GIMPLE_CHECK2): New inline template function.
5195 (gassign::code_): New constant static member.
5196 (is_a_helper<const gassign *>): Add.
5197 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
5198 and forward to a new gassign overload with less checking and a
5199 cheaper way to access the operand.
5200 (gimple_assign_lhs_ptr): Likewise.
5201 (gimple_assign_set_lhs): Likewise.
5202 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
5204 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
5206 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
5208 (gimple_assign_rhs_code): Likewise.
5209 * gimple.c (gassign::code_): Define.
5211 2015-08-12 Richard Biener <rguenther@suse.de>
5213 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5214 Eliminate edges marked as not executable by SCCVN.
5215 * tree-ssa-sccvn.c: Include gimple-iterator.h.
5216 (cond_dom_walker): Rename to sccvn_dom_walker.
5217 (sccvn_dom_walker::before_dom_children): Value-number defs
5219 (run_scc_vn): Remove loop value-numbering all SSA names.
5220 Drop not visited SSA names to varying.
5222 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
5224 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
5225 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
5226 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
5227 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
5228 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
5229 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5230 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
5231 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
5232 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
5234 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
5237 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
5238 to enum feature_priority and feature_list.
5239 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
5240 and isa_names_table.
5242 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
5244 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
5247 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5251 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
5252 account when deciding what was the command-line status.
5254 2015-08-11 Nathan Sidwell <nathan@acm.org>
5256 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
5258 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
5259 we're not the only contributor to target phi.
5261 2015-08-11 Jiong Wang <jiong.wang@arm.com>
5263 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
5266 2015-08-11 Tom de Vries <tom@codesourcery.com>
5268 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
5270 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
5272 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
5274 * config/i386/i386.md (cpu): Remove knl.
5276 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5280 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
5281 open-coded sequence.
5282 * omp-low.c (oacc_process_reduction_data): Remove handline of
5283 GOMP_DEVICE_HOST_NONSHM.
5285 * lto-streamer-in.c (lto_input_mode_table): Adjust to
5286 GET_MODE_INNER changes.
5288 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5289 Ilya Verbin <ilya.verbin@intel.com>
5291 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
5293 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5295 * doc/options.texi (EnabledBy): Document that the argument must be
5297 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
5298 Not enabled by -Wall.
5299 * optc-gen.awk: Give nicer error messages. Detect if the argument
5300 of EnabledBy is not a Common option.
5301 * common.opt (Wnull-dereference): Not enabled by -Wall.
5302 * opt-functions.awk (lang_enabled_by): Nicer error messages.
5304 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
5306 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
5307 model == 0x4f as Broadwell.
5309 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
5311 PR rtl-optimization/67028
5312 * combine.c (simplify_comparison): Fix comment. Rearrange code.
5313 Add test to see if a const_int fits in the new mode.
5315 2015-08-07 DJ Delorie <dj@redhat.com>
5317 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
5319 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
5321 PR rtl-optimization/67029
5322 * ira-color.c: Include "recog.h" before including "ira-int.h".
5323 * target-globals.c: Likewise.
5324 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
5325 adds an alternative_mask argument and use it instead of
5326 preferred_alternatives.
5327 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
5328 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
5329 * sched-deps.c: Include "ira-int.h" after including "ira.h".
5330 (sched_analyze_insn): Update call to
5331 ira_implicitly_set_insn_hard_regs.
5332 * sel-sched.c: Include "ira-int.h" after including "ira.h".
5333 (implicit_clobber_conflict_p): Update call to
5334 ira_implicitly_set_insn_hard_regs.
5336 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
5338 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
5340 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
5343 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
5344 currently_expanding_to_rtl is set.
5346 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5348 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
5349 * configure: Regenerate.
5351 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5352 Jiong Wang <jiong.wang@arm.com>
5354 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
5355 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
5356 (REG_CLASS_NAMES): Likewise.
5357 (REG_CLASS_CONTENTS): Likewise.
5358 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
5359 (aarch64_register_move_cost): Likewise.
5360 (aarch64_load_symref_appropriately): Invoke the new added pattern if
5362 * config/aarch64/constraints.md (Uc0): New constraint.
5364 2015-08-06 Jiong Wang <jiong.wang@arm.com>
5366 * config/aarch64/constraints.md (Usf): Add the test of
5367 aarch64_is_noplt_call_p.
5369 2015-08-06 Jiong Wang <jiong.wang@arm.com>
5371 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
5373 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
5374 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
5375 (call_symbol): Likewise.
5377 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
5379 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
5380 for vectorizing multiplication patterns.
5381 * tree-vectorizer.h: Adjust the number of patterns.
5383 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
5385 * config/i386/sse.md (*vec_concatv2df): Declare added
5386 alternatives as sselog type.
5388 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5390 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
5393 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5395 * config/s390/s390.c (s390_expand_tbegin): Expand either
5396 tbegin_1_z13 or tbegin_1 depending on VX flag.
5397 * config/s390/s390.md ("tbegin_1_z13"): New expander.
5399 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5401 * config/s390/s390.opt: Clarify description for -mzvector
5402 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
5405 2015-08-06 Richard Biener <rguenther@suse.de>
5407 * gimple.h (gimple_call_set_fn): Access op member directly.
5408 (gimple_call_chain_ptr): Likewise.
5409 (gimple_call_set_chain): Likewise.
5410 (gimple_cond_lhs_ptr): Likewise.
5411 (gimple_cond_set_lhs): Likewise.
5412 (gimple_cond_rhs_ptr): Likewise.
5413 (gimple_cond_set_rhs): Likewise.
5414 (gimple_cond_true_label): Likewise.
5415 (gimple_cond_set_true_label): Likewise.
5416 (gimple_cond_set_false_label): Likewise.
5417 (gimple_cond_false_label): Likewise.
5418 (gimple_label_label): Likewise.
5419 (gimple_label_set_label): Likewise.
5420 (gimple_goto_set_dest): Likewise.
5421 (gimple_asm_input_op): Likewise.
5422 (gimple_asm_input_op_ptr): Likewise.
5423 (gimple_asm_set_input_op): Likewise.
5424 (gimple_asm_output_op): Likewise.
5425 (gimple_asm_output_op_ptr): Likewise.
5426 (gimple_asm_set_output_op): Likewise.
5427 (gimple_asm_clobber_op): Likewise.
5428 (gimple_asm_set_clobber_op): Likewise.
5429 (gimple_asm_label_op): Likewise.
5430 (gimple_asm_set_label_op): Likewise.
5431 (gimple_switch_index): Likewise.
5432 (gimple_switch_index_ptr): Likewise.
5433 (gimple_return_retval_ptr): Likewise.
5434 (gimple_return_retval): Likewise.
5435 (gimple_return_set_retval): Likewise.
5436 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
5437 (gimple_switch_label): Likewise.
5438 (gimple_switch_set_label): Likewise.
5440 2015-08-06 Richard Biener <rguenther@suse.de>
5442 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
5443 bool comparison canonicalization and restrict to integers.
5445 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
5447 * coretypes.h (enum symbol_visibility): Relocate here.
5448 * flag-types.h (enum symbol_visibility): Remove.
5449 * tree-core.h (enum symbol_visibility): Remove.
5451 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
5454 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
5455 for no_split_stack function attribute along with
5457 (rs6000_expand_split_stack_prologue): Likewise.
5459 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5460 Jeff Law <law@redhat.com>
5463 * doc/invoke.texi (Wnull-dereference): New.
5464 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
5465 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
5466 Warn for potential NULL dereferences.
5467 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
5468 * ubsan.c (instrument_nonnull_arg): Call
5469 infer_nonnull_range_by_attribute.
5470 (instrument_nonnull_return): Likewise.
5471 * common.opt (Wnull-dereference); New.
5472 * gimple.c (infer_nonnull_range): Remove bool arguments.
5473 (infer_nonnull_range_by_dereference): New.
5474 (infer_nonnull_range_by_attribute): New.
5475 * gimple.h: Update declarations.
5477 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5479 * gensupport.c (sequence_num): Replace with...
5480 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
5481 ...these new variables.
5482 (init_rtx_reader_args_cb): Update accordingly.
5483 (get_num_code_insns): Likewise.
5484 (read_md_rtx): Rework to use a while loop and get_c_test.
5485 Use the new counters. Remove redundant DEFINE_SUBST case.
5486 * genoutput.c (gen_split): Delete.
5487 (main): Don't call it.
5489 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5491 * gensupport.h (get_c_test): Declare.
5492 * gensupport.c (get_c_test): New function.
5493 * genconditions.c (main): Use it.
5494 * genrecog.c (validate_pattern): Likewise.
5495 (match_pattern_1): Likewise. Remove c_test argument.
5496 (match_pattern): Update accordingly and remove c_test argument.
5497 (main): Update accordingly.
5499 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5501 * gensupport.h (get_num_insn_codes): Declare.
5502 * gensupport.c (get_num_insn_codes): New function.
5503 * genattrtab.c (optimize_attrs): Rename max_insn_code to
5505 (main): Likewise. Use get_num_insn_codes.
5506 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
5508 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5511 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
5512 is zero- rather than sign-extended.
5514 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5516 * target-insns.def (can_extend): Delete.
5518 2015-08-05 Richard Biener <rguenther@suse.de>
5520 PR tree-optimization/67121
5521 * tree-if-conv.c (combine_blocks): Clear range-info produced
5522 by stmts no longer executed conditionally.
5524 2015-08-05 Nick Clifton <nickc@redhat.com>
5526 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
5527 to allow identical far pointers to remain.
5529 2015-08-05 Richard Biener <rguenther@suse.de>
5532 * match.pd: Compare address bases with == if they are decls
5533 or SSA names, not operand_equal_p. Otherwise fail.
5535 2015-08-05 Richard Biener <rguenther@suse.de>
5537 PR tree-optimization/67055
5538 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
5541 * g++.dg/torture/pr67055.C: New testcase.
5543 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5545 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
5547 (define_attr "enabled"): Handle avx521vl and noavx512vl.
5548 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
5549 AVX-512 alternative out of SSE.
5550 (define_insn "*vec_concatv2df"): Ditto.
5552 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5554 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
5555 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
5556 CODE_FOR_avx_ptestv4di.
5557 * config/i386/sse.md (define_mode_iterator V_AVX): New.
5558 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
5559 (define_insn "avx_ptest256"): Merge this ...
5560 (define_insn "sse4_1_ptest"): And this ...
5561 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
5563 2015-08-05 Richard Biener <rguenther@suse.de>
5565 PR tree-optimization/67109
5566 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
5567 against too big groups. Print whether this is a load or store
5568 group. Rename from ...
5569 (vect_analyze_group_access): ... this which is now a wrapper
5570 dissolving an invalid group.
5571 (vect_analyze_data_ref_accesses): Print whether this is a load
5574 2015-08-05 Richard Biener <rguenther@suse.de>
5577 * match.pd: Guard const_binop result checking against NULL_TREE
5580 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
5582 * cse.c (cse_insn): Restoring old behaviour for src_eqv
5583 when dest and value in the REG_EQUAL are same and dest
5586 2015-08-04 Anatoly Sokolov <aesok@post.ru>
5588 * config/moxie/moxie.h (PRINT_OPERAND,
5589 PRINT_OPERAND_ADDRESS): Remove macros.
5590 * config/moxie/moxie-protos.h (moxie_print_operand,
5591 moxie_print_operand_address): Remove declaration.
5592 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
5593 TARGET_PRINT_OPERAND_ADDRESS): Define.
5594 (moxie_print_operand, moxie_print_operand_address): Make static.
5596 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
5599 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
5600 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
5602 2015-08-04 Richard Biener <rguenther@suse.de>
5604 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
5606 (dt_operand::gen_gimple_expr): Adjust.
5608 2015-08-04 Richard Biener <rguenther@suse.de>
5610 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
5611 bool compares on RHS.
5612 * match.pd: Add X ==/!= !X is false/true pattern.
5614 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
5616 * config/aarch64/aarch64.c: Change inner loop statement cost
5617 to be consistent with other targets.
5619 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
5621 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
5624 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
5626 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
5627 (machine_function): Remove pseudos field.
5629 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5631 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5632 Exit early and use target_option_current_node if processing current
5635 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5637 * doc/extend.texi (AArch64 Function Attributes): New node.
5638 (AArch64 Pragmas): Likewise.
5640 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5642 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5643 Initialize simd builtins if TARGET_SIMD.
5644 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
5645 Make sure that the builtins are initialized only once no matter how
5646 many times the function is called.
5647 (aarch64_init_builtins): Unconditionally initialize crc builtins.
5648 (aarch64_relayout_simd_param): New function.
5649 (aarch64_simd_expand_args): Use above during argument expansion.
5650 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
5651 simd builtins if TARGET_SIMD.
5652 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
5654 (aarch64_relayout_simd_types): Likewise.
5656 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5658 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
5659 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
5660 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
5661 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5663 (aarch64_reset_previous_fndecl): New function.
5664 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
5666 * config/aarch64/aarch64-c.c: New file.
5667 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
5668 Push and pop options at beginning and end. Remove ifdef
5669 __ARM_FEATURE_CRC32.
5670 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
5671 Add pragma +nothing+simd and +nothing+crypto where appropriate.
5672 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
5673 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
5675 (aarch64_register_pragmas): Likewise.
5676 (aarch64_reset_previous_fndecl): Likewise.
5677 (aarch64_process_target_attr): Likewise.
5678 (aarch64_override_options_internal): Likewise.
5680 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5682 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
5684 (aarch64_can_inline_p): Likewise.
5685 (TARGET_CAN_INLINE_P): Define.
5687 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5689 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
5690 Remove static. Handle OPT_mgeneral_regs_only,
5691 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
5692 OPT_momit_leaf_frame_pointer.
5693 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
5694 (aarch64_attr_opt_type): New enum.
5695 (aarch64_attribute_info): New struct.
5696 (aarch64_handle_attr_arch): New function.
5697 (aarch64_handle_attr_cpu): Likewise.
5698 (aarch64_handle_attr_tune): Likewise.
5699 (aarch64_handle_attr_isa_flags): Likewise.
5700 (aarch64_attributes): New table.
5701 (aarch64_process_one_target_attr): New function.
5702 (num_occurences_in_str): Likewise.
5703 (aarch64_process_target_attr): Likewise.
5704 (aarch64_option_valid_attribute_p): Likewise.
5705 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
5706 * config/aarch64/aarch64-protos.h: Include input.h
5707 (aarch64_handle_option): Declare prototype.
5709 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5711 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
5712 * config/aarch64/aarch64.c: Include target-globals.h
5713 (aarch64_previous_fndecl): New variable.
5714 (aarch64_set_current_function): New function.
5715 (TARGET_SET_CURRENT_FUNCTION): Define.
5717 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5719 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
5720 (explicit_arch): Likewise.
5721 (x_aarch64_isa_flags): Likewise.
5722 (mgeneral-regs-only): Mark as Save.
5723 (mfix-cortex-a53-835769): Likewise.
5724 (mcmodel=): Likewise.
5725 (mstrict-align): Likewise.
5726 (momit-leaf-frame-pointer): Likewise.
5727 (mtls-dialect): Likewise.
5728 (master=): Likewise.
5729 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
5730 (aarch64_isa_flags): Remove extern declaration.
5731 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
5732 to indicate success or failure.
5733 (aarch64_validate_march): Likewise.
5734 (aarch64_validate_mtune): Likewise.
5735 (aarch64_isa_flags): Delete.
5736 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
5737 instead of aarch64_isa_flags.
5738 (aarch64_get_tune_cpu): New function.
5739 (aarch64_get_arch): Likewise.
5740 (aarch64_override_options): Use above and set up explicit_tune_core
5742 (aarch64_print_extension): Move earlier in file. Add isa_flags
5743 argument and use that instead of the global aarch64_isa_flags.
5744 (aarch64_option_save): New function.
5745 (aarch64_option_restore): Likewise.
5746 (aarch64_option_print): Likewise.
5747 (aarch64_declare_function_name): Likewise.
5748 (aarch64_start_file): Delete.
5749 (TARGET_ASM_FILE_START): Do not define.
5750 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
5751 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
5754 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5756 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
5757 flag_omit_leaf_frame_pointer to 2.
5759 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5761 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
5763 (TARGET_FIX_ERR_A53_835769): New macro.
5764 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5765 handling of opts->x_aarch64_fix_a53_err835769.
5766 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
5767 than aarch64_fix_a53_err835769.
5768 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
5769 * config/aarch64/aarch64-linux.h: Likewise.
5771 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
5773 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
5774 ix86_expand_int_movcc as boolean.
5776 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5778 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
5779 (aarch64_cpu_string): Likewise.
5780 (aarch64_tune_string): Likewise.
5781 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
5782 (aarch64_parse_extension): Return aarch64_parse_opt_result.
5783 Add extra argument to put result into.
5784 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
5785 (aarch64_parse_cpu): Add arguments to put results into. Return
5786 aarch64_parse_opt_result.
5787 (aarch64_parse_tune): Likewise.
5788 (aarch64_override_options_after_change_1): New function.
5789 (aarch64_override_options_internal): New function.
5790 (aarch64_validate_mcpu): Likewise.
5791 (aarch64_validate_march): Likewise.
5792 (aarch64_validate_mtune): Likewise.
5793 (aarch64_override_options): Update to reflect above changes.
5794 Move some logic into aarch64_override_options_internal.
5795 Initialize target_option_default_node and target_option_current_node.
5796 (aarch64_override_options_after_change): Move logic into
5797 aarch64_override_options_after_change_1 and call it with global_options.
5798 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
5799 flag values from that.
5801 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5803 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5804 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
5805 * config/aarch64/aarch64.c (struct processor): Add arch field.
5806 (all_architectures): Handle above, move above all_cores.
5807 (all_cores): Handle above.
5808 (aarch64_parse_arch): Handle above changes.
5809 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
5810 above. Update comments.
5811 (armv8.1-a): Likewise.
5812 * config/aarch64/aarch64-cores.def: Update according to above.
5813 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
5814 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
5815 aarch64_arch_driver_info.
5817 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5819 * config/aarch64/aarch64.c (struct processor): Add ident field.
5820 Rename core sched_core.
5821 (all_cores): Handle above changes.
5822 (all_architectures): Likewise.
5823 (aarch64_parse_arch): Likewise.
5824 (aarch64_override_options): Likewise.
5826 2015-08-04 Richard Biener <rguenther@suse.de>
5828 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
5829 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
5830 comparisons embedded in [VEC_]COND_EXPRs.
5832 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
5834 * tree-if-conv.c: Fix various typos in comments.
5835 * tree-vect-stmts.c: Likewise.
5837 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5839 PR tree-optimization/67043
5840 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
5841 preheader after hoisting invariant in it.
5842 (find_defs): Force recomputation of all luids.
5844 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
5846 * config/rs6000/htm.md (tabort.): Restrict the source operand to
5847 using a base register.
5849 2015-08-03 David Malcolm <dmalcolm@redhat.com>
5851 * main.c (main): Pass in NULL for toplev's external_timer.
5852 * timevar.c: Include coretypes.h.
5853 (class timer::named_items): New.
5854 (timer::named_items::named_items): New.
5855 (timer::named_items::~named_items): New.
5856 (timer::named_items::push): New.
5857 (timer::named_items::pop): New.
5858 (timer::named_items::print): New.
5859 (timer::timer): Initialize field "m_jit_client_items".
5860 (timer::~timer): New.
5861 (timer::push): Move bulk of implementation to...
5862 (timer::push_internal): ...here. New function.
5863 (timer::pop): Move bulk of implementation to...
5864 (timer::pop_internal): ...here. New function.
5865 (timer::push_client_item): New.
5866 (timer::pop_client_item): New.
5867 (timer::print_row): New function, taken from timer::print.
5868 (timer::print): Print "GCC items" header if we also have client
5869 items. Move row-printing to timer::print_row. Print any client
5871 (timer::get_topmost_item_name): New method.
5872 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
5873 (TV_JIT_CLIENT_CODE): New.
5874 * timevar.h (timer::push_client_item): New declaration.
5875 (timer::pop_client_item): New declaration.
5876 (timer::get_topmost_item_name): New method.
5877 (timer::push_internal): New declaration.
5878 (timer::pop_internal): New declaration.
5879 (timer::print_row): New declaration.
5880 (timer::named_items): New declaration.
5881 (timer::m_jit_client_items): New field.
5882 (timer): Add friend class named_items.
5883 (auto_timevar::auto_timevar): Add timer param.
5884 (auto_timevar::~auto_timevar): Use field "m_timer".
5885 (auto_timevar::m_timer): New field.
5886 * toplev.c (initialize_rtl): Add g_timer as param when
5887 constructing auto_timevar instance.
5888 (toplev::toplev): Add "external_timer" param, and use it to
5889 initialize the "g_timer" global if non-NULL.
5890 (toplev::~toplev): If this created "g_timer", delete it.
5891 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
5892 with "external_timer" timer *.
5894 2015-08-03 Alexander Basov <coohpt@gmail.com>
5899 * cfgexpand.c (expand_one_var): Add check if stack is going to
5900 be used in naked function.
5901 * expr.c (expand_expr_addr_expr_1): Remove excess checking
5902 whether expression should not reside in MEM.
5903 * function.c (use_register_for_decl): Do not use registers for
5904 non-register things (volatile, float, BLKMode) in naked functions.
5906 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
5909 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
5910 Adjust splits to match new pattern.
5912 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5914 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
5917 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
5918 point in VSX registers.
5920 * config/rs6000/constraints.md (wb constraint): Document unused
5922 (we constraint): Likewise.
5923 (wo constraint): Likewise.
5924 (wp constraint): New constraint for IEEE 128-bit floating point in
5926 (wq constraint): Likewise.
5928 * config/rs6000/predicates.md (easy_fp_constant): Add support for
5929 IEEE 128-bit floating point in VSX registers.
5930 (easy_scalar_constant): Likewise.
5932 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
5933 constraints (wp, wq) for IEEE 128-bit floating point in VSX
5935 (rs6000_init_hard_regno_mode_ok): Likewise.
5937 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
5938 floating point in VSX registers.
5947 (vsx_le_permute_<mode>): Add support to properly swap bytes for
5948 IEEE 128-bit floating point in VSX registers on little endian.
5949 (vsx_le_undo_permute_<mode>): Likewise.
5950 (vsx_le_perm_load_<mode>): Likewise.
5951 (vsx_le_perm_store_<mode>): Likewise.
5952 (splitters for IEEE 128-bit fp moves): Likewise.
5954 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
5957 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
5958 floating point in VSX registers.
5961 * doc/md.text (Machine Constraints): Document wp and wq
5962 constraints on PowerPC.
5964 2015-08-03 Jeff Law <law@redhat.com>
5967 PR gcov-profile/66899
5968 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
5969 iterate over the jump threading paths when an element in the
5970 jump threading paths array is eliminated.
5972 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
5974 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
5976 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
5978 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
5979 is_use_properly_guarded the variable def_preds. Free its
5980 contents before returning.
5981 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
5982 (is_use_properly_guarded): Replace local variable def_preds with
5983 a parameter. Adjust accordingly. Only update *def_preds if it's
5986 2015-08-03 Richard Biener <rguenther@suse.de>
5988 * genmatch.c (simplify::for_subst_vec): New member.
5989 (binary_ok): New helper for for lowering.
5990 (lower_for): Delay substituting operators into result expressions
5991 if we can merge the results eventually again.
5992 (capture_info::walk_result): Adjust for user_id appearing as
5993 result expression operator.
5994 (expr::gen_transform): Likewise.
5995 (dt_simplify::gen_1): Likewise.
5996 (dt_simplify::gen): Pass not substituted operators to tail
5997 functions or initialize local variable with it.
5998 (decision_tree::gen): Adjust function signature.
5999 * match.pd: Fix tests against global code and add default
6000 cases to switch stmts.
6002 2015-08-03 Richard Biener <rguenther@suse.de>
6004 * genmatch.c (dt_simplify::gen): Create captures array
6005 with an initializer.
6007 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6009 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
6010 the host compiler is affected by placement new aliasing bug.
6011 * configure: Regenerate.
6012 * Makefile.in (ALIASING_FLAGS): New variable.
6013 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
6015 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
6018 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
6019 (negmulsf3_vfp): Likewise.
6020 (muldf3negdf_vfp): Disable for -frounding-math.
6021 (mulsf3negsf_vfp): Likewise.
6022 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
6023 fix MULT cost with -frounding-math.
6025 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6027 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
6028 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
6029 explicit. Prefer to add the flag whenever possible.
6030 (noce_process_if_block): Try noce_try_store_flag_constants before
6033 2015-08-03 Richard Biener <rguenther@suse.de>
6035 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
6036 New hash-map to record equivalent transforms.
6037 (dt_node::analyze): Populate the equivalent transforms hash-map.
6038 (dt_simplify::info): Add reference to hash-map entry.
6039 (dt_simplify::gen): If we have split out a function for the
6040 transform, generate a call to it.
6041 (sinfo_hashmap_traits::hash): New function.
6042 (compare_op): New helper function for ...
6043 (sinfo_hashmap_traits::equal_keys): ... this new function.
6044 (decision_tree::gen): Split out common equivalent transforms
6047 2015-08-03 Richard Biener <rguenther@suse.de>
6049 * gimple-fold.c (fold_gimple_assign): Remove folding of
6050 the comparison in COND_EXPRs.
6052 2015-08-03 Richard Biener <rguenther@suse.de>
6054 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
6055 on the rhs of assignments first simplify the embedded
6058 2015-08-03 Richard Biener <rguenther@suse.de>
6060 PR tree-optimization/66917
6061 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
6063 (DR_VECT_AUX): New macro.
6064 (set_dr_misalignment): Adjust.
6065 (dr_misalignment): Likewise.
6066 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6067 Compute whether the base is at least element aligned.
6068 * tree-vect-stmts.c (ensure_base_align): Adjust.
6069 (vectorizable_store): If the base is not element aligned
6070 preserve alignment of the original access if misalignment is unknown.
6071 (vectorizable_load): Likewise.
6073 2015-08-02 Martin Sebor <msebor@redhat.com>
6075 * c-family/c.opt (-Wframe-address): New warning option.
6076 * doc/invoke.texi (Wframe-address): Document it.
6077 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
6078 Clarify possible effects of calling the functions with non-zero
6079 arguments and mention -Wframe-address.
6080 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
6082 2015-08-01 Michael Collison <michael.collison@linaro.org
6083 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6085 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
6086 (*arm_umin_cmp): Likewise.
6088 2015-08-01 Caroline Tice <cmtice@google.com>
6091 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
6093 (vtbl_find_mangled_name): New function.
6094 (vtbl_register_mangled_name): New function.
6095 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
6096 mangled name in mangled name vectors.
6097 (find_or_create_vtbl_map_node): Ditto.
6098 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
6099 update recursion_depth on function entry; pass it to every recursive
6100 call; automatically exit if depth > 25 (give up looking at that point).
6101 (verify_bb_vtables): Initialize recursion_depth and pass it to
6102 var_is_used_for_virtual_call_p.
6103 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
6104 global variable decls.
6105 (vtbl_register_mangled_name): New extern function decl.
6107 2015-08-01 Tom de Vries <tom@codesourcery.com>
6109 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
6111 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
6113 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
6114 operation_no_trapping_overflow. Allow non-overflow operations.
6115 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
6118 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
6121 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
6123 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6125 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
6126 Enable for TARGET_32BIT.
6127 (*if_move_neg): Likewise.
6129 2015-07-31 Nick Clifton <nickc@redhat.com>
6131 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
6132 Returns true for __model__.
6133 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
6135 2015-07-31 Alan Modra <amodra@gmail.com>
6138 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
6139 (rs6000_emit_prologue): Set it.
6140 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
6142 2015-07-31 Richard Biener <rguenther@suse.de>
6144 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
6145 -> X == (C1 ^ C2) which is already implemented in match.pd.
6146 Remove redundant dispatching to fold_relational_const.
6147 Move unordered self and NaN compares ...
6148 * match.pd: ... as patterns here. Remove some stray captures
6151 2015-07-31 Petr Murzin <petr.murzin@intel.com>
6153 * config/i386/i386.c
6154 (bdesc_special_args): Convert mask type from signed to unsigned for
6156 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
6157 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
6158 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
6159 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
6160 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
6161 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
6162 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
6163 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
6164 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
6165 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
6166 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
6167 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
6168 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
6169 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
6170 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
6171 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
6172 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
6173 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
6174 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
6175 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
6176 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
6177 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
6178 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
6179 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
6180 * config/i386/i386-builtin-types.def
6181 (V16QI_FTYPE_V16SI): Remove.
6182 (V8DF_FTYPE_V8SI): Ditto.
6183 (V8HI_FTYPE_V8DI): Ditto.
6184 (V8SI_FTYPE_V8DI): Ditto.
6185 (V8SF_FTYPE_V8DF): Ditto.
6186 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
6187 (V16HI_FTYPE_V16SI): Ditto.
6188 (V16SF_FTYPE_V16HI): Ditto.
6189 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
6190 (V16SF_FTYPE_V16SI): Ditto.
6191 (V4DI_FTYPE_V4DI): Ditto.
6192 (V16SI_FTYPE_V16SF): Ditto.
6193 (V16SF_FTYPE_FLOAT): Ditto.
6194 (V8DF_FTYPE_DOUBLE): Ditto.
6195 (V8DI_FTYPE_INT64): Ditto.
6196 (V8DI_FTYPE_V4DI): Ditto.
6197 (V16QI_FTYPE_V8DI): Ditto.
6198 (UINT_FTYPE_V4SF): Ditto.
6199 (UINT64_FTYPE_V4SF): Ditto.
6200 (UINT_FTYPE_V2DF): Ditto.
6201 (UINT64_FTYPE_V2DF): Ditto.
6202 (V16SI_FTYPE_V16SI): Ditto.
6203 (V8DI_FTYPE_V8DI): Ditto.
6204 (V16SI_FTYPE_PV4SI): Ditto.
6205 (V16SF_FTYPE_PV4SF): Ditto.
6206 (V8DI_FTYPE_PV2DI): Ditto.
6207 (V8DF_FTYPE_PV2DF): Ditto.
6208 (V4DI_FTYPE_PV2DI): Ditto.
6209 (V4DF_FTYPE_PV2DF): Ditto.
6210 (V16SI_FTYPE_PV2SI): Ditto.
6211 (V16SF_FTYPE_PV2SF): Ditto.
6212 (V8DI_FTYPE_PV4DI): Ditto.
6213 (V8DF_FTYPE_PV4DF): Ditto.
6214 (V8SF_FTYPE_FLOAT): Ditto.
6215 (V4SF_FTYPE_FLOAT): Ditto.
6216 (V4DF_FTYPE_DOUBLE): Ditto.
6217 (V8SF_FTYPE_PV4SF): Ditto.
6218 (V8SI_FTYPE_PV4SI): Ditto.
6219 (V4SI_FTYPE_PV2SI): Ditto.
6220 (V8SF_FTYPE_PV2SF): Ditto.
6221 (V8SI_FTYPE_PV2SI): Ditto.
6222 (V16SF_FTYPE_PV8SF): Ditto.
6223 (V16SI_FTYPE_PV8SI): Ditto.
6224 (V8DI_FTYPE_V8SF): Ditto.
6225 (V4DI_FTYPE_V4SF): Ditto.
6226 (V2DI_FTYPE_V4SF): Ditto.
6227 (V64QI_FTYPE_QI): Ditto.
6228 (V32HI_FTYPE_HI): Ditto.
6229 (V8UHI_FTYPE_V8UHI): Ditto.
6230 (V16UHI_FTYPE_V16UHI): Ditto.
6231 (V32UHI_FTYPE_V32UHI): Ditto.
6232 (V2UDI_FTYPE_V2UDI): Ditto.
6233 (V4UDI_FTYPE_V4UDI): Ditto.
6234 (V8UDI_FTYPE_V8UDI): Ditto.
6235 (V4USI_FTYPE_V4USI): Ditto.
6236 (V8USI_FTYPE_V8USI): Ditto.
6237 (V16USI_FTYPE_V16USI): Ditto.
6238 (V2DF_FTYPE_V2DF_UINT64): Ditto.
6239 (V2DI_FTYPE_V2DF_V2DF): Ditto.
6240 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
6241 (V8DF_FTYPE_V8DF_V8DI): Ditto.
6242 (V4SF_FTYPE_V4SF_UINT64): Ditto.
6243 (V4SI_FTYPE_V4SF_V4SF): Ditto.
6244 (V16SF_FTYPE_V16SF_V16SI): Ditto.
6245 (V64QI_FTYPE_V32HI_V32HI): Ditto.
6246 (V32HI_FTYPE_V16SI_V16SI): Ditto.
6247 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
6248 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
6249 (V32HI_FTYPE_V64QI_V64QI): Ditto.
6250 (V32HI_FTYPE_V32HI_V32HI): Ditto.
6251 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
6252 (V16SI_FTYPE_V16SI_V4SI): Ditto.
6253 (V16SI_FTYPE_V16SI_V16SI): Ditto.
6254 (V16SI_FTYPE_V32HI_V32HI): Ditto.
6255 (V16SI_FTYPE_V16SI_SI): Ditto.
6256 (V8DI_FTYPE_V8DI_V8DI): Ditto.
6257 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
6258 (V8DI_FTYPE_V16SI_V16SI): Ditto.
6259 (V8DI_FTYPE_V8DI_V2DI): Ditto.
6260 (QI_FTYPE_QI): Ditto.
6261 (SI_FTYPE_SI): Ditto.
6262 (DI_FTYPE_DI): Ditto.
6263 (QI_FTYPE_QI_QI): Ditto.
6264 (QI_FTYPE_QI_INT): Ditto.
6265 (HI_FTYPE_HI_INT): Ditto.
6266 (SI_FTYPE_SI_INT): Ditto.
6267 (DI_FTYPE_DI_INT): Ditto.
6268 (HI_FTYPE_V16QI_V16QI): Ditto.
6269 (SI_FTYPE_V32QI_V32QI): Ditto.
6270 (DI_FTYPE_V64QI_V64QI): Ditto.
6271 (QI_FTYPE_V8HI_V8HI): Ditto.
6272 (HI_FTYPE_V16HI_V16HI): Ditto.
6273 (SI_FTYPE_V32HI_V32HI): Ditto.
6274 (QI_FTYPE_V4SI_V4SI): Ditto.
6275 (QI_FTYPE_V8SI_V8SI): Ditto.
6276 (QI_FTYPE_V2DI_V2DI): Ditto.
6277 (QI_FTYPE_V4DI_V4DI): Ditto.
6278 (QI_FTYPE_V8DI_V8DI): Ditto.
6279 (HI_FTYPE_V16SI_V16SI): Ditto.
6280 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
6281 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
6282 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
6283 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
6284 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
6285 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
6286 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
6287 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
6288 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
6289 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
6290 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
6291 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
6292 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
6293 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
6294 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
6295 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
6296 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
6297 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
6298 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
6299 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
6300 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
6301 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
6302 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
6303 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
6304 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
6305 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
6306 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
6307 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
6308 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
6309 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
6310 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
6311 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
6312 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
6313 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
6314 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
6315 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
6316 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
6317 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
6318 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
6319 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
6320 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
6321 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
6322 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
6323 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
6324 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
6325 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
6326 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
6327 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
6328 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
6329 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
6330 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
6331 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
6332 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
6333 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
6334 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
6335 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
6336 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
6337 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
6338 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
6339 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
6340 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
6341 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
6342 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
6343 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
6344 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
6345 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
6346 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
6347 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
6348 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
6349 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
6350 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
6351 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
6352 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
6353 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
6354 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
6355 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
6356 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
6357 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
6358 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
6359 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
6360 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
6361 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
6362 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
6363 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
6364 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
6365 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
6366 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
6367 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
6368 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
6369 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
6370 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
6371 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
6372 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
6373 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
6374 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
6375 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
6376 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
6377 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
6378 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
6379 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
6380 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
6381 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
6382 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
6383 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
6384 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
6385 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
6386 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
6387 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
6388 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
6389 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
6390 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
6391 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
6392 (HI_FTYPE_HI): Ditto.
6393 (HI_FTYPE_V16QI): Ditto.
6394 (SI_FTYPE_V32QI): Ditto.
6395 (DI_FTYPE_V64QI): Ditto.
6396 (QI_FTYPE_V8HI): Ditto.
6397 (HI_FTYPE_V16HI): Ditto.
6398 (SI_FTYPE_V32HI): Ditto.
6399 (QI_FTYPE_V4SI): Ditto.
6400 (QI_FTYPE_V8SI): Ditto.
6401 (HI_FTYPE_V16SI): Ditto.
6402 (QI_FTYPE_V2DI): Ditto.
6403 (QI_FTYPE_V4DI): Ditto.
6404 (QI_FTYPE_V8DI): Ditto.
6405 (V16QI_FTYPE_HI): Ditto.
6406 (V32QI_FTYPE_SI): Ditto.
6407 (V64QI_FTYPE_DI): Ditto.
6408 (V8HI_FTYPE_QI): Ditto.
6409 (V16HI_FTYPE_HI): Ditto.
6410 (V32HI_FTYPE_SI): Ditto.
6411 (V4SI_FTYPE_QI): Ditto.
6412 (V4SI_FTYPE_HI): Ditto.
6413 (V8SI_FTYPE_QI): Ditto.
6414 (V8SI_FTYPE_HI): Ditto.
6415 (V2DI_FTYPE_QI): Ditto.
6416 (V4DI_FTYPE_QI): Ditto.
6417 (HI_FTYPE_HI_HI): Ditto.
6418 (SI_FTYPE_SI_SI): Ditto.
6419 (DI_FTYPE_DI_DI): Ditto.
6420 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
6421 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
6422 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
6423 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
6424 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
6425 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
6426 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
6427 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
6428 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
6429 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
6430 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
6431 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
6432 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
6433 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
6434 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
6435 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
6436 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
6437 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
6438 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
6439 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
6440 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
6441 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
6442 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
6443 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
6444 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
6445 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
6446 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
6447 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
6448 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
6449 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
6450 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
6451 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
6452 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
6453 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
6454 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
6455 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
6456 (V16SI_FTYPE_HI): Ditto.
6457 (V8DI_FTYPE_QI): Ditto.
6458 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
6459 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
6460 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
6461 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
6462 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
6463 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
6464 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
6465 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
6466 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
6467 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
6468 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
6469 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
6470 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
6471 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
6472 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
6473 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
6474 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
6475 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
6476 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
6477 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
6478 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
6479 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
6480 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
6481 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
6482 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
6483 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
6484 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
6485 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
6486 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
6487 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
6488 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
6489 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
6490 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
6491 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
6492 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
6493 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
6494 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
6495 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
6496 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
6497 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
6498 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
6499 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
6500 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
6501 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
6502 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
6503 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
6504 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
6505 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
6506 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
6507 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
6508 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
6509 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
6510 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
6511 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
6512 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
6513 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
6514 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
6515 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
6516 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
6517 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
6518 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
6519 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
6520 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
6521 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
6522 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
6523 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
6524 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
6525 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
6526 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
6527 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
6528 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
6529 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
6530 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
6531 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
6532 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
6533 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
6534 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
6535 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
6536 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
6537 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
6538 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
6539 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
6540 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
6541 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
6542 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
6543 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
6544 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
6545 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
6546 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
6547 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
6548 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
6549 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
6550 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
6551 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
6552 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
6553 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
6554 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
6555 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
6556 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
6557 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
6558 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
6559 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
6560 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
6561 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
6562 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
6563 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
6564 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
6565 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
6566 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
6567 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
6568 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
6569 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
6570 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
6571 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
6572 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
6573 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
6574 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
6575 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
6576 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
6577 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
6578 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
6579 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
6580 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
6581 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
6582 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
6583 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
6584 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
6585 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
6586 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
6587 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
6588 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
6589 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
6590 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
6591 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
6592 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
6593 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
6594 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
6595 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
6596 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
6597 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
6598 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
6599 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
6600 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
6601 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
6602 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
6603 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
6604 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
6605 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
6606 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
6607 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
6608 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
6609 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
6610 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
6611 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
6612 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
6613 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
6614 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
6615 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
6616 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
6617 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
6618 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
6619 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
6620 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
6621 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
6622 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
6623 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
6624 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
6625 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
6626 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
6627 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
6628 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
6629 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
6630 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
6631 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
6632 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
6633 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
6634 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
6635 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
6636 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
6637 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
6638 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
6639 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
6640 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
6641 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
6642 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
6643 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
6644 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
6645 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
6646 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
6647 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
6648 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
6649 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
6650 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
6651 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
6652 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
6653 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
6654 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
6655 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
6656 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
6657 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
6658 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
6659 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
6660 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
6661 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
6662 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
6663 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
6664 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
6665 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
6666 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
6667 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
6668 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
6669 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
6670 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
6671 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
6672 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
6673 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
6674 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
6675 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
6676 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
6677 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
6678 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
6679 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
6680 (QI_FTYPE_V8DF_INT_QI): Ditto.
6681 (QI_FTYPE_V4DF_INT_QI): Ditto.
6682 (QI_FTYPE_V2DF_INT_QI): Ditto.
6683 (HI_FTYPE_V16SF_INT_HI): Ditto.
6684 (QI_FTYPE_V8SF_INT_QI): Ditto.
6685 (QI_FTYPE_V4SF_INT_QI): Ditto.
6686 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
6688 2015-07-31 Richard Biener <rguenther@suse.de>
6690 * gimple-fold.c (fold_gimple_assign): Remove folding of
6693 2015-07-31 Tom de Vries <tom@codesourcery.com>
6695 PR tree-optimization/66846
6696 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
6697 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
6698 (expand_omp_target) [ENABLE_CHECKING]: Same.
6699 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
6700 cfun if !LOOPS_NEED_FIXUP.
6701 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
6702 that omp_for already has its own loop struct.
6703 * tree-parloops.c (create_phi_for_local_result)
6704 (create_call_for_reduction): Handle simple latch bb.
6705 (create_parallel_loop): Add simple latch bb to preserve
6706 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
6707 (gen_parallel_loop): Remove call to cancel_loop_tree.
6708 (parallelize_loops): Skip loops that are inner loops of parallelized
6710 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
6711 verify_loop_structure.
6713 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6715 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
6716 * config/v850/v850.md (RV_REGNUM): New constants.
6717 * config/v850/v850.c (v850_libcall_value): New functions.
6718 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
6719 (TARGET_LIBCALL_VALUE): Define.
6721 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6723 * rtl.h (lowpart_subreg): Move in file.
6724 * loop-iv.c (lowpart_subreg): Move to...
6725 * simplify-rtx.c (lowpart_subreg): ...here.
6726 (simplify_binary_operation_1): Use lowpart_subreg instead of
6727 simplify_gen_subreg.
6728 * expr.c (expand_expr_real_2): Ditto.
6729 * emit-rtl.c (gen_lowpart_common): Ditto.
6730 * combine.c (gen_lowpart_for_combine): Ditto.
6731 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
6732 expand_debug_source_expr): Ditto.
6734 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
6736 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
6737 (expand_builtin_atomic_clear): Remove support for atomic_clear
6740 2015-07-30 Richard Biener <rguenther@suse.de>
6742 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
6743 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
6744 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
6745 redundant operand canonicalization.
6747 2015-07-30 David Sherwood <david.sherwood@arm.com>
6749 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
6750 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
6751 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
6752 * config/arm/arm.c (neon_valid_immediate): Likewise.
6753 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
6754 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
6755 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
6756 (expand_vec_perm_vpshufb2_vpermq): Likewise.
6757 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
6758 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
6759 * config/i386/sse.md
6760 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
6761 (*ssse3_palignr<mode>_perm): Likewise.
6762 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
6763 * config/spu/spu.c (arith_immediate_p): Likewise.
6764 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6765 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
6767 2015-07-30 Richard Biener <rguenther@suse.de>
6769 * genmatch.c (decision_tree::gen_gimple): Merge with ...
6770 (decision_tree::gen_generic): ... this into ...
6771 (decision_tree::gen): ... this.
6772 (main): Adjust callers.
6774 2015-07-30 Richard Biener <rguenther@suse.de>
6776 * genmatch.c (verbose): New global.
6777 (warning_at): Add overload with source_location.
6778 (capture_info::capture_info): Add bool whether generating gimple
6779 or generic. Add gimple member.
6780 (capture_info::cinfo): Add capture member.
6781 (capture_info::walk_match): Record capture. Warn on
6783 (capture_info::walk_c_expr): Add more fragments captures cannot
6784 escape through. Warn on escaped captures.
6785 (dt_simplify::gen_1): Warn on operands we force to have no
6787 (main): Initialize verbose.
6788 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
6790 2015-07-30 Richard Biener <rguenther@suse.de>
6793 * match.pd: Allow both operands to independently have conversion
6794 when simplifying compares of addresses.
6796 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
6800 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
6801 around those cases that need one.
6803 2015-07-29 Aditya Kumar <hiraditya@msn.com>
6805 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
6807 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
6809 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
6810 New. Copied from config/i386/gnu-user.h.
6811 (ASM_COMMENT_START): Likewise.
6812 (DBX_REGISTER_NUMBER): Likewise.
6814 2015-07-29 Richard Biener <rguenther@suse.de>
6816 * gimple-fold.c (fold_gimple_cond): Remove.
6817 (fold_stmt_1): Do not call it.
6819 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
6821 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
6822 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
6824 * config/aarch64/aarch64-modes.def: Add HFmode.
6826 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
6827 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
6829 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
6830 aarch64_promoted_type): New.
6832 (aarch64_float_const_representable_p): Disable HFmode.
6833 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
6834 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
6835 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
6837 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
6838 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
6840 * config/aarch64/iterators.md (GPF_F16): New.
6842 2015-07-29 Richard Biener <rguenther@suse.de>
6844 * match.pd: Merge address comparison patterns and make them
6845 handle some more cases.
6847 2015-07-29 Richard Biener <rguenther@suse.de>
6849 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
6850 (parser::parse_capture): Add bool argument on whether to reject
6852 (parser::parse_expr): Adjust.
6853 (parser::parse_op): Likewise.
6854 (parser::parse_pattern): Likewise.
6856 2015-07-29 Richard Biener <rguenther@suse.de>
6858 * gimple-fold.c (has_use_on_stmt): New function.
6859 (replace_stmt_with_simplification): Use it to allow
6860 abnormals originally referenced in the stmt.
6861 (fold_stmt_1): Canonicalize operand order.
6863 2015-07-28 David Sherwood <david.sherwood@arm.com>
6865 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
6866 GET_MODE_INNER unconditionally.
6867 * config/spu/spu.c (arith_immediate_p): Likewise.
6868 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
6869 * expmed.c (synth_mult): Remove check for VOIDmode result from
6871 (expand_mult_const): Likewise.
6872 * fold-const.c (fold_binary_loc): Replace call to element_precision
6873 with call to GET_MODE_PRECISION.
6874 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
6876 (emit_mode_inner): Likewise.
6877 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
6879 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
6880 (GET_MODE_UNIT_PRECISION): Likewise.
6881 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
6882 * simplify-rtx.c (simplify_immed_subreg): Likewise.
6883 * stor-layout.c (bitwise_type_for_mode): Update assert.
6884 (element_precision): Remove.
6886 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6888 * target-insns.def (reload_load_address): New targetm instruction
6890 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
6892 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6894 * target-insns.def (atomic_test_and_set): New targetm instruction
6896 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
6897 HAVE_*/gen_* interface.
6899 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6901 * target-insns.def (can_extend, ptr_extend): New targetm instruction
6903 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
6904 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
6905 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6906 * rtlanal.c (nonzero_bits1): Likewise.
6907 (num_sign_bit_copies1): Likewise.
6909 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6911 * target-insns.def (eh_return): New targetm instruction pattern.
6912 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
6914 * function.c (thread_prologue_and_epilogue_insns): Remove
6915 preprocessor condition.
6917 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6919 * target-insns.def (indirect_jump): New targetm instruction pattern.
6920 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
6923 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6925 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
6926 instead of nonimmediate_operand. Remove C condiition.
6928 2015-07-28 Richard Biener <rguenther@suse.de>
6930 * match.pd: Add more simplification of address comparisons.
6932 2015-07-28 Richard Biener <rguenther@suse.de>
6934 * match.pd: Re-order two cases in comparison with max/min
6935 value simplification to make it apply for bools.
6937 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6939 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
6940 Handle simple SIGN_EXTEND or ZERO_EXTEND.
6941 (aarch64_rtx_costs): Properly strip extend or extract before
6942 passing down to rtx costs again.
6944 2015-07-28 Nick Clifton <nickc@redhat.com>
6946 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
6947 Optimizes the case where -mes0 is active and a constant symbolic
6949 * config/rl78/rl78-protos.h: Prototype the new function.
6950 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
6952 2015-07-28 Tom de Vries <tom@codesourcery.com>
6954 * tree-parloops.c (reduc_stmt_res): New function.
6955 (initialize_reductions, add_field_for_reduction)
6956 (create_phi_for_local_result, create_loads_for_reductions)
6957 (create_stores_for_reduction, build_new_reduction): Handle case that
6958 reduc_stmt is a phi.
6959 (gather_scalar_reductions): Allow double_reduc reductions.
6961 2015-07-28 Richard Biener <rguenther@suse.de>
6963 * fold-const.c (fold_comparison): Remove equality folding
6964 of decl addresses ...
6965 * match.pd: ... here and merge with existing pattern.
6967 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
6969 PR tree-optimization/66828
6970 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
6971 from int64_t to uint64_t.
6973 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
6975 * opts-common.c (read_cmdline_option): List DriverOnly enum values
6976 as valid only in the error message of the driver, not in the
6977 messages of the language compilers.
6979 2015-07-27 Tom de Vries <tom@codesourcery.com>
6981 * tree-parloops.c (gather_scalar_reductions): Simplify function
6984 2015-07-27 Marek Polacek <polacek@redhat.com>
6986 * ipa-devirt.c (types_same_for_odr): Fix typo.
6988 2015-07-27 Jason Merrill <jason@redhat.com>
6991 * dwarf2out.c (gen_inlined_subroutine_die): Check
6992 cgraph_function_possibly_inlined_p.
6994 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
6996 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
6997 Place integer variant first.
6998 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
7000 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
7003 * config/arm/arm-builtins.c (enum arm_builtins):
7004 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
7005 (ARM_BUILTIN_NEON_BASE): Rename macro to....
7006 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
7007 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
7008 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
7010 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
7013 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
7014 Add qualifier_lane_index.
7015 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
7016 (arm_getlane_qualifiers): Use qualifier_lane_index.
7017 (arm_lanemac_qualifiers): Rename to...
7018 (arm_mac_n_qualifiers): ...this.
7019 (LANEMAC_QUALIFIERS): Rename to...
7020 (MAC_N_QUALIFIERS): ...this.
7021 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
7022 (arm_setlane_qualifiers): Use qualifier_lane_index.
7023 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
7024 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
7025 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
7026 (arm_expand_neon_builtin): Handle qualifier_lane_index.
7028 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
7029 * config/arm/arm.c (bounds_check): Likewise, improve error message.
7030 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
7031 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
7032 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
7033 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
7034 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
7035 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
7036 qualifiers to TERNOP_IMM.
7037 (vdup_lane): Change qualifiers to GETLANE.
7038 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
7039 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
7040 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
7041 vqdmlsl_n): Change qualifiers to MAC_N.
7043 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
7044 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
7045 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
7046 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
7047 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
7048 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
7049 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
7050 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
7051 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
7052 Remove call to neon_lane_bounds.
7054 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
7056 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
7057 Place integer variant first.
7059 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
7061 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
7062 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
7063 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
7064 for armv6kz targets.
7065 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
7066 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
7067 (FL_FOR_ARCH6ZK): Remove.
7068 (FL_FOR_ARCH6KZ): New.
7069 (arm_arch6zk): New declaration.
7070 * config/arm/arm-tables.opt: Regenerate.
7071 * config/arm/arm.c (arm_arch6kz): New.
7072 (arm_option_override): Set arm_arch6kz.
7073 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
7074 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
7075 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
7077 2015-07-27 Marek Polacek <polacek@redhat.com>
7081 * doc/invoke.texi: Document -Wtautological-compare.
7083 2015-07-27 Richard Biener <rguenther@suse.de>
7085 * genmatch.c (decision_tree::gen_gimple): Split out large
7086 subtrees into separate functions.
7087 (decision_tree::gen_generic): Likewise.
7089 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
7091 * config/alpha/alpha.c: Use SUBREG_P predicate.
7092 * config/alpha/predicates.md: Ditto.
7094 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
7096 * config.host (s390*-*-*): Include driver-native.c only when
7097 building with s390* as host *and* target.
7099 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
7102 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
7103 T bit register modified_between_p check.
7105 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7107 * config/i386/i386.c: Use SUBREG_P predicate.
7108 * config/i386/i386.md: Ditto.
7109 * config/i386/sse.md: Ditto.
7110 * config/i386/predicates.md: Ditto.
7112 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7115 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
7116 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
7118 2015-07-25 Sebastian Pop <s.pop@samsung.com>
7120 * Makefile.in: Remove use of TREEBROWSER.
7121 * config.in: Regenerated.
7122 * configure: Regenerated.
7123 * configure.ac: Remove definition of TREEBROWSER.
7124 * tree-browser.c: Removed.
7125 * tree-browser.def: Removed.
7127 2015-07-25 Sebastian Pop <s.pop@samsung.com>
7129 * graphite-scop-detection.c: Include gimple-pretty-print.h.
7130 (stmt_simple_for_scop_p): Print when a stmt is not handled in
7132 (scopdet_basic_block_info): Print when a loop or bb cannot be
7133 represented in Graphite.
7135 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7138 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
7139 execution guard when min_size is less than size_needed.
7141 2015-07-25 Sebastian Pop <s.pop@samsung.com>
7143 * doc/install.texi: Document supported versions of ISL.
7145 2015-07-25 Jeff Law <law@redhat.com>
7149 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7150 unable to find X NE 0 in the tables, return X as the simplified
7152 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7153 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
7155 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7156 after removing the control flow statement and unnecessary edges.
7158 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
7161 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
7163 PR rtl-optimization/64164
7164 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7165 * tree-ssa-copyrename.c: Removed.
7166 * opts.c (default_options_table): Drop -ftree-copyrename. Add
7167 -ftree-coalesce-vars.
7168 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7169 * common.opt (ftree-copyrename): Ignore.
7170 (ftree-coalesce-inlined-vars): Likewise.
7171 * doc/invoke.texi: Remove the ignored options above.
7172 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7173 * tree-ssa-coalesce.h: ... here.
7174 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7175 headers required by it.
7176 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7177 across variables when flag_tree_coalesce_vars. Check register
7178 use and promoted modes to allow coalescing. Moved to
7179 tree-ssa-coalesce.c.
7180 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7181 with its member functions to tree-ssa-coalesce.c.
7182 (var_map_base_init): Likewise. Renamed to
7183 compute_samebase_partition_bases.
7184 (partition_view_normal): Drop want_bases parameter.
7185 (partition_view_bitmap): Likewise.
7186 * tree-ssa-live.h: Adjust declarations.
7187 * tree-ssa-coalesce.c: Include explow.h.
7188 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7189 default defs at the entry point.
7190 (dump_part_var_map): New.
7191 (compute_optimized_partition_bases): New, called by...
7192 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7193 of compute_samebase_partition_bases. Adjust.
7194 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7195 * cfgexpand.c (leader_merge): New.
7196 (get_rtl_for_parm_ssa_default_def): New.
7197 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7198 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7199 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7200 redundant MEM attr setting.
7201 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7203 (expand_one_stack_var): ... this. New wrapper to check and
7204 skip already expanded SSA partitions.
7205 (record_alignment_for_reg_var): New, factored out of...
7206 (expand_one_var): ... this.
7207 (expand_one_ssa_partition): New.
7208 (adjust_one_expanded_partition_var): New.
7209 (expand_one_register_var): Check and skip already expanded SSA
7211 (expand_used_vars): Don't create DECLs for anonymous SSA
7212 names. Expand all SSA partitions, then adjust all SSA names.
7213 (pass::execute): Replace the loops that set
7214 SA.partition_to_pseudo from partition leaders and cleared
7215 DECL_RTL for multi-location variables, and that which used to
7216 rename vars and set attrs, with one that clears DECL_RTL and
7217 checks that PARMs and RESULTs default_defs match DECL_RTL.
7218 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7219 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7220 * explow.c (promote_ssa_mode): New.
7221 * explow.h (promote_ssa_mode): Declare.
7222 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7223 * function.c: Include cfgexpand.h.
7224 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7225 (use_register_for_parm_decl): Wrapper for the above to
7226 special-case the result_ptr.
7227 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7228 (split_complex_args): Take assign_parm_data_all argument.
7229 Pass it to rtl_for_parm. Set up rtl and context for split
7231 (assign_parms_augmented_arg_list): Adjust.
7232 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7233 multiple locations. Recognize split complex args.
7234 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7235 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7236 (assign_parm_setup_block): Prefer SSA-assigned location.
7237 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
7238 if stack_parm is NULL.
7239 (assign_parm_setup_stack): Prefer SSA-assigned location.
7240 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7241 rtl before testing for pointer bounds. Special-case result_ptr.
7242 (expand_function_start): Maybe reset DECL_RTL of result.
7243 Prefer SSA-assigned location for result and static chain.
7244 Factor out DECL_RESULT and SET_DECL_RTL.
7245 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7246 anonymous SSA names. Use promote_ssa_mode.
7247 (get_temp_reg): Likewise.
7248 (remove_ssa_form): Adjust.
7249 * stor-layout.c (layout_decl): Don't set mem attributes of
7251 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7252 and get its reg_usage for reg invalidation.
7253 (compute_bb_dataflow): Pass it insn.
7254 (emit_notes_in_bb): Likewise.
7256 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7258 * config/i386/i386.c (ix86_va_start): Remove
7259 unneeded !TARGET_64BIT check.
7260 (ix86_gimplify_va_arg): Ditto.
7262 2015-07-24 Tom de Vries <tom@codesourcery.com>
7264 * graphite-sese-to-poly.c (build_poly_scop): Always call
7265 rewrite_commutative_reductions_out_of_ssa.
7267 2015-07-24 Tom de Vries <tom@codesourcery.com>
7269 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
7270 flag_associative_math to FLOAT_TYPE_P. Honour
7271 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
7273 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
7276 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
7277 and "%qD" in warning_at instead of "%q+D" in warning.
7279 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
7281 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
7282 (ix86_function_abi): Cleanup.
7284 2015-07-24 Michael Darling <darlingm@gmail.com>
7287 * acinclude.m4: Reflects renaming of configure.in to configure.ac
7288 * configure: Likewise
7289 * configure.ac: Likewise
7290 * doc/install.texi: Likewise
7291 * doc/tm.texi: Likewise
7292 * doc/tm.texi.in: Likewise
7294 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7296 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
7297 manually swapping values.
7298 * cse.c (fold_rtx): Likewise.
7299 * lra-eliminations.c (form_sum): Likewise.
7301 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
7304 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
7305 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
7306 (*jcc_1, *jcc_2, jump, simple_return_internal)
7307 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
7308 Set length_nobnd attribute instead of length attribute.
7309 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
7310 (length_nobnd): Remove attribute.
7311 (length): Remove length_nobnd processing.
7313 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
7315 * gimplify.c (omp_default_clause): New function. Reorganize flow
7316 for clarity. Broken out of ...
7317 (omp_notice_variable): ... here.
7319 2015-07-24 Gary Funck <gary@intrepid.com>
7322 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
7323 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
7325 2015-07-24 Tom de Vries <tom@codesourcery.com>
7327 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
7328 exit-first loop transform.
7330 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7333 * tree-cfg.c (struct replace_decls_d): New struct.
7334 (replace_block_vars_by_duplicates_1): New function.
7335 (replace_block_vars_by_duplicates): Use it to replace the decls
7336 in the value exprs by duplicates.
7338 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
7340 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
7341 -shared, -symbolic, -rdynamic.
7343 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
7346 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
7347 -dynamic-linker within %{!static %{!shared, and -rdynamic within
7350 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
7353 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
7354 edge summary is available.
7356 2015-07-24 Richard Biener <rguenther@suse.de>
7358 * genmatch.c (struct dt_node): Add statistic fields.
7359 (dt_node::analyze): New method.
7360 (decision_tree::gen_gimple): Call analyze on the root node
7361 and print statistics to stderr.
7362 (decision_tree::gen_generic): Likewise.
7364 2015-07-24 Richard Biener <rguenther@suse.de>
7366 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
7367 against the highest or lowest possible integer ...
7368 * match.pd: ... as patterns here.
7370 2015-07-24 Richard Biener <rguenther@suse.de>
7372 * genmatch.c (struct capture_info): Add same_as field.
7373 (capture_info::capture_info): Initialize same_as.
7374 (capture_info::walk_match): Compute same_as.
7375 (capture_info::walk_result): Compute stuff for the leader.
7376 (capture_info::walk_c_expr): Likewise.
7377 (dt_simplify::gen_1): Only look at leaders when deciding
7378 to force no side-effects or emit side-effects of omitted operands.
7380 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7382 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
7383 reg note to the GPR -> FPR save instructions.
7385 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7387 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
7389 (s390_expand_insv): Don't generate risbg pattern for constant zero
7391 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
7392 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
7395 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7397 * config/s390/s390.c (s390_reorg): Clean up handling of processors
7400 (s390_issue_rate): Likewise.
7401 (s390_sched_reorder): Likewise.
7402 (s390_sched_variable_issue): Likewise.
7403 (s390_loop_unroll_adjust): Likewise.
7404 (s390_option_override): Likewise.
7406 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7408 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
7409 processor capabilities with -march=native.
7410 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
7411 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
7412 (S390_TARGET_BITS_STRING): Macro to simplify specs.
7414 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7416 * config/s390/s390.c (s390_issue_rate): Handle
7417 PROCESSOR_2094_Z9_EC.
7418 (s390_option_override): Likewise.
7419 (s390_adjust_priority): Likewise.
7421 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7423 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
7424 when cross compiling.
7426 2015-07-24 Richard Biener <rguenther@suse.de>
7428 * fold-const.c (maybe_canonicalize_comparison_1): Move
7429 A code CST canonicalization ...
7430 * match.pd: ... to a pattern here.
7432 2015-07-24 Jiong Wang <jiong.wang@arm.com>
7435 2015-07-22 Jiong Wang <jiong.wang@arm.com>
7437 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7438 (HONOR_REG_ALLOC_ORDER): Define.
7440 2015-07-24 Richard Biener <rguenther@suse.de>
7442 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
7443 * fold-const.c (fold_comparison): Move parameter does not
7444 alias &local simplification ...
7445 * match.pd: ... as a pattern here.
7447 2015-07-24 Richard Biener <rguenther@suse.de>
7449 * gimple-fold.c (replace_stmt_with_simplification): Special-case
7450 valueizing call operands.
7451 * gimple-match-head.c (maybe_push_res_to_seq): Take
7452 number of call arguments from ops array.
7453 (do_valueize): New function.
7454 (gimple_simplify): Return true if valueization changed
7455 any operand even if the result didn't simplify further.
7457 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7460 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
7462 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7465 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
7467 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
7469 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
7472 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
7474 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
7477 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
7479 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
7480 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
7482 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
7483 ms_va_list_type_node initialization.
7485 2015-07-23 Jeff Law <law@redhat.com>
7488 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7489 unable to find X NE 0 in the tables, return X as the simplified
7491 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7492 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
7494 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7495 after removing the control flow statement and unnecessary edges.
7497 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
7499 * tree-pass.h (get_current_pass_name): Removed.
7501 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
7503 PR rtl-optimization/64164
7504 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7505 * tree-ssa-copyrename.c: Removed.
7506 * opts.c (default_options_table): Drop -ftree-copyrename. Add
7507 -ftree-coalesce-vars.
7508 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7509 * common.opt (ftree-copyrename): Ignore.
7510 (ftree-coalesce-inlined-vars): Likewise.
7511 * doc/invoke.texi: Remove the ignored options above.
7512 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7513 * tree-ssa-coalesce.h: ... here.
7514 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7515 headers required by it.
7516 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7517 across variables when flag_tree_coalesce_vars. Check register
7518 use and promoted modes to allow coalescing. Moved to
7519 tree-ssa-coalesce.c.
7520 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7521 with its member functions to tree-ssa-coalesce.c.
7522 (var_map_base_init): Likewise. Renamed to
7523 compute_samebase_partition_bases.
7524 (partition_view_normal): Drop want_bases parameter.
7525 (partition_view_bitmap): Likewise.
7526 * tree-ssa-live.h: Adjust declarations.
7527 * tree-ssa-coalesce.c: Include explow.h.
7528 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7529 default defs at the entry point.
7530 (dump_part_var_map): New.
7531 (compute_optimized_partition_bases): New, called by...
7532 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7533 of compute_samebase_partition_bases. Adjust.
7534 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7535 * cfgexpand.c (leader_merge): New.
7536 (get_rtl_for_parm_ssa_default_def): New.
7537 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7538 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7539 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7540 redundant MEM attr setting.
7541 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7543 (expand_one_stack_var): ... this. New wrapper to check and
7544 skip already expanded SSA partitions.
7545 (record_alignment_for_reg_var): New, factored out of...
7546 (expand_one_var): ... this.
7547 (expand_one_ssa_partition): New.
7548 (adjust_one_expanded_partition_var): New.
7549 (expand_one_register_var): Check and skip already expanded SSA
7551 (expand_used_vars): Don't create DECLs for anonymous SSA
7552 names. Expand all SSA partitions, then adjust all SSA names.
7553 (pass::execute): Replace the loops that set
7554 SA.partition_to_pseudo from partition leaders and cleared
7555 DECL_RTL for multi-location variables, and that which used to
7556 rename vars and set attrs, with one that clears DECL_RTL and
7557 checks that PARMs and RESULTs default_defs match DECL_RTL.
7558 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7559 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7560 * explow.c (promote_ssa_mode): New.
7561 * explow.h (promote_ssa_mode): Declare.
7562 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7563 * function.c: Include cfgexpand.h.
7564 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7565 (use_register_for_parm_decl): Wrapper for the above to
7566 special-case the result_ptr.
7567 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7568 (split_complex_args): Take assign_parm_data_all argument.
7569 Pass it to rtl_for_parm. Set up rtl and context for split
7571 (assign_parms_augmented_arg_list): Adjust.
7572 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7573 multiple locations. Recognize split complex args.
7574 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7575 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7576 (assign_parm_setup_block): Prefer SSA-assigned location.
7577 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
7578 if stack_parm is NULL.
7579 (assign_parm_setup_stack): Prefer SSA-assigned location.
7580 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7581 rtl before testing for pointer bounds. Special-case result_ptr.
7582 (expand_function_start): Maybe reset DECL_RTL of result.
7583 Prefer SSA-assigned location for result and static chain.
7584 Factor out DECL_RESULT and SET_DECL_RTL.
7585 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7586 anonymous SSA names. Use promote_ssa_mode.
7587 (get_temp_reg): Likewise.
7588 (remove_ssa_form): Adjust.
7589 * stor-layout.c (layout_decl): Don't set mem attributes of
7591 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7592 and get its reg_usage for reg invalidation.
7593 (compute_bb_dataflow): Pass it insn.
7594 (emit_notes_in_bb): Likewise.
7596 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
7599 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
7601 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
7602 (rs6000_emit_2insn_and): Handle dot forms.
7603 * config/rs6000/rs6000.md (and<mode>3): Adjust.
7604 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
7605 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
7607 2015-07-23 Richard Biener <rguenther@suse.de>
7609 * generic-match-head.c: Include cgraph.h.
7610 * gimple-match-head.c: Likewise.
7611 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
7613 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
7614 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
7617 2015-07-23 Richard Biener <rguenther@suse.de>
7619 * gimple-fold.c (fold_gimple_cond): Do not require folding
7620 results to pass valid_gimple_rhs_p.
7621 * tree-cfg.h (fold_cond_expr_cond): Remove.
7622 * tree-cfg.c (fold_cond_expr_cond): Likewise.
7623 (make_edges): Do not call it.
7624 * tree-inline.c (tree_function_versioning): Likewise.
7626 2015-07-23 Tom de Vries <tom@codesourcery.com>
7628 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
7629 vect_force_simple_reduction.
7630 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
7631 (vect_is_simple_reduction_1): Add and handle
7632 need_wrapping_integral_overflow parameter.
7633 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
7634 need_wrapping_integral_overflow parameter.
7635 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
7636 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
7639 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
7641 PR tree-optimization/66926,66951
7642 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
7643 INNER_LOOP and fix up condition for renaming virtual operands.
7645 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7647 * combine.c (try_combine): Use std::swap instead of manually
7650 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
7652 * config/mips/i6400.md: New file.
7653 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
7654 (mips64r6): Likewise.
7656 * config/mips/mips-tables.opt: Regenerate.
7657 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
7658 (mips_issue_rate): Add support for i6400.
7659 (mips_multipass_dfa_lookahead): Likewise.
7660 * config/mips/mips.h (TUNE_I6400): Define.
7661 * config/mips/mips.md: Include i6400.md.
7662 (processor): Add i6400.
7663 * doc/invoke.texi (-march=@var{arch}): Add i6400.
7665 2015-07-23 Richard Biener <rguenther@suse.de>
7668 * match.pd: Guard widen and sign-change comparison simplification
7671 2015-07-23 Richard Biener <rguenther@suse.de>
7673 PR tree-optimization/66945
7674 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
7675 ::before_dom_children): Force the propagators idea of
7676 non-executable edges to materialize, not what the folder
7679 2015-07-23 Richard Biener <rguenther@suse.de>
7681 * gimple.h (gimple_cond_make_false): Use 0 != 0.
7682 (gimple_cond_make_true): Use 1 != 0.
7684 2015-07-22 DJ Delorie <dj@redhat.com>
7686 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
7689 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
7690 (ashrhi3): Likewise.
7691 (lshrhi3): Likewise.
7692 (movhi): Take advantage of zero-extend to load small constants.
7694 (and<mode>3): Likewise.
7695 (zero_extendqihi2): Likewise.
7696 (zero_extendqisi2): New.
7697 * config/msp430/constraints.md (N,O): New.
7698 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
7700 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
7703 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
7704 to enum feature_priority and feature_list.
7705 (fold_builtin_cpu): Add F_AES to enum processor_features
7706 and isa_names_table.
7708 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
7711 * config/i386/linux-common.h (MPX_SPEC): Use linker option
7712 for 64bit target only.
7714 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
7716 * config/nvptx/nvptx.c: Expand some comments.
7718 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
7720 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
7721 (cortex_a53_advsimd): ...This.
7723 2015-07-22 Richard Biener <rguenther@suse.de>
7725 * genmatch.c (expr::gen_transform): Clarify error message
7726 and display location.
7728 2015-07-22 Richard Biener <rguenther@suse.de>
7730 * genmatch.c (struct operand): Add location member.
7731 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
7733 (struct simplify): Remove match_location and result_location
7735 (elsehwere): Adjust.
7737 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
7739 * config/mips/m5100.md: New file.
7740 * config/mips/mips-cpus.def (m5100, m5101): Define.
7741 * config/mips/mips-tables.opt: Regenerate.
7742 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
7743 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
7744 -march=m5101 to -mips32r5.
7745 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
7746 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
7748 * config/mips/mips.md: Include m5100.md.
7749 (processor): Add m5100.
7750 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
7752 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
7754 * config/mips/mips-cpus.def (interaptiv): Define.
7755 * config/mips/mips-tables.opt: Regenerate.
7756 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
7758 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
7759 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
7761 2015-07-22 Jiong Wang <jiong.wang@arm.com>
7764 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7765 (HONOR_REG_ALLOC_ORDER): Define.
7767 2015-07-22 Richard Biener <rguenther@suse.de>
7769 PR tree-optimization/66952
7770 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
7771 blocks we end up executing unconditionally reset all SSA
7772 info such as range and alignment.
7773 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
7774 * tree-ssanames.c (reset_flow_sensitive_info): New function.
7776 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7778 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
7781 2015-07-22 Richard Biener <rguenther@suse.de>
7783 * genmatch.c (parser::parse_result): Properly handle
7784 match with result operands and conditions.
7786 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7789 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7790 Add qualifier_struct_load_store_lane_index.
7791 (aarch64_types_loadstruct_lane_qualifiers): Use
7792 qualifier_struct_load_store_lane_index for lane index argument for
7794 (aarch64_types_storestruct_lane_qualifiers): Ditto.
7795 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7796 (aarch64_simd_expand_args): Add new argument describing mode of
7797 builtin. Check lane bounds for arguments with
7798 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7799 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
7800 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7801 (aarch64_simd_expand_builtin): Handle arguments with
7802 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
7803 aarch64_simd_expand_args.
7804 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
7805 vst[234]_lane with BUILTIN_VALLDIF.
7806 * config/aarch64/aarch64-simd.md:
7807 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
7808 endianness reversal on lane index.
7809 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
7810 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
7811 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
7812 (vec_store_lanesci_lane<mode>): Ditto.
7813 (vec_store_lanesxi_lane<mode>): Ditto.
7814 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
7815 reversal of lane index.
7816 (aarch64_ld3_lane<mode>): Ditto.
7817 (aarch64_ld4_lane<mode>): Ditto.
7818 (aarch64_st2_lane<mode>): Ditto.
7819 (aarch64_st3_lane<mode>): Ditto.
7820 (aarch64_st4_lane<mode>): Ditto.
7821 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
7822 to qmode. Add new mode parameter. Update uses.
7823 (__LD3_LANE_FUNC): Ditto.
7824 (__LD4_LANE_FUNC): Ditto.
7825 (__ST2_LANE_FUNC): Ditto.
7826 (__ST3_LANE_FUNC): Ditto.
7827 (__ST4_LANE_FUNC): Ditto.
7829 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
7831 * doc/invoke.texi (Language Independent Options): Rename node to
7832 Diagnostic Message Formatting Options.
7834 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
7837 * lra-remat.c (operand_to_remat): Prevent using insns with input
7838 subregs processed separately by IRA.
7840 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
7842 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
7844 (single_imm_use): Check for iterator node.
7845 (num_imm_uses): Likewise.
7846 * tree-ssa-operands.c (has_zero_uses_1): Delete.
7847 (single_imm_use_1): Check for iterator node.
7849 2015-07-21 Mike Frysinger <vapier@gentoo.org>
7850 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7852 * configure.ac: Add check for new options in isl-0.15.
7853 * config.in, configure: Rebuilt.
7854 * graphite-blocking.c: Include <isl/constraint.h>
7855 * graphite-interchange.c, graphite-poly.c: Likewise.
7856 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
7857 * graphite.c: Likewise.
7858 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
7860 * graphite-dependences.c: Include <isl/constraint.h>.
7861 (max_number_of_out_dimensions): Returns isl_stat.
7862 (extend_schedule_1): Likewise
7863 (extend_schedule): Corresponding changes.
7864 * graphite-optimize-isl.c: Include <isl/constraint.h> and
7866 (getSingleMap): Change return type of isl_stat.
7867 (optimize_isl): Conditionally use
7868 isl_options_set_schedule_serialize_sccs.
7869 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
7870 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
7872 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
7875 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
7876 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
7878 2015-07-21 Richard Biener <rguenther@suse.de>
7880 PR tree-optimization/66948
7881 * genmatch.c (capture_info::walk_match): Also recurse to
7882 captures. Properly compute expr state from captures of
7884 * match.pd: Add single-use guards to
7885 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
7887 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7889 * config/nvptx/mkoffload.c (process): Add static destructor call.
7891 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7894 * match.pd (A - B -> A + (-B)): Don't allow folding
7895 when type if a fixed-point type.
7897 2015-07-20 DJ Delorie <dj@redhat.com>
7899 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
7900 (iorqi3_real): Likewise for set1.
7902 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
7904 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
7907 2015-07-20 Aditya Kumar <hiraditya@msn.com>
7909 * graphite-isl-ast-to-gimple.c:
7910 Refactor so that each function can access 'region'. This will help
7911 maintain a parameter rename_map within a region.
7913 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7915 * config/rs6000/rs6000.md (*lt0_disi): New.
7917 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7920 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
7921 "available letters" comment.
7922 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
7923 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
7924 and_2rld_operand): Delete.
7925 (and_operand): Adjust.
7926 (rotate_mask_operator): New.
7927 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
7928 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
7929 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
7930 extract_ME): Delete.
7931 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7932 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
7933 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
7934 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7935 rs6000_emit_2insn_and): New.
7936 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
7937 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
7938 includes_rldic_lshift_p, includes_rldicr_lshift_p,
7939 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
7940 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7941 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
7942 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
7943 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7944 rs6000_emit_2insn_and): New.
7945 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
7946 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
7948 <NOT>: Don't fall through to next case.
7949 <AND>: Handle the various rotate-and-mask cases directly.
7950 <IOR>: Always cost as one insn.
7951 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
7952 (and<mode>3): Adjust expander for the new patterns.
7953 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
7954 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
7955 (*and<mode>3_imm_dot_shifted): New.
7956 (*and<mode>3_mask): Delete, rewrite as ...
7957 (and<mode>3_mask): ... New.
7958 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
7959 (andsi3_internal0_nomc): Delete.
7960 (*andsi3_internal6): Delete.
7961 (*and<mode>3_2insn): New.
7962 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
7963 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
7964 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
7965 *insvdi_internal3): Delete.
7966 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
7967 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
7968 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
7969 *ior<mode>_mask): New.
7970 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
7971 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
7972 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
7973 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
7975 (ashr<mode>3): Delete expander.
7976 (*ashr<mode>3): Rename to ...
7977 (ashr<mode>3): ... This.
7978 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
7979 (*rotldi3_internal4, *rotldi3_internal5 and split,
7980 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
7981 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
7982 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
7983 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
7984 (splitter for loading a mask): Adjust.
7985 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
7987 2015-07-20 Marek Polacek <polacek@redhat.com>
7989 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
7990 output_add_clobbers, output_added_clobbers_hard_reg_p,
7991 gen_rtx_scratch): Remove declarations.
7993 2015-07-20 Marek Polacek <polacek@redhat.com>
7996 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
7998 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8000 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
8001 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
8003 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8005 * combine.c (combine_simplify_rtx): Move simplification step
8006 before various transformations/substitutions.
8008 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
8010 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
8011 (struct int_traits): Likewise.
8013 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8015 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
8016 function to vmsdbgout_function_decl.
8018 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
8021 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
8022 from misaligned positions.
8023 (ix86_expand_pinsr): Reject insertions to misaligned positions.
8025 2015-07-18 Sebastian Pop <s.pop@samsung.com>
8029 * Makefile.in: Removed omega.o.
8030 * common.opt: Document flag fcheck-data-deps as deprecated.
8031 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
8032 its associated params: omega-max-vars, omega-max-geqs,
8033 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
8034 omega-max-keys, omega-eliminate-redundant-constraints.
8035 * doc/loop.texi: Remove all the section on Omega.
8036 * graphite-blocking.c: Include missing params.h: it used to be
8037 included through tree-data-ref.h and omega.h.
8038 * graphite-isl-ast-to-gimple.c: Same.
8039 * graphite-optimize-isl.c: Same.
8040 * graphite-sese-to-poly.c: Same.
8044 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
8045 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
8046 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
8047 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
8048 * passes.def: Remove pass_check_data_deps.
8049 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
8050 (dump_conflict_function): Same.
8051 (dump_subscript): Same.
8052 (print_direction_vector): Same.
8053 (print_dir_vectors): Same.
8054 (print_lambda_vector): Same.
8055 (print_dist_vectors): Same.
8056 (dump_data_dependence_relation): Same.
8057 (dump_data_dependence_relations): Same.
8058 (dump_dist_dir_vectors): Same.
8060 (init_omega_eq_with_af): Removed.
8061 (omega_extract_distance_vectors): Removed.
8062 (omega_setup_subscript): Removed.
8063 (init_omega_for_ddr_1): Removed.
8064 (init_omega_for_ddr): Removed.
8065 (ddr_consistent_p): Removed.
8066 (compute_affine_dependence): Do not use omega to check data
8068 (compute_data_dependences_for_bb): Removed.
8069 (analyze_all_data_dependences): Removed.
8070 (tree_check_data_deps): Removed.
8071 * tree-data-ref.h: Do not include omega.h.
8072 (compute_data_dependences_for_bb): Removed.
8073 (tree_check_data_deps): Removed.
8074 * tree-ssa-loop.c (pass_check_data_deps): Removed.
8075 (make_pass_check_data_deps): Removed.
8076 * tree-ssa-phiopt.c: Include params.h.
8077 * tree-vect-data-refs.c: Same.
8078 * tree-vect-slp.c: Same.
8080 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
8082 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
8083 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
8084 (mem->fpreg splitters): Ditto.
8085 (general_operand->nonimmediate_operand splitter): Use explicit modes.
8086 Disable DFmode for TARGET_64BIT.
8088 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
8091 * config/i386/i386.c (ix86_expand_prologue): Replicate static
8094 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
8096 * config/nvptx/mkoffload.c (process): Constify host data.
8097 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
8099 (generate_host_descr_file): Likewise.
8101 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
8102 Sebastian Pop <s.pop@samsung.com>
8105 * graphite-dependences.c (add_pdr_constraints): Renamed
8106 pdr->extent to pdr->subscript_sizes.
8107 * graphite-interchange.c (build_linearized_memory_access): Add
8108 back all gcc_assert's that the "isl_int to isl_val conversion"
8109 patch has removed. Refactored.
8110 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
8111 * graphite-poly.c (new_poly_dr): Same.
8112 (free_poly_dr): Same.
8113 * graphite-poly.h (struct poly_dr): Same.
8114 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
8115 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
8116 * graphite-scop-detection.h: Fix space.
8117 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
8118 back all gcc_assert's removed by a previous patch.
8119 (wrap): Remove the_isl_ctx global variable that the same patch has
8121 (build_loop_iteration_domains): Same.
8122 (add_param_constraints): Same.
8123 (pdr_add_data_dimensions): Same. Refactored.
8124 (build_poly_dr): Renamed extent to subscript_sizes.
8126 2015-07-17 Marek Polacek <polacek@redhat.com>
8128 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
8129 * match.pd: ... here.
8131 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
8133 * config/nvptx/mkoffload.c (process): Constify target data.
8134 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
8135 Constify target data.
8136 (generate_target_offloadend_file): Likewise.
8138 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
8140 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
8141 to allow renaming of PHI arguments on edges incoming from outer
8142 loop header, add corresponding check before start PHI iterator.
8143 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
8144 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
8145 with true force_vectorize. Set-up dominator for outer loop too.
8146 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
8147 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
8148 was marked with force_vectorize and has restricted cfg.
8149 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
8151 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
8152 do peeling for outer loops.
8154 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
8155 Matthias Klose <doko@ubuntu.com>
8157 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
8158 build-sysroot, sysroot from the `Miscenalleous configure options' to
8159 the `Directories' section and strip trailing `/' from with_sysroot.
8160 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
8161 * configure: Regenerated.
8163 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
8166 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
8167 (TARGET_HARD_DF_REGS): Ditto.
8168 (TARGET_HARD_XF_REGS): Ditto.
8169 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
8170 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
8171 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
8172 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
8173 (*movsf_internal): Add alternatives 16 and 17. Enable
8174 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
8176 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
8178 PR rtl-optimization/66891
8179 * calls.c (expand_call): Wrap precompute_register_parameters with
8180 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
8182 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
8184 * config/nvptx/mkoffload.c (process): Constify mapping variables.
8185 Define target data struct and initialize it.
8187 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
8189 PR rtl-optimization/66626
8190 * ira.h (emit-rtl.h): Include.
8191 (non_spilled_static_chain_regno_p): New.
8192 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
8193 unless it is non spilled static chain pseudo.
8194 (assign_hard_rego): Spill memory profitable allocno unless it is
8195 non spilled static chain pseudo.
8196 (allocno_spill_priority_compare): Put non spilled static chain
8197 pseudo at the end of sorted array.
8198 (improve_allocation): Do nothing if we have static chain and
8200 (allocno__priority_compare_func): Put non spilled static chain
8201 pseudo at the beginning of sorted array.
8202 (move_spill_restore): Ignore non spilled static chain pseudo.
8203 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
8204 to non spilled static chain pseudo.
8205 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
8206 pseudo at the beginning of sorted array.
8207 (spill_for): Spill non spilled static chain pseudo last.
8208 * lra-constraints.c (lra_constraints): Remove static chain pseudo
8209 check for equivalence.
8211 2015-07-16 Martin Liska <mliska@suse.cz>
8214 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
8215 dst_ctx if it does not exist.
8217 2015-07-16 Martin Liska <mliska@suse.cz>
8219 * hash-set.h (remove): New function.
8220 (iterator): New iteration class for hash_set.
8222 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8224 * genattrtab.c (make_canonical): Add a file_location parameter.
8225 Use fatal_at rather than fatal.
8226 (get_attr_value): Likewise. Update call to make_canonical.
8227 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
8228 (make_internal_attr): Update calls accordingly.
8230 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8232 * read-md.h (message_with_line, error_with_line): Delete.
8233 * read-md.c (message_with_line, error_with_line): Delete.
8234 * gensupport.h: Include read-md.h.
8235 (md_rtx_info): New structure.
8236 (read_md_rtx): Use it. Return a bool success value.
8237 * gensupport.c (read_md_rtx): Likewise.
8238 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
8239 (main): Update after interface changes.
8240 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
8241 (main): Update after interface changes.
8242 * genattrtab.c (insn_code_number): Delete.
8243 (optimize_attrs): Add a max_insn_code parameter and use it instead
8244 of insn_code_number.
8245 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
8246 Use *_at rather than *_with_line functions.
8247 (gen_insn): Likewise.
8248 (gen_delay): Likewise.
8249 (gen_insn_reserv): Likewise.
8250 (gen_bypass): Take an md_rtx_info rather than an rtx.
8251 (main): Update after interface changes. Use a local max_insn_code
8252 variable instead of insn_code_number.
8253 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
8254 an rtx. Use fatal_at rather than fatal.
8255 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
8256 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
8257 (gen_absence_set, gen_final_absence_set, gen_automaton)
8258 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
8259 (main): Update after interface changes.
8260 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
8262 (main): Update after interface changes.
8263 * genconditions.c (main): Use new read_md_rtx interface.
8264 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
8265 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
8266 (main): Update after interface changes.
8267 * genemit.c (insn_code_number, insn_index_number): Delete.
8268 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8269 Use fatal_at rather than fatal.
8270 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
8272 (gen_split): Likewise.
8273 (main): Update after interface changes.
8274 * genextract.c (line_no): Delete.
8275 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8276 Update call to walk_rtx.
8277 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
8278 rather than message_with_line.
8279 (walk_rtx): Add an md_rtx_info argument. Update call to
8280 VEC_safe_set_locstr.
8281 (main): Update after interface changes.
8282 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
8283 and lineno. Use error_at rather than separate message_with_line
8284 calls and have_error assignments.
8285 (main): Update after interface changes.
8286 * genmddump.c (main): Use new read_md_rtx interface.
8287 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
8288 (main): Update after interface changes.
8289 * genoutput.c (next_code_number): Delete.
8290 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8291 (gen_peephole, gen_expand, gen_split): Likewise.
8292 (note_constraint): Likewise. Use *_at rather than *_with_line
8294 (main): Update after interface changes.
8295 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
8297 (main): Update after interface changes.
8298 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
8299 than an rtx and lineno.
8300 (process_define_constraint): Likewise.
8301 (process_define_register_constraint): Likewise.
8302 (main): Update after interface changes.
8303 * genrecog.c (next_insn_code, pattern_lineno): Delete.
8304 (validate_pattern): Replace top-level rtx with an md_rtx_info.
8305 Use *_at rather than *_with_line functions.
8306 (match_pattern_2): Likewise.
8307 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
8308 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
8309 Use *_at rather than *_with_line functions.
8310 * gentarget-def.c (add_insn): New function.
8311 (main): Use it. Use new read_md_rtx interface.
8313 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8315 * gensupport.h (compute_test_codes): Take a file_location rather
8317 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
8318 rather than *_with_line functions.
8319 (process_define_predicate): Update call to compute_test_codes.
8320 * genpreds.c (validate_exp): Take a file_location rather than a
8321 line number. Use *_at functions rather than *_with_line functions.
8322 (process_define_predicate): Update call to validate_exp.
8323 (constraint_data): Replace lineno field with a file_location.
8324 (add_constraint): Take a file_location rather than a line number.
8325 Use *_at functions rather than *_with_line functions. Fix error
8326 message for address constraints. Update after changes to
8327 validate_exp, constraint_data and compute_test_codes.
8328 (process_define_constraint): Update accordingly.
8329 (process_define_register_constraint): Likewise.
8331 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8333 * genoutput.c (data): Use a file_location to record the source
8336 (idata, idata_end): Remove initialization.
8337 (constraint_data): Replace lineno with a file_location.
8338 (output_insn_data): Update after changes to data.
8339 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
8340 (scan_operands): Likewise, using *_at rather than *_with_line
8342 (process_template): Likewise.
8343 (validate_insn_alternatives): Likewise.
8344 (validate_insn_operands): Likewise.
8345 (validate_optab_operands): Likewise.
8346 (init_insn_for_nothing): Initialize idata and idata_end.
8347 (note_constraint): Update after changes to constraint_data,
8348 using at rather than with_line functions.
8349 (mdep_constraint_len): Take a file_location rather than a
8350 line number. Use at rather than with_line functions.
8352 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8354 * read-md.h (fatal_at): Declare.
8355 * read-md.c (fatal_at): New function.
8356 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
8357 to record the source position.
8358 (check_attr_test): Take a file_location instead of a line number.
8359 Use fatal_at instead of fatal.
8360 (check_attr_value): Update after above changes, using "at"
8361 rather than "with_line" reporting functions.
8362 (convert_set_attr_alternative): Likewise.
8363 (gen_attr): Likewise.
8364 (check_defs): Likewise. Don't assign to read_md_filename.
8365 (gen_insn): Update initialization after above changes.
8366 (gen_delay): Likewise.
8367 (write_insn_cases): Print the filename for a define_peephole.
8368 (gen_insn_reserv): Take a line number as argument and update
8369 the call to check_attr_test.
8370 (main): Pass a line number to gen_insn_reserv.
8372 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8374 * read-md.h (file_location): New structure.
8375 (directive_handler_t): Take a file_location rather than a line number.
8376 (message_at, error_at): Declare.
8377 (read_skip_construct): Delete.
8378 * read-md.c (message_with_line_1): Replace with...
8379 (message_at_1): ...this new function.
8380 (message_at, error_at): New functions.
8381 (message_with_line, error_with_line): Update to use message_at_1.
8382 (handle_enum): Take a file_location rather than a line number
8383 and use error_at for error reporting.
8384 (handle_include): Likewise.
8385 (read_skip_construct): Likewise. Make static.
8386 (handle_file): Update after above changes. Pass a file_location
8387 rather than a line number to handle_directive.
8388 * gensupport.c (queue_elem): Replace separate filename and lineno
8389 with a file_location.
8390 (queue_pattern): Replace filename and lineno arguments with a
8391 file_location. Update after change to queue_elem.
8392 (process_define_predicate): Replace lineno argument with a
8393 file_location and use error_at for error reporting. Update
8394 after above changes.
8395 (process_rtx): Likewise.
8396 (subst_pattern_match): Likewise.
8397 (get_alternatives_number): Likewise.
8398 (alter_predicate_for_insn): Likewise.
8399 (rtx_handle_directive): Likewise.
8400 (is_predicable): Update after above changes, using error_at rather
8401 than error_with_line.
8402 (has_subst_attribute): Likewise.
8403 (identify_predicable_attribute): Likewise.
8404 (alter_attrs_for_subst_insn): Likewise.
8405 (process_one_cond_exec): Likewise.
8406 (process_substs_on_one_elem): Likewise.
8407 (process_define_subst): Likewise.
8408 (check_define_attr_duplicates): Likewise.
8409 (read_md_rtx): Update after change to queue_elem.
8411 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8413 * genoutput.c (next_index_number): Delete.
8414 (data): Remove index_number.
8415 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
8416 (main): Remove manipulation of next_index_number.
8418 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8420 * genattrtab.c (check_attr_value): Remove handling of null attrs.
8421 (make_canonical): Likewise.
8423 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
8425 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
8426 instead of adjust_address_nv.
8427 (restore_stack_nonlocal): Likewise.
8428 (nonlocal_goto): Likewise.
8430 2015-07-16 Tom de Vries <tom@codesourcery.com>
8432 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
8433 not have a corresponding loop header phi.
8435 2015-07-16 Tom de Vries <tom@codesourcery.com>
8437 * tree-parloops.c (create_loads_for_reductions): Handle case that
8438 reduction is unused.
8440 2015-07-16 Richard Biener <rguenther@suse.de>
8442 PR tree-optimization/66894
8443 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
8444 about deriving NE_EXPR from truncated values.
8446 2015-07-16 Martin Liska <mliska@suse.cz>
8449 (object_allocator): Add new class.
8450 (pool_allocator::initialize): Use the underlying class.
8451 (pool_allocator::allocate): Likewise.
8452 (pool_allocator::remove): Likewise.
8453 (operator new): A new generic allocator.
8454 * asan.c (struct asan_mem_ref): Remove unused members.
8455 (asan_mem_ref_new): Replace new operator with
8456 object_allocator::allocate.
8457 (free_mem_ref_resources): Change deallocation.
8458 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
8459 with object_allocator.
8460 * config/sh/sh.c (add_constant): Replace new operator with
8461 object_allocator::allocate.
8462 (sh_reorg): Change call to a release method.
8463 * cselib.c (struct elt_list): Remove unused members.
8464 (new_elt_list): Replace new operator with
8465 object_allocator::allocate.
8466 (new_elt_loc_list): Likewise.
8467 (new_cselib_val): Likewise.
8468 (unchain_one_elt_list): Change delete operator with remove method.
8469 (unchain_one_elt_loc_list): Likewise.
8470 (unchain_one_value): Likewise.
8471 (cselib_finish): Release newly added static allocators.
8472 * cselib.h (struct cselib_val): Remove unused members.
8473 (struct elt_loc_list): Likewise.
8474 * df-problems.c (df_chain_alloc): Replace pool_allocator with
8476 * df-scan.c (struct df_scan_problem_data): Likewise.
8477 (df_scan_alloc): Likewise.
8478 * df.h (struct dataflow): Likewise.
8479 * dse.c (struct read_info_type): Likewise.
8480 (struct insn_info_type): Likewise.
8481 (struct dse_bb_info_type): Likewise.
8482 (struct group_info): Likewise.
8483 (struct deferred_change): Likewise.
8484 (get_group_info): Likewise.
8485 (delete_dead_store_insn): Likewise.
8486 (free_read_records): Likewise.
8487 (replace_read): Likewise.
8488 (check_mem_read_rtx): Likewise.
8489 (scan_insn): Likewise.
8490 (dse_step1): Likewise.
8491 (dse_step7): Likewise.
8492 * et-forest.c (struct et_occ): Remove unused members.
8493 (et_new_occ): Use allocate instead of new operator.
8494 (et_new_tree): Likewise.
8495 (et_free_tree): Call release method explicitly.
8496 (et_free_tree_force): Likewise.
8497 (et_free_pools): Likewise.
8498 (et_split): Use remove instead of delete operator.
8499 * et-forest.h (struct et_node): Remove unused members.
8500 * ipa-cp.c: Change pool_allocator to object_allocator.
8501 * ipa-inline-analysis.c: Likewise.
8502 * ipa-profile.c: Likewise.
8503 * ipa-prop.c: Likewise.
8504 * ipa-prop.h: Likewise.
8505 * ira-build.c (initiate_cost_vectors): Cast return value.
8506 (ira_allocate_cost_vector): Likewise.
8507 * ira-color.c (struct update_cost_record): Remove unused members.
8508 * lra-int.h (struct lra_live_range): Likewise.
8509 (struct lra_copy): Likewise.
8510 (struct lra_insn_reg): Likewise.
8511 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
8512 * lra.c (new_insn_reg): Replace new operator with allocate method.
8513 (free_insn_regs): Same for operator delete.
8514 (finish_insn_regs): Release new static allocator.
8515 (finish_insn_recog_data): Likewise.
8516 (lra_free_copies): Replace delete operator with remove method.
8517 (lra_create_copy): Replace operator new with allocate method.
8518 (invalidate_insn_data_regno_info): Same for remove method.
8519 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
8520 (free_debug_insn_changes): Replace delete operator with remove method.
8521 (replace_oldest_value_reg): Replace operator new with allocate method.
8522 (pass_cprop_hardreg::execute): Release new static variable.
8523 * sched-deps.c (sched_deps_init): Change pool_allocator to
8525 * sel-sched-ir.c: Likewise.
8526 * sel-sched-ir.h: Likewise.
8527 * stmt.c (expand_case): Likewise.
8528 (expand_sjlj_dispatch_table): Likewise.
8529 * tree-sra.c (struct access): Remove unused members.
8530 (struct assign_link): Likewise.
8531 (sra_deinitialize): Release newly added static pools.
8532 (create_access_1):Replace operator new with allocate method.
8533 (build_accesses_from_assign): Likewise.
8534 (create_artificial_child_access): Likewise.
8535 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
8536 pool_allocator to object_allocator.
8537 * tree-ssa-pre.c: Likewise.
8538 * tree-ssa-reassoc.c: Likewise.
8539 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
8540 * tree-ssa-strlen.c: Likewise.
8541 * tree-ssa-structalias.c: Likewise.
8542 * var-tracking.c (onepart_pool_allocate): New function.
8543 (unshare_variable): Use the newly added function.
8544 (variable_merge_over_cur): Likewise.
8545 (variable_from_dropped): Likewise.
8546 (variable_was_changed): Likewise.
8547 (set_slot_part): Likewise.
8548 (emit_notes_for_differences_1): Likewise.
8549 (vt_finalize): Release newly added static pools.
8551 2015-07-16 Martin Jambor <mjambor@suse.cz>
8553 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
8554 all uses. Fix two typos in its general comment.
8555 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
8557 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
8559 * config/i386/linux-common.h (LINK_MPX): New.
8560 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
8561 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
8562 indicating '-z bndplt' support by linker.
8563 * configure: Regenerate.
8564 * config.in: Regenerate.
8566 2015-07-16 Richard Biener <rguenther@suse.de>
8568 * fold-const.c (fold_widened_comparison): Remove.
8569 (fold_sign_changed_comparison): Likewise.
8570 (fold_comparison): Move widened and sign-changed comparison
8572 * match.pd: ... to patterns here.
8573 * generic-match-head.c: Include target.h.
8574 * gimple-match-head.c: Likewise.
8576 2015-07-16 Richard Biener <rguenther@suse.de>
8578 * tree-ssa-dom.c (dom_valueize): New function.
8579 (record_temporary_equivalences): Also record equivalences
8580 for dominating stmts that have uses of equivalences we are
8583 2015-07-16 Bin Cheng <bin.cheng@arm.com>
8585 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
8586 add_autoinc_candidates.
8587 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
8588 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
8589 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
8590 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
8592 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
8593 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
8594 Remove parameter struct iv*. Call add_autoinc_candidates here.
8595 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
8596 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
8598 (find_iv_candidates): Call new functions.
8600 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
8602 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
8603 uninitialized-variable warning.
8605 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
8608 * config/sh/sh.md (movdi): Split simple reg move to two movsi
8609 when the destination is R0.
8611 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
8614 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
8615 * config/i386/i386.c (ix86_expand_pextr): New function.
8616 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
8617 for non-lowpart subregs.
8618 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
8619 (insv<mode>): Use SWI248 mode iterator.
8620 (insv<mode>_1): Ditto.
8622 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8623 Sebastian Pop <s.pop@samsung.com>
8625 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
8626 iterator to use_stmt.
8628 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8629 Sebastian Pop <s.pop@samsung.com>
8631 * graphite-scop-detection.c (build_scops_1): Discard scops for
8634 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8635 Sebastian Pop <s.pop@samsung.com>
8637 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
8638 case of a return statement in scop.
8640 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8641 Sebastian Pop <s.pop@samsung.com>
8643 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
8644 INTEGER_TYPE parameters.
8645 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
8646 VECTOR_CST in scan_tree_for_params.
8647 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
8649 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8651 * gimple-pretty-print.h: Don't include pretty-print.h.
8652 * tree-streamer.h: Don't include lto-streamer.h.
8653 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
8654 * gimple-streamer-in.c: Remove redundant includes.
8655 * gimple-streamer-out.c: Likewise.
8656 * ipa-devirt.c: Likewise.
8657 * ipa-icf.c: Likewise.
8658 * ipa-inline-analysis.c: Likewise.
8659 * ipa-polymorphic-call.c: Likewise.
8660 * ipa-profile.c: Likewise.
8661 * ipa-prop.c: Likewise.
8662 * ipa-pure-const.c: Likewise.
8663 * lto-cgraph.c: Likewise.
8664 * lto-streamer-in.c: Likewise.
8665 * lto-streamer-out.c: Likewise.
8666 * lto-streamer.c: Likewise.
8667 * tree-streamer-in.c: Likewise.
8668 * tree-streamer-out.c: Likewise.
8669 * tree-streamer.c: Likewise.
8671 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8673 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
8675 * opts.c: Remove multiline #include comment.
8677 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
8679 * config/nvptx/mkoffload.c (process): Add C++ protection to
8682 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8685 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
8686 null before IEEE 128-bit floating point support patch.
8688 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8690 * simplify-rtx.c (simplify_ternary_operation): Add simplification
8691 for (!c) != {0,...,0} ? a : b for vector modes.
8693 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
8694 Martin Jambor <mjambor@suse.cz>
8696 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
8697 struct func_body_info* instead of struct ipa_node_params*, expecting
8698 fbi->info to be filled in. Replace throughout. Adjust call to
8699 ipa_load_from_parm_agg.
8700 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
8701 instead of struct ipa_node_params*. Adjust calls to other functions
8702 so that they pass either fbi or fbi->info.
8703 (set_switch_stmt_execution_predicate): Likewise.
8704 (will_be_nonconstant_predicate): Likewise.
8705 (compute_bb_predicates): Likewise.
8706 (estimate_function_body_sizes): Move asserts earlier. Fill in
8707 struct func_body_info, replace parms_info with fbi.info. Adjust
8708 calls to functions that now accept struct func_body_info.
8709 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
8710 (struct func_body_info): Likewise.
8711 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
8712 remove static. Adjust callers.
8713 (ipa_load_from_parm_agg): Remove.
8714 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
8715 (func_body_info): Likewise.
8716 (ipa_load_from_parm_agg): Adjust prototype.
8718 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8720 * gensupport.c (rtx_handle_directive): Adjust.
8721 * read-rtl.c (apply_iterators): Take vector to add rtxs to
8722 instead of expr list rtx.
8723 (add_define_attr_for_define_subst): Likewise.
8724 (add_define_subst_attr): Likewise.
8725 (read_subst_mapping): Likewise.
8726 (read_rtx): Likewise.
8727 * rtl.h (read_rtx): Adjust.
8729 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8731 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
8733 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8736 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
8737 (*tls_local_dynamic_base_64_<mode>): Ditto.
8738 (*tls_local_dynamic_base_64_largepic): Ditto.
8739 (tls_global_dynamic_64_<mode>): Update expander pattern.
8740 (tls_local_dynamic_base_64_<mode>): Ditto.
8742 2015-07-15 Richard Biener <rguenther@suse.de>
8744 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
8745 and bool_var == 1 -> bool_var simplifications ...
8746 * match.pd: ... to patterns here. Factor out negate_expr_p
8747 cases from the A - B -> A + (-B) patterns as negate_expr_p
8748 predicate and add a -(A + B) -> (-B) - A pattern.
8750 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8752 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
8754 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
8755 Robert Suchanek <robert.suchanek@imgtec.com>
8757 * config/mips/mips.c (mips_int_mask): New enum.
8758 (mips_shadow_set): Likewise.
8759 (int_mask): New variable.
8760 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
8761 (machine_function): Add int_mask and use_shadow_register_set.
8762 (mips_attribute_table): Add attribute handlers for interrupt and
8763 use_shadow_register_set.
8764 (mips_interrupt_mask): New static function.
8765 (mips_handle_interrupt_attr): Likewise.
8766 (mips_handle_use_shadow_register_set_attr): Likewise.
8767 (mips_use_shadow_register_set): Change return type to enum
8768 mips_shadow_set. Add argument handling for use_shadow_register_set
8770 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
8771 compare with mips_shadow_set enum.
8772 (mips_compute_frame_info): Add interrupt mask and
8773 use_shadow_register_set to per-function information structure.
8774 Add a stack slot for EPC unconditionally.
8775 (mips_expand_prologue): Compare use_shadow_register_set value
8776 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
8777 masked interrupt register but in EIC mode use K0 and save Cause in K0.
8778 EPC saved and restored unconditionally. Use PMODE_INSN macro when
8779 copying the stack pointer from the shadow register set.
8780 * config/mips/mips.h (SR_IM0): New define.
8781 * config/mips/mips.md (mips_rdpgpr): Rename to...
8782 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
8783 * doc/extend.texi (Declaring Attributes of Functions): Document
8784 optional arguments for interrupt and use_shadow_register_set
8787 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8789 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
8790 interrupt attribute.
8791 (mips_expand_prologue): Disable the floating point unit in an ISR.
8792 * config/mips/mips.h (SR_COP1): New define.
8794 2015-07-15 Richard Biener <rguenther@suse.de>
8796 * genmatch.c (parser::peek, parser::peek_ident): Add argument
8797 to tell how many tokens to peek ahead (default 1).
8798 (parser::eat_token, parser::eat_ident): Return token consumed.
8799 (parser::parse_result): Parse new switch statement.
8800 * match.pd: Use case statements where appropriate.
8802 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8804 PR rtl-optimization/58066
8805 * calls.c (expand_call): Precompute register parameters before stack
8806 alignment is performed.
8808 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8810 PR rtl-optimization/66838
8811 * postreload.c (reload_cse_move2add): Also process
8812 CALL_INSN_FUNCTION_USAGE when resetting information of
8813 call-clobbered registers.
8815 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8816 Cesar Philippidis <cesar@codesourcery.com>
8817 Chung-Lin Tang <cltang@codesourcery.com>
8819 * config/nios2/constraints.md (U, v): New constraints.
8820 * config/nios2/predicates.md (rdprs_dcache_operand): New.
8821 (ldstex_memory_operand): New.
8822 * config/nios2/sync.md: New file.
8823 * config/nios2/nios2.md (unspecv): Add new builtin function
8825 (rdprs, flushd, flushda, wrpie, eni): New patterns.
8826 (top-level): Include sync.md.
8827 * config/nios2/nios2.c (N2_FTYPES): Add function types for
8829 (N2_BUILTINS): Add arch field setting, add new builtins.
8830 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
8832 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
8833 Also handle ldex/stex/ldsex/stsex builtins.
8834 (nios2_expand_rdprs_builtin): New function.
8835 (nios2_expand_cache_builtin): New function.
8836 (nios2_expand_wrpie_builtin): New function.
8837 (nios2_expand_eni_builtin): New function.
8838 (nios2_expand_builtin): Add arch field handling and new builtin
8840 * doc/extend.texi (Altera Nios II Built-in Functions): Document
8842 * doc/md.texi (Machine Constraints): Document U and v constraints.
8844 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8845 Cesar Philippidis <cesar@codesourcery.com>
8846 Chung-Lin Tang <cltang@codesourcery.com>
8848 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
8849 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
8850 callee_save_reg_size and uses_anonymous_args fields.
8851 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
8852 (nios2_create_cfa_notes): New function.
8853 (nios2_adjust_stack): New function for adjusting stack.
8854 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
8855 Use nios2_adjust_stack.
8856 (nios2_expand_epilogue): Likewise.
8857 (nios2_expand_return): New function.
8858 (nios2_can_use_return_insn): Update for CDX pop.n usage.
8859 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
8860 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
8861 * config/nios2/nios2.md (return): Use nios2_expand_return.
8863 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8864 Cesar Philippidis <cesar@codesourcery.com>
8865 Chung-Lin Tang <cltang@codesourcery.com>
8867 * config/nios2/predicates.md (pop_operation): New.
8868 (ldwm_operation, stwm_operation): New.
8869 (nios2_hard_register_operand): New.
8870 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
8871 (ldstwm_operation_p): Declare.
8872 (gen_ldstwm_peep): Declare.
8873 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
8874 (base_reg_adjustment_p): New.
8875 (pop_operation_p): New.
8876 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
8877 (nios2_ldstwm_regset_p): New.
8878 (ldstwm_operation_p): New.
8880 (nios2_ldst_parallel): New.
8881 (struct ldswm_operand): Declare.
8882 (compare_ldstwm_operands): New.
8883 (can_use_cdx_ldstw): New.
8884 (gen_ldstwm_peep): New.
8885 * config/nios2/nios2-ldstwm.sml: New.
8886 * config/nios2/nios2.md: Include ldstwm.md.
8887 * config/nios2/ldstwm.md: Generated.
8889 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8890 Cesar Philippidis <cesar@codesourcery.com>
8891 Chung-Lin Tang <cltang@codesourcery.com>
8893 * config/nios2/nios2.h (LABEL_ALIGN): Define.
8894 (REG_ALLOC_ORDER): Define.
8895 (ADJUST_REG_ALLOC_ORDER): Define.
8896 (HONOR_REG_ALLOC_ORDER): Define.
8897 (CDX_REG_P): Define.
8898 (ANDCLEAR_INT): Define.
8899 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
8900 (nios2_label_align): Declare.
8901 (nios2_cdx_narrow_form_p): Declare.
8902 (nios2_adjust_reg_alloc_order): Declare.
8903 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
8905 (nios2_large_unspec_reloc_p): New function, split from...
8906 (nios2_legitimate_pic_operand_p): ...here.
8907 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
8908 (nios2_print_operand_punct_valid_p): New.
8909 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
8910 (split_mem_address): New.
8911 (split_alu_insn): New.
8913 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
8914 (enum nios2_add_insn_kind): New.
8915 (nios2_add_insn_names, nios2_add_insn_narrow): New.
8916 (nios2_add_insn_classify): New.
8917 (nios2_add_insn_asm): New.
8918 (nios2_cdx_narrow_form_p): New.
8919 (label_align, min_labelno, max_labelno): New.
8921 (nios2_label_align): New.
8922 (nios2_adjust_reg_alloc_order): New.
8923 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8924 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8925 * config/nios2/constraints.md (P): New constraint.
8926 * config/nios2/predicates.md (const_and_operand): New.
8928 (stack_memory_operand): New.
8929 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
8930 (length): Update to use nios2_cdx_narrow_form_p().
8931 (type): Add new insn type values.
8932 (control, alu, st, ld, shift): Update insn reservations with
8933 new insn type values.
8934 (*high, *lo_sum): Define new insn patterns for constant generation.
8935 (movqi_internal, movhi_internal, movsi_internal): Reduce
8936 alternatives, update asm template to handle CDX variants, update
8938 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
8939 template, update type attributes.
8940 (extendhisi2, extendqi<mode>2): Likewise.
8941 (addsi3): Change to use function for asm string.
8942 (subsi3): Add CDX notation to asm template, update type attributes.
8943 (negsi3, one_cmplsi3): Likewise.
8944 (andsi3): New pattern, specialized from logical patterns.
8945 (<code>si3): Remove and case, combine alternatives, update asm
8947 (<shift_op>si3): Add CDX notation, update type attributes.
8948 (rotrsi3): Update type attribute.
8949 (*merge, extzv, insv): New insn patterns.
8950 (return): Change to define_expand.
8951 (simple_return): Add CDX notation, update type attributes.
8952 (indirect_jump): Add CDX notation.
8953 (jump): Update asm cases, update length attribute expression.
8954 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
8955 (nios2_cbranch): Update asm cases and length attribute expression
8956 to handle CDX variants.
8957 (nios2_cmp<code>): Update asm template.
8958 (nop): Add CDX notation, update type attributes.
8959 (trap): Add CDX notation.
8960 (ctrapsi4): Update asm cases and length attribute expression to
8962 * doc/md.texi (Machine Constraints): Document P constraint.
8964 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8965 Cesar Philippidis <cesar@codesourcery.com>
8966 Chung-Lin Tang <cltang@codesourcery.com>
8968 * config/nios2/nios2.h (SMALL_INT12): New macro.
8969 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
8970 (nios2_valid_addr_expr_p): Use it.
8971 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
8972 with implicit "io" instructions on R2.
8973 * config/nios2/constraints.md (w): New constraint.
8974 * config/nios2/predicates.md (ldstio_memory_operand): New.
8975 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
8976 operand predicate and constraint.
8977 (ld<bh>io_signed, st<bhw>io>): Likewise.
8978 * doc/md.texi (Machine Constraints): Document w constraint.
8980 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8981 Cesar Philippidis <cesar@codesourcery.com>
8982 Chung-Lin Tang <cltang@codesourcery.com>
8984 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
8985 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
8986 Nios II architecture level.
8987 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
8988 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
8989 (OPTION_DEFAULT_SPECS): Define.
8990 (ASM_SPEC): Add -march= spec strings.
8991 * config/nios2/nios2.c (nios2_option_override): Check for
8992 conflicts involving new options.
8993 * config.gcc (nios2*-*-*): Support --with-arch=.
8994 * doc/invoke.texi (Option Summary, Nios II Options): Document
8995 -march=, -mbmx, and -mcdx.
8997 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
8999 PR rtl-optimization/66626
9000 * lra-constraints.c (lra_constraints): Prevent equivalence
9001 substitution for static chain pseudo in functions with nonlocal
9004 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
9006 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
9007 (nios2_emit_stack_limit_check): Add size parameter. Handle
9008 -fstack-limit-symbol as well as -fstack-limit-register.
9009 (nios2_expand_prologue): Emit only a single stack limit check,
9010 even if multiple stack adjustments are required.
9011 (nios2_option_override): Diagnose unsupported combination of -fpic
9012 and -stack-limit-symbol.
9014 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
9016 * Makefile.in (top_srcdir): New.
9017 * configure.ac: Use AM_ZLIB.
9018 * configure: Regeneated.
9020 2015-07-14 Matthias Klose <doko@ubuntu.com>
9023 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
9025 2015-07-14 Richard Biener <rguenther@suse.de>
9027 PR tree-optimization/66863
9028 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
9029 what we record for conversion use stmt lhs inequalities.
9031 2015-07-14 Richard Biener <rguenther@suse.de>
9033 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
9034 (decision_tree::gen_gimple): Likewise.
9036 2015-07-14 Tom de Vries <tom@codesourcery.com>
9038 * gcc.c (greater_than_spec_func): Declare forward.
9039 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
9040 -ftree-parallelize-loops={0,1}.
9041 (static_spec_functions): Add greater_than_spec_func function with name
9043 (greater_than_spec_func): New function.
9045 2015-07-14 Richard Biener <rguenther@suse.de>
9047 * tree-ssa-dom.c (record_temporary_equivalences): Merge
9048 wideing type conversion case from record_equivalences_from_incoming_edge
9049 and use record_equality to record equivalences.
9050 (record_equivalences_from_incoming_edge): Call
9051 record_temporary_equivalences.
9053 2015-07-14 Richard Biener <rguenther@suse.de>
9055 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
9056 (struct if_expr): New.
9057 (struct with_expr): Likewise.
9058 (is_a_helper): Add helpers for if_expr and with_expr.
9059 (struct simplify): Add simplify_kind enum and member. Remove
9061 (simplify::simplify): Adjust.
9062 (lower_commutative): Adjust.
9063 (lower_opt_convert): Likewise.
9064 (lower_cond): Likewise.
9065 (replace_id): Handle with_expr and if_expr.
9066 (lower_for): Adjust.
9067 (dt_simplify::gen_1): New recursive worker, split out from ...
9068 (dt_simplify::gen): ... here. Deal with if and with expansion
9070 (capture_info::capture_info): Take context argument
9071 (capture_info::walk_result): Only analyze specific result.
9072 (parser::parse_result): New function.
9073 (parser::parse_simplify): Adjust to parse ifs with then end
9075 (parser::parse_if): Simplify.
9076 (parser::parse_pattern): Pass down simplify kind.
9077 * match.pd: Convert if structure to new syntax.
9079 2015-07-13 Marek Polacek <polacek@redhat.com>
9081 * rtl.c (rtx_equal_p_cb): Fix typo.
9083 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
9085 * omega.h: Don't include config.h, don't include params.h again if
9086 omega.h has already been included.
9087 * graphite-poly.h: Include sese.h.
9088 * graphite.c: Don't include sese.h, remove needless includes and
9089 minimize includes outside #ifdef HAVE_isl block.
9090 * graphite-blocking.c: Don't include sese.h, remove needless includes,
9091 and wrap entire file in #ifdef HAVE_isl
9092 * graphite-dependences.c: Likewise.
9093 * graphite-interchange.c: Likewise.
9094 * graphite-isl-ast-to-gimple.c: Likewise.
9095 * graphite-optimize-isl.c: Likewise.
9096 * graphite-poly.c: Likewise.
9097 * graphite-scop-detection.c: Likewise.
9098 * graphite-sese-to-poly.c: Likewise.
9100 2015-07-13 Tom de Vries <tom@codesourcery.com>
9102 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
9104 2015-07-13 Renlin Li <renlin.li@arm.com>
9107 * simplify-rtx.c (simplify_const_relational_operation): Add
9108 side_effects_p checks.
9110 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
9112 * bitmap.h: Fix double word typos.
9115 * cfgloopmanip.c: Same.
9118 * cgraphclones.c: Same.
9120 * config/aarch64/aarch64-protos.h: Same.
9121 * config/aarch64/aarch64.c: Same.
9122 * config/aarch64/aarch64.md: Same.
9123 * config/arm/arm.md: Same.
9124 * config/arm/arm1020e.md: Same.
9125 * config/arm/arm1026ejs.md: Same.
9126 * config/arm/arm926ejs.md: Same.
9127 * config/arm/fa526.md: Same.
9128 * config/arm/fa606te.md: Same.
9129 * config/arm/fa626te.md: Same.
9130 * config/arm/fa726te.md: Same.
9131 * config/arm/fmp626.md: Same.
9132 * config/darwin.c: Same.
9133 * config/epiphany/epiphany.c: Same.
9134 * config/frv/frv.c: Same.
9135 * config/ft32/ft32.c: Same.
9136 * config/gnu-user.h: Same.
9137 * config/h8300/constraints.md: Same.
9138 * config/i386/i386.c: Same.
9139 * config/i386/i386.md: Same.
9140 * config/iq2000/iq2000.md: Same.
9141 * config/mips/mips.c: Same.
9142 * config/mmix/mmix.md: Same.
9143 * config/moxie/moxie.c: Same.
9144 * config/nds32/nds32.md: Same.
9145 * config/pa/pa.h: Same.
9146 * config/rs6000/aix.h: Same.
9147 * config/rs6000/rs6000.h: Same.
9148 * config/sh/sh.c: Same.
9149 * config/tilegx/tilegx.md: Same.
9150 * config/tilepro/gen-mul-tables.cc: Same.
9153 * doc/invoke.texi: Same.
9155 * dwarf2out.c: Same.
9160 * hash-table.h: Same.
9161 * internal-fn.c: Same.
9163 * ipa-devirt.c: Same.
9166 * ipa-profile.c: Same.
9171 * reg-stack.c: Same.
9177 * tree-inline.c: Same.
9179 * tree-ssa-dom.c: Same.
9180 * tree-ssa-loop-ivopts.c: Same.
9181 * tree-ssa-structalias.c: Same.
9182 * tree-ssa-tail-merge.c: Same.
9183 * tree-ssa-ter.c: Same.
9184 * tree-ssa-threadupdate.c: Same.
9185 * tree-ssa-uninit.c: Same.
9186 * tree-ssanames.c: Same.
9187 * tree-vect-loop-manip.c: Same.
9193 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9196 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
9197 tree_ssa_phiopt_worker): Call it.
9199 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9201 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
9202 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
9205 2015-07-11 Marek Polacek <polacek@redhat.com>
9208 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
9209 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
9210 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
9211 rather than bb_has_abnormal_call_pred.
9212 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
9213 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
9214 rather than bb_has_abnormal_call_pred.
9216 2015-07-10 Anatoly Sokolov <aesok@post.ru>
9218 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9219 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
9220 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9221 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
9222 v850_legitimate_address_p): New functions.
9223 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
9225 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
9228 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
9229 indirect sibcall with register arguments if register available
9230 for argument passing.
9231 (init_cumulative_args): Set cfun->machine->arg_reg_available
9232 to (cum->nregs > 0) or to true if function has a variable
9234 (function_arg_advance_32): Set cfun->machine->arg_reg_available
9235 to false if cum->nregs <= 0.
9236 * config/i386/i386.h (machine_function): Add arg_reg_available.
9238 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
9240 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
9241 and gen_higpart instead of gen_rtx_SUBREG.
9242 * config/i386/i386.md
9243 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
9244 (read-modify peephole2): Use gen_lowpart instead of
9245 gen_rtx_SUBREG for operand 5.
9247 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
9249 * config/tilepro/gen-mul-tables.cc (main): Change include list for
9251 * config/tilepro/mul-tables.c: Regenerate.
9252 * config/tilegx/mul-tables.c: Regenerate.
9254 2015-07-10 Richard Biener <rguenther@suse.de>
9256 * fold-const.c (distribute_bit_expr): Remove.
9257 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
9258 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
9259 to A & (B | C) and simplifying A << C1 << C2 to ...
9260 * match.pd: ... patterns here.
9262 2015-07-10 Jiong Wang <jiong.wang@arm.com>
9264 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9265 Mark mem as READONLY and NOTRAP for PIC symbol.
9267 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
9269 * gimple-predict.h: New file.
9270 (gimple_predict_predictor, gimple_predict_set_predictor,
9271 gimple_predict_outcome, gimple_predict_set_outcome,
9272 gimple_build_predict): Relocate here.
9273 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
9274 gimple_predict_outcome, gimple_predict_set_outcome): Move to
9276 * gimple.c (gimple_build_predict): Move to gimple-predict.h
9277 * basic-block.h: Don't include cfghooks.h.
9278 * backend.h: Don't include predict.h.
9279 * cfghooks.h: Include predict.h.
9280 * gimple-pretty-print.c: Include gimple-predict.h.
9281 * gimplify.c: Likwise.
9282 * predict.c: Adjust includes.
9283 * tree-inline.c: Likewise.
9285 * auto-inc-dec.c: Likewise.
9286 * auto-profile.c: Likewise.
9287 * bb-reorder.c: Likewise.
9288 * builtins.c: Likewise.
9289 * caller-save.c: Likewise.
9290 * calls.c: Likewise.
9291 * cfganal.c: Likewise.
9292 * cfgbuild.c: Likewise.
9294 * cfgcleanup.c: Likewise.
9295 * cfgexpand.c: Likewise.
9296 * cfghooks.c: Likewise.
9297 * cfgloopanal.c: Likewise.
9298 * cfgloop.c: Likewise.
9299 * cfgloopmanip.c: Likewise.
9300 * cfgrtl.c: Likewise.
9301 * cgraph.c: Likewise.
9302 * cgraphunit.c: Likewise.
9303 * combine.c: Likewise.
9304 * cprop.c: Likewise.
9307 * dojump.c: Likewise.
9309 * except.c: Likewise.
9310 * expmed.c: Likewise.
9312 * final.c: Likewise.
9313 * fold-const.c: Likewise.
9314 * function.c: Likewise.
9315 * fwprop.c: Likewise.
9316 * gcc-plugin.h: Likewise.
9318 * genattrtab.c: Likewise.
9319 * genemit.c: Likewise.
9320 * gengtype.c: Likewise.
9321 * genopinit.c: Likewise.
9322 * genoutput.c: Likewise.
9323 * genpreds.c: Likewise.
9324 * genrecog.c: Likewise.
9325 * gimple-fold.c: Likewise.
9326 * gimple-iterator.c: Likewise.
9327 * gimple-ssa-isolate-paths.c: Likewise.
9328 * gimple-ssa-strength-reduction.c: Likewise.
9329 * graph.c: Likewise.
9330 * graphite-blocking.c: Likewise.
9331 * graphite.c: Likewise.
9332 * graphite-dependences.c: Likewise.
9333 * graphite-interchange.c: Likewise.
9334 * graphite-isl-ast-to-gimple.c: Likewise.
9335 * graphite-optimize-isl.c: Likewise.
9336 * graphite-poly.c: Likewise.
9337 * graphite-scop-detection.c: Likewise.
9338 * graphite-sese-to-poly.c: Likewise.
9339 * haifa-sched.c: Likewise.
9340 * ifcvt.c: Likewise.
9341 * internal-fn.c: Likewise.
9342 * ipa-cp.c: Likewise.
9343 * ipa-profile.c: Likewise.
9344 * ipa-split.c: Likewise.
9345 * ipa-utils.c: Likewise.
9346 * ira-build.c: Likewise.
9347 * ira-color.c: Likewise.
9348 * ira-conflicts.c: Likewise.
9349 * ira-costs.c: Likewise.
9350 * ira-emit.c: Likewise.
9351 * ira-lives.c: Likewise.
9353 * loop-doloop.c: Likewise.
9354 * loop-init.c: Likewise.
9355 * loop-invariant.c: Likewise.
9356 * loop-unroll.c: Likewise.
9357 * lower-subreg.c: Likewise.
9358 * lra-assigns.c: Likewise.
9360 * lra-coalesce.c: Likewise.
9361 * lra-constraints.c: Likewise.
9362 * lra-lives.c: Likewise.
9363 * lto-cgraph.c: Likewise.
9364 * lto-streamer-in.c: Likewise.
9365 * mode-switching.c: Likewise.
9366 * modulo-sched.c: Likewise.
9367 * omp-low.c: Likewise.
9368 * optabs.c: Likewise.
9369 * passes.c: Likewise.
9370 * postreload.c: Likewise.
9371 * postreload-gcse.c: Likewise.
9372 * profile.c: Likewise.
9373 * recog.c: Likewise.
9374 * regstat.c: Likewise.
9375 * reload1.c: Likewise.
9376 * reorg.c: Likewise.
9377 * rtlanal.c: Likewise.
9378 * sched-ebb.c: Likewise.
9379 * sel-sched-ir.c: Likewise.
9381 * shrink-wrap.c: Likewise.
9382 * simplify-rtx.c: Likewise.
9384 * store-motion.c: Likewise.
9385 * tracer.c: Likewise.
9386 * trans-mem.c: Likewise.
9387 * tree-call-cdce.c: Likewise.
9388 * tree-cfg.c: Likewise.
9389 * tree-cfgcleanup.c: Likewise.
9390 * tree-chkp.c: Likewise.
9391 * tree-complex.c: Likewise.
9392 * tree-eh.c: Likewise.
9393 * tree-if-conv.c: Likewise.
9394 * tree-loop-distribution.c: Likewise.
9395 * tree-outof-ssa.c: Likewise.
9396 * tree-parloops.c: Likewise.
9397 * tree-predcom.c: Likewise.
9398 * tree-pretty-print.c: Likewise.
9399 * tree-profile.c: Likewise.
9400 * tree-sra.c: Likewise.
9401 * tree-ssa.c: Likewise.
9402 * tree-ssa-coalesce.c: Likewise.
9403 * tree-ssa-dce.c: Likewise.
9404 * tree-ssa-dom.c: Likewise.
9405 * tree-ssa-forwprop.c: Likewise.
9406 * tree-ssa-ifcombine.c: Likewise.
9407 * tree-ssa-loop-ch.c: Likewise.
9408 * tree-ssa-loop-im.c: Likewise.
9409 * tree-ssa-loop-ivcanon.c: Likewise.
9410 * tree-ssa-loop-ivopts.c: Likewise.
9411 * tree-ssa-loop-manip.c: Likewise.
9412 * tree-ssa-loop-prefetch.c: Likewise.
9413 * tree-ssa-loop-unswitch.c: Likewise.
9414 * tree-ssa-math-opts.c: Likewise.
9415 * tree-ssa-phiopt.c: Likewise.
9416 * tree-ssa-pre.c: Likewise.
9417 * tree-ssa-reassoc.c: Likewise.
9418 * tree-ssa-sink.c: Likewise.
9419 * tree-ssa-tail-merge.c: Likewise.
9420 * tree-ssa-threadedge.c: Likewise.
9421 * tree-ssa-threadupdate.c: Likewise.
9422 * tree-switch-conversion.c: Likewise.
9423 * tree-tailcall.c: Likewise.
9424 * tree-vect-data-refs.c: Likewise.
9425 * tree-vect-loop.c: Likewise.
9426 * tree-vect-loop-manip.c: Likewise.
9427 * tree-vectorizer.c: Likewise.
9428 * tree-vrp.c: Likewise.
9429 * ubsan.c: Likewise.
9430 * value-prof.c: Likewise.
9431 * varasm.c: Likewise.
9432 * var-tracking.c: Likewise.
9433 * config/aarch64/aarch64-builtins.c: Likewise.
9434 * config/aarch64/aarch64.c: Likewise.
9435 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9436 * config/alpha/alpha.c: Likewise.
9437 * config/arc/arc.c: Likewise.
9438 * config/arm/arm.c: Likewise.
9439 * config/avr/avr.c: Likewise.
9440 * config/bfin/bfin.c: Likewise.
9441 * config/c6x/c6x.c: Likewise.
9442 * config/cr16/cr16.c: Likewise.
9443 * config/cris/cris.c: Likewise.
9444 * config/darwin.c: Likewise.
9445 * config/darwin-c.c: Likewise.
9446 * config/epiphany/epiphany.c: Likewise.
9447 * config/epiphany/mode-switch-use.c: Likewise.
9448 * config/epiphany/resolve-sw-modes.c: Likewise.
9449 * config/fr30/fr30.c: Likewise.
9450 * config/frv/frv.c: Likewise.
9451 * config/ft32/ft32.c: Likewise.
9452 * config/h8300/h8300.c: Likewise.
9453 * config/i386/i386.c: Likewise.
9454 * config/i386/winnt.c: Likewise.
9455 * config/ia64/ia64.c: Likewise.
9456 * config/iq2000/iq2000.c: Likewise.
9457 * config/lm32/lm32.c: Likewise.
9458 * config/m32c/m32c.c: Likewise.
9459 * config/m32r/m32r.c: Likewise.
9460 * config/m68k/m68k.c: Likewise.
9461 * config/mcore/mcore.c: Likewise.
9462 * config/mep/mep.c: Likewise.
9463 * config/microblaze/microblaze.c: Likewise.
9464 * config/mips/mips.c: Likewise.
9465 * config/mmix/mmix.c: Likewise.
9466 * config/mn10300/mn10300.c: Likewise.
9467 * config/moxie/moxie.c: Likewise.
9468 * config/msp430/msp430.c: Likewise.
9469 * config/nds32/nds32.c: Likewise.
9470 * config/nds32/nds32-cost.c: Likewise.
9471 * config/nds32/nds32-fp-as-gp.c: Likewise.
9472 * config/nds32/nds32-intrinsic.c: Likewise.
9473 * config/nds32/nds32-isr.c: Likewise.
9474 * config/nds32/nds32-md-auxiliary.c: Likewise.
9475 * config/nds32/nds32-memory-manipulation.c: Likewise.
9476 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9477 * config/nds32/nds32-predicates.c: Likewise.
9478 * config/nios2/nios2.c: Likewise.
9479 * config/nvptx/nvptx.c: Likewise.
9480 * config/pa/pa.c: Likewise.
9481 * config/pdp11/pdp11.c: Likewise.
9482 * config/rl78/rl78.c: Likewise.
9483 * config/rs6000/rs6000.c: Likewise.
9484 * config/rx/rx.c: Likewise.
9485 * config/s390/s390.c: Likewise.
9486 * config/sh/sh.c: Likewise.
9487 * config/sh/sh-mem.cc: Likewise.
9488 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9489 * config/sh/sh_treg_combine.cc: Likewise.
9490 * config/sparc/sparc.c: Likewise.
9491 * config/spu/spu.c: Likewise.
9492 * config/stormy16/stormy16.c: Likewise.
9493 * config/tilegx/tilegx.c: Likewise.
9494 * config/tilepro/tilepro.c: Likewise.
9495 * config/v850/v850.c: Likewise.
9496 * config/vax/vax.c: Likewise.
9497 * config/visium/visium.c: Likewise.
9498 * config/xtensa/xtensa.c: Likewise.
9500 2015-07-10 Richard Biener <rguenther@suse.de>
9502 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
9503 (decision_tree::gen_gimple): Likewise.
9504 (decision_tree::gen_generic): Likewise.
9506 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
9509 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
9510 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
9512 2015-07-10 Jakub Jelinek <jakub@redhat.com>
9515 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
9516 or ORT_TASK contexts.
9517 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
9520 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9522 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
9525 2015-07-10 Tom de Vries <tom@codesourcery.com>
9527 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
9528 insert nit + 1 bound.
9530 2015-07-10 Richard Biener <rguenther@suse.de>
9532 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
9533 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
9534 (if_convertible_loop_p_1): For this always compute bb predicates.
9535 (if_convertible_loop_p): And free them.
9537 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9539 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
9542 2015-07-10 Richard Biener <rguenther@suse.de>
9544 PR tree-optimization/66823
9545 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
9548 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
9550 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
9551 to handle mips[32|64]r3 and mips[32|64]r5.
9553 2015-07-09 Jakub Jelinek <jakub@redhat.com>
9556 * tree-nested.c (get_static_chain): Or in a flag into
9557 info->static_chain_added.
9558 (get_frame_field, get_nonlocal_debug_decl): Likewise.
9559 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
9561 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
9562 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
9565 PR tree-optimization/66718
9566 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
9568 (vect_simd_lane_linear): New function.
9569 (vectorizable_simd_clone_call): Support using linear arguments for
9570 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
9572 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9575 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
9577 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
9579 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
9580 Use machine mode, not enum machine_mode in the prototype.
9582 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
9583 classify 128-bit floating point support.
9584 (FLOAT128_IBM_P): Likewise.
9585 (FLOAT128_VECTOR_P): Likewise.
9586 (FLOAT128_2REG_P): Likewise.
9587 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
9588 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
9589 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9590 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
9592 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
9593 tests against TFmode/TDmode, since those modes do not use VSX
9595 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
9597 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
9598 tests against TFmode, etc.
9599 (invalid_e500_subreg): Add tests against IFmode/KFmode.
9600 (reg_offset_addressing_ok_p): Likewise.
9601 (rs6000_legitimate_offset_address_p): Likewise.
9602 (rs6000_legitimize_address): Likewise.
9603 (rs6000_legitimize_reload_address): Likewise.
9604 (rs6000_legitimate_address_p): Clean up tests against TFmode and
9605 TDmode to use the new helper macros, which will include IFmode and
9607 (rs6000_emit_move): Likewise.
9608 (rs6000_darwin64_record_arg_recurse): Likewise.
9609 (print_operand): Likewise.
9610 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
9611 that uses a single vector register as a vector and not as a
9612 floating point register in terms of the calling sequence.
9613 (rs6000_discover_homogeneous_aggregate): Likewise.
9614 (rs6000_return_in_memory): Likewise.
9615 (init_cumulative_args): Likewise.
9616 (rs6000_function_arg_boundary): Likewise.
9617 (rs6000_function_arg_advance_1): Likewise.
9618 (rs6000_function_arg): Likewise.
9619 (rs6000_pass_by_reference): Likewise.
9620 (rs6000_gimplify_va_arg): Likewise.
9621 (rs6000_secondary_reload_memory): Use machine_mode not enum
9623 (rs6000_split_multireg_move): Use new helper macros.
9624 (spe_func_has_64bit_regs_p): Likewise.
9625 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
9626 (output_toc): Use new helper macros.
9627 (rs6000_register_move_cost): Likewise.
9628 (rs6000_function_value): Add IEEE 128-bit floating point calling
9630 (rs6000_libcall_value): Likewise.
9631 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
9632 floating point support.
9633 (rs6000_vector_mode_supported_p): Likewise.
9635 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
9637 PR rtl-optimization/66782
9638 * lra-int.h (struct lra_insn_recog_data): Add comment about
9639 clobbered hard regs for arg_hard_regs.
9640 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
9641 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
9642 Add condition for processing used hard regs.
9643 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
9644 Process clobbered hard regs.
9646 2015-07-09 Michael Matz <matz@suse.de>
9648 * genmatch.c (fprintf_indent): New function.
9649 (operand::gen_transform): Add indent parameter.
9650 (expr::gen_transform, c_expr::gen_transform,
9651 capture::gen_transform): Ditto and use fprintf_indent.
9652 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
9653 (dt_operand::gen, dt_operand::gen_predicate,
9654 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
9655 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
9656 (decision_tree::gen_gimple): Adjust calls and indent generated
9658 (decision_tree::gen_generic): Ditto.
9659 (write_predicate): Ditto.
9661 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9664 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
9665 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
9666 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
9667 {GENERAL,SSE,MMX}_REG_P where appropriate.
9669 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9671 * lto-streamer.h: Don't include target.h and alloc-pool.h.
9672 * builtins.c: Adjust includes.
9673 * gimple.c: Likewise.
9674 * ipa-icf.c: Likewise.
9675 * lto-opts.c: Likewise.
9676 * ipa-reference.c: Likewise.
9677 * lto-section-out.c: Likewise.
9678 * lto-streamer-in.c: Likewise.
9679 * lto-streamer-out.c: Likewise.
9680 * opts-global.c: Likewise.
9681 * symtab.c: Likewise.
9682 * tree-chkp.c: Likewise.
9683 * tree-ssa-live.c: Likewise.
9684 * tree-streamer-in.c: Likewise.
9685 * tree-streamer-out.c: Likewise.
9686 * config/darwin.c: Likewise.
9687 * config/i386/winnt.c: Likewise.
9689 2015-07-09 Richard Biener <rguenther@suse.de>
9691 * genmatch.c (struct expr): Add force_single_use flag.
9692 (expr::expr): Add copy constructor.
9693 (capture_info::walk_match): Gather force_single_use captures.
9694 (expr::gen_transform): Use possibly NULLified sequence.
9695 (dt_simplify::gen): Apply single-use restrictions by NULLifying
9696 seq if any constrained expr is not single-use.
9697 (parser::parse_expr): Refactor to allow multiple flags. Handle
9698 's' flag to force an expression have a single-use if the pattern
9699 simplifies to more than one statement.
9700 * match.pd: Convert most single_use conditionals to :s flags.
9702 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9704 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
9705 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9706 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
9708 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9710 * flags.h: Don't include flag-types.h or options.h.
9711 * opts-common.c: Adjust includes.
9712 * opts-global.c: Likewise.
9713 * common/config/epiphany/epiphany-common.c: Likewise.
9715 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9718 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
9721 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9724 * config/i386/i386.c (ix86_return_in_memory): Return true
9725 if int_size_in_bytes returns negative for IA MCU.
9727 2015-07-09 Marek Polacek <polacek@redhat.com>
9729 PR tree-optimization/66718
9730 * Makefile.in (OBJS): Add gimple-laddress.o.
9731 * passes.def: Schedule pass_laddress.
9732 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
9733 * tree-pass.h (make_pass_laddress): Declare.
9734 * gimple-laddress.c: New file.
9736 2015-07-09 Richard Biener <rguenther@suse.de>
9738 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
9740 2015-07-09 Richard Biener <rguenther@suse.de>
9742 PR tree-optimization/66807
9743 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
9745 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
9747 * function.c (stack_protect_epilogue): Use if rather than switch for
9748 check targetm.have_stack_protect_test.
9750 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9752 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
9753 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
9754 * config/arc/arc.h: Likewise.
9755 * config/arm/arm.h: Likewise.
9756 * config/bfin/bfin.h: Likewise.
9757 * config/epiphany/epiphany.h: Likewise.
9758 * config/frv/frv.h: Likewise.
9759 * config/ia64/ia64.h: Likewise.
9760 * config/iq2000/iq2000.h: Likewise.
9761 * config/lm32/lm32.h: Likewise.
9762 * config/m32r/m32r.h: Likewise.
9763 * config/mcore/mcore.h: Likewise.
9764 * config/mep/mep.h: Likewise.
9765 * config/microblaze/microblaze.h: Likewise.
9766 * config/mips/mips.h: Likewise.
9767 * config/mmix/mmix.h: Likewise.
9768 * config/mn10300/mn10300.h: Likewise.
9769 * config/nds32/nds32.h: Likewise.
9770 * config/nios2/nios2.h: Likewise.
9771 * config/pa/pa.h: Likewise.
9772 * config/rl78/rl78.h: Likewise.
9773 * config/sh/sh.h: Likewise.
9774 * config/sparc/sparc.h: Likewise.
9775 * config/stormy16/stormy16.h: Likewise.
9776 * config/tilegx/tilegx.h: Likewise.
9777 * config/tilepro/tilepro.h: Likewise.
9778 * config/v850/v850.h: Likewise.
9779 * config/xtensa/xtensa.h: Likewise.
9780 * doc/tm.texi: Regenerate.
9781 * doc/tm.texi.in: Adjust.
9782 * combine.c (simplify_set): Likewise.
9783 (simplify_comparison): Likewise.
9784 * expr.c (store_constructor): Likewise.
9785 * internal-fn.c (expand_arith_overflow): Likewise.
9786 * reload.c (push_reload): Likewise.
9787 (find_reloads): Likewise.
9788 (find_reloads_subreg_address): Likewise.
9789 * reload1.c (eliminate_regs_1): Likewise.
9790 * rtlanal.c (nonzero_bits1): Likewise.
9791 (num_sign_bit_copies1): Likewise.
9792 * simplify-rtx.c (simplify_truncation): Likewise.
9794 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9796 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
9797 of AUTO_INC_DEC with the preprocessor.
9798 * combine.c (combine_instructions): Likewise.
9799 (can_combine_p): Likewise.
9800 (try_combine): Likewise.
9801 * emit-rtl.c (try_split): Likewise.
9802 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9803 * lower-subreg.c (resolve_simple_move): Likewise.
9804 * lra.c (update_inc_notes): Likewise.
9805 * recog.c (asm_operand_ok): Likewise.
9806 (constrain_operands): Likewise.
9807 * regrename.c (scan_rtx_address): Likewise.
9808 * reload.c (update_auto_inc_notes): Likewise.
9809 (reg_inc_found_and_valid_p): Likewise.
9810 * reload1.c (reload): Likewise.
9811 (emit_input_reload_insns): Likewise.
9812 (delete_output_reload): Likewise.
9813 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9814 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9816 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9818 * rtl.h: Always define AUTO_INC_DEC.
9819 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
9820 * combine.c (combine_instructions): Likewise.
9821 (can_combine_p): Likewise.
9822 (try_combine): Likewise.
9823 * emit-rtl.c (try_split): Likewise.
9824 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9825 * lower-subreg.c (resolve_simple_move): Likewise.
9826 * lra.c (update_inc_notes): Likewise.
9827 * recog.c (asm_operand_ok): Likewise.
9828 (constrain_operands): Likewise.
9829 * regrename.c (scan_rtx_address): Likewise.
9830 * reload.c (update_auto_inc_notes): Likewise.
9831 (find_equiv_reg): Likewise.
9832 * reload1.c (reload): Likewise.
9833 (reload_as_needed): Likewise.
9834 (choose_reload_regs): Likewise.
9835 (emit_input_reload_insns): Likewise.
9836 (delete_output_reload): Likewise.
9837 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9838 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9840 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9842 * combine.c (can_combine_def_p): Don't check the value of
9843 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
9844 (combinable_i3pat): Likewise.
9845 (mark_used_regs_combine): Likewise.
9846 * regrename.c (rename_chains): Likewise.
9847 * reload.c (find_reloads_address): Likewise.
9848 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9850 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9852 * combine.c (update_rsp_from_reg_equal): Don't check if
9853 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
9854 (reg_nonzero_bits_for_combine): Likewise.
9855 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
9857 * config/frv/frv.h: Likewise.
9858 * config/lm32/lm32.h: Likewise.
9859 * config/mep/mep.h: Likewise.
9860 * config/mips/mips.h: Likewise.
9861 * config/rs6000/rs6000.h: Likewise.
9862 * config/sh/sh.h: Likewise.
9863 * config/tilegx/tilegx.h (enum reg_class): Likewise.
9864 * config/tilepro/tilepro.h: Likewise.
9865 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
9866 * doc/tm.texi: Regenerate.
9867 * doc/tm.texi.in: Adjust.
9868 * rtlanal.c (nonzero_bits1): Likewise.
9870 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9872 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
9873 with the preprocessor.
9874 (combine_instructions): Likewise.
9875 (try_combine): Likewise.
9877 (distribute_notes): Likewise.
9879 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9881 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
9883 (simplify_set): Likewise.
9884 * cse.c (cse_insn): Likewise.
9885 * fold-const.c (fold_single_bit_test): Likewise.
9886 (fold_unary_loc): Likewise.
9887 * postreload.c (reload_cse_simplify_set): Likewise.
9888 (reload_cse_simplify_operands): Likewise.
9890 2015-07-08 Jiong Wang <jiong.wang@arm.com>
9892 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
9893 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
9895 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9898 * config/i386/x86intrin.h: Include <adxintrin.h> even if
9899 __iamcu__ is defined.
9901 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9903 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
9905 2015-07-08 Iain Sandoe <iain@codesourcery.com>
9908 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
9909 names from preservation.
9911 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9914 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
9916 (function_arg_advance_32): Don't pass vectors in registers for
9918 (function_arg_32): Likewise.
9919 (ix86_return_in_memory): Don't return vectors in registers for
9922 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
9925 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
9926 hard regno live at the start of BB with incoming abnormal edges.
9927 * lra-lives.c (process_bb_lives): Ditto.
9929 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
9932 * config/nvptx/mkoffload.c (main): Create an offload image only in
9933 64-bit configurations.
9935 2015-07-08 Martin Liska <mliska@suse.cz>
9938 * tree-sra.c (create_access_1): Call ctor without brackets.
9939 (create_artificial_child_access): Likewise.
9941 2015-07-08 Richard Biener <rguenther@suse.de>
9943 PR tree-optimization/66793
9944 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
9945 Properly split the block after stmts ending it.
9947 2015-07-08 Richard Biener <rguenther@suse.de>
9949 PR tree-optimization/66794
9950 * passes.c (execute_function_todo): Assert that post-dominators
9952 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
9953 Free post-dominators.
9955 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9957 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
9960 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9962 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
9963 more than or equal 8 and less than 32 when optimizing for size.
9965 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9967 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
9968 COSTS_N_INSNS (1) and increment it appropriately throughout the
9971 2015-07-08 Richard Biener <rguenther@suse.de>
9973 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
9975 2015-07-08 Alan Modra <amodra@gmail.com>
9977 * target.def (rtx_costs): Remove "code" param, add "mode".
9978 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
9979 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
9980 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
9981 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
9982 call. Track mode when given in rtx.
9983 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
9984 (default_address_cost): Pass Pmode to rtx_cost.
9985 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
9986 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
9988 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
9989 (notreg_cost): Add mode param. Use it.
9990 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
9991 mode param and pass to set_src_cost. Update all calls.
9992 (hash_scan_set): Formatting.
9993 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
9994 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
9996 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
9997 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
9998 emit_store_flag): Update set_src_cost and rtx_cost calls.
9999 * auto-inc-dec.c (attempt_change): Likewise.
10000 * calls.c (precompute_register_parameters): Likewise.
10001 * combine.c (expand_compound_operation, make_extraction,
10002 force_to_mode, distribute_and_simplify_rtx): Likewise.
10003 * dojump.c (prefer_and_bit_test): Likewise.
10004 * dse.c (find_shift_sequence): Likewise.
10005 * expr.c (compress_float_constant): Likewise.
10006 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
10007 * ifcvt.c (noce_try_sign_mask): Likewise.
10008 * loop-doloop.c (doloop_optimize): Likewise.
10009 * loop-invariant.c (create_new_invariant): Likewise.
10010 * lower-subreg.c (shift_cost, compute_costs): Likewise.
10011 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
10012 lshift_cheap_p): Likewise.
10013 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
10014 try_replace_in_use, reload_cse_move2add): Likewise.
10015 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
10017 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10018 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10019 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
10020 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
10021 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
10022 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
10024 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
10025 * config/arc/arc.c (arc_rtx_costs): Likewise.
10026 * config/arm/arm.c (arm_rtx_costs): Likewise.
10027 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
10028 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
10029 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
10030 * config/cris/cris.c (cris_rtx_costs): Likewise.
10031 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
10032 * config/frv/frv.c (frv_rtx_costs): Likewise.
10033 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
10034 * config/i386/i386.c (ix86_rtx_costs): Likewise.
10035 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
10036 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
10037 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
10038 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
10039 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
10040 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
10041 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
10042 * config/mep/mep.c (mep_rtx_cost): Likewise.
10043 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
10044 * config/mips/mips.c (mips_rtx_costs): Likewise.
10045 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
10046 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
10047 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
10048 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
10049 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
10050 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
10051 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
10052 * config/pa/pa.c (hppa_rtx_costs): Likewise.
10053 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
10054 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
10055 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
10056 * config/s390/s390.c (s390_rtx_costs): Likewise.
10057 * config/sh/sh.c (sh_rtx_costs): Likewise.
10058 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
10059 * config/spu/spu.c (spu_rtx_costs): Likewise.
10060 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
10061 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
10062 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
10063 * config/v850/v850.c (v850_rtx_costs): Likewise.
10064 * config/vax/vax.c (vax_rtx_costs): Likewise.
10065 * config/visium/visium.c (visium_rtx_costs): Likewise.
10066 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
10067 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
10068 "code" param, and pass as outer_code to first rtx_cost call. Pass
10069 mode to rtx_cost calls.
10070 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
10072 (aarch64_rtx_costs_wrapper): Update.
10073 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
10074 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
10076 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
10077 and rtx_cost calls.
10078 (avr_operand_rtx_cost): Similarly.
10079 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
10080 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
10081 * config/mips/mips.c (mips_stack_address_p): Comment typo.
10082 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
10083 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
10084 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
10086 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
10087 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
10088 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
10089 * doc/tm.texi: Regenerate.
10091 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
10093 * tree-core.h: Include symtab.h.
10094 * rtl.h: Include hard-reg-set.h but not flags.h.
10095 (HARD_CONST): Remove condition compilation involving HARD_CONST since
10096 hard-reg-set.h is always included.
10097 * regs.h: Don't include hard-reg-set.h or rtl.h.
10098 * cfg.h: Include dominance.h.
10099 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
10100 * backend.h: New. Aggregate commonly used backend header files.
10101 * gimple-ssa.h: Don't include tree-hasher.h.
10102 * ssa.h: New. Aggregate commonly used SSA header files.
10103 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
10104 * sel-sched-ir.h: Flatten includes.
10105 * lra-int.h: Flatten completely.
10106 * sel-sched-dump.h: Flatten includes.
10107 * ira-int.h: Flatten includes.
10108 * gimple-streamer.h: Remove all includes.
10109 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
10110 * resource.h: Flatten hard-reg-set.h and df.h.
10111 * sched-int.h: Flatten insn-arrt.h and df.h.
10112 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
10113 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
10114 * genattrtab.c (write_header): Adjust generated includes.
10115 * genautomata.c (main): Likewise.
10116 * genconditions.c (write-header): Likewise.
10117 * genemit.c (main): Likewise.
10118 * gengtype.c (open_base_files): Likewise.
10119 * genopinit.c (main): Likewise.
10120 * genoutput.c (output_prologue): Likewise.
10121 * genpeep.c (main): Likewise.
10122 * genpreds.c (write_insn_preds_c): Likewise.
10123 * genrecog.c (write_header): Likewise.
10124 * alias.c: Adjust includes.
10125 * asan.c: Likewise.
10126 * attribs.c: Likewise.
10127 * auto-inc-dec.c: Likewise.
10128 * auto-profile.c: Likewise.
10129 * bb-reorder.c: Likewise.
10130 * bt-load.c: Likewise.
10131 * builtins.c: Likewise.
10132 * caller-save.c: Likewise.
10133 * calls.c: Likewise.
10134 * ccmp.c: Likewise.
10136 * cfganal.c: Likewise.
10137 * cfgbuild.c: Likewise.
10138 * cfgcleanup.c: Likewise.
10139 * cfgexpand.c: Likewise.
10140 * cfghooks.c: Likewise.
10141 * cfgloop.c: Likewise.
10142 * cfgloopanal.c: Likewise.
10143 * cfgloopmanip.c: Likewise.
10144 * cfgrtl.c: Likewise.
10145 * cgraph.c: Likewise.
10146 * cgraphbuild.c: Likewise.
10147 * cgraphclones.c: Likewise.
10148 * cgraphunit.c: Likewise.
10149 * cilk-common.c: Likewise.
10150 * combine-stack-adj.c: Likewise.
10151 * combine.c: Likewise.
10152 * compare-elim.c: Likewise.
10153 * convert.c: Likewise.
10154 * coverage.c: Likewise.
10155 * cppbuiltin.c: Likewise.
10156 * cprop.c: Likewise.
10158 * cselib.c: Likewise.
10159 * data-streamer-in.c: Likewise.
10160 * data-streamer-out.c: Likewise.
10161 * data-streamer.c: Likewise.
10162 * dbxout.c: Likewise.
10165 * debug.c: Likewise.
10166 * df-core.c: Likewise.
10167 * df-problems.c: Likewise.
10168 * df-scan.c: Likewise.
10170 * dojump.c: Likewise.
10171 * dominance.c: Likewise.
10172 * domwalk.c: Likewise.
10173 * double-int.c: Likewise.
10175 * dumpfile.c: Likewise.
10176 * dwarf2asm.c: Likewise.
10177 * dwarf2cfi.c: Likewise.
10178 * dwarf2out.c: Likewise.
10179 * emit-rtl.c: Likewise.
10180 * et-forest.c: Likewise.
10181 * except.c: Likewise.
10182 * explow.c: Likewise.
10183 * expmed.c: Likewise.
10184 * expr.c: Likewise.
10185 * final.c: Likewise.
10186 * fixed-value.c: Likewise.
10187 * fold-const.c: Likewise.
10188 * function.c: Likewise.
10189 * fwprop.c: Likewise.
10190 * gcc-plugin.h: Likewise.
10191 * gcse-common.c: Likewise.
10192 * gcse.c: Likewise.
10193 * generic-match-head.c: Likewise.
10194 * ggc-page.c: Likewise.
10195 * gimple-builder.c: Likewise.
10196 * gimple-expr.c: Likewise.
10197 * gimple-fold.c: Likewise.
10198 * gimple-iterator.c: Likewise.
10199 * gimple-low.c: Likewise.
10200 * gimple-match-head.c: Likewise.
10201 * gimple-pretty-print.c: Likewise.
10202 * gimple-ssa-isolate-paths.c: Likewise.
10203 * gimple-ssa-strength-reduction.c: Likewise.
10204 * gimple-streamer-in.c: Likewise.
10205 * gimple-streamer-out.c: Likewise.
10206 * gimple-walk.c: Likewise.
10207 * gimple.c: Likewise.
10208 * gimplify-me.c: Likewise.
10209 * gimplify.c: Likewise.
10210 * godump.c: Likewise.
10211 * graph.c: Likewise.
10212 * graphite-blocking.c: Likewise.
10213 * graphite-dependences.c: Likewise.
10214 * graphite-interchange.c: Likewise.
10215 * graphite-isl-ast-to-gimple.c: Likewise.
10216 * graphite-optimize-isl.c: Likewise.
10217 * graphite-poly.c: Likewise.
10218 * graphite-scop-detection.c: Likewise.
10219 * graphite-sese-to-poly.c: Likewise.
10220 * graphite.c: Likewise.
10221 * haifa-sched.c: Likewise.
10222 * hw-doloop.c: Likewise.
10223 * ifcvt.c: Likewise.
10224 * init-regs.c: Likewise.
10225 * internal-fn.c: Likewise.
10226 * ipa-chkp.c: Likewise.
10227 * ipa-comdats.c: Likewise.
10228 * ipa-cp.c: Likewise.
10229 * ipa-devirt.c: Likewise.
10230 * ipa-icf-gimple.c: Likewise.
10231 * ipa-icf.c: Likewise.
10232 * ipa-inline-analysis.c: Likewise.
10233 * ipa-inline-transform.c: Likewise.
10234 * ipa-inline.c: Likewise.
10235 * ipa-polymorphic-call.c: Likewise.
10236 * ipa-profile.c: Likewise.
10237 * ipa-prop.c: Likewise.
10238 * ipa-pure-const.c: Likewise.
10239 * ipa-ref.c: Likewise.
10240 * ipa-reference.c: Likewise.
10241 * ipa-split.c: Likewise.
10242 * ipa-utils.c: Likewise.
10243 * ipa-visibility.c: Likewise.
10245 * ira-build.c: Likewise.
10246 * ira-color.c: Likewise.
10247 * ira-conflicts.c: Likewise.
10248 * ira-costs.c: Likewise.
10249 * ira-emit.c: Likewise.
10250 * ira-lives.c: Likewise.
10252 * jump.c: Likewise.
10253 * langhooks.c: Likewise.
10255 * loop-doloop.c: Likewise.
10256 * loop-init.c: Likewise.
10257 * loop-invariant.c: Likewise.
10258 * loop-iv.c: Likewise.
10259 * loop-unroll.c: Likewise.
10260 * lower-subreg.c: Likewise.
10261 * lra-assigns.c: Likewise.
10262 * lra-coalesce.c: Likewise.
10263 * lra-constraints.c: Likewise.
10264 * lra-eliminations.c: Likewise.
10265 * lra-lives.c: Likewise.
10266 * lra-remat.c: Likewise.
10267 * lra-spills.c: Likewise.
10269 * lto-cgraph.c: Likewise.
10270 * lto-compress.c: Likewise.
10271 * lto-opts.c: Likewise.
10272 * lto-section-in.c: Likewise.
10273 * lto-section-out.c: Likewise.
10274 * lto-streamer-in.c: Likewise.
10275 * lto-streamer-out.c: Likewise.
10276 * lto-streamer.c: Likewise.
10278 * mode-switching.c: Likewise.
10279 * modulo-sched.c: Likewise.
10280 * omega.c: Likewise.
10281 * omp-low.c: Likewise.
10282 * optabs.c: Likewise.
10283 * opts-global.c: Likewise.
10284 * passes.c: Likewise.
10285 * plugin.c: Likewise.
10286 * postreload-gcse.c: Likewise.
10287 * postreload.c: Likewise.
10288 * predict.c: Likewise.
10289 * print-rtl.c: Likewise.
10290 * print-tree.c: Likewise.
10291 * profile.c: Likewise.
10292 * real.c: Likewise.
10293 * realmpfr.c: Likewise.
10294 * recog.c: Likewise.
10296 * reg-stack.c: Likewise.
10297 * regcprop.c: Likewise.
10298 * reginfo.c: Likewise.
10299 * regrename.c: Likewise.
10300 * regstat.c: Likewise.
10301 * reload.c: Likewise.
10302 * reload1.c: Likewise.
10303 * reorg.c: Likewise.
10304 * resource.c: Likewise.
10305 * rtl-chkp.c: Likewise.
10306 * rtlanal.c: Likewise.
10307 * rtlhooks.c: Likewise.
10308 * sanopt.c: Likewise.
10309 * sched-deps.c: Likewise.
10310 * sched-ebb.c: Likewise.
10311 * sched-rgn.c: Likewise.
10312 * sched-vis.c: Likewise.
10313 * sdbout.c: Likewise.
10314 * sel-sched-dump.c: Likewise.
10315 * sel-sched-ir.c: Likewise.
10316 * sel-sched.c: Likewise.
10317 * sese.c: Likewise.
10318 * shrink-wrap.c: Likewise.
10319 * simplify-rtx.c: Likewise.
10320 * stack-ptr-mod.c: Likewise.
10321 * stmt.c: Likewise.
10322 * stor-layout.c: Likewise.
10323 * store-motion.c: Likewise.
10324 * stringpool.c: Likewise.
10325 * symtab.c: Likewise.
10326 * target-globals.c: Likewise.
10327 * targhooks.c: Likewise.
10328 * toplev.c: Likewise.
10329 * tracer.c: Likewise.
10330 * trans-mem.c: Likewise.
10331 * tree-affine.c: Likewise.
10332 * tree-browser.c: Likewise.
10333 * tree-call-cdce.c: Likewise.
10334 * tree-cfg.c: Likewise.
10335 * tree-cfgcleanup.c: Likewise.
10336 * tree-chkp-opt.c: Likewise.
10337 * tree-chkp.c: Likewise.
10338 * tree-chrec.c: Likewise.
10339 * tree-complex.c: Likewise.
10340 * tree-data-ref.c: Likewise.
10341 * tree-dfa.c: Likewise.
10342 * tree-diagnostic.c: Likewise.
10343 * tree-dump.c: Likewise.
10344 * tree-eh.c: Likewise.
10345 * tree-emutls.c: Likewise.
10346 * tree-if-conv.c: Likewise.
10347 * tree-inline.c: Likewise.
10348 * tree-into-ssa.c: Likewise.
10349 * tree-iterator.c: Likewise.
10350 * tree-loop-distribution.c: Likewise.
10351 * tree-nested.c: Likewise.
10352 * tree-nrv.c: Likewise.
10353 * tree-object-size.c: Likewise.
10354 * tree-outof-ssa.c: Likewise.
10355 * tree-parloops.c: Likewise.
10356 * tree-phinodes.c: Likewise.
10357 * tree-predcom.c: Likewise.
10358 * tree-pretty-print.c: Likewise.
10359 * tree-profile.c: Likewise.
10360 * tree-scalar-evolution.c: Likewise.
10361 * tree-sra.c: Likewise.
10362 * tree-ssa-address.c: Likewise.
10363 * tree-ssa-alias.c: Likewise.
10364 * tree-ssa-ccp.c: Likewise.
10365 * tree-ssa-coalesce.c: Likewise.
10366 * tree-ssa-copy.c: Likewise.
10367 * tree-ssa-copyrename.c: Likewise.
10368 * tree-ssa-dce.c: Likewise.
10369 * tree-ssa-dom.c: Likewise.
10370 * tree-ssa-dse.c: Likewise.
10371 * tree-ssa-forwprop.c: Likewise.
10372 * tree-ssa-ifcombine.c: Likewise.
10373 * tree-ssa-live.c: Likewise.
10374 * tree-ssa-loop-ch.c: Likewise.
10375 * tree-ssa-loop-im.c: Likewise.
10376 * tree-ssa-loop-ivcanon.c: Likewise.
10377 * tree-ssa-loop-ivopts.c: Likewise.
10378 * tree-ssa-loop-manip.c: Likewise.
10379 * tree-ssa-loop-niter.c: Likewise.
10380 * tree-ssa-loop-prefetch.c: Likewise.
10381 * tree-ssa-loop-unswitch.c: Likewise.
10382 * tree-ssa-loop.c: Likewise.
10383 * tree-ssa-math-opts.c: Likewise.
10384 * tree-ssa-operands.c: Likewise.
10385 * tree-ssa-phiopt.c: Likewise.
10386 * tree-ssa-phiprop.c: Likewise.
10387 * tree-ssa-pre.c: Likewise.
10388 * tree-ssa-propagate.c: Likewise.
10389 * tree-ssa-reassoc.c: Likewise.
10390 * tree-ssa-sccvn.c: Likewise.
10391 * tree-ssa-scopedtables.c: Likewise.
10392 * tree-ssa-sink.c: Likewise.
10393 * tree-ssa-strlen.c: Likewise.
10394 * tree-ssa-structalias.c: Likewise.
10395 * tree-ssa-tail-merge.c: Likewise.
10396 * tree-ssa-ter.c: Likewise.
10397 * tree-ssa-threadedge.c: Likewise.
10398 * tree-ssa-threadupdate.c: Likewise.
10399 * tree-ssa-uncprop.c: Likewise.
10400 * tree-ssa-uninit.c: Likewise.
10401 * tree-ssa.c: Likewise.
10402 * tree-ssanames.c: Likewise.
10403 * tree-stdarg.c: Likewise.
10404 * tree-streamer-in.c: Likewise.
10405 * tree-streamer-out.c: Likewise.
10406 * tree-streamer.c: Likewise.
10407 * tree-switch-conversion.c: Likewise.
10408 * tree-tailcall.c: Likewise.
10409 * tree-vect-data-refs.c: Likewise.
10410 * tree-vect-generic.c: Likewise.
10411 * tree-vect-loop-manip.c: Likewise.
10412 * tree-vect-loop.c: Likewise.
10413 * tree-vect-patterns.c: Likewise.
10414 * tree-vect-slp.c: Likewise.
10415 * tree-vect-stmts.c: Likewise.
10416 * tree-vectorizer.c: Likewise.
10417 * tree-vrp.c: Likewise.
10418 * tree.c: Likewise.
10419 * tsan.c: Likewise.
10420 * ubsan.c: Likewise.
10421 * valtrack.c: Likewise.
10422 * value-prof.c: Likewise.
10423 * var-tracking.c: Likewise.
10424 * varasm.c: Likewise.
10425 * varpool.c: Likewise.
10426 * vmsdbgout.c: Likewise.
10427 * vtable-verify.c: Likewise.
10429 * wide-int.cc: Likewise.
10430 * xcoffout.c: Likewise.
10431 * config/aarch64/aarch64-builtins.c: Likewise.
10432 * config/aarch64/aarch64.c: Likewise.
10433 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10434 * config/alpha/alpha.c: Likewise.
10435 * config/arc/arc.c: Likewise.
10436 * config/arm/aarch-common.c: Likewise.
10437 * config/arm/arm-builtins.c: Likewise.
10438 * config/arm/arm-c.c: Likewise.
10439 * config/arm/arm.c: Likewise.
10440 * config/avr/avr-c.c: Likewise.
10441 * config/avr/avr-log.c: Likewise.
10442 * config/avr/avr.c: Likewise.
10443 * config/bfin/bfin.c: Likewise.
10444 * config/c6x/c6x.c: Likewise.
10445 * config/cr16/cr16.c: Likewise.
10446 * config/cris/cris.c: Likewise.
10447 * config/darwin-c.c: Likewise.
10448 * config/darwin.c: Likewise.
10449 * config/epiphany/epiphany.c: Likewise.
10450 * config/epiphany/mode-switch-use.c: Likewise.
10451 * config/epiphany/resolve-sw-modes.c: Likewise.
10452 * config/fr30/fr30.c: Likewise.
10453 * config/frv/frv.c: Likewise.
10454 * config/ft32/ft32.c: Likewise.
10455 * config/h8300/h8300.c: Likewise.
10456 * config/i386/i386-c.c: Likewise.
10457 * config/i386/i386.c: Likewise.
10458 * config/i386/msformat-c.c: Likewise.
10459 * config/i386/winnt-cxx.c: Likewise.
10460 * config/i386/winnt-stubs.c: Likewise.
10461 * config/i386/winnt.c: Likewise.
10462 * config/ia64/ia64-c.c: Likewise.
10463 * config/ia64/ia64.c: Likewise.
10464 * config/iq2000/iq2000.c: Likewise.
10465 * config/lm32/lm32.c: Likewise.
10466 * config/m32c/m32c-pragma.c: Likewise.
10467 * config/m32c/m32c.c: Likewise.
10468 * config/m32r/m32r.c: Likewise.
10469 * config/m68k/m68k.c: Likewise.
10470 * config/mcore/mcore.c: Likewise.
10471 * config/mep/mep-pragma.c: Likewise.
10472 * config/mep/mep.c: Likewise.
10473 * config/microblaze/microblaze-c.c: Likewise.
10474 * config/microblaze/microblaze.c: Likewise.
10475 * config/mips/mips.c: Likewise.
10476 * config/mmix/mmix.c: Likewise.
10477 * config/mn10300/mn10300.c: Likewise.
10478 * config/moxie/moxie.c: Likewise.
10479 * config/msp430/msp430-c.c: Likewise.
10480 * config/msp430/msp430.c: Likewise.
10481 * config/nds32/nds32-cost.c: Likewise.
10482 * config/nds32/nds32-fp-as-gp.c: Likewise.
10483 * config/nds32/nds32-intrinsic.c: Likewise.
10484 * config/nds32/nds32-isr.c: Likewise.
10485 * config/nds32/nds32-md-auxiliary.c: Likewise.
10486 * config/nds32/nds32-memory-manipulation.c: Likewise.
10487 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10488 * config/nds32/nds32-predicates.c: Likewise.
10489 * config/nds32/nds32.c: Likewise.
10490 * config/nios2/nios2.c: Likewise.
10491 * config/nvptx/nvptx.c: Likewise.
10492 * config/pa/pa.c: Likewise.
10493 * config/pdp11/pdp11.c: Likewise.
10494 * config/rl78/rl78-c.c: Likewise.
10495 * config/rl78/rl78.c: Likewise.
10496 * config/rs6000/rs6000-c.c: Likewise.
10497 * config/rs6000/rs6000.c: Likewise.
10498 * config/rx/rx.c: Likewise.
10499 * config/s390/s390-c.c: Likewise.
10500 * config/s390/s390.c: Likewise.
10501 * config/sh/sh-c.c: Likewise.
10502 * config/sh/sh-mem.cc: Likewise.
10503 * config/sh/sh.c: Likewise.
10504 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10505 * config/sh/sh_treg_combine.cc: Likewise.
10506 * config/sol2-c.c: Likewise.
10507 * config/sol2-cxx.c: Likewise.
10508 * config/sol2-stubs.c: Likewise.
10509 * config/sol2.c: Likewise.
10510 * config/sparc/sparc-c.c: Likewise.
10511 * config/sparc/sparc.c: Likewise.
10512 * config/spu/spu-c.c: Likewise.
10513 * config/spu/spu.c: Likewise.
10514 * config/stormy16/stormy16.c: Likewise.
10515 * config/tilegx/mul-tables.c: Likewise.
10516 * config/tilegx/tilegx-c.c: Likewise.
10517 * config/tilegx/tilegx.c: Likewise.
10518 * config/tilepro/mul-tables.c: Likewise.
10519 * config/tilepro/tilepro-c.c: Likewise.
10520 * config/tilepro/tilepro.c: Likewise.
10521 * config/v850/v850-c.c: Likewise.
10522 * config/v850/v850.c: Likewise.
10523 * config/vax/vax.c: Likewise.
10524 * config/visium/visium.c: Likewise.
10525 * config/vms/vms-c.c: Likewise.
10526 * config/vms/vms.c: Likewise.
10527 * config/vxworks.c: Likewise.
10528 * config/xtensa/xtensa.c: Likewise.
10530 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
10532 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
10533 Remove operand constraints. Change operand 2 predicate to
10534 nonmemory operand. Limit const_int values to mode bitsize. Only
10535 allow const_int values less than 32 when optimizing for size.
10536 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
10537 Remove operand constraints.
10538 (*bt<mode>): Use SImode for const_int values less than 32.
10539 (regmode): Remove mode attribute.
10541 2015-07-07 Anatoly Sokolov <aesok@post.ru>
10543 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10544 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
10545 moxie_legitimate_address_p): New functions.
10546 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
10548 2015-07-07 Tom de Vries <tom@codesourcery.com>
10550 PR tree-optimization/66642
10551 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
10552 header comment. Rename split_edge variable to edge_at_split. Split
10553 exit edge to create new loop exit bb. Insert loop exit phis in new
10556 2015-07-07 Tom de Vries <tom@codesourcery.com>
10558 * tree-cfg.c (get_virtual_phi): New function.
10559 * tree-cfg.h (get_virtual_phi): Declare.
10560 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
10561 (rewrite_virtuals_into_loop_closed_ssa): New function.
10562 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
10564 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
10565 (transform_to_exit_first_loop_alt): Use
10566 rewrite_virtuals_into_loop_closed_ssa.
10568 2015-07-07 Richard Biener <rguenther@suse.de>
10570 * fold-const.c (fold_binary_loc): Move
10571 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
10572 * match.pd: ... here.
10573 Add (X * C1) % C2 -> 0 simplification pattern derived from
10576 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
10579 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
10580 change for target/65249.
10582 2015-07-07 Paulo Matos <pmatos@broadcom.com>
10584 * symtab.c (address_matters_1): Fix typo in comment above.
10585 (can_increase_alignment_p): Likewise.
10587 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10589 * function.c (free_after_compilation): Clear PROP_cfg in
10590 f->curr_properties.
10592 2015-07-07 Richard Biener <rguenther@suse.de>
10594 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
10596 (add_control_edge): Remove excessive vertical space in dumping.
10597 (process_ssa_edge_worklist): Simulate at most one statement and
10598 return whether we did. Do not simulate PHIs if they are in a
10599 BB not yet simulated.
10600 (ssa_propagate): Adjust to always drain the BB worklist whenever
10601 a BB is available there, likewise the VARYING edges list before
10602 the interesting edge list.
10604 2015-07-07 Christian Bruel <christian.bruel@st.com>
10607 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
10609 2015-07-07 Richard Biener <rguenther@suse.de>
10611 PR middle-end/66739
10612 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
10615 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10617 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
10618 modes for operands 0 and 3. Use SImode for operands 2 and 3.
10619 Copy operand 0 to a temporary if !ext_register_operand. Remove
10620 ancient extract_bit_field workaround.
10621 (insv<mode>_1): Rename from mov<mode>_insv_1.
10622 (*insvqi): Rename from *movqi_insv_2.
10623 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
10624 for renamed insvsi_1.
10625 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
10627 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
10629 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
10630 call to nvptx_reorg_subreg.
10632 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
10634 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
10635 * graphite-dependencies.c, graphite-interchange.c,
10636 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
10637 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
10640 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
10642 * match.pd: Remove element_mode inside HONOR_*.
10643 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
10644 (~X | X -> -1, ~X ^ X -> -1): Merge.
10645 * tree.c (build_each_one_cst): New function.
10646 * tree.h (build_each_one_cst): Likewise.
10648 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10650 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10653 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
10655 * config.gcc <mips*-*-*>: Add fused-madd.opt.
10656 * config/mips/mips.opt (mfused-madd): Remove.
10657 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
10658 * config/mips/mips.h (TARGET_MIPS8000): New.
10659 (ISA_HAS_FP_MADD4_MSUB4): Remove.
10660 (ISA_HAS_FP_MADDF_MSUBF): Remove.
10661 (ISA_HAS_FP_MADD3_MSUB3): Remove.
10662 (ISA_HAS_NMADD4_NMSUB4): Remove.
10663 (ISA_HAS_NMADD3_NMSUB3): Remove.
10664 (ISA_HAS_FUSED_MADD4): New.
10665 (ISA_HAS_UNFUSED_MADD4): New.
10666 (ISA_HAS_FUSED_MADDF): New.
10667 (ISA_HAS_FUSED_MADD3): New.
10668 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
10669 (*fma<mode>4_madd3) New.
10670 (*fma<mode>4_madd4) New.
10671 (*fma<mode>4_maddf) New.
10673 (*fms<mode>4_msub3) New.
10674 (*fms<mode>4_msub4) New.
10676 (*fnma<mode>4_nmadd3) New.
10677 (*fnma<mode>4_nmadd4) New.
10679 (*fnms<mode>4_nmsub3) New.
10680 (*fnms<mode>4_nmsub4) New.
10681 (*madd4<mode>) Modify to be unfused only.
10682 (*msub4<mode>) Modify to be unfused only.
10683 (*nmadd4<mode>) Modify to be unfused only.
10684 (*nmsub4<mode>) Modify to be unfused only.
10685 (*madd3<mode>) Remove.
10686 (*msub3<mode>) Remove.
10687 (*nmadd3<mode>) Remove.
10688 (*nmsub3<mode>) Remove.
10689 (*nmadd3<mode>_fastmath) Remove.
10690 (*nmsub3<mode>_fastmath) Remove.
10691 (*nmadd4<mode>_fastmath) Update condition.
10692 (*nmsub4<mode>_fastmath) Update condition.
10694 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10697 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
10698 alignment attribute, exploring one level down for records and arrays.
10700 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10702 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
10703 modes for operands 0 and 1. Use SImode for operands 2 and 3.
10704 Copy operand 1 to a temporary if !ext_register_operand. Remove
10705 ancient extract_bit_field workaround.
10706 (*extv<mode>): Rename from *mov<mode>_extv_1.
10707 (*extvqi): Rename from *movqi_extv_1.
10708 (extzv<mode>): Rename from extzv. Use SWI248 modes for
10709 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
10710 to a temporary if !ext_register_operand. Remove ancient
10711 extract_bit_field workaround.
10712 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
10713 (*extzvqi): Rename from *movqi_extzv_2.
10714 (*testqi_ext_3): Remove modes from const_int_operand predicated
10715 operands. Add "n" constraint.
10716 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
10717 operand. Add "J" constraint.
10718 (*btsq, *btrq, *btcq peephole2s): Remove mode from
10719 const_0_to_63 predicated operand.
10720 (regmode): New insn attribute.
10721 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
10722 to nonmemory_operand. Use regmode insn attribute.
10723 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
10724 (*jcc_bt<mode>_mask): Remove mode from operand 3.
10725 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
10726 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
10727 operands. Use "N" constraint instead of "n".
10729 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10731 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
10733 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10736 * config/i386/i386.c (iamcu_cost): New.
10737 (m_IAMCU): Likewise.
10738 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
10739 (processor_target_table): Add an entry for "iamcu".
10740 (processor_alias_table): Likewise.
10741 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
10742 (ix86_adjust_cost): Likewise.
10743 (ia32_multipass_dfa_lookahead): Likewise.
10744 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
10745 * config/i386/x86-tune.def: Updated for m_IAMCU.
10747 2015-07-06 Richard Biener <rguenther@suse.de>
10749 PR tree-optimization/66772
10750 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
10751 values are available in the PHI node BB when there are
10752 still unexecutable edges.
10754 2015-07-06 Richard Biener <rguenther@suse.de>
10756 PR tree-optimization/66767
10757 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
10758 Make sure to build the alignment test on a SSA name without
10759 final alignment info valid only if the alignment test
10762 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
10765 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
10766 loop start when inserting LSETUP.
10768 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10771 * config/i386/i386.c (ix86_option_override_internal): Allow
10772 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
10774 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10776 * read-md.c (decimal_string): Rename to ...
10777 (md_decimal_string): ... this.
10778 (handle_enum): Reflect this.
10780 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10783 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
10785 2015-07-06 Richard Biener <rguenther@suse.de>
10787 PR middle-end/66759
10788 * match.pd: Add missing constraint of y to REAL_CST in
10789 REAL_CST - x CMP y to y - CST CMP x simplification.
10791 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
10793 PR tree-optimization/66757
10794 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
10796 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
10797 Sandra Loosemore <sandra@codesourcery.com>
10799 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
10800 Delete extern declaration.
10801 (gprel_constant_p): Add extern declaration.
10802 * config/nios2/constraints.md ("S"): Use gprel_constant_p
10803 instead of nios2_symbol_ref_in_small_data_p.
10804 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
10805 (nios2_symbol_ref_in_small_data_p): Make static.
10806 (gprel_constant_p): Make non-static.
10808 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10810 * doc/fragments.texi (Target Fragment): Convert debian.org
10812 * doc/install.texi (Configuration): Ditto.
10814 2015-07-05 Jakub Jelinek <jakub@redhat.com>
10816 PR tree-optimization/66718
10817 * tree-vect-stmts.c (vectorizable_call): Replace uses of
10818 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
10820 PR tree-optimization/66718
10821 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
10822 vectorizable_load, vectorizable_condition): Move vectype,
10823 nunits, ncopies computation after checking what kind of statement
10826 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10828 * target-insns.def (extv, extzv, insv): New targetm instruction
10830 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
10832 * recog.c (simplify_while_replacing): Likewise.
10834 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10836 * target-insns.def (doloop_begin, doloop_end): New targetm
10837 instruction patterns.
10838 * loop-init.c: Include target.h.
10839 (pass_loop2::gate): Use the new targetm patterns instead of
10840 HAVE_*/gen_* interface.
10841 (pass_rtl_doloop::gate): Likewise.
10842 (pass_rtl_doloop::execute): Remove preprocessor condition.
10843 * hw-doloop.c: Build unconditionally.
10844 * loop-doloop.c: Likewise.
10845 (doloop_optimize): Use the new targetm patterns instead of
10846 HAVE_*/gen_* interface.
10847 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
10848 * modulo-sched.c (doloop_register_get): Likewise.
10850 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10852 * target-insns.def (clear_cache): New targetm instruction pattern.
10853 * builtins.c (expand_builtin___clear_cache): Use it instead of
10854 HAVE_*/gen_* interface.
10856 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10858 * target-insns.def (allocate_stack, check_stack, probe_stack)
10859 (probe_stack_address, split_stack_prologue, split_stack_space_check):
10860 New targetm instruction patterns.
10861 * explow.c (allocate_dynamic_stack_space): Use them instead of
10862 HAVE_*/gen_* interface.
10863 (emit_stack_probe): Likewise.
10864 (probe_stack_range): Likewise.
10865 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10867 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10869 * target-insns.def (stack_protect_set, stack_protect_test): New
10870 targetm instruction patterns.
10871 * cfgexpand.c (stack_protect_prologue): Use them instead of
10872 HAVE_*/gen_* interface.
10873 * function.c (stack_protect_epilogue): Likewise.
10875 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10877 * expr.h (gen_move_insn_uncast): Delete.
10878 * expr.c (gen_move_insn_uncast): Delete.
10880 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10882 * target-insns.def (restore_stack_block, restore_stack_function)
10883 (restore_stack_nonlocal, save_stack_block, save_stack_function)
10884 (save_stack_nonlocal): New targetm instruction patterns.
10885 * builtins.c (expand_builtin_apply): Use them instead of
10886 HAVE_*/gen_* interface.
10887 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
10889 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10891 * target-insns.def (trap): New targetm instruction pattern.
10892 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
10894 * explow.c (allocate_dynamic_stack_space): Likewise.
10895 * ifcvt.c (find_if_header): Likewise.
10897 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10899 * target-insns.def (prefetch): New targetm instruction pattern.
10900 * tree-ssa-loop-prefetch.c: Include targeth.
10901 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
10902 of HAVE_*/gen_* interface.
10903 * builtins.c (expand_builtin_prefetch): Likewise.
10904 * toplev.c (process_options): Likewise.
10906 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10908 * target-insns.def (untyped_call, untyped_return): New targetm
10909 instruction patterns.
10910 * builtins.c (expand_builtin_apply): Use them instead of
10911 HAVE_*/gen_* interface.
10912 (result_vector): Define unconditionally.
10914 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10916 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
10917 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
10918 (nonlocal_goto_receiver): New targetm instruction patterns.
10919 * builtins.c (expand_builtin_setjmp_setup): Use them instead
10920 of HAVE_*/gen_* interface.
10921 (expand_builtin_setjmp_receiver): Likewise.
10922 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
10923 * except.c (expand_dw2_landing_pad_for_region): Likewise.
10925 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10927 * target.def: Add code_for_* hooks.
10928 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
10929 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
10930 * target-insns.def (casesi, tablejump): New targetm instruction
10932 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
10933 (do_tablejump): Likewise.
10934 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
10935 (expand_sjlj_dispatch_table): Likewise.
10936 * targhooks.c (default_case_values_threshold): Likewise.
10938 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
10940 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
10941 Use rtx_insn * instead of rtx.
10942 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
10943 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
10944 (nios2_call_tls_get_addr): Likewise.
10945 (nios2_emit_expensive_div): Likewise.
10946 (nios2_emit_move_sequence): Change return type to bool.
10947 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
10948 Change return type to bool.
10950 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10953 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
10955 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
10958 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
10959 of register_operand. Remove constraint.
10961 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
10963 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
10964 the first argument.
10966 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
10968 * attribs.c (decl_attributes): Guard inform with the return value
10969 of the preceding warning.
10971 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10973 * doc/invoke.texi (moverride): Move to correct section.
10975 2015-07-03 Richard Biener <rguenther@suse.de>
10977 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
10979 (dt_operand::gen_gimple_expr): After valueizing operands
10980 re-canonicalize operand order for commutative tree codes.
10982 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
10985 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
10987 (__crc32w): Likewise.
10988 (__crc32d): Likewise.
10989 (__rdpmc): Likewise.
10990 (__rdtscp): Likewise.
10991 (_rdpmc): Likewise.
10992 (_rdtscp): Likewise.
10993 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
10996 2015-07-03 Richard Biener <rguenther@suse.de>
10998 * fold-const.c (fold_mathfn_compare): Remove.
10999 (fold_inf_compare): Likewise.
11000 (fold_comparison): Move floating point comparison simplifications...
11001 * match.pd: ... to patterns here. Introduce simple_comparisons
11002 operator list and use it for patterns formerly in fold_comparison.
11004 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
11006 PR tree-optimization/66119
11007 * toplev.c (process_options): Don't set up default values for
11008 the sra_max_scalarization_size_{speed,size} parameters.
11009 * tree-sra (analyze_all_variable_accesses): If no values
11010 have been set for the sra_max_scalarization_size_{speed,size}
11011 parameters, call get_move_ratio to get target defaults.
11013 2015-07-03 Richard Biener <rguenther@suse.de>
11015 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
11016 * match.pd: ... here.
11018 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
11021 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
11022 is not actually the default on FreeBSD.
11024 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11026 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
11028 (CMPGE_8HI): Likewise.
11029 (CMPGE_4SI): Likewise.
11030 (CMPGE_2DI): Likewise.
11031 (CMPGE_U16QI): Likewise.
11032 (CMPGE_U8HI): Likewise.
11033 (CMPGE_U4SI): Likewise.
11034 (CMPGE_U2DI): Likewise.
11035 (CMPLE_16QI): Likewise.
11036 (CMPLE_8HI): Likewise.
11037 (CMPLE_4SI): Likewise.
11038 (CMPLE_2DI): Likewise.
11039 (CMPLE_U16QI): Likewise.
11040 (CMPLE_U8HI): Likewise.
11041 (CMPLE_U4SI): Likewise.
11042 (CMPLE_U2DI): Likewise.
11043 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11044 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
11045 ALTIVEC_BUILTIN_VEC_CMPLE.
11046 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
11047 floating-point vector modes.
11048 (vector_nlt<mode>): New define_expand.
11049 (vector_nltu<mode>): Likewise.
11050 (vector_ngt<mode>): Likewise.
11051 (vector_ngtu<mode>): Likewise.
11053 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
11055 PR rtl-optimization/66706
11056 * combine.c (make_compound_operation): If an AND of SUBREG of
11057 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
11059 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
11061 * tree-pass.h (make_pass_ch_vect): New.
11062 * passes.def: Add pass_ch_vect just before pass_if_conversion.
11064 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
11065 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
11066 make_pass_ch_vect): New.
11067 (pass_ch): Extend ch_base.
11069 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
11070 (ch_base::copy_headers): ...here.
11072 2015-07-02 Richard Biener <rguenther@suse.de>
11074 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
11075 * fold-const.c (get_pointer_modulus_and_residue): Remove.
11076 (fold_binary_loc): Implement (T)ptr & CST in terms of
11077 get_pointer_alignment_1.
11078 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
11079 Make sure to build the alignment test on a SSA name without
11080 final alignment info valid only after the prologue.
11082 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
11084 * config/cris/cris.md ("epilogue"): Remove condition.
11085 ("prologue"): Ditto.
11087 2015-07-02 Richard Biener <rguenther@suse.de>
11089 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
11090 parameter to record a condition that is false.
11091 (record_conditions): When recording an extra NE_EXPR that is
11092 true also record a EQ_EXPR that is false.
11094 2015-07-02 Bin Cheng <bin.cheng@arm.com>
11096 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
11097 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
11098 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
11099 (set_iv, find_interesting_uses_address, add_candidate_1): New
11100 argument to alloc_iv.
11101 (find_interesting_uses_op, find_interesting_uses_cond): Don't
11102 duplicate struct iv.
11103 (free_loop_data): Don't free struct iv explicitly.
11104 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
11106 2015-07-01 DJ Delorie <dj@redhat.com>
11108 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
11110 (SUPPORTS_DISCRIMINATOR): Define.
11112 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
11115 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
11116 there are no CALLs in the same pattern.
11118 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11120 PR rtl-optimization/61047
11121 * rtlanal.c (get_initial_register_offset): New function.
11122 (rtx_addr_can_trap_p_1): Check offsets of stack references.
11124 2015-07-01 Richard Biener <rguenther@suse.de>
11126 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
11127 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
11128 ~X CMP C -> X CMP' ~C to ...
11129 * match.pd: ... patterns here.
11131 2015-07-01 Nick Clifton <nickc@redhat.com>
11133 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
11134 a 16-bit value into a 20-bit memory slot.
11136 2015-07-01 Jiong Wang <jiong.wang@arm.com>
11138 * doc/sourcebuild.texi (AArch64-specific attributes): Document
11139 "aarch64_tiny", "aarch64_small", "aarch64_large",
11140 "aarch64_little_endian", "aarch64_big_endian".
11142 2015-07-01 Jiong Wang <jiong.wang@arm.com>
11144 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
11145 Document "aarch64_small_fpic".
11147 2015-07-01 Jiong Wang <jiong.wang@arm.com>
11149 * configure.ac: Add check for aarch64 assembler -fpic relocation
11151 * configure: Regenerate.
11152 * config.in: Regenerate.
11153 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
11154 to -fPIC if not support of -fpic relocation modifier in assembler.
11156 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
11159 * rtl.c (classify_insn): Handle returns in PARALLELs.
11161 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
11163 PR middle-end/66633
11164 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
11165 to true if the function is nested and if not optimizing.
11166 (convert_local_omp_clauses): Initialize need_frame to true if the
11167 function contains nested functions and if not optimizing.
11169 2015-07-01 Richard Biener <rguenther@suse.de>
11171 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
11172 (X & Y) ^ Y -> ~X & Y transforms to ...
11173 * match.pd: ... here.
11175 2015-07-01 Richard Biener <rguenther@suse.de>
11177 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
11178 of converts to avoid uninteresting noise from the conversion
11179 simplifying patterns.
11181 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
11183 * config/c6x/c6x.c (try_rename_operands): Do not depend on
11184 gcc_assert evaluating its argument for side-effect.
11186 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
11189 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
11192 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
11194 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
11195 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
11196 (hash_scc): Add this_ref_p and ref_p parameters and pass them
11197 to the inner DFS walk.
11199 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11201 * target-insns.def (jump): New targetm instruction pattern.
11202 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
11203 instead of gen_jump.
11204 (fix_up_crossing_landing_pad): Likewise.
11205 (add_labels_and_missing_jumps): Likewise.
11206 (fix_crossing_conditional_branches): Likewise.
11207 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11208 (force_nonfallthru_and_redirect): Likewise.
11209 * cse.c (cse_insn): Likewise.
11210 * expmed.c (expand_divmod): Likewise.
11211 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
11212 * haifa-sched.c (init_before_recovery): Likewise.
11213 (sched_create_recovery_edges): Likewise.
11214 * ifcvt.c (find_cond_trap): Likewise.
11215 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
11216 (expand_float, expand_fix): Likewise.
11217 * stmt.c (emit_jump): Likewise.
11219 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11221 * defaults.h (HAVE_load_multiple, gen_load_multiple)
11222 (HAVE_store_multiple, gen_store_multiple): Delete.
11223 * target-insns.def (load_multiple, store_multiple): New targetm
11224 instruction patterns.
11225 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
11226 of HAVE_*/gen_* interface.
11228 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11230 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
11231 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
11232 (gen_mem_signal_fence): Delete.
11233 * target-insns.def (mem_signal_fence, mem_thread_fence)
11234 (memory_barrier): New targetm instruction patterns.
11235 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
11237 (expand_mem_signal_fence): Likewise.
11239 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11241 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
11242 * target-insns.def (epilogue, prologue, sibcall_prologue): New
11243 targetm instruction patterns.
11244 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
11246 * calls.c (expand_call): Likewise.
11247 * cfgrtl.c (cfg_layout_finalize): Likewise.
11248 * df-scan.c (df_get_entry_block_def_set): Likewise.
11249 (df_get_exit_block_use_set): Likewise.
11250 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
11251 * final.c (final_start_function): Likewise.
11252 * function.c (thread_prologue_and_epilogue_insns): Likewise.
11253 (reposition_prologue_and_epilogue_notes): Likewise.
11254 * reorg.c (find_end_label): Likewise.
11255 * toplev.c (process_options): Likewise.
11257 2015-06-30 David Malcolm <dmalcolm@redhat.com>
11259 * typed-splay-tree.h: New file.
11261 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
11264 * lra-int.h (lra_substitute_pseudo): Add a parameter.
11265 (lra_substitute_pseudo_within_insn): Ditto.
11266 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
11268 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
11269 to lra_substitute_pseudo.
11270 * lra-lives.c (process_bb_lives): Add an argument to
11271 lra_substitute_pseudo_within_insn call.
11272 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
11273 argument to lra_substitute_pseudo and
11274 lra_substitute_pseudo_within_insn calls.
11275 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
11277 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
11279 * configure: Regenerated.
11281 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
11283 * config.gcc: Support i[34567]86-*-elfiamcu target.
11284 * config/i386/iamcu.h: New.
11285 * config/i386/i386.opt: Add -miamcu.
11286 * doc/invoke.texi: Document -miamcu.
11287 * common/config/i386/i386-common.c (ix86_handle_option): Turn
11288 off x87/MMX/SSE/AVX codegen for -miamcu.
11289 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11290 __iamcu/__iamcu__ for -miamcu.
11291 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
11292 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
11293 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
11294 * config/i386/i386.c (ix86_option_override_internal): Ignore and
11295 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
11296 MCU by default. Default long double to 64-bit for Intel MCU.
11297 Turn on -freg-struct-return for Intel MCU. Issue an error when
11298 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
11300 (function_arg_advance_32): Pass value whose size is no larger
11301 than 8 bytes in registers for Intel MCU.
11302 (function_arg_32): Likewise.
11303 (ix86_return_in_memory): Return value whose size is no larger
11304 than 8 bytes in registers for Intel MCU.
11305 (iamcu_alignment): New function.
11306 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
11308 (ix86_local_alignment): Don't increase alignment for Intel MCU.
11309 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
11312 2015-06-30 Marek Polacek <polacek@redhat.com>
11314 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
11315 both operands of the resulting expression.
11317 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
11318 the final expression with the operand's type and then convert
11319 it to the type of the expression.
11321 2015-06-30 Richard Biener <rguenther@suse.de>
11323 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
11324 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
11325 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
11326 * match.pd: ... to patterns here.
11328 2015-06-30 Richard Biener <rguenther@suse.de>
11330 PR tree-optimization/66704
11331 * tree-vect-data-refs.c (vect_setup_realignment): Use
11332 make_ssa_name for non-SSA name source.
11334 2015-06-30 Jakub Jelinek <jakub@redhat.com>
11336 PR middle-end/66702
11337 * omp-low.c (simd_clone_adjust): Handle addressable linear
11338 or uniform parameters or non-gimple type uniform parameters.
11340 2015-06-30 Richard Biener <rguenther@suse.de>
11342 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
11343 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
11344 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
11345 * match.pd: ... here.
11346 Add a few cases of A - B -> A + (-B) when B "easily" negates.
11347 Move (x & y) | x -> x and friends before
11348 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
11350 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
11352 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
11353 -mfix-ut699 is not specified.
11354 (leon3_load): Rename into...
11355 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
11358 2015-06-30 Marek Polacek <polacek@redhat.com>
11360 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
11361 * match.pd: ... here.
11363 2015-06-30 Richard Biener <rguenther@suse.de>
11365 * target-insns.def (canonicalize_funcptr_for_compare): Add.
11366 * fold-const.c (build_range_check): Replace uses of
11367 HAVE_canonicalize_funcptr_for_compare.
11368 (fold_widened_comparison): Likewise.
11369 (fold_sign_changed_comparison): Likewise.
11370 * dojump.c: Include "target.h".
11371 (do_compare_and_jump): Replace uses of
11372 HAVE_canonicalize_funcptr_for_compare and
11373 gen_canonicalize_funcptr_for_compare.
11374 * expr.c (do_store_flag): Likewise.
11376 2015-06-30 Tom de Vries <tom@codesourcery.com>
11378 PR tree-optimization/66652
11379 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
11380 max_loop_iterations to determine if nit + 1 overflows.
11382 2015-06-30 Richard Biener <rguenther@suse.de>
11384 * tree-vrp.c (register_edge_assert_for_2): Also register
11385 asserts for dominating conversion results.
11387 2015-06-30 Bin Cheng <bin.cheng@arm.com>
11389 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
11390 field in struct iv.
11392 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
11395 * configure.ac: Fix filds and fildq test for 64-bit.
11396 * configure: Regenerated.
11398 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
11400 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
11401 (nvptx_reorg): Here. Keep the non-subreg pieces.
11403 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
11405 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
11406 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
11408 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
11410 * config/i386/i386.md (*jcc_1): Use %! in asm template.
11411 Set attribute "length_nobnd" instead of "length".
11414 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
11416 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
11418 * config/nios2/nios2.c (nios2_delegitimize_address): Make
11419 assert less restrictive.
11421 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
11424 * cgraphunit.c (cgraph_node::finalize_function): Do not call
11425 do_warn_unused_parameter.
11426 * function.c (do_warn_unused_parameter): Move from here.
11427 * function.h (do_warn_unused_parameter): Do not declare.
11429 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11432 * gcc.target/arm/armv-sync-comp-swap.c: New.
11433 * gcc.target/arm/armv-sync-op-acquire.c: New.
11434 * gcc.target/arm/armv-sync-op-full.c: New.
11435 * gcc.target/arm/armv-sync-op-release.c: New.
11437 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11440 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
11441 initial acquire barrier with final barrier.
11443 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11446 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
11447 initial acquire barrier with final barrier.
11449 2015-06-29 Richard Henderson <rth@redhat.com>
11451 * config/i386/constraints.md (Bf): New constraint.
11452 * config/i386/i386-c.c (ix86_target_macros): Define
11453 __GCC_ASM_FLAG_OUTPUTS__.
11454 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
11456 * doc/extend.texi (FlagOutputOperands): Document them.
11458 2015-06-29 Jiong Wang <jiong.wang@arm.com>
11460 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
11461 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
11463 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
11464 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
11465 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
11466 (aarch64_symbol_context): Ditto.
11467 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
11468 and use new pattern name.
11469 (aarch64_expand_mov_immediate): Ditto.
11470 (aarch64_print_operand): Ditto.
11471 (aarch64_classify_tls_symbol): Ditto.
11473 2015-06-29 Marek Polacek <polacek@redhat.com>
11474 Marc Glisse <marc.glisse@inria.fr>
11476 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
11477 * match.pd: ... pattern here.
11479 2015-06-29 Tom de Vries <tom@codesourcery.com>
11481 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
11482 function structure.
11484 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11486 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
11487 feature description, split out the native option, add a link to
11488 the feature documentation, rearrange and slightly rewrite text.
11489 (Aarch64 options, -mcpu): Likewise.
11490 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
11491 +rdma implies Adv. SIMD.
11493 2015-06-29 Marek Polacek <polacek@redhat.com>
11496 * function.c (stack_protect_epilogue): Remove a cast to int.
11497 * doc/invoke.texi: Update -Wswitch-bool description.
11499 2015-06-29 Richard Biener <rguenther@suse.de>
11501 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
11502 * fold-const.c (fold_binary_loc): Move &A - &B simplification
11503 via ptr_difference_const ...
11504 * match.pd: ... here.
11505 When matching (X ^ Y) == Y also match with swapped operands.
11507 2015-06-29 Richard Biener <rguenther@suse.de>
11509 * lto-streamer.h (LTO_major_version): Bump to 5.
11511 2015-06-29 Richard Biener <rguenther@suse.de>
11513 PR tree-optimization/66677
11514 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
11515 STMT_VINFO_VEC_STMT clobbering less strict.
11517 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
11519 PR middle-end/64130
11520 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
11521 division, compute max and min when value ranges for dividend and
11522 divisor are available.
11524 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
11525 Sandra Loosemore <sandra@codesourcery.com>
11527 * regrename.h (regrename_do_replace): Change to return bool.
11528 * regrename.c (rename_chains): Check return value of
11529 regname_do_replace.
11530 (regrename_do_replace): Re-validate the modified insns and
11531 return bool status.
11532 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
11533 Update to match rename_chains changes.
11534 * config/c6x/c6x.c (try_rename_operands): Assert that
11535 regrename_do_replace returns true.
11537 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
11539 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
11540 operand 2 here. Use copy_addr_to_reg to copy non-index
11541 register operand 2 to a temporary.
11542 (<mode>_stx): Ditto for operand 1.
11543 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
11544 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
11545 (ix86_store_bounds): Ditto.
11547 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
11549 * print-tree.c (print_node) [TREE_VEC]: Print its length.
11551 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
11553 * gimple.c (gimple_call_set_fndecl): Remove.
11554 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
11555 build1_loc directly instead of build_fold_addr_expr_loc.
11557 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11559 * hash-map.h (hash_map::traverse): Use the definition of the
11560 Key typedef rather than the typedef itself.
11562 2015-06-26 Martin Jambor <mjambor@suse.cz>
11565 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
11566 NULL instead of calling dump_enabled_p.
11568 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11570 * config/aarch64/aarch64.opt: (override): New.
11571 * doc/invoke.texi (override): Document.
11572 * config/aarch64/aarch64.c (aarch64_flag_desc): New
11573 (aarch64_fusible_pairs): Likewise.
11574 (aarch64_tuning_flags): Likewise.
11575 (aarch64_tuning_override_function): Likewise.
11576 (aarch64_tuning_override_functions): Likewise.
11577 (aarch64_parse_one_option_token): Likewise.
11578 (aarch64_parse_boolean_options): Likewise.
11579 (aarch64_parse_fuse_string): Likewise.
11580 (aarch64_parse_tune_string): Likewise.
11581 (aarch64_parse_one_override_token): Likewise.
11582 (aarch64_parse_override_string): Likewise.
11583 (aarch64_override_options): Parse the -override string if it
11586 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11588 * config/aarch64/aarch64-protos.h (tune_params): Remove
11589 const from members.
11590 (aarch64_tune_params): Remove const, change to no longer be
11592 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
11593 change to no longer be a pointer, initialize to generic_tunings.
11594 (aarch64_min_divisions_for_recip_mul): Change dereference of
11595 aarch64_tune_params to member access.
11596 (aarch64_reassociation_width): Likewise.
11597 (aarch64_rtx_mult_cost): Likewise.
11598 (aarch64_address_cost): Likewise.
11599 (aarch64_branch_cost): Likewise.
11600 (aarch64_rtx_costs): Likewise.
11601 (aarch64_register_move_cost): Likewise.
11602 (aarch64_memory_move_cost): Likewise.
11603 (aarch64_sched_issue_rate): Likewise.
11604 (aarch64_builtin_vectorization_cost): Likewise.
11605 (aarch64_override_options): Take a copy of the selected tuning
11606 struct in to aarch64_tune_params, rather than just setting
11607 a pointer, change dereferences of aarch64_tune_params to member
11609 (aarch64_override_options_after_change): Change dereferences of
11610 aarch64_tune_params to member access.
11611 (aarch64_macro_fusion_p): Likewise.
11612 (aarch_macro_fusion_pair_p): Likewise.
11613 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
11615 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11617 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
11618 (aarch64_tune_flags): Likewise.
11619 (AARCH64_TUNE_FMA_STEERING): Likewise.
11620 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
11621 to AARCH64_FL_USE_FMA_STEERING_PASS.
11622 (cortex-a57.cortex-a53): Likewise.
11623 (cortex-a72): Use cortexa72_tunings.
11624 (cortex-a72.cortex-a53): Likewise.
11625 (exynos-m1): Likewise.
11626 * config/aarch64/aarch64-protos.h (tune_params): Add
11627 a field: extra_tuning_flags.
11628 * config/aarch64/aarch64-tuning-flags.def: New.
11629 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
11630 (aarch64_extra_tuning_flags): Likewise.
11631 (aarch64_tune_params): Declare here.
11632 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
11633 (cortexa53_tunings): Likewise.
11634 (cortexa57_tunings): Likewise.
11635 (thunderx_tunings): Likewise.
11636 (xgene1_tunings): Likewise.
11637 (cortexa72_tunings): New.
11638 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
11639 (gate): Check against aarch64_tune_params.
11640 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
11643 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11645 * config/aarch64/aarch64-fusion-pairs.def: New.
11646 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
11647 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
11648 aarch64_fusion_pairs.
11649 (AARCH64_FUSE_MOV_MOVK): Likewise.
11650 (AARCH64_FUSE_ADRP_ADD): Likewise.
11651 (AARCH64_FUSE_MOVK_MOVK): Likewise.
11652 (AARCH64_FUSE_ADRP_LDR): Likewise.
11653 (AARCH64_FUSE_CMP_BRANCH): Likewise.
11655 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11657 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
11658 SYMBOL_SMALL_GOT_28K.
11659 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
11660 relocation modifiers.
11661 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
11662 (ldr_got_small_28k_<mode>): New.
11663 (ldr_got_small_28k_sidi): New.
11664 * config/aarch64/iterators.md (got_modifier): New mode iterator.
11665 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
11666 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11667 SYMBOL_SMALL_GOT_28K.
11668 (aarch64_rtx_costs): Add costs for new instruction sequences.
11669 (initialize_aarch64_code_model): Initialize new model.
11670 (aarch64_classify_symbol): Recognize new model and new symbol classification.
11671 (aarch64_asm_preferred_eh_data_format): Support new model.
11672 (aarch64_load_symref_appropriately): Generate new instruction
11673 sequences for -fpic.
11674 (TARGET_USE_PSEUDO_PIC_REG): New definition.
11675 (aarch64_use_pseudo_pic_reg): New function.
11677 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11679 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11680 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
11681 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
11682 (aarch64_expand_mov_immediate): Ditto.
11683 (aarch64_print_operand): Ditto.
11684 (aarch64_classify_symbol): Ditto.
11686 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
11688 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
11690 2015-06-26 Bin Cheng <bin.cheng@arm.com>
11693 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
11694 assertion failed. Remove assertion itself.
11696 2015-06-26 Richard Biener <rguenther@suse.de>
11698 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
11699 and -A CMP CST -> A CMP -CST which is redundant with a pattern
11701 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
11702 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
11703 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
11704 * match.pd: ... patterns here.
11706 2015-06-26 Marek Polacek <polacek@redhat.com>
11708 * match.pd ((x | y) & ~(x & y) -> x ^ y,
11709 (x | y) & (~x ^ y) -> x & y): New patterns.
11711 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11713 * rtl.h (emit): Add an optional boolean parameter to control
11714 whether barriers are emitted.
11715 * emit-rtl.c (emit): Likewise.
11716 * gensupport.c (get_emit_function): Return null rather than "emit".
11717 * genemit.c (gen_emit_seq): Handle the null return value.
11718 Don't emit barriers after the final instruction in the sequence.
11719 * gentarget-def.c (main): Don't emit barriers after the instruction.
11721 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11723 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
11724 TARGET_UNIFIED_ASM.
11726 2015-06-26 Richard Biener <rguenther@suse.de>
11728 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
11730 2015-06-26 Richard Biener <rguenther@suse.de>
11732 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
11733 irrespective on whether the inner operation has a single use
11734 of both off are constant.
11736 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
11737 Segher Boessenkool <segher@kernel.crashing.org>
11740 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
11741 before doing PUT_MODE or PUT_CODE on operands to avoid
11742 in-place RTX modification.
11744 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11746 * gentarget-def.c (def_target_insn): Cast return of strtol to
11749 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11751 * gimple.h (gimple_call_set_fn): Move inline function.
11752 * gimple.c (gimple_call_set_fn): Relocate here.
11754 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
11758 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
11759 the replacement insn will work.
11761 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11763 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
11766 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11768 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
11769 * cgraph.h: Include ipa-ref.h and plugin-api.h.
11770 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
11771 (symtab_node::address_can_be_compared_p): Move function.
11772 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
11774 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
11775 * auto-profile.c: Likewise.
11776 * bb-reorder.c: Likewise.
11777 * builtins.c: Likewise.
11778 * calls.c: Likewise.
11779 * cfgexpand.c: Likewise.
11780 * cgraphbuild.c: Likewise.
11781 * cgraphclones.c: Likewise.
11782 * cgraphunit.c: Likewise.
11783 * combine.c: Likewise.
11784 * coverage.c: Likewise.
11785 * data-streamer-in.c: Likewise.
11786 * data-streamer-out.c: Likewise.
11787 * data-streamer.c: Likewise.
11788 * dbxout.c: Likewise.
11789 * dwarf2out.c: Likewise.
11790 * except.c: Likewise.
11791 * expr.c: Likewise.
11792 * final.c: Likewise.
11793 * fold-const.c: Likewise.
11794 * ggc-page.c: Likewise.
11795 * gimple-fold.c: Likewise.
11796 * gimple-iterator.c: Likewise.
11797 * gimple-pretty-print.c: Likewise.
11798 * gimple-streamer-in.c: Likewise.
11799 * gimple-streamer-out.c: Likewise.
11800 * gimple.c: Likewise.
11801 * gimplify.c: Likewise.
11802 * ipa-chkp.c: Likewise.
11803 * ipa-comdats.c: Likewise.
11804 * ipa-cp.c: Likewise.
11805 * ipa-devirt.c: Likewise.
11806 * ipa-icf-gimple.c: Likewise.
11807 * ipa-icf.c: Likewise.
11808 * ipa-inline-analysis.c: Likewise.
11809 * ipa-inline-transform.c: Likewise.
11810 * ipa-inline.c: Likewise.
11811 * ipa-polymorphic-call.c: Likewise.
11812 * ipa-profile.c: Likewise.
11813 * ipa-prop.c: Likewise.
11814 * ipa-pure-const.c: Likewise.
11815 * ipa-ref.c: Likewise.
11816 * ipa-reference.c: Likewise.
11817 * ipa-split.c: Likewise.
11818 * ipa-utils.c: Likewise.
11819 * ipa-visibility.c: Likewise.
11821 * langhooks.c: Likewise.
11822 * lto-cgraph.c: Likewise.
11823 * lto-compress.c: Likewise.
11824 * lto-opts.c: Likewise.
11825 * lto-section-in.c: Likewise.
11826 * lto-section-out.c: Likewise.
11827 * lto-streamer-in.c: Likewise.
11828 * lto-streamer-out.c: Likewise.
11829 * lto-streamer.c: Likewise.
11830 * omp-low.c: Likewise.
11831 * opts-global.c: Likewise.
11832 * passes.c: Likewise.
11833 * predict.c: Likewise.
11834 * print-tree.c: Likewise.
11835 * profile.c: Likewise.
11837 * sanopt.c: Likewise.
11838 * stor-layout.c: Likewise.
11839 * symtab.c: Likewise.
11840 * toplev.c: Likewise.
11841 * trans-mem.c: Likewise.
11842 * tree-cfg.c: Likewise.
11843 * tree-chkp.c: Likewise.
11844 * tree-eh.c: Likewise.
11845 * tree-emutls.c: Likewise.
11846 * tree-inline.c: Likewise.
11847 * tree-nested.c: Likewise.
11848 * tree-parloops.c: Likewise.
11849 * tree-pretty-print.c: Likewise.
11850 * tree-profile.c: Likewise.
11851 * tree-sra.c: Likewise.
11852 * tree-ssa-alias.c: Likewise.
11853 * tree-ssa-live.c: Likewise.
11854 * tree-ssa-loop-ivcanon.c: Likewise.
11855 * tree-ssa-loop-ivopts.c: Likewise.
11856 * tree-ssa-pre.c: Likewise.
11857 * tree-ssa-sccvn.c: Likewise.
11858 * tree-ssa-strlen.c: Likewise.
11859 * tree-ssa-structalias.c: Likewise.
11860 * tree-streamer-in.c: Likewise.
11861 * tree-streamer-out.c: Likewise.
11862 * tree-streamer.c: Likewise.
11863 * tree-switch-conversion.c: Likewise.
11864 * tree-tailcall.c: Likewise.
11865 * tree-vect-data-refs.c: Likewise.
11866 * tree-vect-stmts.c: Likewise.
11867 * tree-vectorizer.c: Likewise.
11868 * tree.c: Likewise.
11869 * tsan.c: Likewise.
11870 * ubsan.c: Likewise.
11871 * value-prof.c: Likewise.
11872 * varasm.c: Likewise.
11873 * varpool.c: Likewise.
11874 * config/arm/arm.c: Likewise.
11875 * config/bfin/bfin.c: Likewise.
11876 * config/c6x/c6x.c: Likewise.
11877 * config/cris/cris.c: Likewise.
11878 * config/darwin-c.c: Likewise.
11879 * config/darwin.c: Likewise.
11880 * config/i386/i386.c: Likewise.
11881 * config/i386/winnt.c: Likewise.
11882 * config/microblaze/microblaze.c: Likewise.
11883 * config/mips/mips.c: Likewise.
11884 * config/rs6000/rs6000.c: Likewise.
11885 * config/rx/rx.c: Likewise.
11886 * config/s390/s390.c: Likewise.
11887 * config/tilegx/mul-tables.c: Likewise.
11889 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11891 * config/aarch64/aarch64.c, config/alpha/alpha.c,
11892 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
11893 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
11894 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
11895 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11896 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11897 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11898 config/microblaze/microblaze.c, config/mips/mips.c,
11899 config/mmix/mmix.c, config/mn10300/mn10300.c,
11900 config/moxie/moxie.c, config/msp430/msp430.c,
11901 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11902 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11903 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11904 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11905 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11906 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11907 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
11908 target-def.h include.
11909 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
11911 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11913 * Makefile.in (TARGET_DEF): Add target-insns.def.
11914 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
11915 (build/gentarget-def.o): New rule.
11916 (genprogrtl): Add target-def.
11917 * target-insns.def, gentarget-def.c: New files.
11918 * target.def: Add targetm.have_* and targetm.gen_* hooks,
11919 based on the contents of target-insns.def.
11920 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
11921 (HAVE_return, gen_return): Delete.
11922 * target-def.h: Include insn-target-def.h.
11923 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
11924 instead of direct calls. Rely on them to do the appropriate assertions.
11925 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
11926 (convert_jumps_to_returns): Use targetm interface instead of
11928 (thread_prologue_and_epilogue_insns): Likewise.
11929 * reorg.c (find_end_label, dbr_schedule): Likewise.
11930 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
11931 * shrink-wrap.c (convert_to_simple_return): Likewise.
11932 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
11934 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11936 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
11937 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
11938 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
11939 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
11940 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11941 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11942 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11943 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
11944 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
11945 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11946 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11947 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11948 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11949 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11950 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11951 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
11954 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11956 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
11957 (unbounded_int_hashmap_traits::key_type): Likewise.
11958 * hash-map.h (hash_map): Get the key type from the traits.
11959 * hash-traits.h (default_hash_traits): By default, inherit from the
11960 template parameter.
11961 * alias.c (alias_set_traits): Delete.
11962 (alias_set_entry_d::children): Use alias_set_hash as the first
11963 template parameter.
11964 (record_alias_subset): Update accordingly.
11965 * except.c (tree_hash_traits): Delete.
11966 (type_to_runtime_map): Use tree_hash as the first template parameter.
11967 (init_eh): Update accordingly.
11968 * genmatch.c (capture_id_map_hasher): Delete.
11969 (cid_map_t): Use nofree_string_hash as first template parameter.
11970 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
11971 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
11972 Use symbol_compare_hash as the first template parameter in
11973 subdivide_hash_map.
11974 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
11975 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
11976 template parameter.
11977 * passes.c (pass_registry_hasher): Delete.
11978 (name_to_pass_map): Use nofree_string_hash as the first template
11980 (register_pass_name): Update accordingly.
11981 * sanopt.c (sanopt_tree_map_traits): Delete.
11982 (sanopt_tree_triplet_map_traits): Delete.
11983 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
11984 template parameter.
11985 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
11986 the first template parameter.
11987 * sese.c (rename_map_hasher): Delete.
11988 (rename_map_type): Use tree_ssa_name_hash as the first template
11990 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
11991 (function_summary::m_map): Use map_hash as the first template
11993 (function_summary::release): Update accordingly.
11994 * tree-if-conv.c (phi_args_hash_traits): Delete.
11995 (predicate_scalar_phi): Use tree_operand_hash as the first template
11996 parameter to phi_arg_map.
11997 * tree-inline.h (dependence_hasher): Delete.
11998 (copy_body_data::dependence_map): Use dependence_hash as the first
11999 template parameter.
12000 * tree-inline.c (remap_dependence_clique): Update accordingly.
12001 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
12002 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
12004 (addr_stridxptr): Update accordingly.
12005 * value-prof.c (profile_id_traits): Delete.
12006 (cgraph_node_map): Use profile_id_hash as the first template
12008 (init_node_map): Update accordingly.
12009 * config/alpha/alpha.c (string_traits): Delete.
12010 (machine_function::links): Use nofree_string_hash as the first
12011 template parameter.
12012 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
12013 * config/m32c/m32c.c (pragma_traits): Delete.
12014 (pragma_htab): Use nofree_string_hash as the first template parameter.
12015 (m32c_note_pragma_address): Update accordingly.
12016 * config/mep/mep.c (pragma_traits): Delete.
12017 (pragma_htab): Use nofree_string_hash as the first template parameter.
12018 (mep_note_pragma_flag): Update accordingly.
12019 * config/mips/mips.c (mips16_flip_traits): Delete.
12020 (mflip_mips16_htab): Use nofree_string_hash as the first template
12022 (mflip_mips16_use_mips16_p): Update accordingly.
12023 (local_alias_traits): Delete.
12024 (mips16_local_aliases): Use nofree_string_hash as the first template
12026 (mips16_local_alias): Update accordingly.
12028 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12030 * hash-map-traits.h (default_hashmap_traits): Delete.
12032 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12034 * hash-map-traits.h (unbounded_hashmap_traits): New class.
12035 (unbounded_int_hashmap_traits): Likewise.
12036 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
12038 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12040 * ipa-icf.h (symbol_compare_hash): New class.
12041 (symbol_compare_hashmap_traits): Use it.
12042 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
12043 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
12044 (mem_alloc_description::reverse_mem_map_t): Remove redundant
12045 default_hashmap_traits.
12046 * sanopt.c (sanopt_tree_triplet_hash): New class.
12047 (sanopt_tree_triplet_map_traits): Use it.
12049 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12051 * gengtype-parse.c (require_template_declaration): Allow '+' in
12052 template parameters. Consolidate cases.
12053 * hash-traits.h (int_hash): New class.
12054 * alias.c (alias_set_hash): New structure.
12055 (alias_set_traits): Use it.
12056 * symbol-summary.h (function_summary::map_hash): New class.
12057 (function_summary::summary_hashmap_traits): Use it.
12058 * tree-inline.h (dependence_hash): New class.
12059 (dependence_hasher): Use it.
12060 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
12061 * value-prof.c (profile_id_hash): New class.
12062 (profile_id_traits): Use it.
12064 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12066 * config/mips/mips.c (mips16_flip_traits): Use it.
12067 (local_alias_traits, mips16_local_aliases): Convert from a map of
12068 rtxes to a map of symbol names.
12069 (mips16_local_alias): Update accordingly.
12071 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12073 * hash-traits.h (string_hash, nofree_string_hash): New classes.
12074 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
12075 * passes.c (pass_registry_hasher): Likewise.
12076 * config/alpha/alpha.c (string_traits): Likewise.
12077 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
12078 * config/m32c/m32c.c (pragma_traits): Likewise.
12079 * config/mep/mep.c (pragma_traits): Likewise.
12081 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12083 * tree-hash-traits.h (tree_hash): New class.
12084 * except.c: Include tree-hash-traits.h.
12085 (tree_hash_traits): Use tree_hash.
12087 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12089 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
12090 * sese.c: Include tree-hash-traits.h.
12091 (rename_map_hasher): Use tree_ssa_name_hasher.
12093 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12095 * tree-hash-traits.h (tree_decl_hash): New class.
12096 * tree-ssa-strlen.c: Include tree-hash-traits.h.
12097 (stridxlist_hash_traits): Use tree_decl_hash.
12099 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12101 * tree-hash-traits.h: New file.
12102 (tree_operand_hash): New class.
12103 * sanopt.c: Include tree-hash-traits.h.
12104 (sanopt_tree_map_traits): Use tree_operand_hash.
12105 * tree-if-conv.c: Include tree-hash-traits.h.
12106 (phi_args_hash_traits): Use tree_operand_hash.
12107 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
12108 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
12110 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12112 * hash-map-traits.h: Include hash-traits.h.
12113 (simple_hashmap_traits): New class.
12114 * mem-stats.h (hash_map): Change the default traits to
12115 simple_hashmap_traits<default_hash_traits<Key> >.
12117 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12119 * hash-table.h: Update comments.
12121 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12123 * hash-traits.h (default_hash_traits): New structure.
12124 * hash-set.h (default_hashset_traits): Delete.
12125 (hash_set): Use default_hash_traits<Key> instead of
12126 default_hashset_traits. Delete hash_entry type and use Key directly.
12127 * ipa-devirt.c (pair_traits): Delete.
12128 (default_hash_traits <type_pair>): Override.
12129 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
12130 (odr_types_equivalent_p, add_type_duplicate): Likewise.
12132 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12134 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
12136 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12138 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
12139 (has_is_empty, is_empty_helper): Delete.
12140 (has_mark_deleted, mark_deleted_helper): Delete.
12141 (has_mark_empty, mark_empty_helper): Delete.
12142 (hash_table::is_deleted): Call the Descriptor unconditionally.
12143 (hash_table::is_empty): Likewise.
12144 (hash_table::mark_deleted): Likewise.
12145 (hash_table::mark_empty): Likewise.
12147 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12149 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
12150 redundant typedefs and members.
12151 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
12152 redundant typedefs.
12153 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
12154 * ipa-devirt.c (odr_name_hasher): Likewise.
12155 (polymorphic_call_target_hasher): Likewise.
12156 * ira-costs.c (cost_classes_hasher): Likewise.
12157 * statistics.c (stats_counter_hasher): Likewise.
12158 * trans-mem.c (log_entry_hasher): Likewise.
12159 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
12160 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
12161 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
12162 * var-tracking.c (variable_hasher): Likewise.
12163 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
12164 Remove redundant typedefs and members.
12166 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12168 * hash-traits.h (ggc_cache_hasher): Rename to...
12169 (ggc_cache_remove): ...this and remove typedefs.
12170 (ggc_cache_ptr_hash): New class.
12171 * hash-table.h: Update commentary.
12172 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
12173 rather than ggc_cache_hasher.
12174 (const_wide_int_hasher, reg_attr_hasher): Likewise.
12175 (const_double_hasher, const_fixed_hasher): Likewise.
12176 * function.c (insn_cache_hasher): Likewise.
12177 * trans-mem.c (tm_wrapper_hasher): Likewise.
12178 * tree.h (tree_decl_map_cache_hasher): Likewise.
12179 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
12180 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
12181 * ubsan.c (tree_type_map_cache_hasher): Likewise.
12182 * varasm.c (tm_clone_hasher): Likewise.
12183 * config/i386/i386.c (dllimport_hasher): Likewise.
12184 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
12185 (tree_hasher): Likewise.
12187 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12189 * hash-traits.h (ggc_hasher): Rename to...
12190 (ggc_remover): ...this and remove typedefs.
12191 (ggc_cache_hasher): Update accordingly. Add typedefs.
12192 (ggc_ptr_hash): New class.
12193 * hash-table.h: Update comment.
12194 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
12196 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
12197 (tree_descriptor_hasher): Likewise.
12198 * cgraph.c (function_version_hasher): Likewise.
12199 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
12200 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
12201 (dw_loc_list_hasher, addr_hasher): Likewise.
12202 * function.h (used_type_hasher): Likewise.
12203 * function.c (temp_address_hasher): Likewise.
12204 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
12205 * libfuncs.h (libfunc_hasher): Likewise.
12206 * lto-streamer.h (decl_state_hasher): Likewise.
12207 * optabs.c (libfunc_decl_hasher): Likewise.
12208 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
12209 * varasm.c (section_hasher, object_block_hasher): Likewise.
12210 (const_rtx_desc_hasher): Likewise.
12211 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
12212 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
12214 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12216 * hash-traits.h (free_ptr_hash): New class.
12217 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
12218 rather than typed_free_remove. Remove redudant typedefs.
12219 (external_ref_hasher): Likewise.
12220 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
12221 (ehspec_hasher): Likewise.
12222 * ggc-common.c (saving_hasher): Likewise.
12223 * gimplify.c (gimplify_hasher): Likewise.
12224 * haifa-sched.c (delay_i2_hasher): Likewise.
12225 * loop-invariant.c (invariant_expr_hasher): Likewise.
12226 * loop-iv.c (biv_entry_hasher): Likewise.
12227 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
12228 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
12229 * tree-cfg.c (locus_discrim_hasher): Likewise.
12230 * tree-eh.c (finally_tree_hasher): Likewise.
12231 * tree-into-ssa.c (var_info_hasher): Likewise.
12232 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
12233 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
12234 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
12235 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
12236 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
12237 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
12238 (shared_bitmap_hasher): Likewise.
12239 * tree-ssa-threadupdate.c (redirection_data): Likewise.
12240 * tree-vectorizer.h (peel_info_hasher): Likewise.
12241 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
12242 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
12244 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12246 * hash-table.h: Update comments.
12247 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
12248 (nofree_ptr_hash): New class.
12249 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
12250 than typed_noop_remove. Remove redudant typedefs.
12251 * attribs.c (attribute_hasher): Likewise.
12252 * cfg.c (bb_copy_hasher): Likewise.
12253 * cselib.c (cselib_hasher): Likewise.
12254 * dse.c (invariant_group_base_hasher): Likewise.
12255 * dwarf2cfi.c (trace_info_hasher): Likewise.
12256 * dwarf2out.c (macinfo_entry_hasher): Likewise.
12257 (comdat_type_hasher, loc_list_hasher): Likewise.
12258 * gcse.c (pre_ldst_expr_hasher): Likewise.
12259 * genmatch.c (id_base): Likewise.
12260 * genrecog.c (test_pattern_hasher): Likewise.
12261 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
12262 * haifa-sched.c (delay_i1_hasher): Likewise.
12263 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
12264 * ipa-icf.h (congruence_class_group_hash): Likewise.
12265 * ipa-profile.c (histogram_hash): Likewise.
12266 * ira-color.c (allocno_hard_regs_hasher): Likewise.
12267 * lto-streamer.h (string_slot_hasher): Likewise.
12268 * lto-streamer.c (tree_entry_hasher): Likewise.
12269 * plugin.c (event_hasher): Likewise.
12270 * postreload-gcse.c (expr_hasher): Likewise.
12271 * store-motion.c (st_expr_hasher): Likewise.
12272 * tree-sra.c (uid_decl_hasher): Likewise.
12273 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
12274 (ssa_name_var_hash): Likewise.
12275 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
12276 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
12277 * tree-ssa-pre.c (pre_expr_d): Likewise.
12278 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
12279 * vtable-verify.h (registration_hasher): Likewise.
12280 * vtable-verify.c (vtbl_map_hasher): Likewise.
12281 * config/arm/arm.c (libcall_hasher): Likewise.
12282 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
12283 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
12284 * config/sol2.c (comdat_entry_hasher): Likewise.
12285 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
12286 (print_fold_checksum, fold_checksum_tree): Likewise.
12287 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
12288 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
12289 (fold_build_call_array_loc): Likewise.
12290 * tree-ssa-ccp.c (gimple_htab): Likewise.
12291 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
12292 rather than pointer_type.
12294 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12296 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
12297 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
12299 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12301 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
12302 (ggc_hasher::ggc_mx): Likewise.
12303 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
12304 that duplicate ggc_hasher ones.
12306 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12308 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
12309 (gt_cleare_cache): Check here for deleted and empty entries.
12310 Replace handle_cache_entry with a call to keep_cache_entry.
12311 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
12312 (ggc_cache_hasher::keep_cache_entry): New function.
12313 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
12314 (tm_wrapper_hasher::keep_cache_entry): New function.
12315 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
12316 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
12317 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
12318 (type_cache_hasher::keep_cache_entry): New function.
12319 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
12320 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
12321 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
12322 (tree_type_map_cache_hasher::keep_cache_entry): New function.
12323 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
12324 (tm_clone_hasher::keep_cache_entry): New function.
12325 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
12326 (dllimport_hasher::keep_cache_entry): New function.
12328 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12330 * hash-table.h: Include hash-traits.h.
12331 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
12332 (ggc_cache_hasher): Move to...
12333 * hash-traits.h: ...this new file.
12335 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12337 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
12338 struct cl_optimization.
12339 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
12340 * tree.c (make_node_stat): Allocate cl_optimization struct.
12341 (copy_node_stat): Allocate and copy cl_optimization struct.
12343 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12345 * function.h (struct incoming_args): Move struct.
12346 (pass_by_reference, reference_callee_copied): Remove prototypes.
12347 * emit-rtl.h (struct incoming_args): Relocate struct here.
12348 * calls.h (pass_by_reference, reference_callee_copied): Relocate
12350 * function.c (pass_by_reference, reference_callee_copied): Move.
12351 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
12352 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
12353 * ipa-chkp.c: Include calls.h.
12355 2015-06-25 Andrew Macleod <amacleod@redhat.com>
12357 * alias.h (alias_set_type): Move typedef.
12358 * coretypes.h (alias_set_type): Relocate typedef here.
12359 * rtl.h: Don't include alias.h.
12361 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12363 * cgraph.h (cgraph_rtl_info): Move to rtl.h
12364 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
12366 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
12367 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
12369 * calls.c: Include hard-reg-set.h before rtl.h.
12372 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
12373 Vladimir Makarov <vmakarov@redhat.com>
12375 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
12378 2015-06-25 Richard Biener <rguenther@suse.de>
12380 * fold-const.c (fold_binary_loc): Move simplification of
12381 (X <<>> C1) & C2 ...
12382 * match.pd: ... here.
12384 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
12386 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
12388 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12390 * match.pd: Add patterns for vec_conds between 1 and 0.
12392 2015-06-25 Richard Biener <rguenther@suse.de>
12394 * tree-vect-stmts.c (vectorizable_conversion): Do not set
12395 STMT_VINFO_VEC_STMT for SLP.
12396 (vectorizable_store): Likewise.
12397 (vectorizable_load): Likewise.
12398 (vect_transform_stmt): Catch SLP vectorization clobbering
12399 STMT_VINFO_VEC_STMT.
12401 2015-06-25 Richard Biener <rguenther@suse.de>
12403 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
12405 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
12406 cleanup resulting dead code and parameters.
12407 (vect_transform_slp_perm_load): Adjust.
12409 2015-06-25 Nick Clifton <nickc@redhat.com>
12411 * config/bfin/bfin.c (bfin_expand_prologue): Set
12412 current_function_static_stack_size if flag_stack_usage_info is set.
12413 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12414 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
12415 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
12416 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
12418 2015-06-25 Tom de Vries <tom@codesourcery.com>
12420 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
12421 comment that the generated IV is unsigned.
12423 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12426 * config/arm/arm.c (arm_dbx_register_number): Return
12427 DWARF_FRAME_REGISTERS by default.
12429 2015-06-25 Tom de Vries <tom@codesourcery.com>
12431 * dominance.c (calculate_dominance_info): Fix verify_dominators call
12432 argument. Call verify_dominator when reusing dominator info.
12434 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
12437 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
12438 an additional element of the unspec vector. Modify indices
12440 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
12441 * config/sh/sh.c (prepare_move_operands): Pass incremented
12442 const_int to gen_GOTaddr2picreg.
12443 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
12445 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12447 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
12448 Condition on TARGET_FLOAT.
12450 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12452 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
12455 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12457 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
12459 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
12460 aarch64_err_no_fpadvsimd.
12462 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
12463 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
12464 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
12465 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
12466 Turn error into assert, test TARGET_FLOAT.
12467 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
12470 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
12473 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
12475 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
12477 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
12479 2015-06-24 Renlin Li <renlin.li@arm.com>
12481 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
12482 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
12484 2015-06-24 Richard Biener <rguenther@suse.de>
12486 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
12488 (lower_opt_convert): Support lowering of conditional view_convert.
12489 (parser::parse_operation): Likewise.
12490 (parser::parse_for): Likewise.
12492 2015-06-24 Renlin Li <renlin.li@arm.com>
12494 * varasm.c (emit_local): Use unsigned int for align variable.
12496 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12499 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
12500 for negative numbers.
12502 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12504 PR rtl-optimization/66306
12505 * reload.c (find_reloads): Swap the match_dup info for
12506 commutative operands.
12508 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12510 * config/s390/vx-builtins.md
12511 ("vec_scatter_element<mode>_<non_vec_int>")
12512 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
12513 attribute with bhfgq.
12515 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12517 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
12519 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12521 * config/s390/s390-builtin-types.def: Add flag to indicate the
12522 options under which the function type is needed.
12523 * config/s390/s390-builtins.def: Add flag to indicate the options
12524 under which the builtin is enabled.
12525 * config/s390/s390-builtins.h: Add flags parameter to macro
12527 (bflags_for_builtin): New function.
12528 (flags_for_builtin): Renamed to ...
12529 (opflags_for_builtin): ... this.
12530 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
12531 flags_for_builtin to bflags_for_builtin and
12532 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
12533 * config/s390/s390.c: Add initialization of bflags_builtin and
12534 opflags_builtin arrays.
12535 Remove code for flags_builtin.
12536 (s390_init_builtins): Only create builtin function types if one of
12537 their flags is active.
12538 Only create builtins if all of their flags are active.
12539 (s390_expand_builtin): Rename flags_for_builtin to
12540 opflags_for_builtin.
12542 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12544 * config/s390/vecintrin.h: Remove internal builtins.
12546 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12548 * config/s390/s390.c (s390_secondary_reload): Fix check for
12549 GENERAL_REGS register class.
12551 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12553 * config/s390/s390.c (s390_support_vector_misalignment): Call
12554 default implementation for !TARGET_VX.
12556 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12558 * config/s390/s390.c (s390_legitimate_constant_p): Add
12561 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12563 * config/s390/s390.c (s390_vector_abi): New variable definition.
12564 (s390_check_type_for_vector_abi): New function.
12565 (TARGET_ASM_FILE_END): New macro definition.
12566 (s390_asm_file_end): New function.
12567 (s390_function_arg): Call s390_check_type_for_vector_abi.
12568 (s390_gimplify_va_arg): Likewise.
12569 * configure: Regenerate.
12570 * configure.ac: Check for .gnu_attribute Binutils feature.
12572 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
12575 * config/bfin/bfin.c (hwloop_optimize): Initialize
12576 JUMP_LABEL for newly created jump.
12578 2015-06-23 Tristan Gingold <gingold@adacore.com>
12580 * collect-utils.c (collect_wait): Unlink the response file here
12582 (do_wait): ...here.
12583 (utils_cleanup): ...and here.
12585 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
12587 * df-scan.c: Don't include target-def.h.
12588 * targhooks.c: Likewise.
12589 * config/arm/arm-c.c: Likewise.
12590 * config/i386/i386-c.c: Likewise.
12591 * config/nds32/nds32-cost.c: Likewise.
12592 * config/nds32/nds32-fp-as-gp.c: Likewise.
12593 * config/nds32/nds32-intrinsic.c: Likewise.
12594 * config/nds32/nds32-isr.c: Likewise.
12595 * config/nds32/nds32-md-auxiliary.c: Likewise.
12596 * config/nds32/nds32-memory-manipulation.c: Likewise.
12597 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12598 * config/nds32/nds32-predicates.c: Likewise.
12600 2015-06-23 Richard Biener <rguenther@suse.de>
12602 PR tree-optimization/66636
12603 * tree-vect-stmts.c (vectorizable_store): Properly compute the
12604 def type for further defs for strided stores.
12606 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
12608 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
12609 conditional selects.
12610 (setcc_int<mode>, setcc_float<mode>): Reformat.
12612 2015-06-23 Marek Polacek <polacek@redhat.com>
12614 * match.pd ((x + y) - (x | y) -> x & y,
12615 (x + y) - (x & y) -> x | y): New patterns.
12617 2015-06-23 Ludovic Courtès <ludo@gnu.org>
12620 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
12621 '-dynamic-linker' within %{!shared: ...}.
12623 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
12626 * config/i386/predicates.md (addsub_vm_operator): New predicate.
12627 (addsub_vs_operator): Ditto.
12628 (addsub_vs_parallel): Ditto.
12629 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
12630 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
12631 Put minus RTX before plus and adjust vec_merge selector.
12632 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
12633 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
12634 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
12635 (addsub vec_merge splitters): New combiner splitters.
12636 (addsub vec_select/vec_concat splitters): Ditto.
12638 2015-06-23 Bin Cheng <bin.cheng@arm.com>
12640 PR tree-optimization/66449
12641 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
12642 POINTER_PLUS_EXPR for pointers.
12644 2015-06-23 Alan Modra <amodra@gmail.com>
12646 * rtlanal.c (commutative_operand_precedence): Correct comments.
12647 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
12648 declaration. Return an int. Distinguish REG,REG return from
12650 (struct simplify_plus_minus_op_data): Make local to function.
12651 (simplify_plus_minus): Don't set canonicalized if merely sorting
12652 registers. Avoid packing ops if nothing changes. White space fixes.
12654 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
12656 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
12657 -fdump-ada-spec is passed but not if -fsyntax-only is.
12659 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
12662 * lra-lives.c (process_bb_lives): Check insn copying the same
12663 reload pseudo and don't create a copy for it.
12665 2015-06-22 Tom de Vries <tom@codesourcery.com>
12667 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
12670 2015-06-22 Tom de Vries <tom@codesourcery.com>
12672 * builtins.def (DEF_GOMP_BUILTIN): Test
12673 'flag_tree_parallelize_loops > 1' instead of
12674 'flag_tree_parallelize_loops'. Test flag_cilkplus.
12676 2015-06-22 Tom de Vries <tom@codesourcery.com>
12678 * dominance.c (calculate_dominance_info): Verify dominators if
12681 2015-06-22 Marek Polacek <polacek@redhat.com>
12683 * match.pd ((x ^ y) ^ (x | y) -> x & y,
12684 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
12685 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
12686 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
12688 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
12691 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
12692 cost of embedded comparison.
12694 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12697 * config/rs6000/predicates.md (altivec_register_operand): Permit
12698 virtual stack registers.
12699 (vsx_register_operand): Likewise.
12700 (vfloat_operand): Likewise.
12701 (vint_operand): Likewise.
12702 (vlogical_operand): Likewise.
12704 2015-06-22 Richard Biener <rguenther@suse.de>
12706 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
12707 and single_scalar_iteration_cost members.
12708 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
12709 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
12710 (vect_get_single_scalar_iteration_cost): Remove.
12711 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
12712 Use LOOP_VINFO_SCALAR_ITERATION_COST.
12713 * tree-vect-loop.c (destroy_loop_vec_info): Free
12715 (vect_get_single_scalar_iteration_cost): Compute result into
12716 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
12717 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
12718 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
12719 (vect_estimate_min_profitable_iters): Use them.
12721 2015-06-22 Christian Bruel <christian.bruel@st.com>
12724 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
12725 (TARGET_INSERT_ATTRIBUTES): Define.
12726 (thumb_flipper): New var.
12727 * config/arm/arm.opt (-mflip-thumb): New switch.
12729 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12730 Martin Liska <mliska@suse.cz>
12733 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
12734 construction of arg_types.
12735 (sem_function::sem_function): Likewise.
12736 (sem_function::~sem_function): Remove destruction of arg_types.
12737 (sem_function::compatible_parm_types_p): New function.
12738 (sem_function::equals_wpa): Reorg matching of return values
12739 and parameter types.
12740 (sem_function::equals_private): Reorg mathcing of argument types.
12741 (sem_function::parse_tree_args): Remove.
12742 * ipa-icf.h (init_wpa): Do not call it.
12743 (parse_tree_args): Remove.
12744 (compatible_parm_types_p): Declare.
12745 (result_type): Remove.
12746 (arg_types): Remove.
12748 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12751 * ipa-polymorphic-call.c
12752 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
12753 initializing alias oracle; fix formating; set base_alias_set if it
12756 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
12758 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
12759 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
12760 (find_inc): Likewise.
12761 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
12763 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
12764 * df-scan.c (df_swap_refs): Remove.
12765 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
12766 * dominance.c (link_roots): Use std::swap instead of manually swapping.
12767 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
12768 * fold-const.c (fold_relational_const): Likewise.
12769 * genattrtab.c (simplify_test_exp): Likewise.
12770 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
12771 gimple_simplify): Likewise.
12772 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
12773 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
12774 * ipa-devirt.c (add_type_duplicate): Likewise.
12775 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
12776 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
12777 * lra.c (lra_create_copy): Likewise.
12778 * lto-streamer-out.c (DFS::DFS): Likewise.
12779 * modulo-sched.c (get_sched_window): Likewise.
12780 * omega.c (omega_pretty_print_problem): Likewise.
12781 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
12782 * reload1.c (reloads_unique_chain_p): Likewise.
12783 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
12784 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
12786 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
12788 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
12789 predicate_mem_writes): Likewise.
12790 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
12791 * tree-predcom.c (combine_chains): Likewise.
12792 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
12793 refs_may_alias_p_1): Likewise.
12794 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
12795 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12796 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
12797 number_of_iterations_cond): Likewise.
12798 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
12799 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
12800 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
12801 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
12802 * tree-vrp.c (extract_range_from_binary_expr_1,
12803 extract_range_from_unary_expr_1): Likewise.
12805 2015-06-20 Marek Polacek <polacek@redhat.com>
12807 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
12809 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
12812 * config/sh/sh.c (prepare_move_operands): Replace subreg
12813 index term with R0 for base and index addressing.
12815 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
12817 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
12819 (movsf_aarch64): Change condition from register_operand to
12820 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
12821 load1. Change type for alternative 7 to store1.
12822 (movdf_aarch64): Likewise.
12824 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
12826 * config/vax/vax.md: Adjust sign/zero extend patterns to
12827 handle SUBREGs in operands[1].
12829 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12831 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
12832 of manually swapping.
12833 (expand_vec_perm_interleave2): Likewise.
12835 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
12837 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
12838 reuse bounds created for abnormal ssa names.
12840 2015-06-19 Jakub Jelinek <jakub@redhat.com>
12842 * config/nvptx/nvptx.md (allocate_stack): Rename to...
12843 (allocate_stack_<mode>): ... this, and add :P on both
12844 match_operand and unspec.
12845 (allocate_stack): New expander.
12847 2015-06-19 Christian Bruel <christian.bruel@st.com>
12851 * config/arm/arm.c (arm_set_current_function): Handle
12852 explicit default options.
12854 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12856 * config/i386/i386.md (*movsicc_noc_zext): New insn.
12857 (zero-extended cmove with mem peephole2): New pattern.
12858 (cmove with mem peephole2): Merge patterns.
12860 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
12862 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
12864 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
12866 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
12867 * config/mips/mips.md (*madd4<mode>): Ditto.
12868 (*nmadd3<mode>) Ditto.
12869 (*nmadd4<mode>_fastmath): Ditto.
12870 (*nmadd3<mode>_fastmath): Ditto.
12871 (*nmsub4<mode>): Ditto.
12872 (*nmsub3<mode>): Ditto.
12873 (*nmsub4<mode>_fastmath): Ditto.
12874 (*nmsub3<mode>_fastmath): Ditto.
12876 2015-06-18 Michael Matz <matz@suse.de>
12878 PR middle-end/66253
12879 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
12880 grouped strided stores.
12881 (vectorizable_load): Don't use the DR from first_stmt in
12882 the non-SLP grouped strided case.
12884 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12887 * function.c (assign_bounds): Add arguments assign_regs,
12888 assign_special, assign_bt.
12889 (assign_parms): For vararg functions handle bounds in BT
12890 and special slots after incoming vararg bounds.
12892 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12894 PR middle-end/66568
12895 * cfgexpand.c (expand_return): Handle missing bounds.
12896 (expand_gimple_stmt_1): Likewise.
12897 * tree-chkp.c (chkp_expand_zero_bounds): New.
12898 * tree-chkp.h (chkp_expand_zero_bounds): New.
12900 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12902 PR middle-end/66567
12903 * ipa-chkp.c (chkp_maybe_create_clone): Require
12904 functions to be instrumentable.
12905 * tree-chkp.c (chkp_replace_function_pointer): Use
12906 chkp_instrumentable_p instead of attribute check.
12908 2015-06-18 Richard Biener <rguenther@suse.de>
12910 PR tree-optimization/66510
12911 * tree-vect-stmts.c (vectorizable_load): Properly compute the
12912 number of vector loads for SLP permuted loads.
12913 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
12914 check the stride for loop vectorization.
12915 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
12916 vectorization factor.
12917 (vect_analyze_group_access): If the group size is not a power
12918 of two require a epilogue loop.
12919 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
12920 compute and optimizing and alias test pruning after final
12921 vectorization factor computation.
12922 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
12924 (vect_transform_slp_perm_load): Properly compute the original
12925 number of vector load stmts.
12927 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12929 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
12930 "unlikely character , in @var" warning.
12932 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
12934 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
12935 (ix86_function_arg_advance): Ditto.
12936 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
12938 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12940 * function.h (struct rtl_data): Remove struct and accessor macros.
12941 * emit-rtl.h (struct rtl_data): Relocate to here.
12942 * Makefile.in (GTFILES): Add emit-rtl.h.
12943 * df-core.c: Include emit-rtl.h.
12944 * genattrtab.c: Likewise.
12945 * genconditions.c: Likewise.
12946 * genpreds.c: Likewise.
12947 * genrecog.c: Likewise.
12948 * regcprop.c: Likewise.
12949 * resource.c: Likewise.
12950 * sched-rgn.c: Likewise.
12951 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12952 * config/i386/winnt.c: Likewise.
12954 2015-06-17 Jakub Jelinek <jakub@redhat.com>
12956 PR middle-end/66429
12957 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
12958 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
12959 and has_force_vectorize_loops flags from cfun into
12961 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
12962 if simduid is non-NULL.
12963 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
12964 * passes.def (pass_simduid_cleanup): Add new pass after loop
12966 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
12967 indirection from htab argument's type.
12968 (shrink_simd_arrays): New function.
12969 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
12970 Don't call adjust_simduid_builtins if there are no loops.
12971 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
12972 (pass_simduid_cleanup::execute): New method.
12973 (make_pass_simduid_cleanup): New function.
12975 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
12977 * tree-core.h (tree_target_option): Make opts field a pointer to a
12978 cl_target_option instead of an instance of the struct.
12979 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
12981 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
12982 TARGET_OPTION_NODE.
12983 (copy_node_stat): Allocate and copy struct cl_target_option.
12985 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12987 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
12988 Remove conditional exposure of prototypes.
12989 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
12990 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
12991 definitions in tree.h with functions.
12992 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
12994 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
12996 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
12998 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
12999 (*cmp<mode>_signed): ... this.
13000 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
13001 (*cmp<mode>_unsigned): ... this. Remove %b.
13003 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
13005 * coretypes.h: Include input.h and as-a.h.
13006 * rtl.h: Include input.h and as-a.h for generator files.
13007 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
13008 * vec.c: Don't include diagnostic-core.h.
13009 * alias.c: Do not include input.h, line-map.h or is-a.h.
13010 * asan.c: Likewise.
13011 * attribs.c: Likewise.
13012 * auto-inc-dec.c: Likewise.
13013 * auto-profile.c: Likewise.
13014 * bb-reorder.c: Likewise.
13015 * bt-load.c: Likewise.
13016 * builtins.c: Likewise.
13017 * caller-save.c: Likewise.
13018 * calls.c: Likewise.
13019 * ccmp.c: Likewise.
13021 * cfganal.c: Likewise.
13022 * cfgbuild.c: Likewise.
13023 * cfgcleanup.c: Likewise.
13024 * cfgexpand.c: Likewise.
13025 * cfghooks.c: Likewise.
13026 * cfgloop.c: Likewise.
13027 * cfgloop.h: Likewise.
13028 * cfgloopanal.c: Likewise.
13029 * cfgloopmanip.c: Likewise.
13030 * cfgrtl.c: Likewise.
13031 * cgraph.c: Likewise.
13032 * cgraphbuild.c: Likewise.
13033 * cgraphclones.c: Likewise.
13034 * cgraphunit.c: Likewise.
13035 * cilk-common.c: Likewise.
13036 * combine-stack-adj.c: Likewise.
13037 * combine.c: Likewise.
13038 * compare-elim.c: Likewise.
13039 * convert.c: Likewise.
13040 * coverage.c: Likewise.
13041 * cppbuiltin.c: Likewise.
13042 * cprop.c: Likewise.
13044 * cselib.c: Likewise.
13045 * data-streamer-in.c: Likewise.
13046 * data-streamer-out.c: Likewise.
13047 * data-streamer.c: Likewise.
13048 * dbxout.c: Likewise.
13051 * debug.c: Likewise.
13052 * df-core.c: Likewise.
13053 * df-problems.c: Likewise.
13054 * df-scan.c: Likewise.
13057 * diagnostic-core.h: Likewise.
13058 * diagnostic.c: Likewise.
13059 * dojump.c: Likewise.
13060 * dominance.c: Likewise.
13061 * domwalk.c: Likewise.
13062 * double-int.c: Likewise.
13064 * dumpfile.c: Likewise.
13065 * dumpfile.h: Likewise.
13066 * dwarf2asm.c: Likewise.
13067 * dwarf2cfi.c: Likewise.
13068 * dwarf2out.c: Likewise.
13069 * emit-rtl.c: Likewise.
13070 * et-forest.c: Likewise.
13071 * except.c: Likewise.
13072 * explow.c: Likewise.
13073 * expmed.c: Likewise.
13074 * expr.c: Likewise.
13075 * final.c: Likewise.
13076 * fixed-value.c: Likewise.
13077 * fold-const.c: Likewise.
13078 * function.c: Likewise.
13079 * fwprop.c: Likewise.
13080 * gcc-plugin.h: Likewise.
13081 * gcse.c: Likewise.
13082 * generic-match-head.c: Likewise.
13083 * ggc-page.c: Likewise.
13084 * gimple-builder.c: Likewise.
13085 * gimple-expr.c: Likewise.
13086 * gimple-fold.c: Likewise.
13087 * gimple-iterator.c: Likewise.
13088 * gimple-low.c: Likewise.
13089 * gimple-match-head.c: Likewise.
13090 * gimple-pretty-print.c: Likewise.
13091 * gimple-ssa-isolate-paths.c: Likewise.
13092 * gimple-ssa-strength-reduction.c: Likewise.
13093 * gimple-streamer-in.c: Likewise.
13094 * gimple-streamer-out.c: Likewise.
13095 * gimple-streamer.h: Likewise.
13096 * gimple-walk.c: Likewise.
13097 * gimple.c: Likewise.
13098 * gimplify-me.c: Likewise.
13099 * gimplify.c: Likewise.
13100 * godump.c: Likewise.
13101 * graph.c: Likewise.
13102 * graphite-blocking.c: Likewise.
13103 * graphite-dependences.c: Likewise.
13104 * graphite-interchange.c: Likewise.
13105 * graphite-isl-ast-to-gimple.c: Likewise.
13106 * graphite-optimize-isl.c: Likewise.
13107 * graphite-poly.c: Likewise.
13108 * graphite-scop-detection.c: Likewise.
13109 * graphite-sese-to-poly.c: Likewise.
13110 * graphite.c: Likewise.
13111 * haifa-sched.c: Likewise.
13112 * hw-doloop.c: Likewise.
13113 * ifcvt.c: Likewise.
13114 * init-regs.c: Likewise.
13115 * input.c: Likewise.
13116 * internal-fn.c: Likewise.
13117 * ipa-chkp.c: Likewise.
13118 * ipa-comdats.c: Likewise.
13119 * ipa-cp.c: Likewise.
13120 * ipa-devirt.c: Likewise.
13121 * ipa-icf-gimple.c: Likewise.
13122 * ipa-icf.c: Likewise.
13123 * ipa-inline-analysis.c: Likewise.
13124 * ipa-inline-transform.c: Likewise.
13125 * ipa-inline.c: Likewise.
13126 * ipa-polymorphic-call.c: Likewise.
13127 * ipa-profile.c: Likewise.
13128 * ipa-prop.c: Likewise.
13129 * ipa-pure-const.c: Likewise.
13130 * ipa-ref.c: Likewise.
13131 * ipa-reference.c: Likewise.
13132 * ipa-split.c: Likewise.
13133 * ipa-utils.c: Likewise.
13134 * ipa-visibility.c: Likewise.
13136 * ira-build.c: Likewise.
13137 * ira-color.c: Likewise.
13138 * ira-conflicts.c: Likewise.
13139 * ira-costs.c: Likewise.
13140 * ira-emit.c: Likewise.
13141 * ira-lives.c: Likewise.
13143 * jump.c: Likewise.
13144 * langhooks.c: Likewise.
13146 * loop-doloop.c: Likewise.
13147 * loop-init.c: Likewise.
13148 * loop-invariant.c: Likewise.
13149 * loop-iv.c: Likewise.
13150 * loop-unroll.c: Likewise.
13151 * lower-subreg.c: Likewise.
13152 * lra-assigns.c: Likewise.
13153 * lra-coalesce.c: Likewise.
13154 * lra-constraints.c: Likewise.
13155 * lra-eliminations.c: Likewise.
13156 * lra-lives.c: Likewise.
13157 * lra-remat.c: Likewise.
13158 * lra-spills.c: Likewise.
13160 * lto-cgraph.c: Likewise.
13161 * lto-compress.c: Likewise.
13162 * lto-opts.c: Likewise.
13163 * lto-section-in.c: Likewise.
13164 * lto-section-out.c: Likewise.
13165 * lto-streamer-in.c: Likewise.
13166 * lto-streamer-out.c: Likewise.
13167 * lto-streamer.c: Likewise.
13169 * mode-switching.c: Likewise.
13170 * modulo-sched.c: Likewise.
13171 * omega.c: Likewise.
13172 * omp-low.c: Likewise.
13173 * optabs.c: Likewise.
13174 * opts-global.c: Likewise.
13175 * opts.h: Likewise.
13176 * passes.c: Likewise.
13177 * plugin.c: Likewise.
13178 * postreload-gcse.c: Likewise.
13179 * postreload.c: Likewise.
13180 * predict.c: Likewise.
13181 * pretty-print.h: Likewise.
13182 * print-rtl.c: Likewise.
13183 * print-tree.c: Likewise.
13184 * profile.c: Likewise.
13185 * real.c: Likewise.
13186 * realmpfr.c: Likewise.
13187 * recog.c: Likewise.
13189 * reg-stack.c: Likewise.
13190 * regcprop.c: Likewise.
13191 * reginfo.c: Likewise.
13192 * regrename.c: Likewise.
13193 * regstat.c: Likewise.
13194 * reload.c: Likewise.
13195 * reload1.c: Likewise.
13196 * reorg.c: Likewise.
13197 * resource.c: Likewise.
13198 * rtl-chkp.c: Likewise.
13199 * rtl-error.c: Likewise.
13200 * rtlanal.c: Likewise.
13201 * rtlhooks.c: Likewise.
13202 * sanopt.c: Likewise.
13203 * sched-deps.c: Likewise.
13204 * sched-ebb.c: Likewise.
13205 * sched-rgn.c: Likewise.
13206 * sched-vis.c: Likewise.
13207 * sdbout.c: Likewise.
13208 * sel-sched-dump.c: Likewise.
13209 * sel-sched-ir.c: Likewise.
13210 * sel-sched.c: Likewise.
13211 * sese.c: Likewise.
13212 * shrink-wrap.c: Likewise.
13213 * simplify-rtx.c: Likewise.
13214 * stack-ptr-mod.c: Likewise.
13215 * statistics.c: Likewise.
13216 * stmt.c: Likewise.
13217 * stor-layout.c: Likewise.
13218 * store-motion.c: Likewise.
13219 * streamer-hooks.c: Likewise.
13220 * stringpool.c: Likewise.
13221 * symtab.c: Likewise.
13222 * target-globals.c: Likewise.
13223 * targhooks.c: Likewise.
13224 * toplev.c: Likewise.
13225 * tracer.c: Likewise.
13226 * trans-mem.c: Likewise.
13227 * tree-affine.c: Likewise.
13228 * tree-browser.c: Likewise.
13229 * tree-call-cdce.c: Likewise.
13230 * tree-cfg.c: Likewise.
13231 * tree-cfgcleanup.c: Likewise.
13232 * tree-chkp-opt.c: Likewise.
13233 * tree-chkp.c: Likewise.
13234 * tree-chrec.c: Likewise.
13235 * tree-complex.c: Likewise.
13236 * tree-data-ref.c: Likewise.
13237 * tree-dfa.c: Likewise.
13238 * tree-diagnostic.c: Likewise.
13239 * tree-dump.c: Likewise.
13240 * tree-eh.c: Likewise.
13241 * tree-emutls.c: Likewise.
13242 * tree-if-conv.c: Likewise.
13243 * tree-inline.c: Likewise.
13244 * tree-into-ssa.c: Likewise.
13245 * tree-iterator.c: Likewise.
13246 * tree-loop-distribution.c: Likewise.
13247 * tree-nested.c: Likewise.
13248 * tree-nrv.c: Likewise.
13249 * tree-object-size.c: Likewise.
13250 * tree-outof-ssa.c: Likewise.
13251 * tree-parloops.c: Likewise.
13252 * tree-phinodes.c: Likewise.
13253 * tree-predcom.c: Likewise.
13254 * tree-pretty-print.c: Likewise.
13255 * tree-profile.c: Likewise.
13256 * tree-scalar-evolution.c: Likewise.
13257 * tree-sra.c: Likewise.
13258 * tree-ssa-address.c: Likewise.
13259 * tree-ssa-alias.c: Likewise.
13260 * tree-ssa-ccp.c: Likewise.
13261 * tree-ssa-coalesce.c: Likewise.
13262 * tree-ssa-copy.c: Likewise.
13263 * tree-ssa-copyrename.c: Likewise.
13264 * tree-ssa-dce.c: Likewise.
13265 * tree-ssa-dom.c: Likewise.
13266 * tree-ssa-dse.c: Likewise.
13267 * tree-ssa-forwprop.c: Likewise.
13268 * tree-ssa-ifcombine.c: Likewise.
13269 * tree-ssa-live.c: Likewise.
13270 * tree-ssa-loop-ch.c: Likewise.
13271 * tree-ssa-loop-im.c: Likewise.
13272 * tree-ssa-loop-ivcanon.c: Likewise.
13273 * tree-ssa-loop-ivopts.c: Likewise.
13274 * tree-ssa-loop-manip.c: Likewise.
13275 * tree-ssa-loop-niter.c: Likewise.
13276 * tree-ssa-loop-prefetch.c: Likewise.
13277 * tree-ssa-loop-unswitch.c: Likewise.
13278 * tree-ssa-loop.c: Likewise.
13279 * tree-ssa-math-opts.c: Likewise.
13280 * tree-ssa-operands.c: Likewise.
13281 * tree-ssa-phiopt.c: Likewise.
13282 * tree-ssa-phiprop.c: Likewise.
13283 * tree-ssa-pre.c: Likewise.
13284 * tree-ssa-propagate.c: Likewise.
13285 * tree-ssa-reassoc.c: Likewise.
13286 * tree-ssa-sccvn.c: Likewise.
13287 * tree-ssa-scopedtables.c: Likewise.
13288 * tree-ssa-sink.c: Likewise.
13289 * tree-ssa-strlen.c: Likewise.
13290 * tree-ssa-structalias.c: Likewise.
13291 * tree-ssa-tail-merge.c: Likewise.
13292 * tree-ssa-ter.c: Likewise.
13293 * tree-ssa-threadedge.c: Likewise.
13294 * tree-ssa-threadupdate.c: Likewise.
13295 * tree-ssa-uncprop.c: Likewise.
13296 * tree-ssa-uninit.c: Likewise.
13297 * tree-ssa.c: Likewise.
13298 * tree-ssanames.c: Likewise.
13299 * tree-stdarg.c: Likewise.
13300 * tree-streamer-in.c: Likewise.
13301 * tree-streamer-out.c: Likewise.
13302 * tree-streamer.c: Likewise.
13303 * tree-switch-conversion.c: Likewise.
13304 * tree-tailcall.c: Likewise.
13305 * tree-vect-data-refs.c: Likewise.
13306 * tree-vect-generic.c: Likewise.
13307 * tree-vect-loop-manip.c: Likewise.
13308 * tree-vect-loop.c: Likewise.
13309 * tree-vect-patterns.c: Likewise.
13310 * tree-vect-slp.c: Likewise.
13311 * tree-vect-stmts.c: Likewise.
13312 * tree-vectorizer.c: Likewise.
13313 * tree-vrp.c: Likewise.
13314 * tree.c: Likewise.
13315 * tsan.c: Likewise.
13316 * ubsan.c: Likewise.
13317 * valtrack.c: Likewise.
13318 * value-prof.c: Likewise.
13319 * var-tracking.c: Likewise.
13320 * varasm.c: Likewise.
13321 * varpool.c: Likewise.
13322 * vmsdbgout.c: Likewise.
13323 * vtable-verify.c: Likewise.
13325 * wide-int.cc: Likewise.
13326 * xcoffout.c: Likewise.
13327 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
13328 * common/common-targhooks.c: Likewise.
13329 * config/aarch64/aarch64-builtins.c: Likewise.
13330 * config/aarch64/aarch64.c: Likewise.
13331 * config/alpha/alpha.c: Likewise.
13332 * config/arc/arc.c: Likewise.
13333 * config/arm/aarch-common.c: Likewise.
13334 * config/arm/arm-builtins.c: Likewise.
13335 * config/arm/arm-c.c: Likewise.
13336 * config/arm/arm.c: Likewise.
13337 * config/avr/avr-c.c: Likewise.
13338 * config/avr/avr-log.c: Likewise.
13339 * config/avr/avr.c: Likewise.
13340 * config/bfin/bfin.c: Likewise.
13341 * config/c6x/c6x.c: Likewise.
13342 * config/cr16/cr16.c: Likewise.
13343 * config/cris/cris.c: Likewise.
13344 * config/darwin-c.c: Likewise.
13345 * config/darwin.c: Likewise.
13346 * config/default-c.c: Likewise.
13347 * config/epiphany/epiphany.c: Likewise.
13348 * config/epiphany/mode-switch-use.c: Likewise.
13349 * config/epiphany/resolve-sw-modes.c: Likewise.
13350 * config/fr30/fr30.c: Likewise.
13351 * config/frv/frv.c: Likewise.
13352 * config/ft32/ft32.c: Likewise.
13353 * config/glibc-c.c: Likewise.
13354 * config/h8300/h8300.c: Likewise.
13355 * config/i386/i386-c.c: Likewise.
13356 * config/i386/i386.c: Likewise.
13357 * config/i386/msformat-c.c: Likewise.
13358 * config/i386/winnt-cxx.c: Likewise.
13359 * config/i386/winnt-stubs.c: Likewise.
13360 * config/i386/winnt.c: Likewise.
13361 * config/ia64/ia64-c.c: Likewise.
13362 * config/ia64/ia64.c: Likewise.
13363 * config/iq2000/iq2000.c: Likewise.
13364 * config/lm32/lm32.c: Likewise.
13365 * config/m32c/m32c-pragma.c: Likewise.
13366 * config/m32c/m32c.c: Likewise.
13367 * config/m32r/m32r.c: Likewise.
13368 * config/m68k/m68k.c: Likewise.
13369 * config/mcore/mcore.c: Likewise.
13370 * config/mep/mep-pragma.c: Likewise.
13371 * config/mep/mep.c: Likewise.
13372 * config/microblaze/microblaze-c.c: Likewise.
13373 * config/microblaze/microblaze.c: Likewise.
13374 * config/mips/mips.c: Likewise.
13375 * config/mmix/mmix.c: Likewise.
13376 * config/mn10300/mn10300.c: Likewise.
13377 * config/moxie/moxie.c: Likewise.
13378 * config/msp430/msp430-c.c: Likewise.
13379 * config/msp430/msp430.c: Likewise.
13380 * config/nds32/nds32-cost.c: Likewise.
13381 * config/nds32/nds32-fp-as-gp.c: Likewise.
13382 * config/nds32/nds32-intrinsic.c: Likewise.
13383 * config/nds32/nds32-isr.c: Likewise.
13384 * config/nds32/nds32-md-auxiliary.c: Likewise.
13385 * config/nds32/nds32-memory-manipulation.c: Likewise.
13386 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13387 * config/nds32/nds32-predicates.c: Likewise.
13388 * config/nds32/nds32.c: Likewise.
13389 * config/nios2/nios2.c: Likewise.
13390 * config/nvptx/nvptx.c: Likewise.
13391 * config/pa/pa.c: Likewise.
13392 * config/pdp11/pdp11.c: Likewise.
13393 * config/rl78/rl78-c.c: Likewise.
13394 * config/rl78/rl78.c: Likewise.
13395 * config/rs6000/rs6000-c.c: Likewise.
13396 * config/rs6000/rs6000.c: Likewise.
13397 * config/rx/rx.c: Likewise.
13398 * config/s390/s390-c.c: Likewise.
13399 * config/s390/s390.c: Likewise.
13400 * config/sh/sh-c.c: Likewise.
13401 * config/sh/sh-mem.cc: Likewise.
13402 * config/sh/sh.c: Likewise.
13403 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13404 * config/sh/sh_treg_combine.cc: Likewise.
13405 * config/sol2-c.c: Likewise.
13406 * config/sol2-cxx.c: Likewise.
13407 * config/sol2-stubs.c: Likewise.
13408 * config/sol2.c: Likewise.
13409 * config/sparc/sparc-c.c: Likewise.
13410 * config/sparc/sparc.c: Likewise.
13411 * config/spu/spu-c.c: Likewise.
13412 * config/spu/spu.c: Likewise.
13413 * config/stormy16/stormy16.c: Likewise.
13414 * config/tilegx/mul-tables.c: Likewise.
13415 * config/tilegx/tilegx-c.c: Likewise.
13416 * config/tilegx/tilegx.c: Likewise.
13417 * config/tilepro/mul-tables.c: Likewise.
13418 * config/tilepro/tilepro-c.c: Likewise.
13419 * config/tilepro/tilepro.c: Likewise.
13420 * config/v850/v850-c.c: Likewise.
13421 * config/v850/v850.c: Likewise.
13422 * config/vax/vax.c: Likewise.
13423 * config/visium/visium.c: Likewise.
13424 * config/vms/vms-c.c: Likewise.
13425 * config/vms/vms.c: Likewise.
13426 * config/vxworks.c: Likewise.
13427 * config/winnt-c.c: Likewise.
13428 * config/xtensa/xtensa.c: Likewise.
13430 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
13432 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
13434 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
13436 2015-06-17 Richard Biener <rguenther@suse.de>
13438 PR tree-optimization/66251
13439 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
13440 stmts for SLP strided stores.
13443 2015-05-22 Richard Biener <rguenther@suse.de>
13445 PR tree-optimization/66251
13446 * tree-vect-stmts.c (vectorizable_conversion): Properly
13447 set STMT_VINFO_VEC_STMT even for the SLP case.
13449 2015-05-26 Michael Matz <matz@suse.de>
13451 PR middle-end/66251
13452 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
13453 STMT_VINFO_VEC_STMT, also with SLP.
13455 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
13458 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
13459 (*avx_addsubv4df3_1s): Ditto.
13460 (*sse3_addsubv2df3_1): Ditto.
13461 (*sse3_addsubv2df3_1s): Ditto.
13462 (*avx_addsubv8sf3_1): Ditto.
13463 (*avx_addsubv8sf3_1s): Ditto.
13464 (*sse3_addsubv4sf3_1): Ditto.
13465 (*sse3_addsubv4sf3_1s): Ditto.
13467 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
13469 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
13470 (SYSROOT_SUFFIX_SPEC): Update.
13471 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
13472 (STARTFILE_PREFIX_SPEC): Update.
13473 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
13474 (MULTILIB_REQUIRED): New.
13475 (MULTILIB_OSDIRNAMES): New.
13476 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
13477 (MULTILIB_REQUIRED): New.
13478 (MULTILIB_OSDIRNAMES): New.
13480 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
13482 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
13483 * config/aarch64/aarch64-options-extensions.def: Update "fP",
13484 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
13485 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
13486 (AARCH64_FL_PAN): New.
13487 (AARCH64_FL_LOR): New.
13488 (AARCH64_FL_RDMA): New.
13489 (AARCH64_FL_FOR_ARCH8_1): New.
13490 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
13491 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
13493 2015-06-16 Martin Liska <mliska@suse.cz>
13495 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
13496 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
13499 2015-06-16 Richard Biener <rguenther@suse.de>
13501 * tree-vect-stmts.c (vectorizable_store): Adjust.
13502 (vectorizable_load): Likewise.
13503 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13505 (vect_create_data_ref_ptr): Likewise.
13506 (bump_vector_ptr): Adjust.
13508 2015-06-16 Richard Biener <rguenther@suse.de>
13510 * tree-vect-stmts.c (vectorizable_load): Properly start loads
13511 with the first element if this is grouped loads.
13513 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
13515 * config/arm/arm-protos.h (struct tune_params): Rename
13516 log_op_non_sc to log_op_non_short_circuit, and rename enum
13517 values to expand SC to SHORT_CIRCUIT.
13518 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
13519 to LOG_OP_NON_SHORT_CIRCUIT.
13520 (arm_fastmul_tune):Likewise
13521 (arm_strongarm_tune): Likewise.
13522 (arm_xscale_tune): Likewise.
13523 (arm_9e_tune): Likewise.
13524 (arm_marvell_pj4_tune): Likewise.
13525 (arm_v6t2_tune): Likewise.
13526 (arm_cortex_tune): Likewise.
13527 (arm_cortex_a8_tune): Likewise.
13528 (arm_cortex_a7_tune): Likewise.
13529 (arm_cortex_a15_tune): Likewise.
13530 (arm_cortex_a53_tune): Likewise.
13531 (arm_cortex_a57_tune): Likewise.
13532 (arm_xgene1_tune): Likewise.
13533 (arm_cortex_a5_tune): Likewise.
13534 (arm_cortex_a9_tune): Likewise.
13535 (arm_cortex_a12_tune): Likewise.
13536 (arm_v7m_tune): Likewise.
13537 (arm_cortex_m7_tune): Likewise.
13538 (arm_v6m_tune): Likewise.
13539 (arm_fa726te_tune): Likewise.
13541 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
13543 * altivec.md: Delete UNSPEC_VMLADDUHM.
13544 (mulv4si3_p8): New pattern.
13545 (mulv4si3): Use it for POWER8.
13546 (mulv8hi3): Use vmladduhm with zero addend.
13547 (altivec_vmladduhm): Descriptive RTL.
13549 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
13551 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
13552 to use neon_move instead of mov_imm.
13553 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
13554 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
13556 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
13557 aarch64_float_const_zero_rtx_p check before TFmode check.
13558 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
13560 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
13561 code and attributes to match. Change condition from register_operand
13562 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
13563 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
13566 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
13569 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
13570 there is no parent.
13572 2015-06-14 Shiva Chen <shiva0217@gmail.com>
13574 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
13575 HOST_WIDE_INT parameter.
13577 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
13580 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
13581 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
13583 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
13585 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
13587 * rtl.h (classify_insn): Declare.
13588 * emit-rtl.c (classify_insn): Move to...
13589 * rtl.c: ...here and add generator support.
13590 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
13591 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
13592 * genemit.c (gen_emit_seq): New function.
13593 (gen_expand, gen_split): Use it.
13595 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
13597 * tree.c (make_vector_stat): Fix comment to state that the
13598 function returns a VECTOR_CST.
13600 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
13602 * gensupport.h (add_implicit_parallel): Declare.
13603 * genrecog.c (add_implicit_parallel): Move to...
13604 * gensupport.c (add_implicit_parallel): ...here.
13605 (process_one_cond_exec): Use it.
13606 * genemit.c (gen_insn): Likewise.
13608 2015-06-13 Iain Sandoe <iain@codesourcery.com>
13611 * passes.c (rest_of_decl_compilation): Do not register globals for
13612 early debug if they are declared in built-ins.
13614 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
13616 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
13618 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13620 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
13622 (noce_try_cmove_arith): Likewise.
13623 (noce_get_alt_condition): Likewise.
13625 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13627 * common/config/i386/i386-common.c
13628 (OPTION_MASK_ISA_MWAITX_SET): New.
13629 (ix86_handle_option): Handle mwaitx.
13630 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
13631 (x86_64-*-*): Likewise.
13632 * config/i386/mwaitxintrin.h: New header.
13633 * config/i386/cpuid.h (bit_MWAITX): Define.
13634 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13636 * config/i386/i386.opt (mwaitx): New.
13637 * config/i386/i386-builtin-types.def
13638 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
13639 * config/i386/i386-c.c: Define __MWAITX__ if needed.
13640 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
13642 (ix86_option_override_internal): Handle new option.
13643 (processor_alias_table): Added PTA_MWAITX.
13644 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
13645 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
13646 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
13647 IX86_BUILTIN_MONITORX built-ins.
13648 * config/i386/i386.h (TARGET_MWAITX): New.
13649 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
13651 (mwaitx): New pattern.
13652 (monitorx_<mode>): New pattern.
13653 * config/i386/x86intrin.h: Include mwaitxintrin.h.
13654 * doc/extend.texi: Document monitorx and mwaitx builtins.
13655 * doc/invoke.texi: Document -mmwaitx option.
13657 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
13659 * emit-rtl.c (need_atomic_barrier_p): Mask model with
13660 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
13662 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13664 * dbxout.c (xcoff_debug_hooks): Provide a function for
13665 register_main_translation_unit hook.
13667 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13669 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
13670 variants cases from switch.
13671 (rs6000_post_atomic_barrier): Same.
13672 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
13673 (rs6000_expand_atomic_exchange): Same.
13674 (rs6000_expand_atomic_op): Same.
13675 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
13676 SYNC variants cases from switch.
13677 (atomic_load): Same.
13678 (atomic_store): Same.
13680 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
13682 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
13683 CONST_INT for goto.
13685 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
13688 * dwarf2out.c (check_die): Check for common duplicate attributes.
13689 (add_location_or_const_value_attribute): Do not add duplicate
13691 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
13693 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
13694 (gen_type_die_with_usage): Call check_die.
13695 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
13697 2015-06-11 Jason Merrill <jason@redhat.com>
13699 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
13702 2015-06-11 Marek Polacek <polacek@redhat.com>
13704 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
13706 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
13709 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
13710 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
13711 (*addx_extend_sp32): Fix pasto.
13712 (*subx_extend): Rename into...
13713 (*subx_extend_sp32): ...this.
13714 (*adddi3_extend_sp32): Add earlyclobber.
13715 (*subdi3_insn_sp32): Likewise.
13716 (*subdi3_extend_sp32): Likewise.
13717 (*and_not_di_sp32): Likewise.
13718 (*or_not_di_sp32): Likewise.
13719 (*xor_not_di_sp32): Likewise.
13720 (*negdi2_sp32): Likewise.
13721 (*one_cmpldi2_sp32): Likewise.
13723 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
13725 * debug.h (struct gcc_debug_hooks): Add a
13726 register_main_translation_unit hook.
13727 * debug.c (do_nothing_debug_hooks): Provide a function for this
13729 * dbxout.c (dbx_debug_hooks): Likewise.
13730 * sdbout.c (sdb_debug_hooks): Likewise.
13731 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13732 * dwarf2out.c (main_translation_unit): New global variable.
13733 (dwarf2out_register_main_translation_unit): New function
13734 implementing the new hook.
13735 (dwarf2_debug_hooks): Assign
13736 dwarf2out_register_main_translation_unit to this new hook.
13737 (dwarf2out_init): Associate any main translation unit to
13740 2015-06-11 Marek Polacek <polacek@redhat.com>
13742 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
13744 2015-06-11 Marek Polacek <polacek@redhat.com>
13746 * match.pd: Use single_use throughout.
13748 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13750 * config/arm/arm.c (arm_option_params_internal): When optimising
13751 for speed set max_insns_skipped when arm_restrict_it.
13753 2015-06-11 Christian Bruel <christian.bruel@st.com>
13756 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
13758 (arm_cpu_builtins): New function.
13759 (arm_pragma_target_parse): Call arm_cpu_builtins.
13760 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
13761 (arm_register_target_pragmas): Likewise.
13762 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
13763 Call arm_register_target_pragmas.
13764 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
13765 (arm_pragma_target_parse): Likewise.
13767 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
13769 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
13770 of the second operand.
13772 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
13775 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
13776 to prepare mask operand for AVX512 modes.
13778 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
13781 * doc/md.texi (Machine Constraints): Document that on the PowerPC
13782 if you use a constraint that targets a VSX register, you must use
13783 %x<n> in the template.
13785 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
13787 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
13788 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
13789 (define_insn "trap"): New definition.
13791 2015-06-10 Richard Biener <rguenther@suse.de>
13793 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
13795 (vect_supported_load_permutation_p): ... here. Handle
13796 supportable permutations in reductions.
13797 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
13798 for vectorizing strided group loads.
13800 2015-06-10 Jakub Jelinek <jakub@redhat.com>
13803 * config/i386/i386.c (ix86_split_long_move): For collisions
13804 involving direct tls segment refs, move the UNSPEC_TP possibly
13805 wrapped in ZERO_EXTEND out of the address for lea, to each of
13808 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13810 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
13811 dmb sy. Adjust tabs.
13813 2015-06-10 Tom de Vries <tom@codesourcery.com>
13815 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
13817 2015-06-10 Martin Liska <mliska@suse.cz>
13820 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
13821 all enum values in mem_alloc_origin.
13822 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
13824 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
13825 * bitmap.c (bitmap_register): Likewise.
13826 (dump_bitmap_statistics): Likewise.
13827 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
13828 (ggc_record_overhead): Likewise.
13829 * hash-map.h: Likewise.
13830 * hash-set.h: Likewise.
13831 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
13832 * hash-table.h: Likewise.
13833 * vec.c (vec_prefix::register_overhead): Likewise.
13834 (vec_prefix::release_overhead): Likewise.
13835 (dump_vec_loc_statistics): Likewise.
13837 2015-06-09 Christian Bruel <christian.bruel@st.com>
13840 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
13841 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
13842 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
13843 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
13844 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
13845 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
13846 (arm_valid_target_attribute_p): Likewise.
13847 (arm_set_current_function, arm_can_inline_p): Likewise.
13848 (arm_valid_target_attribute_rec): Likewise.
13849 (arm_previous_fndecl): New variable.
13850 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13851 (TARGET_CAN_INLINE_P): Define.
13852 (arm_asm_trampoline_template): Emit mode.
13853 (arm_file_start): Don't set unified syntax.
13854 (arm_declare_function_name): Set unified syntax and mode.
13855 (arm_option_override): Init target_option_default_node.
13856 and target_option_current_node.
13857 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
13858 (*call_symbol): Likewise.
13859 * doc/extend.texi: Document ARM/Thumb target attribute.
13860 * doc/invoke.texi: Likewise.
13862 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13865 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13866 PR rtl-optimization/64164
13867 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13868 * tree-ssa-copyrename.c: Removed.
13869 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13870 -ftree-coalesce-vars.
13871 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13872 * common.opt (ftree-copyrename): Ignore.
13873 (ftree-coalesce-inlined-vars): Likewise.
13874 * doc/invoke.texi: Remove the ignored options above.
13875 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13876 * tree-ssa-coalesce.h: ... here.
13877 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13878 headers required by it.
13879 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13880 across variables when flag_tree_coalesce_vars. Check register
13881 use and promoted modes to allow coalescing. Moved to
13882 tree-ssa-coalesce.c.
13883 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13884 with its member functions to tree-ssa-coalesce.c.
13885 (var_map_base_init): Likewise. Renamed to
13886 compute_samebase_partition_bases.
13887 (partition_view_normal): Drop want_bases parameter.
13888 (partition_view_bitmap): Likewise.
13889 * tree-ssa-live.h: Adjust declarations.
13890 * tree-ssa-coalesce.c: Include explow.h.
13891 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13892 default defs at the entry point.
13893 (dump_part_var_map): New.
13894 (compute_optimized_partition_bases): New, called by...
13895 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13896 of compute_samebase_partition_bases. Adjust.
13897 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13898 * cfgexpand.c (leader_merge): New.
13899 (get_rtl_for_parm_ssa_default_def): New.
13900 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13901 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13902 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13903 redundant MEM attr setting.
13904 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13906 (expand_one_stack_var): ... this. New wrapper to check and
13907 skip already expanded SSA partitions.
13908 (record_alignment_for_reg_var): New, factored out of...
13909 (expand_one_var): ... this.
13910 (expand_one_ssa_partition): New.
13911 (adjust_one_expanded_partition_var): New.
13912 (expand_one_register_var): Check and skip already expanded SSA
13914 (expand_used_vars): Don't create DECLs for anonymous SSA
13915 names. Expand all SSA partitions, then adjust all SSA names.
13916 (pass::execute): Replace the loops that set
13917 SA.partition_to_pseudo from partition leaders and cleared
13918 DECL_RTL for multi-location variables, and that which used to
13919 rename vars and set attrs, with one that clears DECL_RTL and
13920 checks that PARMs and RESULTs default_defs match DECL_RTL.
13921 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13922 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13923 * explow.c (promote_ssa_mode): New.
13924 * explow.h (promote_ssa_mode): Declare.
13925 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13926 * function.c: Include cfgexpand.h.
13927 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13928 (use_register_for_parm_decl): Wrapper for the above to
13929 special-case the result_ptr.
13930 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13931 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13932 multiple locations.
13933 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13934 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13935 (assign_parm_setup_block): Prefer SSA-assigned location.
13936 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13937 if stack_parm is NULL.
13938 (assign_parm_setup_stack): Prefer SSA-assigned location.
13939 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13940 rtl before testing for pointer bounds. Special-case result_ptr.
13941 (expand_function_start): Maybe reset DECL_RTL of result.
13942 Prefer SSA-assigned location for result and static chain.
13943 Factor out DECL_RESULT and SET_DECL_RTL.
13944 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13945 anonymous SSA names. Use promote_ssa_mode.
13946 (get_temp_reg): Likewise.
13947 (remove_ssa_form): Adjust.
13948 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13949 and get its reg_usage for reg invalidation.
13950 (compute_bb_dataflow): Pass it insn.
13951 (emit_notes_in_bb): Likewise.
13952 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13953 fail assert on conversion between unsigned types.
13955 2015-06-09 Tom de Vries <tom@codesourcery.com>
13957 PR tree-optimization/65460
13958 * omp-low.c (expand_omp_target): Set parallelized_function on
13959 cgraph_node for child_fn.
13961 2015-06-09 Tom de Vries <tom@codesourcery.com>
13963 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
13964 parallelized_function before add_new_function.
13966 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
13968 * gcc-plugin.h: Move decls to plugin.h and include it.
13969 * plugin.h: Relocate decls from gcc-plugin.h
13970 * ggc-page.c: Include required header files.
13971 * passes.c: Likewise.
13972 * cgraphunit.c: Likewise.
13974 2015-06-09 Tom de Vries <tom@codesourcery.com>
13976 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
13978 2015-06-09 Jason Merrill <jason@redhat.com>
13981 * toplev.c (check_global_declaration): Don't warn about a clone.
13983 2015-06-09 Marek Polacek <polacek@redhat.com>
13985 PR tree-optimization/66299
13986 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
13987 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
13990 2015-06-09 Richard Biener <rguenther@suse.de>
13992 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
13993 (vect_analyze_slp_instance): Instead do not falsely drop
13996 2015-06-09 Richard Biener <rguenther@suse.de>
13998 PR middle-end/66423
13999 * match.pd: Handle A % (unsigned)(1 << B).
14001 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
14003 * varasm.c (output_object_block_htab): Remove.
14004 (output_object_block_compare): New.
14005 (output_object_blocks): Sort named object_blocks before outputting
14008 2015-06-09 Richard Biener <rguenther@suse.de>
14010 PR tree-optimization/66419
14011 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
14012 consider GROUP_GAP when detecting a perfect subchain.
14014 2015-06-09 Nick Clifton <nickc@redhat.com>
14016 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
14017 place read only data in the .frodata section.
14019 2015-06-09 Shiva Chen <shiva0217@gmail.com>
14021 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
14022 (atomic_store<mode>): Likewise.
14024 2015-06-09 Richard Biener <rguenther@suse.de>
14026 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
14028 2015-06-09 Richard Biener <rguenther@suse.de>
14030 PR middle-end/66413
14031 * tree-inline.c (insert_init_debug_bind): Unshare value.
14033 2015-06-09 Richard Biener <rguenther@suse.de>
14035 PR tree-optimization/66396
14036 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
14037 Rename virtual operands.
14039 2015-06-09 Tom de Vries <tom@codesourcery.com>
14041 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
14042 always return false.
14044 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
14046 PR rtl-optimization/64164
14047 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14048 * tree-ssa-copyrename.c: Removed.
14049 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14050 -ftree-coalesce-vars.
14051 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14052 * common.opt (ftree-copyrename): Ignore.
14053 (ftree-coalesce-inlined-vars): Likewise.
14054 * doc/invoke.texi: Remove the ignored options above.
14055 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14056 * tree-ssa-coalesce.h: ... here.
14057 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14058 headers required by it.
14059 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14060 across variables when flag_tree_coalesce_vars. Check register
14061 use and promoted modes to allow coalescing. Moved to
14062 tree-ssa-coalesce.c.
14063 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14064 with its member functions to tree-ssa-coalesce.c.
14065 (var_map_base_init): Likewise. Renamed to
14066 compute_samebase_partition_bases.
14067 (partition_view_normal): Drop want_bases parameter.
14068 (partition_view_bitmap): Likewise.
14069 * tree-ssa-live.h: Adjust declarations.
14070 * tree-ssa-coalesce.c: Include explow.h.
14071 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14072 default defs at the entry point.
14073 (dump_part_var_map): New.
14074 (compute_optimized_partition_bases): New, called by...
14075 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14076 of compute_samebase_partition_bases. Adjust.
14077 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14078 * cfgexpand.c (leader_merge): New.
14079 (get_rtl_for_parm_ssa_default_def): New.
14080 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14081 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14082 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14083 redundant MEM attr setting.
14084 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14086 (expand_one_stack_var): ... this. New wrapper to check and
14087 skip already expanded SSA partitions.
14088 (record_alignment_for_reg_var): New, factored out of...
14089 (expand_one_var): ... this.
14090 (expand_one_ssa_partition): New.
14091 (adjust_one_expanded_partition_var): New.
14092 (expand_one_register_var): Check and skip already expanded SSA
14094 (expand_used_vars): Don't create DECLs for anonymous SSA
14095 names. Expand all SSA partitions, then adjust all SSA names.
14096 (pass::execute): Replace the loops that set
14097 SA.partition_to_pseudo from partition leaders and cleared
14098 DECL_RTL for multi-location variables, and that which used to
14099 rename vars and set attrs, with one that clears DECL_RTL and
14100 checks that PARMs and RESULTs default_defs match DECL_RTL.
14101 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14102 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14103 * explow.c (promote_ssa_mode): New.
14104 * explow.h (promote_ssa_mode): Declare.
14105 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14106 * function.c: Include cfgexpand.h.
14107 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14108 (use_register_for_parm_decl): Wrapper for the above to
14109 special-case the result_ptr.
14110 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14111 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14112 multiple locations.
14113 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14114 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14115 (assign_parm_setup_block): Prefer SSA-assigned location.
14116 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
14117 if stack_parm is NULL.
14118 (assign_parm_setup_stack): Prefer SSA-assigned location.
14119 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14120 rtl before testing for pointer bounds. Special-case result_ptr.
14121 (expand_function_start): Maybe reset DECL_RTL of result.
14122 Prefer SSA-assigned location for result and static chain.
14123 Factor out DECL_RESULT and SET_DECL_RTL.
14124 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14125 anonymous SSA names. Use promote_ssa_mode.
14126 (get_temp_reg): Likewise.
14127 (remove_ssa_form): Adjust.
14128 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14129 and get its reg_usage for reg invalidation.
14130 (compute_bb_dataflow): Pass it insn.
14131 (emit_notes_in_bb): Likewise.
14132 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
14133 fail assert on conversion between unsigned types.
14135 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
14138 * tree-inline.c (reset_debug_binding): New.
14139 (reset_debug_bindings): Likewise.
14140 (expand_call_inline): Call it.
14142 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14144 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
14147 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14149 * lto-streamer-out.c (lto_output_location): Stream
14150 reserved locations correctly.
14151 * lto-streamer-in.c (lto_output_location): Likewise.
14153 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
14155 * coretypes.h: Include hash-table.h and hash-set.h for host files.
14156 * ggc.h: Don't include statistics.h>
14157 * hash-map.h: Remove all includes.
14158 * hash-set.h: Likewise.
14159 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
14160 the include list. Remove <new>.
14161 * inchash.h: Remove all includes.
14162 * mem-stats.h: Likewise.
14163 * vec.h: No special processing for generators or ggc.
14164 * alias.c : Adjust include files.
14165 * alloc-pool.c : Likewise.
14166 * alloc-pool.h : Likewise.
14167 * asan.c : Likewise.
14168 * attribs.c : Likewise.
14169 * auto-inc-dec.c : Likewise.
14170 * auto-profile.c : Likewise.
14171 * bb-reorder.c : Likewise.
14172 * bitmap.c : Likewise.
14173 * bitmap.h : Likewise.
14174 * bt-load.c : Likewise.
14175 * builtins.c : Likewise.
14176 * caller-save.c : Likewise.
14177 * calls.c : Likewise.
14178 * ccmp.c : Likewise.
14179 * cfg.c : Likewise.
14180 * cfganal.c : Likewise.
14181 * cfgbuild.c : Likewise.
14182 * cfgcleanup.c : Likewise.
14183 * cfgexpand.c : Likewise.
14184 * cfghooks.c : Likewise.
14185 * cfgloop.c : Likewise.
14186 * cfgloop.h : Likewise.
14187 * cfgloopanal.c : Likewise.
14188 * cfgloopmanip.c : Likewise.
14189 * cfgrtl.c : Likewise.
14190 * cgraph.c : Likewise.
14191 * cgraphbuild.c : Likewise.
14192 * cgraphclones.c : Likewise.
14193 * cgraphunit.c : Likewise.
14194 * cilk-common.c : Likewise.
14195 * combine-stack-adj.c : Likewise.
14196 * combine.c : Likewise.
14197 * compare-elim.c : Likewise.
14198 * context.c : Likewise.
14199 * convert.c : Likewise.
14200 * coverage.c : Likewise.
14201 * cppbuiltin.c : Likewise.
14202 * cprop.c : Likewise.
14203 * cse.c : Likewise.
14204 * cselib.c : Likewise.
14205 * data-streamer-in.c : Likewise.
14206 * data-streamer-out.c : Likewise.
14207 * data-streamer.c : Likewise.
14208 * data-streamer.h : Likewise.
14209 * dbxout.c : Likewise.
14210 * dce.c : Likewise.
14211 * ddg.c : Likewise.
14212 * debug.c : Likewise.
14213 * df-core.c : Likewise.
14214 * df-problems.c : Likewise.
14215 * df-scan.c : Likewise.
14217 * dfp.c : Likewise.
14218 * dojump.c : Likewise.
14219 * dominance.c : Likewise.
14220 * domwalk.c : Likewise.
14221 * double-int.c : Likewise.
14222 * dse.c : Likewise.
14223 * dumpfile.c : Likewise.
14224 * dwarf2asm.c : Likewise.
14225 * dwarf2cfi.c : Likewise.
14226 * dwarf2out.c : Likewise.
14227 * emit-rtl.c : Likewise.
14228 * et-forest.c : Likewise.
14229 * except.c : Likewise.
14230 * except.h : Likewise.
14231 * explow.c : Likewise.
14232 * expmed.c : Likewise.
14233 * expr.c : Likewise.
14234 * final.c : Likewise.
14235 * fixed-value.c : Likewise.
14236 * fold-const.c : Likewise.
14237 * function.c : Likewise.
14238 * fwprop.c : Likewise.
14239 * gcc-plugin.h : Likewise.
14240 * gcc.c : Likewise.
14241 * gcse-common.c : Likewise.
14242 * gcse.c : Likewise.
14243 * genattrtab.c : Likewise.
14244 * genautomata.c : Likewise.
14245 * genconditions.c : Likewise.
14246 * genemit.c : Likewise.
14247 * generic-match-head.c : Likewise.
14248 * genextract.c : Likewise.
14249 * gengtype-state.c : Likewise.
14250 * gengtype.c : Likewise.
14251 * genhooks.c : Likewise.
14252 * genmatch.c : Likewise.
14253 * genmodes.c : Likewise.
14254 * genrecog.c : Likewise.
14255 * gensupport.c : Likewise.
14256 * ggc-common.c : Likewise.
14257 * ggc-internal.h : Likewise.
14258 * ggc-none.c : Likewise.
14259 * ggc-page.c : Likewise.
14260 * gimple-builder.c : Likewise.
14261 * gimple-expr.c : Likewise.
14262 * gimple-fold.c : Likewise.
14263 * gimple-iterator.c : Likewise.
14264 * gimple-low.c : Likewise.
14265 * gimple-match-head.c : Likewise.
14266 * gimple-pretty-print.c : Likewise.
14267 * gimple-ssa-isolate-paths.c : Likewise.
14268 * gimple-ssa-strength-reduction.c : Likewise.
14269 * gimple-ssa.h : Likewise.
14270 * gimple-streamer-in.c : Likewise.
14271 * gimple-streamer-out.c : Likewise.
14272 * gimple-streamer.h : Likewise.
14273 * gimple-walk.c : Likewise.
14274 * gimple.c : Likewise.
14275 * gimplify-me.c : Likewise.
14276 * gimplify.c : Likewise.
14277 * godump.c : Likewise.
14278 * graph.c : Likewise.
14279 * graphds.c : Likewise.
14280 * graphite-blocking.c : Likewise.
14281 * graphite-dependences.c : Likewise.
14282 * graphite-interchange.c : Likewise.
14283 * graphite-isl-ast-to-gimple.c : Likewise.
14284 * graphite-optimize-isl.c : Likewise.
14285 * graphite-poly.c : Likewise.
14286 * graphite-scop-detection.c : Likewise.
14287 * graphite-sese-to-poly.c : Likewise.
14288 * graphite.c : Likewise.
14289 * haifa-sched.c : Likewise.
14290 * hard-reg-set.h : Likewise.
14291 * hw-doloop.c : Likewise.
14292 * ifcvt.c : Likewise.
14293 * inchash.c : Likewise.
14294 * incpath.c : Likewise.
14295 * init-regs.c : Likewise.
14296 * input.c : Likewise.
14297 * internal-fn.c : Likewise.
14298 * ipa-chkp.c : Likewise.
14299 * ipa-comdats.c : Likewise.
14300 * ipa-cp.c : Likewise.
14301 * ipa-devirt.c : Likewise.
14302 * ipa-icf-gimple.c : Likewise.
14303 * ipa-icf.c : Likewise.
14304 * ipa-inline-analysis.c : Likewise.
14305 * ipa-inline-transform.c : Likewise.
14306 * ipa-inline.c : Likewise.
14307 * ipa-polymorphic-call.c : Likewise.
14308 * ipa-profile.c : Likewise.
14309 * ipa-prop.c : Likewise.
14310 * ipa-pure-const.c : Likewise.
14311 * ipa-ref.c : Likewise.
14312 * ipa-reference.c : Likewise.
14313 * ipa-split.c : Likewise.
14314 * ipa-utils.c : Likewise.
14315 * ipa-visibility.c : Likewise.
14316 * ipa.c : Likewise.
14317 * ira-build.c : Likewise.
14318 * ira-color.c : Likewise.
14319 * ira-conflicts.c : Likewise.
14320 * ira-costs.c : Likewise.
14321 * ira-emit.c : Likewise.
14322 * ira-lives.c : Likewise.
14323 * ira.c : Likewise.
14324 * jump.c : Likewise.
14325 * langhooks.c : Likewise.
14326 * lcm.c : Likewise.
14327 * libfuncs.h : Likewise.
14328 * lists.c : Likewise.
14329 * loop-doloop.c : Likewise.
14330 * loop-init.c : Likewise.
14331 * loop-invariant.c : Likewise.
14332 * loop-iv.c : Likewise.
14333 * loop-unroll.c : Likewise.
14334 * lower-subreg.c : Likewise.
14335 * lra-assigns.c : Likewise.
14336 * lra-coalesce.c : Likewise.
14337 * lra-constraints.c : Likewise.
14338 * lra-eliminations.c : Likewise.
14339 * lra-lives.c : Likewise.
14340 * lra-remat.c : Likewise.
14341 * lra-spills.c : Likewise.
14342 * lra.c : Likewise.
14343 * lto-cgraph.c : Likewise.
14344 * lto-compress.c : Likewise.
14345 * lto-opts.c : Likewise.
14346 * lto-section-in.c : Likewise.
14347 * lto-section-out.c : Likewise.
14348 * lto-streamer-in.c : Likewise.
14349 * lto-streamer-out.c : Likewise.
14350 * lto-streamer.c : Likewise.
14351 * lto-streamer.h : Likewise.
14352 * mcf.c : Likewise.
14353 * mode-switching.c : Likewise.
14354 * modulo-sched.c : Likewise.
14355 * omega.c : Likewise.
14356 * omp-low.c : Likewise.
14357 * optabs.c : Likewise.
14358 * opts-global.c : Likewise.
14359 * opts.h : Likewise.
14360 * passes.c : Likewise.
14361 * plugin.c : Likewise.
14362 * postreload-gcse.c : Likewise.
14363 * postreload.c : Likewise.
14364 * predict.c : Likewise.
14365 * print-rtl.c : Likewise.
14366 * print-tree.c : Likewise.
14367 * profile.c : Likewise.
14368 * read-md.c : Likewise.
14369 * read-md.h : Likewise.
14370 * read-rtl.c : Likewise.
14371 * real.c : Likewise.
14372 * realmpfr.c : Likewise.
14373 * recog.c : Likewise.
14374 * ree.c : Likewise.
14375 * reg-stack.c : Likewise.
14376 * regcprop.c : Likewise.
14377 * reginfo.c : Likewise.
14378 * regrename.c : Likewise.
14379 * regstat.c : Likewise.
14380 * reload.c : Likewise.
14381 * reload1.c : Likewise.
14382 * reorg.c : Likewise.
14383 * resource.c : Likewise.
14384 * rtl-chkp.c : Likewise.
14385 * rtl.c : Likewise.
14386 * rtl.h : Likewise.
14387 * rtlanal.c : Likewise.
14388 * rtlhash.c : Likewise.
14389 * rtlhash.h : Likewise.
14390 * rtlhooks.c : Likewise.
14391 * sanopt.c : Likewise.
14392 * sched-deps.c : Likewise.
14393 * sched-ebb.c : Likewise.
14394 * sched-rgn.c : Likewise.
14395 * sched-vis.c : Likewise.
14396 * sdbout.c : Likewise.
14397 * sel-sched-dump.c : Likewise.
14398 * sel-sched-ir.c : Likewise.
14399 * sel-sched-ir.h : Likewise.
14400 * sel-sched.c : Likewise.
14401 * sese.c : Likewise.
14402 * shrink-wrap.c : Likewise.
14403 * shrink-wrap.h : Likewise.
14404 * simplify-rtx.c : Likewise.
14405 * stack-ptr-mod.c : Likewise.
14406 * statistics.c : Likewise.
14407 * stmt.c : Likewise.
14408 * stor-layout.c : Likewise.
14409 * store-motion.c : Likewise.
14410 * stringpool.c : Likewise.
14411 * symtab.c : Likewise.
14412 * target-globals.c : Likewise.
14413 * targhooks.c : Likewise.
14414 * tlink.c : Likewise.
14415 * toplev.c : Likewise.
14416 * tracer.c : Likewise.
14417 * trans-mem.c : Likewise.
14418 * tree-affine.c : Likewise.
14419 * tree-affine.h : Likewise.
14420 * tree-browser.c : Likewise.
14421 * tree-call-cdce.c : Likewise.
14422 * tree-cfg.c : Likewise.
14423 * tree-cfgcleanup.c : Likewise.
14424 * tree-chkp-opt.c : Likewise.
14425 * tree-chkp.c : Likewise.
14426 * tree-chrec.c : Likewise.
14427 * tree-complex.c : Likewise.
14428 * tree-data-ref.c : Likewise.
14429 * tree-dfa.c : Likewise.
14430 * tree-diagnostic.c : Likewise.
14431 * tree-dump.c : Likewise.
14432 * tree-eh.c : Likewise.
14433 * tree-eh.h : Likewise.
14434 * tree-emutls.c : Likewise.
14435 * tree-hasher.h : Likewise.
14436 * tree-if-conv.c : Likewise.
14437 * tree-inline.c : Likewise.
14438 * tree-inline.h : Likewise.
14439 * tree-into-ssa.c : Likewise.
14440 * tree-iterator.c : Likewise.
14441 * tree-loop-distribution.c : Likewise.
14442 * tree-nested.c : Likewise.
14443 * tree-nrv.c : Likewise.
14444 * tree-object-size.c : Likewise.
14445 * tree-outof-ssa.c : Likewise.
14446 * tree-parloops.c : Likewise.
14447 * tree-phinodes.c : Likewise.
14448 * tree-predcom.c : Likewise.
14449 * tree-pretty-print.c : Likewise.
14450 * tree-profile.c : Likewise.
14451 * tree-scalar-evolution.c : Likewise.
14452 * tree-sra.c : Likewise.
14453 * tree-ssa-address.c : Likewise.
14454 * tree-ssa-alias.c : Likewise.
14455 * tree-ssa-ccp.c : Likewise.
14456 * tree-ssa-coalesce.c : Likewise.
14457 * tree-ssa-copy.c : Likewise.
14458 * tree-ssa-copyrename.c : Likewise.
14459 * tree-ssa-dce.c : Likewise.
14460 * tree-ssa-dom.c : Likewise.
14461 * tree-ssa-dse.c : Likewise.
14462 * tree-ssa-forwprop.c : Likewise.
14463 * tree-ssa-ifcombine.c : Likewise.
14464 * tree-ssa-live.c : Likewise.
14465 * tree-ssa-loop-ch.c : Likewise.
14466 * tree-ssa-loop-im.c : Likewise.
14467 * tree-ssa-loop-ivcanon.c : Likewise.
14468 * tree-ssa-loop-ivopts.c : Likewise.
14469 * tree-ssa-loop-manip.c : Likewise.
14470 * tree-ssa-loop-niter.c : Likewise.
14471 * tree-ssa-loop-prefetch.c : Likewise.
14472 * tree-ssa-loop-unswitch.c : Likewise.
14473 * tree-ssa-loop.c : Likewise.
14474 * tree-ssa-math-opts.c : Likewise.
14475 * tree-ssa-operands.c : Likewise.
14476 * tree-ssa-phiopt.c : Likewise.
14477 * tree-ssa-phiprop.c : Likewise.
14478 * tree-ssa-pre.c : Likewise.
14479 * tree-ssa-propagate.c : Likewise.
14480 * tree-ssa-reassoc.c : Likewise.
14481 * tree-ssa-sccvn.c : Likewise.
14482 * tree-ssa-scopedtables.c : Likewise.
14483 * tree-ssa-sink.c : Likewise.
14484 * tree-ssa-strlen.c : Likewise.
14485 * tree-ssa-structalias.c : Likewise.
14486 * tree-ssa-tail-merge.c : Likewise.
14487 * tree-ssa-ter.c : Likewise.
14488 * tree-ssa-threadedge.c : Likewise.
14489 * tree-ssa-threadupdate.c : Likewise.
14490 * tree-ssa-uncprop.c : Likewise.
14491 * tree-ssa-uninit.c : Likewise.
14492 * tree-ssa.c : Likewise.
14493 * tree-ssanames.c : Likewise.
14494 * tree-stdarg.c : Likewise.
14495 * tree-streamer-in.c : Likewise.
14496 * tree-streamer-out.c : Likewise.
14497 * tree-streamer.c : Likewise.
14498 * tree-streamer.h : Likewise.
14499 * tree-switch-conversion.c : Likewise.
14500 * tree-tailcall.c : Likewise.
14501 * tree-vect-data-refs.c : Likewise.
14502 * tree-vect-generic.c : Likewise.
14503 * tree-vect-loop-manip.c : Likewise.
14504 * tree-vect-loop.c : Likewise.
14505 * tree-vect-patterns.c : Likewise.
14506 * tree-vect-slp.c : Likewise.
14507 * tree-vect-stmts.c : Likewise.
14508 * tree-vectorizer.c : Likewise.
14509 * tree-vectorizer.h : Likewise.
14510 * tree-vrp.c : Likewise.
14511 * tree.c : Likewise.
14512 * tsan.c : Likewise.
14513 * ubsan.c : Likewise.
14514 * valtrack.c : Likewise.
14515 * valtrack.h : Likewise.
14516 * value-prof.c : Likewise.
14517 * var-tracking.c : Likewise.
14518 * varasm.c : Likewise.
14519 * varpool.c : Likewise.
14521 * vmsdbgout.c : Likewise.
14522 * vtable-verify.c : Likewise.
14523 * vtable-verify.h : Likewise.
14524 * web.c : Likewise.
14525 * wide-int.cc : Likewise.
14526 * xcoffout.c : Likewise.
14527 * config/aarch64/aarch64-builtins.c : Likewise.
14528 * config/aarch64/aarch64.c : Likewise.
14529 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
14530 * config/alpha/alpha.c : Likewise.
14531 * config/arc/arc.c : Likewise.
14532 * config/arm/aarch-common.c : Likewise.
14533 * config/arm/arm-builtins.c : Likewise.
14534 * config/arm/arm-c.c : Likewise.
14535 * config/arm/arm.c : Likewise.
14536 * config/avr/avr-c.c : Likewise.
14537 * config/avr/avr-log.c : Likewise.
14538 * config/avr/avr.c : Likewise.
14539 * config/bfin/bfin.c : Likewise.
14540 * config/c6x/c6x.c : Likewise.
14541 * config/cr16/cr16.c : Likewise.
14542 * config/cris/cris.c : Likewise.
14543 * config/darwin-c.c : Likewise.
14544 * config/darwin.c : Likewise.
14545 * config/default-c.c : Likewise.
14546 * config/epiphany/epiphany.c : Likewise.
14547 * config/epiphany/mode-switch-use.c : Likewise.
14548 * config/epiphany/resolve-sw-modes.c : Likewise.
14549 * config/fr30/fr30.c : Likewise.
14550 * config/frv/frv.c : Likewise.
14551 * config/ft32/ft32.c : Likewise.
14552 * config/glibc-c.c : Likewise.
14553 * config/h8300/h8300.c : Likewise.
14554 * config/i386/i386-c.c : Likewise.
14555 * config/i386/i386.c : Likewise.
14556 * config/i386/msformat-c.c : Likewise.
14557 * config/i386/winnt-cxx.c : Likewise.
14558 * config/i386/winnt-stubs.c : Likewise.
14559 * config/i386/winnt.c : Likewise.
14560 * config/ia64/ia64-c.c : Likewise.
14561 * config/ia64/ia64.c : Likewise.
14562 * config/iq2000/iq2000.c : Likewise.
14563 * config/lm32/lm32.c : Likewise.
14564 * config/m32c/m32c-pragma.c : Likewise.
14565 * config/m32c/m32c.c : Likewise.
14566 * config/m32r/m32r.c : Likewise.
14567 * config/m68k/m68k.c : Likewise.
14568 * config/mcore/mcore.c : Likewise.
14569 * config/mep/mep-pragma.c : Likewise.
14570 * config/mep/mep.c : Likewise.
14571 * config/microblaze/microblaze-c.c : Likewise.
14572 * config/microblaze/microblaze.c : Likewise.
14573 * config/mips/mips.c : Likewise.
14574 * config/mmix/mmix.c : Likewise.
14575 * config/mn10300/mn10300.c : Likewise.
14576 * config/moxie/moxie.c : Likewise.
14577 * config/msp430/msp430-c.c : Likewise.
14578 * config/msp430/msp430.c : Likewise.
14579 * config/nds32/nds32-cost.c : Likewise.
14580 * config/nds32/nds32-fp-as-gp.c : Likewise.
14581 * config/nds32/nds32-intrinsic.c : Likewise.
14582 * config/nds32/nds32-isr.c : Likewise.
14583 * config/nds32/nds32-md-auxiliary.c : Likewise.
14584 * config/nds32/nds32-memory-manipulation.c : Likewise.
14585 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
14586 * config/nds32/nds32-predicates.c : Likewise.
14587 * config/nds32/nds32.c : Likewise.
14588 * config/nios2/nios2.c : Likewise.
14589 * config/nvptx/nvptx.c : Likewise.
14590 * config/pa/pa.c : Likewise.
14591 * config/pdp11/pdp11.c : Likewise.
14592 * config/rl78/rl78-c.c : Likewise.
14593 * config/rl78/rl78.c : Likewise.
14594 * config/rs6000/rs6000-c.c : Likewise.
14595 * config/rs6000/rs6000.c : Likewise.
14596 * config/rx/rx.c : Likewise.
14597 * config/s390/s390-c.c : Likewise.
14598 * config/s390/s390.c : Likewise.
14599 * config/sh/sh-c.c : Likewise.
14600 * config/sh/sh-mem.cc : Likewise.
14601 * config/sh/sh.c : Likewise.
14602 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
14603 * config/sh/sh_treg_combine.cc : Likewise.
14604 * config/sol2-c.c : Likewise.
14605 * config/sol2-cxx.c : Likewise.
14606 * config/sol2-stubs.c : Likewise.
14607 * config/sol2.c : Likewise.
14608 * config/sparc/sparc-c.c : Likewise.
14609 * config/sparc/sparc.c : Likewise.
14610 * config/spu/spu-c.c : Likewise.
14611 * config/spu/spu.c : Likewise.
14612 * config/stormy16/stormy16.c : Likewise.
14613 * config/tilegx/mul-tables.c : Likewise.
14614 * config/tilegx/tilegx-c.c : Likewise.
14615 * config/tilegx/tilegx.c : Likewise.
14616 * config/tilepro/mul-tables.c : Likewise.
14617 * config/tilepro/tilepro-c.c : Likewise.
14618 * config/tilepro/tilepro.c : Likewise.
14619 * config/v850/v850-c.c : Likewise.
14620 * config/v850/v850.c : Likewise.
14621 * config/vax/vax.c : Likewise.
14622 * config/visium/visium.c : Likewise.
14623 * config/vms/vms-c.c : Likewise.
14624 * config/vms/vms.c : Likewise.
14625 * config/vxworks.c : Likewise.
14626 * config/winnt-c.c : Likewise.
14627 * config/xtensa/xtensa.c : Likewise.
14629 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14632 * ipa-utils.h (warn_types_mismatch): Update prototype.
14633 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
14635 (type_mismatch_p): New function.
14636 (warn_types_mismatch): Reorg to work better on non-C++ types.
14637 (odr_types_equivalent_p): Add loc1/loc2 parameters.
14638 (add_type_duplicate): Update.
14640 2015-06-08 Tom de Vries <tom@codesourcery.com>
14642 PR rtl-optimization/66444
14643 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
14646 2015-06-08 Richard Biener <rguenther@suse.de>
14648 PR tree-optimization/66422
14649 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
14650 block after inserted gcc_unreachable.
14652 2015-06-08 Nick Clifton <nickc@redhat.com>
14654 * config/rx/rx.c (rx_function_value): Do not promote vector types.
14655 (rx_promote_function_mode): Likewise.
14656 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
14658 2015-06-08 Jakub Jelinek <jakub@redhat.com>
14660 * genattrtab.c (insn_alternatives): Change type from int *
14662 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
14663 (get_attr_value): Change type of num_alt to uint64_t.
14664 (compute_alternative_mask): Change return type from
14665 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
14666 (make_alternative_compare, mk_attr_alt): Change argument type
14667 from int to uint64_t.
14668 (simplify_test_exp): Change type of i from int to uint64_t.
14669 Shift ((uint64_t) 1) instead of 1 up.
14670 (main): Adjust oballocvec first argument from int to uint64_t.
14671 Shift ((uint64_t) 1) instead of 1 up.
14673 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14676 * gdbhooks.py: Import sys.
14677 (intptr): New function. Replace int(...) by intptr(...).
14679 2015-06-08 Richard Biener <rguenther@suse.de>
14681 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
14682 adjustment for gaps at the end of a SLP load group properly.
14683 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
14684 all permutations we can generate.
14685 (vect_transform_slp_perm_load): Use the correct group-size.
14687 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
14689 * genmatch.c (expr::gen_transform): For conditions, guess the type
14690 from the second operand.
14692 2015-06-08 Tom de Vries <tom@codesourcery.com>
14694 PR tree-optimization/66442
14695 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
14696 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
14697 if the loop latch is not a singleton. Use
14698 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
14700 2015-06-08 Marek Polacek <polacek@redhat.com>
14703 * toplev.c (check_global_declaration): Don't warn about artificial
14706 2015-06-08 Tom de Vries <tom@codesourcery.com>
14708 PR tree-optimization/66436
14709 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
14711 * gimplify.c: Add tree-dump.h include.
14712 (gimplify_function_tree): Dump function to gimple dump file.
14713 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
14716 2015-06-08 Tom de Vries <tom@codesourcery.com>
14718 PR tree-optimization/66435
14719 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
14722 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
14724 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
14725 of ptr_type_node to not be ptr_to_node.
14726 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
14727 TREE_TYPE of pointers.
14728 * gimple-expr.c (useless_type_conversion): Reorder the check for
14729 function pointers and TYPE_CANONICAL.
14731 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
14734 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
14735 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
14736 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
14738 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
14739 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
14740 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
14741 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
14742 and non iso if unix2003.
14744 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
14746 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
14748 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
14750 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
14751 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
14752 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
14753 except.c, final.c, function.c, gcse-common.c, genemit.c,
14754 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
14755 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
14756 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
14757 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
14760 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
14762 * combine.c (combine_split_insns): Remove cast.
14763 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
14764 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
14765 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
14766 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
14767 * genemit.c (gen_split): Change return type of generated functions to
14769 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
14770 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
14771 gen_peephole2_* functions.
14772 (print_subroutine, main): Likewise.
14773 * recog.c (peephole2_optimize): Remove cast.
14774 (peep2_next_insn): Promote return type to rtx_insn.
14775 * recog.h (peep2_next_insn): Fix prototype.
14776 * rtl.h (try_split, split_insns): Likewise.
14778 2015-06-06 DJ Delorie <dj@redhat.com>
14780 * config/msp430/msp430.c (msp430_asm_integer): Support addition
14781 and subtraction too.
14783 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
14786 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
14787 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
14788 instead of Snd. Disparage Sid/z alternative with '^'.
14790 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
14792 * dwarf2out.c: Remove deferred_locations*.
14793 (dwarf2_debug_hooks): Add early_finish hook.
14794 Remove global_decl hook.
14795 Add early_global_decl and late_global_decl hook.
14796 New global early_dwarf.
14797 New structure set_early_dwarf.
14798 (output_die): Indicate whether a DIE was generated early
14799 when generating assembly with -dA.
14800 (struct limbo_die_struct): Document created_for field.
14801 Remove file_table_last_lookup.
14802 (remove_AT): Return TRUE if successful.
14803 (remove_child_TAG): Clear die_parent.
14804 (reparent_child): New function abstracted from...
14805 (splice_child_die): ...here.
14806 (new_die): ICE if a DIE ends up in limbo too late.
14808 (defer_location): Remove.
14809 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
14810 (fill_variable_array_bounds): New.
14811 (decl_start_label): Call fill_variable_array_bounds.
14812 (gen_formal_parameter_die): Rewrite to reuse previously generated
14814 (gen_subprogram_die): Same.
14815 (gen_variable_die): Same.
14816 (gen_const_die): Same.
14817 (gen_label_die): Same.
14818 (gen_lexical_block_die): Same.
14819 (decl_will_get_specification_p): New.
14820 (local_function_static): New.
14821 (gen_struct_or_union_type_die): Fill in variable-length fields.
14822 (gen_typedef_die): Fill in variable-length typedefs.
14823 (gen_tagged_type_die): Gracefully return on error_mark_node.
14824 Handle re-entrancy.
14825 (gen_type_die_with_usage): Handle variable-length types.
14826 Remove duplicate code for ARRAY_TYPE case.
14827 (process_scope_var): Only process imported modules during early
14829 (dwarf2out_early_global_decl): New.
14830 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
14831 (dwarf2out_type_decl): Set early_dwarf while calling
14833 (dwarf2out_decl): Verify that we did not recreate a previously
14835 Do not return on DECL_EXTERNALs in VAR_DECLs.
14836 Abstract some code to local_function_static.
14837 (lookup_filename): Remove use of file_table_last_lookup.
14838 Gracefully exit on missing file_name.
14839 (dwarf2out_finish): Verify limbo list.
14840 Remove deferred_locations_list use.
14841 Move deferred_asm_name and limbo flushing to...
14842 (dwarf2out_early_finish): ...here. New.
14843 (dwarf2out_c_finalize): Remove set of deferred_location_list,
14844 deferred_asm_name, and file_table_last_lookup.
14845 * cgraph.h (referred_to_p): Add default argument.
14846 * cgraphunit.c (referred_to_p): Add and handle include_self
14848 (analyze_functions): Add first_time argument.
14849 Call check_global_declaration for all symbols.
14850 Call late_global_decl for nodes for moribund nodes.
14851 (finalize_compilation_unit): Add new argument to
14853 Call early_global_decl for functions.
14854 Call early_finish debug hook.
14855 * dbxout.c (dbxout_early_global_decl): New.
14856 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
14857 (dbx_debug_hooks): Add new hooks.
14858 (xcoff_debug_hooks): Same.
14859 * debug.c (do_nothing_debug_hooks): Add early_finish field.
14860 Add early and late debug hooks.
14861 Remove global_decl hook.
14862 * debug.h (struct gcc_debug_hooks): Add early_finish,
14863 early_global_decl, and late_global_decl fields.
14864 Remove global_decl field.
14865 Document gcc_debug_hooks.
14866 * gengtype.c (output_typename): Remove.
14867 * godump.c (go_early_global_decl): New.
14868 (go_late_global_decl): New.
14869 (go_global_decl): Remove.
14870 (dump_go_spec_init): Remove global_decl. Add
14871 {early,late}_global_decl.
14872 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
14873 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
14874 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
14875 (write_global_declarations): Remove.
14876 (global_decl_processing): New.
14877 * langhooks.h (struct lang_hooks_for_decls): Remove
14878 final_write_globals field.
14879 Add post_compilation_parsing_cleanups field.
14880 * passes.c (rest_of_decl_compilation): Call early_global_decl.
14881 * sdbout.c: Add early and late_global_decl hooks. Remove
14882 sdbout_global_decl hook.
14883 Add early_finish field for sdb_debug_hooks.
14884 (sdbout_global_decl): Remove.
14885 (sdbout_early_global_decl): New.
14886 (sdbout_late_global_decl): New.
14887 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
14888 * toplev.c (check_global_declaration): Rename from
14889 check_global_declaration_1.
14890 Adapt to use symtab infrastructure.
14891 (check_global_declarations): Remove.
14892 (emit_debug_global_declarations): Remove.
14893 (compile_file): Remove call to final_write_globals langhook.
14894 Run the actual compilation process.
14895 Perform any post compilation parser cleanups.
14896 Generate late debug info.
14897 * toplev.h (check_global_declaration): New.
14898 (check_global_declaration_1): Remove.
14899 (check_global_declarations): Remove.
14900 (write_global_declarations): Remove.
14901 (emit_debug_global_declarations): Remove.
14902 (global_decl_processing): New.
14903 * tree-core.h (struct tree_block): Add DIE field.
14904 * tree.h (BLOCK_DIE): New.
14905 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
14907 (vmsdbgout_early_global_decl): New.
14908 (vmsdbgout_late_global_decl): New.
14909 Add early_finish debug hook field to vmsdbg_debug_hooks.
14910 Remove vmsdbgout_decl to vmsdbgout_function_decl.
14911 Add early and late_global_decl debug hooks.
14913 2015-06-05 Julian Brown <julian@codesourcery.com>
14914 Sandra Loosemore <sandra@codesourcery.com>
14916 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
14917 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
14918 to print-sysroot-suffix.sh script.
14920 2015-06-05 Tom de Vries <tom@codesourcery.com>
14922 merge from gomp4 branch:
14923 2015-05-28 Tom de Vries <tom@codesourcery.com>
14925 PR tree-optimization/65443
14926 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
14927 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
14928 (try_transform_to_exit_first_loop_alt): New function.
14929 (transform_to_exit_first_loop): Use
14930 try_transform_to_exit_first_loop_alt.
14932 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
14934 * builtins.c (expand_builtin_atomic_compare_exchange): Call
14935 emit_cmp_and_jump_insns with the mode of target.
14937 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14939 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
14941 2015-06-04 DJ Delorie <dj@redhat.com>
14943 * config/msp430/msp430.md (movsi_s): New. Special case for
14944 storing a 20-bit symbol into a 32-bit register.
14945 * config/msp430/msp430.c (msp430_subreg): Add support for it.
14946 * config/msp430/predicates.md (msp430_symbol_operand): New.
14948 2015-06-04 Sriraman Tallam <tmsriram@google.com>
14950 * c-family/c-common.c (noplt): New attribute.
14951 (handle_noplt_attribute): New handler.
14952 * calls.c (prepare_call_address): Check for noplt
14954 * config/i386/i386.c (ix86_expand_call): Check
14955 for noplt attribute.
14956 (ix86_nopic_noplt_attribute_p): New function.
14957 (ix86_output_call_insn): Output indirect call for non-pic
14959 * doc/extend.texi (noplt): Document new attribute.
14960 * doc/invoke.texi: Document new attribute.
14962 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
14964 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
14965 real.h, and fixed-value.h when included in host source files.
14966 * double-int.h: Remove redundant #includes listed above.
14967 * fixed-value.h: Likewise.
14968 * real.h: Likewise.
14969 * wide-int.h: Likewise.
14970 * inchash.h: Likewise.
14971 * rtl.h: Add some include files When included from a generator file.
14972 * target.h: Remove wide-int.h and insn-modes.h from the include list.
14973 * internal-fn.h: Don't include coretypes.h.
14974 * alias.c: Adjust includes for restructured coretypes.h.
14975 * asan.c: Likewise.
14976 * attribs.c: Likewise.
14977 * auto-inc-dec.c: Likewise.
14978 * auto-profile.c: Likewise.
14979 * bb-reorder.c: Likewise.
14980 * bt-load.c: Likewise.
14981 * builtins.c: Likewise.
14982 * caller-save.c: Likewise.
14983 * calls.c: Likewise.
14984 * ccmp.c: Likewise.
14986 * cfganal.c: Likewise.
14987 * cfgbuild.c: Likewise.
14988 * cfgcleanup.c: Likewise.
14989 * cfgexpand.c: Likewise.
14990 * cfghooks.c: Likewise.
14991 * cfgloop.c: Likewise.
14992 * cfgloop.h: Likewise.
14993 * cfgloopanal.c: Likewise.
14994 * cfgloopmanip.c: Likewise.
14995 * cfgrtl.c: Likewise.
14996 * cgraph.c: Likewise.
14997 * cgraphbuild.c: Likewise.
14998 * cgraphclones.c: Likewise.
14999 * cgraphunit.c: Likewise.
15000 * cilk-common.c: Likewise.
15001 * combine-stack-adj.c: Likewise.
15002 * combine.c: Likewise.
15003 * compare-elim.c: Likewise.
15004 * convert.c: Likewise.
15005 * coverage.c: Likewise.
15006 * cppbuiltin.c: Likewise.
15007 * cprop.c: Likewise.
15009 * cselib.c: Likewise.
15010 * data-streamer-in.c: Likewise.
15011 * data-streamer-out.c: Likewise.
15012 * data-streamer.c: Likewise.
15013 * dbxout.c: Likewise.
15016 * debug.c: Likewise.
15017 * df-core.c: Likewise.
15018 * df-problems.c: Likewise.
15019 * df-scan.c: Likewise.
15022 * dojump.c: Likewise.
15023 * dominance.c: Likewise.
15024 * domwalk.c: Likewise.
15025 * double-int.c: Likewise.
15027 * dumpfile.c: Likewise.
15028 * dwarf2asm.c: Likewise.
15029 * dwarf2cfi.c: Likewise.
15030 * dwarf2out.c: Likewise.
15031 * dwarf2out.h: Likewise.
15032 * emit-rtl.c: Likewise.
15033 * et-forest.c: Likewise.
15034 * except.c: Likewise.
15035 * explow.c: Likewise.
15036 * expmed.c: Likewise.
15037 * expr.c: Likewise.
15038 * final.c: Likewise.
15039 * fixed-value.c: Likewise.
15040 * fold-const.c: Likewise.
15041 * function.c: Likewise.
15042 * fwprop.c: Likewise.
15043 * gcc-plugin.h: Likewise.
15044 * gcse.c: Likewise.
15045 * generic-match-head.c: Likewise.
15046 * ggc-page.c: Likewise.
15047 * gimple-builder.c: Likewise.
15048 * gimple-expr.c: Likewise.
15049 * gimple-fold.c: Likewise.
15050 * gimple-iterator.c: Likewise.
15051 * gimple-low.c: Likewise.
15052 * gimple-match-head.c: Likewise.
15053 * gimple-pretty-print.c: Likewise.
15054 * gimple-ssa-isolate-paths.c: Likewise.
15055 * gimple-ssa-strength-reduction.c: Likewise.
15056 * gimple-streamer-in.c: Likewise.
15057 * gimple-streamer-out.c: Likewise.
15058 * gimple-streamer.h: Likewise.
15059 * gimple-walk.c: Likewise.
15060 * gimple.c: Likewise.
15061 * gimplify-me.c: Likewise.
15062 * gimplify.c: Likewise.
15063 * godump.c: Likewise.
15064 * graph.c: Likewise.
15065 * graphite-blocking.c: Likewise.
15066 * graphite-dependences.c: Likewise.
15067 * graphite-interchange.c: Likewise.
15068 * graphite-isl-ast-to-gimple.c: Likewise.
15069 * graphite-optimize-isl.c: Likewise.
15070 * graphite-poly.c: Likewise.
15071 * graphite-scop-detection.c: Likewise.
15072 * graphite-sese-to-poly.c: Likewise.
15073 * graphite.c: Likewise.
15074 * haifa-sched.c: Likewise.
15075 * hooks.h: Likewise.
15076 * hw-doloop.c: Likewise.
15077 * ifcvt.c: Likewise.
15078 * incpath.c: Likewise.
15079 * init-regs.c: Likewise.
15080 * internal-fn.c: Likewise.
15081 * ipa-chkp.c: Likewise.
15082 * ipa-comdats.c: Likewise.
15083 * ipa-cp.c: Likewise.
15084 * ipa-devirt.c: Likewise.
15085 * ipa-icf-gimple.c: Likewise.
15086 * ipa-icf.c: Likewise.
15087 * ipa-inline-analysis.c: Likewise.
15088 * ipa-inline-transform.c: Likewise.
15089 * ipa-inline.c: Likewise.
15090 * ipa-polymorphic-call.c: Likewise.
15091 * ipa-profile.c: Likewise.
15092 * ipa-prop.c: Likewise.
15093 * ipa-pure-const.c: Likewise.
15094 * ipa-ref.c: Likewise.
15095 * ipa-reference.c: Likewise.
15096 * ipa-split.c: Likewise.
15097 * ipa-utils.c: Likewise.
15098 * ipa-visibility.c: Likewise.
15100 * ira-build.c: Likewise.
15101 * ira-color.c: Likewise.
15102 * ira-conflicts.c: Likewise.
15103 * ira-costs.c: Likewise.
15104 * ira-emit.c: Likewise.
15105 * ira-lives.c: Likewise.
15107 * jump.c: Likewise.
15108 * langhooks.c: Likewise.
15110 * loop-doloop.c: Likewise.
15111 * loop-init.c: Likewise.
15112 * loop-invariant.c: Likewise.
15113 * loop-iv.c: Likewise.
15114 * loop-unroll.c: Likewise.
15115 * lower-subreg.c: Likewise.
15116 * lra-assigns.c: Likewise.
15117 * lra-coalesce.c: Likewise.
15118 * lra-constraints.c: Likewise.
15119 * lra-eliminations.c: Likewise.
15120 * lra-lives.c: Likewise.
15121 * lra-remat.c: Likewise.
15122 * lra-spills.c: Likewise.
15124 * lto-cgraph.c: Likewise.
15125 * lto-compress.c: Likewise.
15126 * lto-opts.c: Likewise.
15127 * lto-section-in.c: Likewise.
15128 * lto-section-out.c: Likewise.
15129 * lto-streamer-in.c: Likewise.
15130 * lto-streamer-out.c: Likewise.
15131 * lto-streamer.c: Likewise.
15133 * mode-switching.c: Likewise.
15134 * modulo-sched.c: Likewise.
15135 * omega.c: Likewise.
15136 * omp-low.c: Likewise.
15137 * optabs.c: Likewise.
15138 * opts-global.c: Likewise.
15139 * passes.c: Likewise.
15140 * plugin.c: Likewise.
15141 * postreload-gcse.c: Likewise.
15142 * postreload.c: Likewise.
15143 * predict.c: Likewise.
15144 * print-rtl.c: Likewise.
15145 * print-tree.c: Likewise.
15146 * profile.c: Likewise.
15147 * real.c: Likewise.
15148 * realmpfr.c: Likewise.
15149 * realmpfr.h: Likewise.
15150 * recog.c: Likewise.
15152 * reg-stack.c: Likewise.
15153 * regcprop.c: Likewise.
15154 * reginfo.c: Likewise.
15155 * regrename.c: Likewise.
15156 * regs.h: Likewise.
15157 * regstat.c: Likewise.
15158 * reload.c: Likewise.
15159 * reload1.c: Likewise.
15160 * reorg.c: Likewise.
15161 * resource.c: Likewise.
15162 * rtl-chkp.c: Likewise.
15163 * rtlanal.c: Likewise.
15164 * rtlhooks.c: Likewise.
15165 * sanopt.c: Likewise.
15166 * sched-deps.c: Likewise.
15167 * sched-ebb.c: Likewise.
15168 * sched-rgn.c: Likewise.
15169 * sched-vis.c: Likewise.
15170 * sdbout.c: Likewise.
15171 * sel-sched-dump.c: Likewise.
15172 * sel-sched-ir.c: Likewise.
15173 * sel-sched.c: Likewise.
15174 * sese.c: Likewise.
15175 * shrink-wrap.c: Likewise.
15176 * shrink-wrap.h: Likewise.
15177 * simplify-rtx.c: Likewise.
15178 * stack-ptr-mod.c: Likewise.
15179 * statistics.c: Likewise.
15180 * stmt.c: Likewise.
15181 * stor-layout.c: Likewise.
15182 * store-motion.c: Likewise.
15183 * stringpool.c: Likewise.
15184 * symtab.c: Likewise.
15185 * target-globals.c: Likewise.
15186 * targhooks.c: Likewise.
15187 * toplev.c: Likewise.
15188 * tracer.c: Likewise.
15189 * trans-mem.c: Likewise.
15190 * tree-affine.c: Likewise.
15191 * tree-affine.h: Likewise.
15192 * tree-browser.c: Likewise.
15193 * tree-call-cdce.c: Likewise.
15194 * tree-cfg.c: Likewise.
15195 * tree-cfgcleanup.c: Likewise.
15196 * tree-chkp-opt.c: Likewise.
15197 * tree-chkp.c: Likewise.
15198 * tree-chrec.c: Likewise.
15199 * tree-complex.c: Likewise.
15200 * tree-data-ref.c: Likewise.
15201 * tree-dfa.c: Likewise.
15202 * tree-diagnostic.c: Likewise.
15203 * tree-dump.c: Likewise.
15204 * tree-eh.c: Likewise.
15205 * tree-emutls.c: Likewise.
15206 * tree-if-conv.c: Likewise.
15207 * tree-inline.c: Likewise.
15208 * tree-into-ssa.c: Likewise.
15209 * tree-iterator.c: Likewise.
15210 * tree-loop-distribution.c: Likewise.
15211 * tree-nested.c: Likewise.
15212 * tree-nrv.c: Likewise.
15213 * tree-object-size.c: Likewise.
15214 * tree-outof-ssa.c: Likewise.
15215 * tree-parloops.c: Likewise.
15216 * tree-phinodes.c: Likewise.
15217 * tree-predcom.c: Likewise.
15218 * tree-pretty-print.c: Likewise.
15219 * tree-pretty-print.h: Likewise.
15220 * tree-profile.c: Likewise.
15221 * tree-scalar-evolution.c: Likewise.
15222 * tree-sra.c: Likewise.
15223 * tree-ssa-address.c: Likewise.
15224 * tree-ssa-alias.c: Likewise.
15225 * tree-ssa-ccp.c: Likewise.
15226 * tree-ssa-coalesce.c: Likewise.
15227 * tree-ssa-copy.c: Likewise.
15228 * tree-ssa-copyrename.c: Likewise.
15229 * tree-ssa-dce.c: Likewise.
15230 * tree-ssa-dom.c: Likewise.
15231 * tree-ssa-dse.c: Likewise.
15232 * tree-ssa-forwprop.c: Likewise.
15233 * tree-ssa-ifcombine.c: Likewise.
15234 * tree-ssa-live.c: Likewise.
15235 * tree-ssa-loop-ch.c: Likewise.
15236 * tree-ssa-loop-im.c: Likewise.
15237 * tree-ssa-loop-ivcanon.c: Likewise.
15238 * tree-ssa-loop-ivopts.c: Likewise.
15239 * tree-ssa-loop-manip.c: Likewise.
15240 * tree-ssa-loop-niter.c: Likewise.
15241 * tree-ssa-loop-prefetch.c: Likewise.
15242 * tree-ssa-loop-unswitch.c: Likewise.
15243 * tree-ssa-loop.c: Likewise.
15244 * tree-ssa-loop.h: Likewise.
15245 * tree-ssa-math-opts.c: Likewise.
15246 * tree-ssa-operands.c: Likewise.
15247 * tree-ssa-phiopt.c: Likewise.
15248 * tree-ssa-phiprop.c: Likewise.
15249 * tree-ssa-pre.c: Likewise.
15250 * tree-ssa-propagate.c: Likewise.
15251 * tree-ssa-reassoc.c: Likewise.
15252 * tree-ssa-sccvn.c: Likewise.
15253 * tree-ssa-scopedtables.c: Likewise.
15254 * tree-ssa-sink.c: Likewise.
15255 * tree-ssa-strlen.c: Likewise.
15256 * tree-ssa-structalias.c: Likewise.
15257 * tree-ssa-tail-merge.c: Likewise.
15258 * tree-ssa-ter.c: Likewise.
15259 * tree-ssa-threadedge.c: Likewise.
15260 * tree-ssa-threadupdate.c: Likewise.
15261 * tree-ssa-uncprop.c: Likewise.
15262 * tree-ssa-uninit.c: Likewise.
15263 * tree-ssa.c: Likewise.
15264 * tree-ssanames.c: Likewise.
15265 * tree-stdarg.c: Likewise.
15266 * tree-streamer-in.c: Likewise.
15267 * tree-streamer-out.c: Likewise.
15268 * tree-streamer.c: Likewise.
15269 * tree-switch-conversion.c: Likewise.
15270 * tree-tailcall.c: Likewise.
15271 * tree-vect-data-refs.c: Likewise.
15272 * tree-vect-generic.c: Likewise.
15273 * tree-vect-loop-manip.c: Likewise.
15274 * tree-vect-loop.c: Likewise.
15275 * tree-vect-patterns.c: Likewise.
15276 * tree-vect-slp.c: Likewise.
15277 * tree-vect-stmts.c: Likewise.
15278 * tree-vectorizer.c: Likewise.
15279 * tree-vrp.c: Likewise.
15280 * tree.c: Likewise.
15281 * tsan.c: Likewise.
15282 * ubsan.c: Likewise.
15283 * valtrack.c: Likewise.
15284 * value-prof.c: Likewise.
15285 * var-tracking.c: Likewise.
15286 * varasm.c: Likewise.
15287 * varpool.c: Likewise.
15288 * vmsdbgout.c: Likewise.
15289 * vtable-verify.c: Likewise.
15291 * wide-int-print.cc: Likewise.
15292 * wide-int-print.h: Likewise.
15293 * wide-int.cc: Likewise.
15294 * xcoffout.c: Likewise.
15295 * config/aarch64/aarch64-builtins.c: Likewise.
15296 * config/aarch64/aarch64.c: Likewise.
15297 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15298 * config/alpha/alpha.c: Likewise.
15299 * config/arc/arc.c: Likewise.
15300 * config/arm/aarch-common.c: Likewise.
15301 * config/arm/arm-builtins.c: Likewise.
15302 * config/arm/arm-c.c: Likewise.
15303 * config/arm/arm.c: Likewise.
15304 * config/avr/avr-c.c: Likewise.
15305 * config/avr/avr-log.c: Likewise.
15306 * config/avr/avr.c: Likewise.
15307 * config/bfin/bfin.c: Likewise.
15308 * config/c6x/c6x.c: Likewise.
15309 * config/cr16/cr16.c: Likewise.
15310 * config/cris/cris.c: Likewise.
15311 * config/darwin-c.c: Likewise.
15312 * config/darwin.c: Likewise.
15313 * config/default-c.c: Likewise.
15314 * config/epiphany/epiphany.c: Likewise.
15315 * config/epiphany/mode-switch-use.c: Likewise.
15316 * config/epiphany/resolve-sw-modes.c: Likewise.
15317 * config/fr30/fr30.c: Likewise.
15318 * config/frv/frv.c: Likewise.
15319 * config/ft32/ft32.c: Likewise.
15320 * config/glibc-c.c: Likewise.
15321 * config/h8300/h8300.c: Likewise.
15322 * config/i386/i386-c.c: Likewise.
15323 * config/i386/i386.c: Likewise.
15324 * config/i386/msformat-c.c: Likewise.
15325 * config/i386/winnt-cxx.c: Likewise.
15326 * config/i386/winnt-stubs.c: Likewise.
15327 * config/i386/winnt.c: Likewise.
15328 * config/ia64/ia64-c.c: Likewise.
15329 * config/ia64/ia64.c: Likewise.
15330 * config/iq2000/iq2000.c: Likewise.
15331 * config/lm32/lm32.c: Likewise.
15332 * config/m32c/m32c-pragma.c: Likewise.
15333 * config/m32c/m32c.c: Likewise.
15334 * config/m32r/m32r.c: Likewise.
15335 * config/m68k/m68k.c: Likewise.
15336 * config/mcore/mcore.c: Likewise.
15337 * config/mep/mep-pragma.c: Likewise.
15338 * config/mep/mep.c: Likewise.
15339 * config/microblaze/microblaze-c.c: Likewise.
15340 * config/microblaze/microblaze.c: Likewise.
15341 * config/mips/mips.c: Likewise.
15342 * config/mmix/mmix.c: Likewise.
15343 * config/mn10300/mn10300.c: Likewise.
15344 * config/moxie/moxie.c: Likewise.
15345 * config/msp430/msp430-c.c: Likewise.
15346 * config/msp430/msp430.c: Likewise.
15347 * config/nds32/nds32-cost.c: Likewise.
15348 * config/nds32/nds32-fp-as-gp.c: Likewise.
15349 * config/nds32/nds32-intrinsic.c: Likewise.
15350 * config/nds32/nds32-isr.c: Likewise.
15351 * config/nds32/nds32-md-auxiliary.c: Likewise.
15352 * config/nds32/nds32-memory-manipulation.c: Likewise.
15353 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15354 * config/nds32/nds32-predicates.c: Likewise.
15355 * config/nds32/nds32.c: Likewise.
15356 * config/nios2/nios2.c: Likewise.
15357 * config/nvptx/nvptx.c: Likewise.
15358 * config/pa/pa.c: Likewise.
15359 * config/pdp11/pdp11.c: Likewise.
15360 * config/rl78/rl78-c.c: Likewise.
15361 * config/rl78/rl78.c: Likewise.
15362 * config/rs6000/rs6000-c.c: Likewise.
15363 * config/rs6000/rs6000.c: Likewise.
15364 * config/rx/rx.c: Likewise.
15365 * config/s390/s390-c.c: Likewise.
15366 * config/s390/s390.c: Likewise.
15367 * config/sh/sh-c.c: Likewise.
15368 * config/sh/sh-mem.cc: Likewise.
15369 * config/sh/sh.c: Likewise.
15370 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15371 * config/sh/sh_treg_combine.cc: Likewise.
15372 * config/sol2-c.c: Likewise.
15373 * config/sol2-cxx.c: Likewise.
15374 * config/sol2-stubs.c: Likewise.
15375 * config/sol2.c: Likewise.
15376 * config/sparc/sparc-c.c: Likewise.
15377 * config/sparc/sparc.c: Likewise.
15378 * config/spu/spu-c.c: Likewise.
15379 * config/spu/spu.c: Likewise.
15380 * config/stormy16/stormy16.c: Likewise.
15381 * config/tilegx/mul-tables.c: Likewise.
15382 * config/tilegx/tilegx-c.c: Likewise.
15383 * config/tilegx/tilegx.c: Likewise.
15384 * config/tilepro/mul-tables.c: Likewise.
15385 * config/tilepro/tilepro-c.c: Likewise.
15386 * config/tilepro/tilepro.c: Likewise.
15387 * config/v850/v850-c.c: Likewise.
15388 * config/v850/v850.c: Likewise.
15389 * config/vax/vax.c: Likewise.
15390 * config/visium/visium.c: Likewise.
15391 * config/vms/vms-c.c: Likewise.
15392 * config/vms/vms.c: Likewise.
15393 * config/vxworks.c: Likewise.
15394 * config/winnt-c.c: Likewise.
15395 * config/xtensa/xtensa.c: Likewise.
15396 * common/config/bfin/bfin-common.c: Likewise.
15398 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
15400 * tree.h (tree_code_for_canonical_type_merging): New function.
15401 * tree.c (gimple_canonical_types_compatible_p): Use
15402 tree_code_for_canonical_type_merging..
15404 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15408 * doc/tm.texi: Regenerate.
15409 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
15410 * target.def (TARGET_RELAXED_ORDERING): Likewise.
15411 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
15412 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
15413 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
15414 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
15415 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
15416 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
15417 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
15419 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15421 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
15422 register fma steering pass.
15423 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
15424 AARCH64_TUNE_FMA_STEERING.
15426 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
15428 * tree.c (verify_type_variant): Verify that type and variant is
15430 (gimple_canonical_types_compatible_p): Look for main variants.
15432 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15434 * config.gcc (powerpc*-*-*): Add support for a new configure
15435 option --with-advance-toolchain=<xxx> which overrides using the
15436 default header files, libraries and dynamic linker.
15438 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
15439 specs to support the configure --with-advance-toolchain=<xxx>
15441 (INCLUDE_EXTRA_SPEC): Likewise.
15442 (LINK_OS_EXTRA_SPEC32): Likewise.
15443 (LINK_OK_EXTRA_SPEC64): Likewise.
15444 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
15445 (DYNAMIC_LINKER_PREFIX): Likewise.
15446 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
15448 (GLIBC_DYNAMIC_LINKER32): Likewise.
15449 (GLIBC_DYNAMIC_LINKER64): Likewise.
15450 (LINK_OS_LINUX_SPEC32): Likewise.
15451 (LINK_OS_LINUX_SPEC64): Likewise.
15453 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
15454 configuration option.
15456 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
15459 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
15460 to determine current function ABI.
15461 (ix86_function_value_regno_p): Ditto.
15463 2015-06-03 Martin Liska <mliska@suse.cz>
15465 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
15466 * bitmap.h (struct bitmap_usage): Likewise.
15467 * ggc-common.c (struct ggc_usage): Likewise.
15468 * mem-stats.h (struct mem_location): Likewise.
15469 (struct mem_usage): Likewise.
15470 * vec.c (struct vec_usage): Likewise.
15472 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
15474 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
15477 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
15479 * doc/plugins.texi (enum plugin_event): New event.
15480 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
15481 and PLUGIN_FINISH_FUNCTION.
15482 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
15483 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
15485 2015-06-03 Richard Biener <rguenther@suse.de>
15487 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
15488 compute GROUP_GAP for the first element.
15489 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
15492 2015-06-03 Nick Clifton <nickc@redhat.com>
15494 * config/rl78/rl78-real.md: Add peepholes to avoid a register
15495 copy when calling a function.
15496 * config/rl78/rl78.c (need_to_save): Do not push the frame
15497 pointer in an interrupt handler prologue if it is never used.
15499 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15501 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
15503 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15505 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
15506 reference when cloning alias node.
15508 2015-06-03 Martin Liska <mliska@suse.cz>
15510 * alloc-pool.h (struct pool_usage): Correct space padding.
15511 * ggc-page.c (ggc_print_statistics): Align columns in a report.
15512 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
15513 * tree.c (dump_tree_statistics): Align columns in a report.
15515 2015-06-03 Martin Liska <mliska@suse.cz>
15517 * alloc-pool.c (allocate_pool_descriptor): Remove.
15518 (struct pool_output_info): Likewise.
15519 (print_alloc_pool_statistics): Likewise.
15520 (dump_alloc_pool_statistics): Likewise.
15521 * alloc-pool.h (struct pool_usage): New struct.
15522 (pool_allocator::initialize): Change usage of memory statistics
15523 to a new interface.
15524 (pool_allocator::release): Likewise.
15525 (pool_allocator::allocate): Likewise.
15526 (pool_allocator::remove): Likewise.
15527 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
15528 for a pool allocator.
15529 * mem-stats.h (struct mem_location): Add new ctor.
15530 (struct mem_usage): Add counter for number of
15532 (mem_alloc_description::register_descriptor): New overload of
15533 * mem-stats.h (mem_location::to_string): New function.
15534 * bitmap.h (struct bitmap_usage): Use this new function.
15535 * ggc-common.c (struct ggc_usage): Likewise.
15538 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15540 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
15541 of GCC_INSN_FLAGS_H block.
15543 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
15545 * explow.c (plus_constant): Update check after force_const_mem call
15546 to see if the value returned is not a NULL_RTX.
15548 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15550 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
15551 remove instumentation thunks calling reachable functions.
15552 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
15553 * lto/lto-partition.c (privatize_symbol_name_1): New.
15554 (privatize_symbol_name): Privatize both decl and orig_decl
15555 names for instrumented functions.
15556 * cgraph.c (cgraph_node::verify_node): Add transparent
15557 alias chain check for instrumented node.
15559 2015-06-03 Marek Polacek <polacek@redhat.com>
15563 * tree.c (attribute_value_equal): Handle attribute format.
15564 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
15566 2015-06-03 Richard Biener <rguenther@suse.de>
15568 PR tree-optimization/63916
15569 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15570 Forward-propagate non-invariant addresses by splicing their
15571 reference ops if the result isn't going to be used by PRE.
15572 (vn_reference_lookup_3): Remove pointless assert.
15574 2015-06-03 Richard Biener <rguenther@suse.de>
15576 PR tree-optimization/66375
15577 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
15578 add to the evolution before following SSA edges.
15580 2015-06-03 Bin Cheng <bin.cheng@arm.com>
15582 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
15583 (dump_use, dump_cand, find_induction_variables): Pass new argument
15585 (record_use): Preserve the ssa name information in IV.
15587 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15589 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
15591 (add_mode_tests): Don't add mode tests if the predicate only
15592 accepts scalar constant integers. Otherwise, allow the mode
15593 of "op" to be VOIDmode if the predicate does accept such integers.
15595 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
15598 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
15599 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
15600 (aarch64_secondary_reload): Likewise
15601 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
15603 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
15606 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
15607 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15610 * cprop.c (try_replace_reg): Check cost of constants before propagating.
15612 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15614 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
15615 provide access to the IBM extended double floating point mode if
15616 long double is IEEE 128-bit floating point.
15617 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
15618 point if long double is the IBM extended double type.
15620 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
15621 enable adding IEEE 128-bit floating point support.
15622 (-mfloat128-software): Likewise.
15623 (-mfloat128-sw): Likewise.
15625 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
15626 128-bit floating point types to occupy any register if
15627 -mlong-double-64. Do not allow use of IFmode/KFmode unless
15628 -mfloat128-software is enabled.
15629 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
15631 (rs6000_option_override_internal): Add -mfloat128-* support.
15632 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
15634 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
15635 and float128 type nodes.
15636 (ieee128_float_type_node): Likewise.
15637 (ibm128_float_type_node): Likewise.
15639 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15642 * config/aarch64/geniterators.sh: Rewrite in awk.
15644 2015-06-02 Martin Liska <mliska@suse.cz>
15646 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
15647 values to avoid -Wmaybe-uninitialized errors.
15649 2015-06-02 Richard Biener <rguenther@suse.de>
15652 * dwarf2out.c (lookup_context_die): New function.
15653 (resolve_addr): Avoid forcing a full DIE for the
15654 target of a DW_TAG_GNU_call_site during late compilation.
15655 Instead create a stub DIE without a type if we have a
15656 context DIE present.
15658 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
15660 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
15662 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15664 PR tree-optimization/48052
15665 * cfgloop.h (struct control_iv): New.
15666 (struct loop): New field control_ivs.
15667 * tree-ssa-loop-niter.c : Include "stor-layout.h".
15668 (number_of_iterations_lt): Set no_overflow information.
15669 (number_of_iterations_exit): Init control iv in niter struct.
15670 (record_control_iv): New.
15671 (estimate_numbers_of_iterations_loop): Call record_control_iv.
15672 (loop_exits_before_overflow): New. Interface factored out of
15673 scev_probably_wraps_p.
15674 (scev_probably_wraps_p): Factor loop niter related code into
15675 loop_exits_before_overflow.
15676 (free_numbers_of_iterations_estimates_loop): Free control ivs.
15677 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
15679 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
15681 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
15682 the target doesn't belong to the current function.
15684 2015-06-02 Marek Polacek <polacek@redhat.com>
15686 PR middle-end/66345
15687 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
15688 get_maxval_strlen does not produce an INTEGER_CST.
15690 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
15692 * config/arc/constraints.md: Use lower-case names in match_code.
15693 * config/mmix/constraints.md: Likewise.
15695 2015-06-02 Richard Biener <rguenther@suse.de>
15697 PR tree-optimization/65961
15698 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
15699 check and clarify dump message.
15700 (vect_build_slp_tree): If all children are built up from scalars
15701 build up the parent from scalars instead.
15702 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
15704 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
15707 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
15708 instead of print ... .
15710 2015-06-02 Alan Modra <amodra@gmail.com>
15712 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
15715 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15717 PR tree-optimization/52563
15718 PR tree-optimization/62173
15719 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
15720 (alloc_iv, set_iv): New parameter.
15721 (determine_biv_step): Delete.
15722 (find_bivs): Inline original determine_biv_step. Pass new
15723 argument to set_iv.
15724 (idx_find_step): Use no_overflow information for conversion.
15725 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
15726 resolve_mixers handle folded_casts.
15727 (instantiate_scev_name): Change bool parameter to bool pointer.
15728 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
15729 (instantiate_array_ref, instantiate_scev_not): Ditto.
15730 (instantiate_scev_3, instantiate_scev_2): Ditto.
15731 (instantiate_scev_1, instantiate_scev_r): Ditto.
15732 (instantiate_scev_convert, ): Change parameter. Pass argument
15733 to chrec_convert_aggressive.
15734 (instantiate_scev): Change argument.
15735 (resolve_mixers): New parameter and set it.
15736 (scev_const_prop): New argument.
15737 * tree-scalar-evolution.h (resolve_mixers): New parameter.
15738 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
15740 (chrec_convert): New parameter. Move definition below.
15741 (chrec_convert_aggressive): New parameter and set it. Call
15742 convert_affine_scev.
15743 * tree-chrec.h (chrec_convert): New parameter.
15744 (chrec_convert_aggressive): Ditto.
15746 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
15748 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
15749 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
15750 the LHS of a no-return call if its type has variable size.
15751 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
15752 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
15754 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
15756 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
15757 * config.in: Regenerate.
15759 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
15761 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
15762 consecutive accesses within outer-loop with force_vectorize
15763 for references with zero step in inner-loop.
15765 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15767 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
15768 rather than from gcc/build directory.
15770 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15773 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
15774 for __sync memory models, emit initial loads and final barriers as
15777 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15780 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
15781 (aarch64_split_atomic_op): Check for __sync memory models, emit
15782 appropriate initial loads and final barriers.
15784 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15786 * Makefile.in: Fix gcov dependencies that should
15787 not point to a build folder.
15789 2015-06-01 Richard Biener <rguenther@suse.de>
15792 2015-05-29 Richard Biener <rguenther@suse.de>
15794 PR tree-optimization/66314
15795 * tree-ssa-threadupdate.c (create_block_for_threading): Add
15796 parameter that says which loop the new block belongs to.
15797 (ssa_create_duplicates): Blocks duplicated for the threaded
15798 path belong to the loop of the thread destination.
15800 2015-06-01 Martin Liska <mliska@suse.cz>
15802 * sched-deps.c: Include pool-alloc.h before
15803 cselib.h header file is included.
15805 2015-06-01 Richard Biener <rguenther@suse.de>
15807 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
15810 2015-06-01 Martin Liska <mliska@suse.cz>
15812 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
15813 a function local variable.
15815 2015-06-01 Martin Liska <mliska@suse.cz>
15817 * alloc-pool.c (create_alloc_pool): Remove.
15818 (empty_alloc_pool): Likewise.
15819 (free_alloc_pool): Likewise.
15820 (free_alloc_pool_if_empty): Likewise.
15821 (pool_alloc): Likewise.
15822 (pool_free): Likewise.
15823 * alloc-pool.h: Remove old declarations.
15825 2015-06-01 Martin Liska <mliska@suse.cz>
15827 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
15828 (ira_create_object): Likewise.
15829 (ira_create_allocno): Likewise.
15830 (ira_create_live_range): Likewise.
15831 (copy_live_range): Likewise.
15832 (ira_finish_live_range): Likewise.
15833 (ira_free_allocno_costs): Likewise.
15834 (finish_allocno): Likewise.
15835 (finish_allocnos): Likewise.
15836 (initiate_prefs): Likewise.
15837 (ira_create_pref): Likewise.
15838 (finish_pref): Likewise.
15839 (finish_prefs): Likewise.
15840 (initiate_copies): Likewise.
15841 (ira_create_copy): Likewise.
15842 (finish_copy): Likewise.
15843 (finish_copies): Likewise.
15844 (finish_prefs): Likewise.
15846 2015-06-01 Martin Liska <mliska@suse.cz>
15848 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
15849 (allocate_and_init_ipcp_value): Likewise.
15850 (ipcp_lattice::add_value): Likewise.
15851 (merge_agg_lats_step): Likewise.
15852 (ipcp_driver): Likewise.
15853 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
15854 (ipa_free_all_structures_after_iinln): Likewise.
15855 * ipa-prop.h: Likewise.
15857 2015-06-01 Martin Liska <mliska@suse.cz>
15859 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
15861 (set_hint_predicate): Likewise.
15862 (inline_summary_alloc): Likewise.
15863 (reset_inline_edge_summary): Likewise.
15864 (reset_inline_summary): Likewise.
15865 (set_cond_stmt_execution_predicate): Likewise.
15866 (set_switch_stmt_execution_predicate): Likewise.
15867 (compute_bb_predicates): Likewise.
15868 (estimate_function_body_sizes): Likewise.
15869 (inline_free_summary): Likewise.
15871 2015-06-01 Martin Liska <mliska@suse.cz>
15873 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
15874 (ipa_edge_duplication_hook): Likewise.
15875 (ipa_free_all_structures_after_ipa_cp): Likewise.
15876 (ipa_free_all_structures_after_iinln): Likewise.
15878 2015-06-01 Martin Liska <mliska@suse.cz>
15880 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
15881 (ipa_profile_generate_summary): Likewise.
15882 (ipa_profile_read_summary): Likewise.
15883 (ipa_profile): Likewise.
15885 2015-06-01 Martin Liska <mliska@suse.cz>
15887 * tree-ssa-structalias.c (new_var_info): Use new type-based
15889 (new_constraint): Likewise.
15890 (init_alias_vars): Likewise.
15891 (delete_points_to_sets): Likewise.
15893 2015-06-01 Martin Liska <mliska@suse.cz>
15895 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
15896 (free_strinfo): Likewise.
15897 (pass_strlen::execute): Likewise.
15899 2015-06-01 Martin Liska <mliska@suse.cz>
15901 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
15903 (vn_reference_insert_pieces): Likewise.
15904 (vn_phi_insert): Likewise.
15905 (visit_reference_op_call): Likewise.
15906 (copy_phi): Likewise.
15907 (copy_reference): Likewise.
15908 (process_scc): Likewise.
15909 (allocate_vn_table): Likewise.
15910 (free_vn_table): Likewise.
15912 2015-06-01 Martin Liska <mliska@suse.cz>
15914 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
15916 (add_repeat_to_ops_vec): Likewise.
15917 (get_ops): Likewise.
15918 (maybe_optimize_range_tests): Likewise.
15919 (init_reassoc): Likewise.
15920 (fini_reassoc): Likewise.
15922 2015-06-01 Martin Liska <mliska@suse.cz>
15924 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
15926 (bitmap_set_new): Likewise.
15927 (get_or_alloc_expr_for_constant): Likewise.
15928 (get_or_alloc_expr_for): Likewise.
15929 (phi_translate_1): Likewise.
15930 (compute_avail): Likewise.
15931 (init_pre): Likewise.
15932 (fini_pre): Likewise.
15934 2015-06-01 Martin Liska <mliska@suse.cz>
15936 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
15937 (delete_dep_node): Likewise.
15938 (create_deps_list): Likewise.
15939 (free_deps_list): Likewise.
15940 (sched_deps_init): Likewise.
15941 (sched_deps_finish): Likewise.
15943 2015-06-01 Martin Liska <mliska@suse.cz>
15945 * regcprop.c (free_debug_insn_changes): Use new type-based
15947 (replace_oldest_value_reg): Likewise.
15948 (pass_cprop_hardreg::execute): Likewise.
15950 2015-06-01 Martin Liska <mliska@suse.cz>
15952 * ira-build.c (initiate_cost_vectors): Use new type-based
15954 (ira_allocate_cost_vector): Likewise.
15955 (ira_free_cost_vector): Likewise.
15956 (finish_cost_vectors): Likewise.
15958 2015-06-01 Martin Liska <mliska@suse.cz>
15960 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
15962 (free_sched_pools): Likewise.
15963 * sel-sched-ir.h (_list_alloc): Likewise.
15964 (_list_remove): Likewise.
15966 2015-06-01 Martin Liska <mliska@suse.cz>
15968 * stmt.c (add_case_node): Use new type-based pool allocator.
15969 (expand_case): Likewise.
15970 (expand_sjlj_dispatch_table): Likewise.
15972 2015-06-01 Martin Liska <mliska@suse.cz>
15974 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
15975 (free_bb): Likewise.
15976 (pass_cse_reciprocals::execute): Likewise.
15978 2015-06-01 Martin Liska <mliska@suse.cz>
15980 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
15981 (sra_deinitialize) Likewise.
15982 (create_access_1) Likewise.
15983 (build_accesses_from_assign) Likewise.
15984 (create_artificial_child_access) Likewise.
15986 2015-06-01 Martin Liska <mliska@suse.cz>
15988 * dse.c (get_group_info):Use new type-based pool allocator.
15989 (dse_step0) Likewise.
15990 (free_store_info) Likewise.
15991 (delete_dead_store_insn) Likewise.
15992 (free_read_records) Likewise.
15993 (record_store) Likewise.
15994 (replace_read) Likewise.
15995 (check_mem_read_rtx) Likewise.
15996 (scan_insn) Likewise.
15997 (dse_step1) Likewise.
15998 (dse_step7) Likewise.
16000 2015-06-01 Martin Liska <mliska@suse.cz>
16002 * df-scan.c (struct df_scan_problem_data):Use new type-based
16004 (df_scan_free_internal) Likewise.
16005 (df_scan_alloc) Likewise.
16006 (df_grow_reg_info) Likewise.
16007 (df_free_ref) Likewise.
16008 (df_insn_create_insn_record) Likewise.
16009 (df_mw_hardreg_chain_delete) Likewise.
16010 (df_insn_info_delete) Likewise.
16011 (df_free_collection_rec) Likewise.
16012 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
16013 (df_sort_and_compress_mws) Likewise.
16014 (df_ref_create_structure) Likewise.
16015 (df_ref_record) Likewise.
16017 2015-06-01 Martin Liska <mliska@suse.cz>
16019 * df-problems.c (df_chain_create):Use new type-based pool allocator.
16020 (df_chain_unlink_1) Likewise.
16021 (df_chain_unlink) Likewise.
16022 (df_chain_remove_problem) Likewise.
16023 (df_chain_alloc) Likewise.
16024 (df_chain_free) Likewise.
16025 * df.h (struct dataflow) Likewise.
16027 2015-06-01 Martin Liska <mliska@suse.cz>
16029 * cselib.c (new_elt_list):Use new type-based pool allocator.
16030 (new_elt_loc_list) Likewise.
16031 (unchain_one_elt_list) Likewise.
16032 (unchain_one_elt_loc_list) Likewise.
16033 (unchain_one_value) Likewise.
16034 (new_cselib_val) Likewise.
16035 (cselib_init) Likewise.
16036 (cselib_finish) Likewise.
16038 2015-06-01 Martin Liska <mliska@suse.cz>
16040 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
16041 (sh_reorg) Likewise.
16043 2015-06-01 Martin Liska <mliska@suse.cz>
16045 * cfg.c (initialize_original_copy_tables):Use new type-based
16047 (free_original_copy_tables) Likewise.
16048 (copy_original_table_clear) Likewise.
16049 (copy_original_table_set) Likewise.
16051 2015-06-01 Martin Liska <mliska@suse.cz>
16053 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
16055 (asan_mem_ref_new) Likewise.
16056 (free_mem_ref_resources) Likewise.
16058 2015-06-01 Martin Liska <mliska@suse.cz>
16060 * var-tracking.c (variable_htab_free):Use new type-based
16062 (attrs_list_clear) Likewise.
16063 (attrs_list_insert) Likewise.
16064 (attrs_list_copy) Likewise.
16065 (shared_hash_unshare) Likewise.
16066 (shared_hash_destroy) Likewise.
16067 (unshare_variable) Likewise.
16068 (var_reg_delete_and_set) Likewise.
16069 (var_reg_delete) Likewise.
16070 (var_regno_delete) Likewise.
16071 (drop_overlapping_mem_locs) Likewise.
16072 (variable_union) Likewise.
16073 (insert_into_intersection) Likewise.
16074 (canonicalize_values_star) Likewise.
16075 (variable_merge_over_cur) Likewise.
16076 (dataflow_set_merge) Likewise.
16077 (remove_duplicate_values) Likewise.
16078 (variable_post_merge_new_vals) Likewise.
16079 (dataflow_set_preserve_mem_locs) Likewise.
16080 (dataflow_set_remove_mem_locs) Likewise.
16081 (variable_from_dropped) Likewise.
16082 (variable_was_changed) Likewise.
16083 (set_slot_part) Likewise.
16084 (clobber_slot_part) Likewise.
16085 (delete_slot_part) Likewise.
16086 (loc_exp_insert_dep) Likewise.
16087 (notify_dependents_of_changed_value) Likewise.
16088 (emit_notes_for_differences_1) Likewise.
16089 (vt_emit_notes) Likewise.
16090 (vt_initialize) Likewise.
16091 (vt_finalize) Likewise.
16093 2015-06-01 Martin Liska <mliska@suse.cz>
16095 * ira-color.c (init_update_cost_records):Use new type-based
16097 (get_update_cost_record) Likewise.
16098 (free_update_cost_record_list) Likewise.
16099 (finish_update_cost_records) Likewise.
16100 (initiate_cost_update) Likewise.
16102 2015-06-01 Martin Liska <mliska@suse.cz>
16104 * lra.c (init_insn_regs): Use new type-based pool allocator.
16105 (new_insn_reg) Likewise.
16106 (free_insn_reg) Likewise.
16107 (free_insn_regs) Likewise.
16108 (finish_insn_regs) Likewise.
16109 (init_insn_recog_data) Likewise.
16110 (init_reg_info) Likewise.
16111 (finish_reg_info) Likewise.
16112 (lra_free_copies) Likewise.
16113 (lra_create_copy) Likewise.
16114 (invalidate_insn_data_regno_info) Likewise.
16116 2015-06-01 Martin Liska <mliska@suse.cz>
16118 * lra-lives.c (free_live_range): Use new type-based pool allocator.
16119 (free_live_range_list) Likewise.
16120 (create_live_range) Likewise.
16121 (copy_live_range) Likewise.
16122 (lra_merge_live_ranges) Likewise.
16123 (remove_some_program_points_and_update_live_ranges) Likewise.
16124 (lra_live_ranges_init) Likewise.
16125 (lra_live_ranges_finish) Likewise.
16127 2015-06-01 Martin Liska <mliska@suse.cz>
16129 * et-forest.c (et_new_occ): Use new type-based pool allocator.
16130 (et_new_tree): Likewise.
16131 (et_free_tree): Likewise.
16132 (et_free_tree_force): Likewise.
16133 (et_free_pools): Likewise.
16134 (et_split): Likewise.
16136 2015-06-01 Martin Liska <mliska@suse.cz>
16138 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
16140 * alloc-pool.h (pool_allocator::pool_allocator): New function.
16141 (pool_allocator::release): Likewise.
16142 (inline pool_allocator::release_if_empty): Likewise.
16143 (inline pool_allocator::~pool_allocator): Likewise.
16144 (pool_allocator::allocate): Likewise.
16145 (pool_allocator::remove): Likewise.
16147 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
16149 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
16152 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
16154 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
16156 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
16157 (arm_macro_fusion_p): Likewise.
16158 (arm_macro_fusion_pair_p): Likewise.
16160 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
16162 * config/aarch64/aarch64-protos.h (tune_params): Rename
16163 fuseable_ops to fusible_ops.
16164 * config/aarch64/aarch64.c (generic_tunings): Rename
16165 fuseable_ops to fusible_ops.
16166 (cortexa53_tunings): Likewise.
16167 (cortexa57_tunings): Likewise.
16168 (thunderx_tunings): Likewise.
16169 (xgene1_tunings): Likewise.
16170 (aarch64_macro_fusion_p): Likewise.
16171 (aarch64_macro_fusion_pair_p): Likewise.
16173 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
16175 * config/s390/driver-native.c: New file.
16176 * config/s390/x-native: New file.
16177 * config.host: Add new files for s390.
16178 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
16180 * config.gcc: Likewise.
16181 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
16182 * config/s390/s390-opts.h (enum processor_type): Ditto.
16183 * config/s390/s390.c (s390_option_override): Catch unhandled
16186 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
16189 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
16190 redirection for instrumented calls.
16191 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
16192 (append_compiler_options): Append -fcheck-pointer-bounds.
16193 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
16194 (chkp_redirect_edge): New.
16195 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
16196 (chkp_redirect_edge): New.
16198 2015-06-01 Richard Biener <rguenther@suse.de>
16200 PR tree-optimization/66280
16201 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
16204 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16206 * config/aarch64/aarch64.md
16207 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
16210 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
16212 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
16213 Remove obsolete kludge.
16215 2015-06-01 Richard Biener <rguenther@suse.de>
16217 * tree-ssa-reassoc.c (get_rank): Simplify.
16219 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
16221 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
16222 * configure: Regenerated.
16224 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
16226 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
16227 issue (add space between string literal and macro).
16228 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
16230 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
16232 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
16233 implict or explicit -fPIE or -fpie.
16235 2015-05-30 Mike Frysinger <vapier@gentoo.org>
16237 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
16239 2015-05-28 DJ Delorie <dj@redhat.com>
16241 * expmed.c (extract_bit_field_1): Avoid clobbering a
16242 yet-to-be-used base/index register.
16244 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
16246 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
16247 (alias_stats): Add num_universal.
16248 (alias_set_subset_of): Special case pointers; be ready for NULL
16250 (alias_sets_conflict_p): Special case pointers; be ready for NULL
16252 (init_alias_set_entry): Break out from ...
16253 (record_alias_subset): ... here; propagate new fields;
16254 allocate children only when really needed.
16255 (get_alias_set): Do less generous pointer globbing.
16256 (dump_alias_stats_in_alias_c): Update statistics.
16258 2015-05-30 Alan Modra <amodra@gmail.com>
16260 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
16261 correct block for use of r12.
16262 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
16264 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16267 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
16270 2015-05-29 Jakub Jelinek <jakub@redhat.com>
16272 PR tree-optimization/66142
16273 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
16274 virtual phis that feed themselves.
16276 2015-05-29 Richard Biener <rguenther@suse.de>
16278 PR tree-optimization/66314
16279 * tree-ssa-threadupdate.c (create_block_for_threading): Add
16280 parameter that says which loop the new block belongs to.
16281 (ssa_create_duplicates): Blocks duplicated for the threaded
16282 path belong to the loop of the thread destination.
16284 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16286 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
16287 to cleanup-saved-temps.
16288 * doc/sourcebuild.texi (Clean up generated test files): Expand
16290 (dg-keep-saved-temps): Document new proc.
16291 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
16292 cleanup-saved-temps): Remove.
16294 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
16296 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
16297 gcc_AC_CHECK_DECLS.
16298 * configure: Regenerate.
16300 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16302 * config/nios2/linux.h (CPP_SPEC): Define.
16304 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16306 * config/microblaze/linux.h (CPP_SPEC): Define.
16308 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16310 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
16311 -pthread is specified.
16313 2015-05-28 Richard Biener <rguenther@suse.de>
16315 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
16316 (vect_fixup_scalar_cycles_with_patterns): Likewise.
16317 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
16318 after pattern recog.
16319 (vect_create_epilog_for_reduction): Properly handle reductions
16321 (vectorizable_reduction): Likewise.
16322 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
16324 (vect_get_constant_vectors): Create the correct number of
16325 initial values for reductions.
16326 (vect_schedule_slp_instance): Handle reduction chains that are
16327 type changing properly.
16328 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
16330 2015-05-28 Richard Biener <rguenther@suse.de>
16332 PR tree-optimization/66142
16333 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
16334 values better in memcpy destination handling. Handle non-aliasing
16337 2015-05-28 Lawrence Velázquez <vq@larryv.me>
16340 * config/darwin-c.c (version_components): New global enum.
16341 (parse_version, version_as_legacy_macro)
16342 (version_as_modern_macro, macosx_version_as_macro): New functions.
16343 (version_as_macro): Remove.
16344 (darwin_cpp_builtins): Use new function.
16346 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
16348 * builtins.c (expand_builtin_acc_on_device): Mark parameters
16349 with ATTRIBUTE_UNUSED.
16351 2015-05-28 Julian Brown <julian@codesourcery.com>
16355 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
16356 sequence for !ACCEL_COMPILER.
16358 2015-05-28 Nick Clifton <nickc@redhat.com>
16360 * config/rx/rx.c (push_regs): New function. Extracts code from...
16361 (rx_expand_prologue): ... here. Use push_regs to push even small
16362 spans of registers.
16363 (pop_regs): New function.
16364 (rx_expand_epilogue): Use pop_regs to pop even small spans of
16367 2015-05-28 Richard Biener <rguenther@suse.de>
16369 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
16371 (SLP_INSTANCE_BODY_COST_VEC): Remove.
16372 (vect_update_slp_costs_according_to_vf): Likewise.
16373 (vect_slp_analyze_operations): Update prototype.
16374 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
16375 vect_update_slp_costs_according_to_vf, adjust.
16376 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
16377 (vect_analyze_slp_cost_1): Likewise.
16378 (vect_analyze_slp_cost): Likewise. Properly deal with
16379 widening reduction ops. Commit body costs.
16380 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
16381 cost for loops from here.
16382 (vect_slp_analyze_operations): But do it from here when
16383 the vectorization factor is known and stmts are analyzed.
16384 (vect_bb_vectorization_profitable_p): Simplify.
16385 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
16386 (vect_update_slp_costs_according_to_vf): Remove.
16388 2015-05-27 Magnus Granberg <zorry@gentoo.org>
16389 H.J. Lu <hongjiu.lu@intel.com>
16391 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
16392 (BUILD_CFLAGS): Likewise.
16393 (BUILD_CXXFLAGS): Likewise.
16394 (LINKER): Add @NO_PIE_FLAG@.
16395 (BUILD_LDFLAGS): Likewise.
16396 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
16397 --enable-default-pie.
16398 * common.opt (fPIE): Initialize to -1.
16400 (no-pie): New option.
16401 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
16402 * configure.ac: Add --enable-default-pie.
16403 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
16404 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
16405 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
16406 * gcc.c (NO_PIE_SPEC): New.
16407 (PIE_SPEC): Likewise.
16408 (NO_FPIE1_SPEC): Likewise.
16409 (FPIE1_SPEC): Likewise.
16410 (NO_FPIE2_SPEC): Likewise.
16411 (FPIE2_SPEC): Likewise.
16412 (NO_FPIE2_SPEC): Likewise.
16413 (FPIE_SPEC): Likewise.
16414 (NO_FPIE_SPEC): Likewise.
16415 (NO_FPIC1_SPEC): Likewise.
16416 (FPIC1_SPEC): Likewise.
16417 (NO_FPIC2_SPEC): Likewise.
16418 (FPIC2_SPEC): Likewise.
16419 (NO_FPIC2_SPEC): Likewise.
16420 (FPIC_SPEC): Likewise.
16421 (NO_FPIC_SPEC): Likewise.
16422 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
16423 (FPIE1_OR_FPIC1_SPEC): Likewise.
16424 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
16425 (FPIE2_OR_FPIC2_SPEC): Likewise.
16426 (NO_FPIE_AND_FPIC_SPEC): Likewise.
16427 (FPIE_OR_FPIC_SPEC): Likewise.
16428 (LD_PIE_SPEC): Likewise.
16429 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
16430 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
16431 * config/darwin.h (PIE_SPEC): Renamed to ...
16432 (DARWIN_PIE_SPEC): This.
16433 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
16434 * config/darwin9.h (PIE_SPEC): Renamed to ...
16435 (DARWIN_PIE_SPEC): This.
16436 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
16437 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
16438 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
16439 FPIE2_OR_FPIC2_SPEC.
16440 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
16441 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
16442 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
16443 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16444 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16445 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16446 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
16447 * config/m32r/m32r.h (ASM_SPEC): Likewise.
16448 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
16449 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16450 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
16451 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
16452 * config/sparc/linux.h (ASM_SPEC): Likewise.
16453 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16454 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
16455 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
16456 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16457 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16458 * config/sparc/sparc.h (ASM_SPEC): Likewise.
16459 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
16460 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
16461 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
16462 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
16463 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
16464 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
16465 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
16466 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
16467 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
16468 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
16469 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
16470 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
16471 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16472 * config/vax/linux.h (ASM_SPEC): Likewise.
16473 * doc/install.texi: Document --enable-default-pie.
16474 * doc/invoke.texi: Document -no-pie.
16475 * config.in: Regenerated.
16476 * configure: Likewise.
16478 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
16480 PR rtl-optimization/66168
16481 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
16482 can_move_invariant_reg.
16484 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
16487 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
16488 REG_EQUAL note when doing insert.
16490 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
16491 instead of "%d" for 'o' operand.
16493 2015-05-27 Nathan Sidwell <nathan@acm.org>
16496 * tree.c (build_pointer_type_for_mode): Canonical type does not
16497 inherit can_alias_all.
16498 (build_reference_type_for_mode): Likewise.
16500 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
16502 * expr.h (array_at_struct_end_p): Move to...
16503 (array_ref_element_size): Likewise.
16504 (component_ref_field_offset): Likewise.
16505 * tree.h (array_ref_element_size): ...here.
16506 (array_at_struct_end_p): Likewise.
16507 (component_ref_field_offset): Likewise.
16508 * expr.c (array_ref_element_size): Move to...
16509 (array_ref_low_bound): Likewise.
16510 (array_at_struct_end_p): Likewise.
16511 (array_ref_up_bound): Likewise.
16512 (component_ref_field_offset): Likewise.
16513 * tree.c (array_ref_element_size): ...here.
16514 (array_ref_low_bound): Likewise.
16515 (array_ref_up_bound): Likewise.
16516 (array_at_struct_end_p): Likewise.
16517 (component_ref_field_offset): Likewise.
16519 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16520 Szabolcs Nagy <szabolcs.nagy@arm.com>
16522 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
16524 2015-05-27 Jason Merrill <jason@redhat.com>
16527 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
16528 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
16529 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
16531 2015-05-22 Aditya Kumar <hiraditya@msn.com>
16533 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
16536 * statistics.c (statistics_fini_pass): Print pass name.
16538 2015-05-27 Richard Biener <rguenther@suse.de>
16540 PR tree-optimization/66272
16542 2014-08-15 Richard Biener <rguenther@suse.de>
16544 PR tree-optimization/62031
16545 * tree-data-ref.c (dr_analyze_indices): Do not set
16546 DR_UNCONSTRAINED_BASE.
16547 (dr_may_alias_p): All indirect accesses have to go the
16548 formerly DR_UNCONSTRAINED_BASE path.
16549 * tree-data-ref.h (struct indices): Remove
16550 unconstrained_base member.
16551 (DR_UNCONSTRAINED_BASE): Remove.
16553 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
16555 * dwarf2out.c: Remove block_map.
16556 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
16557 (gen_lexical_block_die): Same.
16558 (dwarf2out_function_decl): Remove block_map use.
16559 (dwarf2out_c_finalize): Same.
16560 * tree-core.h (struct tree_block): Add die field.
16561 * tree.h (BLOCK_DIE): New.
16563 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16566 * expr.c (memory_load_overlap): New function.
16567 (emit_push_insn): When pushing partial args to the stack would
16568 clobber the register part load the overlapping part into a pseudo
16569 and put it into the hard reg after pushing. Change return type
16570 to bool. Add bool argument.
16571 * expr.h (emit_push_insn): Change return type to bool.
16573 * calls.c (expand_call): Cancel sibcall optimization when encountering
16574 partial argument on targets with ARGS_GROW_DOWNWARD and
16575 !STACK_GROWS_DOWNWARD.
16576 (emit_library_call_value_1): Update callsite of emit_push_insn.
16577 (store_one_arg): Likewise.
16579 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16581 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
16583 2015-05-27 Martin Liska <mliska@suse.cz>
16585 * Makefile.in: Add additional dependencies related to memory report
16587 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
16588 * bitmap.c (struct bitmap_descriptor_d): Remove.
16589 (struct loc): Likewise.
16590 (struct bitmap_desc_hasher): Likewise.
16591 (bitmap_desc_hasher::hash): Likewise.
16592 (bitmap_desc_hasher::equal): Likewise.
16593 (get_bitmap_descriptor): Likewise.
16594 (bitmap_register): User new memory descriptor API.
16595 (register_overhead): Likewise.
16596 (bitmap_find_bit): Register nsearches and search_iter statistics.
16597 (struct bitmap_output_info): Remove.
16598 (print_statistics): Likewise.
16599 (dump_bitmap_statistics): Use new memory descriptor.
16600 * bitmap.h (struct bitmap_usage): New class.
16601 * genmatch.c: Extend header file inclusion.
16602 * genpreds.c: Likewise.
16603 * ggc-common.c (struct ggc_usage): New class.
16604 (struct ggc_loc_desc_hasher): Remove.
16605 (ggc_loc_desc_hasher::hash): Likewise.
16606 (ggc_loc_desc_hasher::equal): Likewise.
16607 (struct ggc_ptr_hash_entry): Likewise.
16608 (struct ptr_hash_hasher): Likewise.
16609 (ptr_hash_hasher::hash): Likewise.
16610 (ptr_hash_hasher::equal): Likewise.
16611 (make_loc_descriptor): Likewise.
16612 (ggc_prune_ptr): Likewise.
16613 (dump_ggc_loc_statistics): Use new memory descriptor.
16614 (ggc_record_overhead): Likewise.
16615 (ggc_free_overhead): Likewise.
16616 (final_cmp_statistic): Remove.
16617 (cmp_statistic): Likewise.
16618 (ggc_add_statistics): Liekwise.
16619 (ggc_prune_overhead_list): Likewise.
16620 * hash-map-traits.h: New file.
16621 * hash-map.h (struct default_hashmap_traits): Move the traits to a
16622 separate header file.
16623 * hash-set.h: Pass memory statistics info to ctor.
16624 * hash-table.c (void dump_hash_table_loc_statistics): New function.
16625 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
16626 (hash_table::~hash_table): Register memory release operation.
16627 (hash_table::alloc_entries): Handle memory allocation operation.
16628 (hash_table::expand): Likewise.
16629 * inchash.c (iterative_hash_hashval_t): Move implementation to header
16631 (iterative_hash_host_wide_int): Likewise.
16632 * inchash.h (class hash): Likewise.
16633 * mem-stats-traits.h: New file.
16634 * mem-stats.h: New file.
16635 (mem_location): Add new class.
16636 (mem_usage): Likewise.
16637 (mem_alloc_description): Likewise.
16638 * sese.c: Add new header file inclusision.
16639 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
16641 * tree-sra.c: Add new header file inclusision.
16642 * vec.c (struct vec_descriptor): Remove.
16643 (hash_descriptor): Likewise.
16644 (struct vec_usage): Likewise.
16645 (struct ptr_hash_entry): Likewise.
16646 (hash_ptr): Likewise.
16647 (eq_ptr): Likewise.
16648 (vec_prefix::register_overhead): Use new memory descriptor API.
16649 (vec_prefix::release_overhead): Likewise.
16650 (add_statistics): Remove.
16651 (dump_vec_loc_statistics): Use new memory descriptor API.
16652 * vec.h (struct vec_prefix): Likewise.
16653 (va_heap::reserve): Likewise.
16654 (va_heap::release): Likewise.
16655 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
16657 2015-05-27 Richard Biener <rguenther@suse.de>
16659 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
16660 earlier and remove ??? comment.
16661 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
16662 and got called from loop analysis bail out. Always pass the SLP
16663 node to the vectorizable_* functions.
16664 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
16665 the premature SLP check here.
16666 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
16667 detected SLP stmts.
16668 (vect_detect_hybrid_slp_1): Likewise.
16670 2015-05-26 Jeff Law <law@redhat.com>
16672 * combine.c (find_split_point): Verify that the shift count is a
16673 constant when choosing (plus (ashift ...)) as a split point.
16675 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
16676 No functional changes.
16678 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
16680 * ipa-polymorphic-call.c
16681 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
16682 case when call target is already known.
16684 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
16687 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
16688 take into account the case that operands[1] and operands[2]
16689 are the same register.
16691 2015-05-26 Michael Matz <matz@suse.de>
16693 PR middle-end/66251
16695 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
16697 (vect_create_vectorized_demotion_stmts): Always set
16698 STMT_VINFO_VEC_STMT, also with SLP.
16699 (vectorizable_store): Handle strided group stores.
16701 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16704 * config/aarch64/aarch64.md
16705 (*adds_shift_imm_<mode>): New pattern.
16706 (*subs_shift_imm_<mode>): Likewise.
16707 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16708 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16709 (*add_uxt<mode>_shift2): Likewise.
16710 (*add_uxtsi_shift2_uxtw): Likewise.
16711 (*sub_uxt<mode>_shift2): Likewise.
16712 (*sub_uxtsi_shift2_uxtw): Likewise.
16714 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
16716 * config/rs6000/constraints.md (Y, U): Use match_test.
16718 2015-05-26 Christian Bruel <christian.bruel@st.com>
16721 * config/arm/arm.c (arm_option_check_internal)
16722 (arm_option_params_internal): Check opts->target_flags to set macros.
16723 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16724 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
16725 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16726 (builtin_define): Replaced with def_or_undef_macro.
16727 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16728 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
16729 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16730 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
16731 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
16732 (TARGET_ARM_FEATURE_LDREX_P)
16733 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
16734 * config/arm/arm-c.c (def_or_undef_macro): New function.
16735 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
16737 2015-05-26 Christian Bruel <christian.bruel@st.com>
16739 * c-common.h (builtin_define_with_int_value)
16740 (builtin_define_type_sizeof): Declare.
16741 * c-cppbuiltin.c (builtin_define_with_int_value)
16742 (builtin_define_type_sizeof): Externalize.
16743 (builtin_define_std): Cleanup declaration.
16744 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
16745 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
16746 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
16747 (builtin_define, builtin_assert): New macros.
16749 2015-05-26 Richard Biener <rguenther@suse.de>
16751 PR tree-optimization/66142
16752 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
16753 MEM_REFs for the same base address.
16755 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16758 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
16760 2015-05-26 Jason Merrill <jason@redhat.com>
16762 * configure.ac: Set CXXFLAGS for ISL test.
16763 * configure: Regenerate.
16765 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
16766 strstr and basename.
16767 * configure: Regenerate.
16769 2015-05-26 Richard Biener <rguenther@suse.de>
16771 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
16772 X % C -> X & (C - 1) for C being a power-of two to ...
16773 * match.pd: ... patterns.
16775 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
16777 * match.pd (swapped_tcc_comparison): New operator list.
16778 (-A CMP -B): New simplification.
16779 * fold-const.c (fold_comparison): Remove corresponding code.
16781 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16783 * caller-save.c (init_caller_save): Base temporary register numbers
16784 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
16785 * cfgloopanal.c (init_set_costs): Likewise.
16786 * dojump.c (prefer_and_bit_test): Likewise.
16787 * expr.c (init_expr_target): Likewise.
16788 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16789 * lower-subreg.c (init_lower_subreg): Likewise.
16790 * postreload.c (reload_cse_regs_1): Likewise.
16792 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16794 * gensupport.h (compute_test_codes): Declare.
16795 * gensupport.c (compute_predicate_codes): Rename to...
16796 (compute_test_codes): ...this. Generalize error message.
16797 (process_define_predicate): Update accordingly.
16798 * genpreds.c (compute_maybe_allows): Delete.
16799 (add_constraint): Use compute_test_codes to determine whether
16800 something can accept a SUBREG, REG or MEM.
16802 2015-05-26 Torvald Riegel <triegel@redhat.com>
16804 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
16805 'memory model' to align with C++11; fix description of memory orders;
16808 2015-05-26 Richard Biener <rguenther@suse.de>
16810 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
16811 (vect_analyze_loop_operations): ... here. Remove slp parameter,
16812 detect whether we apply SLP. Remove call to
16813 vect_update_slp_costs_according_to_vf.
16814 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
16815 vect_update_slp_costs_according_to_vf from here. Dispatch
16816 to vect_slp_analyze_operations to analyze SLP stmts.
16817 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
16818 unused bb_vec_info parameter, adjust assert.
16819 (vect_slp_analyze_operations): Pass in the slp instance tree
16820 instead of bb_vec_info.
16821 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
16822 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
16824 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16826 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
16827 Q_REGS. Expand comment.
16828 (REG_CLASS_NAMES): Ditto.
16829 (REG_CLASS_CONTENTS): Ditto.
16831 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
16834 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
16835 when LEGACY_INT_REGNO_P is processed.
16837 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16839 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
16841 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16843 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
16844 register if not marked dead/unused, before return.
16846 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16849 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
16850 is set; check for assembler name at LTO time.
16851 (type_in_anonymous_namespace): Remove hacks, check that all
16852 anonymous types are called "<anon>"
16853 (odr_type_p): Simplify; add check for "<anon>"
16854 (odr_subtypes_equivalent): Add odr_type_p check.
16855 * tree.c (need_assembler_name_p): Even anonymous namespace needs
16858 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16860 * ipa-utils.h (method_class_type): Remove.
16861 * cgraphunit.c (walk_polymorphic_call_targets): Use
16862 TYPE_METHOD_BASETYPE.
16863 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
16864 on main variants only.
16865 (method_class_type): Remove.
16866 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
16867 (build_type_inheritance_graph): Likewise.
16868 * ipa-icf.c (sem_function::equals_wpa): Likewise.
16869 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
16870 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
16872 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16874 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
16875 is_typedef_decl, typedef_variant_p): Constify.
16876 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
16877 is_typedef_decl, typedef_variant_p): Constify.
16879 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16881 * defaults.h (gen_tablejump): New function.
16882 (HAVE_tablejump): Add default value.
16884 * stmt.c: Likewise.
16886 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16888 * defaults.h (gen_store_multiple): New function.
16889 (HAVE_store_multiple): Add default value.
16890 * expr.c (move_block_from_reg): Adjust.
16892 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16894 * defaults.h (gen_load_multiple): New function.
16895 (HAVE_load_multiple): Add default value.
16896 * expr.c (move_block_to_reg): Adjust.
16898 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16900 * defaults.h (gen_mem_signal_fence): New function.
16901 (HAVE_mem_signal_fence): Add default value.
16902 * optabs.c: Adjust.
16904 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16906 * defaults.h (gen_memory_barrier): New function.
16907 (HAVE_memory_barrier): Add default value.
16908 * optabs.c: Adjust.
16910 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16912 * defaults.h (gen_mem_thread_fence): New function.
16913 (HAVE_mem_thread_fence): Add default definition.
16914 * optabs.c: Adjust.
16916 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16918 * combine.c (find_split_point): Check the value of HAVE_lo_sum
16919 instead of if it is defined.
16920 (combine_simplify_rtx): Likewise.
16921 * lra-constraints.c (process_address_1): Likewise.
16922 * config/darwin.c: Adjust.
16923 * genconfig.c (main): Always define HAVE_lo_sum.
16925 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16927 * genmatch.c (parser::parse_operation): Reject expanding
16928 operator-list inside 'for'.
16930 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16932 * genmatch.c (parser::parse_for): Reject iterator if used as
16935 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16937 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
16938 after end of id-list.
16940 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16942 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
16943 we do not try to compute canonical type for type that does not need
16945 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
16947 * tree.h (type_with_alias_set_p): New.
16949 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16951 * tree.c (gimple_canonical_types_compatible_p): Do not compare
16952 function attributes.
16953 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
16955 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
16957 * Makefile.in (check_gcc_parallelize): Delete.
16958 (lang_checks_parallelized): Update comment.
16960 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
16962 PR rtl-optimization/66237
16963 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
16964 location of an "as_a" cast.
16966 2015-05-22 Jeff Law <law@redhat.com>
16968 * config/pa/pa.md (non-canonical shift-add insns): Remove.
16969 (peepholes with non-canonical RTL sources): Remove.
16970 (peepholes for indexed stores of FP regs in integer modes): Match and
16971 generate canonical RTL.
16973 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16975 PR tree-optimization/63387
16976 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
16977 ((x ord x) & (y ord y) -> (x ord y),
16978 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
16979 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
16980 vectors like scalars.
16982 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16984 * convert.c (convert_to_integer, convert_to_vector): Include the
16985 types in the error message.
16987 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16989 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
16992 2015-05-22 Jeff Law <law@redhat.com>
16994 * config/pa/pa.md (integer_indexed_store splitters): Use
16995 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
16996 insns -- adjusting the constant 2nd operand accordingly.
16998 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
16999 (plus (ashift X log2) Y) if it is a split point.
17001 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
17002 out of hppa_legitimize_address to handle both forms of a multiply
17004 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
17005 Always generate the ASHIFT variant as the result is not directly
17006 used in a MEM. Update comments and refactor slightly to improve
17009 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17012 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
17013 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
17014 (aarch64_composite_type_p): Return false if given type and mode are
17015 for a short vector.
17017 2015-05-22 Richard Biener <rguenther@suse.de>
17019 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
17021 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
17022 patterns when determining whether SLP is pure.
17023 (vect_is_slp_reduction): Remove check for pattern stmts.
17024 (vect_is_simple_reduction_1): Remove dead code.
17025 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
17026 (vect_get_and_check_slp_defs): Pass in the stmt number.
17027 Allow the first def in a reduction to be not a pattern stmt when
17028 the rest of the stmts def are patterns.
17029 (vect_build_slp_tree_1): Allow tcc_expression codes like
17030 SAD_EXPR and DOT_PROD_EXPR.
17031 (vect_build_slp_tree): Adjust.
17032 (vect_analyze_slp): Refactor and move BB vect error message ...
17033 (vect_slp_analyze_bb_1): ... here.
17035 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
17037 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
17038 for CSWTCH temporary.
17040 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17042 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
17043 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
17046 2015-05-22 Richard Biener <rguenther@suse.de>
17048 PR tree-optimization/66251
17049 * tree-vect-stmts.c (vectorizable_conversion): Properly
17050 set STMT_VINFO_VEC_STMT even for the SLP case.
17052 2015-05-22 Marek Polacek <polacek@redhat.com>
17054 * doc/extend.texi: Use @pxref instead of @xref.
17056 2015-05-22 hiraditya <hiraditya@msn.com>
17058 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
17061 2015-05-22 Richard Biener <rguenther@suse.de>
17063 PR tree-optimization/65701
17064 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17065 Move peeling cost models into one place. Peel for alignment
17066 for single loads only if an aligned load is cheaper than
17069 2015-05-22 Marek Polacek <polacek@redhat.com>
17072 * doc/extend.texi (Enumerator Attributes): New section.
17073 Document syntax of enumerator attributes.
17075 2015-05-22 Richard Biener <rguenther@suse.de>
17077 * tree-vect-loop.c (get_reduction_op): New function.
17078 (vect_model_reduction_cost): Use it, add reduc_index parameter.
17079 Make ready for BB reductions.
17080 (vect_create_epilog_for_reduction): Use get_reduction_op.
17081 (vectorizable_reduction): Init reduc_index to a valid value.
17082 Adjust vect_model_reduction_cost call.
17083 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
17084 operand for reduction defaults. Add SAD_EXPR support.
17085 Assert we have a neutral op for SLP reductions.
17086 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
17087 walking pattern stmt ops only recurse to SSA names.
17089 2015-05-22 Richard Biener <rguenther@suse.de>
17091 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
17092 assert with guard, remove check on detected reduction.
17093 (vect_recog_sad_pattern): Likewise.
17094 (vect_recog_widen_sum_pattern): Likewise.
17096 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17098 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
17099 __always_inline__ attribute.
17100 (vaesdq_u8): Likewise.
17101 (vaesmcq_u8): Likewise.
17102 (vaesimcq_u8): Likewise.
17103 (vsha1cq_u32): Likewise.
17104 (vsha1mq_u32): Likewise.
17105 (vsha1pq_u32): Likewise.
17106 (vsha1h_u32): Likewise.
17107 (vsha1su0q_u32): Likewise.
17108 (vsha1su1q_u32): Likewise.
17109 (vsha256hq_u32): Likewise.
17110 (vsha256h2q_u32): Likewise.
17111 (vsha256su0q_u32): Likewise.
17112 (vsha256su1q_u32): Likewise.
17113 (vmull_p64): Likewise.
17114 (vmull_high_p64): Likewise.
17116 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17118 * final.c (final_scan_insn): Don't check HAVE_peephole with the
17120 * output.h: Likewise.
17121 * genconfig.c (main): Alwways define HAVE_peephole.
17122 * genpeep.c: Don't emit checks of HAVE_peephole.
17124 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17126 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
17127 check HAVE_conditional_move with the preprocessor.
17129 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17131 * genconfig.c (main): Always define HAVE_conditional_move.
17132 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
17133 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
17136 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17138 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
17139 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
17140 and FRAME_POINTER_REGNUM with the preprocessor.
17142 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17144 * defaults.h: Add default for STACK_PUSH_CODE.
17145 * expr.c: Don't redefine STACK_PUSH_CODE.
17146 * recog.c: Likewise.
17148 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17150 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
17151 sched-deps.c: Use if instead of preprocessor checks with
17152 STACK_GROWS_DOWNWARD.
17154 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17156 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
17158 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
17159 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
17160 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
17161 * doc/tm.texi: Regenerate.
17163 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
17166 * config/i386/constraints.md (Bg): New constraint for GOT memory
17168 * config/i386/i386.md (*call_got_x32): New pattern.
17169 (*call_value_got_x32): Likewise.
17170 * config/i386/predicates.md (GOT_memory_operand): New predicate.
17172 2015-05-21 Jakub Jelinek <jakub@redhat.com>
17174 PR tree-optimization/66233
17175 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
17178 2015-05-21 Jeff Law <law@redhat.com>
17180 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
17181 than MULT for shadd sequences.
17183 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
17185 * alias.c (alias_stats): New static var.
17186 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
17187 (dump_alias_stats_in_alias_c): New function.
17188 * alias.h (dump_alias_stats_in_alias_c): Declare.
17189 * tree-ssa-alias.c (dump_alias_stats): Call it.
17191 2015-05-08 Michael Matz <matz@suse.de>
17193 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
17195 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
17196 (STMT_VINFO_STRIDED_P): ... this.
17197 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
17198 (vect_verify_datarefs_alignment): Likewise.
17199 (vect_enhance_data_refs_alignment): Likewise.
17200 (vect_analyze_data_ref_access): Likewise.
17201 (vect_analyze_data_refs): Accept strided stores.
17202 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
17203 (vect_model_load_cost): Adjust for macro rename.
17204 (vectorizable_mask_load_store): Likewise.
17205 (vectorizable_load): Likewise.
17206 (vectorizable_store): Open code strided stores.
17208 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17210 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
17211 Document sqrt_insn.
17213 2015-05-21 Richard Biener <rguenther@suse.de>
17216 * match.pd: Guard pattern optimzing (int)(float)int
17217 conversions to apply only on GIMPLE.
17219 2015-05-21 Jeff Law <law@redhat.com>
17221 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
17222 multiply-accumulate/shift-add insn generation.
17224 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
17227 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
17228 operands[1] are the same.
17230 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
17232 PR middle-end/66221
17233 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
17234 build_distinct_type_copy to copy bounds.
17236 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
17238 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
17239 Change to unsigned int.
17241 2015-05-20 Jeff Law <law@redhat.com>
17243 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
17244 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
17245 (pa_shadd_constant_p): Allow constants for shadd insns rather
17246 than valid scaling constants for memory addresses.
17247 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
17248 * config/pa/predicates.md (mem_shadd_operand): New predicate.
17249 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
17250 (shift-add insns using ASHIFT): New patterns.
17252 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
17254 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
17256 (fix_up_fall_thru_edges): Likewise.
17257 (fix_crossing_conditional_branches): Likewise. Promote jump targets
17258 from to rtx_insn to rtx_code_label where feasible.
17259 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
17260 gen_move_insn (returned type changed to rtx_insn).
17261 * builtins.c (expand_errno_check): Fix arguments of
17262 do_compare_rtx_and_jump (now expects rtx_code_label).
17263 (expand_builtin_acc_on_device): Likewise.
17264 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
17265 invert_jump (now exprects rtx_jump_insn).
17266 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
17267 (construct_init_block): Use rtx_code_label.
17268 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
17269 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
17270 calling redirect_jump.
17271 (patch_jump_insn): Likewise.
17272 (redirect_branch_edge): Likewise.
17273 (force_nonfallthru_and_redirect): Likewise.
17274 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
17276 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
17277 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
17278 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
17279 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
17280 to store the value retured by gen_label_rtx.
17281 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
17283 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
17284 (split_branches): Fix calls of redirect_jump.
17285 * dojump.c (jumpifnot): Promote argument type from rtx to
17287 (jumpifnot_1): Likewise.
17288 (jumpif): Likewise.
17289 (jumpif_1): Likewise.
17290 (do_jump_1): Likewise.
17291 (do_jump): Likewise. Use rtx_code_label when feasible.
17292 (do_jump_by_parts_greater_rtx): Likewise.
17293 (do_jump_by_parts_zero_rtx): Likewise.
17294 (do_jump_by_parts_equality_rtx): Likewise.
17295 (do_compare_rtx_and_jump): Likewise.
17296 * dojump.h: Update function prototypes.
17297 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
17299 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
17301 (emit_label_before): Likewise.
17302 (emit_jump_insn_after_noloc): Likewise.
17303 (emit_jump_insn_after_setloc): Likewise.
17304 (emit_jump_insn_after): Likewise
17305 (emit_jump_insn_before_setloc): Likewise.
17306 (emit_jump_insn_before): Likewise.
17307 (emit_label_before): Promote return type to rtx_code_label.
17308 (emit_label): Likewise.
17309 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
17310 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
17312 (emit_stack_restore): Likewise.
17313 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
17314 (do_cmp_and_jump): Likewise.
17315 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
17316 from rtx to rtx_code_label.
17317 (gen_move_insn_uncast): New function.
17318 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
17319 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
17320 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
17321 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
17322 invert_jump_1 and redirect_jump_1.
17323 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
17324 do_compare_rtx_and_jump.
17325 (expand_addsub_overflow): Likewise.
17326 (expand_neg_overflow): Likewise.
17327 (expand_mul_overflow): Likewise.
17328 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
17329 return value of gen_move_insn.
17330 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
17331 * loop-doloop.c (add_test): Use rtx_code_label.
17332 (doloop_modify): Likewise.
17333 (doloop_optimize): Likewise.
17334 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
17335 * lra-constraints.c (emit_spill_move): Remove cast of value returned
17337 (inherit_reload_reg): Add cast when calling dump_insn_slim.
17338 (split_reg): Likewise.
17339 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
17341 * optabs.c (expand_binop_directly): Remove casts of values returned by
17343 (expand_unop_direct): Likewise.
17344 (expand_abs): Likewise.
17345 (maybe_emit_unop_insn): Likewise.
17346 (maybe_gen_insn): Promote return type to rtx_insn.
17347 * optabs.h: Update prototype of maybe_gen_insn.
17348 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
17350 * recog.c (struct peep2_insn_data): Promote type of insn field to
17352 (peep2_reinit_state): Use NULL instead of NULL_RTX.
17353 (peep2_attempt): Remove casts of insn in peep2_insn_data.
17354 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
17355 * recog.h (struct insn_gen_fn): Promote return types of function
17356 pointers and operator ().from rtx to rtx_insn.
17357 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
17358 (fill_eager_delay_slots): Likewise.
17359 (relax_delay_slots): Likewise.
17360 (make_return_insns): Likewise.
17361 (dbr_schedule): Likewise.
17362 (optimize_skips): Likewise.
17363 (reorg_redirect_jump): Likewise.
17364 (fill_slots_from_thread): Likewise.
17365 * reorg.h: Update prototypes.
17366 * resource.c (find_dead_or_set_registers): Use dyn_cast to
17367 rtx_jump_insn instead of check. Use it's jump_target method.
17368 * rtl.h (rtx_jump_insn::jump_label): Define new method.
17369 (rtx_jump_insn::jump_target): Define new method.
17370 (rtx_jump_insn::set_jump_target): Define new method.
17371 * rtlanal.c (tablejump_p): Promote type of one local variable.
17372 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
17373 (sched_analyze_insn): Likewise.
17374 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
17375 (print_insn): Likewise.
17376 * stmt.c (label_rtx): Promote return type to rtx_insn.
17377 (force_label_rtx): Likewise.
17378 (jump_target_rtx): Define new function.
17379 (expand_label): Use it, get rid of one cast.
17380 (expand_naked_return): Promote rtx to rtx_code_label.
17381 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
17382 (expand_case): Use rtx_code_label instread of rtx where feasible.
17383 (expand_sjlj_dispatch_table): Likewise.
17384 (emit_case_nodes): Likewise.
17385 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
17386 * store-motion.c (insert_store): Make use of new return type of
17387 gen_move_insn and remove a cast.
17388 (replace_store_insn): Likewise.
17390 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
17392 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
17393 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
17395 2015-05-20 Jeff Law <law@redhat.com>
17397 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
17398 dispose of the jump thread path when the jump threading
17399 opportunity is cancelled.
17401 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17403 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
17404 when printing the caret character.
17406 2015-05-20 Marek Polacek <polacek@redhat.com>
17408 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
17410 2015-05-20 Marek Polacek <polacek@redhat.com>
17412 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
17413 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
17414 * gimple-fold.c (canonicalize_bool): Likewise.
17415 (same_bool_result_p): Likewise.
17416 * tree-if-conv.c (parse_predicate): Likewise.
17418 2015-05-20 Marek Polacek <polacek@redhat.com>
17420 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
17421 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
17423 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17425 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
17426 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
17429 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
17431 * config/mips/mips.h (micromips_globals): Declare.
17433 2015-05-20 David Malcolm <dmalcolm@redhat.com>
17435 * timevar.def (TV_INITIALIZE_RTL): New.
17436 * toplev.c (initialize_rtl): Use an auto_timevar to account this
17437 function's time to TV_INITIALIZE_RTL.
17439 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
17441 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
17442 gimple_build_nop calls.
17443 (chkp_find_bounds_for_elem): Likewise.
17444 (chkp_get_zero_bounds): Likewise.
17445 (chkp_get_none_bounds): Likewise.
17446 (chkp_get_bounds_by_definition): Likewise.
17447 (chkp_generate_extern_var_bounds): Likewise.
17448 (chkp_get_bounds_for_decl_addr): Likewise.
17449 (chkp_get_bounds_for_string_cst): Likewise.
17451 2015-05-20 Bin Cheng <bin.cheng@arm.com>
17453 PR tree-optimization/65447
17454 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
17455 (dump_use, dump_uses): Support to dump sub use.
17456 (record_use): New parameters to support sub use. Remove call to
17458 (record_sub_use, record_group_use): New functions.
17459 (compute_max_addr_offset, split_all_small_groups): New functions.
17460 (group_address_uses, rewrite_use_address): New functions.
17461 (strip_offset): New declaration.
17462 (find_interesting_uses_address): Call record_group_use.
17463 (add_candidate): New assertion.
17464 (infinite_cost_p): Move definition forward.
17465 (add_costs): Check INFTY cost and return immediately.
17466 (get_computation_cost_at): Clear setup cost and dependent bitmap
17468 (determine_use_iv_cost_address): Compute cost for sub uses.
17469 (rewrite_use_address_1): Rename from old rewrite_use_address.
17470 (free_loop_data): Free sub uses.
17471 (tree_ssa_iv_optimize_loop): Call group_address_uses.
17473 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17474 Jim Wilson <jim.wilson@linaro.org>
17476 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
17477 new fields loadv and storev.
17478 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
17479 Initialize loadv and storev.
17480 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
17481 (cortexa53_extra_costs): Likewise.
17482 (cortexa57_extra_costs): Likewise.
17483 (xgene1_extra_costs): Likewise.
17484 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
17487 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17489 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
17491 (cortexa8_extra_costs): Likewise.
17492 (cortexa5_extra_costs): Likewise.
17493 (cortexa7_extra_costs): Likewise.
17494 (cortexa12_extra_costs): Likewise.
17495 (cortexa15_extra_costs): Likewise.
17496 (v7m_extra_costs): Likewise.
17498 2015-05-20 Jeff Law <law@redhat.com>
17500 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
17501 instead of open-coded version. Also delete the jump thread created
17502 within this function.
17504 2015-05-20 Alan Modra <amodra@gmail.com>
17506 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
17507 stack adjusting insn. Formatting.
17508 (rs6000_emit_prologue): Track stack adjusting insn, and use of
17509 r12. If possible, emit first -fsplit-stack arg pointer insn
17510 before stack adjust. Don't use r12 to save cr if split-stack.
17512 2015-05-20 Alan Modra <amodra@gmail.com>
17514 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
17516 (rs6000_supports_split_stack): New function.
17517 * gcc/config/rs6000/rs6000.c (machine_function): Add
17518 split_stack_arg_pointer.
17519 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
17520 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
17521 rather than virtual_incoming_args_rtx.
17522 (rs6000_va_start): Likewise.
17523 (split_stack_arg_pointer_used_p): New function.
17524 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
17525 (morestack_ref): New var.
17526 (gen_add3_const, rs6000_expand_split_stack_prologue,
17527 rs6000_internal_arg_pointer, rs6000_live_on_entry,
17528 rs6000_split_stack_space_check): New functions.
17529 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
17530 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
17531 (UNSPECV_SPLIT_STACK_RETURN): Define.
17532 (split_stack_prologue, load_split_stack_limit,
17533 load_split_stack_limit_di, load_split_stack_limit_si,
17534 split_stack_return, split_stack_space_check): New expands and insns.
17535 * gcc/config/rs6000/rs6000-protos.h
17536 (rs6000_expand_split_stack_prologue): Declare.
17537 (rs6000_split_stack_space_check): Declare.
17539 2015-05-20 Alan Modra <amodra@gmail.com>
17541 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
17542 (direct_return): Test vrsave_size rather than vrsave_mask.
17543 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
17544 (rs6000_emit_epilogue): Likewise.
17546 2015-05-20 Alan Modra <amodra@gmail.com>
17548 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
17549 when not saving registers.
17550 (debug_stack_info): Adjust to omit printing unused offsets,
17552 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
17555 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17558 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
17559 value_type to const char *.
17561 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
17563 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
17564 to build a biarch toolchain again.
17566 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17568 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
17569 or implicit declarations.
17570 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
17572 (get_odr_type): Check type has linkage before adding bases.
17573 (register_odr_type): Check that type has linkage before adding it.
17574 (type_known_to_have_no_deriavations_p): Rename to ..
17575 (type_known_to_have_no_derivations_p): This one.
17576 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
17577 (type_known_to_have_no_derivations_p): This one.
17578 * ipa-polymorphic-call.c
17579 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
17582 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17584 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
17585 (layout_type): Use RECORD_OR_UNION_TYPE_P.
17587 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17589 * config/s390/s390.c (s390_vector_bool_type_p): New function.
17590 (s390_invalid_binary_op): New function.
17591 (TARGET_INVALID_BINARY_OP): Define macro.
17593 2015-05-19 David Sherwood <david.sherwood@arm.com>
17595 * loop-invariant.c (create_new_invariant): Don't calculate address cost
17596 if mode is not a scalar integer.
17597 (get_inv_cost): Increase computational cost for unused invariants.
17599 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17601 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
17602 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
17603 * config/s390/s390-builtin-types.def: New file.
17604 * config/s390/s390-builtins.def: New file.
17605 * config/s390/s390-builtins.h: New file.
17606 * config/s390/s390-c.c: New file.
17607 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
17608 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
17609 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
17610 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
17612 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
17614 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
17615 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
17616 variable definitions.
17617 (s390_const_operand_ok): New function.
17618 (s390_expand_builtin): Rewrite.
17619 (s390_init_builtins): New function.
17620 (s390_handle_vectorbool_attribute): New function.
17621 (s390_attribute_table): Add s390_vector_bool attribute.
17622 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
17623 (s390_branch_condition_mask): Generate masks for new modes.
17624 (s390_expand_vec_compare_cc): New function.
17625 (s390_mangle_type): Add mangling for vector bool types.
17626 (enum s390_builtin): Remove.
17627 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
17629 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
17630 s390_cpu_cpp_builtins.
17631 (REGISTER_TARGET_PRAGMAS): New macro.
17632 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
17633 (insn_cmp mode attribute): Add new CC modes.
17634 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
17635 (lcbb): New pattern definition.
17636 * config/s390/s390intrin.h: Include vecintrin.h.
17637 * config/s390/t-s390: New file.
17638 * config/s390/vecintrin.h: New file.
17639 * config/s390/vector.md: Include vx-builtins.md.
17640 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
17643 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17645 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
17647 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
17648 (s390_select_ccmode): Likewise.
17649 (s390_canonicalize_comparison): Swap operands if necessary.
17650 (s390_expand_vec_compare_scalar): Expand DFmode compare using
17651 single element vector instructions.
17652 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
17653 (s390_branch_condition_mask): Generate CC masks for the new modes.
17654 * config/s390/s390.md (v0, vf, vd): New mode attributes.
17655 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
17656 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
17657 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
17658 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
17659 (*extend<DSF:mode><BFP:mode>2): New insn definition.
17660 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
17661 (extend<DSF:mode><BFP:mode>2): Turn into expander.
17662 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
17663 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
17664 (sqrt<mode>2): Add vector instruction.
17666 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17668 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
17670 * config/s390/predicates.md (const0_operand, constm1_operand)
17671 (constable_operand): Accept vector operands.
17672 * config/s390/s390-modes.def: Add supported vector modes.
17673 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
17674 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
17675 (s390_bytemask_vector_p, s390_expand_vec_strlen)
17676 (s390_expand_vec_compare, s390_expand_vcond)
17677 (s390_expand_vec_init): Add prototypes.
17678 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
17679 (s390_vector_mode_supported_p): New function.
17680 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
17681 (s390_contiguous_bitmask_vector_p): New function.
17682 (s390_bytemask_vector_p): New function.
17683 (s390_split_ok_p): Vector regs don't work either.
17684 (regclass_map): Add VEC_REGS.
17685 (s390_legitimate_constant_p): Handle vector constants.
17686 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
17687 (legitimate_reload_vector_constant_p): New function.
17688 (s390_preferred_reload_class): Handle CONST_VECTOR.
17689 (s390_reload_symref_address): Likewise.
17690 (s390_secondary_reload): Vector memory instructions only support
17691 short displacements. Rename reload*_nonoffmem* to reload*_la*.
17692 (s390_emit_ccraw_jump): New function.
17693 (s390_expand_vec_strlen): New function.
17694 (s390_expand_vec_compare): New function.
17695 (s390_expand_vcond): New function.
17696 (s390_expand_vec_init): New function.
17697 (s390_dwarf_frame_reg_mode): New function.
17698 (print_operand): Handle addresses with 'O' and 'R' constraints.
17699 (NR_C_MODES, constant_modes): Add vector modes.
17700 (s390_output_pool_entry): Handle vector constants.
17701 (s390_hard_regno_mode_ok): Handle vector registers.
17702 (s390_class_max_nregs): Likewise.
17703 (s390_cannot_change_mode_class): New function.
17704 (s390_invalid_arg_for_unprototyped_fn): New function.
17705 (s390_function_arg_vector): New function.
17706 (s390_function_arg_float): Remove size variable.
17707 (s390_pass_by_reference): Handle vector arguments.
17708 (s390_function_arg_advance): Likewise.
17709 (s390_function_arg): Likewise.
17710 (s390_return_in_memory): Vector values are returned in a VR if
17712 (s390_function_and_libcall_value): Handle vector arguments.
17713 (s390_gimplify_va_arg): Likewise.
17714 (s390_call_saved_register_used): Consider the arguments named.
17715 (s390_conditional_register_usage): Disable v16-v31 for non-vec
17717 (s390_preferred_simd_mode): New function.
17718 (s390_support_vector_misalignment): New function.
17719 (s390_vector_alignment): New function.
17720 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
17721 (TARGET_VECTOR_MODE_SUPPORTED_P)
17722 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
17723 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17724 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
17725 (TARGET_VECTOR_ALIGNMENT): Define target macro.
17726 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
17727 (FIRST_PSEUDO_REGISTER): Increase value.
17728 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
17729 (VECTOR_REG_P): Define macros.
17730 (FIXED_REGISTERS, CALL_USED_REGISTERS)
17731 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
17732 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
17733 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
17734 Add vector registers.
17735 (CANNOT_CHANGE_MODE_CLASS): Call C function.
17736 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
17737 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
17739 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
17740 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
17741 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
17742 (VR*_REGNUM): New constants.
17743 (ALL): New mode iterator.
17744 (INTALL): Remove mode iterator.
17746 (movti): Implement TImode moves for VRs.
17747 Disable TImode splitter for VR targets.
17748 Implement splitting TImode GPR<->VR moves.
17749 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
17750 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
17751 reload<mode>_la_in, reload<mode>_la_out.
17752 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
17753 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
17754 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
17755 (mov<mode> SF SD): Prefer lder, lde for loading.
17756 Add lrl and strl instructions.
17757 Add vector instructions.
17758 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
17759 Call s390_expand_vec_strlen on z13.
17760 (*cc_to_int): Change predicate to nonimmediate_operand.
17761 (addti3): Rename to *addti3. New expander.
17762 (subti3): Rename to *subti3. New expander.
17763 * config/s390/vector.md: New file.
17765 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17767 * common/config/s390/s390-common.c (processor_flags_table): Add
17769 * config.gcc: Add z13.
17770 * config/s390/s390-opts.h (enum processor_type): Add
17771 PROCESSOR_2964_Z13.
17772 * config/s390/s390.c (s390_adjust_priority): Check for
17773 PROCESSOR_2964_Z13.
17774 (s390_reorg): Likewise.
17775 (s390_sched_reorder): Likewise.
17776 (s390_sched_variable_issue): Likewise.
17777 (s390_loop_unroll_adjust): Likewise.
17778 (s390_option_override): Likewise. Default to -mvx when available.
17779 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
17780 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
17781 (TARGET_VX_ABI): Define macros.
17783 (TARGET_DEFAULT): Add MASK_OPT_VX.
17784 * config/s390/s390.md ("cpu" attribute): Add z13.
17785 ("cpu_facility" attribute): Add vec.
17786 * config/s390/s390.opt (processor_type): Add z13.
17787 (mvx): New options.
17788 * doc/invoke.texi: Add z13 option for -march.
17790 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17792 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
17793 mode check to make sure that only scalar integer values are
17796 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17798 * tree.c (verify_type_variant): Fix #undef.
17799 (gimple_canonical_types_compatible_p): Move here from lto.c
17800 (verify_type): Verify TYPE_CANONICAL compatibility.
17801 * tree.h (gimple_canonical_types_compatible_p): Declare.
17803 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17805 PR middle-end/66199
17806 * tree.h (OMP_TEAMS_COMBINED): Define.
17807 * gimplify.c (enum gimplify_omp_var_data): Add
17808 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
17809 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
17810 (omp_notice_variable): Accept both ORT_TEAMS
17811 and ORT_COMBINED_TEAMS. Don't recurse if
17812 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
17813 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
17815 (omp_no_lastprivate): New function.
17816 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
17817 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
17818 notice_outer and set appropriate bits, otherwise make
17819 sure default(none) combined constructs won't complain.
17820 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
17821 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
17822 omp_no_lastprivate either remove the clause or turn it
17823 into OMP_CLAUSE_PRIVATE.
17824 (gimplify_omp_for): Fix up handling of implicit
17825 lastprivate or linear iterators.
17826 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
17827 ORT_COMBINED_TEAMS.
17828 * omp-low.c (lower_omp_for_lastprivate): For combined
17829 for simd use fd.loop.n2 from the for rather than simd.
17831 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17833 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
17834 instead of gen_rtx_raw_REG.
17835 (cris_expand_epilogue): Likewise.
17836 * config/microblaze/microblaze.c (microblaze_classify_address):
17838 * config/sparc/sparc.md: Likewise.
17840 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
17842 * config/alpha/alpha.c (alpha_legitimize_reload_address)
17843 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
17844 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
17845 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
17846 Use CASE_CONST_SCALAR_INT.
17847 (print_operand) <case 'M'>: Use mode_width_operand to check the
17848 value of the constant.
17849 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
17850 * config/alpha/predicates.md (input_operand): Use general_operand
17851 instead of match_code as operand check.
17852 (symbolic_operand): Use match_code with subexpression digits.
17853 * config/alpha/constraints.md (Q): Ditto.
17855 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17857 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
17859 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17861 * config/s390/s390.c (s390_secondary_reload): Fix check for
17862 load/store relative.
17864 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17866 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
17867 alternative_mask to uint64_t.
17869 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17871 PR tree-optimization/66187
17872 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
17873 Pass TYPE_SIGN to tree_int_cst_min_precision. If
17874 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
17876 2015-05-19 David Malcolm <dmalcolm@redhat.com>
17878 * diagnostic.c (diagnostic_report_current_module): Strengthen
17879 local "new_map" from const line_map * to
17880 const line_map_ordinary *.
17881 * genmatch.c (error_cb): Likewise for local "map".
17882 (output_line_directive): Likewise for local "map".
17883 * input.c (expand_location_1): Likewise for local "map".
17884 Pass NULL rather than &map to
17885 linemap_unwind_to_first_non_reserved_loc, since the value is never
17886 read from there, and the value written back not read from here.
17887 (is_location_from_builtin_token): Strengthen local "map" from
17888 const line_map * to const line_map_ordinary *.
17889 (dump_location_info): Strengthen locals "map" from
17890 line_map *, one to const line_map_ordinary *, the other
17891 to const line_map_macro *.
17892 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
17893 const line_map * to const line_map_macro *.
17894 (maybe_unwind_expanded_macro_loc): Add a call to
17895 linemap_check_macro when writing to the "map" field of the
17897 Introduce local const line_map_ordinary * "ord_map", using it in
17898 place of "map" in the part of the function where we know we have
17899 an ordinary map. Strengthen local "m" from const line_map * to
17900 const line_map_ordinary *.
17902 2015-05-19 Nick Clifton <nickc@redhat.com>
17905 * config/msp430/msp430.md (zero_extendhisi2): Add support for
17906 separate source and destination registers.
17908 2015-05-19 Richard Biener <rguenther@suse.de>
17910 PR tree-optimization/66165
17911 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
17912 for no load permutation.
17914 PR tree-optimization/66185
17915 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
17916 when building the SLP node from scalars.
17918 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17919 Tristan Gingold <gingold@adacore.com>
17921 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
17922 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
17923 (expand_stack_restore): Call record_new_stack_level.
17924 (expand_stack_save): Do not call do_pending_stack_adjust.
17925 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
17926 * calls.c (expand_call): Call record_new_stack_level for alloca.
17927 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
17928 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
17929 (update_sjlj_context): New global function.
17930 * except.h (update_sjlj_context): Declare.
17931 * explow.c (record_new_stack_level): New global function.
17932 (allocate_dynamic_stack_space): Call record_new_stack_level.
17933 * explow.h (record_new_stack_level): Declare.
17934 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
17935 * cfgrtl.c (duplicate_insn_chain): Likewise.
17937 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17939 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
17940 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
17941 STACK_GROWS_DOWNWARD as normal if.
17942 (expand_call): Likewise.
17944 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
17947 * config/sh/sh.md (*round_int_even): New insn_and_split and
17948 accompanying new unnamed split.
17950 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17952 * bitmap.c (bitmap_set_range): Handle count==1 specially.
17953 (bitmap_clear_range): Likewise.
17954 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
17955 bitmap_set_range unconditionally.
17956 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17957 * df-scan.c (df_mark_reg): Likewise.
17958 * haifa-sched.c (setup_ref_regs): Likewise.
17959 * sched-rgn.c (update_live_1): Likewise.
17961 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17963 * regs.h (END_HARD_REGNO): Delete.
17964 (END_REGNO): Move to...
17966 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
17967 * caller-save.c (mark_set_regs): Likewise.
17968 * combine.c (move_deaths, distribute_notes): Likewise.
17969 * cse.c (invalidate, invalidate_for_call): Likewise.
17970 * df-scan.c (df_ref_record): Likewise.
17971 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
17972 (record_last_reg_set_info): Likewise.
17973 * reg-stack.c (convert_regs_exit): Likewise.
17974 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
17975 * resource.c (update_live_status): Likewise.
17976 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
17978 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17980 * rtl.h (reg_info): Add an nregs field.
17981 (REG_NREGS): Use it.
17982 (SET_REGNO_RAW): Delete.
17983 (set_regno_raw): New function.
17984 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
17985 (END_REGNO): Redefine in terms of REG_NREGS.
17986 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
17988 * emit-rtl.c (set_mode_and_regno): Likewise.
17989 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
17990 instead of SET_REGNO_RAW.
17992 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17994 * rtl.h (PUT_MODE_RAW): New macro.
17995 (PUT_REG_NOTE_KIND): Use it.
17996 (set_mode_and_regno): Declare.
17997 (gen_raw_REG): Change regno to "unsigned int".
17998 (gen_rtx_REG): Change "unsigned" to "unsigned int".
17999 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
18000 use set_mode_and_regno to change the mode of registers.
18001 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
18002 * emit-rtl.c (set_mode_and_regno): New function.
18003 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
18004 * caller-save.c (reg_save_code): Use set_mode_and_regno.
18005 * expr.c (init_expr_target): Likewise.
18006 * ira.c (setup_prohibited_mode_move_regs): Likewise.
18007 * postreload.c (reload_cse_simplify_operands): Likewise.
18009 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18011 * caller-save.c (init_caller_save): Use word_mode and
18012 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
18013 * expr.c (init_expr_target): Likewise.
18014 * ira.c (setup_prohibited_mode_move_regs): Likewise.
18015 * postreload.c (reload_cse_regs_1): Likewise.
18017 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18019 * rtl.def (REG): Change format to "r".
18020 * rtl.h (rtunion): Remove rt_reg.
18021 (reg_info): New structure.
18022 (rtx_def): Add reg field to main union.
18023 (X0REGATTR): Delete.
18024 (REG_CHECK): New macro.
18025 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
18026 * rtl.c (rtx_format): Document "r".
18027 (rtx_code_size): Handle REG specially.
18028 * gengenrtl.c (special_format): Return true for formats
18030 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
18031 Deal with REG_ATTRS after the field loop.
18032 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
18033 * expmed.c (init_expmed): Call gen_raw_REG instead of
18035 * expr.c (init_expr_target): Likewise.
18036 * regcprop.c (maybe_mode_change): Likewise.
18037 * varasm.c (make_decl_rtl): Likewise.
18038 * final.c (leaf_renumber_regs_insn): Return early after
18040 * genemit.c (gen_exp): Handle 'r' fields.
18041 * genpeep.c (match_rtx): Likewise.
18042 * gensupport.c (subst_pattern_match): Likewise.
18043 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
18044 (alter_constraints, subst_dup): Likewise.
18045 * read-rtl.c (read_rtx_code): Likewise.
18046 * print-rtl.c (print_rtx): Likewise.
18047 * genrecog.c (find_operand, find_matching_operand): Likewise.
18048 (validate_pattern, match_pattern_2): Likewise.
18049 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
18050 (rtx_test::regno_field): New function.
18051 (operator ==, safe_to_hoist_p, transition_parameter_type)
18052 (parameter_type_string, print_parameter_value)
18053 (print_nonbool_test, print_test): Handle new enum values.
18054 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
18055 * lra-constraints.c (operands_match_p): Likewise.
18057 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18059 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
18060 Change type of new_regno to unsigned int.
18061 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
18062 new_regno to unsigned int.
18063 (df_ref_change_reg_with_loc): Remove old_regno parameter.
18064 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
18065 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
18066 (SET_REGNO_RAW): Add space after ",".
18068 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18070 * rtl.h (REG_NREGS): New macro
18071 * alias.c (record_set): Use it.
18072 * cfgcleanup.c (mark_effect): Likewise.
18073 * combine.c (likely_spilled_retval_1): Likewise.
18074 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
18075 (move_deaths, distribute_notes): Likewise.
18076 * cselib.c (cselib_record_set): Likewise.
18077 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
18078 * df-scan.c (df_mark_reg): Likewise.
18079 * dse.c (look_for_hardregs): Likewise.
18080 * dwarf2out.c (reg_loc_descriptor): Likewise.
18081 (multiple_reg_loc_descriptor): Likewise.
18082 * expr.c (write_complex_part, read_complex_part): Likewise.
18083 (emit_move_complex): Likewise.
18084 * haifa-sched.c (setup_ref_regs): Likewise.
18085 * ira-lives.c (mark_hard_reg_live): Likewise.
18086 * lra.c (lra_set_insn_recog_data): Likewise.
18087 * mode-switching.c (create_pre_exit): Likewise.
18088 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
18089 (reload_combine_recognize_pattern): Likewise.
18090 (reload_combine_note_use, move2add_record_mode): Likewise.
18091 (reload_cse_move2add): Likewise.
18092 * reg-stack.c (subst_stack_regs_pat): Likewise.
18093 * regcprop.c (kill_value, copy_value): Likewise.
18094 (copyprop_hardreg_forward_1): Likewise.
18095 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
18096 (build_def_use): Likewise.
18097 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
18098 (deps_analyze_insn): Likewise.
18099 * sched-rgn.c (check_live_1, update_live_1): Likewise.
18100 * sel-sched.c (count_occurrences_equiv): Likewise.
18101 * valtrack.c (dead_debug_insert_temp): Likewise.
18103 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18105 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
18106 * dse.c (note_add_store): Likewise.
18107 * ira-lives.c (mark_hard_reg_dead): Likewise.
18108 * loop-invariant.c (mark_reg_store): Likewise.
18109 (mark_reg_death): Likewise.
18110 * postreload.c (reload_combine): Likewise.
18111 (reload_combine_note_store): Likewise.
18112 (reload_combine_note_use): Likewise.
18113 * recog.c (peep2_reg_dead_p): Likewise.
18115 2015-05-19 Alan Modra <amodra@gmail.com>
18117 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
18118 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
18119 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
18121 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
18122 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
18123 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
18124 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
18126 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
18128 * config/mips/mips.md (JOIN_MODE): New mode iterator.
18129 (join2_load_Store<JOIN_MODE:mode>): New pattern.
18130 (join2_loadhi): Likewise.
18131 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
18132 load-load and store-stores.
18133 * config/mips/mips.opt (mload-store-pairs): New option.
18134 (TARGET_LOAD_STORE_PAIRS): New macro.
18135 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
18136 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
18137 * config/mips/mips.c (mips_load_store_bonding_p): New function.
18139 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
18141 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
18143 * dojump.c (do_compare_rtx_and_jump): Likewise.
18144 * expmed.c (emit_store_flag_1): Likewise.
18145 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
18146 * final.c (sprint_ul): Use std::reverse for reversing a string.
18147 * fold-const.c (extract_muldiv_1): Use std::swap.
18148 * genmodes.c (emit_mode_int_n): Likewise.
18149 * ifcvt.c (dead_or_predicable): Likewise.
18150 * ira-build.c (ira_merge_live_ranges): Likewise.
18151 (swap_allocno_copy_ends_if_necessary): Likewise.
18152 * ira.c (ira_setup_alts): Likewise.
18153 * loop-iv.c (iv_analyze_expr): Likewise.
18154 (implies_p): Likewise.
18155 (canon_condition): Likewise.
18156 * lra-constraints.c (swap_operands): Likewise.
18157 * lra-lives.c (lra_merge_live_ranges): Likewise.
18158 * omega.c (swap): Remove.
18160 (omega_unprotect_1): Use std::swap.
18161 (omega_solve_geq): Likewise.
18162 * optabs.c (expand_binop_directly): Likewise.
18163 (expand_binop): Likewise.
18164 (emit_conditional_move): Likewise.
18165 (emit_conditional_add): Likewise.
18166 * postreload.c (reload_cse_simplify_operands): Likewise.
18167 * reg-stack.c (emit_swap_insn): Likewise.
18168 (swap_to_top): Likewise.
18169 (compare_for_stack_reg): Likewise.
18170 (subst_asm_stack_regs): Likewise.
18171 * reload.c (find_reloads): Likewise.
18172 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
18173 * sel-sched.c (invoke_reorder_hooks): Likewise.
18174 (create_block_for_bookkeeping): Likewise.
18175 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
18176 (lambda_matrix_right_hermite): Use std::swap.
18177 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
18178 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
18179 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
18180 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
18181 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
18182 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
18183 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
18184 * tree-vrp.c (compare_ranges): Likewise.
18185 * var-tracking.c (add_with_sets): Likewise.
18186 (vt_find_locations): Likewise.
18188 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
18190 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
18192 (FBSD_ENDFILE_SPEC): Likewise.
18193 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
18194 config/freebsd-spec.h.
18195 (ENDFILE_SPEC): Likewise.
18197 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
18198 Richard Henderson <rth@redhat.com>
18201 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
18202 Check for a memory location that is not a reference (using an AND)
18203 to an unaligned location here.
18204 * config/alpha/predicates.md (normal_memory_operand): Remove.
18206 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
18208 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
18209 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
18211 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
18213 * config/mips/mips.c (micromips_globals): New variable.
18214 (mips_set_compression_mode): Save and reinitialize target-dependent
18215 state for microMIPS.
18217 2015-05-18 Martin Liska <mliska@suse.cz>
18219 * dbgcnt.def: Add new counter.
18220 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
18222 2015-05-18 Martin Liska <mliska@suse.cz>
18224 * dbgcnt.def: Sort counters.
18225 * opts.c (common_handle_option): Do not compile if
18226 -fdbg-cnt-list is enabled.
18228 2015-05-18 Tom de Vries <tom@codesourcery.com>
18230 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
18231 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
18232 address operator to va_list operand.
18233 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
18235 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
18237 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
18238 * config/s390/s390.c (s390_gimplify_va_arg): Same.
18239 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
18241 2015-05-18 Tom de Vries <tom@codesourcery.com>
18243 * tree-ssa-tail-merge.c: Fix whitespace.
18245 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
18247 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
18248 cortex-a17, and cortex-a17.cortex-a7.
18250 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
18253 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
18255 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
18258 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
18259 QImode inner modes for TARGET_AVX512BW. Force mask operand
18260 to a register for AVX512F modes.
18262 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18264 * toplev.c (emit_debug_global_declarations): Do not output debug info
18265 when doing slim LTO objects.
18267 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18269 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
18270 odr_types_equivalent_p): Declare.
18271 (odr_type_p): Use gcc_checking_assert.
18272 (type_in_anonymous_namespace_p) Declare.
18273 (type_with_linkage_p): Declare.
18274 * common.opt (Wlto-type-mismatch): New warning.
18275 * ipa-devirt.c (compound_type_base): New function.
18276 (odr_or_derived_type_p): New function.
18277 (odr_types_equivalent_p): New function.
18278 (add_type_duplicate): Simplify.
18279 (type_with_linkage_p): Add hack to prevent false positives on C types
18280 (type_in_anonymous_namespace_p): Likewise.
18281 * tree.c (need_assembler_name_p): Use type_with_linkage.
18282 * tree.h (type_in_anonymous_namespace_p): Remove.
18283 * doc/invoke.texi (-Wlto-type-mismatch): Document
18285 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18287 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
18288 (verify_type): Verify STRING_FLAG.
18290 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
18293 * tree-pretty-print.c (percent_K_format): Replace locus pointer
18294 with accessor function.
18295 * tree-diagnostic.c (diagnostic_report_current_function): Use
18296 diagnostic_location function.
18297 (maybe_unwind_expanded_macro_loc): Likewise.
18298 (virt_loc_aware_diagnostic_finalizer): Likewise.
18299 (default_tree_printer): Replace locus pointer with accessor function.
18300 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
18301 (diagnostic_set_info_translated): Initialize second location.
18302 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
18303 (diagnostic_show_locus): Handle two locations. Call
18304 diagnostic_print_caret_line.
18305 (diagnostic_print_caret_line): New.
18306 (default_diagnostic_starter): Use diagnostic_location function.
18307 (diagnostic_report_diagnostic): Use diagnostic_location function.
18308 (verbatim): Do not set text.locus.
18309 * diagnostic.h (struct diagnostic_info): Remove location field.
18310 (struct diagnostic_context): Make caret_chars an array of two.
18311 (diagnostic_location): New inline.
18312 (diagnostic_expand_location): Handle two locations.
18313 (diagnostic_same_line): New inline.
18314 (diagnostic_print_caret_line): Declare.
18315 (CARET_LINE_MARGIN): New constant.
18316 * pretty-print.c (pp_printf): Do not set text.locus.
18317 (pp_verbatim): Do not set text.locus.
18318 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
18319 (struct text_info): Replace locus pointer with locations
18320 array. Add accessor functions.
18322 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
18323 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18326 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
18327 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
18328 large constants in register instead of splitting them.
18330 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
18333 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
18334 replacements in memory addresses.
18335 (get_unaligned_address): Ditto.
18337 2015-05-16 James Bowman <james.bowman@ftdichip.com>
18339 * config/ft32/*: New files for FT32 port.
18340 * doc/install.texi: Add FT32 information.
18341 * doc/invoke.texi: Add FT32 information.
18342 * doc/md.texi: Add FT32 information.
18343 * doc/contrib.texi: Self added.
18345 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
18347 PR tree-optimization/64454
18348 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
18349 (-1 - A -> ~A): Remove unnecessary condition.
18351 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
18353 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
18354 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
18355 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
18357 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
18359 * ipa-chkp.h (chkp_wrap_function): New.
18360 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
18361 (chkp_wrap_function_name): New.
18362 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
18363 to get wrapper name.
18364 * lto-cgraph.c: Include ipa-chkp.h.
18365 (input_cgraph_1): Avoid alias chain for wrappers.
18367 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18369 PR middle-end/66134
18370 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
18371 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
18373 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18375 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
18376 (AARCH64_FL_SLOWMUL): Delete.
18377 (AARCH64_FL_CRC): Redefine to 1<<3.
18378 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
18380 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18382 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
18385 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
18387 * config/alpha/alpha.md (extendqidi2): Use general_operand
18388 instead of some_operand for operand[1] predicate.
18389 (extendhidi2): Ditto.
18390 (cbranchdi4): Use general_operand instead of some_operand
18391 for operand[1] and operands[2] predicates.
18392 (cstoredi4): Ditto.
18393 * config/alpha/predicates.md (some_operand): Remove unused predicate.
18394 (some_ni_operand): Ditto.
18396 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
18398 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
18399 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
18400 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
18401 low part of the constant using alpha_emit_set_const_1.
18402 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
18404 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
18406 * varasm.c (output_constant_pool_1): Pass down alignment from
18407 constant pool entry's descriptor to output_constant_pool_2.
18408 (output_object_block): Add comment prior to call to
18409 output_constant_pool_1.
18411 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
18413 PR rtl-optimization/65862
18414 * target.def (ira_change_pseudo_allocno_class): New hook.
18415 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
18417 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
18418 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
18420 * ira-costs.c (find_costs_and_classes): Call the hook and change
18421 classes when it is necessary.
18422 * doc/tm.texi: Update.
18424 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
18426 * config/i386/i386.md (sibcall_memory): Check that register with
18427 callee address is not also used as one of the arguments, instead
18428 of checking that it is not live after the sibcall.
18429 (sibcall_pop_memory): Ditto.
18430 (sibcall_value_memory): Ditto.
18431 (sibcall_value_pop_memory): Ditto.
18433 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
18435 * generic-match-head.c (types_match): Handle non-types.
18436 * gimple-match-head.c (types_match): Likewise.
18437 * match.pd: Remove unnecessary TREE_TYPE for types_match.
18439 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
18441 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
18442 (csneg3<mode>_insn): Enable expansion of pattern.
18444 2015-05-14 Nick Clifton <nickc@redhat.com>
18446 * config/rl78/rl78.c (rl78_select_section): Select the correct
18447 default section based upon the category of the decl.
18449 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
18451 PR rtl-optimization/30967
18452 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
18453 destination mode for the cost of scc patterns.
18455 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
18457 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
18458 using SWIM248 mode iterator.
18459 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
18460 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
18461 for operand[2] constraint.
18462 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
18464 2015-05-13 Jakub Jelinek <jakub@redhat.com>
18466 PR middle-end/66133
18467 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
18468 make sure it is never noreturn, even when the task body does not
18470 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
18471 right before GIMPLE_OMP_RETURN.
18472 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
18473 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
18474 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
18476 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18478 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
18479 * tree-ssa-math-opts.c: Include params.h
18480 (pow_synth_sqrt_info): New struct.
18481 (representable_as_half_series_p): New function.
18482 (get_fn_chain): Likewise.
18483 (print_nested_fn): Likewise.
18484 (dump_fractional_sqrt_sequence): Likewise.
18485 (dump_integer_part): Likewise.
18486 (expand_pow_as_sqrts): Likewise.
18487 (gimple_expand_builtin_pow): Use above to attempt to expand
18488 pow as series of square roots. Removed now unused variables.
18490 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
18492 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
18493 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
18494 Remove *p0 and *p1 arguments. Rewrite function.
18495 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
18496 (alpha_split_const_mov): Update calls to alpha_extract_integer and
18497 alpha_emit_set_long_const.
18498 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
18499 (alpha_output_mi_thunk_osf): Ditto.
18500 * config/alpha/alpha.md (movti): Do not check operands[1]
18503 2015-05-13 Richard Biener <rguenther@suse.de>
18505 PR tree-optimization/66129
18506 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
18508 (vect_schedule_slp_instance): Fix typo.
18510 2015-05-13 David Malcolm <dmalcolm@redhat.com>
18512 * common.opt (fdump-internal-locations): New option.
18513 * input.c: Include diagnostic-core.h.
18514 (get_end_location): New function.
18515 (write_digit): New function.
18516 (write_digit_row): New function.
18517 (dump_location_range): New function.
18518 (dump_labelled_location_range): New function.
18519 (dump_location_info): New function.
18520 * input.h (dump_location_info): New prototype.
18521 * toplev.c (compile_file): Handle flag_dump_locations.
18523 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
18525 * gimple-expr.h (is_gimple_constant): Reorder.
18526 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
18528 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
18530 * combine.c (simplify_set): When generating a CC set, if the
18531 source already is in the correct mode, do not wrap it in a
18532 compare. Simplify the rest of that code.
18534 2015-05-13 Richard Biener <rguenther@suse.de>
18536 PR tree-optimization/66123
18537 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
18540 2015-05-13 Richard Biener <rguenther@suse.de>
18542 PR middle-end/66110
18543 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
18545 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
18547 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
18549 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
18550 * aclocal.m4: Regenerated with automake-1.11.6.
18552 2015-05-13 Tom de Vries <tom@codesourcery.com>
18554 PR tree-optimization/66010
18555 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
18556 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
18557 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
18558 and rval based on do_deref.
18560 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18563 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
18564 link time constants into adress expressions and therefore set
18567 2015-05-13 Jakub Jelinek <jakub@redhat.com>
18570 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
18571 Use SWI248 iterator instead of SWI.
18572 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
18573 Use eq_attr "alternative" "0" instead of match_test in
18574 length_immediate attribute computation.
18575 (*mulvhi4, *mulvhi4_1): New define_insns.
18578 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
18579 SIGNED to get precision of non-negative value.
18581 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18584 * function.c (diddle_return_value_1): Process bounds first.
18585 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
18588 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18590 PR rtl-optimization/64616
18591 * loop-invariant.c (can_move_invariant_reg): New.
18592 (move_invariant_reg): Call above new function to decide whether
18593 instruction can just be moved, skipping creation of temporary
18596 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18598 PR target/pr66047.c
18599 * i386.c (ix86_function_sseregparm): Only return -1 if local function
18600 with implied regparm is called from -mno-sse function.
18601 (init_cumulative_args): Output error if ix86_function_sseregparm
18602 return -1 and SSE register would be needed.
18603 (function_arg_advance_32): Likewise.
18604 (function_arg_32): Likewise.
18605 * i386.h (ix86_args): Add decl field.
18607 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18610 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
18611 inlines across optimization boundary.
18613 2015-05-12 Jason Merrill <jason@redhat.com>
18615 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
18616 string literal and macro name.
18618 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
18620 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
18621 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
18622 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
18624 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18626 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
18627 (-Wmisleading-indentation): New option.
18628 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
18630 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
18632 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
18633 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
18634 (alpha_extract_integer): Ditto.
18635 (alpha_legitimate_constant_p): Ditto.
18636 (alpha_split_tmode_pair): Ditto.
18637 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
18638 (alpha_expand_mov): Ditto.
18639 (print_operand): Remove handling of 'H' modifier.
18640 <case 'm'>: Remove CONST_DOUBLE handling.
18641 (summarize_insn): Handle CONST_WIDE_INT.
18642 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
18644 (movti): Handle CONST_WIDE_INT.
18645 * config/alpha/constraints.md ('H'): Remove constraint definition.
18646 ('G'): Do not match MODE_FLOAT class.
18647 * config/alpha/predicates.md (const0_operand): Also match
18649 (non_add_const_operand): Ditto.
18650 (non_zero_const_operand): Ditto.
18651 (some_operand): Ditto.
18652 (input_operand): Ditto. Handle CONST_WIDE_INT.
18653 (and_operand): Do not match const_double.
18654 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
18656 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
18659 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
18660 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
18661 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
18662 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
18663 is_mm_seq_cst, is_mm_sync): New accessor functions.
18664 * builtins.c (expand_builtin_sync_operation,
18665 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
18666 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
18667 (get_memmodel, expand_builtin_atomic_compare_exchange,
18668 expand_builtin_atomic_load, expand_builtin_atomic_store,
18669 expand_builtin_atomic_clear): Use new accessor routines.
18670 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
18671 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
18672 (maybe_emit_sync_lock_test_and_set): Use new accessors and
18673 MEMMODEL_SYNC_ACQUIRE.
18674 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
18675 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
18676 expand_atomic_store): Use new accessors.
18677 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
18678 * tsan.c (instrument_builtin_call): Update check for memory model beyond
18679 final enum to use MEMMODEL_LAST.
18680 * c-family/c-common.c: Use new accessor for memmodel_base.
18681 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
18683 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
18684 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
18685 mem_thread_fence, *dmb): Likewise.
18686 * config/alpha/alpha.c (alpha_split_compare_and_swap,
18687 alpha_split_compare_and_swap_12): Likewise.
18688 * config/arm/arm.c (arm_expand_compare_and_swap,
18689 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
18690 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
18691 atomic_loaddi): Likewise.
18692 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
18694 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
18695 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
18697 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
18698 atomic_store<mode>, atomic_compare_and_swap<mode>,
18699 atomic_exchange<mode>): Use new accessors.
18700 * config/mips/mips.c (mips_process_sync_loop): Likewise.
18701 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
18702 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
18703 rs6000_post_atomic_barrier): Add new cases.
18704 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
18705 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
18706 (atomic_load<mode>): Add new cases and use new accessors.
18707 (store_quadpti): Add new cases.
18708 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
18710 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
18711 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
18714 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18716 * ipa-devirt.c (type_with_linkage_p): New function.
18717 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
18719 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
18720 (can_be_name_hashed_p): Simplify.
18721 (hash_odr_name): Check that type has linkage before checking if it is
18723 (types_same_for_odr): Likewise.
18724 (odr_name_hasher::equal): Likewise.
18725 (odr_subtypes_equivalent_p): Likewise.
18726 (warn_types_mismatch): Likewise.
18727 (get_odr_type): Likewise.
18728 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
18729 * ipa-utils.h (odr_type_p): Move offline.
18730 * tree.c (need_assembler_name_p): Fix handling of types
18732 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
18734 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18736 * timevar.c (timevar_enable): Delete in favor of...
18737 (g_timer): New global.
18738 (struct timevar_def): Move to timevar.h inside class timer.
18739 (struct timevar_stack_def): Likewise.
18740 (timevars): Delete global in favor of field "m_timevars" within
18741 class timer in timevar.h
18742 (stack): Likewise, in favor of field "m_stack".
18743 (unused_stack_instances): Likewise, in favor of field
18744 "m_unused_stack_instances".
18745 (start_time): Likewise, in favor of field "m_start_time".
18746 (get_time): Eliminate check for timevar_enable.
18747 (timer::timer): New function, built from part of timevar_init.
18748 (timevar_init): Rewrite idempotency test from using
18749 "timevar_enable" bool to using dynamic allocation of "g_timer".
18750 Move rest of implementation into timer's constructor.
18751 (timevar_push_1): Rename to...
18752 (timer::push): ...this, adding "m_" prefixes to variables that
18753 are now fields of timer.
18754 (timevar_pop_1): Likewise, rename to...
18755 (timer::pop): ...this, and add "m_" prefixes.
18756 (timevar_start): Replace test for "timevar_enable" with one for
18757 "g_timer", and move bulk of implementation to...
18758 (timer::start): ...here, adding "m_" prefixes.
18759 (timevar_stop): Likewise, from here...
18760 (timer::stop): ...to here.
18761 (timevar_cond_start): Likewise, from here...
18762 (timer::cond_start): ...to here.
18763 (timevar_cond_stop): Likewise, from here...
18764 (timer::cond_stop): ...to here.
18765 (validate_phases): Rename to...
18766 (timer::validate_phases): ...this, and add "m_" prefixes. Make
18767 locals "total" and "tv" const.
18768 (timevar_print): Rename to...
18769 (timer::print): ...this, and add "m_" prefixes. Make locals
18770 "total" and "tv" const. Eliminate test for timevar_enable.
18771 * timevar.h (timevar_enable): Eliminate.
18772 (g_timer): New declaration.
18773 (timevar_push_1): Eliminate.
18774 (timevar_pop_1): Eliminate.
18775 (timevar_print): Eliminate.
18776 (class timer): New class.
18777 (timevar_push): Rewrite to use g_timer.
18778 (timevar_pop): Likewise.
18779 * toplev.c (toplev::~toplev): Likewise.
18781 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
18783 * arm-protos.h (arm_sched_autopref): Delete.
18784 (tune_params): Re-organize, use enums for flag values.
18785 (FUSE_OPS): New macro.
18786 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
18787 (ARM_PREFETCH_BENEFICIAL): Likewise.
18788 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
18789 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
18790 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
18791 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
18792 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
18793 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
18794 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
18795 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
18797 (arm_option_override, thumb2_reorg, arm_print_tune_info)
18798 (aarch_macro_fusion_pair_p): Update uses of current_tune.
18799 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
18801 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
18803 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
18806 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
18807 Sandra Loosemore <sandra@codesourcery.com>
18809 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
18811 (REG_CLASS_NAMES): Add "IJMP_REGS".
18812 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
18813 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
18814 use new "c" register constraint.
18815 * config/nios2/constraint.md (c): New register constraint
18816 corresponding to IJMP_REGS.
18818 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18820 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
18821 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
18822 define_splits): Delete, revamp, transmogrify into ...
18823 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18824 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18825 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18828 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18830 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
18831 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
18833 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18835 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
18836 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
18837 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
18838 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
18839 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
18840 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
18841 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
18842 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
18843 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
18844 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18845 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
18846 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
18847 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
18848 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
18849 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
18850 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
18851 and 30 corresponding splitters): Delete.
18853 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18855 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
18858 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18860 * combine.c (recog_for_combine_1): New function, factored out
18861 from recog_for_combine.
18862 (change_zero_ext): New function.
18863 (recog_for_combine): If recog fails, try again with the pattern
18864 modified by change_zero_ext; if that still fails, restore the
18867 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18869 * combine.c (get_undo_marker): New function.
18870 (undo_to_marker): New function, largely factored out from ...
18871 (undo_all): ... this. Adjust.
18873 2015-05-12 Richard Biener <rguenther@suse.de>
18875 PR tree-optimization/66101
18876 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
18877 fixup if we turn a loop exit edge to a fallthru edge.
18879 2015-05-12 Richard Biener <rguenther@suse.de>
18881 PR tree-optimization/37021
18882 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
18883 (SLP_TREE_TWO_OPERATORS): New define.
18884 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
18885 SLP_TREE_TWO_OPERATORS.
18886 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
18888 (vect_build_slp_tree): Adjust.
18889 (vect_analyze_slp_cost_1): Likewise.
18890 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
18891 emitting two vector stmts and mixing the results.
18893 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
18895 * call.c (print_z_candidates): Remove dead code.
18897 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18899 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
18900 and zEC12_simple_fp.
18901 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
18904 2015-05-12 Tom de Vries <tom@codesourcery.com>
18906 PR tree-optimization/66010
18907 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
18909 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
18910 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
18911 va_lists are passed, and remove corresponding handling.
18912 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
18913 do_deref argument to ifn_va_arg.
18914 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
18917 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18920 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
18921 REG before taking its REGNO.
18923 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
18925 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
18926 rsp->sign_bit_copies and rsp->nonzero_bits into ...
18927 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
18928 present to get more accurate information about the number of sign bit
18929 copies and non zero bits.
18931 2015-05-12 Richard Biener <rguenther@suse.de>
18933 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
18934 do not allow unrolling.
18936 2015-05-11 Richard Henderson <rth@redhat.com>
18938 * config/i386/i386-modes.def (CCP): New.
18939 * config/i386/i386.c (put_condition_code): Handle it.
18940 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
18942 2015-05-11 Richard Henderson <rth@redhat.com>
18944 * target.def (md_asm_clobbers): Replace with...
18945 (md_asm_adjust): this.
18946 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
18947 (TARGET_MD_ASM_ADJUST): New.
18948 * tm.texi: Rebuild.
18949 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
18950 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
18951 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
18953 * cfgexpand.c (check_operand_nalternatives): Accept vector of
18954 constraints instead of lists of outputs and inputs.
18955 (expand_asm_stmt): Save and restore input_location around the
18956 body of the function. Move asm data into vectors instead of
18957 building tree lists. Generate cleanup sequences as needed,
18958 rather than waiting til the end. Use new md_asm_adjust hook.
18960 * config/vxworks.c: Include vec.h before target.h.
18961 * gimple.c: Likewise.
18962 * incpath.c: Likewise.
18963 * mode-switching.c: Likewise.
18965 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
18966 (cris_md_asm_adjust): this.
18967 (TARGET_MD_ASM_CLOBBERS): Remove.
18968 (TARGET_MD_ASM_ADJUST): New.
18969 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
18970 (ix86_md_asm_adjust): this.
18971 (TARGET_MD_ASM_CLOBBERS): Remove.
18972 (TARGET_MD_ASM_ADJUST): New.
18973 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
18974 (mn10300_md_asm_adjust): this.
18975 (TARGET_MD_ASM_CLOBBERS): Remove.
18976 (TARGET_MD_ASM_ADJUST): New.
18977 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
18978 (rs6000_md_asm_adjust): this.
18979 (TARGET_MD_ASM_CLOBBERS): Remove.
18980 (TARGET_MD_ASM_ADJUST): New.
18981 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
18982 (visium_md_asm_adjust): this.
18983 (TARGET_MD_ASM_CLOBBERS): Remove.
18984 (TARGET_MD_ASM_ADJUST): New.
18986 2015-05-11 Richard Henderson <rth@redhat.com>
18988 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
18989 if noutputs is zero.
18990 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
18992 * cfgexpand.c (expand_asm_operands): Merge into...
18993 (expand_asm_stmt): ... here.
18995 * cfgexpand.c (expand_asm_operands): Don't call
18996 resolve_asm_operand_names.
18997 * stmt.c (resolve_asm_operand_names): Clarify block comment.
18999 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
19001 * dwarf2out.c (gen_member_die): Sanity check that we access
19002 TYPE_MAIN_VARIANT for TYPE_METHODS.
19003 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
19004 checking TYPE_METHODS.
19005 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
19007 (build_distinct_type_copy): Clear TYPE_METHODS.
19008 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
19009 (verify_type): Allow TYPE_METHODS to be error_mark_node.
19010 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
19012 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
19014 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
19015 (emit_pattern_before_setloc): Likewise.
19017 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
19019 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
19020 for define_peephole2s.
19021 (get_peephole2_pattern): New function.
19022 (main): Use it. Call validate_pattern.
19024 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19026 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
19027 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
19028 (Last callee saved reg is different for AVR_TINY architecture)
19030 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
19032 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
19033 when looking for memory references.
19035 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
19038 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
19039 via function pointers.
19041 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
19043 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
19044 indirect call by forcing address into a pseudo with -fno-plt.
19045 * common.opt (flag_plt): New option.
19046 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
19047 ([-fno-plt]): Document.
19049 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
19052 * config/rs6000/option-defaults.h: Add space between string literal
19055 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
19057 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
19058 accross ARM targets.
19060 2015-05-11 Christian Bruel <christian.bruel@st.com>
19062 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
19063 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
19065 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
19067 PR rtl-optimization/66076
19068 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
19069 Don't grow the heap array if it is already big enough from a
19070 previous iteration.
19072 2015-05-11 Christian Bruel <christian.bruel@st.com>
19074 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
19075 (is_called_in_ARM_mode): Remove.
19076 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
19077 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
19078 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
19079 arm_declare_function_name.
19081 2015-05-11 Christian Bruel <christian.bruel@st.com>
19083 * config/arm/arm.c (arm_option_override): Reoganized and split into :
19084 (arm_option_params_internal); New function.
19085 (arm_option_check_internal): New function.
19086 (arm_option_override_internal): New function.
19087 (thumb_code, thumb1_code): Remove.
19088 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
19089 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
19090 (thumb_code, thumb1_code): Remove.
19091 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
19093 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
19095 * config/alpha/alpha.c (alpha_emit_set_const_1)
19096 (alpha_emit_set_long_const, alpha_extract_integer)
19097 (alpha_legitimate_constant_p, alpha_split_const_mov)
19098 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
19099 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
19100 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
19102 * config/alpha/predicates.md (mode_mask_operand): Do not match
19104 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
19105 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
19106 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
19107 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
19108 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
19110 2015-05-11 Jakub Jelinek <jakub@redhat.com>
19113 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
19114 default_binds_local_p_2.
19115 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
19116 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
19118 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19120 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
19122 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19124 Patch by Richard Biener
19125 * coverage.c (coverage_obj_init): Delay building of type variant
19126 until the type is finished.
19128 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19130 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
19131 mismatch between C and C++ type; compoare correctly ARG_TYPES
19132 for non-prototypes and output correctly parameter index for METHOD_TYPE.
19133 (odr_types_equivalent_p): Fix wording of warning about attributes;
19134 it is OK to match prototype and non-prototype.
19136 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19138 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
19139 TYPE_ARG_TYPES list.
19140 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
19141 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
19143 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19145 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
19146 * tree.h (is_lang_specific): Constify.
19148 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
19150 PR tree-optimization/64454
19151 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
19154 2015-05-08 Jason Merrill <jason@redhat.com>
19156 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
19157 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
19158 config/darwin.h, config/darwin9.h, config/elfos.h,
19159 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
19160 config/microblaze/microblaze.h, config/mips/mips.h,
19161 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
19162 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
19163 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
19164 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
19165 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
19166 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
19167 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
19168 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
19169 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
19170 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
19171 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
19172 between string literal and macro name.
19174 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19176 * jump.c: Change argument types to rtx_insn *.
19179 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19181 * lra-constraints.c: Change argument type to rtx_insn *.
19183 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19185 * df-problems.c: Change argument type to rtx_insn *.
19187 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19189 * combine.c: Change argument type to rtx_insn *.
19191 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19194 * rtlanal.c: Change argument type to rtx_insn *.
19196 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19198 * sched-deps.c: Change argument types to rtx_insn *.
19199 * sched-int.h: Adjust.
19201 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19203 * dwarf2cfi.c: Change argument type to rtx_insn *.
19205 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19207 * ira.c (decrease_live_ranges_number): Changetype of local
19208 variable to rtx_insn *.
19209 * recog.c: Change argument types to rtx_insn *.
19212 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19214 * reorg.c: Change argument types to rtx_insn *.
19216 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19218 * ira-color.c: Change argument types to rtx_insn *.
19219 * lra-eliminations.c: Likewise.
19222 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19224 * gcse.c: Change argument types to rtx_insn *.
19226 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19228 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
19230 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19232 * emit-rtl.c (emit_debug_insn_before): Change argument type to
19236 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19238 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
19241 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19243 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
19246 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19248 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
19251 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19253 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
19256 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19258 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
19262 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19264 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
19268 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19270 * except.c (can_nonlocal_goto): Change type of argument to
19274 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19276 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
19279 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19281 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
19282 * cfgrtl.c (can_delete_label_p): Adjust.
19285 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19287 * reorg.c (stop_search_p): Change argument to rtx_insn *.
19289 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19291 * except.c (make_reg_eh_region_note): Change argument to
19293 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
19294 * except.h: Adjust.
19296 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19298 * mode-switching.c (commit_mode_sets): Change type of local
19299 variable from rtx to rtx_insn *.
19301 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
19303 * doc/install.texi (--enable-languages): Add missing jit and lto info.
19304 Add ^ to grep command.
19305 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
19306 arg to last gimple_simplify declaration. Add missing gimple_build
19307 declaration for built-in function case with four tree args.
19309 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
19310 Szabolcs Nagy <szabolcs.nagy@arm.com>
19312 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
19313 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
19314 (GNU_USER_DYNAMIC_LINKERN32): Update.
19316 2015-05-08 Richard Biener <rguenther@suse.de>
19318 PR tree-optimization/66036
19319 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19320 Handle strided group loads.
19321 (vect_verify_datarefs_alignment): Likewise.
19322 (vect_enhance_data_refs_alignment): Likewise.
19323 (vect_analyze_group_access): Likewise.
19324 (vect_analyze_data_ref_access): Likewise.
19325 (vect_analyze_data_ref_accesses): Likewise.
19326 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
19327 (vectorizable_load): Likewise.
19329 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
19331 * config/rs6000/rs6000.md: Require operand inequality in one
19334 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
19335 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19337 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
19339 * config/rx/rx.md (movdi, movdf): Likewise.
19340 Likewise for define_peephole2s.
19342 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19344 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
19345 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
19346 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
19347 vtst_u64): Rewrite using gcc vector extensions.
19349 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19351 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
19352 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
19354 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19356 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
19358 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19360 * config/glibc-stdint.h (OPTION_MUSL): Define.
19361 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
19362 Change the definition based on OPTION_MUSL for 64 bit targets.
19363 * config/linux.h (OPTION_MUSL): Redefine.
19364 * config/alpha/linux.h (OPTION_MUSL): Redefine.
19365 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
19366 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
19368 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
19369 Szabolcs Nagy <szabolcs.nagy@arm.com>
19371 * config.gcc (LIBC_MUSL): New tm_defines macro.
19372 * config/linux.h (OPTION_MUSL): Define.
19373 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
19374 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
19375 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19376 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19377 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19378 * config/linux.opt (mmusl): New option.
19379 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
19380 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19381 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19382 * configure: Regenerate.
19384 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
19385 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19388 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
19389 * config/i386/knetbsd-gnu64.h: New file.
19391 2015-05-08 Marek Polacek <polacek@redhat.com>
19394 * doc/invoke.texi: Document -Woverride-init-side-effects.
19396 2015-05-07 Marek Polacek <polacek@redhat.com>
19399 * doc/invoke.texi: Document -Wshift-negative-value.
19401 2015-05-06 Aditya Kumar <hiraditya@msn.com>
19403 * gcov-tool.c (do_merge): Refactore to remove int ret.
19404 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
19405 !type == FUNC to type != FUNC.
19406 * reload.h (struct target_reload): Changee to type of
19407 x_spill_indirect_levels from bool to unsigned char.
19409 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
19411 * rtl.h (always_void_p): New function.
19412 * gengenrtl.c (always_void_p): Likewise.
19413 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
19414 with code foo are always VOIDmode.
19415 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
19416 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
19417 compare-elim.c, config/aarch64/aarch64.c,
19418 config/aarch64/aarch64.md, config/alpha/alpha.c,
19419 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
19420 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
19421 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
19422 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19423 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
19424 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
19425 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
19426 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
19427 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
19428 config/ia64/vect.md, config/iq2000/iq2000.c,
19429 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
19430 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
19431 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
19432 config/mep/mep.c, config/microblaze/microblaze.c,
19433 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
19434 config/mn10300/mn10300.c, config/msp430/msp430.c,
19435 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
19436 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
19437 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
19438 config/rs6000/altivec.md, config/rs6000/rs6000.c,
19439 config/rs6000/rs6000.md, config/rs6000/vector.md,
19440 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
19441 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
19442 config/sh/sh.md, config/sh/sh_treg_combine.cc,
19443 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
19444 config/spu/spu.md, config/stormy16/stormy16.c,
19445 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
19446 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
19447 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
19448 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
19449 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
19450 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
19451 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
19452 var-tracking.c: Update calls accordingly.
19454 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19457 PR middle-end/54303
19458 * varasm.c (function_mergeable_rodata_prefix): New function.
19459 (mergeable_string_section): Use it.
19460 (mergeable_constant_section): Use it.
19462 2015-05-07 Jeff Law <law@redhat.com>
19465 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19466 simplifier to narrow arithmetic.
19467 * generic-match-head.c: (types_match, single_use): New functions.
19468 * gimple-match-head.c: (types_match, single_use): New functions.
19470 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19472 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
19475 2015-05-07 Richard Biener <rguenther@suse.de>
19477 PR tree-optimization/66002
19478 * passes.def: Schedule another pass_merge_phi after ifcombine, right
19481 2015-05-07 Marek Polacek <polacek@redhat.com>
19482 Martin Uecker <uecker@eecs.berkeley.edu>
19484 * doc/invoke.texi: Document -fsanitize=bounds-strict.
19485 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
19486 into SANITIZE_NONDEFAULT.
19487 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
19489 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
19492 * config/alpha/alpha.c (alpha_override_options_after_change): New.
19493 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
19494 (alpha_override_options): Move align_loops, align_jumps and
19495 align_functions handling into alpha_override_options_after_change.
19497 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
19498 Chris Jones <chrisj@nvidia.com>
19499 Joshua Conner <jconner@nvidia.com>
19501 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
19502 linking of crtfastmath.o.
19503 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
19505 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19507 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
19508 (cstore<mode>4_unsigned_imm): New expander.
19509 (cstore<mode>4): Remove empty constraint strings. Use the new
19512 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
19515 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
19518 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
19520 * config/aarch64/geniterators.sh: Use standard BRE in sed.
19522 2015-05-06 Alan Modra <amodra@gmail.com>
19525 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
19526 (UNSPEC_NOP): Define.
19527 (reload_vsx_from_gpr<mode>): Add missing DONE.
19528 (reload_gpr_from_vsx<mode>): Likewise.
19529 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
19530 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
19532 2015-05-06 Christian Bruel <christian.bruel@st.com>
19535 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
19536 align_jumps, align_functions into aarch64_override_options_after_change.
19538 2015-05-06 Richard Biener <rguenther@suse.de>
19540 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
19541 vect_transform_slp_perm_load to check if we support a permutation
19542 for basic-block vectorization.
19544 2015-05-06 Nick Clifton <nickc@redhat.com>
19546 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
19547 used, even if it is not being used as a frame pointer.
19549 2015-05-05 Jason Merrill <jason@redhat.com>
19551 * dwarf2out.c (gen_member_die): Don't emit anything for an
19552 anonymous class constructor.
19554 2015-05-05 David Malcolm <dmalcolm@redhat.com>
19556 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
19557 that it reflects the block structure.
19558 (afdo_propagate_edge): Likewise.
19559 (afdo_calculate_branch_prob): Likewise.
19560 (afdo_annotate_cfg): Likewise.
19561 * cfgcleanup.c (equal_different_set_p): Likewise.
19562 (try_crossjump_to_edge): Likewise.
19563 * cgraph.c (cgraph_node::verify_node): Likewise.
19564 * cgraphunit.c (expand_all_functions): Likewise.
19565 * config/i386/i386.c (ix86_expand_copysign): Likewise.
19566 (exact_dependency_1): Likewise.
19567 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
19568 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
19569 * gensupport.c (process_define_subst): Likewise.
19570 * lto-wrapper.c (merge_and_complain): Likewise.
19571 * tree-if-conv.c (if_convertible_bb_p): Likewise.
19572 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
19573 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
19574 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
19575 * tree-vect-loop.c (vectorizable_reduction): Likewise.
19576 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
19577 * tree-vect-stmts.c (vectorizable_shift): Likewise.
19578 * tree-vrp.c (vrp_finalize): Likewise.
19579 * tree.c (variably_modified_type_p): Likewise.
19581 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
19583 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
19584 on darwin12 and later.
19585 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
19586 file to pass -rdynamic on darwin12 and later.
19587 * config/darwin.opt (rdynamic): Add.
19589 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19591 * doc/extend.texi (C Extensions): Update menu for moved Variable
19592 Attributes and Type Attributes sections.
19594 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19597 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
19598 if rep_8byte stringop strategy was specified for 32-bit target.
19600 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
19603 * config/i386/i386.md (vector convert to float spltiter): Check for
19604 xmm16+, when splitting scalar float conversion.
19605 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
19607 2015-05-05 Nick Clifton <nickc@redhat.com>
19609 * config/msp430/msp430-opts.h (enum msp430_regions): New.
19610 * config/msp430/msp430.c (msp430_override_options): Complain if
19611 -mcode-region or -mdata-region is used on a non MSP430X.
19612 (msp430_section_attr): New function. Checks lower, upper and
19614 (msp430_attribute_table): Add lower, upper and either.
19615 (gen_prefix): New function. Generates a prefix for a section
19617 (msp430_select_section): New function - handles the choice of
19618 section for an object. Takes into account memory region
19619 attributes and options.
19620 (msp430_function_section): Use gen_prefix.
19621 (TARGET_SECTION_TYPE_FLAGS): Define.
19622 (msp430_section_type_flags): New function.
19623 (TARGET_ASM_UNIQUE_SECTION): Define.
19624 (msp430_unique_section): New function.
19625 (msp430_output_aligned_decl_common): New function.
19626 (msp430_do_not_relax_short_jumps): New function.
19627 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
19629 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19630 * config/msp430/msp430-protos.h
19631 (msp430_do_not_relax_short_jumps): New prototype.
19632 (msp430_output_aligned_decl_common): New prototype.
19633 * config/msp430/msp430.md (length): New attribute.
19634 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
19635 then use a long code sequence for short jumps.
19636 * config/msp430/msp430.opt (mcode-region): New.
19637 (mdata-region): New.
19638 * doc/invoke.texi: Document new options.
19639 * doc/extend.texi: Document new attributes.
19641 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19643 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
19644 (tune_params): Add field branch_costs.
19645 (aarch64_branch_cost): Declare.
19646 * gcc/config/aarch64.c (generic_branch_cost): New.
19647 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
19648 (cortexa53_tunings): Likewise.
19649 (cortexa57_tunings): Likewise.
19650 (thunderx_tunings): Likewise.
19651 (xgene1_tunings): Likewise.
19652 (aarch64_branch_cost): Define.
19653 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
19655 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19657 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
19658 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
19659 * config/i386/i386.md: Ditto.
19660 * config/i386/winnt.c: Ditto.
19662 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19664 * doc/extend.texi (__atomic Builtins): Move implementation details
19665 to the end of the description, rewrite opening paragraphs, state
19666 difference with __sync builtins, state C11/C++11 assumptions,
19667 weaken itemized descriptions, add explanation of memory model
19668 behaviour, expand description of compare-exchange, simplify text.
19670 2015-05-05 Renlin Li <renlin.li@arm.com>
19672 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
19674 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
19676 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
19677 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19678 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
19679 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19680 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
19681 * configure: Regenerate.
19682 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
19683 * doc/install.texi (aarch64*-*-*): Document new
19684 --enable-fix-cortex-a53-843419 option.
19685 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
19686 and -mno-fix-cortex-a53-843419 options.
19688 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19691 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
19693 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
19695 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
19696 fix overactive TYPE_MIN_VALUE check and add FIXME for type
19697 compatibility problems.
19699 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19701 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
19703 (cbranchsi4_reg): New.
19704 * config/microblaze/microblaze.c
19705 (microblaze_expand_conditional_branch_reg): New.
19706 * config/microblaze/microblaze-protos.h
19707 (microblaze_expand_conditional_branch_reg): New prototype.
19709 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19711 * config/microblaze/microblaze.md (peephole2): New.
19713 2015-05-04 Jeff Law <law@redhat.com>
19716 2015-05-04 Jeff Law <law@redhat.com>
19718 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19719 simplifier to narrow arithmetic.
19720 * generic-match-head.c: (types_match, single_use): New functions.
19721 * gimple-match-head.c: (types_match, single_use): New functions.
19723 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
19726 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
19727 (split_branches): Likewise.
19729 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
19731 * common.opt (fdelete-null-pointer-checks): Init to -1.
19732 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
19733 override flag_delete_null_pointer_checks default.
19734 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
19735 behavior re address zero. Better document target-specific behavior.
19736 (-fisolate-errneous-paths-dereference): Mention relationship to
19737 -fdelete-null-pointer-checks.
19739 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19741 PR tree-optimization/65984
19742 * ubsan.c: Include tree-cfg.h.
19743 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
19744 stmt_could_throw_p test, rename can_throw variable to ends_bb.
19746 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19748 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
19749 to CONST_DOUBLE_P predicate.
19750 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
19751 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
19752 allow only operands that satisfy standard_sse_constant_p predicate.
19753 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
19754 to CONST_DOUBLE_P predicate.
19756 2015-05-04 Jeff Law <law@redhat.com>
19758 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19759 simplifier to narrow arithmetic.
19760 * generic-match-head.c: (types_match, single_use): New functions.
19761 * gimple-match-head.c: (types_match, single_use): New functions.
19763 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
19765 * config/arm/arm.c: Restore bootstrap.
19767 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19769 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
19770 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
19771 as CONST_WIDE_INT, not CONST_DOUBLE.
19772 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
19773 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
19774 (ix86_find_base_term): Do not check for CONST_DOUBLE.
19775 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
19776 (ix86_build_signbit_mask): Rewrite using wide ints.
19777 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
19778 (ix86_rtx_costs): Handle CONST_WIDE_INT.
19779 (find_constant): Ditto.
19780 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
19781 using gen_int_mode.
19782 * config/i386/predicates.md (x86_64_immediate_operand)
19783 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19784 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
19785 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19786 (const0_operand): Also match const_wide_int.
19787 (constm1_operand): Ditto.
19788 (const1_operand): Ditto.
19790 2015-05-04 Richard Biener <rguenther@suse.de>
19792 PR tree-optimization/65965
19793 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
19794 store groups at gaps.
19796 2015-05-04 Richard Biener <rguenther@suse.de>
19798 PR tree-optimization/65935
19799 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
19800 then make sure to apply that swapping to the IL.
19802 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19804 * Makefile.in (PATCHLEVEL_c): New variable.
19805 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
19806 expand the same way as if DEVPHASE_c was non-empty.
19808 2015-05-04 Kai Tietz <ktietz@redhat.com>
19811 * lto-wrapper.c (run_gcc): Open filename
19814 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
19816 * doc/extend.texi (Variable Attributes, Type Attributes): Move
19817 sections up in file, to immediately after the Function Attributes
19820 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
19822 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
19824 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19826 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
19827 (insert_partition_copy_on_edge): Adjust.
19828 (insert_rtx_to_part_on_edge): Likewise.
19829 (insert_part_to_rtx_on_edge): Likewise.
19831 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19833 * function.c (set_return_jump_label): Change type of argument to
19835 * function.h (set_return_jump_label): Adjust.
19837 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19839 * reload.h (struct reg_equivs_t): Change type of init to
19841 * ira.c (fix_reg_equiv_init): Adjust.
19842 * reload1.c (eliminate_regs_1): Likewise.
19843 (init_eliminable_invariants): Likewise.
19845 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19847 * cselib.c (fp_setter_insn): Take a rtx_insn *.
19848 * cselib.h (fp_setter_insn): Adjust.
19850 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19852 * recog.c (struct validate_replace_src_data): Change type of
19853 insn field to rtx_insn *.
19854 (validate_replace_src_group): Change type of argument to rtx_insn *.
19855 * recog.h (validate_replace_src_group): Adjust.
19857 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19859 * haifa-sched.c: Change the type of some variables to rtx_insn *.
19860 * sched-deps.c: Likewise.
19861 * sched-int.h: Likewise.
19862 * sched-rgn.c: Likewise.
19863 * sel-sched.c: Likewise.
19865 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19868 * config/i386/i386.c: Change the type of some arguments to
19870 * config/arm/arm.c: Likewise.
19872 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19874 * lra-constraints.c: Change type of some arguments to rtx_insn *.
19876 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19878 * regcprop.c (kill_autoinc_value): Change type of argument to
19881 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19883 * genrecog.c (print_subroutine): Adjust.
19884 * recog.c (get_bool_attr_mask_uncached): Likewise.
19885 * recog.h (struct recog_data_d): Change the type of insn to
19888 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19890 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
19892 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19894 * df-problems.c (df_set_note): Change type of argument to
19897 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19899 * builtins.c (expand_builtin_trap): Change type of local
19900 variable to rtx_insn *.
19901 (add_sched_insns_for_speculation): Likewise.
19902 (ix86_emit_save_regs): Likewise.
19903 (get_scratch_register_on_entry): Likewise.
19904 (ix86_emit_restore_reg_using_pop): Likewise.
19905 (ix86_emit_leave): Likewise.
19906 (ix86_emit_restore_regs_using_mov): Likewise.
19907 (ix86_expand_epilogue): Likewise.
19909 (rl78_alloc_physical_registers_umul): Likewise.
19910 * cselib.c (discard_useless_locs): Likewise.
19911 (cselib_invalidate_regno): Likewise.
19912 (cselib_invalidate_mem): Likewise.
19913 * function.c (expand_function_start): Likewise.
19914 (emit_use_return_register_into_block): Likewise.
19915 * gcse.c: Likewise.
19916 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
19917 * ifcvt.c (noce_get_alt_condition): Likewise.
19918 * loop-doloop.c (doloop_condition_get): Likewise.
19919 * lra-constraints.c (inherit_in_ebb): Likewise.
19920 * modulo-sched.c (sms_schedule_by_order): Likewise.
19921 * recog.c (next_insn_tests_no_inequality): Likewise.
19922 * reorg.c (emit_delay_sequence): Likewise.
19923 (update_reg_dead_notes): Likewise.
19924 (fix_reg_dead_note): Likewise.
19925 (fill_slots_from_thread): Likewise.
19926 (delete_computation): Likewise.
19928 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
19930 * doc/extend.texi (Variable Attributes): Add menu and proper
19931 @nodes to subsections. Move Microsoft Windows attributes to
19932 their own subsection.
19933 (Type Attributes): Reorganize introduction to remove duplicate
19934 list of attributes. Add menu and proper @nodes to subsections.
19935 Alphabetize the main table of common attributes.
19937 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
19939 * match.pd: New simplification patterns.
19940 (x + (x & 1)) -> ((x + 1) & ~1)
19941 (x & ~(x & y)) -> ((x & ~y))
19942 (x | ~(x | y)) -> ((x | ~y))
19944 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19946 * target.def (attribute_table): Mention that struct attribute_spec
19947 is defined in tree-core.h rather than tree.h
19948 * doc/tm.texi: Regenerate.
19950 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
19952 * genrecog.c (test): Rename to rtx_test. Update rest of file
19955 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
19957 PR translation/65959
19958 * params.h (DEFPARAM): Rename msgid to nocmsgid.
19960 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19962 * gcc/config/aarch64/aarch64-protos.h (tune_params):
19963 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
19964 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
19965 Return value depending on target.
19966 (generic_tunings): Initialize new target settings.
19967 (cortexa53_tunings): Likewise.
19968 (cortexa57_tunings): Likewise.
19969 (thunderx_tunings): Likewise.
19970 (xgene1_tunings): Likewise.
19972 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19974 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
19975 Make Cortex-A53 shift costs more accurate.
19977 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19979 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
19982 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19984 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
19985 Calculate cost of op0 and op1 in PLUS and MINUS cases.
19987 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19989 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
19990 Add cost of op0 in the compare-with-fpzero case.
19992 2015-04-30 David Malcolm <dmalcolm@redhat.com>
19994 * builtins.c (fold_builtin_1): Remove spurious second
19996 * cgraph.h (symtab_node::get_availability): Likewise.
19997 * opts.c (common_handle_option): Remove spurious second semicolon.
19998 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
19999 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
20001 2015-04-30 Caroline Tice <cmtice@google.com>
20003 PR gcov-profile/65929
20004 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
20005 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
20006 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
20007 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
20008 * doc/tm.texi: Regenerate.
20009 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
20010 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
20011 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
20012 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
20014 2015-04-30 Marek Polacek <polacek@redhat.com>
20016 * varasm.c (handle_cache_entry): Fix logic.
20018 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20020 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
20021 (*extrsi5_insn_uxtw_alt): Likewise.
20022 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
20023 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
20026 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20028 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
20031 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20033 * config/aarch64/aarch64.md
20034 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
20035 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
20036 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
20037 appropriately. Handle alternative EON form.
20039 2015-04-30 Renlin Li <renlin.li@arm.com>
20041 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
20042 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
20044 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
20047 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
20048 -fstrict-aliasing boundaries.
20050 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20052 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
20053 and [SU]MNEGL patterns.
20055 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20057 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
20058 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
20059 combined arithmetic-shift ops. Properly handle all shift and extend
20060 operations that can occur in combination with PLUS/MINUS.
20061 Rename maybe_fma to compound_p.
20062 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
20063 arithmetic and shift operations.
20065 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20067 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
20068 rather than arith_shift cost when costing ADD/MINUS of an
20071 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
20074 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
20077 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
20079 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
20080 are for the same position.
20082 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
20084 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
20086 (vectorize_loops): Use it.
20088 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
20090 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
20091 for aggregate types.
20092 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
20093 type to be non_ODR.
20094 * tree.c (need_assembler_name_p): Compute mangled name for
20095 non-fundamental types and integer types.
20097 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
20099 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
20101 * expr.c (expand_expr_real_2): Likewise.
20103 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
20105 * tree.c (build_common_builtin_nodes): Do not build
20106 __builtin_alloca_with_align as equivalent of library alloca.
20108 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
20110 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
20111 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
20113 * tree.c: Include print-tree.h and ipa-utils.h
20114 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
20115 (free_lang_data_in_cgraph): Call verify_type.
20116 (verify_type_variant): New function.
20117 (verify_type): New function.
20118 * tree.h (verify_type): Declare.
20120 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
20122 * config/mips/mips-cpus.def: (mips4): Change default processor
20123 from PROCESSOR_R8000 to PROCESSOR_R10000.
20125 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
20127 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
20128 la/jalr instead of jal.
20130 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
20133 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
20134 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
20135 (setcc+movzbl peephole2): Check also clobbered reg.
20136 (setcc+andl peephole2): Ditto.
20138 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
20141 * config/nvptx/mkoffload.c (target_ilp32): New variable.
20142 (main): Set it depending on "-foffload-abi=[...]".
20143 (compile_native, main): Use it to pass "-m32" or "-m64" to the
20146 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
20149 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
20150 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
20151 Flip lane index back at assembly time for bigendian.
20153 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
20155 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
20156 * gimplify.c (gimplify_omp_workshare): Use it.
20158 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
20160 * Makefile.in (build/genrecog.o): Depend on inchash.h.
20161 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
20163 * genrecog.c: Rewrite most of the code except for the third page.
20165 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
20167 * inchash.h, inchash.c: Include bconfig.h for build objects.
20168 * Makefile.in (build/inchash.o): New rule.
20170 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
20173 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
20174 number in type attribute expression.
20176 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
20178 * loop-iv.c (canon_condition): Generalize to all types of integer
20181 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
20183 * gimple-walk.c: Prune duplicate or unneeded includes.
20184 (walk_gimple_asm): Only call parse_input_constraint or
20185 parse_output_constraint if their findings are used.
20186 Honour parse_input_constraint and parse_output_constraint
20189 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
20191 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
20193 2015-04-29 Tom de Vries <tom@codesourcery.com>
20195 PR tree-optimization/65893
20196 * passes.def (pass_all_optimizations): Move pass_stdarg to after
20199 2015-04-29 Richard Biener <rguenther@suse.de>
20201 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
20202 compute GROUP_SIZE for basic-block SLP.
20203 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
20204 take into account gaps.
20205 (vect_get_mask_element): Properly reject references to previous
20207 (vect_transform_slp_perm_load): Likewise.
20209 2015-04-29 Christian Bruel <christian.bruel@st.com>
20212 * config/i386/i386.c (ix86_default_align): New function.
20213 (ix86_override_options_after_change): Call ix86_default_align.
20214 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
20215 (ix86_override_options_after_change): New function.
20217 2015-04-28 Jeff Law <law@redhat.com>
20219 * tree-ssa-dom.c (record_equality); Fix comment typos.
20221 2015-04-28 Tom de Vries <tom@codesourcery.com>
20223 PR tree-optimization/65887
20224 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
20226 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
20228 * doc/extend.texi (Declaring Attributes of Functions): Split into
20229 subsections by target. Alphabetize the table of common attributes.
20230 Rewrite some of the introductory text to reflect the new structure.
20231 Update some cross-references to point to the new subsections.
20232 (Attribute Syntax): Put paragraph about "__" naming here. Remove
20233 duplicate copies in the discussion of function, label, and type
20236 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
20239 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
20241 2015-04-28 Jason Merrill <jason@redhat.com>
20244 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
20245 (finalize_type_size): Respect TYPE_USER_ALIGN.
20246 (layout_type) [ARRAY_TYPE]: Likewise.
20248 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
20250 * config/arm/arm.md (*arm_movt): Fix type attribute.
20251 (*cmpsi_shiftsi): Likewise.
20252 (*cmpsi_shiftsi_swp): Likewise.
20253 (*movsicc_insn): Likewise.
20254 (*cond_move): Likewise.
20255 (*if_plus_move): Likewise.
20256 (*if_move_plus): Likewise.
20257 (*if_arith_move): Likewise.
20258 (*if_move_arith): Likewise.
20259 (*if_shift_move): Likewise.
20260 (*if_move_shift): Likewise.
20261 (*arm_movtas_ze): Likewise.
20262 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
20263 redundancy and type attribute.
20264 (*thumb2_movsi_insn): Fix type attribute.
20265 (*thumb2_addsi_short): Likewise.
20266 (thumb2_addsi3_compare0): Likewise.
20267 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
20268 attributes accordingly.
20270 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
20273 * function.c (pad_to_arg_alignment): Add parentheses.
20275 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
20277 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
20278 libgcc/config/frv/elf-lib.h.
20280 2015-04-28 Tom de Vries <tom@codesourcery.com>
20282 * tree-call-cdce.c: Fix example in header comment.
20284 2015-04-28 Richard Biener <rguenther@suse.de>
20286 PR tree-optimization/62283
20287 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
20288 fails fatally and we are vectorizing a basic-block simply
20289 cause the child to be constructed piecewise.
20290 (vect_analyze_slp_cost_1): Adjust.
20291 (vect_detect_hybrid_slp_stmts): Likewise.
20292 (vect_bb_slp_scalar_cost): Likewise.
20293 (vect_get_constant_vectors): For piecewise constructed
20294 constants place them after the last def.
20295 (vect_get_slp_defs): Adjust.
20296 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
20297 externals for basic-block vectorization.
20299 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20302 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
20304 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
20305 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
20306 (AARCH64_TUNE_FMA_STEERING): Likewise.
20307 * config/aarch64/aarch64-cores.def: Set
20308 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
20309 FMUL/FMADD instructions.
20310 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
20311 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
20312 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
20313 * config/aarch64/cortex-a57-fma-steering.h: New file.
20314 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20316 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
20318 * gensupport.c (std_preds): Add missing codes to address_operand entry.
20320 2015-04-28 Richard Biener <rguenther@suse.de>
20322 PR tree-optimization/65851
20323 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
20324 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
20325 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
20326 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
20327 (ccp_visit_phi_node): Adjust.
20328 (evaluate_stmt): For simplifications to SSA names return its
20329 lattice value if that isn't VARYING. Return immediately when
20330 simplified to a constant.
20331 (visit_assignment): Adjust.
20332 (ccp_visit_stmt): Likewise.
20334 2015-04-28 Tom de Vries <tom@codesourcery.com>
20336 PR tree-optimization/65818
20337 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
20340 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20342 * calls.c (save_fixed_argument_area): Don't check
20343 ARGS_GROW_DOWNWARD with the preprocessor.
20344 (restore_fixed_argument_area): Likewise.
20345 (mem_overlaps_already_clobbered_arg_p): Likewise.
20346 (check_sibcall_argument_overlap): Likewise.
20347 (expand_call): Likewise.
20348 (emit_library_call_value_1): Likewise.
20349 (store_one_arg): Likewise.
20350 * function.c (assign_parms): Likewise.
20351 (locate_and_pad_parm): Likewise.
20352 (pad_to_arg_alignment): Likewise.
20353 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
20355 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20357 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
20358 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
20359 * calls.c (save_fixed_argument_area): Don't chekc if
20360 ARGS_GROW_DOWNWARD is defined.
20361 (restore_fixed_argument_area): Likewise.
20362 (mem_overlaps_already_clobbered_arg_p): Likewise.
20363 (check_sibcall_argument_overlap): Likewise.
20364 (expand_call): Likewise.
20365 (emit_library_call_value_1): Likewise.
20366 (store_one_arg): Likewise.
20367 * function.c (assign_parms): Likewise.
20368 (locate_and_pad_parm): Likewise.
20369 (pad_to_arg_alignment): Likewise.
20370 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
20372 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20374 * defaults.h (gen_epilogue): New function.
20375 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
20377 * cfgrtl.c (cfg_layout_finalize): Likewise.
20378 * df-scan.c: Likewise.
20379 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20380 (reposition_prologue_and_epilogue_notes): Likewise.
20381 * reorg.c (find_end_label): Likewise.
20382 * toplev.c: Likewise.
20384 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20386 * bb-reorder.c (HAVE_return): Don't check if its undefined.
20387 * defaults.h (gen_simple_return): New function.
20388 (gen_simple_return): Likewise.
20389 (HAVE_return): Add default definition to false.
20390 (HAVE_simple_return): Likewise.
20391 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
20392 HAVE_return and HAVE_simple_return are defined.
20393 * function.c (gen_return_pattern): Likewise.
20394 (convert_jumps_to_returns): Likewise.
20395 (thread_prologue_and_epilogue_insns): Likewise.
20396 * reorg.c (find_end_label): Likewise.
20397 (dbr_schedule): Likewise.
20398 * shrink-wrap.c: Likewise.
20399 * shrink-wrap.h: Likewise.
20401 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20403 * defaults.h (EPILOGUE_USES): Add default definition of false.
20404 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
20405 * resource.c (init_resource_info): Likewise.
20407 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20409 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
20411 * dwarf2out.c (field_byte_offset): REmove check if
20412 PCC_BITFIELD_TYPE_MATTERS is defined.
20413 * stor-layout.c (layout_decl): Likewise.
20414 (update_alignment_for_field): Likewise.
20415 (place_field): Likewise.
20417 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20419 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
20421 * regrename.c (check_new_reg_p): Remove check if
20422 HARD_REGNO_RENAME_OK is defined.
20423 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
20425 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20427 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
20428 * cse.c (fold_rtx): Likewise.
20429 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
20430 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
20431 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
20432 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
20433 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
20434 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
20435 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
20436 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
20437 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
20438 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
20440 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
20441 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
20442 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
20443 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
20444 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
20445 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
20446 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
20447 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
20448 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
20449 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
20450 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
20451 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
20452 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
20453 * doc/tm.texi: Regenerate.
20454 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
20455 either true or false.
20457 2015-04-27 Jeff Law <law@redhat.com>
20459 PR tree-optimization/65217
20460 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
20461 of them has a single use, make sure it is the LHS of the implied
20464 2015-04-28 Alan Modra <amodra@gmail.com>
20467 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
20468 (offsettable_ok_by_alignment): Use minimum of decl and toc
20469 pointer alignment. Replace dead code with assertion.
20470 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
20471 case if size exceeds toc pointer alignment.
20472 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
20473 (rs6000_emit_move): Likewise.
20474 * configure.ac: Add linker toc pointer alignment check.
20475 * configure: Regenerate.
20476 * config.in: Regenerate.
20478 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
20480 * config.gcc: Add h8300-*-linux.
20481 * config/h8300/linux.h: New.
20482 * config/h8300/t-linux: New.
20483 * config/h8300/h8300.c (h8300_option_override): Normal mode
20484 is not supported for h8300-*-linux.
20485 (h8300_file_start): Target priority change.
20486 (get_shift_alg): Likewise.
20487 (h8300_shift_need_scratch_p): Likewise.
20488 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
20489 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
20491 2015-04-27 Caroline Tice <cmtice@google.com>
20493 * final.c (final_scan_insn): Output cold_function_name as function
20495 * varasm.c (cold_function_name): Make global.
20496 (assemble_start_function): Re-set cold_function_name.
20497 (assemble_end_function): Output cold partition size.
20498 * varasm.h (cold_function_name): Declare global.
20500 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
20502 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
20503 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
20505 (*movxi_internal_avx512f): Ditto.
20506 (define_split): Check for xmm16+, when splitting scalar float_extend.
20507 (*extendsfdf2_mixed): Use "v" constraint.
20508 (define_split): Check for xmm16+, when splitting scalar float_truncate.
20509 (*truncdfsf_fast_sse): Use "v" constraint.
20510 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
20511 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
20512 (define_peephole2): Check for xmm16+, when converting scalar
20514 (define_peephole2): Check for xmm16+, when converting scalar
20516 (*fop_<mode>_comm_mixed): Use "v" constraint.
20517 (*fop_<mode>_comm_sse): Ditto.
20518 (*fop_<mode>_1_mixed): Ditto.
20519 (*sqrt<mode>2_sse): Ditto.
20520 (*ieee_s<ieee_maxmin><mode>3): Ditto.
20522 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20524 * combine.c (simplify_if_then_else): Use std::swap instead
20525 of manually swapping.
20526 (known_cond): Likewise.
20527 (simplify_comparison): Likewise.
20529 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
20532 * config/rs6000/htm.md: Remove all define_expands.
20533 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
20534 UNSPECV_HTM_TABORTWCI): Remove.
20535 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
20536 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
20537 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
20538 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
20539 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
20540 tabortwci_internal): Remove define_insns.
20541 (tabort<wd>c, tabort<wd>ci): New define_insns.
20542 (tabort): Use gpc_reg_operand.
20543 (tcheck): Remove operand.
20544 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
20545 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
20547 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
20548 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
20549 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
20550 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
20551 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
20552 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
20553 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
20554 (tcheck): Remove builtin argument.
20555 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
20557 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
20558 tabortdc and tabortdci builtins when not in 64-bit mode.
20559 Modify code to handle the loss of the HTM define_expands.
20560 Emit code to copy the CR register to TARGET.
20561 (htm_init_builtins): Modify code to handle the loss of the HTM
20563 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
20564 (RS6000_BTC_64BIT): Likewise.
20565 (RS6000_BTC_CR): New macro.
20566 * doc/extend.texi: Update documentation for htm builtins.
20568 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20570 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
20571 of manually swapping.
20572 (simplify_associative_operation): Likewise.
20573 (simplify_binary_operation): Likewise.
20574 (simplify_plus_minus): Likewise.
20575 (simplify_relational_operation): Likewise.
20576 (simplify_ternary_operation): Likewise.
20578 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20580 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
20581 (xs_hi_nonmemory_operand): Remove error.
20582 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
20583 general_operand rather than xs_hi_general_operand.
20585 2015-04-27 Richard Biener <rguenther@suse.de>
20587 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
20588 (record_equivalences_from_stmt): Valueize rhs.
20589 (record_equality): Canonicalize x and y order via
20590 tree_swap_operands_p. Do not swap operands for same loop depth.
20592 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
20596 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
20597 Add hint how to use own spec file.
20599 2015-04-27 Jakub Jelinek <jakub@redhat.com>
20601 PR tree-optimization/65875
20602 * tree-vrp.c (update_value_range): If in is_new case setting
20603 old_vr to VR_VARYING, also set new_vr to it. Remove
20604 old_vr->type == VR_VARYING test.
20605 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
20606 SSA_PROP_INTERESTING if update_value_range returned true,
20607 but new range is VR_VARYING.
20609 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
20611 * combine.c (sign_extend_short_imm): New.
20612 (set_nonzero_bits_and_sign_copies): Use above new function for sign
20613 extension of src short immediate.
20614 (reg_nonzero_bits_for_combine): Likewise for tem.
20616 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20618 * stor-layout.c (self_referential_component_ref_p): New predicate.
20619 (copy_self_referential_tree_r): Use it.
20620 (self_referential_size): Punt for simple operations directly involving
20621 self-referential component references.
20622 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
20624 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20626 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
20628 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20630 * vec.h (vec): Make splice arguments const. Update definitions
20633 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
20635 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
20638 2015-04-26 Tom de Vries <tom@codesourcery.com>
20640 PR tree-optimization/65826
20641 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
20643 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
20645 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
20646 (*madd3<mode>): Ditto.
20647 (*msub4<mode>): Ditto.
20648 (*msub3<mode>): Ditto.
20649 (*nmadd4<mode>): Ditto.
20650 (*nmadd3<mode>): Ditto.
20651 (*nmadd4<mode>_fastmath): Ditto.
20652 (*nmadd3<mode>_fastmath): Ditto.
20653 (*nmsub4<mode>): Ditto.
20654 (*nmsub3<mode>): Ditto.
20655 (*nmsub4<mode>_fastmath): Ditto.
20656 (*nmsub3<mode>_fastmath): Ditto.
20658 2015-04-24 Jason Merrill <jason@redhat.com>
20661 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
20662 down when building TYPE_CANONICAL.
20663 (build_pointer_type_for_mode): Likewise.
20665 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
20667 * genrecog.c (validate_pattern): Check matching constraint refers
20668 to a lower numbered operand.
20670 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20673 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
20674 save to independent variables use the Save attribute. This will
20675 allow these options to be modified with the #pragma/attribute
20677 (-mallow-movmisalign): Likewise.
20678 (-mallow-df-permute): Likewise.
20679 (-msched-groups): Likewise.
20680 (-malways-hint): Likewise.
20681 (-malign-branch-targets): Likewise.
20682 (-mvectorize-builtins): Likewise.
20683 (-msave-toc-indirect): Likewise.
20685 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
20686 can be set via the #pragma/attribute target support.
20687 (rs6000_opt_vars): Likewise.
20688 (rs6000_inner_target_options): If VSX was set, also set
20689 -mno-avoid-indexed-addresses.
20691 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20693 * config/arm/iterators.md (shiftable_ops): Rename to...
20694 (SHIFTABLE_OPS): ... This. Update use in comments.
20695 (ior_xor): Rename to...
20696 (IOR_XOR): ... This.
20697 (vqh_ops): Rename to...
20698 (VQH_OPS): ... This.
20699 (vqhs_ops): Rename to...
20700 (VQHS_OPS): ... This.
20701 (rshifts): Rename to...
20702 (RSHIFTS): ... This.
20703 (returns): Rename to...
20704 (RETURNS): ... This.
20705 * config/arm/arm.md: Update uses of the above.
20706 * config/arm/neon.md: Likewise.
20708 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20710 * config.host (case ${host}): Add aarch64*-*-linux case.
20711 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
20712 fields to all the cores.
20713 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
20714 Add MCPU_MTUNE_NATIVE_SPECS.
20715 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
20716 field to all extensions.
20717 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
20718 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
20719 Adjust definition of AARCH64_OPT_EXTENSION.
20720 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
20721 (MCPU_MTUNE_NATIVE_SPECS): Define.
20722 * config/aarch64/driver-aarch64.c: New file.
20723 * config/aarch64/x-arch64: New file.
20724 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
20727 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20728 Wei Mi <wmi@google.com>
20730 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
20731 * config/i386/i386.c (extract_base_offset_in_addr): New function.
20732 (ix86_operands_ok_for_move_multiple): Ditto.
20733 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
20734 (movlpd/movhpd to movupd peephole2): Ditto.
20736 2015-04-24 Marek Polacek <polacek@redhat.com>
20739 * input.h (from_macro_expansion_at): Define.
20742 * doc/invoke.texi: Update description of -Wlogical-op.
20744 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20746 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
20747 ternary operator in fprintf and harmonize spacing.
20749 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20751 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
20752 Mark operand1 commutative.
20754 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20756 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
20757 input operands in memory.
20758 (*vec_concatv2si_sse4_1): Ditto.
20759 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
20760 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
20762 (vec_extract_hi_v32hi): Ditto.
20763 (vec_extract_hi_v64hi): Ditto.
20764 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
20766 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20767 Steven Bosscher <steven@gcc.gnu.org>
20769 PR rtl-optimization/34503
20770 * cprop.c (cprop_reg_p): New.
20771 (hash_scan_set): Use above function to check if register can be
20773 (find_avail_set): Return up to two sets, one whose source is a
20774 register and one whose source is a constant. Sets are returned in an
20775 array passed as parameter rather than as a return value.
20776 (cprop_insn): Use a do while loop rather than a goto. Try each of the
20777 sets returned by find_avail_set, starting with the one whose source is
20778 a constant. Use cprop_reg_p to check if register can be propagated.
20779 (do_local_cprop): Use cprop_reg_p to check if register can be
20781 (implicit_set_cond_p): Likewise.
20783 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20785 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
20786 (sem_function::equals): IGNORED_NODES parameter is now unused;
20787 update call of equals_private.
20788 (sem_function::equals_private): Do not call equals_wpa; skip
20789 gimple body matching if there is no body.
20790 (sem_function::init): Add logic to hash tthunk info.
20791 (sem_function::parse): Also parse thunks.
20792 * ipa-icf.h (equals_private): Update declaration.
20794 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20796 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
20797 asterisk from name so this can be generated directly.
20798 (*altivec_stvx_<mode>_internal): Likewise.
20799 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
20800 that this is never called during or after reload/lra.
20801 (rs6000_frame_related): Remove split_reg
20802 argument and logic that references it.
20803 (emit_frame_save): Remove last parameter from call to
20804 rs6000_frame_related.
20805 (rs6000_emit_prologue): Remove last parameter from eight calls to
20806 rs6000_frame_related. Force generation of stvx instruction for
20807 Altivec register saves. Remove split_reg handling, which is no
20809 (rs6000_emit_epilogue): Force generation of lvx instruction for
20810 Altivec register restores.
20812 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20814 * config/rs6000/rs6000.opt (mcrypto): Change option description to
20815 match category changes in ISA 2.07B.
20817 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20819 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
20821 (cmp_op, cmp_type): New code attributes.
20822 (NEON_VCMP, NEON_VACMP): New int iterators.
20823 (cmp_op_unsp): New int attribute.
20824 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
20825 (neon_vceq<mode>): Delete.
20826 (neon_vc<cmp_op><mode>_insn): New pattern.
20827 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
20828 (neon_vcgeu<mode>): Delete.
20829 (neon_vcle<mode>): Likewise.
20830 (neon_vclt<mode>: Likewise.
20831 (neon_vcage<mode>): Likewise.
20832 (neon_vcagt<mode>): Likewise.
20833 (neon_vca<cmp_op><mode>): New define_expand.
20834 (neon_vca<cmp_op><mode>_insn): New pattern.
20835 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
20837 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20839 * tree.h (attribute_value_equal): Declare.
20840 * tree.c (attribute_value_equal): Export.
20842 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20844 * ipa-icf.c (sem_item::compare_attributes): New function.
20845 (sem_item::compare_referenced_symbol_properties): Compare variable
20847 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
20848 (sem_function::param_used_p): New function.
20849 (sem_function::equals_wpa): Fix attribute comparsion; match
20850 parameter type codes; do not compare paremter flags when
20851 they are not used; compare edge flags; compare indirect calls.
20852 (sem_item::update_hash_by_addr_refs): Hash reference type.
20853 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
20854 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
20855 reference use type.
20856 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
20857 * ipa-icf.h (compare_attributes, param_used_p): Declare.
20859 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20861 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
20863 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
20864 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
20865 (sem_item::compare_referenced_symbol_properties): New.
20866 (sem_item::hash_referenced_symbol_properties): New.
20867 (sem_item::compare_cgraph_references): Rename to ...
20868 (sem_item::compare_symbol_references): ... this one; use
20869 compare_referenced_symbol_properties.
20870 (sem_function::equals_wpa): Do not compare
20871 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
20872 DECL_IS_OPERATOR_NEW; compare pointer sizes.
20873 (sem_item::update_hash_by_addr_refs): Call
20874 hash_referenced_symbol_properties.
20875 (sem_item::update_hash_by_local_refs): Cleanup.
20876 (sem_function::merge): Do not mix up symbol properties.
20877 (sem_variable::equals_wpa): Use compare_symbol_references.
20878 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
20879 (sem_item::hash_referenced_symbol_properties): New.
20880 (sem_item::compare_symbol_references): New.
20881 (sem_item::compare_cgraph_references): Remove.
20883 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
20886 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
20887 Emit size of local.
20889 2015-04-23 Nick Clifton <nickc@redhat.com>
20891 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
20892 ATTRIBUTE_UNUSED to x parameter.
20893 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
20895 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20897 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
20898 TARGET_CRYPTO to TARGET_P8_VECTOR>
20899 (crypto_vpermxor_<mode>): Likewise.
20900 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
20901 (BU_CRYPTO_3A): Likewise.
20902 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
20903 (BU_CRYPTO_OVERLOAD_3A): New #define.
20904 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
20905 (VPMSUMH): Likewise.
20906 (VPMSUMW): Likewise.
20907 (VPMSUMD): Likewise.
20908 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
20909 (VPERMXOR_V4SI): Likewise.
20910 (VPERMXOR_V8HI): Likewise.
20911 (VPERMXOR_V16QI): Likewise.
20912 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
20913 BU_CRYPTO_OVERLOAD_2A.
20914 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
20915 BU_CRYPTO_OVERLOAD_3A.
20916 * config/rs6000/rs6000.opt (mcrypto): Change description of
20919 2015-04-23 Richard Biener <rguenther@suse.de>
20921 * passes.def: Remove copy propagation passes run directly after CCP.
20922 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
20924 (ccp_visit_phi_node): Rework to handle first executable edge
20927 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
20929 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20930 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20931 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20932 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
20933 (thumb_legimitimize_reload_address): Remove.
20934 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
20936 (thumb_legimitimize_reload_address): Remove.
20938 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20940 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
20942 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20944 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
20946 (store_multiple): Likewise.
20948 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20950 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
20951 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
20952 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
20953 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
20954 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
20955 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
20956 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
20957 Specify issue_rate value.
20958 (arm_issue_rate): Look up issue rate from tuning structs. Remove
20959 large switch statement.
20960 (arm_marvell_pj4_tune): New struct.
20961 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
20964 2015-04-23 Richard Biener <rguenther@suse.de>
20966 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
20967 (vect_find_last_store_in_slp_instance): Rename to ...
20968 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
20969 (vect_analyze_slp_cost_1): Use vector_load for constant defs
20970 and vec_construct for external defs when estimating prologue cost.
20971 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
20972 Compute costs here only when vectorizing loops.
20973 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
20974 have been determined.
20975 (vect_schedule_slp_instance): Simplify vectorized code placement
20976 and prepare for in-BB external defs.
20977 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
20978 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
20979 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
20981 (vect_model_load_cost): Likewise.
20982 (vectorizable_store): Instead add it here.
20983 (vectorizable_load): Likewise.
20984 (vect_is_simple_use): Dump def type textually.
20986 2015-04-23 Richard Biener <rguenther@suse.de>
20988 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
20989 * cfgloop.c (verify_loop_structure): Verify the root loop node.
20990 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
20991 instead of get_eh_region_from_lp_number.
20992 * loop-init.c (fix_loop_structure): If we removed a loop, reset
20995 2015-04-23 Anton Blanchard <anton@samba.org>
20997 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
20998 need for -mprofile-kernel to save LR to stack.
21000 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21002 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
21004 (insn_is_swappable_p): Return 1 for a convert from double to
21005 single precision when all of its uses are splats of BE element
21008 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21010 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
21012 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21015 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
21016 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
21017 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
21019 (rs6000_builtin_mask_for_load): Return 0 for targets with
21020 efficient unaligned VSX accesses so that the vectorizer will use
21021 direct unaligned loads.
21022 (rs6000_builtin_support_vector_misalignment): Always return true
21023 for targets with efficient unaligned VSX accesses.
21024 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
21025 stores on targets with efficient unaligned VSX accesses is almost
21026 always the same as the cost of an aligned load or store, so model
21028 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
21029 unaligned vectors if we have efficient unaligned VSX accesses.
21030 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
21031 undocumented option.
21033 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21036 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
21038 * config.gcc (LIBC_MUSL): New tm_defines macro.
21039 * config/linux.h (OPTION_MUSL): Define.
21040 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
21041 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
21042 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
21044 * config/linux.opt (mmusl): New option.
21045 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
21046 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
21048 * configure: Regenerate.
21050 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
21052 * config.gcc (LIBC_MUSL): New tm_defines macro.
21053 * config/linux.h (OPTION_MUSL): Define.
21054 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
21055 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
21056 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
21058 * config/linux.opt (mmusl): New option.
21059 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
21060 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
21062 * configure: Regenerate.
21064 2015-04-22 Yury Gribov <y.gribov@samsung.com>
21066 * doc/invoke.texi (-fsanitize-sections): Update description.
21067 * asan.c (set_sanitized_sections): Parse incoming arg.
21068 (section_sanitized_p): Support wildcards.
21070 2015-04-22 Tom de Vries <tom@codesourcery.com>
21072 PR tree-optimization/65823
21073 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
21074 equality between ap_copy and ap.
21076 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21079 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
21081 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21084 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
21086 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21089 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
21090 remove already contained t-files.
21092 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21094 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
21095 Remove unneeded forward declarations.
21096 (suitable_for_tail_call_opt_p): Commentary typo fix.
21098 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21100 * varasm.c (emit_bss): Remove redundant guard.
21102 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21104 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
21106 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21108 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
21110 2015-04-22 Hale Wang <hale.wang@arm.com>
21111 Terry Guo <terry.guo@arm.com>
21113 PR rtl-optimization/64818
21114 * combine.c (can_combine_p): Don't combine user-specified
21115 register if it is in an asm input.
21117 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
21120 * passes.def (early_optimizations): Add pass_dse.
21122 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21124 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
21125 * reorg.c (redundant_insn): Remove ifdef
21126 INSN_REFERENCES_ARE_DELAYED.
21127 * resource.c (mark_referenced_resources): Likewise.
21129 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21131 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
21132 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
21133 * resource.c (mark_set_resources): Likewise.
21135 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21137 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
21138 * cfgcleanup.c (flow_find_cross_jump): Likewise.
21139 (flow_find_head_matching_sequence): Likewise.
21140 (try_head_merge_bb): Likewise.
21141 * combine.c (can_combine_p): Likewise.
21142 (try_combine): Likewise.
21143 (distribute_notes): Likewise.
21144 * df-problems.c (can_move_insns_across): Likewise.
21145 * final.c (final): Likewise.
21146 * gcse.c (insert_insn_end_basic_block): Likewise.
21147 * ira.c (find_moveable_pseudos): Likewise.
21148 * reorg.c (try_merge_delay_insns): Likewise.
21149 (fill_simple_delay_slots): Likewise.
21150 (fill_slots_from_thread): Likewise.
21151 * sched-deps.c (sched_analyze_2): Likewise.
21153 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21155 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
21156 PIC_OFFSET_TABLE_REGNUM.
21158 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21160 * alias.c (init_alias_target): Remove ifdef
21161 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
21162 * df-scan.c (df_insn_refs_collect): Likewise.
21163 (df_get_regular_block_artificial_uses): Likewise.
21164 (df_get_eh_block_artificial_uses): Likewise.
21165 (df_get_entry_block_def_set): Likewise.
21166 (df_get_exit_block_use_set): Likewise.
21167 * emit-rtl.c (gen_rtx_REG): Likewise.
21168 * ira.c (ira_setup_eliminable_regset): Likewise.
21169 * reginfo.c (init_reg_sets_1): Likewise.
21170 * regrename.c (rename_chains): Likewise.
21171 * reload1.c (reload): Likewise.
21172 (eliminate_regs_in_insn): Likewise.
21173 * resource.c (mark_referenced_resources): Likewise.
21174 (init_resource_info): Likewise.
21176 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21178 * defaults.h (MASK_RETURN_ADDR): New definition.
21179 * except.c (expand_builtin_extract_return_addr): Remove ifdef
21182 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21184 * defaults.h (RETURN_ADDR_OFFSET): New definition.
21185 * except.c (expand_builtin_extract_return_addr): Remove ifdef
21186 RETURN_ADDR_OFFSET.
21187 (expand_builtin_frob_return_addr): Likewise.
21189 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21191 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
21192 (try_redirect_by_replacing_jump): Likewise.
21193 (rtl_tidy_fallthru_edge): Likewise.
21194 * combine.c (insn_a_feeds_b): Likewise.
21195 (find_split_point): Likewise.
21196 (simplify_set): Likewise.
21197 * cprop.c (cprop_jump): Likewise.
21198 * cse.c (cse_extended_basic_block): Likewise.
21199 * df-problems.c (can_move_insns_across): Likewise.
21200 * function.c (emit_use_return_register_into_block): Likewise.
21201 * haifa-sched.c (sched_init): Likewise.
21202 * ira.c (find_moveable_pseudos): Likewise.
21203 * loop-invariant.c (find_invariant_insn): Likewise.
21204 * lra-constraints.c (curr_insn_transform): Likewise.
21205 * postreload.c (reload_combine_recognize_const_pattern):
21207 * reload.c (find_reloads): Likewise.
21208 * reorg.c (delete_scheduled_jump): Likewise.
21209 (steal_delay_list_from_target): Likewise.
21210 (steal_delay_list_from_fallthrough): Likewise.
21211 (redundant_insn): Likewise.
21212 (fill_simple_delay_slots): Likewise.
21213 (fill_slots_from_thread): Likewise.
21214 (delete_computation): Likewise.
21215 * sched-rgn.c (add_branch_dependences): Likewise.
21217 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21219 * genconfig.c (main): Always define HAVE_cc0.
21220 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
21222 * cfgcleanup.c (flow_find_cross_jump): Likewise.
21223 (flow_find_head_matching_sequence): Likewise.
21224 (try_head_merge_bb): Likewise.
21225 * cfgrtl.c (rtl_merge_blocks): Likewise.
21226 (try_redirect_by_replacing_jump): Likewise.
21227 (rtl_tidy_fallthru_edge): Likewise.
21228 * combine.c (do_SUBST_MODE): Likewise.
21229 (insn_a_feeds_b): Likewise.
21230 (combine_instructions): Likewise.
21231 (can_combine_p): Likewise.
21232 (try_combine): Likewise.
21233 (find_split_point): Likewise.
21235 (simplify_set): Likewise.
21236 (distribute_notes): Likewise.
21237 * cprop.c (cprop_jump): Likewise.
21238 * cse.c (cse_extended_basic_block): Likewise.
21239 * df-problems.c (can_move_insns_across): Likewise.
21240 * final.c (final): Likewise.
21241 (final_scan_insn): Likewise.
21242 * function.c (emit_use_return_register_into_block): Likewise.
21243 * gcse.c (insert_insn_end_basic_block): Likewise.
21244 * haifa-sched.c (sched_init): Likewise.
21245 * ira.c (find_moveable_pseudos): Likewise.
21246 * loop-invariant.c (find_invariant_insn): Likewise.
21247 * lra-constraints.c (curr_insn_transform): Likewise.
21248 * optabs.c (prepare_cmp_insn): Likewise.
21249 * postreload.c (reload_combine_recognize_const_pattern):
21251 * reload.c (find_reloads): Likewise.
21252 (find_reloads_address_1): Likewise.
21253 * reorg.c (delete_scheduled_jump): Likewise.
21254 (steal_delay_list_from_target): Likewise.
21255 (steal_delay_list_from_fallthrough): Likewise.
21256 (try_merge_delay_insns): Likewise.
21257 (redundant_insn): Likewise.
21258 (fill_simple_delay_slots): Likewise.
21259 (fill_slots_from_thread): Likewise.
21260 (delete_computation): Likewise.
21261 (relax_delay_slots): Likewise.
21262 * sched-deps.c (sched_analyze_2): Likewise.
21263 * sched-rgn.c (add_branch_dependences): Likewise.
21265 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21267 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
21268 that is trivially ded on non cc0 targets.
21269 (simplify_set): Likewise.
21270 (mark_used_regs_combine): Likewise.
21271 * cse.c (new_basic_block): Likewise.
21272 (fold_rtx): Likewise.
21273 (cse_insn): Likewise.
21274 (cse_extended_basic_block): Likewise.
21275 (set_live_p): Likewise.
21276 * rtlanal.c (canonicalize_condition): Likewise.
21277 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
21279 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21281 * conditions.h: Define macros even if HAVE_cc0 is undefined.
21282 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
21283 * final.c: Likewise.
21284 * jump.c: Likewise.
21285 * recog.c: Likewise.
21286 * recog.h: Declare functions even when HAVE_cc0 is undefined.
21287 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
21289 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21291 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
21292 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
21293 * builtins.c (expand_builtin): Remove check if
21294 EH_RETURN_DATA_REGNO is defined.
21295 * df-scan.c (df_bb_refs_collect): Likewise.
21296 (df_get_exit_block_use_set): Likewise.
21297 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
21298 * ira-lives.c (process_bb_node_lives): Likewise.
21299 * lra-lives.c (process_bb_lives): Likewise.
21301 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
21303 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
21304 FIRST_PSEUDO_REG): New.
21305 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
21306 (ARG_POINTER_REGNUM): Define to ARGP_REG.
21307 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
21308 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
21309 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
21310 (FIRST_INT_REG): New.
21311 (LAST_INT_REG): New.
21312 (FIRST_*_REG): Define using *_REG.
21313 (LAST_*_REG): Ditto.
21314 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
21315 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
21316 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
21318 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21320 * expmed.c: (synth_mult): Only assume overlapping
21321 shift with previous steps in alg_sub_t_m2 case.
21323 2015-04-21 Richard Biener <rguenther@suse.de>
21325 PR tree-optimization/65650
21326 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
21327 transitions involving copies.
21328 (set_lattice_value): Adjust for copy lattice state.
21329 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
21330 if that doesn't dominate the merge point.
21331 (bit_value_unop): Adjust what we treat as varying mask.
21332 (bit_value_binop): Likewise.
21333 (bit_value_assume_aligned): Likewise.
21334 (evaluate_stmt): When we simplified to a SSA name record a copy
21335 instead of dropping to varying.
21336 (visit_assignment): Simplify.
21338 * gimple-match.h (gimple_simplify): Add another callback.
21339 * gimple-fold.c (fold_stmt_1): Adjust caller.
21340 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
21341 for the 2nd callback.
21342 * gimple-match-head.c (gimple_simplify): Add a callback that is
21343 used to valueize the stmt operands and use it that way.
21345 2015-04-21 Richard Biener <rguenther@suse.de>
21347 PR tree-optimization/65788
21348 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
21350 2015-04-21 Richard Biener <rguenther@suse.de>
21352 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
21353 vec_construct cost by vec_stmt_cost.
21355 2015-04-21 Richard Biener <rguenther@suse.de>
21357 * cfghooks.h (create_basic_block): Replace with two overloads
21358 for RTL and GIMPLE.
21359 (split_block): Likewise.
21360 * cfghooks.c (split_block): Rename to ...
21361 (split_block_1): ... this.
21362 (split_block): Add two type-safe overloads for RTL and GIMPLE.
21363 (split_block_after_labels): Call split_block_1.
21364 (create_basic_block): Rename to ...
21365 (create_basic_block_1): ... this.
21366 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
21367 (create_empty_bb): Call create_basic_block_1.
21368 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
21369 split_block_after_labels.
21370 * omp-low.c (expand_parallel_call): Likewise.
21371 (expand_omp_target): Likewise.
21372 (simd_clone_adjust): Likewise.
21373 * tree-chkp.c (chkp_get_entry_block): Likewise.
21374 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
21375 create_basic_block overload.
21376 (cgraph_node::expand_thunk): Likewise.
21377 * tree-cfg.c (make_blocks): Likewise.
21378 (handle_abnormal_edges): Likewise.
21379 * tree-inline.c (copy_bb): Likewise.
21381 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21383 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
21385 (*xor_one_cmplsidi3_ze): Likewise.
21387 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
21389 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
21390 use df_remove_problem rather than manually removing problems, leaving
21391 holes in df->problems_in_order[].
21393 2015-04-21 Tom de Vries <tom@codesourcery.com>
21395 PR tree-optimization/65802
21396 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
21398 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21400 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
21402 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
21403 at '.'. Assert that there's enough space for everything.
21405 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
21407 PR tree-optimization/64950
21409 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
21412 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
21415 2015-04-20 Shiva Chen <shiva0217@gmail.com>
21417 PR rtl-optimization/64916
21418 * cfgcleanup.c (values_equal_p): New function.
21419 (can_replace_by): Use it.
21421 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
21424 * doc/invoke.texi ([-Wnarrowing]): Update.
21426 2015-04-20 Jeff Law <law@redhat.com>
21428 PR tree-optimization/65658
21429 * tree-ssa-threadupdate.c (redirection_block_p): Remove
21430 redundant test for GIMPLE_ASSIGN in last change.
21432 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
21434 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
21435 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
21436 (legitimize_tls_address): Ditto.
21437 (ix86_expand_move): Ditto.
21438 (ix86_expand_binary_operator): Remove reload_in_progress checks.
21439 (ix86_expand_unary_operator): Ditto.
21440 * config/i386/predicates.md (index_register_operand): Ditto.
21442 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
21444 * reorg.c (try_merge_delay_insns): Improve correctness checking
21445 for targets with multiple delay slots.
21447 2015-04-20 Jeff Law <law@redhat.com>
21449 PR tree-optimization/65658
21450 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
21453 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
21455 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
21456 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
21459 2015-04-20 Jakub Jelinek <jakub@redhat.com>
21462 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
21464 2015-04-20 Richard Biener <rguenther@suse.de>
21466 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
21467 * gimple-fold.c (gimple_build_valueize): New function.
21468 (gimple_build): Always use gimple_build_valueize as valueize hook.
21470 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
21473 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
21474 and overwrite variable parts if <= 1/2 the elements are variable.
21476 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
21478 PR rtl-optimization/65805
21479 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
21480 Don't use difference of offset and previous offset if
21481 update_sp_offset is non-zero.
21482 (eliminate_regs_in_insn): Ditto.
21483 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
21484 lra_eliminate_regs_1 call.
21485 * lra-constraints.c (get_equiv_with_elimination): Ditto.
21487 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
21489 * hash-table.h: Remove version of hash_table that stored value_type *.
21490 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
21491 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
21492 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
21493 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
21494 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
21495 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
21496 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
21497 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
21498 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
21499 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
21500 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
21501 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
21502 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
21503 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
21504 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
21505 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
21507 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21508 Jakub Jelinek <jakub@redhat.com>
21511 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
21512 subsequent SH_NONE operand does not overwrite an existing *special
21514 (adjust_extract): Handle case where a vec_extract operation is
21515 wrapped in a PARALLEL.
21517 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21520 * config/i386/i386.c (ix86_binds_local_p): Define only if
21521 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
21523 2015-04-17 Jeff Law <law@redhat.com>
21525 PR tree-optimization/47679
21526 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
21527 * tree-ssa-scopedtables.c: New file.
21528 * tree-ssa-scopedtables.h: New file.
21529 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
21530 (const_and_copies): Change name/type.
21531 (record_const_or_copy): Move into tree-ssa-scopedtables.c
21532 (record_const_or_copy_1): Similarly.
21533 (restore_vars_to_original_value): Similarly.
21534 (pass_dominator::execute): Create and destroy const_and_copies table.
21535 (thread_across_edge): Update passing of const_and_copies.
21536 (record_temporary_equivalence): Use method calls rather than
21537 manipulating const_and_copies directly.
21538 (record_equality, cprop_into_successor_phis): Similarly.
21539 (dom_opt_dom_walker::before_dom_children): Similarly.
21540 (dom_opt_dom_walker::after_dom_children): Similarly.
21541 (eliminate_redundant_computations): Similarly.
21542 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
21543 (record_temporary_equivalence): Likewise.
21544 (invalidate_equivalences): Likewise.
21545 (record_temporary_equivalences_from_phis): Update due to type
21546 change of const_and_copies. Use method calls rather than
21547 manipulating the stack directly.
21548 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
21549 (thread_through_normal_block, thread_across_edge): Likewise.
21550 (thread_across_edge): Likewise.
21551 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
21552 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
21554 (identify_jump_threads): Update due to type change of equiv_stack.
21555 (finalize_jump_threads): Delete the equiv_stack when complete.
21557 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
21559 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
21560 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
21561 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
21563 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
21566 * config.gcc: Exit with a comment when we do not have a major version
21567 number for the FreeBSD target.
21569 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21572 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
21573 maybe_allows_mem bitfields.
21574 (maybe_allows_none_start, maybe_allows_none_end,
21575 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
21576 maybe_allows_mem_end): New variables.
21577 (compute_maybe_allows): New function.
21578 (add_constraint): Use it to initialize maybe_allows_reg and
21579 maybe_allows_mem fields.
21580 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
21581 is_address constraints such that those that allow neither mem nor
21582 reg come first, then those that only allow reg but not mem, then
21583 those that only allow mem but not reg, then the rest.
21584 (write_allows_reg_mem_function): New function.
21585 (write_tm_preds_h): Call it.
21586 * stmt.c (parse_output_constraint, parse_input_constraint): Use
21587 the generated insn_extra_constraint_allows_reg_mem function
21588 instead of always setting *allows_reg = true; *allows_mem = true;
21589 for unknown extra constraints.
21591 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21594 * output.h (default_binds_local_p_3): New.
21595 * varasm.c (default_binds_local_p_3): Make it public. Take an
21596 argument to indicate if common symbol may be local. If common
21597 symbol may be local, treat non-external variable as defined
21599 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
21600 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
21601 * config/i386/i386.c (ix86_binds_local_p): New.
21602 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
21603 ix86_binds_local_p.
21605 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21608 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
21609 trying mem_loc_descriptor on XEXP (rtl, 0).
21611 2015-04-17 Martin Liska <mliska@suse.cz>
21613 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
21614 Release symbol_compare_collection.
21615 * ipa-reference.c: Add TODO that a vector should be released.
21617 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
21620 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
21621 to new AVR-LibC file layout (bug #44574).
21622 (*avrlibc_devicelib): Same.
21623 * config/avr/avr-mcus.def: Adjust comments.
21624 * config/avr/avr.opt (nodevicelib): Adjust help.
21626 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
21628 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
21630 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
21633 * gimplify.c (gimplify_init_constructor): Always emit a
21634 side-effecting constructor.
21636 2015-04-17 Tom de Vries <tom@codesourcery.com>
21638 PR tree-optimization/64950
21639 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
21640 in cfun->curr_properties.
21641 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
21642 if we generate an IFN_VA_ARG.
21643 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
21644 function if PROP_gimple_lva is not set in src function.
21646 2015-04-17 Tom de Vries <tom@codesourcery.com>
21647 Michael Matz <matz@suse.de>
21649 PR tree-optimization/64950
21650 * gimple-iterator.c (update_modified_stmts): Remove static.
21651 * gimple-iterator.h (update_modified_stmts): Declare.
21652 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
21653 (gimplify_va_arg_internal): New function.
21654 (gimplify_va_arg_expr): Use IFN_VA_ARG.
21655 * gimplify.h (gimplify_va_arg_internal): Declare.
21656 * internal-fn.c (expand_VA_ARG): New unreachable function.
21657 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
21658 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
21659 (expand_ifn_va_arg): New function.
21660 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
21661 (pass_stdarg::execute): Call expand_ifn_va_arg.
21662 (pass_data_lower_vaarg): New pass_data.
21663 (pass_lower_vaarg): New gimple_opt_pass.
21664 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
21665 (make_pass_lower_vaarg): New function.
21666 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
21667 properties_required field.
21668 * passes.def (all_passes): Add pass_lower_vaarg.
21669 * tree-pass.h (PROP_gimple_lva): Add define.
21670 (make_pass_lower_vaarg): Declare.
21672 2015-04-17 Tom de Vries <tom@codesourcery.com>
21674 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
21675 * calls.c (call_expr_flags): Same.
21677 2015-04-17 Tom de Vries <tom@codesourcery.com>
21679 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
21680 (pass_stdarg::execute): ... here.
21682 2015-04-17 Tom de Vries <tom@codesourcery.com>
21683 Michael Matz <matz@suse.de>
21685 * tree-cfg.c (make_blocks_1): Factor out of ...
21686 (make_blocks): ... here.
21687 (make_edges_bb): Factor out of ...
21688 (make_edges): ... here.
21689 (gimple_find_sub_bbs): New function.
21690 * tree-cfg.h (gimple_find_sub_bbs): Declare.
21692 2015-04-17 Tom de Vries <tom@codesourcery.com>
21694 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
21696 2015-04-17 Yury Gribov <y.gribov@samsung.com>
21698 * asan.c (set_sanitized_sections): New function.
21699 (section_sanitized_p): Ditto.
21700 (asan_protect_global): Optionally sanitize user-defined
21702 * asan.h (set_sanitized_sections): Declare new function.
21703 * common.opt (fsanitize-sections): New option.
21704 * doc/invoke.texi (-fsanitize-sections): Document new option.
21705 * opts-global.c (handle_common_deferred_options): Handle new
21708 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21711 * dwarf2out.c (loc_list_from_tree): Return NULL
21712 for DEBUG_EXPR_DECL.
21714 2015-04-17 Christian Bruel <christian.bruel@st.com>
21716 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
21719 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21721 * ira-color.c (setup_left_conflict_sizes_p): Do not process
21722 node itself when computing left conflict subnode size.
21724 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21726 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
21727 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
21728 *fop_<mode>_1_sse using enabled attribute. Use
21729 register_mixssei387nonimm_operand operand 1 predicate. Change
21730 alternative 3 constraints from "x" to "v".
21732 2015-04-16 Richard Biener <rguenther@suse.de>
21734 PR tree-optimization/65774
21735 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
21736 bit-value tracking on.
21738 2015-04-16 Richard Biener <rguenther@suse.de>
21740 PR tree-optimization/64277
21741 * tree-vrp.c (check_array_ref): Fix anti-range handling,
21742 simplify upper bound handling.
21743 (search_for_addr_array): Simplify.
21744 (check_array_bounds): Handle ADDR_EXPRs here.
21745 (check_all_array_refs): Simplify.
21747 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21749 * config/i386/i386.c (print_reg): Rewrite function.
21751 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21753 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
21754 Invert the condition.
21756 2015-04-16 Renlin Li <renlin.li@arm.com>
21758 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
21759 simplifications for UNSIGNED_FLOAT.
21761 2015-04-16 Nick Clifton <nickc@redhat.com>
21763 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
21765 (enum rl78_cpu_type): New.
21766 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
21767 (umulhi3_shift_virt): Remove m constraint from operand 1.
21768 (umulqihi3_virt): Likewise.
21769 * config/rl78/rl78.c (rl78_option_override): Add code to process
21770 -mcpu and -mmul options.
21771 (rl78_alloc_physical_registers): Add code to handle divhi and
21772 divsi valloc attributes.
21773 (set_origin): Likewise.
21774 * config/rl78/rl78.h (RL78_MUL_G14): Define.
21775 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
21776 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
21778 (ASM_SPEC): Pass -mcpu on to assembler.
21779 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
21780 (mulqi3_rl78): Likewise.
21781 (mulhi3_g13): Likewise.
21782 (mulhi3): Generate the G13 or G14 versions of the insn directly.
21783 (mulsi3): Likewise.
21784 (mulhi3_g14): Add clobbers of AX and BC.
21785 (mulsi3_g14): Likewise.
21786 (mulsi3_g13): Likewise.
21787 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
21788 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
21789 * config/rl78/rl78.opt (mmul): Initialise value to
21791 (mcpu): New option.
21792 (m13, m14, mrl78): New option aliases.
21793 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
21794 (MULTILIB_DIRNAMES): Add g13 and g14.
21795 * doc/invoke.texi: Document -mcpu and -mmul options.
21797 2015-04-16 Richard Biener <rguenther@suse.de>
21799 * tree-ssa-ccp.c (likely_value): See if we have operands that
21800 are marked as never simulate again and return CONSTANT in this
21802 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
21803 not have any operands that will be simulated again as
21804 not being simulated again.
21806 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
21808 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
21809 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
21810 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
21812 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
21814 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
21815 *float<SWI48:mode><MODEF:mode>2_sse.
21816 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
21818 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
21821 2015-04-15 Tom de Vries <tom@codesourcery.com>
21824 * function.c (push_dummy_function): New function.
21825 (init_dummy_function_start): Use push_dummy_function.
21826 (pop_dummy_function): New function. Factored out of ...
21827 (expand_dummy_function_end): ... here.
21828 * function.h (push_dummy_function, pop_dummy_function): Declare.
21829 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
21830 pop_dummy_function.
21831 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
21833 2015-04-15 Jeff Law <law@redhat.com>
21835 PR tree-optimization/47679
21836 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
21837 need for forward declaration in upcoming changes.
21838 (record_conditions, record_edge_info): Likewise.
21840 PR rtl-optimization/42522
21841 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
21842 SIGN_EXTRACT as a whole object rather than simplifying
21845 2015-04-15 Jakub Jelinek <jakub@redhat.com>
21848 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
21849 and GIMPLE_PREDICT use break instead of return true. For
21850 GIMPLE_EH_DISPATCH, compare dispatch region.
21852 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
21854 * doc/extend.texi (__sync Builtins): Simplify some text. Update
21855 details about the implementation. Make clear preference for
21856 __atomic builtins. Reduce possibility of future change.
21858 2015-04-15 Nick Clifton <nickc@redhat.com>
21860 * config/rx/rx.opt (mallow-string-insns): New option.
21861 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
21862 builtin if string instructions are denied.
21863 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
21864 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
21866 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
21867 * config/rx/rx.md (movstr): Enable pattern only if string
21868 instructions are allowed.
21869 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
21870 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
21871 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
21872 (MULTILIB_DIRNAMES): Add no-strings.
21873 * doc/invoke.texi: Document -mno-allow-string-insns.
21875 2015-04-15 Alan Modra <amodra@gmail.com>
21879 PR middle-end/36043
21880 * calls.c (load_register_parameters): Don't load past end of
21881 mem unless suitably aligned.
21883 2015-04-15 Nick Clifton <nickc@redhat.com>
21885 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
21886 decrement instruction as being frame related.
21887 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
21889 If zero extending a function address enclose the operation in
21891 (rl78_preferred_reload_class): New function.
21892 (TARGET_PREFERRED_RELOAD_CLASS): Define.
21893 * config/rl78/rl78.md: Remove useless constraints in expanders.
21894 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
21895 (mulhi3_rl78): Likewise.
21896 (mulhi3_g13): Likewise.
21897 (mulsi3_rl78): Likewise.
21898 (es_addr): Move to before the multiply patterns.
21900 2015-04-15 Alan Modra <amodra@gmail.com>
21902 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
21903 and sequence_stack. Add seq.
21904 (seq_stack): Delete.
21905 * function.c (prepare_function_start): Don't access x_last_insn.
21906 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
21907 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
21908 * emit_rtl.c (start_sequence, push_topmost_sequence,
21909 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
21910 sequence accessors.
21911 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
21912 remove_insn): Likewise. Simplify.
21913 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
21914 and pop_topmost_sequence.
21915 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
21917 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
21919 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
21922 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
21925 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21927 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
21928 (LEGACY_INT_REGNO_P): Ditto.
21929 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
21930 (ANY_MASK_REG_P): Remove.
21931 (BND_REG_P): Rename from ANY_BND_REG_P.
21932 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
21933 legacy integer registers. Do not handle MMX_REG_P in a special way.
21934 Merge 64byte and 32byte SSE handling.
21936 2015-04-14 Nick Clifton <nickc@redhat.com>
21938 * expr.c (expand_assignment): Force an address offset computation
21939 into a register before changing its mode.
21940 (expand_expr_real_1): Likewise.
21942 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
21944 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
21945 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
21946 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
21947 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
21948 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
21949 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
21950 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
21951 and __aarch64_vget_lane_any.
21953 2015-04-14 Jakub Jelinek <jakub@redhat.com>
21955 PR rtl-optimization/65761
21956 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
21957 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
21959 2015-04-14 Richard Biener <rguenther@suse.de>
21961 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
21962 (graphite_can_represent_scev): Use POINTER_TYPE_P.
21964 2015-04-14 Richard Biener <rguenther@suse.de>
21966 PR tree-optimization/65758
21967 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
21969 (ccp_lattice_meet): Likewise.
21970 (bit_value_unop): Likewise.
21971 (bit_value_binop): Likewise.
21972 (bit_value_assume_aligned): Likewise.
21974 2015-04-14 Christian Bruel <christian.bruel@st.com>
21976 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
21979 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
21981 PR tree-optimization/63387
21982 * match.pd ((x unord x) | (y unord y) -> (x unord y),
21983 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
21985 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21987 * config/i386/predicates.md (any_QIreg_operand): Rename from
21988 q_regs_operand. Do not process subregs.
21989 (QIreg_operand): Use QI_REGNO_P predicate.
21990 (ext_QIreg_operand): Ditto.
21991 (ext_register_operand): Ditto.
21992 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
21993 (AND splitters): Ditto.
21994 (AND with -65536 splitter): Add SWI48 mode for operand 0.
21995 (AND with -256 splitter): Use any_QIreg_operand predicate and
21996 SWI248 mode for operand 0.
21997 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
21998 mode for operand 0.
21999 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
22001 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
22003 * doc/plugins.texi: Rewrite first introductory paragraph.
22005 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22007 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
22008 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
22010 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22012 * ipa-profie.c (ipa_profile): Check number of parameters
22013 and possible polymorphic call targets before
22016 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
22018 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
22019 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
22021 2015-04-13 Richard Biener <rguenther@suse.de>
22023 PR tree-optimization/65204
22024 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
22025 takens for bit-CCP.
22027 2015-04-13 Richard Biener <rguenther@suse.de>
22030 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
22031 and cond_not_taken_branch_cost to 4 and 2.
22032 (bdver2_cost): Likewise.
22033 (bdver3_cost): Likewise.
22034 (bdver4_cost): Likewise.
22036 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22038 * hash-table.h (hash_table constructor): Add mem stats.
22039 (alloc_entries): Likewise.
22041 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22043 * ipa-cp.c (ipcp_driver): Relase prev_edge.
22044 * passes.c (execute_one_pass): Only add transform if pass has one.
22046 2015-04-12 Joseph Myers <joseph@codesourcery.com>
22048 * config/i386/i386.c (ix86_option_override_internal): Don't set
22049 -fprefetch-loop-arrays if optimizing for size.
22051 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22052 Gerald Pfeifer <gerald@pfeifer.com>
22054 * doc/contrib.texi (Contributors): Add Martin Jambor and
22057 2015-04-12 Jakub Jelinek <jakub@redhat.com>
22059 * BASE-VER: Set to 6.0.0.
22061 PR tree-optimization/65747
22062 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
22063 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
22065 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
22067 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
22068 sentence. Improve grammar.
22070 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
22072 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
22074 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
22077 * ipa-inline-transform.c (speculation_removed): Remove static var.
22078 (check_speculations): New function.
22079 (clone_inlined_nodes): Do not check spculations.
22080 (inline_call): Call check_speculations.
22081 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
22082 consider non-invariants.
22084 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
22085 Martin Liska <mliska@suse.cz>
22088 * ipa-icf.c (sem_item::compare_cgraph_references): function and
22089 variable can not match.
22090 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
22091 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
22093 2015-04-11 Jakub Jelinek <jakub@redhat.com>
22095 PR tree-optimization/65735
22096 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
22097 Remove visited_phis argument, add visited_bbs, avoid recursing into the
22098 same bb rather than just into the same phi node.
22099 (thread_through_normal_block): Adjust caller.
22101 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
22103 * doc/contrib.texi (Contributors): Add Ira Rosen.
22105 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
22107 * gcov.c (find_source): Fix miswording in error message.
22108 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
22109 (ix86_expand_sse_comi_round): Fix typo in error message.
22111 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
22113 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
22115 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
22117 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
22119 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
22122 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
22123 Print bad_spills_num and insn_pseudos_num.
22125 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22128 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
22129 when creating +1 values for SImode.
22131 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
22134 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
22137 2015-04-10 Jakub Jelinek <jakub@redhat.com>
22138 Iain Sandoe <iain@codesourcery.com>
22141 * configure: Regenerate.
22143 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
22146 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
22148 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
22150 * doc/contrib.texi (Contributors): Add John Marino.
22152 2015-04-09 Jakub Jelinek <jakub@redhat.com>
22154 PR tree-optimization/65709
22155 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
22156 TREE_TYPE (TREE_TYPE (t)).
22158 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
22161 * lra-int.h (lra_bad_spill_regno_start): New.
22162 * lra.c (lra_bad_spill_regno_start): New.
22163 (lra): Set up lra_bad_spill_regno_start. Set up
22164 lra_constraint_new_regno_start unconditionally.
22165 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
22168 2015-04-09 Marek Polacek <polacek@redhat.com>
22169 Jakub Jelinek <jakub@redhat.com>
22171 PR middle-end/65554
22172 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
22173 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
22176 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
22178 PR rtl-optimization/65693
22179 * combine.c (is_parallel_of_n_reg_sets): Move outside of
22182 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
22185 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
22186 device specs file if "device-specs%s" didn't resolve to a path.
22188 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
22191 * config/i386/i386.c (fixup_modeless_constant): New.
22192 (ix86_expand_args_builtin): Fixup modeless constant operand.
22193 (ix86_expand_round_builtin): Ditto.
22194 (ix86_expand_special_args_builtin): Ditto.
22195 (ix86_expand_builtin): Ditto.
22197 2015-04-09 Jakub Jelinek <jakub@redhat.com>
22200 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
22201 any pow2 integer in between 2 and 0x80000000U inclusive.
22203 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
22205 PR rtl-optimization/65693
22206 * combine.c (is_parallel_of_n_reg_sets): Change first argument
22207 from an rtx_insn * to an rtx.
22208 (try_combine): Adjust both callers. Use it once more.
22210 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22212 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
22213 (chkp_make_static_const_bounds): Search existing
22214 symbol by assembler name. Use make_decl_one_only.
22215 (chkp_get_zero_bounds_var): Remove node search which
22216 is now performed in chkp_make_static_const_bounds.
22217 (chkp_get_none_bounds_var): Likewise.
22219 2015-04-08 Michael Witten <mfwitten@gmail.com>
22221 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
22224 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22226 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
22228 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
22230 * doc/extend.texi (__sync Builtins): Fix grammar.
22232 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22234 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
22236 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22238 * varasm.c (emit_local): Move definition of align.
22240 2015-04-08 Julian Brown <julian@codesourcery.com>
22242 * config/nvptx/mkoffload.c (process): Support variable mapping.
22244 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
22246 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
22248 (alpha_write_one_linkage): Correct typo.
22250 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22252 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
22254 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
22256 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
22258 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22260 * tree-chkp.h (chkp_insert_retbnd_call): New.
22261 * tree-chkp.c (chkp_insert_retbnd_call): New.
22262 * ipa-split.c (insert_bndret_call_after): Remove.
22263 (split_function): Use chkp_insert_retbnd_call.
22264 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
22265 bounds for instrumented functions.
22267 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
22270 * calls.c (initialize_argument_information): When producing tail
22271 call also turn SSA_NAMES passed by references to original PARM_DECLs
22273 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
22276 * lra-remat.c (do_remat): Process input and non-input insn
22277 registers separately.
22279 2015-04-07 Jakub Jelinek <jakub@redhat.com>
22282 * valtrack.c (debug_lowpart_subreg): New function.
22283 (dead_debug_insert_temp): Use it.
22285 PR middle-end/65680
22286 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
22287 into signed HOST_WIDE_INT the same as negative bit_offset.
22289 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
22291 * ipa-comdats.c (ipa_comdats): Visit all thunks
22292 to set proper comdat group.
22294 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22297 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
22298 on constants for NEON VSTRUCT modes.
22300 2015-04-07 Jakub Jelinek <jakub@redhat.com>
22301 Iain Sandoe <iain@codesourcery.com>
22304 * configure: Regenerate.
22306 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22309 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
22310 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
22311 that LFD is used to load double constants instead of LFS. Add
22312 defaults for all costs structures. Add comments for missing
22313 initialization fields.
22314 (size32_cost): Likewise.
22315 (size64_cost): Likewise.
22316 (rs64a_cost): Likewise.
22317 (mpccore_cost): Likewise.
22318 (ppc403_cost): Likewise.
22319 (ppc405_cost): Likewise.
22320 (ppc440_cost): Likewise.
22321 (ppc476_cost): Likewise.
22322 (ppc601_cost): Likewise.
22323 (ppc603_cost): Likewise.
22324 (ppc604_cost): Likewise.
22325 (ppc604e_cost): Likewise.
22326 (ppc620_cost): Likewise.
22327 (ppc630_cost): Likewise.
22328 (ppccell_cost): Likewise.
22329 (ppc750_cost): Likewise.
22330 (ppc7450_cost): Likewise.
22331 (ppc8540_cost): Likewise.
22332 (ppce300c2c3_cost): Likewise.
22333 (ppce500mc_cost): Likewise.
22334 (ppce500mc64_cost): Likewise.
22335 (ppce5500_cost): Likewise.
22336 (ppce6500_cost): Likewise.
22337 (titan_cost): Likewise.
22338 (power4_cost): Likewise.
22339 (power6_cost): Likewise.
22340 (power7_cost): Likewise.
22341 (power8_cost): Likewise.
22342 (ppca2_cost): Likewise.
22343 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
22345 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
22346 instead of XXLOR to copy SFmode to clear out dirty bits created
22347 when SFmode denormals are generated.
22348 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
22349 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
22351 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
22353 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
22354 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
22355 * config/aarch64/aarch64-tune.md: Regenerate.
22357 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
22359 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
22360 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
22361 * config/arm/arm-cores.def (exynos-m1): New core.
22362 * config/arm/arm-tune.md: Regenerate.
22363 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
22364 * config/arm/bpabi.h: Likewise.
22366 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
22368 * ipa-cp (set_single_call_flag): Remove too
22369 restrictive assert.
22371 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
22373 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
22374 GOMP_offload_unregister from the destructor.
22376 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
22378 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
22379 flags for instrumentation thunk.
22380 (chkp_produce_thunks): Likewise.
22382 2015-04-05 Martin Liska <mliska@suse.cz>
22385 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
22386 has computed data structure.
22387 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22389 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
22391 * invoke.texi (inline-unit-growth): Increase growth to 20%
22392 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
22394 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
22397 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
22399 (lra_rematerialization_iter): New.
22400 * lra.c (lra): Initialize lra_rematerialization_iter.
22401 Stop updating lra_constraint_new_regno_start after switching of
22402 inheritance and rematerialization.
22403 * lra-remat.c (lra_rematerialization_iter): New.
22404 (lra_remat): Add printing pass iteration. Do rematerialization
22405 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
22407 2015-04-04 Richard Biener <rguenther@suse.de>
22409 PR tree-optimization/64909
22410 PR tree-optimization/65660
22411 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
22412 to take a cost vector for scalar iteration cost.
22413 (vect_get_single_scalar_iteration_cost): Likewise.
22414 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
22415 Compute the scalar iteration cost into a cost vector.
22416 (vect_get_known_peeling_cost): Use the scalar cost vector to
22417 account for the cost of the peeled iterations.
22418 (vect_estimate_min_profitable_iters): Likewise.
22419 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
22422 2015-04-04 Alan Modra <amodra@gmail.com>
22426 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
22427 0.0 constant unless TARGET_VSX.
22428 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
22431 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22434 * ipa-inline-transform.c (inline_call): Skip sanity check to work
22437 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22440 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
22441 speculative indirect edges to avoid ordering issue.
22443 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22446 * ipa-inline.c (edge_badness): Add combined size to the denominator.
22448 2015-04-03 Jakub Jelinek <jakub@redhat.com>
22450 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
22451 TYPE_ARTIFICIAL on the .omp_data* types.
22453 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22455 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
22456 instrumentation thunks.
22458 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22460 * config/i386/i386.c (ix86_expand_call): Avoid nested
22461 PARALLEL in returned call value.
22463 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22465 * lto-cgraph.c (input_cgraph_1): Always link instrumented
22466 assembler name with original one.
22468 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22470 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
22472 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22474 Revert parts of r216820.
22475 * config/i386/i386.md (movqi_internal): Correct type calculation
22476 for alternatives 3 and 5.
22478 2015-04-02 Jakub Jelinek <jakub@redhat.com>
22480 PR preprocessor/61977
22481 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
22482 predefine __vector/__bool/__pixel macros nor context sensitive
22483 macros for CLK_ASM.
22484 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
22486 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
22488 * config/pa/pa.c (pa_output_move_double): Directly handle register
22489 indexed memory operand. Simplify handling of scaled register indexed
22492 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22495 * config/i386/linux-common.h (MPX_SPEC): New.
22496 (CHKP_SPEC): Add MPX_SPEC.
22497 * doc/invoke.texi (-fcheck-pointer-boudns): Document
22498 possible issues with '-z bndplt' support in linker.
22500 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22502 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
22503 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
22504 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
22505 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
22506 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
22508 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
22510 * config/i386/sync.md (UNSPEC_MOVA): Remove.
22511 (atomic_load<mode>): Change operand 0 predicate to
22512 nonimmediate_operand and fix up the destination when needed.
22514 (atomic_loaddi_fpu): Use UNSPEC_LDA.
22515 (atomic_store<mode>): Change operand 1 predicate to
22516 nonimmendate_operand and move the source to register when needed.
22518 (atomic_store<mode>_1): Use UNSPEC_STA.
22519 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
22520 Fix moves from memory operand. Use UNSPEC_STA.
22522 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
22524 * expmed.c (strict_volatile_bitfield_p): Check that the access will
22525 not cross a MODESIZE boundary.
22526 (store_bit_field, extract_bit_field): Added assertions in the
22527 strict volatile bitfields code path.
22529 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
22532 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
22533 Increase args array size by one to avoid buffer overflow.
22535 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22537 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
22539 * ipa-inline.c (edge_badness): Add wrapper penalty.
22540 (sum_callers): Move up.
22541 (inline_small_functions): Set single_caller.
22542 * ipa-inline.h (inline_summary): Add single_caller.
22543 * ipa-split.c (split_function): Set split_part.
22544 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
22545 * cgraph.h (cgraph_node): Add split_part.
22547 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
22550 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
22551 Do not split operands 0 and operands 2 to halfmode.
22552 (atomic_compare_and_swap<mode>): Update for
22553 atomic_compare_and_swap<dwi>_doubleword changes.
22555 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22557 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
22558 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
22559 no caching is done.
22561 2015-03-31 Martin Liska <mliska@suse.cz>
22564 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
22565 has already filled up function summary.
22566 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22568 2015-03-31 Richard Biener <rguenther@suse.de>
22570 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
22573 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
22575 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
22577 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
22578 (s390_asm_output_function_label): Adapt to new signature of
22579 s390_function_num_hotpatch_hw
22580 Optimise the code generating assembler output.
22581 Add comments to assembler file.
22583 2015-03-31 Richard Biener <rguenther@suse.de>
22585 PR middle-end/65626
22586 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
22587 of the noreturn call so it is last and cleanup_control_flow_bb
22588 can do the CFG part.
22590 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
22593 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
22594 same_comdat_group for external symbols.
22595 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
22596 infinite same_comdat_group traversal loop.
22598 2015-03-31 Jakub Jelinek <jakub@redhat.com>
22601 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
22602 automatically to $headers.
22604 2015-03-30 Jakub Jelinek <jakub@redhat.com>
22607 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
22608 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
22610 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
22612 * ipa-prop.c (param_type_may_change_p): Likewise.
22613 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
22614 (remove_unused_scope_block_p): Add in_ctor_dtor_block
22615 argument. Before inlining, preserve
22616 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
22617 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
22619 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
22621 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22624 * ipa-inline.c (edge_badness): Base denominator on callee's
22627 2015-03-27 Martin Jambor <mjambor@suse.cz>
22630 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
22631 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
22632 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
22633 node_calling_single_call.
22634 * ipa-cp.c (count_callers): New function.
22635 (set_single_call_flag): Likewise.
22636 (initialize_node_lattices): Count callers and set single_flag_call if
22638 (incorporate_penalties): New function.
22639 (good_cloning_opportunity_p): Use it, dump new flags.
22640 (propagate_constants_topo): Set node_within_scc flag if appropriate.
22641 * doc/invoke.texi (ipa-cp-recursion-penalty,
22642 ipa-cp-single-call-pentalty): Document.
22644 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22647 * symtab.c (symtab_node::get_partitioning_class): Register vars
22649 * varpool.c (symbol_table::output_variables) Do not assemble unefined
22650 decls for non-symbols.
22652 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
22655 * output.h (default_binds_local_p_2): New.
22656 * varasm.c (default_binds_local_p_2): Renamed to ...
22657 (default_binds_local_p_3): This. Don't return true on protected
22658 data symbol if protected data may be external.
22659 (default_binds_local_p): Use default_binds_local_p_3.
22660 (default_binds_local_p_1): Likewise.
22661 (default_binds_local_p_2): New.
22662 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
22663 default_binds_local_p_2 if TARGET_MACHO is undefined.
22665 2015-03-27 Jakub Jelinek <jakub@redhat.com>
22668 * config/i386/i386.c (legitimize_pic_address): If base
22669 is SYMBOL_REF or LABEL_REF using %rip addressing, force
22670 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
22672 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22675 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
22678 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22681 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
22682 of optimized out indirect call.
22683 (redirect_to_unreachable): Always build symbol table node for
22684 BUILT_IN_UNREACHABLE
22686 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
22689 * ira-costs.c (record_reg_classes): Process all constraint string
22692 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
22694 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
22698 * config/c6x/constraints.md (S3): New constraint.
22699 * config/c6x/c6x.md (real_jump): Use it.
22701 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22703 PR middle-end/65595
22704 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
22705 do redirection if the call is not optimized out.
22707 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
22710 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
22711 (fchkp-check-incomplete-type): Add LTO.
22712 (fchkp-zero-input-bounds-for-main): Likewise.
22713 (fchkp-first-field-has-own-bounds): Likewise.
22714 (fchkp-narrow-bounds): Likewise.
22715 (fchkp-narrow-to-innermost-array): Likewise.
22716 (fchkp-use-static-bounds): Likewise.
22717 (fchkp-use-static-const-bounds): Likewise.
22718 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22720 2015-03-27 Marek Polacek <polacek@redhat.com>
22722 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
22724 2015-03-27 Marek Polacek <polacek@redhat.com>
22727 * ubsan.c (ubsan_create_edge): New function.
22728 (instrument_bool_enum_load): Call it.
22729 (instrument_nonnull_arg): Likewise.
22730 (instrument_nonnull_return): Likewise.
22731 (instrument_object_size): Likewise.
22733 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22735 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
22738 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22741 * lto-streamer.h (class lto_location_cache): New.
22742 (struct data_in): Add location_cache.
22743 (lto_input_location): Update prototype.
22744 (stream_input_location_now): New.
22745 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
22746 pointer to location.
22747 (stream_input_location): Update.
22748 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
22749 (warn_odr): Apply location cache before warning.
22750 (lto_input_location): Update prototype.
22751 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
22752 Use stream_input_location_now.
22753 * lto-streamer-in.c (lto_location_cache::current_cache): New static
22755 (lto_location_cache::cmp_loc): New function.
22756 (lto_location_cache::apply_location_cache): New function.
22757 (lto_location_cache::accept_location_cache): New function.
22758 (lto_location_cache::revert_location_cache): New function.
22759 (lto_location_cache::input_location): New function.
22760 (lto_input_location): Do location caching.
22761 (stream_input_location_now): New function.
22762 (input_eh_region, input_struct_function_base): Use
22763 stream_input_location_now.
22764 (lto_data_in_create): use new.
22765 (lto_data_in_delete): Use delete.
22766 * tree-streamer-in.c (unpack_ts_block_value_fields,
22767 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
22768 lto_input_ts_exp_tree_pointers): Update for cached location api.
22770 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22773 * passes.def: Add pass_nothrow.
22774 * ipa-pure-const.c: (pass_data_nothrow): New.
22775 (pass_nothrow): New.
22776 (pass_nothrow::execute): New.
22777 (make_pass_nothrow): New.
22778 * tree-pass.h (make_pass_nothrow): Declare.
22780 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22782 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
22783 edge to change by speculation resolution or redirection.
22784 (edge_set_predicate): Likewise.
22785 (inline_summary_t::duplicate): Likewise.
22786 (remap_edge_summaries): Likewise.
22788 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22790 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
22792 (can_inline_edge_p): Relax option matching for always inline functions.
22794 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
22797 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
22798 Check operand 4 and operand 0 for equality.
22799 (avx512f_vextract<shuffletype>32x4_1_maskm):
22800 Check operand 6 and operand 0 for equality.
22801 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
22803 (vec_extract_hi_<mode>_maskm): Ditto.
22805 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22807 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
22808 dead calls back to live.
22809 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
22811 (cgraph_node::verify_node): ... here; verify only callee edges,
22813 * cif-code.def (CILK_SPAWN): New code.
22815 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22817 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
22818 (edge_set_predicate): Use it to mark unreachable edges.
22819 (inline_summary_t::duplicate): Remove unnecesary code.
22820 (remap_edge_summaries): Likewise.
22821 (dump_inline_summary): Report contains_cilk_spawn.
22822 (compute_inline_parameters): Compute contains_cilk_spawn.
22823 (inline_read_section, inline_write_summary): Stream
22824 contains_cilk_spawn.
22825 * ipa-inline.c (can_inline_edge_p): Do not touch
22826 DECL_STRUCT_FUNCTION that may not be available;
22827 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
22828 remove check for callee_fun->can_throw_non_call_exceptions and
22829 replace it by optimization attribute check; check for flag_exceptions.
22830 * ipa-inline-transform.c (inline_call): Maintain
22831 DECL_FUNCTION_PERSONALITY
22832 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
22834 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22836 PR tree-optimization/65551
22837 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
22838 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
22840 2015-03-26 Richard Biener <rguenther@suse.de>
22842 PR middle-end/65555
22843 * tree-cfg.c (verify_gimple_call): Do not require a call to
22844 have no LHS if it wasn't recognized as control altering yet.
22846 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22848 PR tree-optimization/64715
22849 * passes.def: Add another instance of pass_object_sizes before ccp1.
22850 * tree-object-size.c (pass_object_sizes::execute): In
22851 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
22852 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
22853 __bos result and the computed constant. Remove redundant
22854 checks, obsoleted by gimple_call_builtin_p test.
22856 * var-tracking.c (variable_tracking_main_1): Don't track
22857 variables for targetm.no_register_allocation targets.
22859 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
22861 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
22862 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
22864 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
22867 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
22868 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
22869 0.0 is correctly setup.
22870 (extenddftf2_internal): Likewise.
22872 2015-03-25 Sebastian Pop <s.pop@samsung.com>
22874 PR tree-optimization/65177
22875 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
22877 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
22878 edges not adjacent on the path to the original code.
22880 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
22883 * doc/install.texi (Building a native compiler): Document new
22884 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
22885 configuration assumes that the host supports the linker plugin.
22887 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
22890 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
22891 chain for generated call.
22893 2015-03-25 Richard Biener <rguenther@suse.de>
22895 * passes.c (pass_manager::execute_early_local_passes): Guard
22896 execution of pass_chkp_instrumentation_passes with
22897 flag_check_pointer_bounds.
22898 (pass_chkp_instrumentation_passes::gate): Likewise.
22900 2015-03-25 Martin Liska <mliska@suse.cz>
22902 PR tree-optimization/65538
22903 * symbol-summary.h (function_summary::~function_summary):
22904 Relese memory for allocated summaries.
22905 (function_summary::release): New function.
22907 2015-03-25 Jakub Jelinek <jakub@redhat.com>
22910 * lto-streamer-out.c (DFS::worklist): New struct.
22911 (DFS::worklist_vec): New data member.
22912 (DFS::next_dfs_num): Remove.
22913 (DFS::DFS): Rewritten using worklist instead of recursion,
22914 using most of code from DFS::DFS_write_tree.
22915 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
22916 pass it to DFS_write_tree calls.
22917 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
22918 quick initial checks push it into worklist_vec and return.
22920 2015-03-25 Richard Biener <rguenther@suse.de>
22922 PR middle-end/65519
22923 * genmatch.c (expr::gen_transform): Re-write to avoid
22924 using gimple_build.
22926 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22928 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
22930 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22932 * config/arm/arm.opt (print_tune_info): New option.
22933 * config/arm/arm.c (arm_print_tune_info): New function.
22934 (arm_file_start): Call arm_print_tune_info.
22935 * config/arm/arm-protos.h (struct tune_params): Add comment.
22936 * doc/invoke.texi (@item -mprint-tune-info): New item.
22937 (-mtune): mention it in ARM Option Summary.
22939 2015-03-25 DJ Delorie <dj@redhat.com>
22941 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
22944 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
22945 Martin Liska <mliska@suse.cz>
22947 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
22948 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
22949 (sem_item::add_type): New function.
22950 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
22951 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
22952 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
22953 (sem_function::equals_wpa): Fix typo.
22954 * ipa-icf.h (sem_item::add_type): New function.
22955 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
22958 2015-03-24 Jakub Jelinek <jakub@redhat.com>
22960 PR tree-optimization/65533
22961 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
22962 with swapped operands, call vect_free_slp_tree on
22963 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
22966 2015-03-24 Richard Biener <rguenther@suse.de>
22968 PR middle-end/65517
22969 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
22970 for fixup if necessary.
22972 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
22974 * doc/extend.texi (Function Attributes): Add @cindex entries
22975 for all attributes and regularize their format. Delete text
22976 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
22977 information about "eightbit_data", "tiny_data", and "model"
22978 variable attributes to the Variable Attributes section. Fix
22979 some obvious typos and copy-editing issues.
22980 (Variable Attributes, Type Attributes): Likewise add/fix
22981 @cindex entries for all attributes.
22983 2015-03-23 Jakub Jelinek <jakub@redhat.com>
22986 * tree-chkp.c (chkp_build_returned_bound): Ignore
22987 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
22989 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
22992 * config/sh/predicates.md (simple_mem_operand,
22993 displacement_mem_operand): Add test for reg.
22994 (short_displacement_mem_operand): Test for displacement_mem_operand
22995 before invoking sh_disp_addr_displacement.
22996 * config/sh/constraints.md (Sdd, Sra): Simplify.
22997 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
22998 Remove redundant displacement_mem_operand tests.
23000 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
23003 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
23004 the same -mmcu=MCU more than once.
23006 2015-03-23 Jakub Jelinek <jakub@redhat.com>
23009 * ipa-devirt.c: Remove duplicate demangle.h include.
23012 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
23014 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
23015 REG_POINTER on *destptr after adjusting it for prologue size.
23018 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
23019 ultimate_alias_target ()->order ints instead of
23020 ultimate_alias_target () pointers.
23022 2015-03-23 Richard Biener <rguenther@suse.de>
23024 PR tree-optimization/65518
23025 * tree-vect-stmts.c (vectorizable_load): Reject single-element
23026 interleaving cases we generate absymal code for.
23028 2015-03-23 Richard Biener <rguenther@suse.de>
23030 PR tree-optimization/65494
23031 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
23033 (vect_analyze_slp_instance): But do that here, always and once.
23035 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23037 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
23038 adding T or multiplying by T+1 and subracting T.
23040 2015-03-22 Jeff Law <law@redhat.com>
23042 PR rtl-optimization/64317
23043 * Makefile.in (OBJS): Add gcse-common.c
23044 * gcse.c: Include gcse-common.h
23045 (struct modify_pair_s): Move structure definition to gcse-common.h
23046 (compute_transp): Move function to gcse-common.c.
23047 (canon_list_insert): Similarly.
23048 (record_last_mem_set_info): Break out some code and put it into
23049 gcse-common.c. Call into the new common code.
23050 (compute_local_properties): Pass additional arguments to compute_transp.
23051 * postreload-gcse.c: Include gcse-common.h and df.h
23052 (modify_mem_list_set, blocks_with_calls): New variables.
23053 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
23054 (get_bb_avail_insn): Pass in the expression index too.
23055 (alloc_mem): Allocate memory for the new bitmaps and lists.
23056 (free_mem): Free memory for the new bitmaps and lists.
23057 (insert_expr_in_table): Record a bitmap index for each entry we
23059 (record_last_mem_set_info): Call into common code in gcse-common.c.
23060 (get_bb_avail_insn): If no available insn was found in the requested
23061 BB. If BB has a single predecessor, see if the expression is
23062 transparent in BB and available in that single predecessor.
23063 (compute_expr_transp): New wrapper for compute_transp.
23064 (eliminate_partially_redundant_load): Pass expression's bitmap_index
23065 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
23066 (gcse_after_reload_main): If there are elements in the hash table,
23067 then compute transparency for all the elements in the hash table.
23068 * gcse-common.h: New file.
23069 * gcse-common.c: New file.
23071 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
23073 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
23075 (System Headers): Likewise.
23077 (Traditional macros): Likewise.
23078 (Invocation): Likewise.
23079 (Option Index): Likewise.
23080 * doc/cppopts.texi (-M): Likewise.
23081 (-finput-charset): Likewise.
23082 (--help): Likewise.
23083 * doc.invoke.texi (AVR Options): Likewise.
23084 (V850 Options): Likewise.
23086 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
23089 * ipa-devirt.c: Include demangle.h
23090 (odr_type_d): Add field rtti_broken.
23091 (odr_subtypes_equivalent_p): Do not require name to match.
23092 (compare_virtual_tables): Fix typo; if type already has ODR violation,
23093 bypass the tests; be ready for function referneces in vtables that are
23094 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
23095 (warn_odr): Give up for nameless types.
23096 (warn_types_mismatch): Report mismatch in mangled names;
23097 report mismatch in anonymous namespaces; look into component types to
23098 give useful error; report when mismatch is dragged in from other ODR
23100 (odr_types_equivalent_p): Match types for being polymorphic; avoid
23101 duplicated diagnostics.
23102 (add_type_duplicate): Reorder checks so more informative ones come
23103 first; fix typo; do not output "the extra base is defined here" when
23105 (BINFO_N_BASE_BINFOS): Relax sanity check.
23107 2015-03-22 Martin Liska <mliska@suse.cz>
23108 Jakub Jelinek <jakub@redhat.com>
23110 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
23111 masks that can potentially include a builtin.
23112 (ix86_add_new_builtins): Introduce fast filter for isa values
23113 that cannot trigger builtin inclusion.
23115 2015-03-22 Martin Liska <mliska@suse.cz>
23117 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
23118 (sem_item::update_hash_by_local_refs): Likewise.
23119 (sem_variable::get_hash): Empty line is fixed.
23120 (sem_item_optimizer::execute): Include adding of hash references.
23121 (sem_item_optimizer::update_hash_by_addr_refs): New function.
23122 (sem_item_optimizer::build_hash_based_classes): Use local hash.
23123 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
23124 (sem_item::update_hash_by_local_refs): Likewise.
23126 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
23129 * ipa-comdats.c (enqueue_references): Walk through thunks.
23130 (ipa_comdats): Likewise.
23131 (set_comdat_group_1): New function.
23133 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
23136 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
23139 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
23140 Gerald Pfeifer <gerald@pfeifer.com>
23142 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
23144 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
23145 Sandra Loosemore <sandra@codesourcery.com>
23147 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
23148 function parameter declaration.
23149 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
23150 Update arguments to nios2_adjust_call_address().
23151 (sibcall_internal): Rename from *sibcall.
23152 (sibcall_value_internal): Rename from *sibcall_value.
23153 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
23154 (nios2_large_got_address): Add target temp reg parameter.
23155 (nios2_got_address): Adjust call to nios2_large_got_address, add
23156 force_reg around it.
23157 (nios2_load_pic_address): Add target temp reg parameter, replace call
23158 to nios2_got_address with corresponding code.
23159 (nios2_legitimize_constant_address): Update call to
23160 nios2_load_pic_address.
23161 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
23162 to use temp reg for PIC loading purposes.
23163 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
23164 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
23165 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
23167 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
23169 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
23170 usage of "the @option{...}".
23171 (-Wopenmp-simd): Likewise.
23172 (-fsanitize-recover): Likewise.
23173 (-fsanitize-undefined-trap-on-error): Likewise.
23175 (tracer-dynamic-coverage-feedback): Likewise.
23176 (reorder-block-duplicate-feedback): Likewise.
23177 (loop-unroll-jam-size): Likewise.
23180 (-mabs=legacy): Likewise.
23181 (-mupper-regs-df): Likewise.
23182 (-mupper-regs-sf): Likewise.
23183 (-mpointers-to-nested-functions): Likewise.
23185 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
23187 * doc/extend.texi (Cilk Plus Builtins): Add markup.
23189 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
23191 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
23192 additional index entries and cross-references.
23193 (-fchkp-check-incomplete-type): Likewise.
23194 (-fchkp-first-field-has-own-bounds): Likewise.
23195 (-fchkp-narrow-to-innermost-array): Likewise.
23196 (-fchkp-use-fast-string-functions): Likewise.
23197 (-fchkp-use-nochk-string-functions): Likewise.
23198 (-fchkp-use-static-const-bounds): Likewise.
23199 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
23200 (-fchkp-instrument-marked-only): Likewise.
23201 (-fchkp-use-wrappers): Likewise.
23202 (-static-libmpx): Likewise.
23203 (-static-libmpxwrappers): Likewise.
23204 * doc/extend.texi (bnd_legacy): Likewise.
23205 (bnd_instrument): Likewise.
23206 (bnd_variable_size): Likewise.
23207 (Pointer Bounds Checker builtins): Likewise.
23209 2015-03-21 Tom de Vries <tom@codesourcery.com>
23211 PR tree-optimization/65458
23212 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
23213 * cgraph.h (cgraph_node): Add parallelized_function field.
23214 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
23215 (input_overwrite_node): Read parallelized_function field.
23216 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
23217 parallelized_function on cgraph_node for child_fn.
23218 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
23219 Remove include of gt-tree-parloops.h.
23220 (parallelized_functions): Remove static variable.
23221 (parallelized_function_p): Rewrite using parallelized_function field of
23223 (create_loop_fn): Remove adding to parallelized_functions.
23224 * Makefile.in (GTFILES): Remove tree-parloops.c
23226 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
23228 PR rtl-optimization/64366
23229 * lra.c (lra_update_insn_regno_info): Consider regs in
23230 CALL_INSN_FUNCTION_USAGE memory.
23232 2015-03-20 Richard Biener <rguenther@suse.de>
23234 PR middle-end/64715
23235 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
23236 for type comparison and gcc_checking_assert.
23237 (chrec_fold_plus_poly_poly): Likewise.
23238 (chrec_fold_multiply_poly_poly): Likewise.
23239 (chrec_convert_1): Likewise.
23240 * gimplify.c (gimplify_expr): Remove premature folding of
23241 &X + CST to &MEM[&X, CST].
23243 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
23245 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
23247 (ipa_inline): Recompute inline_failed codes.
23248 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
23249 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
23252 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
23254 PR rtl-optimization/60851
23255 * recog.c (constrain_operands): Accept a pseudo register before reload
23256 for LRA enabled targets.
23258 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
23261 * config/rs6000/predicates.md (easy_fp_constant): Remove special
23262 -ffast-math handling that kept non-0 constants live in the RTL
23263 until reload. Remove logic testing the number of instructions it
23264 took to create a constant in a GPR that was never used, due to a
23265 test for soft-float earlier.
23266 (memory_fp_constant): Delete, no longer used.
23268 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
23269 alternatives for loading non-0 constants into GPRs for hard
23270 floating point that is no longer needed due to changes in
23271 easy_fp_constant. Add support for loading 0.0 into GPRs.
23272 (mov<mode>_hardfloat32): Likewise.
23273 (mov<mode>_hardfloat64): Likewise.
23274 (mov<mode>_64bit_dm): Likewise.
23275 (movtd_64bit_nodm): Likewise.
23276 (pre-reload move FP constant define_split): Delete define_split,
23277 since it is no longer used.
23278 (extenddftf2_internal): Remove GHF constraints that are not valid
23281 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
23283 PR rtl-optimization/63491
23284 * lra-constraints.c (check_and_process_move): Use src instead of
23285 sreg. Remove some dead code.
23287 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
23290 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
23291 (sem_variable::merge): Likewise.
23293 2015-03-19 Martin Liska <mliska@suse.cz>
23296 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
23297 all fields of cgraph_thunk_info.
23299 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
23301 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
23302 clone instrumented thunks.
23304 2015-03-19 Richard Biener <rguenther@suse.de>
23307 2015-03-10 Richard Biener <rguenther@suse.de>
23309 PR middle-end/63155
23310 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23311 * tree-ssa-coalesce.c: Include timevar.h.
23312 (attempt_coalesce): Handle graph being NULL.
23313 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23314 Split out abnormal coalescing to ...
23315 (perform_abnormal_coalescing): ... this function.
23316 (coalesce_ssa_name): Perform abnormal coalescing without computing
23318 (verify_ssa_coalescing_worker): New function.
23319 (verify_ssa_coalescing): Likewise.
23321 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23322 Jakub Jelinek <jakub@redhat.com>
23325 * tsan.c (instrument_gimple): Clear tail call flag on
23328 2015-03-19 Jakub Jelinek <jakub@redhat.com>
23331 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
23332 call in the return bb.
23333 (find_split_points): Add RETURN_BB argument, don't call
23335 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
23336 if true append TSAN_FUNC_EXIT internal call after the call to
23337 the split off function.
23338 (execute_split_functions): Call find_return_bb here.
23339 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
23340 Adjust find_split_points and split_function calls.
23342 2015-03-18 DJ Delorie <dj@redhat.com>
23344 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
23345 (iorqi3_virt): Likewise.
23347 2015-03-18 Tom de Vries <tom@codesourcery.com>
23349 * tree-parloops.c (parallelize_loops): Make static.
23350 * tree-parloops.h (parallelize_loops): Remove extern declaration.
23352 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
23354 PR middle-end/64491
23356 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
23358 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
23359 condition would be removed due to undefined behaviour.
23361 2015-03-18 Martin Liska <mliska@suse.cz>
23364 * cgraph.c (cgraph_node::get_create): Remove unnecessary
23365 xstrdup_for_dump wrapper.
23366 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
23368 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
23369 with xstrdup_for_dump.
23370 (sem_variable::equals): Likewise.
23371 (sem_item_optimizer::read_section): Use symtab_node::name instead of
23373 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
23374 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
23375 symtab_node::asm_name with xstrdup_for_dump.
23376 (congruence_class::dump): Use symtab_node::name instead of
23378 * ipa-icf.h (symtab_node::name): Remove.
23379 (symtab_node::asm_name): Likewise.
23381 2015-03-18 Jakub Jelinek <jakub@redhat.com>
23383 PR tree-optimization/65450
23384 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
23386 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
23387 it instead of duplicate_ssa_name_ptr_info.
23390 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
23392 2015-03-18 Richard Biener <rguenther@suse.de>
23394 * tree-data-ref.h (struct access_matrix): Remove.
23395 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
23396 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
23397 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
23398 (am_vector_index_for_loop): Likewise.
23399 (struct data_reference): Remove access_matrix member.
23400 (DR_ACCESS_MATRIX): Remove.
23401 (lambda_vector_new): Add comment.
23402 (lambda_matrix_new): Use XOBNEWVEC.
23404 2015-03-18 Richard Biener <rguenther@suse.de>
23406 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
23407 (pass_ch::execute): Cleanup the CFG only if we did sth.
23408 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
23410 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23412 * expmed.c (synth_mult): Use std::swap instead of manually
23413 swapping algorithms.
23415 2015-03-18 Jakub Jelinek <jakub@redhat.com>
23418 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
23420 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
23423 * config/avr/avr.opt (-nodevicelib): New option.
23424 * doc/invoke.texi (AVR Options): Document it.
23425 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
23426 libgcc.a, libc.a, libm.a.
23427 * config/avr/specs.h: Same.
23428 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
23429 which don't (directly) depend on the device. Print more help.
23430 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
23431 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
23432 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
23434 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
23435 for specs file name.
23436 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
23437 * config/avr/avr-mcus.def: Adjust initializers and comments.
23439 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
23441 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
23442 DECL_ONE_ONLY to check if decl is one only.
23443 * ipa-split.c (consider_split): Limit splitt of one only functions.
23445 2015-03-16 Jakub Jelinek <jakub@redhat.com>
23447 PR tree-optimization/65427
23448 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
23450 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
23452 2015-03-16 Marek Polacek <polacek@redhat.com>
23454 * cgraph.h (add_new_static_var): Remove declaration.
23455 * varpool.c (add_new_static_var): Remove function.
23457 2015-03-16 Jakub Jelinek <jakub@redhat.com>
23459 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
23460 instead of vec<tree> * with vec_alloc and release for args.
23463 PR middle-end/65431
23464 * omp-low.c (delete_omp_context): Only splay_tree_delete
23465 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
23466 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
23468 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
23471 * cfgexpand.c (align_base): New function.
23472 (alloc_stack_frame_space): Call it.
23473 (expand_stack_vars): Align prev_frame to be sure
23474 data->asan_vec elements aligned properly.
23476 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
23478 PR middle-end/65409
23479 * expr.c (store_field): Do not do a direct block copy if the source is
23480 a PARALLEL with BLKmode.
23482 2015-03-16 Tom de Vries <tom@codesourcery.com>
23484 PR middle-end/65414
23486 2015-03-12 Tom de Vries <tom@codesourcery.com>
23488 PR rtl-optimization/64895
23489 * lra-lives.c (check_pseudos_live_through_calls): Use
23490 actual_call_used_reg_set instead of call_used_reg_set, if available.
23492 2015-03-16 Alan Modra <amodra@gmail.com>
23495 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
23496 Modify Z->r bswapdi splitter to use dest in place of scratch.
23497 In r->Z and Z->r bswapdi splitter rename word_high, word_low
23498 to word1, word2 and rearrange logic to suit.
23499 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
23500 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
23501 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
23502 Add one '?' on r->r. Modify Z->r splitter to avoid need for
23505 2015-03-14 Jakub Jelinek <jakub@redhat.com>
23507 PR tree-optimization/65369
23508 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
23509 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
23510 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
23512 PR tree-optimization/65418
23513 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
23514 are casts in the first PLUS_EXPR operand, ensure tbias and
23515 *totallowp are in the inner type.
23517 PR rtl-optimization/65401
23518 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
23519 argument. If true, adjust_address_nv of x with big-endian
23520 correction for the mode widening to GET_MODE (y).
23521 (make_field_assignment): Don't do MEM mode widening here.
23522 Use MEM_P instead of GET_CODE == MEM.
23524 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
23526 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
23527 the external decls.
23529 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23532 * config/arm/arm.c (arm_gen_constant, AND case): Use
23533 ARM_SIGN_EXTEND when constructing AND mask.
23535 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
23537 * graph.c (print_graph_cfg): Make function names visible and append
23538 parenthesis to it. Also make groups of basic blocks belonging to the
23539 same function visible.
23541 2015-03-12 Richard Biener <rguenther@suse.de>
23543 PR middle-end/44563
23544 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
23545 to avoid quadratic behavior with inline expansion splitting blocks.
23546 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
23547 with the successor if the predecessor will be merged with it.
23548 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
23549 entry block with its successor.
23551 2015-03-13 Richard Biener <rguenther@suse.de>
23553 PR middle-end/44563
23554 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
23555 (cleanup_tree_cfg_1): Do not call it.
23556 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
23557 (fixup_noreturn_call): Mark the stmt as control altering.
23558 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
23560 (pass_data_fixup_cfg): Produce a dump file.
23561 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
23562 (need_noreturn_fixup): New global.
23563 (pass_dominator::execute): Fixup queued noreturn calls.
23564 (optimize_stmt): Queue calls that became noreturn for fixup.
23565 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
23566 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
23567 (el_to_fixup): New global.
23568 (eliminate_dom_walker::before_dom_childre): Queue calls that
23569 became noreturn for fixup.
23570 (eliminate): Fixup queued noreturn calls.
23571 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
23572 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
23573 (substitute_and_fold_dom_walker::before_dom_children): Queue
23574 alls that became noreturn for fixup.
23575 (substitute_and_fold): Fixup queued noreturn calls.
23577 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
23579 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
23580 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
23581 are building; for methods check ODR type of class they belong to if
23582 they may lead to a polymorphic call.
23583 (sem_function::compare_polymorphic_p): Be bit smarter about testing
23584 when function may lead to a polymorphic call.
23585 (sem_function::compare_type_list): Remove.
23586 (sem_variable::equals): Update use of compatible_types_p.
23587 (sem_variable::parse_tree_refs): Remove.
23588 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
23590 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
23592 (func_checker::compatible_polymorphic_types_p): Break out from ...
23593 (unc_checker::compatible_types_p): ... here.
23594 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
23596 (unc_checker::compatible_types_p): Update.
23597 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
23600 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23602 PR rtl-optimization/65235
23603 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
23604 When first element of vec_concat is const_int, calculate its size
23605 using second element.
23607 2015-03-12 Richard Biener <rguenther@suse.de>
23609 PR middle-end/65270
23610 * fold-const.c (operand_equal_p): Fix ordering of resetting
23611 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
23613 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
23615 * config/s390/s390.c (s390_reorg): Move code to output nops after label
23617 (s390_asm_output_function_label): Likewise.
23618 * config/s390/s390.c (s390_asm_output_function_label):
23619 Fix function label alignment with -mhtopatch.
23620 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
23621 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
23622 ("nop_2_byte"): New define_insn.
23623 ("nop_4_byte"): Likewise.
23624 ("nop_6_byte"): Likewise.
23625 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
23626 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
23628 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23631 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
23634 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23637 * toplev.c (process_options): Restrict Pointer Bounds Checker
23638 usage with Address Sanitizer.
23640 2015-03-12 Richard Biener <rguenther@suse.de>
23642 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
23644 * omp-low.c (expand_omp_taskreg): Split block before removing
23646 (expand_omp_target): Likewise.
23647 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
23648 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
23649 stmt to split_block.
23651 2015-03-12 Tom de Vries <tom@codesourcery.com>
23653 PR rtl-optimization/64895
23654 * lra-lives.c (check_pseudos_live_through_calls): Use
23655 actual_call_used_reg_set instead of call_used_reg_set, if available.
23657 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23659 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
23660 (cgraph_node::remove): Likewise.
23661 (cgraph_node::get_untransformed_body): Likewise.
23662 * varpool.c (varpool_node::remove): Likewise.
23663 (varpool_node::get_constructor): Add sanity check.
23665 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
23667 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
23669 (-fabi-compat-version): Likewise.
23670 (-ffriend-injection): Likewise.
23671 (-Wdeclaration-after-statement): Likewise.
23672 (-fomit-frame-pointer): Likewise.
23673 (-ftree-coalesce-inlined-vars): Likewise.
23674 (-fvisibility=): Likewise.
23675 * doc/extend.texi (Typeof): Likewise.
23676 (Zero Length): Likewise.
23677 (Escaped Newlines): Likewise.
23678 (Compound Literals): Likewise.
23679 (Function Attributes): Likewise.
23680 (Label Attributes): Likewise.
23681 (Type Attributes): Likewise.
23682 (Function Names): Likewise.
23683 (Other Builtins): Likewise.
23684 (Function Specific Option Pragmas): Likewise.
23685 (C++ Interface): Likewise.
23687 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
23689 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
23691 2015-03-11 Marek Polacek <polacek@redhat.com>
23693 PR tree-optimization/65388
23694 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
23696 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23699 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
23700 * configure: Regenerate.
23701 * config.in: Regenerate.
23702 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
23703 [-mn-flash]: Document it.
23704 [__AVR_ARCH__]: Document avrtiny.
23706 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
23707 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
23708 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
23710 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23712 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
23714 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23717 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
23718 allow reloads of PLUS in floating point/VSX registers.
23720 2015-03-11 Junmo Park <junmoz.park@samsung.com>
23722 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
23723 crypto_sha256_fast.
23724 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
23726 2015-03-11 Richard Biener <rguenther@suse.de>
23728 PR tree-optimization/65310
23729 * tree-sra.c (build_ref_for_offset): Also preserve larger
23732 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
23734 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
23736 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23739 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
23741 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
23743 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23745 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
23746 (sem_function::equals_wpa): ... here.
23748 2015-03-10 Marek Polacek <polacek@redhat.com>
23749 Jakub Jelinek <jakub@redhat.com>
23752 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
23753 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
23756 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23759 * config/rs6000/t-linux: For powerpc64* target set
23760 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
23762 2015-03-10 Richard Biener <rguenther@suse.de>
23764 PR middle-end/44563
23765 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
23766 for redirect_all_calls.
23768 2015-03-10 Marek Polacek <polacek@redhat.com>
23770 * gdbinit.in (pcfun): Define and document.
23772 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
23774 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
23775 of libgomp-plugin.h.
23776 (find_target_compiler): Support a case when the path to gcc is
23777 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
23778 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
23779 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
23781 (main): Use GCC_INSTALL_NAME as target_driver_name.
23782 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
23784 (mkoffload.o): Remove obsolete include path and defines.
23785 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
23787 2015-03-10 Richard Biener <rguenther@suse.de>
23789 PR middle-end/63155
23790 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23791 * tree-ssa-coalesce.c: Include timevar.h.
23792 (attempt_coalesce): Handle graph being NULL.
23793 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23794 Split out abnormal coalescing to ...
23795 (perform_abnormal_coalescing): ... this function.
23796 (coalesce_ssa_name): Perform abnormal coalescing without computing
23798 (verify_ssa_coalescing_worker): New function.
23799 (verify_ssa_coalescing): Likewise.
23801 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23804 * config.gcc (extra_options) [avr]: Remove.
23805 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
23806 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
23807 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
23809 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
23810 (-mmcu=): Add Var and MissingArgError properties.
23812 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
23813 * config/avr/t-multilib: Regenerate.
23814 * config/avr/specs.h: New file.
23815 * config/avr/driver-avr.c: New file.
23816 * config/avr/genopt.sh: Remove file.
23817 * config/avr/avr-tables.opt: Remove file.
23818 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
23819 * config/avr/avr-c.c: Same.
23820 * avr-arch.h: Same.
23821 (avr_current_device): Remove proto.
23822 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
23823 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
23824 (EXTRA_SPEC_FUNCTIONS): Define.
23825 (avr_devicespecs_file): New specs function proto.
23826 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
23827 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
23828 (avr_current_device): Remove definition and usage.
23829 (avr_set_core_architecture): New static function.
23830 (avr_option_override): Use it.
23831 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
23832 (mcu_name): New static array.
23833 (comparator, avr_archs_str, avr_mcus_str): New static functions.
23834 (avr_inform_devices, avr_inform_core_architectures): New functions.
23835 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
23836 (avrlibc.h) [WITH_AVRLIBC]: Include.
23837 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
23838 (print_mcu): Rewrite from scratch.
23839 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
23840 Forward to avr-specific specs defined in device-specs file.
23841 * config/avr/t-avr (driver-avr.o): New rule.
23842 (avr-devices.o): Depend on avr-arch.h.
23843 (avr-mcus): No more depend on avr-tables.opt.
23844 (avr-tables.opt): Remove rule.
23845 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
23847 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23849 * c-family/c.opt (fchkp-use-wrappers): New.
23850 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
23851 (chkp_wrap_function): New.
23852 (chkp_build_instrumented_fndecl): Support wrapped
23854 * doc/invoke.texi (-fcheck-pointer-bounds): New.
23855 (-fchkp-check-incomplete-type): New.
23856 (-fchkp-first-field-has-own-bounds): New.
23857 (-fchkp-narrow-bounds): New.
23858 (-fchkp-narrow-to-innermost-array): New.
23859 (-fchkp-optimize): New.
23860 (-fchkp-use-fast-string-functions): New.
23861 (-fchkp-use-nochk-string-functions): New.
23862 (-fchkp-use-static-bounds): New.
23863 (-fchkp-use-static-const-bounds): New.
23864 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
23865 (-fchkp-check-read): New.
23866 (-fchkp-check-write): New.
23867 (-fchkp-store-bounds): New.
23868 (-fchkp-instrument-calls): New.
23869 (-fchkp-instrument-marked-only): New.
23870 (-fchkp-use-wrappers): New.
23871 (-static-libmpx): New.
23872 (-static-libmpxwrappers): New.
23874 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23876 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
23877 (CHKP_SPEC): Add wrappers library.
23878 * c-family/c.opt (static-libmpxwrappers): New.
23880 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23882 * config/i386/linux-common.h (LIBMPX_LIBS): New.
23883 (LIBMPX_SPEC): New.
23885 * gcc.c (CHKP_SPEC): New.
23886 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
23887 * c-family/c.opt (static-libmpx): New.
23889 2015-03-10 Richard Biener <rguenther@suse.de>
23891 PR middle-end/44563
23892 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
23894 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
23895 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
23896 (cgraph_add_edge_to_call_site_hash): Likewise.
23897 (cgraph_node::get_edge): Likewise.
23898 (cgraph_edge::set_call_stmt): Likewise.
23899 (cgraph_edge::remove_caller): Likewise.
23901 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
23903 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
23904 (callee_saved_gpr_regs_size): ... this.
23905 (callee_saved_regs_first_regno): Rename to ...
23906 (callee_saved_first_gpr_regno): ... this.
23907 (callee_saved_regs_last_regno) Rename to ...
23908 (callee_saved_last_gpr_regno): ... this.
23909 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
23911 (nds32_initial_elimination_offset): Likewise.
23912 (nds32_expand_prologue): Likewise.
23913 (nds32_expand_epilogue): Likewise.
23914 (nds32_expand_prologue_v3push): Likewise.
23915 (nds32_expand_epilogue_v3pop): Likewise.
23916 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
23917 Adjust renamed variables.
23918 (nds32_output_stack_pop): Likewise.
23920 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
23922 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
23925 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23927 PR rtl-optimization/65321
23928 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
23930 * var-tracking.c (use_narrower_mode): Likewise.
23932 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23934 PR tree-optimization/65355
23935 * varasm.c (notice_global_symbol): Do not produce RTL.
23936 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
23938 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
23939 check for section anchors.
23941 2015-03-10 Alan Modra <amodra@gmail.com>
23944 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
23945 to be single-arch by default. Set cpu_is_64bit for powerpc64
23946 given --with-cpu=native.
23947 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
23948 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
23950 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
23951 rs6000_isa_flags rather than TARGET_64BIT.
23953 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
23954 Kaz Kojima <kkojima@gcc.gnu.org>
23956 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
23958 2015-03-09 Jakub Jelinek <jakub@redhat.com>
23961 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
23962 on a TREE_BINFO, instead use BINFO_TYPE.
23964 2015-03-09 Richard Biener <rguenther@suse.de>
23966 PR middle-end/65270
23967 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
23968 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
23969 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
23970 of that. When comparing dereferences compare alignment.
23971 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
23973 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23975 * ipa-inline-analysis.c (check_callers): Check
23976 node->can_remove_if_no_direct_calls_and_refs_p.
23977 (growth_likely_positive): Reorganize to call
23978 can_remove_if_no_direct_calls_p later.
23979 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
23980 will_be_removed_from_program_if_no_direct_calls_p): Add
23981 will_inline parameter.
23982 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
23983 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
23984 Handle inliner case correctly.
23986 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
23988 PR tree-optimization/63743
23989 * cfgexpand.c (reorder_operands): Also reorder if only second operand
23990 had its definition forwarded by TER.
23992 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23995 * ipa-utils.h (types_odr_comparable): Add strict argument.
23996 * ipa-devirt.c: Fix whitespace;
23997 (odr_hasher): Remove.
23998 (odr_name_hasher, odr_vtable_hasher): New hashers.
23999 (can_be_name_hashed_p): New predicate.
24000 (hash_type_name): remove.
24001 (hash_odr_name): New.
24002 (odr_name_hasher::hash): new.
24003 (can_be_vtable_hashed_p): New.
24004 (hash_odr_vtable): New.
24005 (odr_vtable_hasher::hash): New.
24006 (types_same_for_odr): Add strict parameter.
24007 (types_odr_comparable): Likewise.
24008 (odr_name_hasher::equal): New.
24009 (odr_vtable_hasher::equal): New.
24010 (odr_name_hasher::remove): New.
24011 (odr_hash_type): Change to hash_table<odr_name_hasher>.
24012 (odr_vtable_hash_type): New.
24013 (odr_vtable_hash): New.
24014 (odr_subtypes_equivalent_p): Do strict comparsion.
24015 (add_type_duplicate): Merge type names; cleanup; avoid type
24017 (register_odr_type): Initialize vtable hash.
24018 (build_type_inheritance_graph): Likewise
24019 (get_odr_type): Reorg to use two hashes.
24020 (dump_possible_polymorphic_call_targets): Move sanity check after debug
24022 (ipa_devirt): Dump type_inheritance_graph.
24023 (types_same_for_odr): Add strict mode.
24025 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
24028 * cgraph.h (symtab_node): Add definition_alignment,
24029 can_increase_alignment_p and increase_alignment.
24030 * symtab.c (symtab_node::can_increase_alignment_p,
24031 increase_alignment_1, symtab_node::increase_alignment,
24032 symtab_node::definition_alignment): New.
24033 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
24034 can_increase_alignment_p.
24035 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
24036 * tree-vect-stmts.c (ensure_base_align): Likewise.
24037 * varasm.c (function_section_1): Use definition_alignment.
24038 (assemble_start_function): Likewise.
24039 (emit_local): likewise.
24040 (build_constant_desc): Likewsie.
24041 (output_constant_def_contents): Likewise.
24042 (place_block_symbol): Likewise.
24043 (output_object_block): Likewise.
24045 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
24048 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
24049 when outputting debug.
24051 2015-03-07 Marek Polacek <polacek@redhat.com>
24052 Martin Uecker <uecker@eecs.berkeley.edu>
24055 * doc/invoke.texi: Update description of -fsanitize=bounds.
24057 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
24059 * tree-ssa-phiopt.c (neg_replacement): Remove.
24060 (tree_ssa_phiopt_worker): Remove negate optimization.
24062 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
24065 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
24067 2015-03-06 Richard Biener <rguenther@suse.de>
24069 PR middle-end/64928
24070 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
24071 and liveout_obstack members.
24072 (calculate_live_on_exit): Remove.
24073 (calculate_live_ranges): Change declaration.
24074 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
24075 (new_tree_live_info): Adjust.
24076 (calculate_live_ranges): Delete livein when not wanted.
24077 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
24078 Deal with partly deleted live info.
24079 (loe_visit_block): Remove temporary bitmap by using
24080 bitmap_ior_and_compl_into.
24081 (live_worklist): Adjust accordingly.
24082 (calculate_live_on_exit): Make static.
24083 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
24084 we do not need livein.
24086 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
24088 * real.c (real_from_string): Fix typo in assertion.
24090 2015-03-06 Alex Velenko <alex.velenko@arm.com>
24092 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
24095 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
24097 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
24099 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
24102 * lra-assigns.c (find_hard_regno_for): Rename to
24103 find_hard_regno_for_1. Add a new parameter.
24104 (find_hard_regno_for): New function using find_hard_regno_for_1.
24106 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
24108 PR rtl-optimization/65067
24109 * expmed.c (store_bit_field, extract_bit_field): Reworked the
24110 strict volatile bitfield handling.
24112 2015-03-05 Martin Liska <mliska@suse.cz>
24115 * ipa-icf.c (sem_variable::equals): Compare variables types.
24117 2015-03-05 Richard Henderson <rth@redhat.com>
24120 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
24121 correctly check weak symbol binding.
24123 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
24125 PR middle-end/65315
24126 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
24129 2015-03-05 Martin Liska <mliska@suse.cz>
24131 * ipa-inline.c (inline_small_functions): Set default value to
24132 prevent warning during bootstrap.
24133 * tree.h: Add pragma guard that ignores false positives during
24136 2015-03-05 Richard Biener <rguenther@suse.de>
24138 PR tree-optimization/65310
24139 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
24140 Properly preserve alignment of the base of the access.
24142 2015-03-05 Richard Biener <rguenther@suse.de>
24145 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
24146 Compare dependence info.
24148 2015-03-05 Richard Biener <rguenther@suse.de>
24150 PR middle-end/65233
24151 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
24153 (walk_ssa_copies): Revert last chage. Instead do not walk
24154 SSA names registered for SSA update.
24156 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
24159 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
24160 vtable references for their containing type.
24161 (sem_function::equals_wpa): Compare TYPE_RESTRICT
24162 and type attributes.
24164 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
24166 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
24167 before negating it.
24168 * stor-layout.c (finalize_record_size): Revert latest change.
24170 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
24172 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
24174 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
24176 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
24177 for correct comdat handling.
24178 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
24180 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
24181 (used_from_object_file_p_worker): Remove.
24182 (cgraph_node::only_called_directly_or_alised): Add
24183 used_from_object_file_p.
24184 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
24185 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
24186 can_remove_if_no_direct_calls_and_refs_p.
24188 2015-03-04 Nick Clifton <nickc@redhat.com>
24190 * config/rl78/rl78.h (enum reg_class): Remove real registers from
24191 General register class.
24192 * config/rl78/rl78-real.md: Replace general register constraints
24193 with real+virtual register constraints.
24195 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24197 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
24198 from checking for -mhtm option.
24200 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
24202 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
24203 (struct ipa_sra_check_caller_data): Add has_thunk field.
24204 (ipa_sra_check_caller): Check for thunk.
24205 (ipa_sra_preliminary_function_checks): Give up on function with
24207 (ipa_early_sra): Use call_for_symbol_and_aliases.
24209 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
24212 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
24213 called for __stack_chk_guard symbol.
24215 2015-03-03 DJ Delorie <dj@redhat.com>
24217 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
24219 (*addhi3_real): Likewise.
24220 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
24221 pattern to match incrementing memory.
24222 * config/rl78/predicates.md (rl78_1_2_operand): New.
24223 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
24224 it's the same and only mem.
24225 (rl78_alloc_physical_registers_op2): If there's effectively only
24226 one MEM, transcode it into HL.
24227 (rl78_far_p): Reject addresses that aren't legitimate.
24229 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
24231 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
24234 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
24236 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
24238 Implement call0 ABI for xtensa
24239 * config/xtensa/constraints.md ("a" constraint): Include stack
24240 pointer in case of call0 ABI.
24241 ("q" constraint): Make empty in case of call0 ABI.
24242 ("D" constraint): Include stack pointer in case of call0 ABI.
24243 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
24244 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
24246 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
24248 (xtensa_regno_to_class): Make it a local variable in the
24249 function xtensa_regno_to_class.
24250 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
24251 macro, function prototype and implementation.
24252 (reg_nonleaf_alloc_order): Make it a local variable in the
24253 function order_regs_for_local_alloc.
24254 (xtensa_conditional_register_usage): New function.
24255 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
24256 (xtensa_valid_move): Allow direct moves to stack pointer
24257 register in call0 ABI.
24258 (xtensa_setup_frame_addresses): Only spill register windows in
24260 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
24261 call0 ABI respectively.
24262 (xtensa_function_arg_1): Only mark a7 register for copying in
24264 (xtensa_call_save_reg): New function.
24265 (compute_frame_size): Add space for callee saved register
24266 storage to the frame size in call0 ABI.
24267 (xtensa_expand_prologue): Generate code to set up stack frame
24268 and save callee-saved registers in call0 ABI.
24269 (xtensa_expand_epilogue): New function.
24270 (xtensa_set_return_address): New function.
24271 (xtensa_return_addr): Calculate return address in call0 ABI.
24272 (xtensa_builtin_saveregs): Only mark a7 register for copying and
24273 emit copying code in windowed ABI.
24274 (order_regs_for_local_alloc): Add preferred register allocation
24275 order for non-leaf function in call0 ABI.
24276 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
24277 (xtensa_asm_trampoline_template): Add trampoline generation for
24279 (xtensa_trampoline_init): Add trampoline initialization for
24281 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
24283 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
24284 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
24285 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
24286 ABI call-used registers.
24287 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
24288 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
24290 (REG_CLASS_CONTENTS): Include all registers into the preferred
24291 reload registers set, adjust the set in the
24292 xtensa_conditional_register_usage.
24293 (xtensa_regno_to_class): Drop variable declaration.
24294 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
24296 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
24298 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
24299 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
24300 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
24301 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
24302 location in call0 ABI.
24303 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
24304 stack adjustment size when handling exception.
24305 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
24306 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
24308 ("return" pattern): Generate ret.n/ret in call0 ABI.
24309 ("epilogue" pattern): Expand epilogue.
24310 ("nonlocal_goto" pattern): Use default in call0 ABI.
24311 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
24312 emit eh_set_a0_* depending on ABI.
24313 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
24314 ("eh_set_a0_call0", "blockage"): New patterns.
24316 2015-03-03 Martin Liska <mliska@suse.cz>
24319 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
24321 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
24324 * config/rs6000/rs6000-tables.opt: Regenerate table.
24326 2015-03-03 Renlin Li <renlin.li@arm.com>
24328 * doc/md.texi (@item ^): Change ? into ^.
24330 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
24332 * doc/tm.texi: Regenerated.
24334 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
24336 * builtins.c (expand_builtin_return_addr): Add
24337 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
24338 surrounding #ifdef.
24339 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
24341 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
24343 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
24345 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
24348 2015-03-03 Martin Jambor <mjambor@suse.cz>
24349 Eric Botcazou <ebotcazou@adacore.com>
24351 * tree-sra.c (ipa_sra_check_caller_data): New type.
24352 (has_caller_p): Removed.
24353 (ipa_sra_check_caller): New function.
24354 (ipa_sra_preliminary_function_checks): Use it.
24356 2015-03-03 Martin Liska <mliska@suse.cz>
24358 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
24359 instead of if branch.
24361 2015-03-03 Martin Liska <mliska@suse.cz>
24364 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
24366 2015-03-23 Jeff Law <law@redhat.com>
24368 PR tree-optimization/65241
24369 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
24370 hash table if INSERT is true.
24372 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24375 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
24377 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24380 * config/avr/avr.c (context.h, tree-pass.h): Include them.
24381 (avr_pass_data_recompute_notes): New static variable.
24382 (avr_pass_recompute_notes): New class.
24383 (avr_register_passes): New static function.
24384 (avr_option_override): Call it.
24386 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24388 Fix various problems with specs file generation.
24391 * config.gcc (extra_gcc_objs) [avr]: Remove.
24392 * config/avr/driver-avr.c: Remove file.
24393 * config/avr/t-avr (driver-avr.o): Remove rule.
24394 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
24395 INCLUDES to build. Depend on TM_H.
24396 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
24397 build warnings. Fix non-matching types and non-existing %-codes.
24399 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
24400 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
24401 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
24402 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
24403 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
24404 (LIBGCC_SPEC): Remove definitions.
24406 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
24408 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
24409 to create a register in testing mode.
24411 2015-03-03 Martin Liska <mliska@suse.cz>
24412 Jan Hubicka <hubicka@ucw.cz>
24415 * cgraph.c (cgraph_node::has_thunk_p): New function.
24416 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
24417 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
24418 (sem_function::merge): Assert is changed.
24420 2015-03-03 Martin Liska <mliska@suse.cz>
24421 Martin Jambor <mjambor@suse.cz>
24424 * ipa-icf.c (sem_item_optimizer::execute): Change function
24425 return value to boolean.
24426 (sem_item_optimizer::merge_classes): Likewise.
24427 (ipa_icf_driver): Return TODO_remove_functions in case there's
24428 a merge operation processed.
24429 * ipa-icf.h: Change function return value to boolean.
24431 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24434 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
24435 processor type for 64-bit little endian PowerPC.
24437 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
24438 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
24439 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
24440 printing built-in mask so it does not pass NULL pointers.
24442 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
24445 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
24448 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
24449 !ISA_HAS_FP_CONDMOVE.
24451 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
24453 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
24456 2015-03-02 Ulrich Drepper <drepper@gmail.com>
24458 * doc/invoke.texi (Options for Code Generation Conventions):
24459 Fix URL of DSO paper.
24461 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24464 * ipa-inline.c (check_callers): Looks for recursion.
24465 (inline_to_all_callers): Give up on uninlinable or recursive edges.
24466 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
24467 summary of inline clones.
24468 (do_estimate_growth_1): Fix recursion check.
24470 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24473 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
24476 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24477 Aldy Hernandez <aldyh@redhat.com>
24480 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
24481 when checking TYPE_BINFO.
24483 2015-03-02 Richard Biener <rguenther@suse.de>
24486 * ipa-icf-gimple.c: Include builtins.h.
24487 (func_checker::compare_memory_operand): Compare base alignment.
24489 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
24492 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
24493 are never passed by reference.
24495 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
24498 * tree-chkp.c (chkp_check_lower): Don't check against
24499 zero bounds for already instrumented functions.
24500 (chkp_check_upper): Likewise.
24501 (chkp_fini): Clean pass local data to avoid wrong reusage.
24503 2015-02-28 Martin Liska <mliska@suse.cz>
24504 Jan Hubicka <hubicka@ucw.cz>
24506 * ipa-icf.c (sem_variable::equals): Improve debug output;
24507 get variable constructor.
24508 (sem_variable::parse): Do not filter out too early; give up on
24509 volatile and register vars.
24510 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
24512 * ipa-icf.h (sem_variable::init): Do not set ctor.
24513 (sem_variable::ctor): Remove.
24515 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
24517 PR middle-end/65233
24518 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
24520 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24522 * ipa-icf.c: Include stor-layout.h
24523 (sem_function::compare_cgraph_references): Rename to ...
24524 (sem_item::compare_cgraph_references): ... this one.
24525 (sem_variable::equals_wpa): New function
24526 (sem_variable::equals): Do not check stuff already verified by
24528 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
24529 * ipa-icf.h (sem_item): Add compare_cgraph_references.
24530 (sem_function): Remove compare_cgraph_references.
24531 (sem_variable): Turns equals_wpa into non-inline.
24533 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24535 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
24536 (sem_item::add_expr): New function.
24537 (sem_function::hash_stmt): Handle operands of most statements.
24538 (sem_variable::get_hash): Hash the actual constructor.
24539 * ipa-icf.h (sem_item): Add add_expr.
24540 (sem_function): Update prototype of hash_stmt
24542 2015-02-28 Martin Liska <mliska@suse.cz>
24543 Jan Hubicka <hubicka@ucw.cz>
24546 * ipa-icf-gimple.c (func_checker::compare_function_decl):
24548 (func_checker::compare_variable_decl): Skip symtab vars.
24549 (func_checker::compare_cst_or_decl): Update.
24550 * ipa-icf.c (sem_function::parse): Do not consider aliases.
24551 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
24552 use correct symtab predicates.
24553 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
24554 (sem_variable::parse): Update comment.
24555 (sem_item_optimizer::build_graph): Consider ultimate aliases
24558 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24560 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
24563 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24565 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
24566 (sem_variable::merge) Likewise.
24568 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24570 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
24571 target; also match flag_ipa_devirt.
24573 2015-03-01 Martin Liska <mliska@suse.cz>
24574 Jan Hubicka <hubicka@ucw.cz>
24576 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
24577 Validate variable alignment.
24578 * ipa-icf.c (sem_function::equals_private): Be more precise
24579 about non-common function attributes.
24580 (sem_variable::equals): Likewise.
24582 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24585 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
24586 across COMDAT group boundary.
24588 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24591 * ipa-icf.c (clear_decl_rtl): New function.
24592 (sem_function::merge): Clear RTL before forming alias.
24593 (sem_variable::merge): Clear RTL before forming alias.
24595 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24598 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
24600 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
24602 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
24605 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24607 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
24608 a typo in the description.
24610 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24613 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24614 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24615 * lra-constraints.c: Include "params.h".
24616 (EBB_PROBABILITY_CUTOFF): Use
24617 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
24618 (lra_inheritance): Use '<' instead of '<=' for
24619 EBB_PROBABILITY_CUTOFF.
24620 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
24623 2015-02-27 Martin Liska <mliska@suse.cz>
24625 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
24626 vector length condition.
24628 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
24630 * doc/extend.texi (x86 transactional memory intrinsics):
24631 Reorganize discussion of _xbegin. Clarify that the return
24632 value is a bit mask. Expand example and move to end of section.
24634 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24635 Aldy Hernandez <aldyh@redhat.com>
24637 PR rtl-optimization/65220
24638 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
24640 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24643 * lra-remat.c (update_scratch_ops): New.
24644 (do_remat): Call it.
24645 * lra.c (lra_register_new_scratch_op): New. Take code from ...
24646 (remove_scratches): ... here.
24647 * lra-int.h (lra_register_new_scratch_op): New prototype.
24649 2015-02-27 Marek Polacek <polacek@redhat.com>
24652 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
24653 -Wformat-signedness anymore.
24655 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24657 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
24659 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
24661 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24663 * config/s390/s390.c (enum s390_builtin):
24664 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
24665 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
24666 (s390_init_builtins): Generate new builtin functions.
24667 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
24668 (s390_sfpc, s390_efpc): New pattern definitions.
24670 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24672 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
24673 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
24674 (s390_builtin_decls): New array.
24675 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
24676 (s390_builtin_decl): New function.
24677 (TARGET_BUILTIN_DECL): Define macro.
24679 2015-02-27 Richard Biener <rguenther@suse.de>
24681 PR middle-end/63175
24682 * builtins.c (get_object_alignment_2): Make sure to re-apply
24683 the ANDed mask after recursing to its operand gets us a new
24684 misalignment bit position.
24686 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
24687 Martin Liska <mliska@suse.cz>
24690 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
24691 Use address_matters_p.
24692 (redirect_all_callers, set_addressable): New functions.
24693 (sem_function::merge): Reorganize and fix merging issues.
24694 (sem_variable::merge): Likewise.
24695 (sem_variable::compare_sections): Remove.
24696 * common.opt (fmerge-all-constants, fmerge-constants): Remove
24698 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
24700 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
24702 (address_matters_1): New function.
24703 (symtab_node::address_matters_p): New function.
24704 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
24705 check for merged flag.
24706 * cgraph.h (address_matters_p): Declare.
24707 (symtab_node::address_taken_from_non_vtable_p): Remove.
24708 (symtab_node::address_can_be_compared_p): New method.
24709 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
24710 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
24712 (comdat_can_be_unshared_p_1) Use address_matters_p.
24713 (update_vtable_references): Fix formating.
24714 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
24715 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
24716 * cgraphclones.c: Preserve merged and icf_merged flags.
24718 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
24720 * doc/extend.texi (Function Attributes): Fix spelling and typos.
24721 (Label Attributes): Likewise.
24722 (Cilk Plus Builtins): Likewise.
24723 (ARC SIMD Built-in Functions): Likewise.
24724 (ARM C Language Extensions (ACLE)): Likewise.
24725 (PowerPC Built-in Functions): Likewise.
24726 (PowerPC Hardware Transactional Memory Built-in Functions):
24729 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24731 PR tree-optimization/65216
24732 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
24733 new stmt and new SSA_NAME for lhs whenever the arguments have
24734 changed and weren't just swapped. Fix comment typo.
24736 PR tree-optimization/65215
24737 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
24738 for PDP endian targets.
24739 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
24740 Fix up formatting issues.
24741 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
24742 size is smaller than the original, adjust MEM_REF offset by the
24743 difference of sizes. Use is_gimple_mem_ref_addr instead of
24744 is_gimple_min_invariant test to avoid adding address temporaries.
24746 2015-02-26 Martin Liska <mliska@suse.cz>
24747 Jan Hubicka <hubicka@ucw.cz>
24750 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
24751 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
24752 (sem_item_optimizer::process_cong_reduction): Include division by
24753 sensitive references.
24754 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
24755 * ipa-ref.c (ipa_ref::address_matters_p): New function.
24756 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
24758 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
24761 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
24763 * config/avr/avr.c: Same.
24764 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
24765 Refuse any constant address not in 0..0xbf.
24766 * config/avr/avr.md (*mov<mode>, *movsf): Remove
24767 tiny_valid_direct_memory_access_range from insn conditions.
24768 (mov<mode>): Don't special-case expansion of avrtiny addresses.
24770 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
24773 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
24774 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
24775 * config/sh/predicates.md (const_logical_operand): New predicate.
24776 * config/sh/sh.md: Add new peephole2 patterns.
24778 2015-02-26 Marek Polacek <polacek@redhat.com>
24781 * ipa-inline.c (early_inliner): Recompute inline parameters.
24783 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24786 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
24787 instructions with TImode operands are included in the analysis.
24789 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24791 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
24792 of an EDGE_FSM_THREAD.
24794 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24796 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
24798 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
24801 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
24803 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24805 PR tree-optimization/65048
24806 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
24807 (thread_through_all_blocks): Call valid_jump_thread_path.
24808 Remove invalid FSM jump-thread paths.
24810 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24812 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
24813 (ipa_write_optimization_summaries): Likewise.
24814 * tree-streamer.h: Include data-streamer.h.
24815 (streamer_mode_table): Declare extern variable.
24816 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
24817 * lto-streamer-out.c (lto_output_init_mode_table,
24818 lto_write_mode_table): New functions.
24819 (produce_asm_for_decls): Call lto_write_mode_table when streaming
24821 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
24822 (lto_create_simple_input_block): Add mode_table argument to the
24823 lto_input_block constructors.
24824 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
24826 * data-streamer-in.c (string_for_index): Likewise.
24827 * ipa-inline-analysis.c (inline_read_section): Likewise.
24828 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
24829 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
24830 * lto-streamer-in.c (lto_read_body_or_constructor,
24831 lto_input_toplevel_asms): Likewise.
24832 (lto_input_mode_table): New function.
24833 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
24834 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
24835 Use bp_pack_machine_mode.
24836 * real.h (struct real_format): Add name field.
24837 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
24838 (class lto_input_block): Add mode_table member.
24839 (lto_input_block::lto_input_block): Add mode_table_ argument,
24840 initialize mode_table.
24841 (struct lto_file_decl_data): Add mode_table field.
24842 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
24843 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
24844 unpack_ts_decl_common_value_fields,
24845 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
24846 * tree-streamer.c (streamer_mode_table): New variable.
24847 * real.c (ieee_single_format, mips_single_format,
24848 motorola_single_format, spu_single_format, ieee_double_format,
24849 mips_double_format, motorola_double_format,
24850 ieee_extended_motorola_format, ieee_extended_intel_96_format,
24851 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
24852 ibm_extended_format, mips_extended_format, ieee_quad_format,
24853 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
24854 decimal_single_format, decimal_double_format, decimal_quad_format,
24855 ieee_half_format, arm_half_format, real_internal_format): Add name
24857 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
24859 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
24862 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
24863 reordering for selective scheduling.
24865 2015-02-26 Terry Guo <terry.guo@arm.com>
24867 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
24868 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
24869 (arm_arch_no_volatile_ce): Declare new global variable.
24870 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
24871 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
24872 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
24873 (TARGET_NO_VOLATILE_CE): New macro.
24874 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
24875 volatile memory access in IT block
24877 2015-02-25 Kai Tietz <ktietz@redhat.com>
24879 PR tree-optimization/61917
24880 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
24881 that reduc_def_stmt is null.
24883 2015-02-25 Martin Liska <mliska@suse.cz>
24885 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
24886 hard register variables.
24888 2015-02-25 Kai Tietz <ktietz@redhat.com>
24891 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
24892 (symtab::noninterposable_alias): Likewise.
24894 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
24897 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
24899 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
24901 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
24904 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
24905 as split condition; force split via '#' in output pattern.
24907 2015-02-25 Richard Biener <rguenther@suse.de>
24908 Kai Tietz <ktietz@redhat.com>
24910 PR tree-optimization/61917
24911 * tree-vect-loop.c (vectorizable_reduction): Allow
24912 vect_internal_def without reduction to exit graceful.
24914 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24917 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
24918 only with NONDEBUG_INSN_P.
24920 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24922 Use variadic macros with avr-log.c.
24924 * config/avr/avr-protos.h (avr_vdump): New prototype.
24925 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
24926 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
24927 * config/avr/avr-log.c: Adjust comments.
24928 (avr_vdump): New function.
24929 (avr_vadump): Pass caller as 2nd argument instead of format string.
24930 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
24931 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
24933 2015-02-25 Jakub Jelinek <jakub@redhat.com>
24936 * target.def (target_option_stream_in): New target hook.
24937 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
24938 targetm.target_option.post_stream_in if non-NULL.
24939 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
24940 * doc/tm.texi: Updated.
24941 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
24943 (TARGET_OPTION_POST_STREAM_IN): Redefine.
24945 2015-02-24 Jeff Law <law@redhat.com>
24948 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
24949 of operand 0 and operand 2.
24950 (zero_cost_loop_end, loop_end): Similarly.
24952 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
24954 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
24957 2015-02-24 DJ Delorie <dj@redhat.com>
24959 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
24960 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
24961 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
24962 instead of hardcoding SImode.
24964 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
24966 * omp-low.c (create_omp_child_function): Tag entrypoint
24967 functions with a special attribute.
24969 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24972 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
24974 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
24976 PR rtl-optimization/65123
24977 * lra-remat.c (operand_to_remat): Check hard regs in insn
24980 2015-02-24 Nick Clifton <nickc@redhat.com>
24982 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
24985 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
24988 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
24989 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
24990 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
24991 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
24992 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
24993 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
24994 (BUILT_IN_GOACC_PARALLEL): Specify as
24995 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
24996 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
24997 * builtin-types.def
24998 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24999 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
25000 Remove function types.
25001 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
25002 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
25003 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
25004 New function types.
25006 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
25008 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
25010 2015-02-24 Jakub Jelinek <jakub@redhat.com>
25012 PR tree-optimization/65170
25013 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
25014 if val[1] < 0, clear also val[2] and return 3.
25016 2015-02-24 Alan Modra <amodra@gmail.com>
25019 * config/rs6000/rs6000.c (get_memref_parts): Only return true
25020 when *base is a reg. Handle nested plus addresses. Simplify
25023 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
25025 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
25026 use natural alignment when optimizing for size.
25028 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
25031 * config/sh/sh.md (movsicc_true+3): Remove peephole.
25032 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
25033 * config/sh/sh.c (replace_n_hard_rtx): Remove.
25035 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
25038 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
25039 too big for a wide_int. Implement missing wrapping operation.
25041 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
25044 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
25045 instead of const_int 4294901760.
25047 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
25049 * config/avr/t-avr: Fix typo in comment.
25051 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
25053 * doc/rtl.texi (fma): Clarify documentation.
25055 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
25058 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
25059 over input_location.
25061 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
25063 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
25064 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
25065 restrict alignments to absolute_biggest_alignment.
25066 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
25068 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
25069 * doc/tm.texi: Regenerate.
25070 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
25072 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
25075 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
25077 2015-02-20 Richard Biener <rguenther@suse.de>
25079 PR tree-optimization/65136
25080 * tree-ssa-propagate.c: Include cfgloop.h.
25081 (replace_phi_args_in): Avoid replacing loop latch edge PHI
25082 arguments with constants.
25084 2015-02-20 Jakub Jelinek <jakub@redhat.com>
25085 Martin Liska <mliska@suse.cz>
25088 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
25089 don't try to create_thunk if stdarg_p. If
25090 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
25091 redirect_callers if possible.
25092 (sem_item_optimizer::execute): Call unregister_hooks here...
25093 (ipa_icf_driver): ... instead of here.
25095 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25097 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
25098 Mark operand 0 as earlyclobber in 2nd alternative.
25099 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
25100 Write negated shift amount into QI lowpart operand 0 and use it
25102 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
25104 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
25106 * cgraph.h (clone_function_name_1): Declare.
25107 * cgraphclones.c (clone_function_name_1): New function.
25108 (clone_function_name): Use it.
25109 * lto-partition.c: Include "stringpool.h".
25110 (must_not_rename, maybe_rewrite_identifier)
25111 (validize_symbol_for_target): New static functions.
25112 (privatize_symbol_name): Use must_not_rename.
25113 (promote_symbol): Call validize_symbol_for_target.
25114 (lto_promote_cross_file_statics): Likewise.
25115 (lto_promote_statics_nonwpa): Likewise.
25117 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
25120 * config/avr/avr.md (pushhi_insn): New insn.
25121 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
25123 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
25124 Jakub Jelinek <jakub@redhat.com>
25126 * tree-streamer.c (preload_common_nodes): Don't preload
25127 TI_VA_LIST* for offloading.
25128 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
25131 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
25133 * config/pa/pa.c (pa_emit_move_sequence): Always force
25134 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
25137 * config/pa/pa.c (pa_reloc_rw_mask): New function.
25138 (TARGET_ASM_RELOC_RW_MASK): Define.
25139 (pa_cannot_force_const_mem): Revert previous change.
25141 2015-02-19 Martin Jambor <mjmabor@suse.cz>
25142 Jan Hubicka <hubicka@ucw.cz>
25145 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
25146 across jump functions.
25148 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
25150 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
25152 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
25154 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
25156 2015-02-19 Richard Henderson <rth@redhat.com>
25158 PR middle-end/65074
25159 * varasm.c (default_binds_local_p_2): Don't test node->definition;
25160 test DECL_EXTERNAL independent of symtab_node.
25162 2015-02-19 Jakub Jelinek <jakub@redhat.com>
25165 * varpool.c (varpool_node::get_constructor): Return early
25166 if this->lto_file_data is NULL.
25168 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25170 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
25171 (rank_for_schedule_debug): Update.
25172 (ready_sort): Make static. Move sorting logic to ...
25173 (ready_sort_debug, ready_sort_real): New static functions.
25174 (schedule_block): Sort both debug insns and real insns in preparation
25175 for ready list trimming. Improve debug output.
25176 * sched-int.h (ready_sort): Remove global declaration.
25178 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
25180 * ipa-icf.c (sem_function::equals_private): Adjust.
25181 (sem_function::bb_dict_test): Take a vec<int> * instead of
25183 * ipa-icf.h (bb_dict_test): Likewise.
25185 2015-02-18 Jakub Jelinek <jakub@redhat.com>
25187 PR gcov-profile/64634
25188 * tree-eh.c (frob_into_branch_around): Fix up typos
25189 in function comment.
25190 (lower_catch): Put eh_seq resulting from EH lowering of
25191 the cleanup sequence after the cleanup rather than before it.
25193 2015-02-18 Tom de Vries <tom@codesourcery.com>
25195 * common.opt (fstdarg-opt): New option.
25196 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
25197 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
25198 (@item -fstdarg-opt): New item.
25200 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
25203 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
25204 for common symbols.
25206 2015-02-18 Jakub Jelinek <jakub@redhat.com>
25208 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
25210 (ALL_HOST_OBJS): Add mkoffload.o.
25211 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
25213 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
25215 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
25216 (compare_virtual_tables): Be smarter about skipping typeinfos;
25217 do sane output on virtual table table mismatch.
25218 (warn_odr): Be ready for forward declarations of enums;
25219 output sane info on base mismatch and virtual table mismatch.
25220 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
25221 when only one type is polymorphic.
25222 (get_odr_type): Fix hashtable corruption.
25223 (dump_odr_type): Dump mangled names.
25225 2015-02-18 Richard Biener <rguenther@suse.de>
25227 PR tree-optimization/65063
25228 * tree-predcom.c (determine_unroll_factor): Return 1 if we
25229 have replaced looparound PHIs.
25231 2015-02-18 Martin Liska <mliska@suse.cz>
25233 * lto-streamer.c (lto_streamer_init): Encapsulate
25234 streamer_check_handled_ts_structures with checking macro.
25236 2015-02-18 Jakub Jelinek <jakub@redhat.com>
25239 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
25240 section if !implicit_section.
25241 (cgraph_node::create_version_clone_with_body): Likewise.
25242 * trans-mem.c (ipa_tm_create_version): Likewise.
25244 2015-02-18 Richard Biener <rguenther@suse.de>
25246 PR tree-optimization/62217
25247 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
25250 2015-02-18 Marek Polacek <polacek@redhat.com>
25253 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
25254 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
25255 is in range [-16K, -1]. Don't issue run-time error if
25256 (ptr > ptr + offset).
25258 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
25260 * doc/install.texi (nvptx-*-none): New section.
25261 * doc/invoke.texi (Nvidia PTX Options): Likewise.
25262 * config/nvptx/nvptx.opt: Update.
25264 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
25265 (access_check): New functions, copied from
25266 config/i386/intelmic-mkoffload.c.
25267 (main): For non-installed testing, look in all COMPILER_PATHs for
25270 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
25272 2015-02-18 Andrew Pinski <apinski@cavium.com>
25273 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25275 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
25276 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
25278 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
25280 * ipa-visibility.c (function_and_variable_visibility): Only
25281 check locality if node is not already local.
25282 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
25283 call_for_symbol_and_aliases instead of
25284 call_for_symbol_thunks_and_aliases.
25285 (ipa_inline): Likewise.
25286 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25287 first walk aliases.
25288 * ipa.c (symbol_table::remove_unreachable_nodes): Use
25289 call_for_symbol_and_aliases.
25290 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
25291 (ipa_propagate_frequency_1): Use it; use opt_for_fn
25292 (ipa_propagate_frequency): Update.
25293 (ipa_profile): Add opt_for_fn gueards.
25295 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
25297 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
25298 * doc/invoke.texi (SH options): Document it.
25299 * config/sh/sh.c (sh_insn_length_adjustment): Check
25300 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
25302 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
25304 * common.opt (fipa-cp-alignment): New.
25305 * ipa-cp.c (ipcp_store_alignment_results): Check
25306 flag_ipa_cp_alignment.
25307 * opts.c (default_options_table): Enable -fipa-cp-alignment for
25309 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
25310 * doc/invoke.texi: Document -fipa-cp-alignment.
25312 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
25315 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
25316 to nil. Adjust comments.
25318 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
25320 * ipa-visibility.c (function_and_variable_visibility): Only
25321 check locality if node is not already local.
25322 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
25323 call_for_symbol_and_aliases instead of
25324 call_for_symbol_thunks_and_aliases.
25325 (ipa_inline): Likewise.
25326 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25327 first walk aliases.
25328 * ipa.c (symbol_table::remove_unreachable_nodes): Use
25329 call_for_symbol_and_aliases.
25330 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
25331 (ipa_propagate_frequency_1): Use it; use opt_for_fn
25332 (ipa_propagate_frequency): Update.
25333 (ipa_profile): Add opt_for_fn guards.
25335 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
25337 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
25338 skipping of "strange" tokens.
25340 2015-02-17 Jeff Law <law@redhat.com>
25342 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
25345 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
25347 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
25348 as forcing a HARD_DEP between instructions, thereby
25349 disallowing rewriting to break dependencies.
25351 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
25353 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
25354 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
25355 variables in boundary that have no inlitalizer encoded and are
25357 * varasm.c (default_binds_local_p_2): External definitions do not
25358 count as definitions here.
25360 2015-02-16 Jeff Law <law@redhat.com>
25362 PR tree-optimization/64823
25363 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
25365 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
25366 threading through blocks with PHIs, but no statements.
25367 (thread_through_normal_block): Distinguish between blocks where
25368 we did not process all the statements and blocks with no statements.
25370 2015-02-16 Jakub Jelinek <jakub@redhat.com>
25371 James Greenhalgh <james.greenhalgh@arm.com>
25374 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
25375 section if not linkonce. Fix up formatting.
25376 (cgraph_node::create_version_clone_with_body): Copy section.
25377 * trans-mem.c (ipa_tm_create_version): Likewise.
25379 2015-02-16 Richard Biener <rguenther@suse.de>
25381 PR tree-optimization/65077
25382 * tree-ssa-structalias.c (get_constraint_for_1): Handle
25383 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
25384 (find_func_aliases): Allow float values to carry pointers again.
25386 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
25388 * doc/install.texi (Specific): Reorder targets list to put
25389 aarch64 in alphabetical order. Add a link to aarch64*-*-*
25392 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
25393 David Edelsohn <dje.gcc@gmail.com>
25396 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
25397 mapping class to external variable or function reference.
25398 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
25401 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
25404 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
25405 ASM_WEAKEN_DECL if defined.
25407 2015-02-16 Richard Biener <rguenther@suse.de>
25410 * varasm.c (default_file_start): For LTO produced units
25411 emit <artificial> as file directive.
25413 2015-02-16 Richard Biener <rguenther@suse.de>
25415 PR tree-optimization/63593
25416 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
25417 stmts and releasing SSA names until...
25418 (execute_pred_commoning): ... after processing all chains.
25420 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
25423 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
25424 external functions.
25426 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
25428 * doc/bugreport.texi: Adjust section titles throughout the file
25429 to use "Title Case".
25430 * doc/extend.texi: Likewise.
25431 * doc/gcov.texi: Likewise.
25432 * doc/implement-c.texi: Likewise.
25433 * doc/implement-cxx.texi: Likewise.
25434 * doc/invoke.texi: Likewise.
25435 * doc/objc.texi: Likewise.
25436 * doc/standards.texi: Likewise.
25437 * doc/trouble.texi: Likewise.
25439 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
25441 * cgraph.h (symtab_node::has_aliases_p): Simplify.
25442 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
25443 * tree.c (lookup_binfo_at_offset): Make static.
25444 (get_binfo_at_offset): Do not shadow offset; add explanatory
25447 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
25449 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
25450 for all floading point loads and stores except those using a register
25452 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
25455 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
25457 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
25458 (do_estimate_growth_1): Record if any uninlinable edge was seen.
25459 (estimate_growth): Handle uninlinable edges correctly.
25460 (check_callers): New.
25461 (growth_likely_positive): Handle aliases correctly.
25463 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
25465 * ipa-chkp.c: Use iterate_direct_aliases.
25466 * symtab.c (resolution_used_from_other_file_p): Move inline.
25467 (symtab_node::create_reference): Fix formating.
25468 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
25469 (symtab_node::iterate_reference): Move inline.
25470 (symtab_node::iterate_referring): Move inline.
25471 (symtab_node::iterate_direct_aliases): Move inline.
25472 (symtab_node::used_from_object_file_p_worker): Inline into ...
25473 (symtab_node::used_from_object_file_p): ... this one; move inline.
25474 (symtab_node::call_for_symbol_and_aliases): Move inline;
25475 use iterate_direct_aliases.
25476 (symtab_node::call_for_symbol_and_aliases_1): New method.
25477 (cgraph_node::call_for_symbol_and_aliases): Move inline;
25478 use iterate_direct_aliases.
25479 (cgraph_node::call_for_symbol_and_aliases_1): New method.
25480 (varpool_node::call_for_node_and_aliases): Rename to ...
25481 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
25482 use iterate_direct_aliases.
25483 (varpool_node::call_for_symbol_and_aliases_1): New method.
25484 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
25485 (ipa_discover_readonly_nonaddressable_var): Update.
25486 * ipa-devirt.c: Fix formating.
25487 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
25489 (cgraph_node::call_for_symbol_and_aliases): Move inline.
25490 (cgraph_node::call_for_symbol_and_aliases_1): New function..
25491 * cgraph.h (used_from_object_file_p_worker): Remove.
25492 (resolution_used_from_other_file_p): Move inline.
25493 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
25494 (symtab_node::iterate_reference): Move inline.
25495 (symtab_node::iterate_referring): Move inline.
25496 (symtab_node::iterate_direct_aliases): Move inline.
25497 (symtab_node::used_from_object_file_p_worker): Inline into ...
25498 (symtab_node::used_from_object_file_p): Move inline.
25499 * tree-emutls.c (ipa_lower_emutls): Update.
25500 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
25501 (varpool_node::call_for_node_and_aliases): Remove.
25503 2015-02-14 Jakub Jelinek <jakub@redhat.com>
25505 PR tree-optimization/62209
25506 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
25507 op == range->exp, insert seq and gimplified code after labels
25508 instead of after the phi.
25510 2015-02-13 Jeff Law <law@redhat.com>
25513 Revert my change for tree-optimization/64823.
25515 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25517 PR tree-optimization/65053
25518 * tree-ssa-phiopt.c (value_replacement): When moving assign before
25519 cond, either reset VR on lhs or set it to phi result VR.
25521 2015-02-13 Jeff Law <law@redhat.com>
25523 PR tree-optimization/64823
25524 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
25525 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
25526 threading through blocks with PHIs, but no statements.
25527 (thread_through_normal_block): Distinguish between blocks where
25528 we did not process all the statements and blocks with no statements.
25530 PR rtl-optimization/47477
25531 * match.pd (convert (plus/minus (convert @0) (convert @1): New
25532 simplifier to narrow arithmetic.
25534 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
25537 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
25538 polymorphic call info when type is not known to be preserved.
25540 2015-02-13 Maritn Jambor <mjambor@suse.cz>
25543 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
25544 (inline_call): Use it.
25546 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
25548 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
25549 GOMP_DEVICE_NVIDIA_PTX.
25551 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25554 * stmt.c (emit_case_nodes): Use void_type_node instead of
25555 NULL_TREE as LABEL_DECL type.
25557 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
25559 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
25561 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
25562 symbolic references to data to be forced to constant memory on the
25565 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
25567 PR tree-optimization/65002
25568 * tree-cfg.c (pass_data_fixup_cfg): Don't update
25570 * tree-sra.c (some_callers_have_no_vuse_p): New.
25571 (ipa_early_sra): Reject functions whose callers
25572 assume function is read only.
25574 2015-02-13 Richard Biener <rguenther@suse.de>
25577 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
25578 for LTO produced CUs.
25580 2015-02-13 Bin Cheng <bin.cheng@arm.com>
25582 PR tree-optimization/64705
25583 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
25584 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
25585 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
25586 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
25587 expand_simple_operations.
25589 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
25590 Richard Henderson <rth@redhat.com>
25593 * cgraphunit.c (cgraph_node::finalize_function): Set definition
25594 before notice_global_symbol.
25595 (varpool_node::finalize_decl): Likewise.
25596 * varasm.c (default_binds_local_p_2): Rename from
25597 default_binds_local_p_1, add weak_dominate argument. Use direct
25598 returns instead of assigning to local variable. Unify varpool and
25599 cgraph paths via symtab_node. Reject undef weak variables before
25600 testing visibility. Reorder tests for simplicity.
25601 (default_binds_local_p): Use default_binds_local_p_2.
25602 (default_binds_local_p_1): Likewise.
25603 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
25605 (default_elf_asm_output_external): Emit visibility when specified.
25607 2015-02-13 Alan Modra <amodra@gmail.com>
25609 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
25610 code setting up r11 for out-of-line fp restore.
25612 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
25614 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
25615 (muser-mode): Likewise.
25617 2015-02-13 Alan Modra <amodra@gmail.com>
25619 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
25620 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
25622 2015-02-12 David Howells <dhowells@redhat.com>
25624 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
25626 * tree-ssa-uninit.c (dump_predicates): Likewise.
25627 * opts.c (print_filtered_help): Likewise.
25629 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25631 * dwarf2out.c (output_die): Use "%s", name instead of name to
25632 avoid -Wformat-security warning.
25634 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
25635 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25636 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
25637 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25639 2015-02-12 Jason Merrill <jason@redhat.com>
25641 * common.opt (-flifetime-dse): New.
25643 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25646 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
25648 PR tree-optimization/65014
25649 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
25650 use original second operand of arg0 or arg1 instead of
25651 that adjusted by STRIP_NOPS.
25653 2015-02-11 Jeff Law <law@redhat.com>
25656 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
25657 that needs to be queued, just queue it for a single cycle.
25659 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
25661 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
25662 bodies of thunks; comment on why.
25663 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
25664 symbols are extern.
25666 2015-02-11 Richard Henderson <rth@redhat.com>
25669 * tree-eh.c (mark_reachable_handlers): Mark source and destination
25670 regions of __builtin_eh_copy_values.
25672 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25674 PR middle-end/65003
25675 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
25676 ultimate alias is MEM with SYMBOL_REF satisfying
25677 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
25678 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
25680 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
25682 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
25683 "diagnostic-core.h".
25684 (main): Initialize progname, and call diagnostic_initialize.
25686 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
25687 instead of __OPENMP_TARGET__.
25689 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
25690 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
25691 hard-coding PTX_ID.
25693 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
25695 * doc/sourcebuild.texi (pie_enabled): Document.
25697 2015-02-11 Martin Liska <mliska@suse.cz>
25700 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
25701 a return value for call to a function that is noreturn.
25703 2015-02-11 Richard Biener <rguenther@suse.de>
25706 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
25709 2015-02-11 Andrew Pinski <apinski@cavium.com>
25712 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
25713 Change the first argument type to size_type_node and add another
25715 (aarch64_simd_expand_builtin): Handle the new argument to
25716 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
25717 print an out when the first two arguments are not
25718 nonzero integer constants.
25719 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
25720 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
25722 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25725 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
25726 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
25727 (ix86_set_current_function): Rewritten.
25728 (ix86_add_new_builtins): Temporarily clear current_target_pragma
25729 when creating builtin fndecls.
25731 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25734 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
25736 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
25737 have no comdat group.
25738 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
25739 (lto_output_varpool_node): Always output alias info.
25740 (output_refs): Output refs of boundary aliases, too.
25741 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
25742 (output_symtab): Output call eges in thunks in boundary.
25743 (get_alias_symbol): Remove.
25744 (input_node, input_varpool_node): Do not special case weakrefs.
25745 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
25746 alias and thunks targets in the boundary; do not take removed symbols
25747 from their comdat groups.
25748 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
25749 (cgraph_node::global_info): Remove.
25750 (cgraph_node::rtl_info): Look through aliases and thunks.
25751 * cgrpah.h (global_info): Remove.
25752 (non_local_p): Remove.
25754 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25755 Sandra Loosemore <sandra@codesourcery.com>
25757 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
25758 to inline asm. List dialects in proper order.
25760 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25761 Sandra Loosemore <sandra@codesourcery.com>
25763 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
25765 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25767 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
25768 modified) reference to Solaris.
25770 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
25772 * doc/extend.texi (Extended Asm): Fix typos.
25774 2015-02-10 Jakub Jelinek <jakub@redhat.com>
25777 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
25779 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
25782 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
25783 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
25784 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
25785 * config/sh/constraints.md (Ara, Add): New constraints.
25786 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
25788 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
25789 atomic_mem_operand_0. Don't use force_reg on the memory address.
25790 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
25791 Sra constraint. Convert to insn_and_split. Add workaround for
25793 (atomic_compare_and_swap<mode>_hard): Copy to
25794 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
25795 Use atomic_mem_operand_0 predicate.
25796 (atomic_compare_and_swap<mode>_soft_gusa,
25797 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
25798 AraAdd constraints.
25799 (atomic_compare_and_swap<mode>_soft_tcb,
25800 atomic_compare_and_swap<mode>_soft_imask,
25801 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
25802 atomic_mem_operand_0 predicate and SraSdd constraints.
25803 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
25805 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
25806 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
25807 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
25808 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
25809 force_reg on the memory address.
25810 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
25811 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
25812 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
25813 atomic_mem_operand_1 predicate and Sra constraint.
25814 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
25815 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25816 Use atomic_mem_operand_1 predicate.
25817 (atomic_<fetchop_name><mode>_hard): Copy to
25818 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25819 Use atomic_mem_operand_1 predicate.
25820 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
25821 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25822 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
25823 insn_and_split. Use atomic_mem_operand_1 predicate.
25824 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
25825 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
25826 Use atomic_mem_operand_1 predicate.
25827 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
25828 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25829 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
25830 in generated insn with original mem operand before emitting the insn.
25831 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
25832 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
25833 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
25834 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
25835 Use atomic_mem_operand_1 predicate and AraAdd constraints.
25836 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
25837 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
25838 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
25839 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
25840 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
25841 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
25842 atomic_not_fetch<mode>_soft_tcb,
25843 atomic_<fetchop_name>_fetch<mode>_soft_imask,
25844 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
25845 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
25846 Use atomic_mem_operand_1 predicate and SraSdd constraints.
25848 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
25850 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
25851 and 3 earlyclobber operands.
25853 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25855 * common.opt (fstack-reuse): Mark as optimization.
25857 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25860 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
25862 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
25864 PR tree-optimization/64326
25865 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
25867 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
25869 PR gcov-profile/61889
25870 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
25872 2015-02-10 Richard Biener <rguenther@suse.de>
25874 PR tree-optimization/64995
25875 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
25876 value we use is final.
25877 (visit_reference_op_store): Always valueize op.
25878 (visit_use): Properly valueize vuses.
25880 2015-02-10 Richard Biener <rguenther@suse.de>
25882 PR tree-optimization/64909
25883 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
25884 pass a scalar-stmt count estimate to the cost model.
25885 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
25887 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
25889 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
25890 enabled by default together with var-tracking.
25892 2015-02-10 Nick Clifton <nickc@redhat.com>
25894 * config/rl78/rl78.c: Remove DIV attribute code accidentally
25895 included in previous rl78 commit.
25897 2015-02-10 Richard Biener <rguenther@suse.de>
25899 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
25900 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
25901 return the bitpack.
25903 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25905 PR gcov-profile/61889
25906 * config.in: regenerate.
25907 * configure.in: Likewise.
25908 * configure.ac: Check for ftw.h.
25909 * gcov-tool.c: Check for ftw.h before using nftw.
25911 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25914 * ipa-visibility.c (update_visibility_by_resolution_info): Only
25915 assert when not in lto mode.
25917 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25919 * ira-color.c (setup_left_conflict_sizes_p): Simplify
25920 initialization/assignment of conflict_size.
25922 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
25925 * ipa-cp.c (gather_caller_stats): Skip thunks.
25926 (propagate_constants_topo): Skip aliases.
25928 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
25931 * config/sh/sh.c (sh_option_override): Don't change
25932 -freorder-blocks-and-partition to -freorder-blocks even when
25933 unwinding is enabled.
25934 (sh_can_follow_jump): Return false if the followee jump is
25935 a crossing jump when -freorder-blocks-and-partition is specified.
25936 * config/sh/sh.md (*jump_compact_crossing): New insn.
25938 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
25939 Kaz Kojima <kkojima@gcc.gnu.org>
25942 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
25943 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
25944 (sh_can_redirect_branch): Rename to ...
25945 (sh_can_follow_jump): ... this. Constify argument types.
25946 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
25947 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
25948 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
25949 * doc/tm.texi: Regenerate.
25951 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25954 * builtins.c (expand_builtin): Call targetm.expand_builtin
25955 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
25957 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25960 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
25962 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25965 * ipa-icf.c (set_local): New function.
25966 (sem_function::merge): Use it.
25968 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25970 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
25971 (add_type_duplicate): Fix comparison of BINFOs.
25973 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25975 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
25976 on getting VOID pointer.
25978 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25981 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
25984 2015-02-09 Richard Biener <rguenther@suse.de>
25986 * genmatch.c (replace_id): Copy expr_type.
25988 2015-02-09 Richard Biener <rguenther@suse.de>
25990 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
25991 (streamer_write_tree_bitfields): Declare.
25992 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
25993 properly unpack padding.
25994 (unpack_value_fields): Inline ...
25995 (streamer_read_tree_bitfields): ... here.
25996 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
25997 and properly add padding bits.
25998 (streamer_pack_tree_bitfields): Fold into ...
25999 (streamer_write_tree_bitfields): ... this new function,
26000 exposing the bitpack object.
26001 * lto-streamer-out.c (lto_write_tree_1): Call
26002 streamer_write_tree_bitfields.
26004 2015-02-09 Richard Biener <rguenther@suse.de>
26006 PR tree-optimization/54000
26007 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
26008 (struct ivopts_data): Add loop_loc member.
26009 (tree_ssa_iv_optimize_loop): Dump loop location.
26010 (create_new_ivs): Likewise, also dump number of IVs generated.
26012 2015-02-09 Martin Liska <mliska@suse.cz>
26014 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
26015 just if not yet registered.
26016 (ipa_icf_generate_summary): Register callgraph hooks.
26018 2015-02-08 Andrew Pinski <apinski@cavium.com>
26020 * config/aarch64/aarch64.c (gty_dummy): Delete.
26022 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26025 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
26026 (cgraph_node::local_p): Remove thunk related FIXME.
26028 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26031 * i386.c (ix86_function_regparm): Look through aliases to see if callee
26032 is local and optimized.
26033 (ix86_function_sseregparm): Likewise; also use target's SSE math
26034 settings; error out instead of silently generating wrong code
26036 (init_cumulative_args): Look through aliases.
26038 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26041 * ipa-split.c (execute_split_functions): Split if function has aliases.
26043 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26046 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
26047 aliases before trying to expand it.
26048 (cgraph_node::expand_thunk): Fix formating.
26050 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
26052 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
26053 (Using Assembly Language with C): Expand introduction.
26054 (Basic Asm): Copy-edit. Add more information about uses of
26056 (Extended Asm): Copy-edit. Document new escape syntax and
26058 (Global Reg Vars): Copy-edit.
26059 (Local Reg Vars): Likewise.
26061 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
26065 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
26066 (DBX_CONTIN_CHAR): Define.
26068 2015-02-06 Sebastian Pop <s.pop@samsung.com>
26069 Brian Rzycki <b.rzycki@samsung.com>
26071 PR tree-optimization/64878
26072 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
26073 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
26074 Stop recursion at loop phi nodes after having visited a loop phi node.
26076 2015-02-06 Jakub Jelinek <jakub@redhat.com>
26078 * toplev.c (process_options): Change flag_ipa_ra before creating
26079 optimization_{default,current}_node.
26082 * cgraphunit.c (cgraph_node::expand_thunk): If
26083 restype is not is_gimple_reg_type nor the thunk_fndecl
26084 returns aggregate_value_p, set restmp to a temporary variable
26085 instead of resdecl.
26087 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
26089 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
26091 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26094 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
26095 add a general secondary reload handler for SDmode, unless we have
26096 both read/write support for SDmode.
26098 2015-02-06 Jakub Jelinek <jakub@redhat.com>
26100 PR middle-end/64937
26101 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
26102 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
26103 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
26104 1 before, push it to abstract_vec.
26105 (dwarf2out_abstract_function): Adjust caller. Don't call
26106 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
26107 DECL_ABSTRACT_P flags for all abstract_vec elts.
26109 2015-02-06 Renlin Li <renlin.li@arm.com>
26111 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
26113 * tree-ssa.c (execute_update_addresses_taken): Likewise.
26115 2015-02-06 Jeff Law <law@redhat.com>
26118 * config/h8300/h8300.c (push): New argument "in_prologue".
26119 Pass "in_prologue" along to "F".
26120 (h8300_push_pop): Corresponding changes.
26121 (h8300_expand_prologue): Likewise.
26122 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
26124 2015-02-06 Jakub Jelinek <jakub@redhat.com>
26126 PR rtl-optimization/64957
26128 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
26129 IOR rather than for AND.
26131 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
26134 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
26135 of shift-add and (add + shift) operations. Rename local variable.
26137 2015-02-05 Jeff Law <law@redhat.com>
26140 * config/h8300/constraints.md (U): Correctly dectect
26141 "eightbit_data" memory addresses.
26142 * config/h8300/h8300.c (eightbit_constant_address_p): Also
26143 handle (const (plus (symbol_ref (x)))) where x is declared
26144 as an 8-bit data memory address.
26145 * config/h8300/h8300.md (call, call_value): Correctly detect
26146 "funcvec" functions.
26149 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
26150 24 to 28 bits for the H8/300.
26152 2015-02-06 Alan Modra <amodra@gmail.com>
26155 * config/rs6000/rs6000.c (chain_already_loaded): New function.
26156 (rs6000_call_aix): Use it.
26158 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
26160 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
26163 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
26165 * config/h8300/constraints.md ("U" constraint): Use strict
26166 variant of REG_OK_FOR_BASE_P after reload has started.
26168 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
26170 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
26171 define to zero if !TARGET_NEON.
26172 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
26174 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26175 Trevor Saunders <tsaunders@mozilla.com>
26178 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
26180 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26183 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
26184 when removing varpool nodes.
26186 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26189 * varpool.c (varpool_node::remove): Fix order of variables.
26191 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26194 * ipa-inline.c (inline_small_functions): Fix ordering issue between
26195 speculation resolution and key updates.
26197 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26199 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
26200 about not letting any speculative edges unupdated.
26202 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26205 * gcov-io.c (gcov_var): Export.
26207 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26209 PR middle-end/64922
26210 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
26211 edges that become speculative.
26213 2015-02-04 Jakub Jelinek <jakub@redhat.com>
26215 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
26216 or DW_LANG_Fortran08.
26217 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
26219 (gen_compile_unit_die): Handle "GNU Fortran2003" and
26220 "GNU Fortran2008" language strings.
26221 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
26222 * langhooks.h (lang_GNU_Fortran): New prototype.
26223 * langhooks.c (lang_GNU_Fortran): New function.
26224 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
26227 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
26229 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
26230 (RTX_OK_FOR_OLO10_P): Likewise.
26232 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
26234 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
26236 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26238 PR middle-end/64922
26239 * gimple.c: Include gimple-ssa.h.
26240 (maybe_remove_unused_call_args): New function.
26241 * gimple.h (maybe_remove_unused_call_args): Declare.
26242 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
26243 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
26244 * gimple-fold.c (gimple_fold_call): Likewise.
26246 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
26248 PR rtl-optimization/64905
26249 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
26250 pointer alignment if it isn't needed.
26252 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
26254 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
26255 cortex-a72.cortex-a53.
26256 * config/aarch64/aarch64-tune.md: Regenerate.
26257 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
26259 2015-02-04 Nick Clifton <nickc@redhat.com>
26261 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
26264 2015-02-04 Jakub Jelinek <jakub@redhat.com>
26266 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
26267 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
26268 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
26270 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
26271 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
26272 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
26273 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
26274 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
26275 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
26276 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
26277 * tree-core.h (enum built_in_function): In between
26278 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
26279 for builtins that use DEF_BUILTIN_CHKP macro.
26281 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
26284 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
26285 operands for tcc_comparison exprs. Fix typos.
26288 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
26289 of two XORs that have an intervening AND or IOR.
26292 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
26293 simplification of XOR of AND to not allocate new rtx before
26294 committing to a simplification.
26296 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26298 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
26299 manual swaps in all peepholes.
26301 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26303 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
26304 of manual swapping implementation.
26305 (aarch64_expand_vec_perm_const_1): Likewise.
26307 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
26309 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
26310 (generic_addrcost_table): Remove NAMED_PARAM.
26311 (cortexa57_addrcost_table): Likewise.
26312 (xgene1_addrcost_table): Likewise.
26313 (generic_regmove_table): Likewise.
26314 (cortexa53_regmove_table): Likewise.
26315 (xgene1_regmove_table): Likewise.
26316 (generic_vector_table): Likewise.
26317 (cortexa57_vector_table): Likewise.
26318 (xgene1_vector_table): Likewise.
26319 (generic_tunings): Likewise.
26320 (cortexa53_tunings): Likewise.
26321 (cortexa57_tunings): Likewise.
26322 (xgene1_tunings): Likewise.
26324 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
26326 * config/arm/arm-cores.def: Add cortex-a72 and
26327 cortex-a72.cortex-a53.
26328 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
26329 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
26330 * config/arm/arm-tune.md: Regenerate.
26331 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
26332 "cortex-a72.cortex-a53".
26333 * doc/invoke.texi (ARM Options/-mtune): Likewise.
26335 2015-02-04 Nick Clifton <nickc@redhat.com>
26338 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
26340 (nonimmediate_di_operand): Likewise.
26342 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
26343 prefixes of known F5 using MSP430 MCUs.
26345 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26347 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
26348 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
26349 instead of __builtin_sqrt.
26351 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
26353 * varasm.c (do_assemble_alias): Follow transparent alias
26355 (default_assemble_visibility): Follow transparent alias
26356 chain for decl name.
26358 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
26360 PR middle-end/62103
26361 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
26362 to compute size of referenced value in the constant case.
26364 2015-02-03 Jakub Jelinek <jakub@redhat.com>
26366 PR rtl-optimization/64756
26367 * cse.c (invalidate_dest): New function.
26368 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
26369 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
26370 invalidate and do not record it.
26372 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
26375 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
26376 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
26377 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
26378 atomic_nand<mode>_soft_tcb): New insns.
26379 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
26380 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
26381 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
26382 Split into atomic_not_fetchsi_hard if operands[0] is unused.
26383 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
26384 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
26385 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
26386 atomic_not<mode>_hard if operands[0] is unused.
26387 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
26388 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
26389 if operands[0] is unused.
26390 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
26391 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
26392 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
26393 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
26395 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
26396 into atomic_not<mode>_soft_tcb if operands[0] is unused.
26397 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
26398 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
26399 if operands[0] is unused.
26400 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
26401 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
26402 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
26403 atomic_nand_fetchsi_hard if operands[0] is unused.
26404 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
26405 atomic_nand<mode>_hard if operands[0] is unused.
26406 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
26407 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
26408 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
26409 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
26410 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
26411 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
26412 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
26413 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
26414 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
26415 atomic_not<mode>_hard if operands[0] is unused.
26416 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
26417 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
26419 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
26420 into atomic_not<mode>_soft_tcb if operands[0] is unused.
26421 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
26422 atomic_nand<mode>_hard if operands[0] is unused.
26423 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
26424 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
26426 2015-02-03 David Malcolm <dmalcolm@redhat.com>
26429 * Makefile.in (GCC_OBJS): Add gcc-main.o.
26430 * gcc-main.c: New file, containing "main" taken from gcc.c.
26431 * gcc.c (do_self_spec): Free decoded_options.
26432 (class driver): Move declaration to gcc.h.
26433 (main): Move declaration and implementation to new file
26435 (driver_get_configure_time_options): New function.
26436 * gcc.h (class driver): Move this declaration here, from
26438 (driver_get_configure_time_options): New declaration.
26440 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
26442 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
26443 cross-module inlining.
26444 * cgraph.h (cgraph_node): Add flag merged.
26445 * ipa-icf.c (sem_function::merge): Maintain it.
26447 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
26449 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
26450 instead of OBJECT_P.
26452 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
26455 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
26456 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
26457 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
26458 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
26460 2015-02-03 Jakub Jelinek <jakub@redhat.com>
26463 * combine.c (reg_n_sets_max): New variable.
26464 (can_change_dest_mode, reg_nonzero_bits_for_combine,
26465 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
26466 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
26467 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
26468 (rest_of_handle_combine): Initialize reg_n_sets_max.
26470 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
26472 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
26473 if some always_inline was inlined, apply changes before inlining
26476 2015-02-02 David Malcolm <dmalcolm@redhat.com>
26479 * config/arm/arm.c (arm_option_override): Set
26480 arm_selected_arch/cpu/tune to NULL on entry.
26482 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
26483 Andrew Pinski <pinskia@gcc.gnu.org>
26484 Jakub Jelinek <jakub@gcc.gnu.org>
26487 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
26488 integer typing for small model. Use IN_RANGE.
26490 2015-02-02 Richard Biener <rguenther@suse.de>
26492 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
26493 * tree-vrp.c (vrp_valueize_1): Likewise.
26495 2015-02-02 Alan Modra <amodra@gmail.com>
26497 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
26498 than mem for toc_restore.
26499 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
26500 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
26501 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
26503 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
26506 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
26507 explicit default options.
26509 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
26512 * ipa-utils.c (ipa_merge_profiles): Add release argument.
26513 * ipa-icf.c (sem_function::merge): Do not release body when merging.
26514 * ipa-utils.h (ipa_merge_profiles): Update prototype.
26516 2015-02-01 Jakub Jelinek <jakub@redhat.com>
26519 * cfgexpand.c (deep_ter_debug_map): New variable.
26520 (avoid_deep_ter_for_debug): New function.
26521 (expand_debug_expr): If TERed SSA_NAME is in
26522 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
26523 instead of trying to expand SSA_NAME's def stmt.
26524 (expand_debug_locations): When expanding debug bind
26525 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
26526 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
26528 (pass_expand::execute): Call avoid_deep_ter_for_debug on
26529 all debug bind stmts. Delete deep_ter_debug_map after
26530 expand_debug_location if non-NULL and clear it.
26532 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
26535 * config/sh/sync.md (atomic_fetch_notsi_hard,
26536 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
26537 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
26538 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
26539 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
26540 atomic_not_fetch<mode>_soft_imask): New insns.
26542 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26544 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
26545 (rank_for_schedule_debug): Split from ...
26546 (rank_for_schedule): ... this.
26547 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
26548 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
26550 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26552 * doc/md.texi (Machine Constraints): Alphabetize table by target.
26553 * doc/extend.texi (x86 Variable Attributes): Move section to
26554 correct alphabetization after renaming.
26555 (x86 Type Attributes): Likewise.
26556 (Target Builtins): Re-alphabetize menu.
26557 (x86 Built-in Functions): Move section to correct alphabetization
26559 (x86 transactional memory intrinsics): Likewise.
26560 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
26561 and x86 Windows Options in table and menu.
26562 (x86 Options): Move section to correct alphabetization after
26564 (x86 Windows Options): Likewise.
26566 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26568 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
26569 preferred names of the architecture and its 32- and 64-bit
26571 * doc/invoke.texi: Likewise.
26572 * doc/md.texi: Likewise.
26574 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26577 * config/i386/predicates.md (address_no_seg_operand): Reject
26578 non-CONST_INT_P operands in invalid mode.
26580 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26582 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
26583 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
26584 * config/i386/predicates.md (address_no_seg_operand): Call
26585 address_operand with VOIDmode.
26586 (vsib_address_operand): Ditto.
26587 (address_mpx_no_base_operand): Ditto.
26588 (address_mpx_no_index_operand): Ditto.
26590 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26593 * lra-constraints.c (original_subreg_reg_mode): New.
26594 (simplify_operand_subreg): Try to simplify subreg of const. Use
26595 original_subreg_reg_mode for it.
26596 (swap_operands): Update original_subreg_reg_mode.
26597 (curr_insn_transform): Set up original_subreg_reg_mode.
26599 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26602 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
26604 (process_alt_operands): Use it.
26605 (curr_insn_transform): Check the optional reload pseudo class is
26608 2015-01-30 Joseph Myers <joseph@codesourcery.com>
26610 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
26611 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
26613 * toplev.h (init_asm_output): Update comment on use of
26614 UNKNOWN_LOCATION with fatal_error.
26615 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
26616 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
26617 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
26618 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
26619 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
26620 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
26621 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
26622 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
26623 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
26624 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
26625 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
26626 fatal_error changed to pass input_location as first argument.
26628 2015-01-30 Martin Liska <mliska@suse.cz>
26630 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
26631 in #pragma GCC diagnostic guards.
26633 2015-01-30 Richard Biener <rguenther@suse.de>
26635 PR tree-optimization/64829
26636 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
26637 not add a widening conversion pattern but hand off extra
26638 widenings to callers.
26639 (vect_recog_widen_mult_pattern): Handle extra widening produced
26640 by vect_handle_widen_op_by_const.
26641 (vect_recog_widen_shift_pattern): Likewise.
26642 (vect_pattern_recog_1): Remove excess vertical space in dumping.
26643 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
26644 (vect_init_vector_1): Likewise.
26645 (vect_get_vec_def_for_operand): Likewise.
26646 (vect_finish_stmt_generation): Likewise.
26647 (vectorizable_load): Likewise.
26648 (vect_analyze_stmt): Likewise.
26649 (vect_is_simple_use): Likewise.
26651 2015-01-29 Jeff Law <law@redhat.com>
26653 * combine.c (try_combine): Fix typo in comment.
26655 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
26658 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
26659 (rs6000_stack_info): Add assert.
26660 (rs6000_output_savres_externs): New function, split off from...
26661 (rs6000_output_function_prologue): ... here. Do not call it for
26664 2015-01-29 Jeff Law <law@redhat.com>
26667 * combine.c (try_combine): If I0 is a memory load and I3 a store
26668 to a related address, increase the "goodness" of doing a 4-insn
26669 combination with I0-I3.
26670 (make_field_assignment): Handle SUBREGs in the ior+and case.
26672 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
26674 PR tree-optimization/64746
26675 * tree-if-conv.c (mask_exists): New function.
26676 (predicate_mem_writes): Save created mask with given size for further
26678 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
26679 (ifcvt_repair_bool_pattern): Collect all statements that are root
26680 of bool pattern and use iterative algorithm to remove multiple uses
26681 of predicates, display number of required iterations.
26683 2015-01-29 Richard Biener <rguenther@suse.de>
26685 PR tree-optimization/64853
26686 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
26687 stmt will get simulated again.
26688 * tree-ssa-ccp.c (valueize_op_1): Likewise.
26690 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26692 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
26693 return_in_pc. Remove redundant assignments.
26694 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
26695 (arm_expand_epilogue): Don't compare boolean with true in if condition.
26697 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
26699 * config/i386/i386.c (ix86_mode_after): Make static.
26701 2015-01-29 Richard Biener <rguenther@suse.de>
26703 PR tree-optimization/64844
26704 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
26705 dump cost model analysis.
26706 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26707 Do not register adjusted load/store costs here.
26709 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26710 Uros Bizjak <ubizjak@gmail.com>
26712 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
26713 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
26714 using x86_use_pseudo_pic_reg.
26715 * config/i386/i386.c (ix86_conditional_register_usage): Remove
26716 support for fixed PIC register.
26717 (ix86_use_pseudo_pic_reg): Not static any more.
26719 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26721 PR middle-end/64805
26722 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
26723 to avoid error in cgraph node verification.
26725 2015-01-29 Marek Polacek <polacek@redhat.com>
26727 * doc/standards.texi: Reflect that the default for C is gnu11.
26729 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
26732 * reorg.c (switch_text_sections_between_p): New function.
26733 (relax_delay_slots): Call it when testing if the jump insn
26734 is removable. Use targetm.can_follow_jump when testing if
26735 the conditional branch can follow an unconditional jump.
26737 2015-01-27 Caroline Tice <cmtice@google.com>
26739 Committing VTV Cywin/Ming patch for Patrick Wollgast
26740 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
26741 if -fvtable-verify=preinit/std is used.
26742 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
26743 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
26744 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
26745 if -fvtable-verify=preinit/std is used.
26746 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
26747 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
26748 if -fvtable-verify=preinit/std is used.
26749 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
26750 * config/i386/mingw32.h (LIB_SPEC): Likewise.
26751 * varasm.c (assemble_variable): Add code to properly set the comdat
26752 section and name for the .vtable_map_vars section in case the
26753 target is PE or COFF.
26755 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26758 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
26759 make sane BB profile.
26760 (cgraph_node::expand_thunk): Make sane BB profile.
26761 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
26762 * cgraph.h (init_lowered_empty_function): Update prototype.
26763 * config/i386/i386.c (make_resolver_func): Update call.
26764 * predict.c (gate): Disable branch prediction pass if
26765 profile is already there.
26767 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26769 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
26770 * opth-gen.awk: Likewise.
26771 * common.opt: Mark flag_fp_contract_mode as Optimization.
26773 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
26775 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
26776 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
26778 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
26781 * config/sh/predicates.md (atomic_arith_operand,
26782 atomic_logical_operand): Remove.
26783 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
26784 (atomic_arith_operand_0): New predicate.
26785 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
26786 Use atomic_arith_operand_0 for input values.
26787 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
26788 atomic_compare_and_swap<mode>_soft_gusa,
26789 atomic_compare_and_swap<mode>_soft_tcb,
26790 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
26791 arith_reg_operand instead of register_operand.
26792 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
26793 atomic_arith_operand_0 for newval input.
26794 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
26795 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
26796 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
26797 arith_reg_operand instead of register_operand.
26798 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
26799 fetchop_predicate_1, fetchop_constraint_1_llcs,
26800 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
26801 fetchop_constraint_1_imask): New code iterator attributes.
26802 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
26803 register_operand. Use fetchop_predicate_1.
26804 (atomic_fetch_<fetchop_name>si_hard,
26805 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
26806 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
26807 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
26808 and arith_reg_operand instead of register_operand. Use
26809 fetchop_predicate_1, fetchop_constraint_1_gusa.
26810 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
26811 and arith_reg_operand instead of register_operand. Use
26812 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
26814 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
26815 and arith_reg_operand instead of register_operand. Use
26816 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
26818 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
26819 register_operand. Use atomic_logical_operand_1.
26820 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
26821 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
26822 arith_reg_operand instead of register_operand.
26823 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
26824 Use arith_reg_dest and arith_reg_operand instead of register_operand.
26825 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
26826 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
26827 register_operand. Use fetchop_predicate_1.
26828 (atomic_<fetchop_name>_fetchsi_hard,
26829 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
26830 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26831 fetchop_constraint_1_llcs.
26832 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
26833 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26834 fetchop_constraint_1_gusa.
26835 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
26836 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26837 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
26838 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
26839 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26840 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
26841 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
26842 register_operand. Use atomic_logical_operand_1.
26843 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
26844 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
26845 arith_reg_operand instead of register_operand.
26846 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
26847 arith_reg_operand instead of register_operand. Use logical_operand
26848 and K08. Adjust asm sequence to allow R0 usage.
26849 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
26850 arith_reg_operand instead of register_operand. Use logical_operand
26853 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26856 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
26857 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
26858 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
26859 only get_full_len HOST_WIDE_INTs from get_val () array rather than
26860 all bits in *val_wide.
26862 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
26864 * varpool.c (tls_model_names): Fix names.
26865 (varpool_node::dump): Dump tls- prefix for tls models.
26867 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
26868 Bernd Schmidt <bernds@codesourcery.com>
26869 Nathan Sidwell <nathan@codesourcery.com>
26871 * config/nvptx/mkoffload.c: New file.
26872 * config/nvptx/t-nvptx: Add build rules for it.
26873 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
26874 (extra_programs): Add mkoffload.
26875 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
26877 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
26879 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
26881 PR middle-end/64809
26882 * cfgexpand.c (reorder_operands): Skip debug gimples.
26884 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
26886 PR tree-optimization/64277
26887 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
26888 range info when possible to refine estimation.
26890 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26892 PR tree-optimization/64718
26893 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
26894 be a 16bit unsigned integer when n->range is 16.
26895 (bswap_replace): Convert src to that type if necessary for all bswap
26896 sizes. Fix rotation right notation in nearby comment. Use bswap_type
26897 set in pass_optimize_bswap::execute ().
26899 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
26901 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
26902 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
26903 integer and floating point variants.
26904 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
26906 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
26908 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
26909 for all vector modes.
26911 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26914 * doc/sourcebuild.texi (comdat_group): Document.
26916 2015-01-28 Terry Guo <terry.guo@arm.com>
26918 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
26920 2015-01-27 David Malcolm <dmalcolm@redhat.com>
26922 * toplev.c (print_version): Add param "show_global_state", and
26923 only print GGC and plugin information if it is true.
26924 (init_asm_output): Pass in "true" for the new param when calling
26926 (process_options): Likewise.
26927 (toplev::main): Likewise.
26928 * toplev.h (print_version): Add new param to decl.
26930 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26934 * tree.c (lookup_binfo_at_offset): New function.
26935 (get_binfo_at_offset): Use it.
26937 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26940 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
26941 on vtable being vtable.
26943 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
26945 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
26946 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
26947 -mhotpatch= option.
26948 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
26949 -mno-hotpatch options. Change syntax of -mhotpatch= option.
26950 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
26952 (s390_hotpatch_trampoline_halfwords_max): Renamed.
26953 (s390_hotpatch_hw_max): New name.
26954 (s390_hotpatch_trampoline_halfwords): Renamed.
26955 (s390_hotpatch_hw_before_label): New name.
26956 (get_hotpatch_attribute): Removed.
26957 (s390_hotpatch_hw_after_label): New name.
26958 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
26960 (s390_attribute_table): Ditto.
26961 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
26962 (s390_function_num_hotpatch_hw): New name.
26963 Remove special handling of inline functions and hotpatching.
26964 Return number of nops before and after the function label.
26965 (s390_can_inline_p): Removed.
26966 (s390_asm_output_function_label): Emit a configurable number of nops
26967 after the function label.
26968 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
26969 (TARGET_CAN_INLINE_P) Removed.
26970 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
26972 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26973 Jiong Wang <jiong.wang@arm.com>
26975 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
26977 (cb<optab><mode>1): Likewise.
26978 * config/aarch64/iterators.md (bcond): New define_code_attr.
26980 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26982 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
26985 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26987 * config/s390/s390.c (s390_register_move_cost): Increase costs for
26990 2015-01-27 Richard Biener <rguenther@suse.de>
26992 * tree-vrp.c (update_value_range): Intersect the range with
26993 old recorded SSA name range information.
26995 2015-01-27 Nick Clifton <nickc@redhat.com>
26997 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
26998 BC, DE and HL registers directly, not via AX.
26999 When decrementing the stack pointer by a large amount, transfer SP
27000 into AX and perform the subtraction there.
27001 (rl78_expand_epilogue): Perform the inverse of the above
27004 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27006 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
27008 2015-01-27 Jakub Jelinek <jakub@redhat.com>
27009 Yury Gribov <y.gribov@samsung.com>
27012 * ubsan.c (ubsan_source_location): Refactor code.
27013 (ubsan_type_descriptor): Update type size. Refactor code.
27015 2015-01-27 Richard Biener <rguenther@suse.de>
27017 PR tree-optimization/56273
27018 PR tree-optimization/59124
27019 PR tree-optimization/64277
27020 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
27021 from the first VRP pass.
27023 2015-01-27 Jakub Jelinek <jakub@redhat.com>
27026 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
27027 handle the first argument in the same loop as all the other arguments.
27029 PR rtl-optimization/61058
27030 * jump.c (cleanup_barriers): Update basic block boundaries
27031 if BLOCK_FOR_INSN is non-NULL on PREV.
27033 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
27035 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
27036 bounds narrowing, already instrumented calls and calls to
27037 not instrumentable functions.
27039 2015-01-27 Jakub Jelinek <jakub@redhat.com>
27041 PR tree-optimization/64807
27042 * wide-int.cc (wi::divmod_internal): Clear
27043 b_dividend[dividend_blocks_needed].
27045 2015-01-26 DJ Delorie <dj@redhat.com>
27047 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
27048 volatile memory references.
27050 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
27053 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
27055 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
27056 shifts if it already fits into K08.
27058 2015-01-26 Jakub Jelinek <jakub@redhat.com>
27061 * ipa-inline.c (inline_small_functions): Print "unknown" even
27062 if edge->call_stmt is non-NULL, but has builtins or unknown
27065 PR middle-end/64421
27066 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
27067 with asterisk, skip the first character.
27069 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
27072 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
27075 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
27078 * config/i386/i386.md (*movdi_internal): Also check operand 0
27079 to determine TYPE_LEA operand.
27080 (*movsi_internal): Ditto.
27082 2015-01-26 Jakub Jelinek <jakub@redhat.com>
27084 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
27085 OPTION_MASK_QUAD_MEMORY_ATOMIC.
27087 2015-01-26 Renlin Li <renlin.li@arm.com>
27089 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
27091 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
27094 2015-01-26 Richard Biener <rguenther@suse.de>
27096 PR middle-end/64764
27097 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
27098 combining two BIT_AND_EXPR predicates.
27100 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
27103 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
27105 2015-01-26 Terry Guo <terry.guo@arm.com>
27107 * config/arm/arm.c (arm_file_start): Update the assignment of
27108 Tag_ABI_HardFP_use.
27110 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
27112 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
27114 config/arm/arm.md: Include the new Cortex-A57 model.
27115 (generic_sched): Don't use generic_sched when tuning for
27118 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
27119 Uros Bizjak <ubizjak@gmail.com>
27121 * config/i386/i386.c (get_builtin_code_for_version): Add
27122 support for BMI and BMI2 multiversion functions.
27124 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27126 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
27127 (extract_bit_field): Likewise.
27128 (extract_low_bits): Likewise.
27129 (expand_mult): Likewise.
27130 (expand_mult_highpart_adjust): Likewise.
27132 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
27134 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
27135 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
27136 * config/i386/i386.c (processor_model): Add
27137 M_INTEL_COREI7_BROADWELL.
27138 (arch_names_table): Add "broadwell".
27140 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
27149 * config/sh/sh-protos.h
27150 (sh_extending_set_of_reg::can_use_as_unextended_reg,
27151 sh_extending_set_of_reg::use_as_unextended_reg,
27152 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
27153 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
27154 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
27155 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
27156 (sh_treg_insns): New class.
27157 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
27158 (scope_counter): New class.
27159 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
27160 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
27161 sh_extending_set_of_reg::can_use_as_unextended_reg,
27162 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
27163 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
27164 sh_split_treg_set_expr): New functions.
27165 (addsubcosts): Handle treg_set_expr.
27166 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
27167 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
27168 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
27169 (sh_insn_operands_modified_between_p): Make non-static.
27170 * config/sh/predicates.md (zero_extend_movu_operand): Allow
27171 simple_mem_operand in addition to displacement_mem_operand.
27172 (zero_extend_operand): Don't allow zero_extend_movu_operand.
27173 (treg_set_expr, treg_set_expr_not_const01,
27174 arith_reg_or_treg_set_expr): New predicates.
27175 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
27176 arith_or_int_operand instead of logical_operand. Convert to
27177 insn_and_split. Try to optimize constant operand in splitter.
27178 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
27179 (*tstqi_t_zero): Delete.
27180 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
27181 (tstsi_t_and_not): Delete.
27182 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
27183 Convert to insn_and_split.
27184 (unnamed split, tstsi_t_zero_extract_xor,
27185 tstsi_t_zero_extract_subreg_xor_little,
27186 tstsi_t_zero_extract_subreg_xor_big): Delete.
27187 (*tstsi_t_shift_mask): New insn_and_split.
27188 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
27189 to recombine with surrounding insns when splitting.
27190 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
27191 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
27192 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
27193 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
27194 (*cbranch_div0s: Delete.
27195 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
27196 Try to recombine with surrounding insns when splitting. Add operand
27198 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
27199 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
27200 *addc_r_r_msb, *addc_2r_msb): Delete.
27201 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
27203 (*addc_negreg_t): New insn_and_split.
27204 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
27205 Try to recombine with surrounding insns when splitting.
27206 Add operand order variants.
27207 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
27208 insn_and_split patterns.
27209 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
27210 surrounding insns when splitting.
27211 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
27212 (*rotcl): Likewise. Add zero_extract variant.
27213 (*ashrsi2_31): New insn_and_split.
27214 (*negc): Convert to insn_and_split. Use treg_set_expr.
27215 (*zero_extend<mode>si2_disp_mem): Update comment.
27216 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
27218 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
27219 with surrounding insns when splitting.
27220 (any_treg_expr_to_reg): New insn_and_split.
27221 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
27222 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
27223 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
27224 *zero_extract_2): New single bit zero extract patterns.
27225 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
27226 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
27227 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
27228 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
27230 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
27231 register_operand for set source.
27233 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
27235 * i386.opt (prefetch_sse): New targetsave.
27236 * i386.c (ix86_function_specific_save): Save prefetch_sse.
27237 (ix86_function_specific_restore): Restore prefetch_sse and initialize
27238 ix86_cost/ix86_tune_cost.
27240 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27242 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
27243 Support the JIT by using 0 as the language type.
27245 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
27248 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
27249 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
27250 (mark_regno_live, process_bb_lives): Pass new parameter value to
27251 make_hard_regno_born.
27253 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27255 PR rtl-optimization/63637
27256 PR rtl-optimization/60663
27257 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
27258 if elt->cost is MAX_COST for ASM_OPERANDS.
27259 (find_sets_in_insn): Fix up comment typo.
27260 (cse_insn): Don't set src_volatile for all non-volatile
27261 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
27262 or with "memory" clobber. Set elt->cost to MAX_COST
27263 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
27264 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
27266 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
27268 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
27271 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
27273 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
27274 libgcc/config/i386/elf-lib.h.
27276 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27279 * gcc.c (print_configuration): Don't print a blank line at the end
27281 (run_attempt): ... but here unstead.
27283 PR middle-end/64734
27284 * omp-low.c (scan_sharing_clauses): Don't ignore
27285 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
27286 on target data/update constructs.
27288 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
27291 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
27292 (DEBUG_RELOAD): Removed define.
27293 (m32c_limit_reload_class): Enable traces with if DEBUG0.
27294 (m32c_function_arg): Added a type cast.
27295 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
27296 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
27297 * config/m32c/bitops.md (andqi3_16): Likewise.
27298 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
27299 (push_a01_l): Likewise.
27301 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27304 * main.c (main): Construct toplev instances with init_signals=true.
27305 * toplev.c (general_init): Add param "init_signals", and use it to
27306 conditionalize the calls to signal and host_hooks.extra_signals.
27307 (toplev::toplev): Add param "init_signals".
27308 (toplev::main): When invoking general_init, pass m_init_signals
27309 to control whether signal-handlers are installed.
27310 * toplev.h (toplev::toplev): Add param "init_signals".
27311 (toplev::m_init_signals): New field.
27313 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27316 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
27317 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
27318 latter may be affected by the former (e.g. on i686).
27320 2015-01-23 Martin Liska <mliska@suse.cz>
27322 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
27323 false positive during profiledbootstrap.
27325 2015-01-23 Tom de Vries <tom@codesourcery.com>
27328 * lto-opts.c (lto_write_options): Output non-explicit conservative
27330 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
27331 (append_compiler_options): Pass -fopenacc through.
27333 2015-01-23 Tom de Vries <tom@codesourcery.com>
27336 * lto-opts.c (lto_write_options): Output non-explicit conservative
27338 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
27339 (append_compiler_options): Pass -fopenmp through.
27341 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27344 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
27347 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
27348 * diagnostic.def (DK_ICE_NOBT): New kind.
27349 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
27350 like DK_ICE, but never print backtrace.
27351 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
27352 (internal_error_no_backtrace): New function.
27353 * gcc.c (execute): Use internal_error_no_backtrace instead of
27356 2015-01-22 Jeff Law <law@redhat.com>
27359 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
27360 improve code density for small immediate to memory case.
27361 (insv): Better handle bitfield assignments when the field is
27362 being set to all ones.
27363 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
27366 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27367 Jakub Jelinek <jakub@redhat.com>
27369 PR middle-end/64729
27370 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
27371 for !TARGET_LIBC_PROVIDES_SSP version and
27372 -fstack-protector-{all,strong,explicit} otherwise.
27373 * config/freebsd.h (LINK_SSP_SPEC): Handle
27374 -fstack-protector-{strong,explicit}.
27376 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
27377 H.J. Lu <hongjiu.lu@intel.com>
27380 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
27383 2015-01-22 Wei Mi <wmi@google.com>
27385 PR rtl-optimization/64557
27386 * dse.c (record_store): Call get_addr for mem_addr.
27387 (check_mem_read_rtx): Likewise.
27389 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
27391 * fold-const.c (const_binop): Add early return for non-tcc_binary.
27393 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
27395 * toplev.c (init_local_tick): Process the failure when read
27396 fails for random_seed.
27398 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
27399 'pretty_name' to avoid memory overflow.
27401 2015-01-22 Richard Biener <rguenther@suse.de>
27403 PR middle-end/64728
27404 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
27405 abnormal coalescing on undefined SSA names.
27407 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
27411 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
27413 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
27415 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
27417 PR middle-end/63325
27418 * fold-const.c (fold_checksum_tree): Don't include value of
27419 expr->decl_with_vis.symtab_node in the checksum.
27421 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27423 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
27425 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
27428 * gcc.c (insert_comments): New function.
27429 (try_generate_repro): Call it.
27430 (append_text): Removed.
27432 2015-01-22 Richard Biener <rguenther@suse.de>
27434 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
27435 with IL incompatible options. Properly honor user optimize
27438 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
27440 PR rtl-optimization/64682
27441 * combine.c (distribute_notes): When moving a death note for
27442 a register that is set in the new I2, make sure to put it
27443 before that new I2.
27445 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
27447 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
27448 not TARGET_DEFAULT.
27450 2015-01-21 Jakub Jelinek <jakub@redhat.com>
27453 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
27454 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
27455 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
27458 * doc/invoke.texi (-fsanitize=vptr): Document.
27460 PR rtl-optimization/62078
27461 * dse.c: Include cfgcleanup.h.
27462 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
27463 anything call purge_all_dead_edges and cleanup_cfg at the end
27466 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
27468 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
27471 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
27473 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
27476 2015-01-21 David Sherwood <david.sherwood@arm.com>
27477 Tejas Belagod <Tejas.Belagod@arm.com>
27479 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
27480 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
27481 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
27484 2015-01-21 David Sherwood <david.sherwood@arm.com>
27485 Tejas Belagod <Tejas.Belagod@arm.com>
27487 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
27488 (aarch64_reverse_mask): New decls.
27489 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
27490 (insn_count): New mode_attr.
27491 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
27492 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
27493 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
27494 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
27495 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
27496 (aarch64_simd_st4): New patterns.
27497 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
27498 (aarch64_reverse_mask): New functions.
27500 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
27502 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
27504 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
27505 addressing modes for BE.
27506 (aarch64_print_operand): Add 'R' specifier.
27507 (aarch64_simd_disambiguate_copy): Delete.
27508 (aarch64_simd_emit_reg_reg_move): New function.
27509 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
27510 in define_splits for structural moves.
27511 (mov<mode>): Use less restrictive predicates.
27512 (*aarch64_mov<mode>): Simplify and only allow for LE.
27513 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
27515 2015-01-21 Alan Hayward <alan.hayward@arm.com>
27517 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
27519 2015-01-21 Richard Henderson <rth@redhat.com>
27522 * ccmp.c (used_in_cond_stmt_p): Remove.
27523 (expand_ccmp_expr): Don't use it.
27525 2015-01-21 Nick Clifton <nickc@redhat.com>
27527 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
27530 2015-01-21 Richard Biener <rguenther@suse.de>
27532 PR middle-end/64313
27533 * tree-core.h (builtin_info, builtin_info_type): Turn from
27534 an object with two arrays into an array of an object with
27535 decl and two flags, implicit_p and declared_p.
27536 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
27537 set_builtin_decl, set_builtin_decl_implicit_p,
27538 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
27539 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
27540 * builtins.c (builtin_info): Adjust.
27541 * gimplify.c (gimplify_addr_expr): References to builtins
27542 that have been declared by the user makes them eligible for
27543 use by the compiler. Call set_builtin_decl_implicit_p on them.
27545 2015-01-20 Jeff Law <law@redhat.com>
27548 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
27549 allow pc-relative addresses in operand predicates or constraints.
27551 2015-01-21 Bin Cheng <bin.cheng@arm.com>
27553 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
27554 neon on aarch32 processors for stringops.
27556 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27559 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
27561 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27564 * ipa-inline.c: Include lto-streamer.h
27565 (report_inline_failed_reason): Output source file differences and
27566 flags on optimization/target node mismatch.
27567 (can_inline_edge_p): Consider caller to be the outer inline function;
27568 be less restrictive about matching opimize and optimize_size attributes.
27569 (inline_account_function_p): Break out from ...
27570 (inline_small_functions): ... here.
27571 * ipa-inline-transform.c (clone_inlined_nodes): Use
27572 inline_account_function_p.
27573 (inline_call): Use optimize attribution; use inline_account_function_p.
27574 (inline_transform): Use opt_for_fn.
27575 * ipa-inline.h (inline_account_function_p): Declare.
27577 2015-01-20 Jakub Jelinek <jakub@redhat.com>
27580 * dwarf2out.c (decl_piece_node): Don't put bitsize into
27581 mode if bitsize <= 0.
27582 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
27583 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
27584 sizes and positions.
27586 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
27588 * config/nios2/nios2.c (nios2_asm_file_end): Implement
27589 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
27591 (TARGET_ASM_FILE_END): Define.
27593 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27595 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
27596 (struct tune_params): Use the enum.
27597 * arm.c (arm_*_tune): Update.
27598 (arm_option_override): Update.
27600 2015-01-20 Richard Biener <rguenther@suse.de>
27603 * ipa-reference.c (add_static_var): Inline ...
27604 (analyze_function): ... here after splitting out from ...
27605 (is_proper_for_analysis): ... this.
27607 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
27610 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
27611 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
27612 replace the conditional with it's true branch.
27613 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
27614 (arm_lra_p): Remove.
27616 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
27618 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
27620 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27622 * config/tilegx/mul-tables.c: Move symtab.h include after
27623 coretypes.h include.
27624 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
27625 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
27626 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
27627 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
27628 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27630 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
27634 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27636 PR rtl-optimization/64081
27637 * loop-iv.c (def_pred_latch_p): New function.
27638 (latch_dominating_def): Allow specific cases with non-single
27640 (iv_get_reaching_def): Likewise.
27641 (check_complex_exit_p): New function.
27642 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27643 with exits not executing on any iteration.
27645 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27648 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
27649 to set branch cost.
27651 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27654 * i386.c (gate): Check flag_expensive_optimizations and
27656 (ix86_option_override_internal): Drop optimize_size condition
27657 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
27658 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
27659 MASK_PREFER_AVX128.
27660 (ix86_avx256_split_vector_move_misalign,
27661 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
27662 * sse.md (all uses of TARGET_PREFER_AVX128): Add
27663 optimize_insn_for_speed_p check.
27665 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
27667 * config/mips/mips.h (FP_ASM_SPEC): New define.
27668 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
27671 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
27674 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
27675 nullptr for insn when reaching the first insn.
27676 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
27677 (sh_insn_operands_modified_between_p): Add nullptr check.
27678 (sh_find_extending_set_of_reg): Fix log message. Don't accept
27679 sign extending mem load if the insn contains any UNSPEC or
27682 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27684 * params.def (inline-unit-growth): Drop to 15%.
27685 * invoke.texi (inline-unit-growth): Document change.
27687 2015-01-19 Martin Liska <mliska@suse.cz>
27690 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
27691 function for second argument of OBJ_TYPE_REF.
27693 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27696 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
27697 whether function is an alias.
27699 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27701 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
27704 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
27706 PR rtl-optimization/64671
27707 * lra-remat.c (operand_to_remat): Don't consider jump and call
27710 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
27713 * config/rs6000/default64.h: Include rs6000-cpus.def.
27714 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
27715 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
27716 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
27718 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
27720 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
27721 pseudo-op to specify assembler dialect.
27723 2015-01-19 Martin Liska <mliska@suse.cz>
27726 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
27727 Handle safe potentially removed nodes during filtering.
27729 2015-01-19 Martin Liska <mliska@suse.cz>
27731 * doc/extend.texi (no_icf): Add new attribute description.
27732 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
27733 where the pass attempts to merge a function with no_icf attribute.
27735 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27738 * doc/md.texi (ARM Options): Document register constraints.
27740 2015-01-19 Jiong Wang <jiong.wang@arm.com>
27741 Andrew Pinski <apinski@cavium.com>
27744 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
27745 (ashl<mode>3): Don't expand if operands[2] is not constant.
27747 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27750 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
27751 Match xor-and-xor RTL pattern.
27753 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27755 PR rtl-optimization/64081
27756 * loop-iv.c (def_pred_latch_p): New function.
27757 (latch_dominating_def): Allow specific cases with non-single
27759 (iv_get_reaching_def): Likewise.
27760 (check_complex_exit_p): New function.
27761 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27762 with exits not executing on any iteration.
27764 2015-01-19 Jakub Jelinek <jakub@redhat.com>
27766 * common.opt (fgraphite): Fix a typo.
27768 2015-01-19 Felix Yang <felix.yang@huawei.com>
27770 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
27772 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
27773 uminp, smax_nanp, smin_nanp): New builtins.
27774 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
27775 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
27776 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
27777 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
27778 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
27779 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
27780 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
27781 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
27782 vpminnms_f32): Rewrite using builtin functions.
27784 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
27787 * omp-low.c (offload_symbol_decl): Remove variable.
27788 (get_offload_symbol_decl): Remove function.
27789 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
27790 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
27791 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
27792 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
27793 BUILT_IN_GOACC_UPDATE don't pass it at all.
27795 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27797 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
27800 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27802 * ipa-chkp.c (chkp_produce_thunks): Add early param
27803 to split thunks production into two passes. Keep
27804 'always_inline' function bodies after the first pass.
27805 (pass_data_ipa_chkp_early_produce_thunks): New.
27806 (pass_ipa_chkp_early_produce_thunks): New.
27807 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
27808 chkp_produce_thunks signature.
27809 (make_pass_ipa_chkp_early_produce_thunks): New.
27810 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
27811 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
27812 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
27814 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27816 * cgraph.c (cgraph_node::dump): Dump profile flags.
27818 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
27821 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
27822 reg appear first in the parallel.
27824 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27826 * ipa-reference.c (set_reference_optimization_summary,
27827 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
27829 (ignore_module_statics): New static var.
27830 (propagate_bits): If ipa-reference is disabled, do not look into local
27832 (analyze_function): Disable analysis when ipa_reference is disabled.
27833 (generate_summary): Do not dump when reference is disabled;
27834 collect vars accessed from functions with ipa-reference disabled.
27835 (get_read_write_all_from_node): When ipa-reference is disabled, use the
27837 (gate): Enable for LTO.
27838 (ignore_edge_p): New function.
27839 (propagate): Skip functions w/o ipa-reference analysis.
27840 * optc-save-gen.awk: Handle optimize_debug correctly.
27841 * opth-gen.awk: Likewise.
27842 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
27843 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
27844 fira-share-save-slots, fira-share-spill-slots,
27845 fmodulo-sched-allow-regmoves, fpartial-inlining,
27846 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
27847 ftracer, ftree-parallelize-loops, fassociative-math,
27848 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
27850 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
27851 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
27853 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
27856 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27859 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
27861 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
27863 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
27865 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
27866 Remove duplicate option listings.
27868 2015-01-18 Felix Yang <felix.yang@huawei.com>
27870 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
27871 (autofdo_source_profile::get_callsite_total_count,
27872 function_instance::get_function_instance_by_decl,
27873 string_table::get_index, string_table::get_index_by_decl,
27874 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
27875 Fix comment typos. Reformatting and minor code rearrangement.
27877 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27879 * config/rs6000/rs6000.md (probe_stack): Delete.
27880 (probe_stack_address): New.
27882 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27884 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
27885 to test for 32-bit ABIs, not !TARGET_POWERPC64.
27887 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27889 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
27890 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
27891 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
27893 (rs6000_libcall_value): Use the new function.
27895 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
27897 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
27899 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
27901 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
27902 implement a more precise life analysis for it during backward scan.
27904 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
27906 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
27908 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
27910 PR rtl-optimization/52773
27911 * calls.c (emit_library_call_value): When pushing arguments use
27912 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
27913 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
27914 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
27916 2015-01-17 Jeff Law <law@redhat.com>
27918 PR rtl-optimization/32790
27919 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
27920 not ZERO_EXTEND in SET_DESTs.
27922 2015-01-17 Alan Modra <amodra@gmail.com>
27924 * cprop.c (do_local_cprop): Revert last change.
27926 2015-01-16 DJ Delorie <dj@redhat.com>
27927 Nick Clifton <nickc@redhat.com>
27929 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
27930 (addhi3_real): Likewise. Fix [HL+0] syntax.
27931 (subqi3_real): Likewise.
27932 (subhi3_real): Likewise.
27933 (cbranchqi4_real): Likewise. Allow saddr,#imm.
27934 (cbranchhi4_real): Likewise.
27935 (cbranchhi4_real_inverted): Likewise.
27936 (cbranchsi4_real_lt): Likewise.
27937 (cbranchsi4_real_ge): Likewise.
27938 (cbranchsi4_real_ge): Likewise.
27939 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
27940 (sub<mode>3_virt): Likewise.
27941 (cbranchqi4_virt): Likewise.
27942 (cbranchhi4_virt): Likewise.
27943 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
27944 always use '[reg+imm]' even when imm is zero.
27945 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
27946 (rl78_general_operand): New.
27947 (rl78_nonimmediate_operand): New.
27948 (rl78_nonfar_operand): Use them.
27949 (rl78_nonfar_nonimm_operand): Likewise.
27950 (rl78_stack_based_mem): Fix.
27951 * config/rl78/constraints.md (Ibqi): New.
27956 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
27957 (iorqi3): Likewise.
27958 (xorqi3): Likewise.
27959 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
27961 * config/rl78/constrains (Qs8): New constraint.
27962 * config/rl78/rl78.c (rl78_flags_already_set): New function.
27963 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
27964 * config/rl78/rl78-real.md (update_Z): New attribute.
27965 Update patterns to set it.
27966 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
27967 shorter compare and branch sequence can be used.
27968 (cbranchhi4_real): Likewise.
27969 (cbranchhi4_real_inverted): Likewise.
27971 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
27972 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
27974 * config/rl78/rl78.c (rl78_get_name_encoding): New.
27975 (rl78_option_override): Allow -mes0 only if C.
27976 (characterize_address): Support subregs of symbol_refs.
27977 (rl78_addr_space_address_mode): Move. Add __near.
27978 (rl78_far_p): Likewise.
27979 (rl78_addr_space_pointer_mode): Likewise.
27980 (rl78_as_legitimate_address): Likewise.
27981 (rl78_addr_space_subset_p): Likewise.
27982 (rl78_addr_space_convert): Likewise.
27983 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
27984 symbols with -mes0.
27985 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
27987 (rl78_alloc_physical_registers_op1): Change logic to prefer
27988 symbol[BC] addressing.
27989 (frodata_section): New.
27990 (rl78_asm_init_sections): Initialize it.
27991 (rl78_select_section): Put __far readonly symbols in .frodata.
27992 (rl78_make_type_far): New.
27993 (rl78_insert_attributes): Force all readonly symbols to be
27995 (rl78_asm_out_integer): New.
27996 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
27997 * config/rl78/rl78.opt (-mes0): New.
27999 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
28000 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
28001 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
28002 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
28003 (rl78_saddr_p): New.
28004 (rl78_output_aligned_common): New.
28005 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
28006 (rl78_handle_saddr_attribute): New.
28007 (rl78_handle_naked_attribute): New.
28008 (rl78_attribute_table): Add saddr.
28009 (rl78_print_operand_1): Don't print '!' on saddr operands.
28010 (rl78_print_operand_1): Strip encodings.
28012 (rl78_strip_name_encoding): New.
28013 (rl78_attrlist_to_encoding): New.
28014 (rl78_encode_section_info): New.
28015 (rl78_asm_init_sections): New.
28016 (rl78_select_section): New.
28017 (rl78_output_labelref): New.
28018 (rl78_output_aligned_common): New.
28019 (rl78_asm_out_integer): New.
28020 (rl78_asm_ctor_dtor): New.
28021 (rl78_asm_constructor): New.
28022 (rl78_asm_destructor): New.
28024 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
28025 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
28026 (transcode_memory_rtx): Update.
28027 (rl78_expand_epilogue): Use A_REG instead of 0.
28029 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28031 * config/arm/arm-protos.h (struct tune_params): New field
28032 sched_autopref_queue_depth.
28033 * config/arm/arm.c (sched-int.h): Include header.
28034 (arm_first_cycle_multipass_dfa_lookahead_guard,)
28035 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
28036 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
28037 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
28038 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
28039 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
28040 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
28041 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
28042 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
28043 * config/arm/t-arm (arm.o): Update.
28044 * haifa-sched.c (update_insn_after_change): Update.
28045 (rank_for_schedule): Use auto-prefetcher model, if requested.
28046 (autopref_multipass_init): New static function.
28047 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
28048 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
28049 variable for debug dumps.
28050 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
28051 (autopref_multipass_dfa_lookahead_guard): New global function that
28052 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
28053 (init_h_i_d): Update.
28054 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
28055 * sched-int.h (enum autopref_multipass_data_status): New const enum.
28056 (autopref_multipass_data_): Structure for auto-prefetcher data.
28057 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
28058 (struct _haifa_insn_data:autopref_multipass_data): New field.
28059 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
28060 (autopref_multipass_dfa_lookahead_guard): Declare.
28062 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28064 * rtlanal.c (get_base_term): Handle SCRATCH.
28066 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28068 * config/aarch64/aarch64.c
28069 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
28070 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
28072 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
28073 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
28075 2015-01-17 Alan Modra <amodra@gmail.com>
28077 * cprop.c (do_local_cprop): Disallow replacement of fixed
28080 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28083 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
28086 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
28088 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
28089 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
28091 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28093 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
28094 * config/arm/thumb1.md: ... Here.
28096 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28098 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
28099 TImode for TARGET_32BIT.
28101 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28103 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
28104 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
28106 (rs6000_abi_word_mode): New function.
28108 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28110 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
28111 instead of UNITS_PER_WORD to describe the size of stack slots.
28113 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28115 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
28116 as rs6000_promote_function_mode. Move comment to there.
28117 (rs6000_promote_function_mode): New function.
28119 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28121 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
28122 -mpowerpc64 is active.
28124 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
28126 PR middle-end/64353
28127 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
28130 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
28132 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
28133 introduced in revision 219724.
28135 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28136 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28139 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
28140 destination is not a GP reg.
28141 (*movdi_aarch64): Likewise.
28143 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
28146 * config/rs6000/default64.h: Revert ISA change.
28148 2015-01-16 Richard Biener <rguenther@suse.de>
28150 PR middle-end/64614
28151 * tree-ssa-uninit.c: Include tree-cfg.h.
28152 (MAX_SWITCH_CASES): New define.
28153 (convert_control_dep_chain_into_preds): Handle switch statements.
28154 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
28155 (normalize_one_pred_1): Do not split bit-manipulations.
28158 2015-01-16 Richard Biener <rguenther@suse.de>
28160 PR tree-optimization/64568
28161 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
28162 complex load rewriting for TARGET_MEM_REFs.
28164 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
28166 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
28168 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
28171 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
28173 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
28174 (aarch64_lra_p): Remove.
28176 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
28179 * ipa-chkp.h (chkp_instrumentable_p): New.
28180 * ipa-chkp.c: Include tree-inline.h.
28181 (chkp_instrumentable_p): New.
28182 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
28183 Fix processing of not instrumentable functions.
28184 (chkp_versioning): Use chkp_instrumentable_p. Warn about
28185 not instrumentable functions.
28186 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
28187 chkp_instrumentable_p.
28188 * tree-inline.h (copy_forbidden): New.
28189 * tree-inline.c (copy_forbidden): Not static anymore.
28191 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28193 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
28196 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
28198 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
28199 type OP_OUT to OP_INOUT.
28201 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
28203 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
28204 (high x) y) to y if x and y have the same base.
28206 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
28208 * config/arm/cortex-a57.md: New.
28209 * config/aarch64/aarch64.md: Include it.
28210 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
28211 * config/aarch64/aarch64-tune.md: Regenerate.
28213 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
28216 * ccmp.c (expand_ccmp_next): New function.
28217 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
28218 and compare insn sequence.
28219 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
28220 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
28221 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
28222 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
28223 (*ccmp_ior): Changed to ccmp_ior<mode>.
28224 (cmp<mode>): New pattern.
28225 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
28227 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
28229 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
28231 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
28232 _mm256_bsrli_epi128): New.
28233 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
28235 2015-01-15 Jiong Wang <jiong.wang@arm.com>
28237 * expmed.c (store_bit_field_using_insv): Improve warning message.
28238 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
28240 2015-01-15 Jiong Wang <jiong.wang@arm.com>
28242 PR rtl-optimization/64011
28243 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
28244 there is partial overflow.
28246 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28248 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
28250 (nds32_expand_epilogue_v3pop): Likewise.
28251 * config/nds32/nds32.md (sibcall): Define this for sibling call
28253 (sibcall_register): Likewise.
28254 (sibcall_immediate): Likewise.
28255 (sibcall_value): Likewise.
28256 (sibcall_value_register): Likewise.
28257 (sibcall_value_immediate): Likewise.
28258 (sibcall_epilogue): Likewise.
28259 (epilogue): Pass false to indicate this is not a sibcall epilogue.
28260 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
28261 (nds32_expand_epilogue_v3pop): Likewise.
28263 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28265 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
28266 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
28267 (return_internal): New.
28268 (return): Define this named pattern.
28269 (simple_return): Define this named pattern.
28270 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
28271 pattern instead of unspec_volatile_func_return.
28272 (nds32_expand_epilogue_v3pop): Likewise.
28273 (nds32_can_use_return_insn): New function.
28275 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28277 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
28278 * config/nds32/nds32.md (pop25return): New.
28279 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
28280 pop25return pattern.
28282 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28284 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
28285 -mforbid-fp-as-gp, and -mex9 options.
28287 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28289 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
28290 remove -mgp-direct option.
28292 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28294 * doc/invoke.texi (--param early-inlining-insns): Update default value.
28295 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
28297 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28299 * ipa-inline.c (inline_small_functions): Work around hints
28302 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
28305 * doc/invoke.texi (Option Summary): Document new Nios II
28307 (Nios II Options): Likewise.
28308 * config/nios2/nios2.opt: Add -mgpopt= option support.
28309 Modify existing -mgpopt and -mno-gpopt options to be aliases.
28310 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
28311 * config/nios2/nios2.c (nios2_option_override): Adjust
28312 -mgpopt defaulting.
28313 (nios2_in_small_data_p): Return true for explicit small data
28314 sections even with -G0.
28315 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
28318 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28321 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
28323 (inline_call): Fix removal of aliases.
28325 2015-01-15 Jakub Jelinek <jakub@redhat.com>
28327 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
28328 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
28329 * opts.c (common_handle_option): Add -fsanitize=vptr.
28330 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
28331 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
28332 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
28333 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
28334 (ubsan_expand_vptr_ifn): New prototype.
28335 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
28336 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
28337 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
28338 expand_LOOP_VECTORIZED): Make argument nameless, remove
28340 (expand_UBSAN_VPTR): New function.
28341 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
28343 (UBSAN_VPTR): New internal function.
28344 * sanopt.c (tree_map_traits): Renamed to ...
28345 (sanopt_tree_map_traits): ... this.
28346 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
28347 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
28348 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
28349 (maybe_optimize_ubsan_vptr_ifn): New function.
28350 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
28351 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
28353 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
28354 internal calls like pure functions for aliasing, even when they
28355 have other side-effects that prevent making them ECF_PURE.
28356 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
28357 (ubsan_expand_vptr_ifn): New function.
28359 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
28361 PR rtl-optimization/64110
28362 * stmt.c (parse_output_constraint): Process '^' and '$'.
28363 (parse_input_constraint): Ditto.
28364 * lra-constraints.c (process_alt_operands): Process the new
28366 * ira-costs.c (record_reg_classes): Process the new constraint
28368 * genoutput.c (indep_constraints): Add '^' and '$'.
28369 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
28370 * doc/md.texi: Add description of the new constraints.
28372 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
28373 Bernd Schmidt <bernds@codesourcery.com>
28374 Cesar Philippidis <cesar@codesourcery.com>
28375 James Norris <jnorris@codesourcery.com>
28376 Tom de Vries <tom@codesourcery.com>
28377 Ilmir Usmanov <i.usmanov@samsung.com>
28378 Dmitry Bocharnikov <dmitry.b@samsung.com>
28379 Evgeny Gavrin <e.gavrin@samsung.com>
28380 Jakub Jelinek <jakub@redhat.com>
28382 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
28383 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28384 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28385 New function types.
28386 * builtins.c: Include "gomp-constants.h".
28387 (expand_builtin_acc_on_device): New function.
28388 (expand_builtin, is_inexpensive_builtin): Handle
28389 BUILT_IN_ACC_ON_DEVICE.
28390 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
28392 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
28394 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
28395 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
28396 i386/intelmic-offload.h.
28397 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
28398 to libgomp and its dependencies.
28399 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
28400 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28401 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28402 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28403 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28404 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28405 * doc/generic.texi: Update for OpenACC changes.
28406 * doc/gimple.texi: Likewise.
28407 * doc/invoke.texi: Likewise.
28408 * doc/sourcebuild.texi: Likewise.
28409 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
28410 GF_OMP_FOR_KIND_OACC_LOOP.
28411 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
28412 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
28413 GF_OMP_TARGET_KIND_OACC_UPDATE,
28414 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
28416 * gimple.c: Update comments for OpenACC changes.
28417 * gimple.def: Likewise.
28418 * gimple.h: Likewise.
28419 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
28420 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
28421 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
28422 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
28423 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
28425 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
28426 * gimplify.c: Include "gomp-constants.h".
28427 Update comments for OpenACC changes.
28428 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
28429 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
28430 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
28431 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
28432 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
28433 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
28434 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
28435 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
28436 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
28438 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
28439 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
28440 OMP_CLAUSE_SET_MAP_KIND.
28441 (gimplify_oacc_cache): New function.
28442 (gimplify_omp_for): Handle OACC_LOOP.
28443 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
28445 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
28446 OACC_EXIT_DATA, OACC_UPDATE.
28447 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
28448 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
28449 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
28450 (gimplify_body): Consider flag_openacc next to flag_openmp.
28451 * lto-streamer-out.c: Include "gomp-constants.h".
28452 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
28453 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
28454 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
28455 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
28456 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
28457 (BUILT_IN_ACC_ON_DEVICE): New builtins.
28458 * omp-low.c: Include "gomp-constants.h".
28459 Update comments for OpenACC changes.
28460 (struct omp_context): Add reduction_map, gwv_below, gwv_this
28462 (extract_omp_for_data, use_pointer_for_field, install_var_field)
28463 (new_omp_context, delete_omp_context, scan_sharing_clauses)
28464 (create_omp_child_function, scan_omp_for, scan_omp_target)
28465 (check_omp_nesting_restrictions, lower_reduction_clauses)
28466 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
28467 Update for OpenACC changes.
28468 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
28469 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
28470 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
28471 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
28472 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
28473 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
28475 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
28476 Handle GF_OMP_FOR_KIND_OACC_LOOP.
28477 (expand_omp_target, lower_omp_target): Handle
28478 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
28479 GF_OMP_TARGET_KIND_OACC_UPDATE,
28480 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
28481 GF_OMP_TARGET_KIND_OACC_DATA.
28482 (pass_expand_omp::execute, execute_lower_omp)
28483 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
28485 (offload_symbol_decl): New variable.
28486 (oacc_get_reduction_array_id, oacc_max_threads)
28487 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
28488 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
28489 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
28490 (oacc_gimple_assign, oacc_initialize_reduction_data)
28491 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
28493 (is_targetreg_ctx): Remove function.
28494 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
28495 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
28496 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
28497 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
28498 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
28499 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
28500 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
28501 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
28502 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
28503 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
28504 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
28505 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
28506 * tree-core.h: Update comments for OpenACC changes.
28507 (enum omp_clause_map_kind): Remove.
28508 (struct tree_omp_clause): Change type of map_kind member from enum
28509 omp_clause_map_kind to unsigned char.
28510 * tree-inline.c: Update comments for OpenACC changes.
28511 * tree-nested.c: Likewise. Include "gomp-constants.h".
28512 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
28513 (convert_tramp_reference_stmt, convert_gimple_call): Update for
28514 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
28515 OMP_CLAUSE_SET_MAP_KIND.
28516 * tree-pretty-print.c: Include "gomp-constants.h".
28517 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
28518 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
28519 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
28520 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
28521 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
28522 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
28523 instead of OMP_CLAUSE_MAP_*.
28524 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
28525 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
28526 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
28527 * tree-streamer-in.c: Include "gomp-constants.h".
28528 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
28529 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
28530 * tree-streamer-out.c: Include "gomp-constants.h".
28531 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
28533 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
28534 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
28535 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
28536 * tree.c (omp_clause_num_ops): Update accordingly.
28537 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
28539 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
28540 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
28541 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
28542 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
28543 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
28544 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
28545 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
28546 (OMP_CLAUSE_SET_MAP_KIND): New macro.
28547 * varpool.c (varpool_node::get_create): Consider flag_openacc next
28549 * config/i386/intelmic-offload.h: New file.
28550 * config/nvptx/offload.h: Likewise.
28552 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28554 * explow.h: Remove duplicate contents.
28555 * dojump.h: Likewise.
28557 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
28559 * arm.c (arm_xgene_tune): Add default initializer for instruction
28562 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28566 * ipa.c (symbol_table::remove_unreachable_nodes):
28567 Do not put abstract origins into boundary.
28569 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
28571 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
28572 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
28574 2015-01-15 Steve Ellcey <sellcey@mips.com>
28576 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
28577 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
28578 builtins.def, and chkp-builtins.def.
28580 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
28582 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
28585 2015-01-15 Richard Biener <rguenther@suse.de>
28587 PR tree-optimization/61743
28588 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
28589 information on PHIs for some simple cases.
28591 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28593 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
28595 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
28596 * config/arm/arm-cores.def (xgene1): New entry.
28597 * config/arm/arm-tables.opt: Regenerate.
28598 * config/arm/arm-tune.md: Regenerate.
28599 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
28601 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
28603 * tree-if-conv.c: Include hash-map.h.
28604 (aggressive_if_conv): New variable.
28605 (fold_build_cond_expr): Add simplification of non-zero condition.
28606 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
28607 destination block is not always executed.
28608 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
28609 than two predecessors if AGGRESSIVE_IF_CONV is true.
28610 (if_convertible_stmt_p): Fix commentary.
28611 (all_preds_critical_p): New function.
28612 (has_pred_critical_p): New function.
28613 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
28614 BB can have more than two predecessors and all incoming edges can be
28616 (predicate_bbs): Skip predication for loop exit block, use build2_loc
28617 to compute predicate for true edge.
28618 (find_phi_replacement_condition): Delete this function.
28619 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
28620 Allow interchange PHI arguments if EXTENDED is false.
28621 Change check that block containing reduction statement candidate
28622 is predecessor of phi-block since phi may have more than two arguments.
28623 (phi_args_hash_traits): New helper structure.
28624 (struct phi_args_hash_traits): New type.
28625 (phi_args_hash_traits::hash): New function.
28626 (phi_args_hash_traits::equal_keys): New function.
28627 (gen_phi_arg_condition): New function.
28628 (predicate_scalar_phi): Add handling of phi nodes with more than two
28629 arguments, delete COND and TRUE_BB arguments, insert body of
28630 find_phi_replacement_condition to predicate ordinary phi nodes.
28631 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
28632 delete call of find_phi_replacement_condition and invoke
28633 predicate_scalar_phi with two arguments.
28634 (insert_gimplified_predicates): Add assert that non-predicated block
28635 don't have statements to insert.
28636 (ifcvt_split_critical_edges): New function.
28637 (ifcvt_split_def_stmt): Likewise.
28638 (ifcvt_walk_pattern_tree): Likewise.
28639 (stmt_is_root_of_bool_pattern): Likewise.
28640 (ifcvt_repair_bool_pattern): Likewise.
28641 (ifcvt_local_dce): Likewise.
28642 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
28643 is copy of inner or outer loop force_vectorize field, invoke
28644 ifcvt_split_critical_edges, ifcvt_local_dce and
28645 ifcvt_repair_bool_pattern for aggressive if-conversion.
28647 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
28649 * config/aarch64/aarch64.md: Include xgene1.md.
28650 * config/aarch64/xgene1.md: New file.
28652 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28654 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
28655 xgene1 (APM XGene-1) core definition.
28656 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
28657 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
28658 * doc/invoke.texi: Document -mcpu=xgene1.
28660 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28662 * dojump.h: New header file.
28663 * explow.h: Likewise.
28664 * expr.h: Remove includes.
28665 Move expmed.c prototypes to expmed.h.
28666 Move dojump.c prototypes to dojump.h.
28667 Move alias.c prototypes to alias.h.
28668 Move explow.c prototypes to explow.h.
28669 Move calls.c prototypes to calls.h.
28670 Move emit-rtl.c prototypes to emit-rtl.h.
28671 Move varasm.c prototypes to varasm.h.
28672 Move stmt.c prototypes to stmt.h.
28673 (saved_pending_stack_adjust): Move to dojump.h.
28674 (adjust_address): Move to explow.h.
28675 (adjust_address_nv): Move to emit-rtl.h.
28676 (adjust_bitfield_address): Likewise.
28677 (adjust_bitfield_address_size): Likewise.
28678 (adjust_bitfield_address_nv): Likewise.
28679 (adjust_automodify_address_nv): Likewise.
28680 * explow.c (expr_size): Move to expr.c.
28681 (int_expr_size): Likewise.
28682 (tree_expr_size): Likewise.
28683 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28684 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28685 * genemit.c (main): Generate includes statistics.h, real.h,
28686 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
28688 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
28689 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
28690 explow.h, emit-rtl.h, stmt.h.
28691 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
28692 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
28693 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
28694 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
28695 emit-rtl.h, varasm.h, stmt.h.
28696 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
28697 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
28698 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
28699 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
28700 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
28701 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
28702 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
28703 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
28704 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
28705 tm.h tree.h varasm.h vec.h wide-int.h.
28706 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28707 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28708 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
28709 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
28710 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
28711 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
28712 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
28713 * loop-iv.c: Likewise.
28714 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
28715 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
28716 statistics.h stmt.h tree.h varasm.h wide-int.h.
28717 * lra-constraints.c: Likewise.
28718 * lra-eliminations.c: Likewise.
28719 * lra-lives.c: Likewise.
28720 * lra-remat.c: Likewise.
28721 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28722 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
28723 statistics.h stmt.h tree.h varasm.h wide-int.h.
28724 * hw-doloop.c: Likewise.
28725 * ira-color.c: Likewise.
28726 * ira-emit.c: Likewise.
28727 * loop-doloop.c: Likewise.
28728 * loop-invariant.c: Likewise.
28729 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28730 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
28731 statistics.h stmt.h tree.h varasm.h wide-int.h.
28732 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
28733 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
28734 statistics.h stmt.h tree.h varasm.h wide-int.h.
28735 * combine-stack-adj.c: Likewise.
28738 * ifcvt.c: Likewise.
28739 * ira-costs.c: Likewise.
28740 * jump.c: Likewise.
28741 * lra-coalesce.c: Likewise.
28742 * lra-spills.c: Likewise.
28743 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28744 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
28745 stmt.h varasm.h wide-int.h.
28746 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28747 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28749 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
28750 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
28751 statistics.h stmt.h varasm.h wide-int.h.
28752 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
28753 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
28754 varasm.h wide-int.h.
28755 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
28756 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28757 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
28758 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
28759 statistics.h stmt.h.
28760 * config/tilepro/tilepro.c: Likewise.
28761 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
28762 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
28763 * config/pdp11/pdp11.c: Likewise.
28764 * config/xtensa/xtensa.c: Likewise.
28765 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
28766 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28768 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28769 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28770 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
28771 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28772 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28773 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
28774 * rtl-chkp.c: Likewise.
28775 * tree-chkp-opt.c: Likewise.
28776 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
28777 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28778 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
28779 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28780 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28781 statistics.h stmt.h.
28782 * tree-vect-data-refs.c: Likewise.
28783 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
28784 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28785 rtl.h statistics.h stmt.h varasm.h.
28786 * internal-fn.c: Likewise.
28787 * ipa-icf-gimple.c: Likewise.
28788 * lto-section-out.c: Likewise.
28789 * tree-data-ref.c: Likewise.
28790 * tree-nested.c: Likewise.
28791 * tree-outof-ssa.c: Likewise.
28792 * tree-predcom.c: Likewise.
28793 * tree-pretty-print.c: Likewise.
28794 * tree-scalar-evolution.c: Likewise.
28795 * tree-ssa-strlen.c: Likewise.
28796 * tree-vect-loop.c: Likewise.
28797 * tree-vect-patterns.c: Likewise.
28798 * tree-vect-slp.c: Likewise.
28799 * tree-vect-stmts.c: Likewise.
28800 * tsan.c: Likewise.
28801 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28802 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
28804 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
28805 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28806 statistics.h stmt.h varasm.h.
28807 * loop-unroll.c: Likewise.
28808 * ubsan.c: Likewise.
28809 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
28810 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
28812 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28813 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
28814 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
28815 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28816 statistics.h stmt.h.
28817 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
28818 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28819 statistics.h stmt.h varasm.h.
28820 * gimple-match-head.c: Likewise.
28821 * lto-cgraph.c: Likewise.
28822 * lto-section-in.c: Likewise.
28823 * lto-streamer-in.c: Likewise.
28824 * lto-streamer-out.c: Likewise.
28825 * tree-affine.c: Likewise.
28826 * tree-cfg.c: Likewise.
28827 * tree-cfgcleanup.c: Likewise.
28828 * tree-if-conv.c: Likewise.
28829 * tree-into-ssa.c: Likewise.
28830 * tree-ssa-alias.c: Likewise.
28831 * tree-ssa-copyrename.c: Likewise.
28832 * tree-ssa-dse.c: Likewise.
28833 * tree-ssa-forwprop.c: Likewise.
28834 * tree-ssa-live.c: Likewise.
28835 * tree-ssa-math-opts.c: Likewise.
28836 * tree-ssa-pre.c: Likewise.
28837 * tree-ssa-sccvn.c: Likewise.
28838 * tree-tailcall.c: Likewise.
28839 * tree-vect-generic.c: Likewise.
28840 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28841 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
28842 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28843 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
28844 * varasm.c: Likewise.
28845 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28846 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
28848 * init-regs.c: Likewise.
28850 * omp-low.c: Likewise.
28851 * stack-ptr-mod.c: Likewise.
28852 * tree-ssa-reassoc.c: Likewise.
28853 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28854 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
28856 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28857 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
28858 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28859 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
28860 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28861 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
28862 * tree-ssa-phiopt.c: Likewise.
28863 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28864 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28865 * config/fr30/fr30.c: Likewise.
28866 * config/frv/frv.c: Likewise.
28867 * expr.c: Likewise.
28868 * final.c: Likewise.
28869 * optabs.c: Likewise.
28870 * passes.c: Likewise.
28871 * simplify-rtx.c: Likewise.
28872 * stmt.c: Likewise.
28873 * toplev.c: Likewise.
28874 * var-tracking.c: Likewise.
28875 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28876 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28877 * lower-subreg.c: Likewise.
28878 * postreload-gcse.c: Likewise.
28880 * reginfo.c: Likewise.
28881 * store-motion.c: Likewise.
28882 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28883 fixed-value.h hashtab.h real.h stmt.h varasm.h.
28884 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28885 fixed-value.h hashtab.h statistics.h stmt.h.
28886 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28887 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28888 * except.c: Likewise.
28889 * explow.c: Likewise.
28890 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28891 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
28893 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28894 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
28895 * tree-ssa-structalias.c: Likewise.
28896 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28897 fixed-value.h insn-config.h real.h statistics.h.
28898 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28899 fixed-value.h insn-config.h real.h statistics.h stmt.h.
28900 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28901 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28902 * cfgbuild.c: Likewise.
28903 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28904 fixed-value.h real.h rtl.h statistics.h stmt.h.
28905 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28906 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28907 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28908 fixed-value.h real.h statistics.h stmt.h.
28909 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28910 fixed-value.h real.h statistics.h stmt.h varasm.h.
28911 * cprop.c: Likewise.
28912 * modulo-sched.c: Likewise.
28913 * postreload.c: Likewise.
28914 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28915 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
28916 statistics.h stmt.h varasm.h.
28917 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
28918 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28919 rtl.h statistics.h stmt.h varasm.h.
28920 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
28921 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
28923 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28924 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
28926 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
28927 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
28929 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
28930 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28931 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28932 function.h real.h statistics.h stmt.h varasm.h.
28933 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28934 insn-config.h real.h statistics.h stmt.h.
28935 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28936 statistics.h stmt.h.
28937 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
28938 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
28939 statistics.h stmt.h varasm.h.
28940 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
28941 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
28942 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28943 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
28944 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
28945 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28946 statistics.h stmt.h varasm.h.
28947 * ipa-polymorphic-call.c: Likewise.
28948 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
28949 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28950 statistics.h stmt.h.
28951 * config/c6x/c6x.c: Likewise.
28952 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
28953 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28954 statistics.h stmt.h varasm.h.
28955 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
28956 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
28958 * ipa-split.c: Likewise.
28959 * tree-eh.c: Likewise.
28960 * tree-ssa-dce.c: Likewise.
28961 * tree-ssa-loop-niter.c: Likewise.
28962 * tree-vrp.c: Likewise.
28963 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
28964 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
28966 * config/nds32/nds32-fp-as-gp.c: Likewise.
28967 * config/nds32/nds32-intrinsic.c: Likewise.
28968 * config/nds32/nds32-isr.c: Likewise.
28969 * config/nds32/nds32-md-auxiliary.c: Likewise.
28970 * config/nds32/nds32-memory-manipulation.c: Likewise.
28971 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
28972 * config/nds32/nds32-predicates.c: Likewise.
28973 * config/nds32/nds32.c: Likewise.
28974 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
28975 fixed-value.h hashtab.h real.h statistics.h.
28976 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
28977 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28978 * config/arm/arm.c: Likewise.
28979 * config/avr/avr.c: Likewise.
28980 * config/bfin/bfin.c: Likewise.
28981 * config/h8300/h8300.c: Likewise.
28982 * config/i386/i386.c: Likewise.
28983 * config/ia64/ia64.c: Likewise.
28984 * config/iq2000/iq2000.c: Likewise.
28985 * config/m32c/m32c.c: Likewise.
28986 * config/m32r/m32r.c: Likewise.
28987 * config/m68k/m68k.c: Likewise.
28988 * config/mcore/mcore.c: Likewise.
28989 * config/mep/mep.c: Likewise.
28990 * config/mips/mips.c: Likewise.
28991 * config/mn10300/mn10300.c: Likewise.
28992 * config/moxie/moxie.c: Likewise.
28993 * config/pa/pa.c: Likewise.
28994 * config/rl78/rl78.c: Likewise.
28995 * config/rx/rx.c: Likewise.
28996 * config/s390/s390.c: Likewise.
28997 * config/sh/sh.c: Likewise.
28998 * config/sparc/sparc.c: Likewise.
28999 * config/spu/spu.c: Likewise.
29000 * config/stormy16/stormy16.c: Likewise.
29001 * config/v850/v850.c: Likewise.
29002 * config/vax/vax.c: Likewise.
29003 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
29004 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
29005 * config/msp430/msp430.c: Likewise.
29006 * predict.c: Likewise.
29007 * value-prof.c: Likewise.
29008 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
29009 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
29010 * config/microblaze/microblaze.c: Likewise.
29011 * config/nios2/nios2.c: Likewise.
29012 * config/rs6000/rs6000.c: Likewise.
29013 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
29014 insn-config.h real.h rtl.h statistics.h stmt.h.
29015 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
29016 insn-config.h real.h statistics.h stmt.h.
29017 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
29018 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
29019 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
29020 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
29021 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
29022 fixed-value.h real.h statistics.h stmt.h.
29023 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
29024 fixed-value.h statistics.h stmt.h.
29025 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
29028 2015-01-15 Jakub Jelinek <jakub@redhat.com>
29030 * gengtype.c (create_user_defined_type): Workaround
29031 -Wmaybe-uninitialized false positives.
29032 * cse.c (fold_rtx): Likewise.
29033 * loop-invariant.c (gain_for_invariant): Likewise.
29035 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
29037 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
29038 set the memory attributes in all cases but clear MEM_EXPR if need be.
29040 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
29042 PR tree-optimization/64434
29043 * cfgexpand.c (reorder_operands): New function.
29044 (expand_gimple_basic_block): Insert call of reorder_operands if
29047 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
29049 * config/mips/micromips.md (*swp): Remove explicit parallel.
29050 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
29051 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
29052 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
29053 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
29054 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
29055 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
29056 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
29057 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
29058 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
29059 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
29060 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
29061 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
29062 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
29063 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
29064 (mips_wrdsp): Likewise.
29065 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
29067 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
29068 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
29069 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
29070 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
29071 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
29072 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
29073 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
29074 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
29075 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
29077 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
29079 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
29080 (mips_print_operand): Support 'y' to print exact log2 in decimal
29082 * config/mips/mips.h (ISA_HAS_LSA): New define.
29083 (ISA_HAS_DLSA): Likewise.
29084 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
29085 * config/mips/predicates.md (const_immlsa_operand): New predicate.
29087 2015-01-15 Martin Liska <mliska@suse.cz>
29090 * optc-save-gen.awk: Add support for array types.
29092 2015-01-15 Richard Biener <rguenther@suse.de>
29094 PR middle-end/64365
29095 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
29096 for MEM_REF access functions with the same base can never partially
29099 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
29101 * common.opt: New option -fstack-protector-explicit.
29102 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
29103 (stack_protect_decl_phase): Handle stack_protect attribute for
29104 explicit stack protection requests.
29105 (expand_used_vars): Similarly.
29106 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
29107 * doc/extend.texi: Add documentation for "stack_protect" attribute.
29108 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
29110 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
29113 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
29115 (sh_extending_set_of_reg): New struct.
29116 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
29117 sh_remove_reg_dead_or_unused_notes): New Declarations.
29118 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
29119 sh_find_extending_set_of_reg, sh_split_tst_subregs,
29120 sh_extending_set_of_reg::use_as_extended_reg): New functions.
29121 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
29122 convert to insn_and_split and use new function sh_split_tst_subregs.
29124 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
29126 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
29128 (Optimization Options): Move -fuse-ld documentation to...
29129 (Link Options): ...here.
29131 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
29133 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
29135 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
29136 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
29137 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
29138 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
29139 instead of ZR for the memory operand of LL/SC.
29140 (compare_and_swap_12, sync_add<mode>): Likewise.
29141 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
29142 (sync_new_<optab>_12, sync_nand_12): Likewise.
29143 (sync_old_nand_12, sync_new_nand_12): Likewise.
29144 (sync_sub<mode>, sync_old_add<mode>): Likewise.
29145 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
29146 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
29147 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
29148 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
29149 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
29150 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
29151 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
29152 * doc/md.texi (ZC): Update description.
29154 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
29156 * builtins.c (expand_builtin_atomic_exchange): Remove error when
29157 memory model is CONSUME.
29158 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
29159 expand_builtin_atomic_store): Change invalid memory model errors to
29161 (expand_builtin_atomic_clear): Change invalid model errors to warnings
29162 and issue warning for CONSUME.
29164 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
29166 * lto-cgraph: Update function comments for
29167 lto_symtab_encoder_encode_*.
29169 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
29171 * Makefile.in (site.exp): Do not set ENABLE_LTO.
29173 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
29175 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
29176 * lto-cgraph.c (select_what_to_stream): Remove argument, use
29177 lto_stream_offload_p instead.
29178 * lto-streamer.h (select_what_to_stream): Remove argument.
29179 * passes.c (ipa_write_summaries): Likewise.
29180 * tree-pass.h (ipa_write_summaries): Likewise.
29182 2015-01-14 Richard Biener <rguenther@suse.de>
29184 PR tree-optimization/59354
29185 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
29186 groups larger than the slp group size as having gaps.
29188 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
29190 PR middle-end/59448
29191 * builtins.c (get_memmodel): Promote consume to acquire always.
29193 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
29196 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
29199 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
29202 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
29204 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
29205 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
29206 AVX512VBMI, as it implies AVX512BW.
29208 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
29211 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
29212 (vec_unpacks_hi_v16sf): Ditto.
29214 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29216 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
29219 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29221 * doc/invoke.texi (mapcs): Mention deprecation.
29222 (mapcs-frame): Likewise.
29224 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
29227 * config/arm/arm.c (callee_saved_reg_p): Define.
29228 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
29229 register is callee saved instead of !call_used_regs[reg].
29230 (thumb1_compute_save_reg_mask): Likewise.
29232 2015-01-14 Hale Wang <hale.wang@arm.com>
29234 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
29237 2015-01-14 Richard Biener <rguenther@suse.de>
29240 * tree-inline.c (insert_debug_decl_map): Check destination
29241 function MAY_HAVE_DEBUG_STMTS.
29242 (insert_init_debug_bind): Likewise.
29243 (insert_init_stmt): Remove redundant check.
29244 (remap_gimple_stmt): Drop debug stmts if the destination
29245 function has var-tracking assignments disabled.
29247 2015-01-14 Martin Liska <mliska@suse.cz>
29249 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
29250 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
29252 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29255 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
29256 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
29258 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
29260 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
29261 level from an ARCH; do not inject the default.
29262 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
29263 MIPS_ISA_LEVEL_SPEC.
29264 (MIPS_ISA_NAN2008_SPEC): Update comment.
29265 (BASE_DRIVER_SELF_SPECS): Likewise.
29266 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
29267 MIPS_DEFAULT_ISA_LEVEL_SPEC.
29268 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
29269 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
29270 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
29272 2015-01-14 Richard Biener <rguenther@suse.de>
29274 PR tree-optimization/64493
29275 PR tree-optimization/64495
29276 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
29277 assign the proper vectorized PHI to the inner loop exit PHIs.
29279 2015-01-14 Joey Ye <joey.ye@arm.com>
29281 * config/arm/arm.c (arm_compute_save_reg_mask):
29282 Do not save lr in case of tail call.
29283 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
29285 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
29287 * tree-vrp.c (check_array_ref): Emit more warnings
29288 for warn_array_bounds >= 2.
29289 * common.opt: New option -Warray-bounds=.
29290 * doc/invoke.texi: Document -Warray-bounds=.
29292 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
29294 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
29295 (mforbid-fp-as-gp): Remove.
29297 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
29298 (nds32_symbol_load_store_p): Remove.
29299 (nds32_fp_as_gp_check_available): Clean up implementation.
29300 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
29302 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
29303 fp-as-gp and ex9 cases.
29305 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29307 * tree-profile.c (init_ic_make_global_vars): Drop workaround
29308 for bintuils bug 14342.
29309 (init_ic_make_global_vars): Likewise.
29310 (gimple_init_edge_profiler): Likewise.
29311 (gimple_gen_ic_func_profiler): Likewise.
29313 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29315 * ipa-inline.c (inline_small_functions): Swap the operands in
29318 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29321 * ipa-inline-analysis.c (node_growth_cache): Remove.
29322 (initialize_growth_caches): Do not initialize it.
29323 (free_growth_caches): Do not free it.
29324 (do_estimate_growth): Rename to ...
29325 (estimate_growth): ... this one; drop growth cache code.
29326 (growth_likely_positive): Always go the heuristics way.
29327 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
29328 (reset_edge_caches): Do not reset node growth.
29329 (heap_edge_removal_hook): Do not maintain cache.
29330 (inline_small_functions): Likewise; strenghten sanity check.
29331 (ipa_inline): Do not maintain caches.
29332 * ipa-inline.h (node_growth_cache): Remove.
29333 (do_estimate_growth): Remove to ...
29334 (estimate_growth): this one; remove inline version.
29335 (reset_node_growth_cache): Remove.
29337 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29340 * ipa-inline.c (inline_small_functions): Update callee keys after
29341 resolving speculation
29342 (inline_small_functions): Always check monotonicity of the queue.
29344 2015-01-13 Marek Polacek <polacek@redhat.com>
29346 PR middle-end/64391
29347 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
29349 2015-01-13 Jakub Jelinek <jakub@redhat.com>
29351 PR rtl-optimization/64286
29352 * ree.c (combine_reaching_defs): Move part of comment earlier,
29353 remove !SCALAR_INT_MODE_P check.
29354 (add_removable_extension): Don't add vector mode
29355 extensions if all uses of the source register aren't the same
29358 2015-01-13 Renlin Li <renlin.li@arm.com>
29360 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
29361 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
29363 2015-01-13 Martin Liska <mliska@suse.cz>
29365 * ipa-icf.c (sem_function::equals_private): Call new functions
29366 cl_target_option_print_diff and cl_optimization_print_diff.
29367 * optc-save-gen.awk (cl_target_option_print_diff): New function.
29368 (cl_optimization_print_diff): Likewise.
29369 * opth-gen.awk: Likewise.
29371 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
29373 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
29374 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
29375 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
29376 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
29377 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
29378 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
29380 2015-01-13 Andrew Pinski <apinski@cavium.com>
29382 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
29383 instead of src mode.
29385 2015-01-13 Richard Biener <rguenther@suse.de>
29388 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
29391 2015-01-13 Andrew Pinski <apinski@cavium.com>
29393 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
29395 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
29397 2015-01-13 Jakub Jelinek <jakub@redhat.com>
29399 PR middle-end/63974
29400 * cfgexpand.c (expand_computed_goto): Don't call
29401 convert_memory_address here.
29403 2015-01-13 Richard Biener <rguenther@suse.de>
29405 PR tree-optimization/64406
29406 * tree-loop-distibution.c (pass_loop_distribution::execute):
29407 Reset the SCEV hashtable if we distributed anything.
29409 2015-01-13 Richard Biener <rguenther@suse.de>
29411 PR tree-optimization/64404
29412 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
29413 SLP types for CSEd loads.
29415 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29417 PR tree-optimization/64436
29418 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
29419 merge of two symbolic numbers for a bitwise OR to ...
29420 (perform_symbolic_merge): This. Also fix computation of the range and
29421 end of the symbolic number corresponding to the result of a bitwise OR.
29423 2015-01-13 Richard Biener <rguenther@suse.de>
29425 PR tree-optimization/64568
29426 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
29427 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
29429 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29431 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
29432 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
29434 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29436 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
29437 target-specific symbol_ref flag.
29438 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
29439 resides in rodata section.
29440 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
29441 (nds32_encode_section_info): New function.
29443 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29445 * config/nds32/nds32.md (call): Use pseudo instruction bal which
29446 clobbers TA_REGNUM if large code model is specified.
29447 (call_register): Likewise.
29448 (call_immediate): Likewise.
29449 (call_value): Likewise.
29450 (call_value_register): Likewise.
29451 (call_value_immediate): Likewise.
29453 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29455 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
29456 (TARGET_CMODEL_MEDIUM): New macro.
29457 (TARGET_CMODEL_LARGE): New macro.
29458 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
29459 code model setting in assembly code.
29461 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29463 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29464 Remove MASK_GP_DIRECT flag.
29465 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
29466 one of the multilib default options.
29467 * config/nds32/nds32.opt (mgp-direct): Remove.
29468 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
29469 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
29471 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29473 * config/nds32/nds32.opt (mcmodel): Add new option.
29474 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
29475 to describe code model.
29477 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
29480 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
29482 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
29484 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
29485 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
29486 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
29487 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
29488 __builtin_sh_set_fpscr.
29490 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
29492 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
29493 after a funtion name just to indicate it is a function.
29494 ([-fsanitize-undefined-trap-on-error]): Likewise.
29495 ([-fdbg-cnt=]): Likewise.
29496 ([-mmemcpy]): Likewise.
29497 ([-mflush-func]): Likewise.
29498 ([-msynci]): Likewise.
29500 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
29502 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
29505 2015-01-12 Jakub Jelinek <jakub@redhat.com>
29507 PR tree-optimization/64563
29508 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
29509 instead of != VR_VARYING.
29512 * config/i386/i386.c (ix86_expand_prologue): Add
29513 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
29515 PR tree-optimization/64454
29516 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
29517 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
29518 for signed or [0, op1 - 1] for unsigned modulo.
29519 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
29520 even if op1 does not satisfy integer_pow2p.
29523 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
29525 2015-01-12 Jeff Law <law@redhat.com>
29528 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
29529 (trunchiqi2, truncsihi2): Similarly.
29531 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
29532 rather than calling F.
29534 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
29536 * tsan.c (instrument_expr): Use force_gimple_operand.
29537 Use may_be_nonaddressable_p instead of is_gimple_addressable.
29539 2015-01-12 Richard Biener <rguenther@suse.de>
29541 PR tree-optimization/64530
29542 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
29545 2015-01-12 Richard Biener <rguenther@suse.de>
29547 PR middle-end/64357
29548 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
29551 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29553 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
29554 Cortex-A17 tuning parameters.
29555 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
29557 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29559 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
29560 * config/arm/arm.c (arm_macro_fusion_p): New function.
29561 (arm_macro_fusion_pair_p): Likewise.
29562 (TARGET_SCHED_MACRO_FUSION_P): Define.
29563 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
29564 (ARM_FUSE_NOTHING): Likewise.
29565 (ARM_FUSE_MOVW_MOVT): Likewise.
29566 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
29567 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
29568 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
29569 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
29570 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
29571 arm_cortex_a5_tune): Specify fuseable_ops value.
29573 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
29576 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
29577 test for PIE with copy reloc.
29578 * configure: Regenerated.
29580 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29582 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
29584 (arm_tls_descseq_addr): Likewise.
29585 (arm_gen_movmemqi): Likewise.
29586 (arm_expand_epilogue_apcs_frame): Likewise.
29587 (arm_expand_epilogue): Likewise.
29588 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
29591 2015-01-12 Martin Liska <mliska@suse.cz>
29594 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
29595 volatility for correct operands.
29597 2015-01-12 Martin Liska <mliska@suse.cz>
29599 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
29600 indication that a function is not leaf.
29601 (sem_function::compare_polymorphic_p): Likewise.
29603 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29605 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
29606 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
29607 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
29608 fold-const.h, tree-check.h.
29610 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29614 * ipa-inline.c (compute_uninlined_call_time,
29615 compute_inlined_call_time): Use counts for extra precision when
29617 (big_speedup_p): Fix formating.
29618 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
29619 (relative_time_benefit): Remove.
29620 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
29621 merge guessed and read profile paths.
29622 (inline_small_functions): Count only !optimize_size functions into
29623 initial size; be more lax about sanity check when profile is used;
29624 be sure to update inlined function profile when profile is read.
29626 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29629 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
29630 cost when edge becomes direct.
29631 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
29632 is resolved or when introducing new speculation.
29634 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
29638 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
29639 '||' to fix typo issue.
29641 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
29642 accept and return NULL.
29644 2015-01-12 Martin Liska <mliska@suse.cz>
29646 * cgraph.c (cgraph_edge::remove_callee): Move function to header
29647 file for being inlined.
29648 (cgraph_set_edge_callee): Delete.
29649 (cgraph_edge::redirect_callee): Move function to header file
29651 (cgraph_edge::make_direct): Use new function.
29652 (cgraph_edge::dump_edge_flags): New function created from
29653 static dump_edge_flags function.
29654 (cgraph_node::dump): Use new function.
29655 (cgraph_edge::verify_count_and_frequency): New function created
29656 from verify_edge_count_and_frequency.
29657 (cgraph_edge::verify_corresponds_to_fndecl): New function created
29658 from verify_edge_corresponds_to_fndecl.
29659 (verify_edge_corresponds_to_fndecl): Delete.
29660 (cgraph_node::verify_node): Use new function.
29661 * cgraph.h (cgraph_edge::set_callee): New function.
29662 (cgraph_edge::dump_edge_flags): Likewise.
29663 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
29665 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
29667 * ipa-utils.c (estimate_function_body_sizes): Do not
29668 free node params when called late with early=true.
29670 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
29672 * doc/md.texi (Instruction Patterns): Rewrite text for
29674 (Example): Likewise.
29676 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
29678 * doc/invoke.texi (Option Summary): Break long lines.
29679 [(-fdiagnostics-color)]: Put long literal in @smallexample
29681 [(-fsanitize-recover)]: Likewise.
29682 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
29683 [(-ffast-math)]: Likewise.
29684 [(--param max-inline-insns-recursive)]: Likewise.
29685 [(--param max-inline-recursive-depth)]: Likewise.
29686 [(-mno-text-section-literals)]: Likewise.
29688 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
29690 * doc/install.texi: Update for libgomp being renamed from "GNU
29691 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
29693 * doc/sourcebuild.texi: Likewise.
29695 2015-01-10 Anthony Green <green@moxielogic.com>
29697 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
29698 mul.x availability for moxiebox configuration.
29700 2015-01-09 Anthony Green <green@moxielogic.com>
29702 * config/moxie/moxie.md: Tabify assembly output.
29704 2015-01-09 Anthony Green <green@moxielogic.com>
29706 * config/moxie/moxie.md (CC_REG): Correct register definition.
29708 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
29710 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
29711 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
29714 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29716 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
29718 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
29719 Jakub Jelinek <jakub@redhat.com>
29721 PR middle-end/64412
29722 * lto-streamer.h (lto_stream_offload_p): New declaration.
29723 * lto-streamer.c (lto_stream_offload_p): New variable.
29724 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
29725 at the same time as section_name_prefix.
29726 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
29727 if lto_stream_offload_p.
29728 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
29729 stream TREE_TARGET_OPTION if lto_stream_offload_p.
29730 (write_ts_function_decl_tree_pointers): Don't
29731 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
29732 * tree-streamer-in.c (unpack_value_fields): Don't stream
29733 TREE_TARGET_OPTION in if ACCEL_COMPILER.
29734 (lto_input_ts_function_decl_tree_pointers): Don't stream
29735 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
29736 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
29737 instead of section_name_prefix string comparisons.
29739 2015-01-09 Jakub Jelinek <jakub@redhat.com>
29741 PR rtl-optimization/64536
29742 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
29745 2015-01-09 Michael Collison <michael.collison@linaro.org>
29747 PR tree-optimization/64322
29748 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
29749 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
29751 2015-01-09 Tom de Vries <tom@codesourcery.com>
29753 PR rtl-optimization/64539
29754 * regcprop.c (kill_clobbered_values): Factor out of ...
29755 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
29756 instead of note_stores with kill_clobbered_value.
29758 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29760 * ginclude/unwind-arm-common.h: Revert previous commit.
29762 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29764 * config.gcc (arm*-*-freebsd*): New configuration.
29765 * config/arm/freebsd.h: New file.
29766 * config.host: Add extra components for arm*-*-freebsd*.
29767 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
29768 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
29770 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29772 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
29774 * config/rs6000/t-rtems: Add e6500 multilibs.
29776 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29778 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
29781 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29783 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
29784 MULTILIB_EXCEPTIONS.
29786 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29788 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
29789 MULTILIB_EXCEPTIONS.
29791 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29793 * config/arm/t-rtems-eabi: Rename to...
29794 * config/arm/t-rtems: ...this.
29795 * config/arm/rtems-eabi.h: Rename to...
29796 * config/arm/rtems.h: ...this.
29797 * config.gcc (arm*-*-rtems*): Reflect changes above.
29799 2015-01-09 Richard Biener <rguenther@suse.de>
29801 PR tree-optimization/64410
29802 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
29804 (execute_update_addresses_taken): Deal with that.
29805 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
29806 loads/stores for complex variables.
29808 2015-01-09 Martin Liska <mliska@suse.cz>
29810 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
29812 (func_checker::compare_memory_operand): New function.
29813 (func_checker::compare_operand): Split case to newly
29815 (func_checker::compare_cst_or_decl): New function.
29816 (func_checker::compare_gimple_call): Identify
29818 (func_checker::compare_gimple_assign): Likewise.
29819 * ipa-icf-gimple.h: New function.
29821 2015-01-09 Martin Liska <mliska@suse.cz>
29824 * sreal.c (sreal::dump): Change unsigned format to signed for
29826 (sreal::to_double): Replace exp2 with scalbln.
29828 2015-01-09 Martin Liska <mliska@suse.cz>
29830 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
29831 * ipa-icf.c (sem_function::equals_private): Add support for target and
29832 (sem_item_optimizer::merge_classes): Remove redundant function
29833 optimization flags comparison.
29834 * tree.h (target_opts_for_fn): New function.
29836 2015-01-09 Tom de Vries <tom@codesourcery.com>
29838 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
29840 2015-01-09 Kito Cheng <kito@0xlab.org>
29842 PR rtl-optimization/64348
29843 * lra-constraints.c (split_reg): Fix caller-save store/restore
29844 instruction generation.
29846 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
29848 PR gcov-profile/61790
29849 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
29850 long long. Fallback to int64_t if host doesn't have long long and
29851 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
29853 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29855 PR tree-optimization/63989
29856 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
29857 from 1000 to 10000.
29858 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
29859 (get_stridx): If we don't have a record for certain SSA_NAME,
29860 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
29861 constant offset, call get_stridx_plus_constant.
29862 (get_stridx_plus_constant): New function.
29863 (zero_length_string): Don't use get_stridx here.
29866 PR middle-end/64388
29867 * dse.c (struct insn_info): Mention frame_read set also
29868 before reload for tail calls on some targets.
29869 (scan_insn): Revert 2014-12-22 change. Set frame_read
29870 also before reload for tail calls if
29871 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
29872 instead of add_non_frame_wild_read for non-const/memset
29873 tail calls after reload.
29875 2015-01-08 Jason Merrill <jason@redhat.com>
29877 * ubsan.c (do_ubsan_in_current_function): New.
29878 (pass_ubsan::gate): Use it.
29879 * ubsan.h: Declare it.
29880 * convert.c (convert_to_integer): Use it.
29882 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29885 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
29886 compare_code when it is unconditionally overwritten afterwards.
29887 Use ix86_reverse_condition instead of reverse_condition. Don't
29888 change code if *reverse_condition* returned UNKNOWN and don't
29889 swap ct/cf and negate diff in that case.
29891 2015-01-08 Mike Stump <mikestump@comcast.net>
29893 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
29894 (pass_tsan_O0::gate): Likewise.
29895 * extend.texi (Function Attributes): Add no_sanitize_thread
29898 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
29900 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
29901 for registering builtins.
29902 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
29903 add -fopenmp to the argv_obstack used when invoking
29904 compile_for_target.
29906 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
29907 add "-m32" or "-m64" to argv_obstack.
29908 (generate_host_descr_file): Likewise, when invoking host_compiler.
29909 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
29912 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29914 * config/sh/sh-mem.cc: Use constant as second operand when emitting
29917 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29920 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
29921 constant load if constant operand fits into I08.
29923 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29926 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
29927 and TREE_THIS_VOLATILE for MEM_REFs.
29928 (build5_stat): Fix up initialization of TREE_READONLY and
29929 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
29931 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
29934 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
29935 of r for the second alternative of the destination operand.
29937 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
29940 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
29942 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29944 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
29946 ([-fivar-visibility], [-fvisibility]): Likewise.
29948 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29950 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
29951 the file where @code, @command, etc is more appropriate.
29953 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
29955 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
29956 of -mrecip= documentation.
29958 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29961 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
29962 correct reload handler if -m32 -mpowerpc64 is used.
29964 2015-01-06 Tom de Vries <tom@codesourcery.com>
29966 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
29968 2015-01-08 Christian Bruel <christian.bruel@st.com>
29971 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
29973 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
29975 PR tree-optimization/63259
29976 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
29977 if optab exists for 16bit byteswap.
29979 2015-01-06 Jakub Jelinek <jakub@redhat.com>
29981 * opts.c (common_handle_option): Add support for
29982 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
29983 * doc/invoke.texi: Document -fno-sanitize=all,
29984 -f{,no-}sanitize-recover=all. Document that
29985 -fsanitize=float-cast-overflow is not enabled
29986 by -fsanitize=undefined. Fix up documentation
29987 of -f{,no-}sanitize-recover.
29989 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
29991 * config.gcc: Add Visium support.
29992 * configure.ac: Likewise.
29993 * configure: Regenerate.
29994 * doc/extend.texi (interrupt attribute): Add Visium.
29995 * doc/invoke.texi: Document Visium options.
29996 * doc/install.texi: Document Visium target.
29997 * doc/md.texi: Document Visium constraints.
29998 * common/config/visium: New directory.
29999 * config/visium: Likewise.
30001 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
30003 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
30004 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
30006 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
30008 * combine.c (combine_validate_cost): Do not count the cost of a
30009 split I2 twice. Do not display it twice in the dump, either.
30011 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
30013 Revert parts of r219199.
30014 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
30016 ([-Wtraditional]): Restore markup on <limits.h>.
30018 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
30021 * doc/invoke.texi: Document -Wsuggest-override.
30023 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
30025 PR rtl-optimization/64287
30026 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
30027 (process_options): Disable flag_ipa_ra if profiling.
30029 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
30031 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
30033 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
30035 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
30036 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
30037 put under #if TARGET_LOOPS guard.
30039 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
30041 * config/i386/i386.c (output_387_binary_op): Use std::swap.
30043 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
30045 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
30046 * rtl.h (refers_to_regno_p): Add overload.
30048 * bt-load.c: Likewise.
30049 * combine.c: Likewise.
30050 * df-scan.c: Likewise.
30051 * sched-deps.c: Likewise.
30052 * config/s390/s390.c: Likewise.
30053 * config/m32r/m32r.c: Likewise.
30054 * config/rs6000/spe.md: Likewise.
30055 * config/rs6000/rs6000.c: Likewise.
30056 * config/pa/pa.c: Likewise.
30057 * config/stormy16/stormy16.c: Likewise.
30058 * config/cris/cris.c: Likewise.
30059 * config/arc/arc.md: Likewise.
30060 * config/arc/arc.c: Likewise.
30061 * config/sh/sh.md: Likewise.
30062 * config/sh/sh.c: Likewise.
30063 * config/frv/frv.c: Likewise.
30065 2015-01-05 Jakub Jelinek <jakub@redhat.com>
30068 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
30069 call as cleanup of the whole body.
30070 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
30071 * tsan.c (replace_func_exit): New function.
30072 (instrument_func_exit): Moved earlier.
30073 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
30074 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
30076 (tsan_pass): Don't call instrument_func_exit.
30077 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
30078 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
30082 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
30083 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
30084 it to libubsan handler instead of EXPR. Fold comparisons earlier,
30085 if the result is integer_zerop, return NULL_TREE.
30086 * convert.c (convert_to_integer): Pass expr as ARG.
30088 PR tree-optimization/64465
30089 * tree-inline.c (redirect_all_calls): During inlining
30090 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
30091 changed the stmt to a non-throwing call.
30093 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
30095 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
30096 etc markup throughout the file.
30098 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
30100 Enable experimental TSAN support for Ada.
30101 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
30103 2015-01-05 Jakub Jelinek <jakub@redhat.com>
30105 PR tree-optimization/64494
30106 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
30107 clear SSA_NAME_ANTI_RANGE_P flag.
30109 2015-01-05 Marek Polacek <polacek@redhat.com>
30111 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
30113 2015-01-05 Jakub Jelinek <jakub@redhat.com>
30115 Update copyright years.
30117 * gcc.c (process_command): Update copyright notice dates.
30118 * gcov-dump.c: Ditto.
30120 * doc/cpp.texi: Bump @copying's copyright year.
30121 * doc/cppinternals.texi: Ditto.
30122 * doc/gcc.texi: Ditto.
30123 * doc/gccint.texi: Ditto.
30124 * doc/gcov.texi: Ditto.
30125 * doc/install.texi: Ditto.
30126 * doc/invoke.texi: Ditto.
30128 * auto-profile.c, auto-profile.h: Fix up Copyright line.
30130 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
30132 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
30134 ([-fvtable-verify], [-fvtv-debug]): Likewise.
30135 ([-Wabi]): Likewise.
30136 ([-fmessage-length]): Likewise.
30137 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
30138 ([-Wno-discarded-qualifiers]): Likewise.
30139 ([-Wnodiscarded-array-qualifiers]): Likewise.
30140 ([-Wno-virtual-move-assign]): Likewise.
30141 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
30142 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
30143 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
30144 ([-fsanitize-undefined-trap-on-error]): Likewise.
30145 ([-floop-interchange]): Likewise.
30146 ([-ftree-coalesce-inlined-vars]): Likewise.
30147 ([-fvect-cost-model]): Likewise.
30148 ([-flto]): Likewise.
30149 ([--param]): Likewise.
30150 (Spec Files): Likewise.
30151 ([-mstrict-align]): Likewise.
30152 ([-mfix-cortex-a53-835769]): Likewise.
30153 ([-march], [-mtune]): Likewise.
30154 ([-mpic-register]): Likewise.
30155 ([-munaligned-access]): Likewise.
30156 ([-msp8]): Likewise.
30157 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
30158 (AVR Built-in Macros): Likewise.
30159 ([-mpreferred-stack-boundary]): Likewise.
30160 ([-mtune-crtl]): Likewise.
30161 ([-mashf]): Likewise.
30162 ([-mmcu=]): Likewise.
30163 ([-minrt]): Likewise.
30164 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
30165 ([-mupper-regs]): Likewise.
30166 ([-matomic-model]): Likewise.
30167 ([-mdiv]): Likewise.
30168 ([-mzdcbranch]): Likewise.
30169 ([-mdisable-callt]): Likewise.
30170 ([-msoft-float]): Likewise.
30171 ([-m8byte-align]): Likewise.
30172 ([-fstack-reuse]): Likewise.
30174 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
30176 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
30177 Fix markup, light copy-editing.
30178 ([-fauto-profile]): Rewrite to fix formatting and content
30181 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
30183 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
30184 Copy-edit description.
30185 ([-fisolate-erroneous-paths-attribute]): Likewise.
30186 * common.opt (fisolate-erroneous-paths-dereference):
30187 Copy-edit description.
30188 (fisolate-erroneous-paths-attribute): Likewise.
30190 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
30192 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
30195 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
30197 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
30198 ([-fvtv-debug]): Likewise.
30199 ([-Wc++-compat]): Likewise.
30200 ([-Wc++11-compat]): Likewise.
30201 ([-Wc++14-compat]): Likewise.
30202 ([-Wno-sized-deallocation]): Likewise.
30203 ([-femit-class-debug-always]): Likewise.
30204 ([-femit-struct-debug-detailed]): Likewise.
30205 ([-fno-keep-inline-dllexport]): Likewise.
30206 ([-fira-algorithm]): Likewise.
30207 ([-fira-region]): Likewise.
30208 ([-flra-remat]): Likewise.
30209 ([-fipa-ra]): Likewise.
30210 ([-fhoist-adjacent-loads]): Likewise.
30211 ([-fisolate-erroneous-paths-dereference]): Likewise.
30212 ([-fisolate-erroneous-paths-attribute]): Likewise.
30213 ([-ftree-switch-conversion]): Likewise.
30214 ([-ftree-tail-merge]): Likewise.
30215 ([-ftree-loop-if-convert]): Likewise.
30216 ([-ftree-loop-if-convert-stores]): Likewise.
30217 ([-ftree-loop-distribution]): Likewise.
30218 ([-ftree-loop-distribute-patterns]): Likewise.
30219 ([-flto-compression-level]): Likewise.
30220 ([-flto-report]): Likewise.
30221 ([-flto-report-wpa]): Likewise.
30222 ([-fuse-linker-plugin]): Likewise.
30223 ([-mfix-cortex-a53-835769]): Likewise.
30224 ([-mno-fix-cortex-a53-835769]): Likewise.
30225 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
30226 explicit listing; add a note to the discussion indicating they
30227 exist. Reorder table to group similar options. Add missing
30228 @opindex entries. Add @need commands throughout the table to
30229 allow it to be split across multiple pages.
30230 ([-m8bit-idiv]): Fix @opindex.
30231 ([-mavx256-split-unaligned-load]): Likewise.
30232 ([-mavx256-split-unaligned-store]): Likewise.
30233 ([-mstack-protector-guard]): Likewise.
30234 ([-mcpu=]): Likewise.
30235 ([-mcpu]): Likewise.
30236 ([-mpointer-size=]): Likewise.
30238 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
30240 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
30241 instead of `m' constraint. Likewise for unnamed movb comparison
30242 patterns using reg_before_reload_operand predicate.
30243 * config/pa/predicates.md (reg_before_reload_operand): Tighten
30244 predicate to reject register index and LO_SUM DLT memory forms
30247 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
30249 * doc/invoke.texi (Option Summary): Fix spelling of
30250 -fdevirtualize-at-ltrans.
30251 ([-fdevirtualize]): Fix markup.
30252 ([-fdevirtualize-speculatively]): Fix typo.
30253 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
30254 implementor-speaky.
30255 * common.opt (fdevirtualize-at-ltrans): Likewise.
30256 * ipa-devirt.c: Fix typos in comments throughout the file.
30257 (ipa_devirt): Fix typos in format strings for dump output.
30259 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
30261 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
30262 discussion of defaults, light copy-editing.
30264 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
30266 * tsan.c (instrument_expr): corrected previous checkin.
30268 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
30270 Instrument bit field and unaligned accesses for TSAN.
30271 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
30272 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
30273 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
30274 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
30275 unaligned memory regions.
30277 2015-01-01 Anthony Green <green@moxielogic.com>
30279 * config/moxie/predicates.md (moxie_general_movsrc_operand):
30280 Restrict move source register offsets to 16 bits.
30282 Copyright (C) 2015 Free Software Foundation, Inc.
30284 Copying and distribution of this file, with or without modification,
30285 are permitted in any medium without royalty provided the copyright
30286 notice and this notice are preserved.