1 2015-10-02 Jeff Law <law@redhat.com>
3 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
6 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
9 * config/nvptx/mkoffload.c (main): Scan the argument vector for
10 -fopenmp, and skip generating an offloading image if specified.
12 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
14 * system.h (ROUND_UP): New macro definition.
16 * ggc-page.c (ROUND_UP): Remove local macro definition.
17 (PAGE_ALIGN): Implement using ROUND_UP macro.
19 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
20 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
22 (ix86_compute_frame_layout): Ditto.
23 (ix86_expand_prologue): Ditto.
24 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
26 (expand_set_or_movmem_via_rep): Ditto.
28 2015-10-02 Marek Polacek <polacek@redhat.com>
30 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
32 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
34 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
35 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
36 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
37 (free_gimple_bb): Renamed free_gimple_poly_bb.
38 (try_generate_gimple_bb): Hoist loop invariant code.
39 (analyze_drs_in_stmts): Same.
40 (build_scop_drs): Call renamed functions.
41 (new_pbb_from_pbb): Same.
42 (scop_ivs_can_be_represented): Delete as functionality now moved to
43 graphite-scop-detection.c
44 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
46 2015-10-02 Aditya Kumar <hiraditya@msn.com>
48 * graphite-scop-detection.c (stmt_has_side_effects): New function
49 outlined from stmt_simple_for_scop_p.
50 (graphite_can_represent_stmt): Same.
51 (stmt_simple_for_scop_p): Moved code out of this function for better
54 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
55 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
57 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
59 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
61 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
63 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
65 PR rtl-optimization/67756
66 * lra-constraints.c (match_reload): Add a new parameter. Use it
67 for creating a pseudo with the same value.
68 (curr_insn_transform): Pass a new argument to match_reload.
70 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
72 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
73 (expand_vec_perm_even_odd_1): Handle V64QImode.
74 (ix86_expand_vec_perm_const_1): Try expansion with
75 expand_vec_perm_even_odd_trunc as well.
76 * config/i386/sse.md (VI124_AVX512F): Rename to ...
77 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
79 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
80 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
82 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
83 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
84 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
85 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
86 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
87 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
89 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
91 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
92 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
94 2015-10-02 Jason Merrill <jason@redhat.com>
97 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
98 (diagnose_tm_1_op): Also diagnose volatile accesses in
99 transaction_safe function.
101 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
103 * system.h (malloc.h): Don't include obsolete header.
105 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
107 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
108 (TLS_SECTION_ASM_FLAG): Delete.
110 2015-10-02 Marek Polacek <polacek@redhat.com>
113 * doc/invoke.texi: Document -Wduplicated-cond.
114 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
115 (insn-dfatab.o): Likewise.
116 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
119 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
121 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
124 2015-10-02 Renlin Li <renlin.li@arm.com>
126 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
128 2015-10-02 Renlin Li <renlin.li@arm.com>
131 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
133 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
135 PR rtl-optimization/67786
136 PR rtl-optimization/67787
137 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
138 it modifies a reg used in the condition calculation.
140 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
142 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
143 alternatives for reads from memory and moves from general-purpose
145 (*aarch64_combinez_be<mode>): Likewise.
147 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
150 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
151 selectany within this function without need to keep attribute.
152 (i386_pe_encode_section_info): Remove selectany-code.
154 2015-10-02 Richard Biener <rguenther@suse.de>
156 * tree-ssa-sccvn.c (has_VN_INFO): New function.
157 (free_scc_vn): Use it.
158 (visit_use): Remove dead code and refactor to use gassign
159 and use less indentation.
161 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
165 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
166 (rs6000_cannot_copy_insn_p): New function.
167 * config/rs6000/rs6000.md (cannot_copy): New attribute.
168 (load_toc_v4_PIC_1_normal): Set cannot_copy.
169 (load_toc_v4_PIC_1_476): Ditto.
171 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
173 * graphite-scop-detection.c (struct sese_l): New conversion constructor
174 so that this type can be pushed into a vec.
175 (class scop_builder): use sese_l to collect scops.
176 (get_scops): New getter function.
177 (remove_intersecting_scops): Use sese_l instead of scops_p.
181 (remove_subscops): Same.
182 (build_scops): Add scops to vec<scops_p> once all the scops have been
185 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
187 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
188 Renamed type from gimple_bb_p to gimple_poly_bb_p.
189 (translate_isl_ast_node_user): Same.
190 * graphite-poly.c (new_poly_bb): Same.
191 * graphite-poly.h (gbb_from_bb): Same.
193 * graphite-sese-to-poly.c (new_gimple_bb): gimple_bb_p -> gimple_poly_bb_p
194 (build_scop_scattering): Same.
195 (find_params_in_bb): Same.
196 (add_conditions_to_domain): Same.
197 (sese_dom_walker::before_dom_children): Same.
198 (analyze_drs_in_stmts): Same.
199 (new_pbb_from_pbb): Same.
200 (free_data_refs_aux): New pointer to type base_alias_pair.
201 * graphite-sese-to-poly.h: Same.
202 * sese.c (if_region_set_false_region): Fixed Indentation.
203 (move_sese_in_condition): Same.
205 2015-10-01 Sebastian Pop <s.pop@samsung.com>
206 Aditya Kumar <aditya.k7@samsung.com>
208 PR tree-optimization/66980
209 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
210 when data reference analysis has failed.
212 2015-10-01 Sebastian Pop <s.pop@samsung.com>
213 Aditya Kumar <aditya.k7@samsung.com>
215 PR tree-optimization/67754
216 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
217 scev analysis on the same loop nest as analyze_drs_in_stmts.
218 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
220 (try_generate_gimple_bb): Call outermost_loop_in_sese.
221 (analyze_drs_in_stmts): Same.
222 * sese.c (outermost_loop_in_sese): ...here.
224 2015-10-01 Sebastian Pop <s.pop@samsung.com>
225 Aditya Kumar <aditya.k7@samsung.com>
227 PR tree-optimization/67754
228 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
229 recursion on the inner loops.
231 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
233 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
234 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
235 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
236 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
237 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
239 2015-10-01 Marek Polacek <polacek@redhat.com>
242 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
243 create_tmp_var_raw rather than create_tmp_var.
245 2015-10-01 Marek Polacek <polacek@redhat.com>
247 PR tree-optimization/67769
248 * tree-ssa-phiopt.c (conditional_replacement): Call
249 reset_flow_sensitive_info_in_bb.
250 (minmax_replacement): Likewise.
251 (abs_replacement): Likewise.
253 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
255 * builtins.c: Don't include gomp-constants.h.
256 (fold_builtin_1): Don't fold acc_on_device here.
257 * gimple-fold.c: Include gomp-constants.h.
258 (gimple_fold_builtin_acc_on_device): New.
259 (gimple_fold_builtin): Call it.
261 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
263 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
264 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
266 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
268 * config/arm/aarch-common-protos.h
269 (aarch_accumulator_forwarding): New.
270 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
271 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
272 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
273 * config/arm/cortex-a53.md: Rewrite.
275 2015-10-01 Richard Biener <rguenther@suse.de>
277 * gimple-match.h (mprts_hook): Declare.
278 * gimple-match.head.c (mprts_hook): Define.
279 (maybe_push_res_to_seq): Use new hook.
280 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
281 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
282 (vn_ssa_aux::has_constants): Remove.
283 * tree-ssa-sccvn.c: Include gimple-match.h.
284 (VN_INFO_GET): Assert we don't re-use SSA names.
285 (vn_get_expr_for): Remove.
286 (expr_has_constants): Likewise.
287 (stmt_has_constants): Likewise.
288 (simplify_binary_expression): Likewise.
289 (simplify_unary_expression): Likewise.
290 (vn_lookup_simplify_result): New hook.
291 (visit_copy): Adjust.
292 (visit_reference_op_call): Likewise.
293 (visit_phi): Likewise.
294 (visit_use): Likewise.
295 (process_scc): Likewise.
296 (init_scc_vn): Likewise.
297 (visit_reference_op_load): Likewise. Use match-and-simplify and
298 a gimple seq for inserted expressions.
299 (try_to_simplify): Remove GENERIC stmt combining code.
300 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
301 * tree-ssa-pre.c (eliminate_insert): Adjust.
302 (eliminate_dom_walker::before_dom_children): Likewise.
304 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
306 * doc/invoke.texi (Optimization Options): Add
307 -freorder-blocks-algorithm=.
308 (Optimize Options) <-O>: Add -freorder-blocks.
309 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
310 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
311 <-freorder-blocks>: Also enabled at levels -O and -Os.
312 <-freorder-blocks-algorithm=>: Document new option.
314 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
316 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
317 with flag_reorder_blocks_algorithm.
318 * common.opt (freorder-blocks-algorithm=): New flag.
319 (reorder_blocks_algorithm): New enum.
320 * flag-types.h (reorder_blocks_algorithm): New enum.
321 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
322 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
324 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
326 * bb-reorder.c: Add intro comment.
327 (reorder_basic_blocks_software_trace_cache): Print a header to
329 (edge_order): New function.
330 (reorder_basic_blocks_simple): New function.
331 (reorder_basic_blocks): Choose between the STC and the simple
332 algorithms (always choose the former).
334 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
336 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
337 function, factored out from ...
338 (reorder_basic_blocks): ... here.
340 2015-10-01 Tom de Vries <tom@codesourcery.com>
342 * tree-cfg.c (dump_function_to_file): Dump function attributes using
343 __attribute__(()) string. Move dumping of function attributes to before
346 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
349 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
350 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
351 based on gold linker version.
352 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
353 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
354 * configure, config.in: Regenerate.
356 2015-10-01 Alan Modra <amodra@gmail.com>
358 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
359 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
360 (rs6000_output_mi_thunk): Likewise.
362 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
364 * config/nvptx/mkoffload.c (process): Change offload data format.
366 2015-09-30 Jeff Law <law@redhat.com>
368 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
369 with constant conditions.
370 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
371 (remove_ctrl_stmt_and_useless_edges): No longer static.
372 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
373 (remove_ctrl_stmt_and_useless_edges): Likewise.
375 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
376 Cesar Philippidis <cesar@codesourcery.com>
378 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
379 (TARGET_GOACC_VALIDATE_DIMS): Override.
380 * target.def (TARGET_GOACC): New target hook prefix.
381 (validate_dims): New hook.
382 * targhooks.h (default_goacc_validate_dims): New.
383 * omp-low.c (oacc_validate_dims): New.
384 (execute_oacc_device_lower): New.
385 (default_goacc_validate_dims): New.
386 (pass_data_oacc_device_lower): New.
387 (pass_oacc_device_lower): New pass.
388 (make_pass_oacc_device_lower): New.
389 * tree-pass.h (make_pass_oacc_device_lower): Declare.
390 * passes.def (pass_oacc_device_lower): Add it.
391 * doc/tm.texi: Rebuilt.
392 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
393 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
395 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
397 PR rtl-optimization/67037
398 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
400 2015-09-30 Bernd Schmidt <bernds@redhat.com>
402 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
403 * passes.c: Include tree-ssanames.h.
404 (execute_function_todo): Flush the pending free SSA_NAMEs after
405 eliminating unreachable basic blocks.
406 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
407 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
408 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
409 (flush_ssanames_freelist): New function.
410 (release_ssaname_fn): Put released names on the queue.
411 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
412 * tree-ssanames.h (flush_ssanames_freelist): Declare.
414 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
416 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
417 (generate_target_descr_file, generate_target_offloadend_file)
418 (generate_host_descr_file, prepare_target_image, main): Pass it on.
419 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
420 (compile_native, main): Pass it on.
421 * lto-wrapper.c (compile_offload_image): Likewise.
423 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
424 Ilya Verbin <ilya.verbin@intel.com>
425 Andrey Turetskiy <andrey.turetskiy@intel.com>
427 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
428 (prepare_target_image, main): Refactor argv building to use
431 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
433 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
434 * config/spu/spu.c (spu_expand_atomic_op): New function.
435 * config/spu/spu.md (AINT): New mode iterator.
436 (ATOMIC): New code iterator.
437 (atomic_name, atomic_pred): New code predicates.
438 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
439 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
440 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
441 "atomic_<atomic_name>_fetch<mode>"): Likewise.
443 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
445 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
447 (scalar_chain::convert_reg): Likewise.
449 2015-09-30 Richard Biener <rguenther@suse.de>
451 * builtins.c: Add comment that no new simplifications should
454 2015-09-30 Marek Polacek <polacek@redhat.com>
456 PR tree-optimization/67690
457 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
458 reset_flow_sensitive_info_in_bb.
459 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
460 * tree-ssanames.c: Include "gimple-iterator.h".
461 (reset_flow_sensitive_info_in_bb): New function.
462 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
464 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
466 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
467 variable, replacing it with...
468 (offload_abi): ... this new variable. Adjust all users.
469 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
471 2015-09-30 Matthias Klose <doko@ubuntu.com>
473 * configure.ac: Remove extraneous ;;.
474 * configure: Regenerate.
476 2015-09-29 James Bowman <james.bowman@ftdichip.com>
478 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
479 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
480 predicate, disallow register for operand 2.
482 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
484 * graphite-dependences.c (scop_get_dependences): Moved in down
485 in order to be visible to its caller.
486 * graphite-poly.h: Removed compute_deps, and extend_schedule.
488 2015-09-29 Sebastian Pop <s.pop@samsung.com>
489 Aditya Kumar <aditya.k7@samsung.com>
491 PR tree-optimization/67754
492 * graphite-optimize-isl.c (optimize_isl): Call
493 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
495 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
497 * builtins.c (expand_builtin_acc_on_device): Delete.
498 (expand_builtin): Don't call it.
499 (fold_builtin_1): Fold acc_on_device.
501 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
503 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
504 (ix86_nsaved_sseregs): Likewise.
506 2015-09-29 Jeff Law <law@redhat.com>
508 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
509 computation of unused value.
511 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
512 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
513 inline macro expansion.
515 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
517 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
518 (gen_shl_sext): Likewise.
519 * config/sh/sh.md (divsi3): Likewise.
520 (imm->ext_dest_operand splitter): Likewise.
522 2015-09-29 Sebastian Pop <s.pop@samsung.com>
523 Aditya Kumar <aditya.k7@samsung.com>
525 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
526 (nb_data_writes_in_bb): Remove.
528 (split_reduction_stmt): Remove.
529 (is_reduction_operation_p): Remove.
530 (phi_contains_arg): Remove.
531 (follow_ssa_with_commutative_ops): Remove.
532 (detect_commutative_reduction_arg): Remove.
533 (detect_commutative_reduction_assign): Remove.
534 (follow_inital_value_to_phi): Remove.
535 (edge_initial_value_for_loop_phi): Remove.
536 (initial_value_for_loop_phi): Remove.
537 (used_outside_reduction): Remove.
538 (detect_commutative_reduction): Remove.
539 (translate_scalar_reduction_to_array_for_stmt): Remove.
540 (remove_phi): Remove.
541 (dr_indices_valid_in_loop): Remove.
542 (close_phi_written_to_memory): Remove.
543 (translate_scalar_reduction_to_array): Remove.
544 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
545 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
546 (rewrite_commutative_reductions_out_of_ssa): Remove.
547 (build_poly_scop): Remove call to
548 rewrite_commutative_reductions_out_of_ssa.
550 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
552 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
553 Add new insn types for vector load and store pairs.
554 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
555 types "neon_ldp{,_q}".
556 * config/arm/cortex-a57.md (neon_load_c): Add insn types
558 (neon_store_complex): Add insn types "neon_stp{,_q}".
559 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
562 2015-09-29 Jeff Law <law@redhat.com>
564 * config/rx/constraints.md (Int08): Fix undefined left shift
566 (Sint08, Sint16, Sint24): Likewise.
567 * config/rx/rx.c (rx_get_stack_layout): Likewise.
569 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
572 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
573 left shift behaviour.
574 * config/msp430/constraints.md ('L' constraint): Similarly.
575 ('Ys' constraint): Similarly.
577 2015-09-29 Richard Biener <rguenther@suse.de>
579 PR tree-optimization/67170
580 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
581 the translate function pointer parameter to get the
582 bool whether to disambiguate only by reference.
583 (walk_non_aliased_vuses): Likewise.
584 * tree-ssa-alias.c (maybe_skip_until): Adjust.
585 (get_continuation_for_phi_1): Likewise.
586 (get_continuation_for_phi): Likewise.
587 (walk_non_aliased_vuses): Likewise.
588 * tree-ssa-sccvn.c (const_parms): New bitmap.
589 (vn_reference_lookup_3): Adjust for interface change.
590 Disambiguate parameters pointing to readonly memory.
591 (free_scc_vn): Free const_parms.
592 (run_scc_vn): Initialize const_parms from a fn spec attribute.
594 2015-09-29 Richard Biener <rguenther@suse.de>
596 PR tree-optimization/67741
597 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
598 builtin calls with correct signature.
600 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
603 * config/i386/i386.c: Include dbgcnt.h.
604 (has_non_address_hard_reg): New.
605 (convertible_comparison_p): New.
606 (scalar_to_vector_candidate_p): New.
607 (remove_non_convertible_regs): New.
609 (scalar_chain::scalar_chain): New.
610 (scalar_chain::~scalar_chain): New.
611 (scalar_chain::add_to_queue): New.
612 (scalar_chain::mark_dual_mode_def): New.
613 (scalar_chain::analyze_register_chain): New.
614 (scalar_chain::add_insn): New.
615 (scalar_chain::build): New.
616 (scalar_chain::compute_convert_gain): New.
617 (scalar_chain::replace_with_subreg): New.
618 (scalar_chain::replace_with_subreg_in_insn): New.
619 (scalar_chain::emit_conversion_insns): New.
620 (scalar_chain::make_vector_copies): New.
621 (scalar_chain::convert_reg): New.
622 (scalar_chain::convert_op): New.
623 (scalar_chain::convert_insn): New.
624 (scalar_chain::convert): New.
625 (convert_scalars_to_vector): New.
626 (pass_data_stv): New.
628 (make_pass_stv): New.
629 (ix86_option_override): Created and register stv pass.
630 (flag_opts): Add -mstv.
631 (ix86_option_override_internal): Likewise.
632 * config/i386/i386.md (SWIM1248x): New.
633 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
634 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
635 (*anddi3_doubleword): New.
636 (*zext<mode>_doubleword): New.
637 (*zextsi_doubleword): New.
638 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
639 (*<code>di3_doubleword): New.
640 * config/i386/i386.opt (mstv): New.
641 * dbgcnt.def (stv_conversion): New.
643 2015-09-29 Tom de Vries <tom@codesourcery.com>
645 * tree-cfg.c (dump_function_to_file): Dump function attributes.
647 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
650 * config/sh/sh.c (sh_override_options_after_change): New.
651 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
652 (sh_option_override): Move align_loops, align_jumps and
653 align_functions handling into sh_override_options_after_change.
655 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
657 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
658 (nvptx_record_offload_symbol): Record function execution geometry.
659 * config/nvptx/mkoffload.c (process): Include launch geometry in
661 * omp-low.c (oacc_launch_pack): New.
662 (replace_oacc_fn_attrib): New.
663 (set_oacc_fn_attrib): New.
664 (get_oacc_fn_attrib): New.
665 (expand_omp_target): Create keyed varargs for GOACC_parallel call
667 * omp-low.h (get_oacc_fn_attrib): Declare.
668 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
669 (DEF_FUNCTION_TYPE_VAR_11): Delete.
670 * tree.h (OMP_CLAUSE_EXPR): New.
671 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
673 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
674 Sebastian Pop <s.pop@samsung.com>
676 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
678 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
679 Sebastian Pop <s.pop@samsung.com>
681 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
682 * graphite-scop-detection.c (struct sese_l): New type.
683 (get_entry_bb): API for getting entry bb of SESE.
684 (get_exit_bb): API for getting exit bb of SESE.
685 (class debug_printer): New type. Simple printer in debug mode.
686 (trivially_empty_bb_p): New. Return true when BB is empty or
687 contains only debug instructions.
688 (graphite_can_represent_expr): Call scalar_evoution_in_region
689 instead of analyze_scalar_evolution. Pass in scop instead of only
691 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
693 (stmt_simple_for_scop_p): Same.
694 (harmful_stmt_in_bb): Same.
695 (graphite_can_represent_loop): Deleted.
696 (struct scopdet_info): Deleted.
697 (scopdet_basic_block_info): Deleted.
698 (build_scops_1): Deleted.
699 (bb_in_sd_region): Deleted.
700 (find_single_entry_edge): Deleted.
701 (find_single_exit_edge): Deleted.
702 (create_single_entry_edge): Deleted.
703 (sd_region_without_exit): Deleted.
704 (create_single_exit_edge): Deleted.
705 (unmark_exit_edges): Deleted.
706 (mark_exit_edges): Deleted.
707 (create_sese_edges): Deleted.
708 (build_graphite_scops): Deleted.
709 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
710 (build_scops): Use the new scop_builder to build scops.
711 (dot_all_scops_1): Use the new pretty printer. Print loop father
713 (loop_body_is_valid_scop): New. Return true if loop body is a
715 (class scop_builder): New. Builds SCoPs for polyhedral
717 (scop_builder): New constructor.
718 (static sese_l invalid_sese): sese_l with invalid edges.
719 (get_sese): Get an sese (from a loop) if possible, invalid_sese
721 (get_nearest_dom_with_single_entry): Get nearest dominator of a
722 basic_block with single entry. Return NULL if we get to the
723 beginning of a function.
724 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
725 a basic_block with single exit. Return NULL if we get to the
726 beginning of a function.
727 (print_sese): Pretty-print SESE.
728 (merge_sese): Merge two SESEs if possible and return the new SESE.
729 (build_scop_depth): Start building the SCoP within a loop nest.
730 (build_scop_breadth): Start building the SCoP at a single loop
731 depth. Merge adjacent SESEs if valid.
732 (can_represent_loop_1): Returns true if Graphite can represent
733 loop inside SCoP. Helper for can_represent_loop.
734 (can_represent_loop): Returns true if Graphite can represent LOOP
735 and all its nested loops in SCoP.
736 (loop_is_valid_scop): Returns true if LOOP and all its nests
737 constitute a valid SCoP.
738 (region_has_one_loop): Returns true of a region has only one loop.
739 (add_scop): Add SCoP to the list of valid scops. Removes an
740 already existing scop if it intersects with or subsumed by this one.
741 (harmful_stmt_in_region): Returns true if SCoP has any statment
742 which cannot be represented by Graphite.
743 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
744 (remove_subscops): Remove any SCoP from the list of already found
745 SCoPs, if subsumed by S1.
746 (intersects): Return true if region bounded by SCoPs S1 and S2
748 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
749 * graphite.c (print_graphite_scop_statistics):
750 (print_graphite_statistics): Print SCoP info while debugging.
751 (graphite_initialize): Early exit in case number of loops in a
752 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
753 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
755 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
756 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
757 (recompute_all_dominators): Recalculate POST_DOMINATORS.
758 * tree-cfg.c (print_loops): Print the function name while printing
761 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
762 Sebastian Pop <s.pop@samsung.com>
764 PR tree-optimization/67700
765 * graphite-sese-to-poly.c (parameter_index_in_region): Call
766 invariant_in_sese_p_rec.
767 (extract_affine): Same.
768 (rewrite_cross_bb_scalar_deps): Call update_ssa.
769 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
770 * sese.h (invariant_in_sese_p_rec): Declare.
772 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
774 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
776 2015-09-28 Jiong Wang <jiong.wang@arm.com>
779 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
780 Jiong Wang <jiong.wang@arm.com>
782 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
783 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
784 (REG_CLASS_NAMES): Likewise.
785 (REG_CLASS_CONTENTS): Likewise.
786 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
787 (aarch64_register_move_cost): Likewise.
788 (aarch64_load_symref_appropriately): Invoke the new added pattern if
790 * config/aarch64/constraints.md (Uc0): New constraint.
792 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
794 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
796 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
798 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
799 SECTION_EXCLUDE in XO mapping class.
801 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
804 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
805 and handle ne and eq codes.
806 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
807 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
808 CONST_INT_P. Use reverse_condition.
809 (sh_split_treg_set_expr): Likewise.
811 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
813 * config/arm/types.md (type): Add rotate_imm.
814 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
816 (*rorsi3_insn_uxtw): Likewise.
817 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
818 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
819 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
821 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
823 PR rtl-optimization/67481
824 * ifcvt.c (contains_ccmode_rtx_p): New function.
825 (insn_valid_noce_process_p): Use it.
827 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
829 PR rtl-optimization/67456
830 PR rtl-optimization/67464
831 PR rtl-optimization/67465
832 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
833 move in the mode of x. Handle combination of complex and simple
834 block pairs as well as the case when one is empty.
836 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
838 * doc/gimple.texi: Update references to gimple_statement_base.
839 * gdbhooks.py: Likewise.
840 * gimple.h: Likewise.
842 2015-09-28 Daniel Cederman <cederman@gaisler.com>
844 * config/sparc/driver-sparc.c: map LEON to leon3
846 2015-09-28 Daniel Cederman <cederman@gaisler.com>
848 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
849 and make it inverse to change default
850 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
852 * doc/invoke.texi: Document change of default
854 2015-09-28 Daniel Cederman <cederman@gaisler.com>
856 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
857 true on %f0 for a target without FPU.
858 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
860 (untyped_return): Do not load %f0 for a target without FPU.
862 2015-09-28 Andrew Pinski <apinski@cavium.com>
864 * config/aarch64/aarch64.md (prefetch):
865 Change the predicate of operand 0 to register_operand.
867 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
869 * config/i386/predicates.md (register_sse4nonimm_operand): New
871 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
872 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
873 Use register_sse4nonimm_operand as operand 0 predicate.
874 (*vec_extractv8hi_sse2): Remove insn pattern.
875 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
876 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
878 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
879 Kaz Kojima <kkojima@gcc.gnu.org>
882 * config/sh/sh-protos.h (sh_lra_p): Declare.
883 * config/sh/sh.c (sh_lra_p): Make non-static.
884 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
885 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
886 Expand into addsi3_scr if operands[2] if needed.
887 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
888 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
889 (addsi3_scr, *addsi3): New insn_and_split patterns.
891 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
893 PR rtl-optimization/64164
894 PR tree-optimization/67312
898 * cfgexpand.c (parm_in_stack_slot_p): Remove.
899 (ssa_default_def_partition): Remove.
900 (get_rtl_for_parm_ssa_default_def): Remove.
901 (set_rtl): Check that RTL assignments match expectations.
902 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
903 default def location for params and results. Record SSA names
904 or types in REG and MEM attrs, respectively.
906 (expand_one_ssa_partition): Drop logic that assigned MEMs with
907 unassigned addresses.
908 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
909 deferred stack alloc vars.
910 (expand_used_vars): Skip partitions holding parm default defs.
911 Move adjust_one_expanded_partition_var loop...
912 (pass_expand::execute): ... here. Drop redundant assert.
913 Adjust comments before the final loop over all ssa names.
914 Require assigned rtl of parms and results to match exactly.
915 Reset its attributes to match them, not any other variables in
917 (expand_debug_expr): Use entry value for PARM's default defs
918 only iff they have zero nondebug uses.
919 * cfgexpand.h (parm_in_stack_slot_p): Remove.
920 (get_rtl_for_parm_ssa_default_def): Remove.
921 (set_parm_rtl): Declare.
922 * doc/invoke.texi: Improve wording.
923 * explow.c (promote_decl_mode): Fix promote_function_mode for
924 result decls not by reference.
925 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
926 bypass TYPE_MODE to get the actual vector mode.
927 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
928 2015-08-19's changes as follows. Drop include of
929 basic-block.h and df.h.
930 (rtl_for_parm): Remove.
931 (maybe_reset_rtl_for_parm): Remove.
932 (parm_in_unassigned_mem_p): Remove.
933 (use_register_for_decl): Add logic for RESULT_DECLs matching
934 assign_parms' behavior.
935 (split_complex_args): Revert.
936 (assign_parms_augmented_arg_list): Revert. Add comment
937 referencing the logic above.
938 (assign_parm_adjust_stack_rtl): Revert.
939 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
940 of SET_DECL_RTL. Set up a REG if the parm demands so.
941 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
942 calls into a single set_parm_rtl. Set up a temporary RTL
943 temporarily for expand_assignment.
944 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
945 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
946 (assign_bounds): Revert.
947 (assign_parms): Revert. Use set_parm_rtl.
948 (allocate_struct_function): Relayout result and parms of
949 non-abstruct functions.
950 (expand_function_start): Revert. Use set_parm_rtl. If the
951 result is not a hard reg, create a pseudo from the promoted
952 mode of the default def. Promote static chain mode.
953 * tree-outof-ssa.c (remove_ssa_form): Drop unused
954 partition_has_default_def. Set up
955 partitions_for_parm_default_defs.
956 (finish_out_of_ssa): Remove partition_has_default_def.
957 Release partitions_for_parm_default_defs.
958 * tree-outof-ssa.h (struct ssaexpand): Remove
959 partition_has_default_def. Add
960 partitions_for_parm_default_defs.
961 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
963 (build_ssa_conflict_graph): Fix conflict-detection of default
964 defs of even unused default defs of params and results.
965 (for_all_parms): New.
966 (create_default_def): New.
967 (register_default_def): New.
968 (coalesce_with_default): New.
969 (create_outofssa_var_map): Create default defs for all parms
970 and results, and register their partitions. Add GIMPLE_RETURN
971 operands as coalesce candidates with results. Add default
972 defs of each parm or result as coalesce candidates with its
973 other defs. Mark each result def, and each default def of
974 parms, as used_in_copy.
975 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
976 with the ssa names, even anonymous ones. Drop
977 parm_in_stack_slot_p calls. Require same signedness and
979 (coalesce_ssa_name): Add coalesce candidates for all defs of
980 each parm and result, even unused ones.
981 (parm_default_def_partition_arg): New type.
982 (set_parm_default_def_partition): New.
983 (get_parm_default_def_partitions): New.
984 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
985 * tree-ssa-live.c (partition_view_init): Regard unused defs of
986 parms and results as used.
987 (verify_live_on_entry): Don't error out just because they're
990 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
992 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
993 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
994 (output_fde): Don't output length for debug_frame on AIX.
995 (output_call_frame_info): Don't output length for debug_frame on AIX.
996 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
997 HAVE_XCOFF_DWARF_EXTRAS.
998 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
999 HAVE_XCOFF_DWARF_EXTRAS.
1000 (output_compilation_unit_header): Don't output length on AIX.
1001 (output_pubnames): Don't output length on AIX.
1002 (output_aranges): Delete argument. Compute length locally. Don't
1003 output length on AIX.
1004 (output_line_info): Don't output length on AIX.
1005 (dwarf2out_finish): Don't compute aranges_length.
1006 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
1007 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
1008 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
1009 symbol decoration for AIX.
1010 (rs6000_xcoff_debug_unwind_info): New.
1011 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
1013 (rs6000_xcoff_declare_function_name): Emit different
1014 .function pseudo-op when DWARF2_DEBUG. Don't call
1015 xcoffout_declare_function for DWARF2_DEBUG.
1016 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
1018 * config/rs6000/aix71.h: New.
1019 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
1021 * configure: Regenerate.
1022 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
1025 2015-09-26 Jeff Law <law@redhat.com>
1027 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
1029 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
1032 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
1035 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
1036 undefined behaviour.
1038 * config/cris/cris.md (asrandb): Fix left shift undefined
1040 (asrandw): Likewise.
1042 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
1045 * lra-constarints.c (match_reload): Check presence of the input pseudo
1046 in the output operand.
1048 2015-09-25 Tobias Burnus <burnus@net-b.de>
1050 * doc/invoke.texi (-fsanitize): Minor wording tweak.
1052 2015-09-25 Tobias Burnus <burnus@net-b.de>
1054 * doc/invoke.texi (-fsanitize): Update URLs.
1056 2015-09-25 Teresa Johnson <tejohnson@google.com>
1058 * opts.c (finish_options): Unset -freorder-blocks-and-partition
1059 if not using profile.
1061 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
1063 PR pretty-print/67567
1064 * pretty-print.c (pp_string): Add gcc_checking_assert.
1065 * pretty-print.h (output_buffer_append_r): Likewise.
1067 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
1070 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
1071 addr2 individually. Don't emit logical or insn if one is known to
1072 be aligned approriately.
1073 (sh_expand_cmpnstr): Likewise.
1075 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
1077 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
1078 __builtin_aarch64_fp[sc]r arguments into a register.
1080 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
1082 * config.gcc (x86_archs): Replace lakemount with lakemont.
1083 (with_cpu): Likewise.
1084 (with_arch): Likewise.
1085 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
1086 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
1087 __tune_lakemount__ with __tune_lakemont__.
1088 * config/i386/i386.c (lakemount_cost): Renamed to ...
1089 (lakemont_cost): This.
1090 (m_LAKEMOUNT): Renamed to ...
1092 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
1093 (processor_target_table): Replace "lakemount" with "lakemont".
1094 (processor_alias_table): Likewise.
1095 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
1097 (ix86_adjust_cost): Likewise.
1098 (ia32_multipass_dfa_lookahead): Likewise.
1099 * config/i386/i386.h (processor_type): Likewise.
1100 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
1101 * doc/invoke.texi: Replace lakemount with lakemont. Replace
1102 Lakemount with Lakemont.
1104 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
1106 * config.gcc (x86_archs): Replace iamcu with lakemount.
1107 (with_cpu): Likewise.
1108 (with_arch): Likewise.
1109 * doc/invoke.texi: Likewise.
1110 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
1111 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
1112 __tune_iamcu__ with __tune_lakemount__.
1113 * config/i386/i386.c (iamcu_cost): Renamed to ...
1114 (lakemount_cost): This.
1115 (m_IAMCU): Renamed to ...
1116 (m_LAKEMOUNT): This.
1117 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
1118 (processor_target_table): Replace "iamcu" with "lakemount".
1119 (processor_alias_table): Likewise.
1120 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
1121 PROCESSOR_LAKEMOUNT.
1122 (ix86_adjust_cost): Likewise.
1123 (ia32_multipass_dfa_lookahead): Likewise.
1124 * config/i386/i386.h (processor_type): Likewise.
1125 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
1127 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
1129 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
1130 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
1132 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
1133 (pa_expand_compare_and_swap_loop): New.
1134 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
1135 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
1136 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
1137 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
1138 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
1141 2015-09-24 Michael Collison <michael.collison@linaro.org>
1144 * read-md.c (read_name): Allow mode iterators inside angle
1145 brackets in rtl expressions.
1147 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
1150 * ira-color.c (update_allocno_cost): Add parameter.
1151 (update_costs_from_allocno): Decrease conflict cost. Pass the new
1154 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
1157 * opts-common.c (prune_options): Discard all -fdiagnostics-color
1158 but the last one, which is moved to the front to be processed
1160 * opts.c (enable_warning_as_error): Reject options that do not
1163 2015-09-24 Jiong Wang <jiong.wang@arm.com>
1165 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
1167 2015-09-24 Jiong Wang <jiong.wang@arm.com>
1169 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
1170 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
1171 (aarch64_cannot_force_const_mem): Likewise.
1172 (aarch64_classify_address): Likewise.
1173 (aarch64_classify_symbolic_expression): Likewise.
1174 (aarch64_print_operand): Likewise.
1175 (aarch64_classify_symbol): Likewise.
1176 (aarch64_mov_operand_p): Likewise.
1177 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
1178 (aarch64_mov_operand): Likewise.
1180 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
1182 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
1183 for info->spe_gp_size.
1185 2015-09-24 Richard Biener <rguenther@suse.de>
1188 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
1191 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
1193 * tree-object-size.c (plus_stmt_object_size)
1194 (cond_expr_object_size): Change the formal parameters from gimple
1196 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
1197 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
1198 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
1200 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1202 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
1203 Check for ld -type pie on Solaris 11.x and 12.
1204 * configure: Regenerate.
1205 * config.in: Regenerate.
1207 * gcc.c (LD_PIE_SPEC): Allow redefinition.
1209 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
1210 (STARTFILE_SPEC): Use it.
1211 (ENDFILE_CRTEND_SPEC): Define.
1212 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
1213 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
1214 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
1215 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
1216 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
1217 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
1218 (ENDFILE_ARCH_SPEC): Define.
1219 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
1221 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1223 * configure.ac (gcc_cv_solaris_crts): New test.
1224 * configure. Regenerate.
1225 * config.in: Regenerate.
1226 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
1227 HAVE_SOLARIS_CRTS variant.
1229 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1231 * tree-inline.h (count_insns_seq): Delete prototype.
1232 (estimate_num_insns_seq): Define prototype.
1233 * tree-inline.c (count_insns_seq): Delete.
1234 (estimate_num_insns_seq): Remove static qualifier.
1235 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
1236 with estimate_num_insns_seq.
1238 2015-09-24 Richard Biener <rguenther@suse.de>
1240 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
1242 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
1243 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
1245 (ao_ref_init_from_vn_reference): Record clique and base in the
1247 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
1249 2015-09-24 Richard Biener <rguenther@suse.de>
1251 PR tree-optimization/48885
1252 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
1253 as not including any restrict tags from other pointers.
1255 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
1257 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
1258 character when appending to offload_targets.
1260 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
1261 offload targets by commas, not colons.
1262 * config.in: Regenerate.
1263 * configure: Likewise.
1264 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
1265 instead of setting up the default offload targets here...
1266 (process_command): ..., do it here.
1268 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
1269 targets are separated by commas.
1270 * config.h.in: Regenerate.
1272 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
1273 Nathan Sidwell <nathan@codesourcery.com>
1275 * omp-low.h (omp_reduction_init_op): Declare.
1276 * omp-low.c (omp_reduction_init_op): New, broken out of ...
1277 (omp_reduction_init): ... here. Call it.
1278 * tree-parloops.c (initialize_reductions): Use
1279 omp_reduction_init_op.
1281 2015-09-23 Richard Biener <rguenther@suse.de>
1284 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
1285 undefined overflow unless they will cancel out.
1287 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
1289 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
1292 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1295 * opts.h (write_langs): Declare.
1296 * opts-global.c (write_langs): Make it extern.
1298 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
1301 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
1302 overlapping regs when matching the pattern.
1304 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
1306 * config/aarch64/aarch64-simd.md
1307 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
1308 (aarch64_float_truncate_hi_v4sf_le): New.
1309 (aarch64_float_truncate_hi_v4sf_be): Likewise.
1311 2015-09-23 Richard Biener <rguenther@suse.de>
1313 * tree-ssa-structalias.c (intra_create_variable_infos): Build
1314 representatives for all restrict qualified pointer destinations.
1316 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
1318 * config/i386/i386.md (define_code_attr mshift): New.
1319 (define_mode_iterator SWI1248_AVX512BW): Rename ...
1320 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
1322 (define_insn "*k<logic><mode>"): Use new iterator name.
1323 (define_insn "*<mshift><mode>3"): New.
1325 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
1328 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
1329 mark the block as accessible.
1331 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
1333 * function.c (thread_prologue_and_epilogue_insns): Delete
1334 orig_entry_edge argument to try_shrink_wrapping.
1335 * shrink-wrap.c (can_get_prologue): New function.
1336 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
1337 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
1338 can_get_prologue where needed. Remove code that finds a single
1339 edge for the prologue. Remove code that tests if any reg clobbered
1340 by the prologue is live on the prologue edge. Remove code that finds
1341 the new prologue edge after duplicating blocks. Make a new prologue
1343 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
1345 2015-09-22 Jeff Law <law@redhat.com>
1347 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
1350 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1352 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
1353 -Wtemplates, -Wnamespaces): Document.
1355 2015-09-22 Tom de Vries <tom@codesourcery.com>
1357 PR tree-optimization/67671
1358 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
1359 pointer references as restrict.
1361 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
1363 * config/nios2/nios2.c (nios2_legitimize_address): When handling
1364 'reg + reloc' cases, allow first operand to be non-REG, and use
1365 force_reg() to enforce address pattern.
1367 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
1370 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
1371 (define_mode_iterator VI12_AVX_AVX512F): New.
1372 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
1373 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
1374 (define_insn "*<code><mode>3"): ... Into new pattern using
1375 VI12_AVX_AVX512F iterators without masking.
1377 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
1379 * config.gcc: Support "skylake-avx512".
1380 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
1381 PROCESSOR_SKYLAKE_AVX512.
1382 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
1383 (processor_target_table): Add "skylake-avx512".
1384 (PTA_SKYLAKE_AVX512): Define.
1385 (ix86_option_override_internal): Add "skylake_avx512".
1386 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
1387 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
1388 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
1389 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
1390 * doc/invoke.texi (skylake-avx512): New.
1392 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
1394 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
1396 (define_insn "kunpcksi"): Ditto.
1397 (define_insn "kunpckdi"): Ditto.
1399 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
1401 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
1402 iterator instead of fixed modes.
1404 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1406 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
1408 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
1409 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
1410 out_result. Update to support update-fetch operations.
1411 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
1412 Adjust for change to aarch64_gen_atomic_ldop.
1413 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
1414 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
1415 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
1416 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
1417 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
1419 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1421 * config/aarch64/aarch64-protos.h
1422 (aarch64_atomic_ldop_supported_p): Declare.
1423 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
1424 (enum aarch64_atomic_load_op_code): New.
1425 (aarch64_emit_atomic_load_op): New.
1426 (aarch64_gen_atomic_ldop): Update to support load-operate
1428 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
1430 (aarch64_atomic_<atomic_optab><mode>): New.
1431 (aarch64_atomic_<atomic_optab><mode>_lse): New.
1432 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
1433 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
1434 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
1436 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1438 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
1439 (UNSPECV_ATOMIC_LDOP_OR): New.
1440 (UNSPECV_ATOMIC_LDOP_BIC): New.
1441 (UNSPECV_ATOMIC_LDOP_XOR): New.
1442 (UNSPECV_ATOMIC_LDOP_PLUS): New.
1445 (aarch64_atomic_load<atomic_ldop><mode>): New.
1447 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1449 * config/aarch64/aarch64.md
1450 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
1453 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1455 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
1457 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
1458 (aarch64_gen_atomic_ldop): New.
1459 (aarch64_split_atomic_op): Fix whitespace and add a comment.
1460 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
1461 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
1462 (atomic_exchange<mode>): Replace with an expander.
1463 (aarch64_atomic_exchange<mode>): New.
1464 (aarch64_atomic_exchange<mode>_lse): New.
1465 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
1466 (aarch64_atomic_swp<mode>): New.
1468 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1470 * tree-inline.c (expand_call_inline): Use inform for extra note.
1471 Do not give a note with UNKNOWN_LOCATION.
1472 Replace input_location with gimple_location (stmt).
1473 Use true/false instead of TRUE/FALSE.
1475 2015-09-22 Tom de Vries <tom@codesourcery.com>
1477 PR tree-optimization/67666
1478 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
1479 with single field non-conservative.
1481 2015-09-21 David S. Miller <davem@davemloft.net>
1485 2015-09-11 David S. Miller <davem@davemloft.net>
1487 * config/sparc/constraints.md: Make "U" constraint a real register
1489 * config/sparc/sparc.c (TARGET_LRA_P): Define.
1490 (D_MODES, DF_MODES): Add missing cast.
1491 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
1492 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
1493 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
1495 * config/sparc/sparc.h (PROMOTE_MODE): Define.
1496 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1497 provide these insn when flag_pic.
1499 2015-09-17 David S. Miller <davem@davemloft.net>
1501 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
1503 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
1505 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1506 (HARD_REGNO_CALLER_SAVE_MODE): Define.
1507 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1508 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1509 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1510 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1511 provide when flag_pic.
1513 2015-09-21 Jeff Law <law@redhat.com>
1515 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
1518 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1520 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
1522 2015-09-21 Richard Biener <rguenther@suse.de>
1524 * passes.c (rest_of_decl_compilation): Do not call
1525 dwarf2out_early_global_decl for aliases.
1527 2015-09-21 Richard Biener <rguenther@suse.de>
1530 * dwarf2out.c (add_location_or_const_value_attribute): Remove
1531 attribute parameter. Early exit if either DW_AT_const_value
1532 or DW_AT_location are present already.
1533 (gen_variable_die): Adjust caller.
1534 (dwarf2out_late_global_decl): Likewise.
1536 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1539 * config/sh/sh.c (sh_remove_overlapping_post_inc,
1540 sh_peephole_emit_move_insn): Add new functions.
1541 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
1542 sh_peephole_emit_move_insn): Declere them.
1543 * config/sh/sh.md: Use them in various peephole2 patterns.
1545 2015-09-21 Richard Biener <rguenther@suse.de>
1548 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
1549 address with -fno-delete-null-pointer-checks.
1551 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
1553 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
1554 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
1555 (reduc_uplus_v16qi): Remove.
1557 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
1558 (reduc_<VEC_reduc_name>_v2df): Remove.
1559 (reduc_<VEC_reduc_name>_v4sf): Remove.
1560 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
1562 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
1563 gen_ function by removing * prefix.
1564 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
1566 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1569 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1570 Print i_bound without converting it to a tree.
1572 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
1574 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
1575 operands[4] operands[5] swap with std::swap, removed tmp variable.
1576 (arm_evpc_neon_vzip): Replaced in0/in1 and
1577 out0/out1 swaps with std::swap, removed x variable.
1578 (arm_evpc_neon_vtrn): Replaced in0/int1 and
1579 out0/out1 swaos with std::swap, removed x variable.
1580 (arm_expand_vec_perm_const_1): Replaced
1581 d->op0/d->op1 swap with std::swap, removed x variable.
1582 (arm_evpc_neon_vuzp): Replaced in0/in1 and
1583 out0/out1 swaps with std::swap, removed x variable.
1585 2015-09-21 Jonathan Yong <10walls@gmail.com>
1587 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
1588 sysroot/usr/lib/32api for additional win32 libraries,
1589 fixes failing Cygwin bootstrapping.
1591 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1593 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
1595 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1598 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
1599 (*mov_t_msb_neg): Rewrite negc pattern.
1601 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1603 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
1604 immediate generation code.
1606 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1608 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
1609 redundant immediate generation code.
1611 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1613 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
1614 (AARCH64_NUM_BITMASKS): Remove.
1615 (aarch64_bitmasks_cmp): Remove.
1616 (aarch64_build_bitmask_table): Remove.
1618 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1620 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
1621 slow immediate matching loops with a faster algorithm.
1623 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1625 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
1628 2015-09-20 Jeff Law <law@redhat.com>
1630 PR tree-optimization/47679
1631 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
1632 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
1633 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
1634 (thread_through_normal_block): Use record_temporary_equivalences.
1636 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
1638 * coretypes.h (gimple): Change typedef to be a forward declaration.
1639 * gimple.h (gimple_statement_base): rename to gimple.
1640 * (all functions and types using gimple): Adjust.
1643 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
1644 David Edelsohn <dje.gcc@gmail.com>
1646 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
1647 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1648 (EH_FRAME_THROUGH_COLLECT2): Define.
1649 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1650 (ASM_OUTPUT_DWARF_PCREL): Define.
1651 (ASM_OUTPUT_DWARF_DATAREL): Define.
1653 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
1655 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
1658 2015-09-18 Jeff Law <law@redhat.com>
1660 PR tree-optimization/47679
1661 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
1663 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
1664 object. Update constructor.
1665 (pass_dominator::execute): Corresponding chagnes to declaration
1666 and initialization of avail_exprs_stack. Update constructor call
1667 for dom_opt_dom_walker object.
1668 (lookup_avail_expr, record_cond): Accept additional argument. Pass
1669 it down to children as needed.
1670 (record_equivalences_from_incoming_edge): Likewise.
1671 (eliminate_redundant_computations): Likewise.
1672 (record_equivalences_from_stmt): Likewise.
1673 (simplify_stmt_for_jump_threading): Likewise.
1674 (record_temporary_equivalences): Likewise.
1675 (optimize_stmt): Likewise.
1676 (dom_opt_dom_walker::thread_across_edge): Update access to
1677 avail_exprs_stack object and pass it to children as needed.
1678 (dom_opt_dom_walker::before_dom_children): Similarly.
1679 (dom_opt_dom_walker::after_dom_children): Similarly.
1680 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
1681 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
1682 Add avail_expr_stack argument. Pass it to children as needed.
1683 (dummy_simplify): Likewise.
1684 (simplify_control_stmt_condition): Likewise.
1685 (thread_around_empty_blocks): Likewise.
1686 (thread_through_normal_block): Likewise.
1687 (thread_across_edge): Likewise.
1688 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1689 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
1691 PR tree-optimization/47679
1692 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
1694 (dom_opt_dom_walker): New private member holding the const_and_copies
1695 object. Update constructor.
1696 (pass_dominator::execute): Corresponding changes to declaration
1697 and initialization of const_and_copies. Update constructor call
1698 for the dom_opt_dom_walker object.
1699 (record_temporary_equivalences): Accept const_and_copies argument
1700 pass it down to children as needed.
1701 (record_equality): Likewise.
1702 (record_equivalences_from_incoming_edge): Likewise.
1703 (cprop_into_successor_phis, optimize_stmt): Likewise.
1704 (eliminate_redundant_computations): Likewise.
1705 (dom_opt_dom_walker::thread_across_edge): Update access to
1706 const_and_copies object and pass it to children as needed.
1707 (dom_opt_dom_walker::before_dom_children): Similarly.
1708 (dom_opt_dom_walker::after_dom_children): Similarly.
1710 PR tree-optimization/47679
1711 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
1712 it into the avail_exprs_stack class.
1713 (pass_dominator::execute): Corresponding changes to declaration
1714 and initialization of avail_exprs. Pass avail_exprs to
1715 dump_dominator_optimization_stats.
1716 (record_cond): Extract avail_exprs from avail_exprs_stack.
1717 (lookup_avail_expr): Similarly.
1718 (htab_staticstics): Remove unnecessary prototype. Move to earlier
1720 (dump_dominator_optimization_stats): Make static and prototype.
1721 Add argument for the hash table to dump.
1722 (debug_dominator_optimization_stats): Remove.
1723 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
1725 (debug_dominator_optimization_stats): Similarly.
1726 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
1727 "void" in prototype for pop_to_marker method. Add accessor method
1728 for the underlying avail_exprs table.
1730 * tree-ssa-threadedge.c: Remove trailing whitespace.
1732 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
1734 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
1736 (pa_ldil_cint_p): Likewise.
1737 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
1738 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
1740 * config/pa/pa.md: Likewise.
1742 2015-09-18 David Malcolm <dmalcolm@redhat.com>
1744 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
1745 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
1746 (diagnostic_show_locus): Likewise.
1747 (diagnostic_print_caret_line): Likewise.
1748 * diagnostic-show-locus.c: New file.
1750 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
1752 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
1753 "back" parameter. Declare label in #if block.
1755 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
1758 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
1759 the address to a register.
1761 2015-09-18 Jeff Law <law@redhat.com>
1763 PR tree-optimization/47679
1764 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
1765 * tree-ssa-dom.c: Remove unnecessary header includes.
1766 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
1767 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
1768 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
1769 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
1770 (pass_phi_only_cprop::execute): Likewise.
1771 (make_pass_phi_only_cprop): Likewise.
1772 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
1773 uses of file scoped statics by passing the required objects
1774 as parameters wherever needed.
1776 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
1777 David Edelsohn <dje.gcc@gmail.com>
1779 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
1780 EH_FRAME_THROUGH_COLLECT2.
1781 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
1783 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
1784 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
1785 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
1786 * except.c (switch_to_exception_section): Use a read-only section
1787 even if EH_FRAME_SECTION_NAME is undefined.
1788 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
1789 * collect2.c (write_c_file_stat): Provide dbase on AIX.
1790 (scan_prog_file): Don't export __dso_handle nor
1792 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1793 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1794 (ASM_OUTPUT_DWARF_PCREL): Define.
1795 (ASM_OUTPUT_DWARF_DATAREL): Define.
1796 (EH_FRAME_THROUGH_COLLECT2): Define.
1797 (EH_FRAME_IN_DATA_SECTION): Delete.
1798 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
1799 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
1801 (rs6000_asm_output_dwarf_datarel): Declare.
1802 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
1803 (rs6000_aix_asm_output_dwarf_datarel): New.
1804 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
1805 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
1806 (EH_FRAME_THROUGH_COLLECT2): Define.
1807 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
1808 (EH_FRAME_THROUGH_COLLECT2): Define.
1809 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1810 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
1811 (EH_FRAME_THROUGH_COLLECT2): New.
1812 (ASM_OUTPUT_DWARF_DATAREL): New.
1813 * doc/tm.texi: Regenerate.
1815 2015-09-18 Richard Biener <rguenther@suse.de>
1817 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
1818 we're in early phase.
1819 (schedule_generic_params_dies_gen): Likewise.
1820 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
1821 work as possible, retaining unhandled cases.
1822 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
1823 clear out generic_type_instances at the end.
1824 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
1825 (dwarf2out_early_finish): ... here. Do most of
1826 gen_remaining_tmpl_value_param_die_attribute here.
1828 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
1830 PR tree-optimization/67283
1831 * tree-sra.c (type_consists_of_records_p): Rename to...
1832 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1833 (completely_scalarize_record): Rename to...
1834 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
1835 (scalarize_elem): New.
1836 (analyze_all_variable_accesses): Follow renamings.
1838 2015-09-18 Richard Biener <rguenther@suse.de>
1840 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
1843 2015-09-18 Richard Biener <rguenther@suse.de>
1845 PR tree-optimization/66142
1846 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
1847 treat MEM[&x] and x the same.
1848 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
1849 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
1850 when we simplified sth.
1851 (vn_reference_maybe_forwprop_address): Likewise.
1852 (valueize_refs_1): When we simplified through
1853 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
1854 set valueized_anything to true.
1855 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
1856 one ref kills the other instead of just a offset-based test.
1857 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
1858 for the operand_equal_p test to compare bases and also compare
1861 2015-09-17 Christian Bruel <christian.bruel@st.com>
1863 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
1865 2015-09-17 Richard Henderson <rth@redhat.com>
1868 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
1869 pointers that encode the alignment of the object.
1871 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1873 PR rtl-optimization/66790
1874 * df-problems.c (LIVE): Amend documentation.
1876 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
1878 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
1880 (GTFILES): Replace optabs.c with optabs-libfunc.c.
1881 * genopinit.c (main): Add an include guard to insn-opinit.h.
1882 Protect the rtx_code parts with NUM_RTX_CODE.
1883 * optabs.h: Split parts out to...
1884 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
1885 * optabs.c: Split parts out to...
1886 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
1887 * cilk-common.c: Include optabs-query.h rather than optabs.h.
1888 * fold-const.c: Likewise.
1889 * target-globals.c: Likewise.
1890 * tree-if-conv.c: Likewise.
1891 * tree-ssa-forwprop.c: Likewise.
1892 * tree-ssa-loop-prefetch.c: Likewise.
1893 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
1894 Remove unncessary include files.
1895 * tree-ssa-phiopt.c: Likewise.
1896 * tree-ssa-reassoc.c: Likewise.
1897 * tree-switch-conversion.c: Likewise.
1898 * tree-vect-data-refs.c: Likewise.
1899 * tree-vect-generic.c: Likewise.
1900 * tree-vect-loop.c: Likewise.
1901 * tree-vect-patterns.c: Likewise.
1902 * tree-vect-slp.c: Likewise.
1903 * tree-vect-stmts.c: Likewise.
1904 * tree-vrp.c: Likewise.
1905 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
1906 rather than optabs.h.
1907 * expr.c: Include optabs-tree.h.
1908 * function.c: Likewise.
1910 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1913 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
1914 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
1915 * config/arm/arm.c: Include common/common-target.h.
1916 (use_return_insn): Return 0 if the static chain register was saved
1917 above a non-APCS frame.
1918 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
1919 (struct scratch_reg): New.
1920 (get_scratch_register_on_entry): New function.
1921 (release_scratch_register_on_entry): Likewise.
1922 (arm_emit_probe_stack_range): Likewise.
1923 (output_probe_stack_range): Likewise.
1924 (arm_expand_prologue): Factor out code dealing with the IP register
1925 for nested function and adjust it for stack checking.
1926 Invoke arm_emit_probe_stack_range if static builtin stack checking
1928 (thumb1_expand_prologue): Sorry out if static builtin stack checking
1930 (arm_expand_epilogue): Add the saved static chain register, if any, to
1931 the amount of pre-pushed registers to pop.
1932 (arm_frame_pointer_required): Return true if static stack checking is
1933 enabled and we want to catch the exception with the EABI unwinder.
1934 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
1935 (UNSPEC_PROBE_STACK_RANGE): Likewise.
1936 * config/arm/arm.md (probe_stack): New insn.
1937 (probe_stack_range): Likewise.
1939 2015-09-17 Richard Biener <rguenther@suse.de>
1941 * genmatch.c (parser::parse_expr): Improve error message
1942 for mis-placed flags.
1944 2015-09-17 Richard Biener <rguenther@suse.de>
1946 * passes.c (rest_of_decl_compilation): Always call early_global_decl
1947 debug hook when we created a varpool node.
1948 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
1949 dwarf2out_early_global_decl, when not just add location or
1950 value attributes to existing DIEs.
1952 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
1954 * config/aarch64/aarch64.md (copysigndf3): New.
1955 (copysignsf3): Likewise.
1957 2015-09-17 David S. Miller <davem@davemloft.net>
1959 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
1960 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
1961 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1962 (HARD_REGNO_CALLER_SAVE_MODE): Define.
1963 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1964 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1965 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1966 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1967 provide when flag_pic.
1969 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
1971 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
1972 object_allocator change.
1974 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1976 PR tree-optimization/66388
1977 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
1978 (dump_iv): Dump no_overflow information.
1979 (alloc_iv): Initialize new field for struct iv.
1980 (mark_bivs): Count number of no_overflow bivs.
1981 (find_deriving_biv_for_expr, record_biv_for_address_use): New
1983 (idx_find_step): Call new functions above.
1984 (add_candidate_1, add_candidate): New paramter.
1985 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
1986 (get_computation_aff): Simplify convertion of cand for BIV.
1987 (get_computation_cost_at): Step cand's base if necessary.
1989 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1991 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
1993 (tree_simplify_using_condition): Ditto.
1994 (simplify_using_initial_conditions): Ditto.
1995 (loop_exits_before_overflow): Pass new argument to function
1996 simplify_using_initial_conditions. Remove case for type conversions
1998 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
2000 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
2001 in iv base using loop initial conditions.
2003 2015-09-16 Jeff Law <law@redhat.com>
2005 PR tree-optimization/47679
2006 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
2007 (free_all_edge_infos): Use it.
2008 (allocate_edge_info): Free preexisting edge info data.
2009 (pass_dominator::execute): Set up initial edge info structures.
2010 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
2012 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
2013 If non-null, then push/pop markers appropriately.
2014 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
2015 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
2018 2015-09-16 James Bowman <james.bowman@ftdichip.com>
2020 * config/ft32/ft32.c: Fix the memory address space predicate.
2022 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
2025 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
2026 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
2028 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2030 * toplev.h (check_global_declaration): Remove declaration.
2031 * toplev.c (check_global_declaration): Move to ...
2032 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
2033 (analyze_functions): Update call.
2035 2015-09-16 David S. Miller <davem@davemloft.net>
2037 * lra-constraints.c (simplify_operand_subreg): Do not assume that
2038 lowpart of a SUBREG has offset zero.
2040 2015-09-16 Jeff Law <law@redhat.com>
2042 PR tree-optimization/47679
2043 * tree-ssa-dom.c (enum expr_kind): Moved from here to
2044 tree-ssa-scopedtables.h.
2045 (struct hashable_expr, class expr_hash_elt): Likewise.
2046 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
2047 Move associated methods into tree-ssa-scopedtables.c.
2048 (avail_expr_hash, initialize_expr_from_cond): Similarly.
2049 (hashable_expr_equal_p, add_expr_commutative): Likewise.
2050 (add_hashable_expr): Likewise.
2051 (record_cond): Delete element directly.
2052 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
2053 private copy ctor and assignment operator methods.
2054 (expr_elt_hasher): Inline trivial methods.
2055 (initialize_expr_from_cond): Prototype.
2056 * tree-ssa-scopedtables.c: Add necessary includes, functions and
2057 methods that were previously in tree-ssa-dom.c. Improve various
2060 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
2062 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
2064 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
2067 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
2070 2015-09-16 Richard Biener <rguenther@suse.de>
2073 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
2074 location of possibly shared trees.
2076 2015-09-16 Richard Biener <rguenther@suse.de>
2079 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
2081 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
2083 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
2084 offset and size computations instead of HOST_WIDE_INT.
2086 2015-09-16 Richard Biener <rguenther@suse.de>
2089 * fold-const.c (extract_muldiv_1): Properly extend multiplication
2090 result before builting a tree via wide_int_to_tree.
2092 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
2094 * Makefile.in: Add memory-block.cc
2095 (pool_allocator::initialize): Use fixed block size.
2096 (pool_allocator::release): Use memory_block_pool.
2097 (pool_allocator::allocate): Likewise.
2098 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
2100 * cfg.c (initialize_original_copy_tables): Likewise.
2101 * cselib.c (elt_list_pool, elt_loc_list_pool,
2102 cselib_val_pool): Likewise.
2103 * df-problems.c (df_chain_alloc): Likewise.
2104 * df-scan.c (df_scan_alloc): Likewise.
2105 * dse.c (cse_store_info_pool, rtx_store_info_pool,
2106 read_info_type_pool, insn_info_type_pool, bb_info_pool,
2107 group_info_pool, deferred_change_pool): Likewise.
2108 * et-forest.c (et_nodes, et_occurrences): Likewise.
2109 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
2110 ipcp_agg_lattice_pool): Likewise.
2111 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
2112 * ipa-profile.c (histogram_pool): Likewise.
2113 * ipa-prop.c (ipa_refdesc_pool): Likewise.
2114 * ira-build.c (live_range_pool, allocno_pool, object_pool,
2115 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
2116 * ira-color.c (update_cost_record_pool): Likewise.
2117 * lra-lives.c (lra_live_range_pool): Likewise.
2118 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
2119 * memory-block.cc: New file.
2120 * memory-block.h: New file.
2121 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
2122 * sched-deps.c (sched_deps_init): Likewise.
2123 * sel-sched-ir.c (sched_lists_pool): Likewise.
2124 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
2125 * tree-sra.c (access_pool): Likewise.
2126 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
2127 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
2128 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
2129 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
2130 * tree-ssa-strlen.c (strinfo_pool): Likewise.
2131 * tree-ssa-structalias.c (variable_info_pool): Likewise.
2132 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
2133 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
2135 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
2137 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
2139 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
2142 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
2144 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
2145 to pass TLS call argument, according to current ABI.
2146 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
2147 callx0 for TLS call, according to current ABI.
2149 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
2151 * tree-eh.c (lower_try_finally_dup_block): Clear location information
2152 on stack restore statements.
2153 (decide_copy_try_finally): Do not consider a stack restore statement as
2154 coming from sources.
2156 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
2158 * config/alpha/alpha.c (alpha_expand_block_clear): Use
2159 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
2161 2015-09-15 Jeff Law <law@redhat.com>
2163 PR tree-optimization/47679
2164 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
2165 methods and private members.
2166 (avail_exprs_stack): Similarly. Change type of global
2167 from a pair of expr_hash_elt_t to the new class.
2168 (expr_elt_hasher::hash): Corresponding changes.
2169 (expr_elt_hasher::equal): Similarly.
2170 (avail_expr_hash): Similarly.
2171 (pass_dominator::execute): Similarly.
2172 (dom_opt_dom_walker::thread_across_edge): Similarly.
2173 (record_cond): Similarly.
2174 (dom_opt_dom_walker::before_dom_children): Similarly.
2175 (dom_opt_dom_walker::after_dom_children): Similarly.
2176 (lookup_avail_expr): Likewise.
2177 (initialize_hash_element): Now a expr_hash_elt constructor.
2178 (initialize_hash_element_from_expr): Similarly.
2179 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
2180 (free_expr_hash_elt): Call dtor for the element.
2181 (remove_local_expressions_from_table): Now the "pop_to_marker"
2182 method in the available_exprs_stack class.
2183 (avail_expr_stack::record_expr): Method factored out.
2184 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
2186 (hashable_expr_equal_p): Fix formatting.
2188 2015-09-15 David Malcolm <dmalcolm@redhat.com>
2190 * input.h (location_get_source_line): Drop "expanded_location"
2191 param in favor of a file and line number.
2192 * input.c (location_get_source_line): Likewise.
2193 (dump_location_info): Update for change in signature of
2194 location_get_source_line.
2195 * diagnostic.c (diagnostic_print_caret_line): Likewise.
2197 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
2199 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
2200 Bump to 4KB for SJLJ exceptions.
2201 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
2202 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
2203 * doc/tm.texi: Regenerate.
2205 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2207 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
2208 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
2211 2015-09-15 Richard Biener <rguenther@suse.de>
2213 PR tree-optimization/67470
2214 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
2215 structure for PHI hoisting by inserting a forwarder block
2218 2015-09-15 Christian Bruel <christian.bruel@st.com>
2220 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
2221 (arm_option_print): New function.
2223 2015-09-15 Christian Bruel <christian.bruel@st.com>
2226 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
2227 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
2228 Remove flags parameter.
2229 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
2230 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
2231 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
2232 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
2233 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
2234 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
2235 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
2236 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
2238 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2240 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
2242 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
2243 AARCH64_VALID_SIMD_DREG_MODE.
2245 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2247 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
2248 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
2249 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
2250 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
2251 aarch64_ld4_lane<mode>): Combine together, making...
2252 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
2253 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
2254 aarch64_st4_lane<mode>): Combine together, making...
2255 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
2256 * config/aarch64/iterators.md (nregs): Add comment.
2258 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2260 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
2261 Change operand mode from <V_TWO_ELEM> to BLK.
2262 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
2263 (aarch64_vec_store_lanesoi_lane<mode): Likewise
2264 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
2265 (aarch64_ld2_lane<mode>): Likewise.
2266 (aarch64_st2_lane<VQ:mode>): Likewise.
2267 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
2269 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2271 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
2272 Change operand mode from <V_FOUR_ELEM> to BLK.
2273 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
2274 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
2275 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
2276 (aarch64_ld4_lane<mode>): Likewise.
2277 (aarch64_st4_lane<mode>): Likewise.
2278 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
2280 2015-09-15 Richard Biener <rguenther@suse.de>
2283 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
2284 transfer EH info from old to new stmt.
2285 (replace_call_with_value): Likewise.
2286 (replace_call_with_call_and_fold): Likewise.
2287 (gimple_fold_builtin_memory_op): Likewise.
2288 (gimple_fold_builtin_memset): Likewise.
2289 (gimple_fold_builtin_stpcpy): Likewise.
2290 (gimple_fold_call): Likewise.
2292 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2294 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
2296 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
2297 (aarch64_simd_intEI_type_node): Likewise.
2298 (aarch64_simd_builtin_std_type): Remove EImode case.
2299 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
2300 * config/aarch64/aarch64-modes.def: Remove EImode.
2302 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2304 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
2305 Change operand mode from <V_THREE_ELEM> to BLK.
2306 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
2307 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
2308 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
2309 (aarch64_ld3_lane<mode>): Likewise.
2310 (aarch64_st3_lane<mode>): Likewise.
2311 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
2313 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2315 * config/aarch64/aarch64-simd.md
2316 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
2317 Change all TImode operands to BLKmode.
2318 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
2319 Change all EImode operands to BLKmode.
2320 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
2321 Change all OImode operands to BLKmode.
2323 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
2324 and call set_mem_size.
2325 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
2327 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
2329 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2331 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
2333 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
2335 (vec_store_lanesci_lane<mode>): Rename to...
2336 (aarch64_vec_store_lanesci_lane<mode>): ...this.
2338 (vec_store_lanesxi_lane<mode>): Rename to...
2339 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
2341 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
2342 aarch64_st4_lane<mode>): Follow renaming.
2344 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2346 * config/s390/s390.c (s390_const_operand_ok): Add missing
2349 2015-09-15 Richard Biener <rguenther@suse.de>
2352 * lto-streamer.h (lto_location_cache::current_sysp): Properly
2354 * lto-streamer-out.c (clear_line_info): Likewise.
2356 2015-09-15 Richard Biener <rguenther@suse.de>
2358 * doc/match-and-simplify.texi: Fix wording.
2360 2015-09-15 Bin Cheng <bin.cheng@arm.com>
2362 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
2363 unnecessary type conversion in op1.
2365 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
2367 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
2368 (dup_block_and_redirect): Delete function.
2369 (can_dup_for_shrink_wrapping): New function.
2370 (fix_fake_fallthrough_edge): New function.
2371 (try_shrink_wrapping): Rewrite function.
2372 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
2374 2015-09-14 Rich Felker <dalias@libc.org>
2376 * configure.ac: Change target pattern for sh TLS support
2377 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
2378 * configure: Regenerate.
2380 2015-09-14 Jeff Law <law@redhat.com>
2382 PR tree-optimization/47679
2383 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
2384 type rather than void *.
2386 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2389 * diagnostic.c (diagnostic_initialize): Do not set
2390 some_warnings_are_errors.
2391 (diagnostic_finish): Use DK_WERROR count instead.
2392 (diagnostic_report_diagnostic): Do not set
2393 some_warnings_are_errors.
2394 * diagnostic.h (struct diagnostic_context): Remove
2395 some_warnings_are_errors.
2397 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
2399 * config/sparc/predicates.md (const_all_ones_operand): Use
2400 CONSTM1_RTX to simplify definition.
2402 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
2405 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
2408 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
2410 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
2411 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
2412 OPT_fshow_column to handled saved option cases.
2413 (append_compiler_options): Do not skip the above added options.
2415 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2418 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
2419 nopcrelative_literal_loads.
2420 (aarch64_classify_address): Likewise.
2421 (aarch64_constant_pool_reload_icode): Define.
2422 (aarch64_secondary_reload): Handle secondary reloads for
2424 (aarch64_override_options): Handle nopcrelative_literal_loads.
2425 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
2426 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
2428 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
2429 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
2430 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
2432 * doc/invoke.texi (mpc-relative-literal-loads): Document.
2434 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
2437 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
2438 sync_compare_and_swap_optab libcall to target_oval.
2440 2015-09-14 Marek Polacek <polacek@redhat.com>
2442 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
2444 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
2446 2015-09-11 Mark Wielaard <mjw@redhat.com>
2449 * toplev.c (check_global_declaration): Check and use
2450 warn_unused_const_variable.
2451 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
2452 (-Wunused-variable): Remove non-constant. For C implies
2453 -Wunused-const-variable.
2454 (-Wunused-const-variable): New.
2456 2015-09-14 Richard Biener <rguenther@suse.de>
2458 * doc/match-and-simplify.texi: Update for changed syntax
2459 of inner ifs and the new switch expression.
2461 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
2463 * config/i386/haswell.md: New file describing Haswell pipeline.
2464 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
2465 haswell-like processors.
2466 (ix86_reassociation_width): Increase reassociation width for 64-bit
2467 Haswell processor family.
2468 * config/i386/i386.md: Introduce haswell cpu and include new md file.
2470 2015-09-14 Richard Biener <rguenther@suse.de>
2472 * doc/match-and-simplify.texi: Fixup some formatting issues
2473 and document the 's' flag.
2475 2015-09-13 Olivier Hainque <hainque@adacore.com>
2476 Eric Botcazou <ebotcazou@adacore.com>
2478 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
2479 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
2480 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
2481 (TARGET_CPU_gr5): Likewise.
2482 (TARGET_CPU_gr6): Likewise.
2483 (MULTILIB_DEFAULTS): Likewise.
2484 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
2485 for mcpu=gr5 and mcpu=gr6.
2486 (MULTILIB_DIRNAMES): Adjust accordingly.
2488 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2490 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
2491 (mem_ref_p): Likewise.
2492 (outermost_indep_loop): Adjust.
2493 (mem_ref_in_stmt): Likewise.
2494 (determine_max_movement): Likewise.
2495 (mem_ref_alloc): Likewise.
2496 (record_mem_ref_loc): Likewise.
2497 (set_ref_stored_in_loop): Likewise.
2498 (mark_ref_stored): Likewise.
2499 (gather_mem_refs_stmt): Likewise.
2500 (mem_refs_may_alias_p): Likewise.
2501 (for_all_locs_in_loop): Likewise.
2502 (struct rewrite_mem_ref_loc): Likewise.
2503 (rewrite_mem_refs): Likewise.
2504 (struct first_mem_ref_loc_1): Likewise.
2505 (first_mem_ref_loc): Likewise.
2506 (struct sm_set_flag_if_changed): Likewise.
2507 (execute_sm_if_changed_flag_set): Likewise.
2508 (execute_sm): Likewise.
2509 (hoist_memory_references):
2510 (struct ref_always_accessed): Likewise.
2511 (ref_always_accessed_p): Likewise.
2512 (refs_independent_p): Likewise.
2513 (record_dep_loop): Likewise.
2514 (ref_indep_loop_p_1): Likewise.
2515 (ref_indep_loop_p_2): Likewise.
2516 (ref_indep_loop_p): Likewise.
2517 (can_sm_ref_p): Likewise.
2518 (find_refs_for_sm): Likewise.
2519 (tree_ssa_lim_finalize): Likewise.
2521 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2523 * dwarf2out.c (dw_attr_ref): Remove typedef.
2524 (dw_line_info_ref): Likewise.
2525 (pubname_ref): Likewise.
2526 (dw_ranges_ref): Likewise.
2527 (dw_ranges_by_label_ref): Likewise.
2528 (comdat_type_node_ref): Likewise.
2530 (get_AT_low_pc): Likewise.
2531 (get_AT_hi_pc): Likewise.
2532 (get_AT_string): Likewise.
2533 (get_AT_flag): Likewise.
2534 (get_AT_unsigned): Likewise.
2535 (get_AT_ref): Likewise.
2536 (get_AT_file): Likewise.
2537 (remove_AT): Likewise.
2538 (print_die): Likewise.
2539 (check_die): Likewise.
2540 (die_checksum): Likewise.
2541 (attr_checksum_ordered): Likewise.
2542 (struct checksum_attributes): Likewise.
2543 (collect_checksum_attributes): Likewise.
2544 (die_checksum_ordered): Likewise.
2545 (same_die_p): Likewise.
2546 (is_declaration_die): Likewise.
2547 (clone_die): Likewise.
2548 (clone_as_declaration): Likewise.
2549 (copy_declaration_context): Likewise.
2550 (break_out_comdat_types): Likewise.
2551 (copy_decls_walk): Likewise.
2552 (output_location_lists): Likewise.
2553 (external_ref_hasher::hash): Likewise.
2554 (optimize_external_refs_1): Likewise.
2555 (build_abbrev_table): Likewise.
2556 (size_of_die): Likewise.
2557 (unmark_all_dies): Likewise.
2558 (size_of_pubnames): Likewise.
2559 (output_die_abbrevs): Likewise.
2560 (output_die): Likewise.
2561 (output_pubnames): Likewise.
2562 (add_ranges_num): Likewise.
2563 (add_ranges_by_labels): Likewise.
2564 (add_high_low_attributes): Likewise.
2565 (gen_producer_string): Likewise.
2566 (dwarf2out_set_name): Likewise.
2567 (new_line_info_table): Likewise.
2568 (prune_unused_types_walk_attribs): Likewise.
2569 (prune_unused_types_update_strings): Likewise.
2570 (prune_unused_types): Likewise.
2571 (resolve_addr): Likewise.
2572 (optimize_location_lists_1): Likewise.
2573 (index_location_lists): Likewise.
2574 (dwarf2out_finish): Likewise.
2576 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2578 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
2580 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2582 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
2583 (dump_asserts_for): Adjust.
2584 (register_new_assert_for): Likewise.
2585 (process_assert_insertions): Likewise.
2586 (insert_range_assertions): Likewise.
2588 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2590 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
2592 (new_temp_expr_table): Adjust.
2593 (free_temp_expr_table): Likewise.
2594 (version_to_be_replaced_p): Likewise.
2595 (make_dependent_on_partition): Likewise.
2596 (add_to_partition_kill_list): Likewise.
2597 (remove_from_partition_kill_list): Likewise.
2598 (add_dependence): Likewise.
2599 (finished_with_expr): Likewise.
2600 (process_replaceable): Likewise.
2601 (kill_expr): Likewise.
2602 (kill_virtual_exprs): Likewise.
2603 (mark_replaceable): Likewise.
2604 (find_replaceable_in_bb): Likewise.
2605 (find_replaceable_exprs): Likewise.
2606 (debug_ter): Likewise.
2608 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2610 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
2611 (struct btr_user): Rename from btr_user_s.
2612 (struct btr_def): Rename from btr_def_s.
2613 (find_btr_def_group): Adjust.
2614 (add_btr_def): Likewise.
2615 (new_btr_user): Likewise.
2616 (note_other_use_this_block): Likewise.
2617 (compute_defs_uses_and_gen): Likewise.
2618 (link_btr_uses): Likewise.
2619 (build_btr_def_use_webs): Likewise.
2620 (block_at_edge_of_live_range_p): Likewise.
2621 (btr_def_live_range): Likewise.
2622 (combine_btr_defs): Likewise.
2623 (move_btr_def): Likewise.
2624 (migrate_btr_def): Likewise.
2625 (migrate_btr_defs): Likewise.
2627 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2629 * var-tracking.c (shared_hash_def): Rename to shared_hash.
2630 (shared_hash): Remove typedef.
2631 (struct dataflow_set): Adjust.
2632 (shared_hash_unshare): Likewise.
2633 (dataflow_set_merge): Likewise.
2634 (vt_initialize): Likewise.
2635 (vt_finalize): Likewise.
2637 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2639 * var-tracking.c (struct location_chain): Rename from
2641 (struct variable_part): Adjust.
2642 (variable_htab_free): Likewise.
2643 (unshare_variable): Likewise.
2644 (get_init_value): Likewise.
2645 (get_addr_from_local_cache): Likewise.
2646 (drop_overlapping_mem_locs): Likewise.
2647 (val_reset): Likewise.
2648 (struct variable_union_info): Likewise.
2649 (variable_union): Likewise.
2650 (find_loc_in_1pdv): Likewise.
2651 (insert_into_intersection): Likewise.
2652 (intersect_loc_chains): Likewise.
2653 (canonicalize_loc_order_check): Likewise.
2654 (canonicalize_values_mark): Likewise.
2655 (canonicalize_values_star): Likewise.
2656 (canonicalize_vars_star): Likewise.
2657 (variable_merge_over_cur): Likewise.
2658 (remove_duplicate_values): Likewise.
2659 (variable_post_merge_new_vals): Likewise.
2660 (variable_post_merge_perm_vals): Likewise.
2661 (find_mem_expr_in_1pdv): Likewise.
2662 (dataflow_set_preserve_mem_locs): Likewise.
2663 (dataflow_set_remove_mem_locs): Likewise.
2664 (variable_part_different_p): Likewise.
2665 (onepart_variable_different_p): Likewise.
2666 (find_src_set_src): Likewise.
2667 (dump_var): Likewise.
2668 (set_slot_part): Likewise.
2669 (clobber_slot_part): Likewise.
2670 (delete_slot_part): Likewise.
2671 (vt_expand_var_loc_chain): Likewise.
2672 (emit_note_insn_var_location): Likewise.
2673 (vt_finalize): Likewise.
2675 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2677 * dse.c (store_info_t): Remove typedef.
2678 (group_info_t): Likewise.
2679 (const_group_info_t): Likewise.
2680 (deferred_change_t): Likewise.
2681 (get_group_info): Adjust.
2682 (free_store_info): Likewise.
2683 (canon_address): Likewise.
2684 (clear_rhs_from_active_local_stores): Likewise.
2685 (record_store): Likewise.
2686 (replace_read): Likewise.
2687 (check_mem_read_rtx): Likewise.
2688 (scan_insn): Likewise.
2689 (remove_useless_values): Likewise.
2690 (dse_step1): Likewise.
2691 (dse_step2_init): Likewise.
2692 (dse_step2_nospill): Likewise.
2693 (scan_stores_nospill): Likewise.
2694 (scan_reads_nospill): Likewise.
2695 (dse_step3_exit_block_scan): Likewise.
2696 (dse_step3): Likewise.
2697 (dse_step5_nospill): Likewise.
2698 (dse_step6): Likewise.
2700 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2702 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
2703 (alias_set_entry): Remove typedef.
2704 (alias_set_subset_of): Adjust.
2705 (alias_sets_conflict_p): Likewise.
2706 (init_alias_set_entry): Likewise.
2707 (get_alias_set): Likewise.
2708 (new_alias_set): Likewise.
2709 (record_alias_subset): Likewise.
2711 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
2713 * doc/install.texi (Downloading the source): Mark up
2714 contrib/download_prerequisites properly and drop leading "./".
2716 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2718 * config/arc/arc.h: Remove define of STRUCT_VALUE.
2719 * config/lm32/lm32.h: Likewise.
2720 * config/mep/mep.h: Likewise.
2721 * config/visium/visium.h: Likewise.
2722 * system.h: Poison STRUCT_VALUE macro.
2724 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
2726 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
2727 CONSTANT_P operands.
2729 2015-09-11 David S. Miller <davem@davemloft.net>
2731 * config/sparc/constraints.md: Make "U" constraint a real register
2733 * config/sparc/sparc.c (TARGET_LRA_P): Define.
2734 (D_MODES, DF_MODES): Add missing cast.
2735 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
2736 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
2737 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
2739 * config/sparc/sparc.h (PROMOTE_MODE): Define.
2740 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2741 provide these insn when flag_pic.
2743 2015-09-11 Jeff Law <law@redhat.com>
2745 PR tree-optimization/47679
2746 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
2747 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
2748 member with m_. Update inline member functions as necessary. Add
2750 * tree-ssa-scopedtables.c: Update const_and_copies's member
2751 functions to use m_ prefix to access the stack.
2753 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
2755 * graphite-optimize-isl.c (disable_tiling): Remove.
2756 (get_schedule_for_band): Do not use disable_tiling.
2757 (get_prevector_map): Delete function.
2758 (enable_polly_vector): Remove.
2759 (get_schedule_for_band_list): Remove dead code.
2761 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
2763 * graphite-optimize-isl.c (get_tile_map): Refactor.
2764 (get_schedule_for_band): Same.
2765 (getScheduleForBand): Same.
2766 (get_prevector_map): Same.
2767 (get_schedule_for_band_list): Same.
2768 (get_schedule_map): Same.
2769 (get_single_map): Same.
2770 (apply_schedule_map_to_scop): Same.
2771 (optimize_isl): Same.
2773 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2776 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
2778 * config/aarch64/iterators.md (GPF_TF_F16): New.
2781 2015-09-10 Nathan Sidwell <nathan@acm.org>
2783 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
2784 (nvptx_reorg): Adjust comments.
2786 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
2789 * configure.ac: Check if setenv and unsetenv are declared.
2790 * configure: Rebuild.
2791 * config.in: Rebuild.
2792 * system.h: Declare setenv and unsetenv if not declared.
2794 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2796 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
2797 commentary to simplify permute mask adjustment equation.
2798 (special_handling_values): Add SH_VPERM.
2799 (const_load_sequence_p): New function.
2800 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
2801 the mask loaded from the constant pool.
2802 (adjust_vperm): New function.
2803 (handle_special_swappables): Call adjust_vperm.
2804 (dump_swap_insn_table): Handle SH_VPERM.
2806 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
2808 * shrink-wrap.c (requires_stack_frame_p): Remove static.
2809 * shrink-wrap.h (requires_stack_frame_p): Put back.
2811 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
2813 * reload1.c (elimination_costs_in_insn): Locally turn
2814 -Wmaybe-uninitialized into a warning.
2816 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
2818 * shrink-wrap.c (requires_stack_frame_p): Make static.
2819 (prepare_shrink_wrap): Likewise.
2820 (dup_block_and_redirect): Likewise.
2821 * shrink-wrap.h: Remove declarations of those functions.
2823 2015-09-10 Mark Wielaard <mjw@redhat.com>
2825 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
2827 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
2830 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
2831 missing simplify_gen_subreg.
2833 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2835 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
2836 the vector element is bigger than 64 bit.
2838 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2840 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
2841 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
2843 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2845 * config/s390/s390.c: Add V1TImode to constant pool modes.
2847 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2850 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
2851 predicate. Set predicable_short_it attr to "no".
2853 2015-09-10 Jiong Wang <jiong.wang@arm.com>
2855 PR rtl-optimization/67421
2856 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
2857 left wide shift tranformation.
2859 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2861 * common/config/arc/arc-common.c: Remove references to A5.
2862 * config/arc/arc-opts.h: Likewise.
2863 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
2864 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
2865 * config/arc/t-arc-newlib: Likewise.
2867 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2869 * config/arc/arc.md (length): Fix attribute length for conditional
2870 executed instructions with long immediate.
2872 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2874 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
2875 type for second alternative.
2877 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
2879 * doc/invoke.texi (Downloading GCC): Mention
2880 contrib/download_prerequisites script.
2882 2015-09-10 Jakub Jelinek <jakub@redhat.com>
2885 * gimplify.c (gimplify_omp_for): If inner stmt is not found
2886 for combined loop, assert seen_error () and return GS_ERROR.
2889 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
2890 if decl is already in outer->variables.
2893 * gimplify.c (gimplify_scan_omp_clauses): Instead of
2894 asserting that decl is not specified in octx->variables,
2895 break out of the loop if it is.
2898 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
2899 iterator is not explicitly determined, but is defined inside
2900 of the combined workshare region, handle it like if it has
2901 DECL_EXPR in OMP_FOR_PRE_BODY.
2903 2015-09-09 Nathan Sidwell <nathan@acm.org>
2905 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
2906 (*cmp<mode>): Add assembler spacing.
2907 (setcc_int<mode>, set_cc_float<mode>): Likewise.
2908 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
2910 (write_func_decl_from_insn): Refactor argument loops & comma emission.
2911 (nvptx_expand_call): Likewise.
2912 (nvptx_output_call_insn): Likewise.
2913 (nvptx_reorg_subreg): Add spacing.
2915 2015-09-09 Marek Polacek <polacek@redhat.com>
2918 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
2921 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2924 * doc/invoke.texi ([Wsubobject-linkage]): Document.
2926 2015-09-09 Tom de Vries <tom@codesourcery.com>
2928 * params-list.h: Add missing copyright notice.
2930 2015-09-09 Nathan Sidwell <nathan@acm.org>
2932 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
2933 sel_truesi, not andsi.
2935 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2937 * config/arm/arm.md (*subsi3_compare0): Rename to...
2938 (subsi3_compare0): ... This.
2939 (modsi3): New define_expand.
2940 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
2941 when operand is power of 2.
2943 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2945 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
2946 (*neg<mode>2_compare0): Rename to...
2947 (neg<mode>2_compare0): ... This.
2948 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
2949 Move check for speed inside the if-then-elses. Reflect
2950 CSNEG sequence in MOD by power of 2 case.
2952 2015-09-09 Alan Modra <amodra@gmail.com>
2955 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
2956 reload replacement for PRE_MODIFY address reg.
2958 2015-09-09 Sebastian Pop <s.pop@samsung.com>
2960 PR tree-optimization/53852
2961 * config.in: Regenerate.
2962 * configure: Regenerate.
2963 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
2964 * graphite-optimize-isl.c (optimize_isl): Stop computation when
2965 PARAM_MAX_ISL_OPERATIONS is reached.
2966 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
2967 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
2968 result equal to isl_stat_ok as the status now can be isl_error_quota.
2969 (subtract_commutative_associative_deps): Same.
2970 (compute_deps): Same.
2972 2015-09-08 Aditya Kumar <hiraditya@msn.com>
2973 Sebastian Pop <s.pop@samsung.com>
2975 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2976 Return the parameter if it was saved in corresponding
2977 parameter_rename_map of the region.
2978 (copy_def): Copy def from sese region to the newly created region.
2979 (copy_internal_parameters): Copy all the internal parameters defined
2980 within a region to the newly created region.
2981 (graphite_regenerate_ast_isl): Copy parameters to the new region before
2982 translating isl to gimple.
2983 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
2984 the loop-nest does not have any data-references.
2985 (build_graphite_scops): Create a scop only when there is at least one
2987 (contains_only_close_phi_nodes): Deleted.
2988 (print_graphite_scop_statistics): Deleted
2989 (print_graphite_statistics): Deleted
2990 (limit_scops): Deleted.
2991 (build_scops): Removed call to limit_scops.
2992 * sese.c (new_sese): Construct.
2993 (free_sese): Destruct.
2994 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
2996 (set_rename): Pass sese region so that parameters inside the region can
2997 be added to its parameter_rename_map.
2998 (rename_uses): Pass sese region.
2999 (graphite_copy_stmts_from_block): Do not copy parameters that have been
3000 generated in the header of the scop. For each SSA_NAME in the
3001 parameter_rename_map rename its usage.
3002 (invariant_in_sese_p_rec): Return false if tree t is defined outside
3004 (scalar_evolution_in_region): If the tree t is invariant just return t.
3005 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
3006 struct sese to keep track of all the parameters which need renaming.
3007 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
3009 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
3011 2015-09-08 Tom de Vries <tom@codesourcery.com>
3013 * Makefile.in (generated_files): Add params.list.
3014 (params.list, s-params.list): Add rule.
3015 * params.h (enum compiler_param): Include params-list.h. Move define
3016 DEFPARAM, include params.def and undef DEFPARAM ...
3017 * params-list.h: ... here. New file.
3019 2015-09-08 David Malcolm <dmalcolm@redhat.com>
3021 * pretty-print.h (printer_fn): Fix typo in comment.
3023 2015-09-07 Jeff Law <law@redhat.com>
3025 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
3027 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
3029 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
3030 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
3031 (arm_neon_fp16_hw): New.
3033 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
3035 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
3036 UNITS_PER_WORD >= 4.
3038 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
3040 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
3041 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
3042 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
3043 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
3044 (aarch64_float_extend_lo_v2df): Rename to...
3045 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
3047 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
3048 (float_extend_lo): Add v4sf.
3050 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
3051 * config/aarch64/iterators.md (VQ_HSF): New iterator.
3052 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
3053 (Vwide): New mode_attr.
3055 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
3057 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
3058 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
3059 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
3060 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
3061 V4HF and V8HF variants to iterator.
3063 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
3065 * config/aarch64/iterators.md (VDQF_F16): New.
3066 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
3068 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
3070 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
3071 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
3072 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
3073 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
3074 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
3075 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
3076 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
3077 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
3078 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
3079 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
3080 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
3081 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
3082 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
3083 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
3084 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
3085 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
3086 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
3087 vld1q_dup_f16): New.
3089 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
3091 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
3092 Reparameterize to...
3093 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
3094 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
3095 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
3097 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
3099 (float_truncate_lo_): Use BUILTIN_VDF iterator.
3101 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
3103 * config/aarch64/iterators.md (VDF, Vdtype): New.
3104 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
3106 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
3108 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
3109 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
3110 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
3111 Add __builtin_aarch64_simd_hf.
3112 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
3113 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
3114 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
3115 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
3116 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
3117 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
3118 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
3119 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
3120 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
3122 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
3123 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
3124 (VDC, Vdbl): Add V4HF.
3126 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
3128 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
3129 V4HFmode and V8HFmode.
3130 (aarch64_split_simd_move): Add case for V8HFmode.
3131 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
3132 (aarch64_simd_builtin_std_type): Handle HFmode.
3133 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
3135 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
3136 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
3137 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
3139 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
3142 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
3143 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
3145 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
3146 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
3147 vst1q_lane_f16): New.
3148 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
3149 (VALLDI_F16, VALL_F16): New.
3150 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
3151 Add cases for V4HF and V8HF.
3152 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
3154 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
3156 * config/arm/arm-builtins.c (VAR11, VAR12): New.
3157 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
3158 vld4_dup): Add v4hf variant.
3159 (vget_high, vget_low): Add v8hf variant.
3160 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
3161 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
3162 v4hf and v8hf variants.
3164 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
3166 (V_DOUBLE): Add case for V4HF.
3168 (V_HALF): Add case for V8HF.
3169 (VDQX): Add V4HF, V8HF.
3170 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
3171 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
3173 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
3174 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
3175 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
3176 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
3177 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
3178 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
3179 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
3180 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
3181 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
3183 (neon_vcreate, neon_vreinterpretv8qi<mode>,
3184 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
3185 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
3186 Change VDX to VD_RE.
3188 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
3189 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
3190 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
3192 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
3193 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
3194 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
3195 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
3196 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
3197 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
3198 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
3199 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
3200 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
3202 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
3204 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
3205 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
3206 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
3207 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
3208 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
3209 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
3210 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
3211 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
3212 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
3213 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
3216 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
3218 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
3220 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
3222 * config/arm/arm-builtins.c (v8hf_UP): New.
3223 (arm_init_simd_builtin_types): Initialise Float16x8_t.
3225 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
3227 * config/arm/arm_neon.h (float16x8_t): New typedef.
3229 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
3231 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
3232 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
3233 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
3234 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
3235 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
3236 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
3237 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
3238 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
3239 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
3240 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
3242 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
3244 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
3245 non-alphanumeric characters in the symbol name.
3247 2015-09-07 Marek Polacek <polacek@redhat.com>
3250 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
3253 2015-09-07 Marek Polacek <polacek@redhat.com>
3255 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
3257 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
3259 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
3262 2015-09-04 Jakub Jelinek <jakub@redhat.com>
3265 * tree-ssa-live.c: Include cfgloop.h.
3266 (remove_unused_locals): Clear loop->simduid if simduid is about
3267 to be removed from cfun->local_decls.
3269 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3272 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
3275 2015-09-04 Tom de Vries <tom@codesourcery.com>
3277 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
3279 2015-09-04 Jeff Law <law@redhat.com>
3281 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
3282 unnecessary constructor. It's now trivial and implemented inside...
3283 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
3284 constructor. Add comments to various methods. Remove unused
3286 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
3287 * tree-vrp.c (identify_jump_threads): Likewise.
3288 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
3290 (thread_across_edge): Similarly.
3291 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
3292 arguments in constructor call.
3294 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
3296 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
3297 temp path contains a '-'.
3299 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
3300 Petr Murzin <petr.murzin@intel.com>
3301 Kirill Yukhin <kirill.yukhin@intel.com>
3303 * config/i386/i386-builtin-types.def
3304 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
3305 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
3306 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
3307 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
3308 * config/i386/i386.c
3309 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
3310 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
3311 IX86_BUILTIN_SCATTERALTDIV16SI.
3312 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
3313 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
3314 __builtin_ia32_scatteraltdiv8si.
3315 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
3316 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
3317 IX86_BUILTIN_SCATTERALTDIV16SI.
3318 (ix86_vectorize_builtin_scatter): New.
3319 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
3320 ix86_vectorize_builtin_scatter.
3322 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
3323 Petr Murzin <petr.murzin@intel.com>
3324 Kirill Yukhin <kirill.yukhin@intel.com>
3326 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
3327 * doc/tm.texi: Regenerate.
3328 * target.def: Add scatter builtin.
3329 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
3330 for loads/stores in case of gather/scatter accordingly.
3331 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
3332 STMT_VINFO_GATHER_P(S).
3333 (vect_check_gather): Rename to ...
3334 (vect_check_gather_scatter): this.
3335 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
3336 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
3337 (vect_check_gather_scatter): Use it instead of vect_check_gather.
3338 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
3339 variable and new checkings for it accordingly.
3341 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
3342 STMT_VINFO_GATHER_P(S).
3343 (vect_check_gather_scatter): Use it instead of vect_check_gather.
3344 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
3346 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
3348 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
3350 (mulv16qi3): New define_expand.
3352 2015-09-03 Martin Sebor <msebor@redhat.com>
3355 * doc/extend.texi (Other Builtins): Document when the address
3356 of a built-in function can be taken.
3358 2015-09-03 Richard Biener <rguenther@suse.de>
3360 * dwarf2out.c (flush_limbo_die_list): Split out from ...
3361 (dwarf2out_early_finish): ... here.
3362 (dwarf2out_finish): Do not call dwarf2out_early_finish but
3363 flush_limbo_die_list. Assert we have no deferred asm names.
3365 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3367 * optabs.c (expand_binop): Don't create a broadcast vector with a
3368 source element wider than the inner mode.
3370 2015-09-03 Richard Biener <rguenther@suse.de>
3372 * varasm.c (output_constant): Use fold_convert instead of
3375 2015-09-03 Tom de Vries <tom@codesourcery.com>
3377 PR tree-optimization/65637
3378 * omp-low.c (expand_omp_for_static_chunk): Handle case that
3379 fin_bb has 2 predecessors.
3381 2015-09-03 Tom de Vries <tom@codesourcery.com>
3383 PR tree-optimization/65637
3384 * omp-low.c (find_phi_with_arg_on_edge): New function.
3385 (expand_omp_for_static_chunk): Fix inner loop phi.
3387 2015-09-03 Tom de Vries <tom@codesourcery.com>
3389 PR tree-optimization/65637
3390 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
3393 2015-09-03 Tom de Vries <tom@codesourcery.com>
3395 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
3397 2015-09-03 Tom de Vries <tom@codesourcery.com>
3399 * doc/invoke.texi (parloops-chunk-size): Add item.
3400 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
3401 * tree-parloops.c: Include params.h.
3402 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
3403 param parloops-chunk-size is used.
3405 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3408 * fold-const.c (fold_binary_loc) : Move
3409 Transform (x >> c) << c into x & (-1<<c) or
3410 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
3411 types using simplify and match.
3412 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
3413 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
3415 2015-09-03 Richard Biener <rguenther@suse.de>
3418 * tree-ssa-structalias.c (ctor_for_analysis): New function.
3419 (create_variable_info_for_1): Use ctor_for_analysis instead
3421 (create_variable_info_for): Likewise.
3423 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
3426 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
3427 in new callgraph edge.
3429 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
3434 * config/aarch64/aarch64-simd.md
3435 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
3436 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
3437 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
3438 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
3440 2015-09-02 Alan Modra <amodra@gmail.com>
3442 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
3443 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
3444 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
3446 2015-09-02 Alan Modra <amodra@gmail.com>
3449 * config/rs6000/predicates.md (current_file_function_operand): Don't
3450 return true for weak symbols.
3451 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
3453 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
3454 Andrew Bennett <andrew.bennett@imgtec.com>
3456 * config/mips/mips-opts.h (mips_cb_setting): New enum.
3457 * config/mips/mips-protos.h: Add definitions for
3458 mips_output_jump and mips_output_equal_conditional_branch
3459 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
3461 (mips_emit_compare): Add support for the MIPS R6 conditional
3463 (mips_process_sync_loop): Likewise.
3464 (mips_output_order_conditional_branch): Likewise.
3465 (mips16_build_call_stub): Change MIPS_CALL to
3467 (mips_print_operand_punctuation): Update 's' case to only
3468 apply to micromips r2.
3469 (mips_adjust_insn_length): Add support for forbidden slot
3471 (mips_avoid_hazard): Likewise.
3472 (mips_reorg_process_insns): Likewise.
3473 (mips_output_jump): New function.
3474 (mips_output_equal_conditional_branch): Likewise.
3475 (mips_output_conditional_branch): Use jrc/bc if compact
3476 branch support is enabled. Ensure the forbidden slots
3477 between the two branch instructions is filled with a nop.
3478 (mips_option_override): Add support to process the compact
3479 branch option and set the correct defaults. Prevent
3480 non-explict relocs being using for MIPS R6.
3481 (mips_trampoline_init): Add compact branch support.
3482 (mips_mult_zero_zero_cost): Allow zero initialisation of
3483 accumulators with TARGET_DSP.
3484 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
3485 (TARGET_CB_MAYBE): New define.
3486 (TARGET_CB_ALWAYS): New define.
3487 (ISA_HAS_DELAY_SLOTS): New define.
3488 (ISA_HAS_COMPACT_BRANCHES): New define.
3489 (ISA_HAS_JRC): New define.
3490 (MIPS_BRANCH_C): New define.
3491 (MIPS_CALL): Removed.
3492 (MICROMIPS_J): Removed.
3493 * config/mips/mips.md (compact_form): New attr.
3494 (hazard): Add support for forbidden slots.
3495 (define_delay): Add support for compact branches.
3496 (*branch_order<mode>): Likewise.
3497 (*branch_order<mode>_inverted): Likewise.
3498 (*branch_equality<mode>): Likewise.
3499 (*branch_equality<mode>_inverted): Likewise.
3500 (*jump_absolute): Likewise.
3501 (*jump_pic): Likewise.
3502 (indirect_jump): Use mips_output_jump to produce assembly output.
3503 (tablejump_<mode>"): Likewise.
3504 (*<optab>"): Likewise.
3505 (<optab>_internal): Likewise.
3506 (sibcall_internal): Likewise.
3507 (sibcall_value_internal): Likewise.
3508 (sibcall_value_multiple_internal): Likewise.
3509 (call_internal): Likewise.
3510 (call_split): Likewise.
3511 (call_internal_direct): Likewise.
3512 (call_direct_split): Likewise.
3513 (call_value_internal): Likewise.
3514 (call_value_split): Likewise.
3515 (call_value_internal_direct): Likewise.
3516 (call_value_direct_split): Likewise.
3517 (call_value_multiple_internal): Likewise.
3518 (call_value_multiple_split): Likewise.
3519 (mips_get_fcsr_mips16_<mode>): Likewise.
3520 (mips_set_fcsr_mips16_<mode>): Likewise.
3521 (tls_get_tp_mips16_<mode>): Likewise.
3522 * config/mips/mips.opt: Add -mcompact-branches option.
3523 * config/mips/predicates.md (order_operator): Ensure the
3524 conditional compact branches are only used if the ISA them.
3525 * doc/invoke.texi: Document -mcompact-branches option.
3527 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
3530 * lra-lives.c (process_bb_lives): Process move pseudos with the
3531 same value for copies and preferences
3532 * lra-constraints.c (match_reload): Create match reload pseudo
3533 with the same value from single dying input pseudo.
3535 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
3538 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
3540 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
3542 * trans-mem.c: Add contributed-by.
3543 * trans-mem.h: Same.
3545 2015-09-01 Richard Biener <rguenther@suse.de>
3547 * expr.c (expand_expr_real_1): For expanding TERed defs
3548 set the current location to that of the def if not UNKNOWN.
3550 2015-09-01 David Sherwood <david.sherwood@arm.com>
3552 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
3554 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3556 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
3557 then_cost, else_cost fields. Change branch_cost field to unsigned int.
3558 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
3560 (noce_simple_bbs): New function.
3561 (noce_try_move): Bail if basic blocks are not simple.
3562 (noce_try_store_flag): Likewise.
3563 (noce_try_store_flag_constants): Likewise.
3564 (noce_try_addcc): Likewise.
3565 (noce_try_store_flag_mask): Likewise.
3566 (noce_try_cmove): Likewise.
3567 (noce_try_minmax): Likewise.
3568 (noce_try_abs): Likewise.
3569 (noce_try_sign_mask): Likewise.
3570 (noce_try_bitop): Likewise.
3571 (bbs_ok_for_cmove_arith): New function.
3572 (noce_emit_all_but_last): Likewise.
3573 (noce_emit_insn): Likewise.
3574 (noce_emit_bb): Likewise.
3575 (noce_try_cmove_arith): Handle non-simple basic blocks.
3576 (insn_valid_noce_process_p): New function.
3577 (contains_mem_rtx_p): Likewise.
3578 (bb_valid_for_noce_process_p): Likewise.
3579 (noce_process_if_block): Allow non-simple basic blocks
3582 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
3584 * tree-ssa-dom.c (record_equivalences_from_phis,
3585 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
3586 (lookup_avail_expr): Likewise, and remove comment and unused temp.
3588 2015-09-01 Nick Clifton <nickc@redhat.com>
3590 * config/msp430/msp430.opt (mcpu): Fix typo.
3592 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3594 * config/aarch64/aarch64.c (aarch64_set_current_function):
3595 Re-layout any vector parameters have non-simd layout.
3596 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
3598 (aarch64_simd_expand_args): Delete call to the above.
3600 2015-08-31 Mike Frysinger <vapier@gentoo.org>
3602 * doc/invoke.texi (asan-stack): Add space before option.
3604 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
3606 * tree.h (zerop): New function.
3607 * tree.c (zerop): Likewise.
3608 (element_precision): Handle expressions.
3609 * match.pd (define_predicates): Add zerop.
3610 (x <= +Inf): Fix comment.
3611 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
3612 * fold-const.c (fold_binary_loc): ... here. Remove.
3614 2015-08-31 Richard Biener <rguenther@suse.de>
3617 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
3619 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
3621 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
3622 (CEXPI): New operator list.
3623 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
3624 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
3626 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
3628 2015-08-31 Tom de Vries <tom@codesourcery.com>
3630 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
3631 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
3633 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
3634 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
3635 (rewrite_into_loop_closed_ssa): ... here.
3636 (replace_uses_in_dominated_bbs): Remove function.
3637 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
3638 rewrite_into_loop_closed_ssa_1.
3640 2015-08-31 Michael Matz <matz@suse.de>
3642 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
3643 enter entry and exit blocks for reverse post order.
3645 2015-08-31 Richard Biener <rguenther@suse.de>
3647 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
3648 (lto_location_cache::current_sysp): Likewise.
3649 (output_block::current_sysp): Likewise.
3650 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
3651 (lto_location_cache::apply_location_cache): Properly record
3652 system header locations.
3653 (lto_location_cache::input_location): Input whether a file
3655 * lto-streamer-out.c (lto_output_location): Stream whether a file
3658 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3661 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
3663 2015-08-31 Tom de Vries <tom@codesourcery.com>
3665 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
3666 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
3667 Improve function header comments.
3669 2015-08-30 Michael Collison <michael.collison@linaro.org>
3672 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
3675 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3677 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
3678 special_handling bitfield.
3679 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
3680 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
3681 that represents a general xxpermdi.
3682 (insn_is_swappable_p): Add handling for vec_concat of two
3683 doublewords, which maps to a specific xxpermdi.
3684 (adjust_xxpermdi): New function.
3685 (adjust_concat): Likewise.
3686 (handle_special_swappables): Call adjust_xxpermdi and
3688 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
3690 2015-08-30 Rich Felker <dalias@libc.org>
3692 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
3693 case instead of sh[123456ble]-*-*.
3695 2015-08-29 Anatoly Sokolov <aesok@post.ru>
3697 * ira.c (print_unform_and_important_classes,
3698 print_translated_classes): Remove reg_class_names static array.
3699 (print_unform_and_important_classes): Rename to ...
3700 (print_uniform_and_important_classes): ... this.
3701 (ira_debug_allocno_classes): Update accordingly.
3703 2015-08-29 Tom de Vries <tom@codesourcery.com>
3705 PR tree-optimization/46193
3706 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
3709 2015-08-28 Jeff Law <law@redhat.com>
3712 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
3713 unable to find X NE 0 in the tables, return X as the simplified
3715 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
3716 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
3718 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
3719 after removing the control flow statement and unnecessary edges.
3721 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
3724 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3726 PR tree-optimization/67283
3727 * tree-sra.c (type_consists_of_records_p): Rename to...
3728 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3730 (completely_scalarize_record): Rename to...
3731 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
3733 (scalarize_elem): New.
3735 2015-08-28 Jiong Wang <jiong.wang@arm.com>
3737 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
3738 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
3739 (aarch64_symbol_type): Likewise.
3740 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3742 (aarch64_expand_mov_immediate): Likewise.
3743 (aarch64_print_operand): Likewise.
3744 (aarch64_classify_tls_symbol): Likewise.
3746 2015-08-28 Richard Biener <rguenther@suse.de>
3748 * cgraphunit.c (symbol_table::compile): Move early debug generation
3750 (symbol_table::finalize_compilation_unit): ... back here and
3751 add a !seen_error () guard.
3753 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3755 * toplev.c (process_options): Do not use flag_loop_block,
3756 flag_loop_interchange, and flag_loop_strip_mine. Add check for
3757 flag_loop_optimize_isl.
3759 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3761 * Makefile.in (OBJS): Remove graphite-blocking.o and
3762 graphite-interchange.o.
3763 * common.opt (floop-strip-mine, floop-interchange, floop-block):
3764 Alias of floop-nest-optimize.
3765 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
3766 Document as alias of -floop-nest-optimize.
3767 * graphite-blocking.c: Remove.
3768 * graphite-interchange.c: Remove.
3769 * graphite-optimize-isl.c: Include dumpfile.h.
3770 (getScheduleForBand): Add dump for tiled loops. Use
3771 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
3772 * graphite-poly.c (scop_max_loop_depth): Remove.
3773 (print_scattering_function_1): Remove.
3774 (print_scattering_function): Remove.
3775 (print_scattering_functions): Remove.
3776 (debug_scattering_function): Remove.
3777 (debug_scattering_functions): Remove.
3778 (apply_poly_transforms): Remove use of flag_loop_block,
3779 flag_loop_strip_mine, and flag_loop_interchange.
3780 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
3782 (print_pdr_access_layout): Remove.
3783 (print_pdr): Print ISL representation.
3784 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
3785 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
3787 (openscop_print_pbb_domain): Remove.
3788 (print_pbb): Remove call to print_scattering_function.
3789 (openscop_print_scop_context): Remove.
3790 (print_scop_context): Do not print matrices anymore.
3791 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
3792 SCOP_TRANSFORMED_SCHEDULE.
3793 (print_isl_set): Add printing of a new line.
3794 (print_isl_map): Same.
3795 (print_isl_aff): Same.
3796 (print_isl_constraint): Same.
3797 (loop_to_lst): Remove.
3798 (scop_to_lst): Remove.
3799 (lst_indent_to): Remove.
3800 (print_lst): Remove.
3801 (debug_lst): Remove.
3802 (dot_lst_1): Remove.
3804 (reverse_loop_at_level): Remove.
3805 (reverse_loop_for_pbbs): Remove.
3806 * graphite-poly.h (pdr_dim_iter_domain): Remove.
3807 (pdr_nb_params): Remove.
3808 (pdr_alias_set_dim): Remove.
3809 (pdr_subscript_dim): Remove.
3810 (pdr_iterator_dim): Remove.
3811 (pdr_parameter_dim): Remove.
3812 (same_pdr_p): Remove.
3813 (struct poly_scattering): Remove.
3814 (struct poly_bb): Remove _original, _transformed, _saved.
3815 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
3816 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
3817 (PBB_NB_LOCAL_VARIABLES): Remove.
3818 (PBB_NB_SCATTERING_TRANSFORM): Remove.
3819 (schedule_to_scattering): Remove.
3820 (number_of_write_pdrs): Remove.
3821 (pbb_dim_iter_domain): Remove.
3822 (pbb_nb_params): Remove.
3823 (pbb_nb_scattering_orig): Remove.
3824 (pbb_nb_scattering_transform): Remove.
3825 (pbb_nb_dynamic_scattering_transform): Remove.
3826 (pbb_nb_local_vars): Remove.
3827 (pbb_iterator_dim): Remove.
3828 (pbb_parameter_dim): Remove.
3829 (psco_scattering_dim): Remove.
3830 (psct_scattering_dim): Remove.
3831 (psct_local_var_dim): Remove.
3832 (psco_iterator_dim): Remove.
3833 (psct_iterator_dim): Remove.
3834 (psco_parameter_dim): Remove.
3835 (psct_parameter_dim): Remove.
3836 (psct_dynamic_dim): Remove.
3837 (psct_static_dim): Remove.
3838 (psct_add_local_variable): Remove.
3839 (new_lst_loop): Remove.
3840 (new_lst_stmt): Remove.
3843 (lst_add_loop_under_loop): Remove.
3844 (lst_depth): Remove.
3845 (lst_dewey_number): Remove.
3846 (lst_dewey_number_at_depth): Remove.
3849 (lst_find_pbb): Remove.
3850 (find_lst_loop): Remove.
3851 (lst_find_first_pbb): Remove.
3852 (lst_empty_p): Remove.
3853 (lst_find_last_pbb): Remove.
3854 (lst_contains_p): Remove.
3855 (lst_contains_pbb): Remove.
3856 (lst_create_nest): Remove.
3857 (lst_remove_from_sequence): Remove.
3858 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
3859 (lst_niter_for_loop): Remove.
3860 (pbb_update_scattering): Remove.
3861 (lst_update_scattering_under): Remove.
3862 (lst_update_scattering): Remove.
3863 (lst_insert_in_sequence): Remove.
3864 (lst_replace): Remove.
3865 (lst_substitute_3): Remove.
3866 (lst_distribute_lst): Remove.
3867 (lst_remove_all_before_including_pbb): Remove.
3868 (lst_remove_all_before_excluding_pbb): Remove.
3869 (struct scop): Remove original_schedule, transformed_schedule, and
3871 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
3872 (SCOP_SAVED_SCHEDULE): Remove.
3873 (poly_scattering_new): Remove.
3874 (poly_scattering_free): Remove.
3875 (poly_scattering_copy): Remove.
3876 (store_scattering_pbb): Remove.
3877 (store_lst_schedule): Remove.
3878 (restore_lst_schedule): Remove.
3879 (store_scattering): Remove.
3880 (restore_scattering_pbb): Remove.
3881 (restore_scattering): Remove.
3882 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3883 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
3884 compute the scattering polyhedron dimension from the dimension of
3886 (build_scop_scattering): Update call to
3887 build_pbb_scattering_polyhedrons.
3888 (build_poly_scop): Remove call to scop_to_lst.
3889 * graphite.c (graphite_transform_loops): Add call to print_scop.
3890 (gate_graphite_transforms): Remove use of flag_loop_block,
3891 flag_loop_interchange, and flag_loop_strip_mine.
3893 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3895 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
3896 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
3897 -floop-nest-optimize.
3898 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
3899 (generate_luj_sepclass): Remove.
3900 (generate_luj_options): Remove.
3901 (set_options): Remove opt_luj.
3902 (scop_to_isl_ast): Remove opt_luj.
3903 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
3904 flag_loop_unroll_jam.
3905 (getPrevectorMap_full): Remove.
3906 (getScheduleForBandList): Remove map_sepcl.
3907 (getScheduleMap): Same.
3908 (apply_schedule_map_to_scop): Remove sepcl.
3909 (optimize_isl): Same.
3910 * graphite-poly.c (apply_poly_transforms): Remove check for
3911 flag_loop_unroll_jam.
3912 (new_poly_bb): Remove map_sepclass.
3913 * graphite-poly.h (struct poly_bb): Same.
3914 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
3915 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
3916 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
3917 * toplev.c (process_options): Remove flag_loop_unroll_jam.
3919 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
3922 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
3924 (UNSPEC_ADD_CARRY): Remove.
3925 (addqi3_cconly_overflow): New expander.
3926 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
3927 Adjust for changed add<mode>3_carry.
3928 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
3929 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
3930 (<plusminus_insn><mode>3_carry): Remove expander.
3931 (*<plusminus_insn><mode>3_carry): Split insn pattern to
3932 add<mode>3_carry and sub<mode>3_carry.
3933 (plusminus_carry_mnemonic): Remove code attribute.
3934 (add<mode>3_carry): Canonicalize insn pattern.
3935 (*addsi3_carry_zext): Ditto.
3936 (sub<mode>3_carry): Ditto.
3937 (*subsi3_carry_zext): Ditto.
3938 (adcx<mode>3): Remove insn pattern.
3939 (addcarry<mode>): New insn pattern.
3940 (subborrow<mode>): Ditto.
3941 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
3942 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
3943 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
3944 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
3945 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
3946 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
3947 Rewrite expander to not clobber carry flag chains.
3949 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
3951 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
3952 instead of a rotate.
3954 2015-08-27 Marek Polacek <polacek@redhat.com>
3957 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
3958 an entry into an irreducible region.
3960 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3962 * configure: Regenerate.
3964 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3966 PR tree-optimization/67283
3967 * tree-sra.c (type_consists_of_records_p): Rename to...
3968 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3970 (completely_scalarize_record): Rename to...
3971 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
3972 (scalarize_elem): New.
3974 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3976 * tree-sra.c (completely_scalarize_var): Rename to...
3977 (create_total_scalarization_access): ... Here. Drop call to
3978 completely_scalarize_record.
3980 (analyze_all_variable_accesses): Replace completely_scalarize_var
3981 with create_total_scalarization_access and completely_scalarize_record.
3983 2015-08-27 Alan Modra <amodra@gmail.com>
3986 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
3989 2015-08-27 Richard Biener <rguenther@suse.de>
3991 * passes.c (rest_of_decl_compilation): Guard early_global_decl
3992 call with !seen_error ().
3993 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
3994 early debug generation and finish...
3995 (symbol_table::compile): ... here to put it after a !seen_error ()
3998 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4000 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
4003 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4004 Andre Vieira <andre.simoesdiasvieira@arm.com>
4006 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
4007 (*cb<optab><mode>1): Likewise.
4008 (*tb<optab><mode>1): Likewise.
4009 (*cb<optab><mode>1): Likewise.
4010 * config/aarch64/iterators.md (inv_cb): New code attribute.
4012 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
4013 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
4015 2015-08-27 Richard Biener <rguenther@suse.de>
4017 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
4019 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
4021 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
4024 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4026 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
4029 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
4031 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
4032 floating point in VSX registers.
4033 (rs6000_output_move_128bit): Always print out the set insn if we
4034 can't generate an appropriate 128-bit move.
4035 (rs6000_generate_compare): Add support for IEEE 128-bit floating
4036 point in VSX registers comparisons.
4037 (rs6000_expand_float128_convert): Likewise.
4039 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
4040 predicate for only GPR hard registers.
4042 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
4043 modes to iterators. Add new iterators for moving 128-bit values in
4044 scalar FPR registers and VSX registers.
4045 (FMOVE128): Likewise.
4046 (FMOVE128_FPR): Likewise.
4047 (FMOVE128_GPR): Likewise.
4048 (FMOVE128_VSX): Likewise.
4049 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
4054 (RELOAD): Add IEEE 128-bit floating point modes.
4055 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
4056 floating point in VSX registers modes.
4057 (signbit<mode>2, IBM128 iterator): Likewise.
4058 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
4059 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
4061 (neg<mode>2, TFIFKF iterator): Likewise.
4062 (negtf2_internal): Likewise.
4064 (abs<mode>2, TFIFKF iterator): Likewise.
4065 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
4066 VSX insn support for negate, absolute value, and negative absolute
4068 (ieee_128bit_vsx_neg<mode>2): Likewise.
4069 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
4070 (ieee_128bit_vsx_abs<mode>2): Likewise.
4071 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
4072 (ieee_128bit_vsx_nabs<mode>2): Likewise.
4073 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
4074 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
4075 floating point in VSX registers.
4076 (unpack<mode>_dm): Likewise.
4077 (unpack<mode>_nodm): Likewise.
4078 (pack<mode>): Likewise.
4079 (unpackv1ti): Likewise.
4080 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
4081 (packv1ti): Likewise.
4082 (pack<mode>, FMOVE128_VSX iterator): Likewise.
4083 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
4085 (extenddftf2_internal): Likewise.
4086 (trunctfdf2): Likewise.
4087 (trunctfdf2_internal2): Likewise.
4088 (fix_trunc_helper): Likewise.
4089 (fix_trunctfdi2"): Likewise.
4090 (floatditf2): Likewise.
4091 (floatuns<mode>tf2): Likewise.
4092 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
4093 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
4094 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
4095 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
4096 (float<SDI:mode><IFKF:mode>2): Likewise.
4097 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
4099 2015-08-26 Renlin Li <renlin.li@arm.com>
4101 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
4103 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
4104 Jiong Wang <jiong.wang@arm.com>
4106 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
4107 (tlsie_tiny_<mode>): New define_insn.
4108 (tlsie_tiny_sidi): Likewise.
4109 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
4111 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
4112 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
4114 (aarch64_expand_mov_immediate): Likewise.
4115 (aarch64_print_operand): Likewise.
4116 (arch64_classify_tls_symbol): Likewise.
4118 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
4120 * config/arm/arm-arches.def: Replace single value flags with
4121 an initializer built from ARM_FSET_MAKE_CPU1.
4122 * config/arm/arm-cores.def: Likewise.
4123 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
4124 derivation from the ARM_CORE macro definition, use the given value
4126 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
4127 ARM_ARCH macro definition, use the given value instead.
4129 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
4131 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
4133 (struct builtin_description): Replace field mask with field
4135 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
4136 (IWMMXT2_BUILTIN): Likewise.
4137 (IWMMXT2_BUILTIN2): Likewise.
4138 (FP_BUILTIN): Likewise.
4139 (CRC32_BUILTIN): Likewise.
4140 (CRYPTO_BUILTIN): Likewise.
4141 (iwmmx_mbuiltin): Likewise.
4142 (iwmmx2_mbuiltin): Likewise.
4143 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
4144 struct builtin_description.
4146 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
4148 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
4149 (struct builtin_description): Change type of mask to unsigned
4151 * config/arm/arm-protos.h (insn_flags): Declare as type
4153 (tune_flags): Likewise.
4154 * config/arm/arm.c (feature_count): New.
4155 (insn_flags): Define as type arm_feature_set.
4156 (tune_flags): Likewise.
4157 (struct processors): Define field flags as type arm_feature_set.
4158 (all_cores): Update for change to struct processors.
4159 (all_architectures): Likewise.
4160 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
4162 (arm_option_override_internal): Likewise.
4163 (arm_option_override): Likewise.
4165 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
4166 Jiong Wang <jiong.wang@arm.com>
4168 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
4169 tls size for tiny, small, large memory model.
4170 (aarch64_load_symref_appropriately): Support new symbol types.
4171 (aarch64_expand_mov_immediate): Likewise.
4172 (aarch64_print_operand): Likewise.
4173 (aarch64_classify_tls_symbol): Likewise.
4174 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
4175 (aarch64_symbol_type): Likewise.
4176 * config/aarch64/aarch64.md (tlsle): Deleted.
4177 (tlsle12_<mode>): New define_insn.
4178 (tlsle24_<mode>): Likewise.
4179 (tlsle32_<mode>): Likewise.
4180 (tlsle48_<mode>): Likewise.
4181 * doc/sourcebuild.texi (AArch64-specific attributes): Document
4184 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
4186 * config/arm/arm-protos.h (FL_NONE): New.
4188 (arm_feature_set): New.
4189 (ARM_FSET_MAKE): New.
4190 (ARM_FSET_MAKE_CPU1): New.
4191 (ARM_FSET_MAKE_CPU2): New.
4192 (ARM_FSET_CPU1): New.
4193 (ARM_FSET_CPU2): New.
4194 (ARM_FSET_EMPTY): New.
4195 (ARM_FSET_ANY): New.
4196 (ARM_FSET_HAS_CPU1): New.
4197 (ARM_FSET_HAS_CPU2): New.
4198 (ARM_FSET_HAS_CPU): New.
4199 (ARM_FSET_ADD_CPU1): New.
4200 (ARM_FSET_ADD_CPU2): New.
4201 (ARM_FSET_DEL_CPU1): New.
4202 (ARM_FSET_DEL_CPU2): New.
4203 (ARM_FSET_UNION): New.
4204 (ARM_FSET_INTER): New.
4205 (ARM_FSET_XOR): New.
4206 (ARM_FSET_EXCLUDE): New.
4207 (AFM_FSET_IS_EMPTY): New.
4208 (ARM_FSET_CPU_SUBSET): New.
4210 2015-08-26 Jiong Wang <jiong.wang@arm.com>
4212 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
4213 SYMBOL_TLSLE to SYMBOL_TLSLE24.
4214 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4216 (aarch64_expand_mov_immediate): Likewise.
4217 (aarch64_print_operand): Likewise.
4218 (aarch64_classify_symbol): Likewise.
4220 2015-08-26 Jiong Wang <jiong.wang@arm.com>
4222 * config/aarch64/aarch64.opt (mtls-size): New entry.
4223 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
4224 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
4225 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
4227 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
4229 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
4230 ARM_CORE entry. Fix some white-space.
4231 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
4232 ARM_CORE definition.
4234 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4236 * fold-const.c (fold_binary_loc) : Move Optimize
4237 root(x)*root(y) as root(x*y) to match.pd.
4238 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
4239 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
4240 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
4241 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
4242 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
4243 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
4244 (mult (exps:s @0) (exps:s @1)) : New simplifier.
4245 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
4246 (rdiv @0 (exps:s @1)) : New simplifier.
4248 2015-08-25 Joseph Myers <joseph@codesourcery.com>
4250 * gcc.c (driver::finalize): Only assign to extra_specs if
4253 2015-08-25 Marek Polacek <polacek@redhat.com>
4256 * varasm.c (declare_weak): Return after giving an error.
4258 2015-08-25 David Malcolm <dmalcolm@redhat.com>
4260 * gcc-main.c (main): Add params to driver ctor.
4261 * gcc.c (class env_manager): New.
4263 (env_manager::init): New.
4264 (env_manager::get): New.
4265 (env_manager::xput): New.
4266 (env_manager::restore): New.
4267 Poison getenv and putenv.
4268 (DEFAULT_TARGET_SYSTEM_ROOT): New.
4269 (target_system_root): Update initialization to use
4270 DEFAULT_TARGET_SYSTEM_ROOT.
4271 (struct spec_list): Add field "default_ptr".
4272 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
4273 (init_spec): Likewise.
4274 (set_spec): Clear field "default_ptr".
4275 (read_specs): Free "spec" and "buffer".
4276 (xputenv): Reimplement in terms of env_manager.
4277 (process_command): Replace ::getenv calls with calls to the
4278 env_manager singleton.
4279 (process_brace_body): Free string in three places.
4280 (driver::driver): New.
4281 (driver::~driver): New.
4282 (used_arg): Convert from a function to...
4283 (class used_arg_t): ...this class, and...
4284 (used_arg): ...this new global instance.
4285 (used_arg_t::finalize): New function.
4286 (getenv_spec_function): Add "const" to local "value". Replace
4287 ::getenv call with call to the env_manager singleton.
4288 (path_prefix_reset): New function.
4289 (driver::finalize): New function.
4290 * gcc.h (driver::driver): New.
4291 (driver::~driver): New.
4292 (driver::finalize): New.
4294 2015-08-25 Nathan Sidwell <nathan@acm.org>
4296 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
4297 target doesn't have one.
4299 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
4302 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
4304 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
4307 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
4308 a define_insn, remove second alternative.
4310 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
4311 Joseph Myers <joseph@codesourcery.com>
4313 * gcc.c (struct switchstr): Expand comment.
4315 2015-08-25 Nathan Sidwell <nathan@acm.org>
4317 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
4318 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
4320 2015-08-25 Richard Biener <rguenther@suse.de>
4323 * genmatch.c (expr::gen_transform): Verify the result of
4324 builtin_decl_implicit.
4325 (dt_simplify::gen_1): Likewise.
4327 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
4329 * config/arm/constraints.md: Also list Cs and US ARM-specific
4330 constraints as used.
4332 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
4335 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
4337 (nonpic_symbol_mentioned_p): Likewise.
4338 (sh_delegitimize_address): Likewise.
4339 (sh_function_ok_for_sibcall): Take into account weak symbols.
4340 (sh_expand_sym_label2reg): New.
4341 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
4342 * config/sh/sh.md (UNSPEC_PCREL): New enum.
4343 (call_pcrel): Use sh_expand_sym_label2reg.
4344 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
4345 (symPCREL_label2reg) New expand.
4347 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
4349 * graphite-poly.c: Change type of region from void* to sese.
4350 * graphite-poly.h (struct scop): Changing the type of scop::region
4351 from void* to sese. Change accessor macro accordingly.
4352 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
4354 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
4356 * graphite-scop-detection.c (stmt_simple_for_scop_p):
4357 Constrain only on INTEGER_TYPE.
4359 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
4362 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
4363 -mefficient-unaligned-vsx on ISA 2.7.
4365 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
4366 option to a masked option.
4368 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
4369 logic for -mefficient-unaligned-vsx so that it is set via an arch
4370 ISA option, instead of being set if -mtune=power8 is set. Move
4371 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
4372 near other default option handling.
4374 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4376 * genflags.c (gen_macro): Delete.
4377 (gen_proto): Don't create GEN.*CALL.* macros.
4378 * gensupport.h (get_file_location): Declare.
4379 * gensupport.c (rtx_locs): New variable.
4380 (read_md_rtx): Record rtx locations.
4381 (get_file_location): New function.
4382 * target-insns.def (call, call_pop, call_value, call_value_pop)
4383 (sibcall, sibcall_value): New patterns.
4384 * gentarget-def.c (parse_argument): New function.
4385 (def_target_insn): Use it. Handle optional operands. Raise an
4386 error if an .md pattern has the wrong number of operands for the
4387 pattern name. Remove the names of unused operands from the prototype.
4388 * builtins.c (expand_builtin_apply): Use targetm functions
4389 instead of HAVE_call_value and GEN_CALL_VALUE.
4390 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
4391 and sibcall_value_pop.
4392 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
4394 * config/alpha/alpha.md (untyped_call): Likewise.
4395 * config/iq2000/iq2000.md (untyped_call): Likewise.
4396 * config/m68k/m68k.md (untyped_call): Likewise.
4397 * config/mips/mips.md (untyped_call): Likewise.
4398 * config/pa/pa.md (untyped_call): Likewise.
4399 * config/rs6000/rs6000.md (untyped_call): Likewise.
4400 * config/sparc/sparc.md (untyped_call): Likewise.
4401 * config/tilegx/tilegx.md (untyped_call): Likewise.
4402 * config/tilepro/tilepro.md (untyped_call): Likewise.
4403 * config/visium/visium.md (untyped_call): Likewise.
4404 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
4405 gen_call_value instead of GEN_CALL_VALUE.
4406 * config/arm/arm.md (untyped_call): Likewise.
4407 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
4410 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4412 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
4413 (have_cbranchcc4): New variable.
4414 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
4415 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
4416 (if_convert): Initialize have_cbranchcc4.
4418 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4420 * builtins.c (expand_cmpstrn): Rename to...
4421 (expand_cmpstrn_or_cmpmem): ...this.
4422 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
4423 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
4424 Remove mode argument.
4425 (expand_builtin): Update accordingly.
4427 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4429 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
4430 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
4431 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
4432 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
4433 Add predicates for operands 0 and 3.
4434 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
4436 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
4437 immediate_operand to nonmemory_operand.
4439 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4441 * df-scan.c (df_insn_info_init_fields): New function, split out
4443 (df_insn_create_insn_record): ...here.
4444 (df_insn_info_free_fields): New function, split out from...
4445 (df_insn_info_delete): ...here.
4446 (df_insn_rescan): Use the new functions instead of freeing and
4447 reallocating the df_insn_info.
4449 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4451 * doc/install.texi (Binaries): Remove links no longer valid.
4453 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
4455 * config/nvptx/mkoffload.c (process): Replace
4456 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
4458 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
4461 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
4463 2015-08-24 Renlin Li <renlin.li@arm.com>
4465 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
4466 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
4467 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
4468 * config/arm/constraints.md ("j"): Add check for high code.
4470 2015-08-24 Tom de Vries <tom@codesourcery.com>
4472 PR tree-optimization/65468
4473 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
4476 2015-08-24 Nathan Sidwell <nathan@acm.org>
4478 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
4479 change to nvptx_type_from_mode call. Use arg_promotion for both
4480 split and non-split args.
4482 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4484 * target-insns.def (movstr): New pattern.
4485 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
4486 (expand_movstr): Use targetm rather than HAVE_movstr/
4489 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4491 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
4494 2015-08-24 Andrew Pinski <apinski@cavium.com>
4496 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
4497 AARCH64_EXTRA_TUNING_OPTION.
4498 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
4500 (aarch64_extra_tuning_flags): Base the shifted value on the index
4501 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
4502 * config/aarch64/aarch64.c: Remove the last argument to
4503 AARCH64_EXTRA_TUNING_OPTION.
4505 2015-08-23 Nathan Sidwell <nathan@acm.org>
4507 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
4509 (nvptx_declare_function_name): Insert formatting tabs for
4512 2015-08-23 Tom de Vries <tom@codesourcery.com>
4514 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
4515 parm_decl, rather than generating a dummy default def in cfun.
4516 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
4517 ssa_name from cfun and child_fn do not share a stmt as def stmt.
4518 (move_stmt_op): Handle PARM_DECl.
4519 (gather_ssa_name_hash_map_from): New function.
4520 (move_sese_region_to_fn): Add default defs for function params, and add
4521 them to vars_map. Release copied ssa names.
4522 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
4524 2015-08-23 Tom de Vries <tom@codesourcery.com>
4526 * doc/sourcebuild.texi: Rename vect_no_int_max with
4527 vect_no_int_min_max. Update description.
4529 2015-08-22 Andrew Pinski <apinski@cavium.com>
4531 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
4532 * config/aarch64/aarch64-protos.h
4533 (aarch64_fusion_pairs_index): New enum.
4534 (aarch64_fusion_pairs): Base the shifted value on the index instead
4535 Rewrite AARCH64_FUSE_ALL to be based on the end index.
4536 of the argument to AARCH64_FUSION_PAIR.
4537 * config/aarch64/aarch64.c: Remove the last argument to
4538 AARCH64_FUSION_PAIR.
4540 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
4542 * dominance.c (new_zero_array): Define.
4543 (dom_info): Redefine as class with proper encapsulation.
4544 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
4546 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
4547 allocations/deallocations. Pass function as parameter (instead of
4549 (dom_info::get_idom): Define accessor method.
4550 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
4551 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
4552 (calculate_dominance_info): Adjust to use dom_info class.
4553 (verify_dominators): Likewise.
4555 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
4557 * print-rtl.c (print_rtx): Check the correct range for
4558 flag_dump_unnumbered_links to behave as documented.
4560 PR rtl-optimization/67227
4561 PR rtl-optimization/64164
4562 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
4563 (nonoverlapping_memrefs_p): Test offsets and sizes when given
4564 identical gimple_reg exprs.
4566 2015-08-21 Nathan Sidwell <nathan@acm.org>
4568 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
4570 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
4571 crtl->stack_alignment_needed to determine alignment.
4572 (nvptx_get_drap_rtx): New.
4573 (TARGET_GET_DRAP_RTX): Override.
4574 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
4576 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4578 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
4580 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4582 * configure.ac: Remove uwin* cases.
4583 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
4584 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
4585 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
4586 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
4587 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
4588 i[34567]86-*-uwin*, powerpc-*-beos*.
4590 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
4592 * gencodes.c (gencodes): Print the comma for the preceding
4593 enum value rather than the current one. Use aliased enum values
4594 rather than #defines for compiled-out patterns.
4595 (main): Update accordingly. Replace LAST_INSN_CODE with
4597 * lra.c (insn_code_data): Update accordingly.
4598 (finish_insn_code_data_once, get_static_insn_data): Likewise.
4599 * recog.h (target_recog): Likewise.
4600 (preprocess_insn_constraints): Change parameter to unsigned int.
4601 * recog.c (preprocess_insn_constraints): Likewise.
4602 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
4603 * tree-vect-stmts.c (vectorizable_operation): Simplify.
4605 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
4607 PR rtl-optimization/61657
4608 * loop-iv.c (iv_number_of_iterations): Declare up and down as
4609 unsigned. Remove superflous uint64_t cast.
4611 2014-08-21 Felix Yang <felix.yang@huawei.com>
4612 Jiji Jiang <jiangjiji@huawei.com>
4614 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
4615 argument and get builtin function code directly from CALL.
4616 (gimple_stringop_fixed_value): Modified accordingly.
4617 (gimple_stringops_transform, gimple_stringops_values_to_profile):
4618 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
4620 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
4622 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
4624 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4626 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
4628 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
4629 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
4630 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
4631 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
4632 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
4633 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
4634 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
4635 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
4636 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
4637 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
4639 * match.pd (SIN ) : New Operator.
4640 (TAN) : New Operator.
4641 (mult (SQRT@1 @0) @1) : New simplifier.
4642 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
4643 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
4644 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
4645 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
4646 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
4647 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
4648 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
4649 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
4650 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
4651 (rdiv @0 (POW:s @1 @2)) : New simplifier.
4653 2015-08-21 Bin Cheng <bin.cheng@arm.com>
4655 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
4656 loop if EXPR is simplified to const value.
4658 2015-08-21 Yury Gribov <y.gribov@samsung.com>
4660 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
4661 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
4663 2015-08-21 Richard Biener <rguenther@suse.de>
4666 * gimple-fold.c (replace_stmt_with_simplification): Assert
4667 seq is empty when replacing a call with itself but different
4669 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
4670 a call require that it is const.
4672 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4674 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
4675 * builtins.c (get_object_alignment_2): Adjust.
4676 * varasm.c (align_variable): Likewise.
4677 (get_variable_align): Likewise.
4678 (build_constant_desc): Likewise.
4679 (force_const_mem): Likewise.
4680 * doc/tm.texi.in: Likewise.
4681 * doc/tm.texi: Regenerate.
4683 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4685 * genconfig.c (main): Always define HAVE_cc0.
4686 * recog.c (rest_of_handle_peephole2): Adjust.
4688 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4690 * reorg.c (relax_delay_slots): Don't use #if to check value of
4693 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4695 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
4696 * targhooks.c (default_have_conditional_execution): Adjust.
4698 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
4700 * rtl.h (rtvec_all_equal_p): Declare.
4701 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
4702 * rtl.c (rtvec_all_equal_p): New function.
4703 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
4704 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
4705 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
4706 * config/arm/arm.c (neon_vdup_constant): Likewise.
4707 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
4708 * config/tilegx/constraints.md (W, Y): Likewise.
4709 * config/tilepro/constraints.md (W, Y): Likewise.
4710 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
4711 (classify_immediate): Use unwrap_const_vec_duplicate.
4712 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
4713 (reg_or_v2s8bit_operand): Likewise.
4714 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
4715 (reg_or_v4s8bit_operand): Likewise.
4717 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4719 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
4720 (vec_shasigma_be): New #define.
4721 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
4722 (VPMSUMH): Likewise.
4723 (VPMSUMW): Likewise.
4724 (VPMSUMD): Likewise.
4725 (VPMSUM): New BU_P8V_OVERLOAD_2.
4726 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
4727 entries for VEC_MADD and VEC_VPMSUM.
4729 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
4731 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
4732 Multiply argument avr_n_flash by 64 to match unit of "KiB".
4733 (avr_pgm_check_var_decl): Same.
4735 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
4737 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
4738 initialization of HFmode scalar type (float16_t) to...
4739 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
4742 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
4744 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
4745 having an -mfp16-format.
4747 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
4749 * config/i386/predicates.md (vector_all_ones_operand): Use
4750 CONSTM1_RTX to simplify definition.
4752 2015-08-20 Richard Biener <rguenther@suse.de>
4754 * toplev.c (compile_file): Remove loop calling late_global_decl
4756 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
4757 on decls we assembled.
4759 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
4761 * common/config/aarch64/aarch64-common.c
4762 (AARCH64_CPU_NAME_LENGTH): Delete.
4763 (aarch64_option_extension): New.
4764 (all_extensions): Likewise.
4765 (processor_name_to_arch): Likewise.
4766 (arch_to_arch_name): Likewise.
4768 (all_architectures): Likewise.
4769 (aarch64_get_extension_string_for_isa_flags): Likewise.
4770 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
4772 * config/aarch64/aarch64-protos.h
4773 (aarch64_get_extension_string_for_isa_flags): New.
4774 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
4775 (aarch64_option_print): Get the string to print from
4776 aarch64_get_extension_string_for_isa_flags.
4777 (aarch64_declare_function_name): Likewise.
4778 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
4779 (MCPU_TO_MARCH_SPEC): This.
4780 (ASM_CPU_SPEC): Use it.
4781 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
4782 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
4783 (EXTRA_SPEC_FUNCTIONS): Use it.
4785 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
4787 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
4788 expansion when !ISA_HAS_LWL_LWR.
4789 (mips_block_move_straight): Update the size of elements copied to
4790 account for alignment when !ISA_HAS_LWL_LWR.
4791 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
4793 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4795 * expr.c (expand_expr_real_2): Check gimple statement during
4798 2015-08-19 Magnus Granberg <zorry@gentoo.org>
4800 * common.opt (fstack-protector): Initialize to -1.
4801 (fstack-protector-all): Likewise.
4802 (fstack-protector-strong): Likewise.
4803 (fstack-protector-explicit): Likewise.
4804 * configure.ac: Add --enable-default-ssp.
4805 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
4806 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
4808 * doc/install.texi: Document --enable-default-ssp.
4809 * config.in: Regenerated.
4810 * configure: Likewise.
4812 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
4814 PR rtl-optimization/64164
4815 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
4816 (parm_in_stack_slot_p): ... this. Disregard mode, what
4817 matters is whether the parm will live in a pseudo or a stack
4819 (expand_one_ssa_partition): Deal with params without a default
4820 def. Disregard mode.
4821 * cfgexpand.h: Renamed function declaration.
4822 * tree-ssa-coalesce.c: Adjust.
4823 * function.c (split_complex_args): Allocate stack slot for
4824 unassigned parms before splitting.
4825 (parm_in_unassigned_mem_p): New. Use it instead of
4826 parm_maybe_byref_p throughout this file.
4827 (assign_parm_setup_block): Use it. Accept pseudos in the
4828 expand-assigned rtl.
4829 (assign_parm_setup_reg): Drop BLKmode requirement.
4830 (assign_parm_setup_stack): Allocate and fill in the address of
4831 unassigned MEM parms.
4833 2015-08-19 David Sherwood <david.sherwood@arm.com>
4835 * genmodes.c (emit_mode_unit_size_inline): New function.
4836 (emit_mode_unit_precision_inline): New function.
4837 (emit_insn_modes_h): Emit new #define. Emit new functions.
4838 (emit_mode_unit_size): New function.
4839 (emit_mode_unit_precision): New function.
4840 (emit_mode_adjustments): Add mode_unit_size adjustments.
4841 (emit_insn_modes_c): Emit new arrays.
4842 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
4843 use new inline methods.
4845 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4847 * config/aarch64/aarch64.c (bit_count): Delete prototype
4849 (aarch64_print_operand): Use popcount_hwi instead of the above.
4851 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4853 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
4856 2015-08-19 Marek Polacek <polacek@redhat.com>
4859 * gimple-ssa-isolate-paths.c
4860 (insert_trap_and_remove_trailing_statements): Rename to ...
4861 (insert_trap): ... this. Don't remove trailing statements; split
4863 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
4865 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
4868 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
4869 conditionalize the whole on __GNUC__. Add fallback code
4870 depending neither on undefined nor implementation-defined behaviour.
4872 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4874 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
4875 whitespaces with tab.
4877 2015-08-19 Florian Weimer <fweimer@redhat.com>
4879 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
4880 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
4881 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
4882 Move Name_Ids instantiation to the Prj.Proc package, to avoid
4885 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4887 * config/arm/arm.c (bounds_check): Use %wd print format
4888 for HOST_WIDE_INT arguments.
4890 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
4892 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
4893 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
4894 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
4895 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
4896 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
4897 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
4898 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
4899 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
4900 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
4903 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
4905 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
4906 function.c, graphite-scop-detection.c, haifa-sched.c,
4907 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
4908 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
4909 varasm.c: Remove typedefs of structs.
4911 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
4913 * config/rs6000/altivec.h (vec_adde): New define.
4914 (vec_addec): Likewise.
4915 (vec_double): Likewise.
4916 (vec_bperm): Likewise.
4918 * config/rs6000/rs6000-builtin.def (ADDE): New
4919 BU_ALTIVEC_OVERLOAD_3.
4921 (DOUBLE): New BU_VSX_OVERLOAD_1.
4922 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
4923 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
4924 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
4925 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
4926 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
4927 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
4928 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
4929 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
4930 and P8V_BUILTIN_VEC_VBPERMQ.
4932 2015-08-18 Jason Merrill <jason@redhat.com>
4934 * print-tree.c (print_node): Handle TREE_BINFO.
4936 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4939 * builtins.c (expand_builtin_signbit): Add asserts to make sure
4940 we can expand BUILT_IN_SIGNBIT inline.
4941 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
4942 * doc/extend.texi: Document the type-generic __builtin_signbit.
4944 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
4946 PR rtl-optimization/67218
4947 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
4948 (simplify_unary_operation_1): Use it.
4950 2015-08-18 Marek Polacek <polacek@redhat.com>
4953 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
4954 if the call isn't valid.
4955 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
4956 gimple_call_builtin_p.
4957 (call_may_clobber_ref_p_1): Likewise.
4958 (stmt_kills_ref_p): Likewise.
4960 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
4962 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
4963 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
4964 (mips_hard_regno_scratch_ok): Likewise.
4965 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
4966 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
4968 2015-08-18 Bin Cheng <bin.cheng@arm.com>
4970 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
4971 (determine_value_range): Call refine_value_range_using_guard for
4972 each loop initial condition to improve value range.
4974 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
4976 * config/i386/i386.c: Remove include of fibheap.h.
4978 2015-08-17 Richard Biener <rguenther@suse.de>
4980 PR tree-optimization/67221
4981 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
4982 (sccvn_dom_walker::before_dom_children): Mark backedges of
4983 non-executable blocks as not executable.
4985 2015-08-17 David Sherwood <david.sherwood@arm.com>
4987 * config/arm/arm.c (neon_element_bits): Replace call to
4988 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
4989 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
4990 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
4991 (neon_vdup_lane<mode>): Likewise.
4992 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
4993 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
4994 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
4995 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
4996 * config/spu/spu.c (arith_immediate_p): Likewise.
4997 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
4998 * expr.c (expand_expr_real_2): Likewise.
4999 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
5000 * simplify-rtx.c (simplify_immed_subreg): Likewise.
5001 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
5002 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
5004 * fold-const.c (fold_binary_loc): Replace call to
5005 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
5006 GET_MODE_UNIT_PRECISION (m).
5008 2015-08-17 Mike Stump <mikestump@comcast.net>
5010 * config/arm/arm.c (arm_block_move_unaligned_straight):
5011 Emit normal move instead of unaligned load when source or destination
5012 are appropriately aligned.
5014 2015-08-17 Richard Biener <rguenther@suse.de>
5015 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5018 * match.pd (div (coss (op @0) : New simplifier.
5020 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
5022 PR rtl-optimization/64164
5025 PR rtl-optimization/67000
5028 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
5029 * tree-ssa-copyrename.c: Removed.
5030 * opts.c (default_options_table): Drop -ftree-copyrename. Add
5031 -ftree-coalesce-vars.
5032 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
5033 * common.opt (ftree-copyrename): Ignore.
5034 (ftree-coalesce-inlined-vars): Likewise.
5035 * doc/invoke.texi: Remove the ignored options above.
5036 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
5037 * tree-ssa-coalesce.h: ... here.
5038 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
5039 headers required by it.
5040 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
5041 across variables when flag_tree_coalesce_vars. Check register
5042 use and promoted modes to allow coalescing. Do not coalesce
5043 maybe-byref parms with SSA_NAMEs of other variables, or
5044 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
5045 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
5046 with its member functions to tree-ssa-coalesce.c.
5047 (var_map_base_init): Likewise. Renamed to
5048 compute_samebase_partition_bases.
5049 (partition_view_normal): Drop want_bases parameter.
5050 (partition_view_bitmap): Likewise.
5051 * tree-ssa-live.h: Adjust declarations.
5052 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
5053 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
5054 default defs at the entry point.
5055 (dump_part_var_map): New.
5056 (compute_optimized_partition_bases): New, called by...
5057 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
5058 of compute_samebase_partition_bases. Adjust.
5059 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
5060 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
5061 (ssa_default_def_partition): New.
5062 (get_rtl_for_parm_ssa_default_def): New.
5063 (align_local_variable, add_stack_var): Support anonymous SSA
5065 (defer_stack_allocation): Likewise. Declare earlier.
5066 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
5067 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
5068 Do no record deferred-allocation marker in
5069 SA.partition_to_pseudo.
5070 (expand_stack_vars): Adjust check for the marker in it.
5071 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
5072 redundant MEM attr setting.
5073 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
5075 (expand_one_stack_var): ... this. New wrapper to check and
5076 skip already expanded SSA partitions.
5077 (record_alignment_for_reg_var): New, factored out of...
5078 (expand_one_var): ... this.
5079 (expand_one_ssa_partition): New.
5080 (adjust_one_expanded_partition_var): New.
5081 (expand_one_register_var): Check and skip already expanded SSA
5083 (expand_used_vars): Don't create DECLs for anonymous SSA
5084 names. Expand all SSA partitions, then adjust all SSA names.
5085 (pass::execute): Replace the loops that set
5086 SA.partition_to_pseudo from partition leaders and cleared
5087 DECL_RTL for multi-location variables, and that which used to
5088 rename vars and set attrs, with one that clears DECL_RTL and
5089 checks that PARMs and RESULTs default_defs match DECL_RTL.
5090 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
5091 * emit-rtl.c: Include stor-layout.h.
5092 (set_reg_attrs_for_parm): Handle NULL decl.
5093 (set_reg_attrs_for_decl_rtl): Take mode from expression if
5095 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
5096 rather than its possibly-NULL DECL.
5097 * explow.c (promote_ssa_mode): New.
5098 * explow.h (promote_ssa_mode): Declare.
5099 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
5100 (read_complex_part): Export.
5101 * expr.h (read_complex_part): Declare.
5102 * cfgexpand.h (parm_maybe_byref_p): Declare.
5103 * function.c: Include cfgexpand.h.
5104 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
5105 (use_register_for_parm_decl): Wrapper for the above to
5106 special-case the result_ptr.
5107 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
5108 (split_complex_args): Take assign_parm_data_all argument.
5109 Pass it to rtl_for_parm. Set up rtl and context for split
5110 args. Reset complex parm before fetching its default decl
5112 (assign_parms_unsplit_complex): Use the default-def complex
5113 parm rtl if it matches the components.
5114 (assign_parms_augmented_arg_list): Adjust.
5115 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
5116 multiple locations. Recognize split complex args.
5117 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
5118 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
5119 (assign_parm_setup_block): Prefer SSA-assigned location, and
5120 fill in its address if the memory location of a maybe-byref
5121 parm was not assigned by cfgexpand.
5122 (assign_parm_setup_reg): Likewise. Adjust its mode as
5123 needed. Use entry_parm for equiv if stack_parm is NULL. Make
5124 sure passed_pointer parms don't need conversion. Copy address
5126 (assign_parm_setup_stack): Prefer SSA-assigned location.
5127 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
5128 rtl before testing for pointer bounds. Special-case result_ptr.
5129 (expand_function_start): Maybe reset DECL_RTL of result.
5130 Prefer SSA-assigned location for result and static chain.
5131 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
5132 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
5133 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
5134 anonymous SSA names. Use promote_ssa_mode.
5135 (get_temp_reg): Likewise.
5136 (remove_ssa_form): Adjust.
5137 * stor-layout.c (layout_decl): Don't set mem attributes of
5139 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
5140 and get its reg_usage for reg invalidation.
5141 (compute_bb_dataflow): Pass it insn.
5142 (emit_notes_in_bb): Likewise.
5144 2015-08-14 Marek Polacek <polacek@redhat.com>
5146 * tree-core.h (tree_base): Fix typo.
5148 2015-08-14 Marek Polacek <polacek@redhat.com>
5151 * gimple.c (infer_nonnull_range_by_attribute): Check that the
5152 nonnull argument position is not outside function arguments.
5154 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
5157 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
5158 'lconst_atomic' with 'const_atomic'.
5159 (atomic_fetch_<optab><mode>): Likewise.
5160 (atomic_<optab>_fetch<mode>): Likewise.
5161 * config/aarch64/iterators.md (lconst-atomic): Move below
5163 (const_atomic): New.
5165 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
5166 Bernd Schmidt <bernds@codesourcery.com>
5168 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
5170 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
5171 (DWARF2_DEBUGGING_INFO): Don't define.
5172 * debug.h (dwarf2_lineno_debug_hooks): Declare.
5173 * toplev.c (process_options): Add a case for it.
5174 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
5175 (dwarf2out_init): Skip most initializations if
5176 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
5178 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
5179 DWARF2_LINENO_DEBUGGING_INFO.
5180 * opts.c (set_debug_level): Likewise.
5182 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
5184 * config/arm/types.md (is_neon_type): Add missing types.
5186 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
5188 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
5190 * config/i386/i386.c (PTA_SKYLAKE): New macros.
5191 (processor_alias_table): Add skylake description.
5192 (enum processor_model): Add skylake processor.
5193 (arch_names_table): Add skylake record.
5194 * doc/invoke.texi: Add skylake item.
5196 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
5198 * ira-int.h: Include recog.h.
5199 * ira-build.c: Don't include recog.h.
5200 * ira-color.c: Likewise.
5201 * ira-conflicts.c: Likewise.
5202 * ira-costs.c: Likewise.
5203 * ira-emit.c: Likewise.
5204 * ira-lives.c: Likewise.
5206 * sched-deps.c: Likewise.
5207 * sel-sched.c: Likewise.
5208 * target-globals.c: Likewise.
5210 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
5213 * reload1.c (elimination_costs_in_insn): Make it obvious to the
5214 compiler that the n_dups and n_operands loop bounds are invariant.
5216 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5218 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
5219 expressions in A and B.
5221 2015-08-13 Richard Biener <rguenther@suse.de>
5223 * tree.c (nonnull_arg_p): Move from ...
5224 * tree-vrp.c (nonnull_arg_p): ... here.
5225 * tree.h (nonnull_arg_p): Declare.
5226 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
5227 here, register ptr != 0 for nonnull_arg_p pointer arguments.
5228 Properly initialize static chain and by-reference result pointer.
5229 (run_scc_vn): Adjust.
5231 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
5233 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
5236 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
5238 * config/aarch64/aarch64-protos.h
5239 (aarch64_gen_atomic_cas): Declare.
5240 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
5241 Choose appropriate instruction pattern for the target.
5242 (aarch64_gen_atomic_cas): New.
5243 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
5244 (atomic_compare_and_swap<mode>_1): Rename to
5245 aarch64_compare_and_swap<mode>. Fix some indentation.
5246 (aarch64_compare_and_swap<mode>_lse): New.
5247 (aarch64_atomic_cas<mode>): New.
5249 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
5251 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
5254 2015-08-13 Richard Biener <rguenther@suse.de>
5256 PR tree-optimization/67191
5257 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
5258 assert we value-numbered last stmts operand because it can validly
5259 trigger for unreachable code.
5261 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5263 PR rtl-optimization/67103
5264 * ifcvt.c (noce_try_store_flag_constants): Move
5265 x = (-(test != 0) & (b - a)) + a transformation to...
5266 (noce_try_cmove): ... Here. Try it if normal conditional
5269 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
5271 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
5273 * config/mips/mips.md (processor): Remove w32 and w64.
5275 2015-08-13 Richard Biener <rguenther@suse.de>
5277 PR tree-optimization/66502
5278 PR tree-optimization/67167
5279 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
5281 (vn_phi_lookup): Adjust.
5282 (vn_phi_insert): Likewise.
5283 (visit_phi): Prefer to value-number to another PHI node
5284 over value-numbering to a PHI argument.
5285 (init_scc_vn): Mark DFS back edges.
5287 2015-08-13 Richard Biener <rguenther@suse.de>
5289 * gimple.h (gcall::code_): New constant static member.
5290 (gcond::code_): Likewise.
5291 * gimple.c (gcall::code_): Define.
5292 (gcond::code_): Likewise.
5293 (is_a_helper <const gcond *>): Add.
5294 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
5295 and forward to a new gcall overload with less checking and a
5296 cheaper way to access the operand.
5297 (gimple_call_lhs_ptr): Likewise.
5298 (gimple_call_set_lhs): Likewise.
5299 (gimple_call_internal_p): Likewise.
5300 (gimple_call_with_bounds_p): Likewise.
5301 (gimple_call_set_with_bounds): Likewise.
5302 (gimple_call_internal_fn): Likewise.
5303 (gimple_call_set_ctrl_altering): Likewise.
5304 (gimple_call_ctrl_altering_p): Likewise.
5305 (gimple_call_fntype): Likewise.
5306 (gimple_call_fn): Likewise.
5307 (gimple_call_fn_ptr): Likewise.
5308 (gimple_call_set_fndecl): Likewise.
5309 (gimple_call_fndecl): Likewise.
5310 (gimple_call_chain): Likewise.
5311 (gimple_call_num_args): Likewise.
5312 (gimple_call_arg): Likewise.
5313 (gimple_call_arg_ptr): Likewise.
5314 (gimple_call_set_arg): Likewise.
5315 (gimple_call_noreturn_p): Likewise.
5316 (gimple_cond_code): Likewise.
5317 (gimple_cond_lhs): Likewise.
5318 (gimple_cond_rhs): Likewise.
5319 (gimple_has_lhs): Reduce checking.
5321 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5324 * match.pd (div (mult @0 @1) @1) : New simplifier.
5326 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
5329 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
5330 predicate to allow construction of vector constants using the
5331 VSLDOI vector shift instruction.
5333 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
5336 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
5337 the number of bytes to be shifted left and filled in with either
5338 all zero or all one bits.
5339 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
5341 (output_vec_const_move): On power8, generate XXLORC to generate
5342 a vector constant with all 1's. Do a split if we need to use a
5345 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
5346 properly test for the MSB.
5348 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
5349 vector constants that can be created with VSLDOI.
5351 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
5354 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
5355 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
5356 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
5357 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
5358 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
5359 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5360 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
5361 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
5362 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
5364 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
5366 * config/xtensa/constraints.md (define_constraint "Y"): New
5368 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
5369 * config/xtensa/linux.h (ASM_SPEC): Likewise.
5370 * config/xtensa/predicates.md (move_operand): Match constants
5371 and symbols in the presence of TARGET_AUTO_LITPOOLS.
5372 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
5373 immediate references to TLS data.
5374 (xtensa_emit_move_sequence): Don't force constants to memory in
5375 the presence of TARGET_AUTO_LITPOOLS.
5376 (print_operand): Add 'y' format, same as default, but capable of
5377 printing SF mode constants as well.
5378 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
5379 (movsf_internal): Add movi pattern that loads literal.
5380 (movsf, movdf): Don't force constants to memory in the presence
5381 of TARGET_AUTO_LITPOOLS.
5382 (movdf_internal): Add 'Y' constraint.
5383 * config/xtensa/xtensa.opt (mauto-litpools): New option.
5384 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
5386 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
5388 * config/arm/arm-fpus.def: Replace booleans with feature flags.
5390 * config/arm/arm.c (ARM_FPU): Update macro.
5391 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
5392 (TARGET_FP16): Likewise.
5393 (TARGET_CRYPTO): Likewise.
5394 (TARGET_NEON): Likewise.
5395 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
5398 2015-08-12 Tom de Vries <tom@codesourcery.com>
5402 * doc/install.texi: Remove --with_host_libstdcxx item. Update
5403 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
5404 accordingly. Mention default for --with-stage1-ldflags.
5406 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
5408 * config/arm/arm.h (arm_fpu_feature_set): New.
5409 (ARM_FPU_FSET_HAS): New.
5413 (FPU_FL_CRYPTO): New.
5415 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5417 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
5418 after -mcmodel=large -fPIC sorry.
5420 2015-08-12 Richard Biener <rguenther@suse.de>
5422 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
5423 comparison operand order and commutative ternary op operand order.
5424 (sccvn_dom_walker::cond_stack): New state to track temporary
5426 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
5428 (sccvn_dom_walker::record_cond): Add a single temporary conditional
5430 (sccvn_dom_walker::record_conds): Add a temporary conditional
5431 expressions and all related expressions also true/false.
5432 (sccvn_dom_walker::before_dom_children): Record temporary
5433 expressions based on the controlling condition of a single
5434 predecessor. When trying to simplify a conditional statement
5435 lookup expressions we might have inserted earlier.
5437 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
5440 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
5441 to ARM core registers.
5443 2015-08-12 Nathan Sidwell <nathan@acm.org>
5445 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
5446 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
5448 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
5450 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
5452 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
5454 2015-08-12 Richard Biener <rguenther@suse.de>
5456 * gimple.h (remove_pointer): New trait.
5457 (GIMPLE_CHECK2): New inline template function.
5458 (gassign::code_): New constant static member.
5459 (is_a_helper<const gassign *>): Add.
5460 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
5461 and forward to a new gassign overload with less checking and a
5462 cheaper way to access the operand.
5463 (gimple_assign_lhs_ptr): Likewise.
5464 (gimple_assign_set_lhs): Likewise.
5465 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
5467 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
5469 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
5471 (gimple_assign_rhs_code): Likewise.
5472 * gimple.c (gassign::code_): Define.
5474 2015-08-12 Richard Biener <rguenther@suse.de>
5476 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5477 Eliminate edges marked as not executable by SCCVN.
5478 * tree-ssa-sccvn.c: Include gimple-iterator.h.
5479 (cond_dom_walker): Rename to sccvn_dom_walker.
5480 (sccvn_dom_walker::before_dom_children): Value-number defs
5482 (run_scc_vn): Remove loop value-numbering all SSA names.
5483 Drop not visited SSA names to varying.
5485 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
5487 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
5488 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
5489 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
5490 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
5491 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
5492 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5493 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
5494 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
5495 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
5497 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
5500 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
5501 to enum feature_priority and feature_list.
5502 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
5503 and isa_names_table.
5505 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
5507 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
5510 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5514 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
5515 account when deciding what was the command-line status.
5517 2015-08-11 Nathan Sidwell <nathan@acm.org>
5519 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
5521 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
5522 we're not the only contributor to target phi.
5524 2015-08-11 Jiong Wang <jiong.wang@arm.com>
5526 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
5529 2015-08-11 Tom de Vries <tom@codesourcery.com>
5531 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
5533 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
5535 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
5537 * config/i386/i386.md (cpu): Remove knl.
5539 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5543 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
5544 open-coded sequence.
5545 * omp-low.c (oacc_process_reduction_data): Remove handline of
5546 GOMP_DEVICE_HOST_NONSHM.
5548 * lto-streamer-in.c (lto_input_mode_table): Adjust to
5549 GET_MODE_INNER changes.
5551 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5552 Ilya Verbin <ilya.verbin@intel.com>
5554 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
5556 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5558 * doc/options.texi (EnabledBy): Document that the argument must be
5560 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
5561 Not enabled by -Wall.
5562 * optc-gen.awk: Give nicer error messages. Detect if the argument
5563 of EnabledBy is not a Common option.
5564 * common.opt (Wnull-dereference): Not enabled by -Wall.
5565 * opt-functions.awk (lang_enabled_by): Nicer error messages.
5567 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
5569 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
5570 model == 0x4f as Broadwell.
5572 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
5574 PR rtl-optimization/67028
5575 * combine.c (simplify_comparison): Fix comment. Rearrange code.
5576 Add test to see if a const_int fits in the new mode.
5578 2015-08-07 DJ Delorie <dj@redhat.com>
5580 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
5582 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
5584 PR rtl-optimization/67029
5585 * ira-color.c: Include "recog.h" before including "ira-int.h".
5586 * target-globals.c: Likewise.
5587 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
5588 adds an alternative_mask argument and use it instead of
5589 preferred_alternatives.
5590 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
5591 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
5592 * sched-deps.c: Include "ira-int.h" after including "ira.h".
5593 (sched_analyze_insn): Update call to
5594 ira_implicitly_set_insn_hard_regs.
5595 * sel-sched.c: Include "ira-int.h" after including "ira.h".
5596 (implicit_clobber_conflict_p): Update call to
5597 ira_implicitly_set_insn_hard_regs.
5599 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
5601 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
5603 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
5606 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
5607 currently_expanding_to_rtl is set.
5609 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5611 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
5612 * configure: Regenerate.
5614 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5615 Jiong Wang <jiong.wang@arm.com>
5617 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
5618 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
5619 (REG_CLASS_NAMES): Likewise.
5620 (REG_CLASS_CONTENTS): Likewise.
5621 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
5622 (aarch64_register_move_cost): Likewise.
5623 (aarch64_load_symref_appropriately): Invoke the new added pattern if
5625 * config/aarch64/constraints.md (Uc0): New constraint.
5627 2015-08-06 Jiong Wang <jiong.wang@arm.com>
5629 * config/aarch64/constraints.md (Usf): Add the test of
5630 aarch64_is_noplt_call_p.
5632 2015-08-06 Jiong Wang <jiong.wang@arm.com>
5634 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
5636 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
5637 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
5638 (call_symbol): Likewise.
5640 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
5642 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
5643 for vectorizing multiplication patterns.
5644 * tree-vectorizer.h: Adjust the number of patterns.
5646 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
5648 * config/i386/sse.md (*vec_concatv2df): Declare added
5649 alternatives as sselog type.
5651 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5653 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
5656 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5658 * config/s390/s390.c (s390_expand_tbegin): Expand either
5659 tbegin_1_z13 or tbegin_1 depending on VX flag.
5660 * config/s390/s390.md ("tbegin_1_z13"): New expander.
5662 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5664 * config/s390/s390.opt: Clarify description for -mzvector
5665 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
5668 2015-08-06 Richard Biener <rguenther@suse.de>
5670 * gimple.h (gimple_call_set_fn): Access op member directly.
5671 (gimple_call_chain_ptr): Likewise.
5672 (gimple_call_set_chain): Likewise.
5673 (gimple_cond_lhs_ptr): Likewise.
5674 (gimple_cond_set_lhs): Likewise.
5675 (gimple_cond_rhs_ptr): Likewise.
5676 (gimple_cond_set_rhs): Likewise.
5677 (gimple_cond_true_label): Likewise.
5678 (gimple_cond_set_true_label): Likewise.
5679 (gimple_cond_set_false_label): Likewise.
5680 (gimple_cond_false_label): Likewise.
5681 (gimple_label_label): Likewise.
5682 (gimple_label_set_label): Likewise.
5683 (gimple_goto_set_dest): Likewise.
5684 (gimple_asm_input_op): Likewise.
5685 (gimple_asm_input_op_ptr): Likewise.
5686 (gimple_asm_set_input_op): Likewise.
5687 (gimple_asm_output_op): Likewise.
5688 (gimple_asm_output_op_ptr): Likewise.
5689 (gimple_asm_set_output_op): Likewise.
5690 (gimple_asm_clobber_op): Likewise.
5691 (gimple_asm_set_clobber_op): Likewise.
5692 (gimple_asm_label_op): Likewise.
5693 (gimple_asm_set_label_op): Likewise.
5694 (gimple_switch_index): Likewise.
5695 (gimple_switch_index_ptr): Likewise.
5696 (gimple_return_retval_ptr): Likewise.
5697 (gimple_return_retval): Likewise.
5698 (gimple_return_set_retval): Likewise.
5699 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
5700 (gimple_switch_label): Likewise.
5701 (gimple_switch_set_label): Likewise.
5703 2015-08-06 Richard Biener <rguenther@suse.de>
5705 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
5706 bool comparison canonicalization and restrict to integers.
5708 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
5710 * coretypes.h (enum symbol_visibility): Relocate here.
5711 * flag-types.h (enum symbol_visibility): Remove.
5712 * tree-core.h (enum symbol_visibility): Remove.
5714 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
5717 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
5718 for no_split_stack function attribute along with
5720 (rs6000_expand_split_stack_prologue): Likewise.
5722 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5723 Jeff Law <law@redhat.com>
5726 * doc/invoke.texi (Wnull-dereference): New.
5727 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
5728 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
5729 Warn for potential NULL dereferences.
5730 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
5731 * ubsan.c (instrument_nonnull_arg): Call
5732 infer_nonnull_range_by_attribute.
5733 (instrument_nonnull_return): Likewise.
5734 * common.opt (Wnull-dereference); New.
5735 * gimple.c (infer_nonnull_range): Remove bool arguments.
5736 (infer_nonnull_range_by_dereference): New.
5737 (infer_nonnull_range_by_attribute): New.
5738 * gimple.h: Update declarations.
5740 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5742 * gensupport.c (sequence_num): Replace with...
5743 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
5744 ...these new variables.
5745 (init_rtx_reader_args_cb): Update accordingly.
5746 (get_num_code_insns): Likewise.
5747 (read_md_rtx): Rework to use a while loop and get_c_test.
5748 Use the new counters. Remove redundant DEFINE_SUBST case.
5749 * genoutput.c (gen_split): Delete.
5750 (main): Don't call it.
5752 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5754 * gensupport.h (get_c_test): Declare.
5755 * gensupport.c (get_c_test): New function.
5756 * genconditions.c (main): Use it.
5757 * genrecog.c (validate_pattern): Likewise.
5758 (match_pattern_1): Likewise. Remove c_test argument.
5759 (match_pattern): Update accordingly and remove c_test argument.
5760 (main): Update accordingly.
5762 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5764 * gensupport.h (get_num_insn_codes): Declare.
5765 * gensupport.c (get_num_insn_codes): New function.
5766 * genattrtab.c (optimize_attrs): Rename max_insn_code to
5768 (main): Likewise. Use get_num_insn_codes.
5769 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
5771 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5774 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
5775 is zero- rather than sign-extended.
5777 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5779 * target-insns.def (can_extend): Delete.
5781 2015-08-05 Richard Biener <rguenther@suse.de>
5783 PR tree-optimization/67121
5784 * tree-if-conv.c (combine_blocks): Clear range-info produced
5785 by stmts no longer executed conditionally.
5787 2015-08-05 Nick Clifton <nickc@redhat.com>
5789 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
5790 to allow identical far pointers to remain.
5792 2015-08-05 Richard Biener <rguenther@suse.de>
5795 * match.pd: Compare address bases with == if they are decls
5796 or SSA names, not operand_equal_p. Otherwise fail.
5798 2015-08-05 Richard Biener <rguenther@suse.de>
5800 PR tree-optimization/67055
5801 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
5804 * g++.dg/torture/pr67055.C: New testcase.
5806 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5808 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
5810 (define_attr "enabled"): Handle avx521vl and noavx512vl.
5811 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
5812 AVX-512 alternative out of SSE.
5813 (define_insn "*vec_concatv2df"): Ditto.
5815 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5817 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
5818 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
5819 CODE_FOR_avx_ptestv4di.
5820 * config/i386/sse.md (define_mode_iterator V_AVX): New.
5821 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
5822 (define_insn "avx_ptest256"): Merge this ...
5823 (define_insn "sse4_1_ptest"): And this ...
5824 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
5826 2015-08-05 Richard Biener <rguenther@suse.de>
5828 PR tree-optimization/67109
5829 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
5830 against too big groups. Print whether this is a load or store
5831 group. Rename from ...
5832 (vect_analyze_group_access): ... this which is now a wrapper
5833 dissolving an invalid group.
5834 (vect_analyze_data_ref_accesses): Print whether this is a load
5837 2015-08-05 Richard Biener <rguenther@suse.de>
5840 * match.pd: Guard const_binop result checking against NULL_TREE
5843 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
5845 * cse.c (cse_insn): Restoring old behaviour for src_eqv
5846 when dest and value in the REG_EQUAL are same and dest
5849 2015-08-04 Anatoly Sokolov <aesok@post.ru>
5851 * config/moxie/moxie.h (PRINT_OPERAND,
5852 PRINT_OPERAND_ADDRESS): Remove macros.
5853 * config/moxie/moxie-protos.h (moxie_print_operand,
5854 moxie_print_operand_address): Remove declaration.
5855 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
5856 TARGET_PRINT_OPERAND_ADDRESS): Define.
5857 (moxie_print_operand, moxie_print_operand_address): Make static.
5859 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
5862 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
5863 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
5865 2015-08-04 Richard Biener <rguenther@suse.de>
5867 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
5869 (dt_operand::gen_gimple_expr): Adjust.
5871 2015-08-04 Richard Biener <rguenther@suse.de>
5873 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
5874 bool compares on RHS.
5875 * match.pd: Add X ==/!= !X is false/true pattern.
5877 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
5879 * config/aarch64/aarch64.c: Change inner loop statement cost
5880 to be consistent with other targets.
5882 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
5884 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
5887 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
5889 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
5890 (machine_function): Remove pseudos field.
5892 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5894 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5895 Exit early and use target_option_current_node if processing current
5898 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5900 * doc/extend.texi (AArch64 Function Attributes): New node.
5901 (AArch64 Pragmas): Likewise.
5903 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5905 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5906 Initialize simd builtins if TARGET_SIMD.
5907 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
5908 Make sure that the builtins are initialized only once no matter how
5909 many times the function is called.
5910 (aarch64_init_builtins): Unconditionally initialize crc builtins.
5911 (aarch64_relayout_simd_param): New function.
5912 (aarch64_simd_expand_args): Use above during argument expansion.
5913 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
5914 simd builtins if TARGET_SIMD.
5915 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
5917 (aarch64_relayout_simd_types): Likewise.
5919 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5921 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
5922 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
5923 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
5924 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5926 (aarch64_reset_previous_fndecl): New function.
5927 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
5929 * config/aarch64/aarch64-c.c: New file.
5930 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
5931 Push and pop options at beginning and end. Remove ifdef
5932 __ARM_FEATURE_CRC32.
5933 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
5934 Add pragma +nothing+simd and +nothing+crypto where appropriate.
5935 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
5936 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
5938 (aarch64_register_pragmas): Likewise.
5939 (aarch64_reset_previous_fndecl): Likewise.
5940 (aarch64_process_target_attr): Likewise.
5941 (aarch64_override_options_internal): Likewise.
5943 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5945 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
5947 (aarch64_can_inline_p): Likewise.
5948 (TARGET_CAN_INLINE_P): Define.
5950 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5952 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
5953 Remove static. Handle OPT_mgeneral_regs_only,
5954 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
5955 OPT_momit_leaf_frame_pointer.
5956 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
5957 (aarch64_attr_opt_type): New enum.
5958 (aarch64_attribute_info): New struct.
5959 (aarch64_handle_attr_arch): New function.
5960 (aarch64_handle_attr_cpu): Likewise.
5961 (aarch64_handle_attr_tune): Likewise.
5962 (aarch64_handle_attr_isa_flags): Likewise.
5963 (aarch64_attributes): New table.
5964 (aarch64_process_one_target_attr): New function.
5965 (num_occurences_in_str): Likewise.
5966 (aarch64_process_target_attr): Likewise.
5967 (aarch64_option_valid_attribute_p): Likewise.
5968 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
5969 * config/aarch64/aarch64-protos.h: Include input.h
5970 (aarch64_handle_option): Declare prototype.
5972 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5974 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
5975 * config/aarch64/aarch64.c: Include target-globals.h
5976 (aarch64_previous_fndecl): New variable.
5977 (aarch64_set_current_function): New function.
5978 (TARGET_SET_CURRENT_FUNCTION): Define.
5980 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5982 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
5983 (explicit_arch): Likewise.
5984 (x_aarch64_isa_flags): Likewise.
5985 (mgeneral-regs-only): Mark as Save.
5986 (mfix-cortex-a53-835769): Likewise.
5987 (mcmodel=): Likewise.
5988 (mstrict-align): Likewise.
5989 (momit-leaf-frame-pointer): Likewise.
5990 (mtls-dialect): Likewise.
5991 (master=): Likewise.
5992 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
5993 (aarch64_isa_flags): Remove extern declaration.
5994 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
5995 to indicate success or failure.
5996 (aarch64_validate_march): Likewise.
5997 (aarch64_validate_mtune): Likewise.
5998 (aarch64_isa_flags): Delete.
5999 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
6000 instead of aarch64_isa_flags.
6001 (aarch64_get_tune_cpu): New function.
6002 (aarch64_get_arch): Likewise.
6003 (aarch64_override_options): Use above and set up explicit_tune_core
6005 (aarch64_print_extension): Move earlier in file. Add isa_flags
6006 argument and use that instead of the global aarch64_isa_flags.
6007 (aarch64_option_save): New function.
6008 (aarch64_option_restore): Likewise.
6009 (aarch64_option_print): Likewise.
6010 (aarch64_declare_function_name): Likewise.
6011 (aarch64_start_file): Delete.
6012 (TARGET_ASM_FILE_START): Do not define.
6013 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
6014 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
6017 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6019 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
6020 flag_omit_leaf_frame_pointer to 2.
6022 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6024 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
6026 (TARGET_FIX_ERR_A53_835769): New macro.
6027 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
6028 handling of opts->x_aarch64_fix_a53_err835769.
6029 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
6030 than aarch64_fix_a53_err835769.
6031 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
6032 * config/aarch64/aarch64-linux.h: Likewise.
6034 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
6036 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
6037 ix86_expand_int_movcc as boolean.
6039 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6041 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
6042 (aarch64_cpu_string): Likewise.
6043 (aarch64_tune_string): Likewise.
6044 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
6045 (aarch64_parse_extension): Return aarch64_parse_opt_result.
6046 Add extra argument to put result into.
6047 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
6048 (aarch64_parse_cpu): Add arguments to put results into. Return
6049 aarch64_parse_opt_result.
6050 (aarch64_parse_tune): Likewise.
6051 (aarch64_override_options_after_change_1): New function.
6052 (aarch64_override_options_internal): New function.
6053 (aarch64_validate_mcpu): Likewise.
6054 (aarch64_validate_march): Likewise.
6055 (aarch64_validate_mtune): Likewise.
6056 (aarch64_override_options): Update to reflect above changes.
6057 Move some logic into aarch64_override_options_internal.
6058 Initialize target_option_default_node and target_option_current_node.
6059 (aarch64_override_options_after_change): Move logic into
6060 aarch64_override_options_after_change_1 and call it with global_options.
6061 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
6062 flag values from that.
6064 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6066 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
6067 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
6068 * config/aarch64/aarch64.c (struct processor): Add arch field.
6069 (all_architectures): Handle above, move above all_cores.
6070 (all_cores): Handle above.
6071 (aarch64_parse_arch): Handle above changes.
6072 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
6073 above. Update comments.
6074 (armv8.1-a): Likewise.
6075 * config/aarch64/aarch64-cores.def: Update according to above.
6076 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
6077 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
6078 aarch64_arch_driver_info.
6080 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6082 * config/aarch64/aarch64.c (struct processor): Add ident field.
6083 Rename core sched_core.
6084 (all_cores): Handle above changes.
6085 (all_architectures): Likewise.
6086 (aarch64_parse_arch): Likewise.
6087 (aarch64_override_options): Likewise.
6089 2015-08-04 Richard Biener <rguenther@suse.de>
6091 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
6092 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
6093 comparisons embedded in [VEC_]COND_EXPRs.
6095 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
6097 * tree-if-conv.c: Fix various typos in comments.
6098 * tree-vect-stmts.c: Likewise.
6100 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6102 PR tree-optimization/67043
6103 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
6104 preheader after hoisting invariant in it.
6105 (find_defs): Force recomputation of all luids.
6107 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
6109 * config/rs6000/htm.md (tabort.): Restrict the source operand to
6110 using a base register.
6112 2015-08-03 David Malcolm <dmalcolm@redhat.com>
6114 * main.c (main): Pass in NULL for toplev's external_timer.
6115 * timevar.c: Include coretypes.h.
6116 (class timer::named_items): New.
6117 (timer::named_items::named_items): New.
6118 (timer::named_items::~named_items): New.
6119 (timer::named_items::push): New.
6120 (timer::named_items::pop): New.
6121 (timer::named_items::print): New.
6122 (timer::timer): Initialize field "m_jit_client_items".
6123 (timer::~timer): New.
6124 (timer::push): Move bulk of implementation to...
6125 (timer::push_internal): ...here. New function.
6126 (timer::pop): Move bulk of implementation to...
6127 (timer::pop_internal): ...here. New function.
6128 (timer::push_client_item): New.
6129 (timer::pop_client_item): New.
6130 (timer::print_row): New function, taken from timer::print.
6131 (timer::print): Print "GCC items" header if we also have client
6132 items. Move row-printing to timer::print_row. Print any client
6134 (timer::get_topmost_item_name): New method.
6135 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
6136 (TV_JIT_CLIENT_CODE): New.
6137 * timevar.h (timer::push_client_item): New declaration.
6138 (timer::pop_client_item): New declaration.
6139 (timer::get_topmost_item_name): New method.
6140 (timer::push_internal): New declaration.
6141 (timer::pop_internal): New declaration.
6142 (timer::print_row): New declaration.
6143 (timer::named_items): New declaration.
6144 (timer::m_jit_client_items): New field.
6145 (timer): Add friend class named_items.
6146 (auto_timevar::auto_timevar): Add timer param.
6147 (auto_timevar::~auto_timevar): Use field "m_timer".
6148 (auto_timevar::m_timer): New field.
6149 * toplev.c (initialize_rtl): Add g_timer as param when
6150 constructing auto_timevar instance.
6151 (toplev::toplev): Add "external_timer" param, and use it to
6152 initialize the "g_timer" global if non-NULL.
6153 (toplev::~toplev): If this created "g_timer", delete it.
6154 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
6155 with "external_timer" timer *.
6157 2015-08-03 Alexander Basov <coohpt@gmail.com>
6162 * cfgexpand.c (expand_one_var): Add check if stack is going to
6163 be used in naked function.
6164 * expr.c (expand_expr_addr_expr_1): Remove excess checking
6165 whether expression should not reside in MEM.
6166 * function.c (use_register_for_decl): Do not use registers for
6167 non-register things (volatile, float, BLKMode) in naked functions.
6169 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
6172 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
6173 Adjust splits to match new pattern.
6175 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6177 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
6180 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
6181 point in VSX registers.
6183 * config/rs6000/constraints.md (wb constraint): Document unused
6185 (we constraint): Likewise.
6186 (wo constraint): Likewise.
6187 (wp constraint): New constraint for IEEE 128-bit floating point in
6189 (wq constraint): Likewise.
6191 * config/rs6000/predicates.md (easy_fp_constant): Add support for
6192 IEEE 128-bit floating point in VSX registers.
6193 (easy_scalar_constant): Likewise.
6195 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
6196 constraints (wp, wq) for IEEE 128-bit floating point in VSX
6198 (rs6000_init_hard_regno_mode_ok): Likewise.
6200 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
6201 floating point in VSX registers.
6210 (vsx_le_permute_<mode>): Add support to properly swap bytes for
6211 IEEE 128-bit floating point in VSX registers on little endian.
6212 (vsx_le_undo_permute_<mode>): Likewise.
6213 (vsx_le_perm_load_<mode>): Likewise.
6214 (vsx_le_perm_store_<mode>): Likewise.
6215 (splitters for IEEE 128-bit fp moves): Likewise.
6217 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
6220 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
6221 floating point in VSX registers.
6224 * doc/md.text (Machine Constraints): Document wp and wq
6225 constraints on PowerPC.
6227 2015-08-03 Jeff Law <law@redhat.com>
6230 PR gcov-profile/66899
6231 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
6232 iterate over the jump threading paths when an element in the
6233 jump threading paths array is eliminated.
6235 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
6237 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
6239 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
6241 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
6242 is_use_properly_guarded the variable def_preds. Free its
6243 contents before returning.
6244 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
6245 (is_use_properly_guarded): Replace local variable def_preds with
6246 a parameter. Adjust accordingly. Only update *def_preds if it's
6249 2015-08-03 Richard Biener <rguenther@suse.de>
6251 * genmatch.c (simplify::for_subst_vec): New member.
6252 (binary_ok): New helper for for lowering.
6253 (lower_for): Delay substituting operators into result expressions
6254 if we can merge the results eventually again.
6255 (capture_info::walk_result): Adjust for user_id appearing as
6256 result expression operator.
6257 (expr::gen_transform): Likewise.
6258 (dt_simplify::gen_1): Likewise.
6259 (dt_simplify::gen): Pass not substituted operators to tail
6260 functions or initialize local variable with it.
6261 (decision_tree::gen): Adjust function signature.
6262 * match.pd: Fix tests against global code and add default
6263 cases to switch stmts.
6265 2015-08-03 Richard Biener <rguenther@suse.de>
6267 * genmatch.c (dt_simplify::gen): Create captures array
6268 with an initializer.
6270 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6272 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
6273 the host compiler is affected by placement new aliasing bug.
6274 * configure: Regenerate.
6275 * Makefile.in (ALIASING_FLAGS): New variable.
6276 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
6278 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
6281 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
6282 (negmulsf3_vfp): Likewise.
6283 (muldf3negdf_vfp): Disable for -frounding-math.
6284 (mulsf3negsf_vfp): Likewise.
6285 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
6286 fix MULT cost with -frounding-math.
6288 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6290 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
6291 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
6292 explicit. Prefer to add the flag whenever possible.
6293 (noce_process_if_block): Try noce_try_store_flag_constants before
6296 2015-08-03 Richard Biener <rguenther@suse.de>
6298 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
6299 New hash-map to record equivalent transforms.
6300 (dt_node::analyze): Populate the equivalent transforms hash-map.
6301 (dt_simplify::info): Add reference to hash-map entry.
6302 (dt_simplify::gen): If we have split out a function for the
6303 transform, generate a call to it.
6304 (sinfo_hashmap_traits::hash): New function.
6305 (compare_op): New helper function for ...
6306 (sinfo_hashmap_traits::equal_keys): ... this new function.
6307 (decision_tree::gen): Split out common equivalent transforms
6310 2015-08-03 Richard Biener <rguenther@suse.de>
6312 * gimple-fold.c (fold_gimple_assign): Remove folding of
6313 the comparison in COND_EXPRs.
6315 2015-08-03 Richard Biener <rguenther@suse.de>
6317 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
6318 on the rhs of assignments first simplify the embedded
6321 2015-08-03 Richard Biener <rguenther@suse.de>
6323 PR tree-optimization/66917
6324 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
6326 (DR_VECT_AUX): New macro.
6327 (set_dr_misalignment): Adjust.
6328 (dr_misalignment): Likewise.
6329 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6330 Compute whether the base is at least element aligned.
6331 * tree-vect-stmts.c (ensure_base_align): Adjust.
6332 (vectorizable_store): If the base is not element aligned
6333 preserve alignment of the original access if misalignment is unknown.
6334 (vectorizable_load): Likewise.
6336 2015-08-02 Martin Sebor <msebor@redhat.com>
6338 * c-family/c.opt (-Wframe-address): New warning option.
6339 * doc/invoke.texi (Wframe-address): Document it.
6340 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
6341 Clarify possible effects of calling the functions with non-zero
6342 arguments and mention -Wframe-address.
6343 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
6345 2015-08-01 Michael Collison <michael.collison@linaro.org
6346 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6348 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
6349 (*arm_umin_cmp): Likewise.
6351 2015-08-01 Caroline Tice <cmtice@google.com>
6354 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
6356 (vtbl_find_mangled_name): New function.
6357 (vtbl_register_mangled_name): New function.
6358 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
6359 mangled name in mangled name vectors.
6360 (find_or_create_vtbl_map_node): Ditto.
6361 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
6362 update recursion_depth on function entry; pass it to every recursive
6363 call; automatically exit if depth > 25 (give up looking at that point).
6364 (verify_bb_vtables): Initialize recursion_depth and pass it to
6365 var_is_used_for_virtual_call_p.
6366 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
6367 global variable decls.
6368 (vtbl_register_mangled_name): New extern function decl.
6370 2015-08-01 Tom de Vries <tom@codesourcery.com>
6372 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
6374 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
6376 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
6377 operation_no_trapping_overflow. Allow non-overflow operations.
6378 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
6381 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
6384 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
6386 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6388 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
6389 Enable for TARGET_32BIT.
6390 (*if_move_neg): Likewise.
6392 2015-07-31 Nick Clifton <nickc@redhat.com>
6394 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
6395 Returns true for __model__.
6396 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
6398 2015-07-31 Alan Modra <amodra@gmail.com>
6401 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
6402 (rs6000_emit_prologue): Set it.
6403 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
6405 2015-07-31 Richard Biener <rguenther@suse.de>
6407 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
6408 -> X == (C1 ^ C2) which is already implemented in match.pd.
6409 Remove redundant dispatching to fold_relational_const.
6410 Move unordered self and NaN compares ...
6411 * match.pd: ... as patterns here. Remove some stray captures
6414 2015-07-31 Petr Murzin <petr.murzin@intel.com>
6416 * config/i386/i386.c
6417 (bdesc_special_args): Convert mask type from signed to unsigned for
6419 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
6420 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
6421 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
6422 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
6423 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
6424 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
6425 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
6426 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
6427 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
6428 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
6429 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
6430 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
6431 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
6432 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
6433 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
6434 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
6435 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
6436 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
6437 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
6438 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
6439 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
6440 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
6441 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
6442 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
6443 * config/i386/i386-builtin-types.def
6444 (V16QI_FTYPE_V16SI): Remove.
6445 (V8DF_FTYPE_V8SI): Ditto.
6446 (V8HI_FTYPE_V8DI): Ditto.
6447 (V8SI_FTYPE_V8DI): Ditto.
6448 (V8SF_FTYPE_V8DF): Ditto.
6449 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
6450 (V16HI_FTYPE_V16SI): Ditto.
6451 (V16SF_FTYPE_V16HI): Ditto.
6452 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
6453 (V16SF_FTYPE_V16SI): Ditto.
6454 (V4DI_FTYPE_V4DI): Ditto.
6455 (V16SI_FTYPE_V16SF): Ditto.
6456 (V16SF_FTYPE_FLOAT): Ditto.
6457 (V8DF_FTYPE_DOUBLE): Ditto.
6458 (V8DI_FTYPE_INT64): Ditto.
6459 (V8DI_FTYPE_V4DI): Ditto.
6460 (V16QI_FTYPE_V8DI): Ditto.
6461 (UINT_FTYPE_V4SF): Ditto.
6462 (UINT64_FTYPE_V4SF): Ditto.
6463 (UINT_FTYPE_V2DF): Ditto.
6464 (UINT64_FTYPE_V2DF): Ditto.
6465 (V16SI_FTYPE_V16SI): Ditto.
6466 (V8DI_FTYPE_V8DI): Ditto.
6467 (V16SI_FTYPE_PV4SI): Ditto.
6468 (V16SF_FTYPE_PV4SF): Ditto.
6469 (V8DI_FTYPE_PV2DI): Ditto.
6470 (V8DF_FTYPE_PV2DF): Ditto.
6471 (V4DI_FTYPE_PV2DI): Ditto.
6472 (V4DF_FTYPE_PV2DF): Ditto.
6473 (V16SI_FTYPE_PV2SI): Ditto.
6474 (V16SF_FTYPE_PV2SF): Ditto.
6475 (V8DI_FTYPE_PV4DI): Ditto.
6476 (V8DF_FTYPE_PV4DF): Ditto.
6477 (V8SF_FTYPE_FLOAT): Ditto.
6478 (V4SF_FTYPE_FLOAT): Ditto.
6479 (V4DF_FTYPE_DOUBLE): Ditto.
6480 (V8SF_FTYPE_PV4SF): Ditto.
6481 (V8SI_FTYPE_PV4SI): Ditto.
6482 (V4SI_FTYPE_PV2SI): Ditto.
6483 (V8SF_FTYPE_PV2SF): Ditto.
6484 (V8SI_FTYPE_PV2SI): Ditto.
6485 (V16SF_FTYPE_PV8SF): Ditto.
6486 (V16SI_FTYPE_PV8SI): Ditto.
6487 (V8DI_FTYPE_V8SF): Ditto.
6488 (V4DI_FTYPE_V4SF): Ditto.
6489 (V2DI_FTYPE_V4SF): Ditto.
6490 (V64QI_FTYPE_QI): Ditto.
6491 (V32HI_FTYPE_HI): Ditto.
6492 (V8UHI_FTYPE_V8UHI): Ditto.
6493 (V16UHI_FTYPE_V16UHI): Ditto.
6494 (V32UHI_FTYPE_V32UHI): Ditto.
6495 (V2UDI_FTYPE_V2UDI): Ditto.
6496 (V4UDI_FTYPE_V4UDI): Ditto.
6497 (V8UDI_FTYPE_V8UDI): Ditto.
6498 (V4USI_FTYPE_V4USI): Ditto.
6499 (V8USI_FTYPE_V8USI): Ditto.
6500 (V16USI_FTYPE_V16USI): Ditto.
6501 (V2DF_FTYPE_V2DF_UINT64): Ditto.
6502 (V2DI_FTYPE_V2DF_V2DF): Ditto.
6503 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
6504 (V8DF_FTYPE_V8DF_V8DI): Ditto.
6505 (V4SF_FTYPE_V4SF_UINT64): Ditto.
6506 (V4SI_FTYPE_V4SF_V4SF): Ditto.
6507 (V16SF_FTYPE_V16SF_V16SI): Ditto.
6508 (V64QI_FTYPE_V32HI_V32HI): Ditto.
6509 (V32HI_FTYPE_V16SI_V16SI): Ditto.
6510 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
6511 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
6512 (V32HI_FTYPE_V64QI_V64QI): Ditto.
6513 (V32HI_FTYPE_V32HI_V32HI): Ditto.
6514 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
6515 (V16SI_FTYPE_V16SI_V4SI): Ditto.
6516 (V16SI_FTYPE_V16SI_V16SI): Ditto.
6517 (V16SI_FTYPE_V32HI_V32HI): Ditto.
6518 (V16SI_FTYPE_V16SI_SI): Ditto.
6519 (V8DI_FTYPE_V8DI_V8DI): Ditto.
6520 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
6521 (V8DI_FTYPE_V16SI_V16SI): Ditto.
6522 (V8DI_FTYPE_V8DI_V2DI): Ditto.
6523 (QI_FTYPE_QI): Ditto.
6524 (SI_FTYPE_SI): Ditto.
6525 (DI_FTYPE_DI): Ditto.
6526 (QI_FTYPE_QI_QI): Ditto.
6527 (QI_FTYPE_QI_INT): Ditto.
6528 (HI_FTYPE_HI_INT): Ditto.
6529 (SI_FTYPE_SI_INT): Ditto.
6530 (DI_FTYPE_DI_INT): Ditto.
6531 (HI_FTYPE_V16QI_V16QI): Ditto.
6532 (SI_FTYPE_V32QI_V32QI): Ditto.
6533 (DI_FTYPE_V64QI_V64QI): Ditto.
6534 (QI_FTYPE_V8HI_V8HI): Ditto.
6535 (HI_FTYPE_V16HI_V16HI): Ditto.
6536 (SI_FTYPE_V32HI_V32HI): Ditto.
6537 (QI_FTYPE_V4SI_V4SI): Ditto.
6538 (QI_FTYPE_V8SI_V8SI): Ditto.
6539 (QI_FTYPE_V2DI_V2DI): Ditto.
6540 (QI_FTYPE_V4DI_V4DI): Ditto.
6541 (QI_FTYPE_V8DI_V8DI): Ditto.
6542 (HI_FTYPE_V16SI_V16SI): Ditto.
6543 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
6544 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
6545 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
6546 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
6547 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
6548 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
6549 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
6550 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
6551 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
6552 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
6553 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
6554 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
6555 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
6556 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
6557 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
6558 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
6559 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
6560 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
6561 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
6562 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
6563 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
6564 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
6565 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
6566 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
6567 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
6568 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
6569 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
6570 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
6571 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
6572 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
6573 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
6574 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
6575 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
6576 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
6577 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
6578 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
6579 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
6580 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
6581 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
6582 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
6583 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
6584 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
6585 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
6586 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
6587 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
6588 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
6589 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
6590 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
6591 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
6592 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
6593 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
6594 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
6595 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
6596 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
6597 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
6598 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
6599 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
6600 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
6601 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
6602 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
6603 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
6604 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
6605 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
6606 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
6607 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
6608 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
6609 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
6610 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
6611 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
6612 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
6613 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
6614 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
6615 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
6616 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
6617 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
6618 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
6619 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
6620 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
6621 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
6622 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
6623 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
6624 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
6625 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
6626 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
6627 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
6628 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
6629 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
6630 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
6631 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
6632 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
6633 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
6634 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
6635 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
6636 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
6637 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
6638 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
6639 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
6640 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
6641 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
6642 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
6643 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
6644 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
6645 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
6646 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
6647 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
6648 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
6649 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
6650 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
6651 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
6652 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
6653 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
6654 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
6655 (HI_FTYPE_HI): Ditto.
6656 (HI_FTYPE_V16QI): Ditto.
6657 (SI_FTYPE_V32QI): Ditto.
6658 (DI_FTYPE_V64QI): Ditto.
6659 (QI_FTYPE_V8HI): Ditto.
6660 (HI_FTYPE_V16HI): Ditto.
6661 (SI_FTYPE_V32HI): Ditto.
6662 (QI_FTYPE_V4SI): Ditto.
6663 (QI_FTYPE_V8SI): Ditto.
6664 (HI_FTYPE_V16SI): Ditto.
6665 (QI_FTYPE_V2DI): Ditto.
6666 (QI_FTYPE_V4DI): Ditto.
6667 (QI_FTYPE_V8DI): Ditto.
6668 (V16QI_FTYPE_HI): Ditto.
6669 (V32QI_FTYPE_SI): Ditto.
6670 (V64QI_FTYPE_DI): Ditto.
6671 (V8HI_FTYPE_QI): Ditto.
6672 (V16HI_FTYPE_HI): Ditto.
6673 (V32HI_FTYPE_SI): Ditto.
6674 (V4SI_FTYPE_QI): Ditto.
6675 (V4SI_FTYPE_HI): Ditto.
6676 (V8SI_FTYPE_QI): Ditto.
6677 (V8SI_FTYPE_HI): Ditto.
6678 (V2DI_FTYPE_QI): Ditto.
6679 (V4DI_FTYPE_QI): Ditto.
6680 (HI_FTYPE_HI_HI): Ditto.
6681 (SI_FTYPE_SI_SI): Ditto.
6682 (DI_FTYPE_DI_DI): Ditto.
6683 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
6684 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
6685 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
6686 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
6687 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
6688 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
6689 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
6690 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
6691 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
6692 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
6693 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
6694 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
6695 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
6696 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
6697 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
6698 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
6699 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
6700 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
6701 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
6702 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
6703 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
6704 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
6705 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
6706 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
6707 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
6708 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
6709 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
6710 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
6711 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
6712 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
6713 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
6714 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
6715 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
6716 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
6717 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
6718 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
6719 (V16SI_FTYPE_HI): Ditto.
6720 (V8DI_FTYPE_QI): Ditto.
6721 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
6722 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
6723 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
6724 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
6725 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
6726 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
6727 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
6728 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
6729 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
6730 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
6731 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
6732 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
6733 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
6734 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
6735 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
6736 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
6737 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
6738 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
6739 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
6740 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
6741 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
6742 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
6743 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
6744 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
6745 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
6746 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
6747 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
6748 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
6749 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
6750 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
6751 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
6752 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
6753 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
6754 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
6755 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
6756 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
6757 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
6758 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
6759 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
6760 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
6761 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
6762 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
6763 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
6764 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
6765 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
6766 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
6767 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
6768 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
6769 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
6770 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
6771 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
6772 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
6773 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
6774 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
6775 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
6776 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
6777 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
6778 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
6779 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
6780 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
6781 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
6782 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
6783 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
6784 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
6785 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
6786 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
6787 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
6788 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
6789 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
6790 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
6791 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
6792 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
6793 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
6794 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
6795 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
6796 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
6797 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
6798 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
6799 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
6800 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
6801 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
6802 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
6803 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
6804 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
6805 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
6806 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
6807 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
6808 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
6809 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
6810 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
6811 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
6812 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
6813 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
6814 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
6815 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
6816 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
6817 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
6818 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
6819 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
6820 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
6821 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
6822 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
6823 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
6824 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
6825 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
6826 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
6827 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
6828 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
6829 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
6830 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
6831 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
6832 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
6833 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
6834 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
6835 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
6836 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
6837 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
6838 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
6839 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
6840 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
6841 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
6842 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
6843 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
6844 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
6845 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
6846 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
6847 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
6848 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
6849 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
6850 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
6851 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
6852 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
6853 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
6854 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
6855 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
6856 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
6857 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
6858 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
6859 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
6860 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
6861 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
6862 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
6863 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
6864 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
6865 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
6866 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
6867 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
6868 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
6869 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
6870 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
6871 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
6872 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
6873 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
6874 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
6875 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
6876 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
6877 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
6878 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
6879 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
6880 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
6881 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
6882 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
6883 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
6884 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
6885 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
6886 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
6887 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
6888 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
6889 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
6890 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
6891 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
6892 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
6893 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
6894 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
6895 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
6896 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
6897 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
6898 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
6899 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
6900 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
6901 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
6902 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
6903 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
6904 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
6905 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
6906 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
6907 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
6908 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
6909 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
6910 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
6911 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
6912 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
6913 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
6914 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
6915 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
6916 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
6917 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
6918 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
6919 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
6920 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
6921 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
6922 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
6923 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
6924 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
6925 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
6926 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
6927 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
6928 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
6929 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
6930 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
6931 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
6932 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
6933 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
6934 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
6935 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
6936 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
6937 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
6938 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
6939 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
6940 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
6941 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
6942 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
6943 (QI_FTYPE_V8DF_INT_QI): Ditto.
6944 (QI_FTYPE_V4DF_INT_QI): Ditto.
6945 (QI_FTYPE_V2DF_INT_QI): Ditto.
6946 (HI_FTYPE_V16SF_INT_HI): Ditto.
6947 (QI_FTYPE_V8SF_INT_QI): Ditto.
6948 (QI_FTYPE_V4SF_INT_QI): Ditto.
6949 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
6951 2015-07-31 Richard Biener <rguenther@suse.de>
6953 * gimple-fold.c (fold_gimple_assign): Remove folding of
6956 2015-07-31 Tom de Vries <tom@codesourcery.com>
6958 PR tree-optimization/66846
6959 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
6960 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
6961 (expand_omp_target) [ENABLE_CHECKING]: Same.
6962 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
6963 cfun if !LOOPS_NEED_FIXUP.
6964 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
6965 that omp_for already has its own loop struct.
6966 * tree-parloops.c (create_phi_for_local_result)
6967 (create_call_for_reduction): Handle simple latch bb.
6968 (create_parallel_loop): Add simple latch bb to preserve
6969 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
6970 (gen_parallel_loop): Remove call to cancel_loop_tree.
6971 (parallelize_loops): Skip loops that are inner loops of parallelized
6973 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
6974 verify_loop_structure.
6976 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6978 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
6979 * config/v850/v850.md (RV_REGNUM): New constants.
6980 * config/v850/v850.c (v850_libcall_value): New functions.
6981 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
6982 (TARGET_LIBCALL_VALUE): Define.
6984 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6986 * rtl.h (lowpart_subreg): Move in file.
6987 * loop-iv.c (lowpart_subreg): Move to...
6988 * simplify-rtx.c (lowpart_subreg): ...here.
6989 (simplify_binary_operation_1): Use lowpart_subreg instead of
6990 simplify_gen_subreg.
6991 * expr.c (expand_expr_real_2): Ditto.
6992 * emit-rtl.c (gen_lowpart_common): Ditto.
6993 * combine.c (gen_lowpart_for_combine): Ditto.
6994 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
6995 expand_debug_source_expr): Ditto.
6997 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
6999 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
7000 (expand_builtin_atomic_clear): Remove support for atomic_clear
7003 2015-07-30 Richard Biener <rguenther@suse.de>
7005 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
7006 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
7007 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
7008 redundant operand canonicalization.
7010 2015-07-30 David Sherwood <david.sherwood@arm.com>
7012 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
7013 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
7014 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
7015 * config/arm/arm.c (neon_valid_immediate): Likewise.
7016 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
7017 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
7018 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
7019 (expand_vec_perm_vpshufb2_vpermq): Likewise.
7020 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
7021 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
7022 * config/i386/sse.md
7023 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
7024 (*ssse3_palignr<mode>_perm): Likewise.
7025 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
7026 * config/spu/spu.c (arith_immediate_p): Likewise.
7027 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7028 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
7030 2015-07-30 Richard Biener <rguenther@suse.de>
7032 * genmatch.c (decision_tree::gen_gimple): Merge with ...
7033 (decision_tree::gen_generic): ... this into ...
7034 (decision_tree::gen): ... this.
7035 (main): Adjust callers.
7037 2015-07-30 Richard Biener <rguenther@suse.de>
7039 * genmatch.c (verbose): New global.
7040 (warning_at): Add overload with source_location.
7041 (capture_info::capture_info): Add bool whether generating gimple
7042 or generic. Add gimple member.
7043 (capture_info::cinfo): Add capture member.
7044 (capture_info::walk_match): Record capture. Warn on
7046 (capture_info::walk_c_expr): Add more fragments captures cannot
7047 escape through. Warn on escaped captures.
7048 (dt_simplify::gen_1): Warn on operands we force to have no
7050 (main): Initialize verbose.
7051 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
7053 2015-07-30 Richard Biener <rguenther@suse.de>
7056 * match.pd: Allow both operands to independently have conversion
7057 when simplifying compares of addresses.
7059 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
7063 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
7064 around those cases that need one.
7066 2015-07-29 Aditya Kumar <hiraditya@msn.com>
7068 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
7070 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
7072 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
7073 New. Copied from config/i386/gnu-user.h.
7074 (ASM_COMMENT_START): Likewise.
7075 (DBX_REGISTER_NUMBER): Likewise.
7077 2015-07-29 Richard Biener <rguenther@suse.de>
7079 * gimple-fold.c (fold_gimple_cond): Remove.
7080 (fold_stmt_1): Do not call it.
7082 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
7084 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
7085 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
7087 * config/aarch64/aarch64-modes.def: Add HFmode.
7089 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
7090 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
7092 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
7093 aarch64_promoted_type): New.
7095 (aarch64_float_const_representable_p): Disable HFmode.
7096 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
7097 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
7098 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
7100 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
7101 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
7103 * config/aarch64/iterators.md (GPF_F16): New.
7105 2015-07-29 Richard Biener <rguenther@suse.de>
7107 * match.pd: Merge address comparison patterns and make them
7108 handle some more cases.
7110 2015-07-29 Richard Biener <rguenther@suse.de>
7112 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
7113 (parser::parse_capture): Add bool argument on whether to reject
7115 (parser::parse_expr): Adjust.
7116 (parser::parse_op): Likewise.
7117 (parser::parse_pattern): Likewise.
7119 2015-07-29 Richard Biener <rguenther@suse.de>
7121 * gimple-fold.c (has_use_on_stmt): New function.
7122 (replace_stmt_with_simplification): Use it to allow
7123 abnormals originally referenced in the stmt.
7124 (fold_stmt_1): Canonicalize operand order.
7126 2015-07-28 David Sherwood <david.sherwood@arm.com>
7128 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
7129 GET_MODE_INNER unconditionally.
7130 * config/spu/spu.c (arith_immediate_p): Likewise.
7131 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
7132 * expmed.c (synth_mult): Remove check for VOIDmode result from
7134 (expand_mult_const): Likewise.
7135 * fold-const.c (fold_binary_loc): Replace call to element_precision
7136 with call to GET_MODE_PRECISION.
7137 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
7139 (emit_mode_inner): Likewise.
7140 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
7142 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
7143 (GET_MODE_UNIT_PRECISION): Likewise.
7144 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
7145 * simplify-rtx.c (simplify_immed_subreg): Likewise.
7146 * stor-layout.c (bitwise_type_for_mode): Update assert.
7147 (element_precision): Remove.
7149 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
7151 * target-insns.def (reload_load_address): New targetm instruction
7153 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
7155 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
7157 * target-insns.def (atomic_test_and_set): New targetm instruction
7159 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
7160 HAVE_*/gen_* interface.
7162 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
7164 * target-insns.def (can_extend, ptr_extend): New targetm instruction
7166 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
7167 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
7168 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
7169 * rtlanal.c (nonzero_bits1): Likewise.
7170 (num_sign_bit_copies1): Likewise.
7172 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
7174 * target-insns.def (eh_return): New targetm instruction pattern.
7175 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
7177 * function.c (thread_prologue_and_epilogue_insns): Remove
7178 preprocessor condition.
7180 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
7182 * target-insns.def (indirect_jump): New targetm instruction pattern.
7183 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
7186 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
7188 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
7189 instead of nonimmediate_operand. Remove C condiition.
7191 2015-07-28 Richard Biener <rguenther@suse.de>
7193 * match.pd: Add more simplification of address comparisons.
7195 2015-07-28 Richard Biener <rguenther@suse.de>
7197 * match.pd: Re-order two cases in comparison with max/min
7198 value simplification to make it apply for bools.
7200 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7202 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
7203 Handle simple SIGN_EXTEND or ZERO_EXTEND.
7204 (aarch64_rtx_costs): Properly strip extend or extract before
7205 passing down to rtx costs again.
7207 2015-07-28 Nick Clifton <nickc@redhat.com>
7209 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
7210 Optimizes the case where -mes0 is active and a constant symbolic
7212 * config/rl78/rl78-protos.h: Prototype the new function.
7213 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
7215 2015-07-28 Tom de Vries <tom@codesourcery.com>
7217 * tree-parloops.c (reduc_stmt_res): New function.
7218 (initialize_reductions, add_field_for_reduction)
7219 (create_phi_for_local_result, create_loads_for_reductions)
7220 (create_stores_for_reduction, build_new_reduction): Handle case that
7221 reduc_stmt is a phi.
7222 (gather_scalar_reductions): Allow double_reduc reductions.
7224 2015-07-28 Richard Biener <rguenther@suse.de>
7226 * fold-const.c (fold_comparison): Remove equality folding
7227 of decl addresses ...
7228 * match.pd: ... here and merge with existing pattern.
7230 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
7232 PR tree-optimization/66828
7233 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
7234 from int64_t to uint64_t.
7236 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
7238 * opts-common.c (read_cmdline_option): List DriverOnly enum values
7239 as valid only in the error message of the driver, not in the
7240 messages of the language compilers.
7242 2015-07-27 Tom de Vries <tom@codesourcery.com>
7244 * tree-parloops.c (gather_scalar_reductions): Simplify function
7247 2015-07-27 Marek Polacek <polacek@redhat.com>
7249 * ipa-devirt.c (types_same_for_odr): Fix typo.
7251 2015-07-27 Jason Merrill <jason@redhat.com>
7254 * dwarf2out.c (gen_inlined_subroutine_die): Check
7255 cgraph_function_possibly_inlined_p.
7257 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
7259 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
7260 Place integer variant first.
7261 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
7263 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
7266 * config/arm/arm-builtins.c (enum arm_builtins):
7267 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
7268 (ARM_BUILTIN_NEON_BASE): Rename macro to....
7269 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
7270 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
7271 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
7273 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
7276 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
7277 Add qualifier_lane_index.
7278 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
7279 (arm_getlane_qualifiers): Use qualifier_lane_index.
7280 (arm_lanemac_qualifiers): Rename to...
7281 (arm_mac_n_qualifiers): ...this.
7282 (LANEMAC_QUALIFIERS): Rename to...
7283 (MAC_N_QUALIFIERS): ...this.
7284 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
7285 (arm_setlane_qualifiers): Use qualifier_lane_index.
7286 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
7287 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
7288 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
7289 (arm_expand_neon_builtin): Handle qualifier_lane_index.
7291 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
7292 * config/arm/arm.c (bounds_check): Likewise, improve error message.
7293 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
7294 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
7295 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
7296 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
7297 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
7298 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
7299 qualifiers to TERNOP_IMM.
7300 (vdup_lane): Change qualifiers to GETLANE.
7301 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
7302 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
7303 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
7304 vqdmlsl_n): Change qualifiers to MAC_N.
7306 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
7307 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
7308 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
7309 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
7310 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
7311 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
7312 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
7313 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
7314 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
7315 Remove call to neon_lane_bounds.
7317 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
7319 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
7320 Place integer variant first.
7322 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
7324 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
7325 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
7326 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
7327 for armv6kz targets.
7328 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
7329 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
7330 (FL_FOR_ARCH6ZK): Remove.
7331 (FL_FOR_ARCH6KZ): New.
7332 (arm_arch6zk): New declaration.
7333 * config/arm/arm-tables.opt: Regenerate.
7334 * config/arm/arm.c (arm_arch6kz): New.
7335 (arm_option_override): Set arm_arch6kz.
7336 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
7337 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
7338 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
7340 2015-07-27 Marek Polacek <polacek@redhat.com>
7344 * doc/invoke.texi: Document -Wtautological-compare.
7346 2015-07-27 Richard Biener <rguenther@suse.de>
7348 * genmatch.c (decision_tree::gen_gimple): Split out large
7349 subtrees into separate functions.
7350 (decision_tree::gen_generic): Likewise.
7352 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
7354 * config/alpha/alpha.c: Use SUBREG_P predicate.
7355 * config/alpha/predicates.md: Ditto.
7357 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
7359 * config.host (s390*-*-*): Include driver-native.c only when
7360 building with s390* as host *and* target.
7362 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
7365 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
7366 T bit register modified_between_p check.
7368 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7370 * config/i386/i386.c: Use SUBREG_P predicate.
7371 * config/i386/i386.md: Ditto.
7372 * config/i386/sse.md: Ditto.
7373 * config/i386/predicates.md: Ditto.
7375 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7378 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
7379 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
7381 2015-07-25 Sebastian Pop <s.pop@samsung.com>
7383 * Makefile.in: Remove use of TREEBROWSER.
7384 * config.in: Regenerated.
7385 * configure: Regenerated.
7386 * configure.ac: Remove definition of TREEBROWSER.
7387 * tree-browser.c: Removed.
7388 * tree-browser.def: Removed.
7390 2015-07-25 Sebastian Pop <s.pop@samsung.com>
7392 * graphite-scop-detection.c: Include gimple-pretty-print.h.
7393 (stmt_simple_for_scop_p): Print when a stmt is not handled in
7395 (scopdet_basic_block_info): Print when a loop or bb cannot be
7396 represented in Graphite.
7398 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7401 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
7402 execution guard when min_size is less than size_needed.
7404 2015-07-25 Sebastian Pop <s.pop@samsung.com>
7406 * doc/install.texi: Document supported versions of ISL.
7408 2015-07-25 Jeff Law <law@redhat.com>
7412 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7413 unable to find X NE 0 in the tables, return X as the simplified
7415 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7416 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
7418 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7419 after removing the control flow statement and unnecessary edges.
7421 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
7424 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
7426 PR rtl-optimization/64164
7427 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7428 * tree-ssa-copyrename.c: Removed.
7429 * opts.c (default_options_table): Drop -ftree-copyrename. Add
7430 -ftree-coalesce-vars.
7431 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7432 * common.opt (ftree-copyrename): Ignore.
7433 (ftree-coalesce-inlined-vars): Likewise.
7434 * doc/invoke.texi: Remove the ignored options above.
7435 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7436 * tree-ssa-coalesce.h: ... here.
7437 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7438 headers required by it.
7439 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7440 across variables when flag_tree_coalesce_vars. Check register
7441 use and promoted modes to allow coalescing. Moved to
7442 tree-ssa-coalesce.c.
7443 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7444 with its member functions to tree-ssa-coalesce.c.
7445 (var_map_base_init): Likewise. Renamed to
7446 compute_samebase_partition_bases.
7447 (partition_view_normal): Drop want_bases parameter.
7448 (partition_view_bitmap): Likewise.
7449 * tree-ssa-live.h: Adjust declarations.
7450 * tree-ssa-coalesce.c: Include explow.h.
7451 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7452 default defs at the entry point.
7453 (dump_part_var_map): New.
7454 (compute_optimized_partition_bases): New, called by...
7455 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7456 of compute_samebase_partition_bases. Adjust.
7457 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7458 * cfgexpand.c (leader_merge): New.
7459 (get_rtl_for_parm_ssa_default_def): New.
7460 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7461 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7462 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7463 redundant MEM attr setting.
7464 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7466 (expand_one_stack_var): ... this. New wrapper to check and
7467 skip already expanded SSA partitions.
7468 (record_alignment_for_reg_var): New, factored out of...
7469 (expand_one_var): ... this.
7470 (expand_one_ssa_partition): New.
7471 (adjust_one_expanded_partition_var): New.
7472 (expand_one_register_var): Check and skip already expanded SSA
7474 (expand_used_vars): Don't create DECLs for anonymous SSA
7475 names. Expand all SSA partitions, then adjust all SSA names.
7476 (pass::execute): Replace the loops that set
7477 SA.partition_to_pseudo from partition leaders and cleared
7478 DECL_RTL for multi-location variables, and that which used to
7479 rename vars and set attrs, with one that clears DECL_RTL and
7480 checks that PARMs and RESULTs default_defs match DECL_RTL.
7481 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7482 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7483 * explow.c (promote_ssa_mode): New.
7484 * explow.h (promote_ssa_mode): Declare.
7485 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7486 * function.c: Include cfgexpand.h.
7487 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7488 (use_register_for_parm_decl): Wrapper for the above to
7489 special-case the result_ptr.
7490 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7491 (split_complex_args): Take assign_parm_data_all argument.
7492 Pass it to rtl_for_parm. Set up rtl and context for split
7494 (assign_parms_augmented_arg_list): Adjust.
7495 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7496 multiple locations. Recognize split complex args.
7497 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7498 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7499 (assign_parm_setup_block): Prefer SSA-assigned location.
7500 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
7501 if stack_parm is NULL.
7502 (assign_parm_setup_stack): Prefer SSA-assigned location.
7503 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7504 rtl before testing for pointer bounds. Special-case result_ptr.
7505 (expand_function_start): Maybe reset DECL_RTL of result.
7506 Prefer SSA-assigned location for result and static chain.
7507 Factor out DECL_RESULT and SET_DECL_RTL.
7508 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7509 anonymous SSA names. Use promote_ssa_mode.
7510 (get_temp_reg): Likewise.
7511 (remove_ssa_form): Adjust.
7512 * stor-layout.c (layout_decl): Don't set mem attributes of
7514 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7515 and get its reg_usage for reg invalidation.
7516 (compute_bb_dataflow): Pass it insn.
7517 (emit_notes_in_bb): Likewise.
7519 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7521 * config/i386/i386.c (ix86_va_start): Remove
7522 unneeded !TARGET_64BIT check.
7523 (ix86_gimplify_va_arg): Ditto.
7525 2015-07-24 Tom de Vries <tom@codesourcery.com>
7527 * graphite-sese-to-poly.c (build_poly_scop): Always call
7528 rewrite_commutative_reductions_out_of_ssa.
7530 2015-07-24 Tom de Vries <tom@codesourcery.com>
7532 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
7533 flag_associative_math to FLOAT_TYPE_P. Honour
7534 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
7536 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
7539 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
7540 and "%qD" in warning_at instead of "%q+D" in warning.
7542 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
7544 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
7545 (ix86_function_abi): Cleanup.
7547 2015-07-24 Michael Darling <darlingm@gmail.com>
7550 * acinclude.m4: Reflects renaming of configure.in to configure.ac
7551 * configure: Likewise
7552 * configure.ac: Likewise
7553 * doc/install.texi: Likewise
7554 * doc/tm.texi: Likewise
7555 * doc/tm.texi.in: Likewise
7557 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7559 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
7560 manually swapping values.
7561 * cse.c (fold_rtx): Likewise.
7562 * lra-eliminations.c (form_sum): Likewise.
7564 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
7567 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
7568 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
7569 (*jcc_1, *jcc_2, jump, simple_return_internal)
7570 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
7571 Set length_nobnd attribute instead of length attribute.
7572 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
7573 (length_nobnd): Remove attribute.
7574 (length): Remove length_nobnd processing.
7576 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
7578 * gimplify.c (omp_default_clause): New function. Reorganize flow
7579 for clarity. Broken out of ...
7580 (omp_notice_variable): ... here.
7582 2015-07-24 Gary Funck <gary@intrepid.com>
7585 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
7586 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
7588 2015-07-24 Tom de Vries <tom@codesourcery.com>
7590 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
7591 exit-first loop transform.
7593 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7596 * tree-cfg.c (struct replace_decls_d): New struct.
7597 (replace_block_vars_by_duplicates_1): New function.
7598 (replace_block_vars_by_duplicates): Use it to replace the decls
7599 in the value exprs by duplicates.
7601 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
7603 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
7604 -shared, -symbolic, -rdynamic.
7606 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
7609 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
7610 -dynamic-linker within %{!static %{!shared, and -rdynamic within
7613 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
7616 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
7617 edge summary is available.
7619 2015-07-24 Richard Biener <rguenther@suse.de>
7621 * genmatch.c (struct dt_node): Add statistic fields.
7622 (dt_node::analyze): New method.
7623 (decision_tree::gen_gimple): Call analyze on the root node
7624 and print statistics to stderr.
7625 (decision_tree::gen_generic): Likewise.
7627 2015-07-24 Richard Biener <rguenther@suse.de>
7629 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
7630 against the highest or lowest possible integer ...
7631 * match.pd: ... as patterns here.
7633 2015-07-24 Richard Biener <rguenther@suse.de>
7635 * genmatch.c (struct capture_info): Add same_as field.
7636 (capture_info::capture_info): Initialize same_as.
7637 (capture_info::walk_match): Compute same_as.
7638 (capture_info::walk_result): Compute stuff for the leader.
7639 (capture_info::walk_c_expr): Likewise.
7640 (dt_simplify::gen_1): Only look at leaders when deciding
7641 to force no side-effects or emit side-effects of omitted operands.
7643 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7645 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
7646 reg note to the GPR -> FPR save instructions.
7648 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7650 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
7652 (s390_expand_insv): Don't generate risbg pattern for constant zero
7654 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
7655 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
7658 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7660 * config/s390/s390.c (s390_reorg): Clean up handling of processors
7663 (s390_issue_rate): Likewise.
7664 (s390_sched_reorder): Likewise.
7665 (s390_sched_variable_issue): Likewise.
7666 (s390_loop_unroll_adjust): Likewise.
7667 (s390_option_override): Likewise.
7669 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7671 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
7672 processor capabilities with -march=native.
7673 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
7674 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
7675 (S390_TARGET_BITS_STRING): Macro to simplify specs.
7677 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7679 * config/s390/s390.c (s390_issue_rate): Handle
7680 PROCESSOR_2094_Z9_EC.
7681 (s390_option_override): Likewise.
7682 (s390_adjust_priority): Likewise.
7684 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7686 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
7687 when cross compiling.
7689 2015-07-24 Richard Biener <rguenther@suse.de>
7691 * fold-const.c (maybe_canonicalize_comparison_1): Move
7692 A code CST canonicalization ...
7693 * match.pd: ... to a pattern here.
7695 2015-07-24 Jiong Wang <jiong.wang@arm.com>
7698 2015-07-22 Jiong Wang <jiong.wang@arm.com>
7700 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7701 (HONOR_REG_ALLOC_ORDER): Define.
7703 2015-07-24 Richard Biener <rguenther@suse.de>
7705 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
7706 * fold-const.c (fold_comparison): Move parameter does not
7707 alias &local simplification ...
7708 * match.pd: ... as a pattern here.
7710 2015-07-24 Richard Biener <rguenther@suse.de>
7712 * gimple-fold.c (replace_stmt_with_simplification): Special-case
7713 valueizing call operands.
7714 * gimple-match-head.c (maybe_push_res_to_seq): Take
7715 number of call arguments from ops array.
7716 (do_valueize): New function.
7717 (gimple_simplify): Return true if valueization changed
7718 any operand even if the result didn't simplify further.
7720 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7723 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
7725 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7728 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
7730 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
7732 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
7735 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
7737 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
7740 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
7742 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
7743 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
7745 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
7746 ms_va_list_type_node initialization.
7748 2015-07-23 Jeff Law <law@redhat.com>
7751 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7752 unable to find X NE 0 in the tables, return X as the simplified
7754 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7755 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
7757 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7758 after removing the control flow statement and unnecessary edges.
7760 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
7762 * tree-pass.h (get_current_pass_name): Removed.
7764 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
7766 PR rtl-optimization/64164
7767 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7768 * tree-ssa-copyrename.c: Removed.
7769 * opts.c (default_options_table): Drop -ftree-copyrename. Add
7770 -ftree-coalesce-vars.
7771 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7772 * common.opt (ftree-copyrename): Ignore.
7773 (ftree-coalesce-inlined-vars): Likewise.
7774 * doc/invoke.texi: Remove the ignored options above.
7775 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7776 * tree-ssa-coalesce.h: ... here.
7777 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7778 headers required by it.
7779 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7780 across variables when flag_tree_coalesce_vars. Check register
7781 use and promoted modes to allow coalescing. Moved to
7782 tree-ssa-coalesce.c.
7783 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7784 with its member functions to tree-ssa-coalesce.c.
7785 (var_map_base_init): Likewise. Renamed to
7786 compute_samebase_partition_bases.
7787 (partition_view_normal): Drop want_bases parameter.
7788 (partition_view_bitmap): Likewise.
7789 * tree-ssa-live.h: Adjust declarations.
7790 * tree-ssa-coalesce.c: Include explow.h.
7791 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7792 default defs at the entry point.
7793 (dump_part_var_map): New.
7794 (compute_optimized_partition_bases): New, called by...
7795 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7796 of compute_samebase_partition_bases. Adjust.
7797 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7798 * cfgexpand.c (leader_merge): New.
7799 (get_rtl_for_parm_ssa_default_def): New.
7800 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7801 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7802 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7803 redundant MEM attr setting.
7804 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7806 (expand_one_stack_var): ... this. New wrapper to check and
7807 skip already expanded SSA partitions.
7808 (record_alignment_for_reg_var): New, factored out of...
7809 (expand_one_var): ... this.
7810 (expand_one_ssa_partition): New.
7811 (adjust_one_expanded_partition_var): New.
7812 (expand_one_register_var): Check and skip already expanded SSA
7814 (expand_used_vars): Don't create DECLs for anonymous SSA
7815 names. Expand all SSA partitions, then adjust all SSA names.
7816 (pass::execute): Replace the loops that set
7817 SA.partition_to_pseudo from partition leaders and cleared
7818 DECL_RTL for multi-location variables, and that which used to
7819 rename vars and set attrs, with one that clears DECL_RTL and
7820 checks that PARMs and RESULTs default_defs match DECL_RTL.
7821 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7822 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7823 * explow.c (promote_ssa_mode): New.
7824 * explow.h (promote_ssa_mode): Declare.
7825 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7826 * function.c: Include cfgexpand.h.
7827 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7828 (use_register_for_parm_decl): Wrapper for the above to
7829 special-case the result_ptr.
7830 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7831 (split_complex_args): Take assign_parm_data_all argument.
7832 Pass it to rtl_for_parm. Set up rtl and context for split
7834 (assign_parms_augmented_arg_list): Adjust.
7835 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7836 multiple locations. Recognize split complex args.
7837 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7838 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7839 (assign_parm_setup_block): Prefer SSA-assigned location.
7840 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
7841 if stack_parm is NULL.
7842 (assign_parm_setup_stack): Prefer SSA-assigned location.
7843 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7844 rtl before testing for pointer bounds. Special-case result_ptr.
7845 (expand_function_start): Maybe reset DECL_RTL of result.
7846 Prefer SSA-assigned location for result and static chain.
7847 Factor out DECL_RESULT and SET_DECL_RTL.
7848 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7849 anonymous SSA names. Use promote_ssa_mode.
7850 (get_temp_reg): Likewise.
7851 (remove_ssa_form): Adjust.
7852 * stor-layout.c (layout_decl): Don't set mem attributes of
7854 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7855 and get its reg_usage for reg invalidation.
7856 (compute_bb_dataflow): Pass it insn.
7857 (emit_notes_in_bb): Likewise.
7859 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
7862 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
7864 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
7865 (rs6000_emit_2insn_and): Handle dot forms.
7866 * config/rs6000/rs6000.md (and<mode>3): Adjust.
7867 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
7868 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
7870 2015-07-23 Richard Biener <rguenther@suse.de>
7872 * generic-match-head.c: Include cgraph.h.
7873 * gimple-match-head.c: Likewise.
7874 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
7876 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
7877 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
7880 2015-07-23 Richard Biener <rguenther@suse.de>
7882 * gimple-fold.c (fold_gimple_cond): Do not require folding
7883 results to pass valid_gimple_rhs_p.
7884 * tree-cfg.h (fold_cond_expr_cond): Remove.
7885 * tree-cfg.c (fold_cond_expr_cond): Likewise.
7886 (make_edges): Do not call it.
7887 * tree-inline.c (tree_function_versioning): Likewise.
7889 2015-07-23 Tom de Vries <tom@codesourcery.com>
7891 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
7892 vect_force_simple_reduction.
7893 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
7894 (vect_is_simple_reduction_1): Add and handle
7895 need_wrapping_integral_overflow parameter.
7896 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
7897 need_wrapping_integral_overflow parameter.
7898 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
7899 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
7902 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
7904 PR tree-optimization/66926,66951
7905 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
7906 INNER_LOOP and fix up condition for renaming virtual operands.
7908 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7910 * combine.c (try_combine): Use std::swap instead of manually
7913 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
7915 * config/mips/i6400.md: New file.
7916 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
7917 (mips64r6): Likewise.
7919 * config/mips/mips-tables.opt: Regenerate.
7920 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
7921 (mips_issue_rate): Add support for i6400.
7922 (mips_multipass_dfa_lookahead): Likewise.
7923 * config/mips/mips.h (TUNE_I6400): Define.
7924 * config/mips/mips.md: Include i6400.md.
7925 (processor): Add i6400.
7926 * doc/invoke.texi (-march=@var{arch}): Add i6400.
7928 2015-07-23 Richard Biener <rguenther@suse.de>
7931 * match.pd: Guard widen and sign-change comparison simplification
7934 2015-07-23 Richard Biener <rguenther@suse.de>
7936 PR tree-optimization/66945
7937 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
7938 ::before_dom_children): Force the propagators idea of
7939 non-executable edges to materialize, not what the folder
7942 2015-07-23 Richard Biener <rguenther@suse.de>
7944 * gimple.h (gimple_cond_make_false): Use 0 != 0.
7945 (gimple_cond_make_true): Use 1 != 0.
7947 2015-07-22 DJ Delorie <dj@redhat.com>
7949 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
7952 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
7953 (ashrhi3): Likewise.
7954 (lshrhi3): Likewise.
7955 (movhi): Take advantage of zero-extend to load small constants.
7957 (and<mode>3): Likewise.
7958 (zero_extendqihi2): Likewise.
7959 (zero_extendqisi2): New.
7960 * config/msp430/constraints.md (N,O): New.
7961 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
7963 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
7966 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
7967 to enum feature_priority and feature_list.
7968 (fold_builtin_cpu): Add F_AES to enum processor_features
7969 and isa_names_table.
7971 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
7974 * config/i386/linux-common.h (MPX_SPEC): Use linker option
7975 for 64bit target only.
7977 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
7979 * config/nvptx/nvptx.c: Expand some comments.
7981 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
7983 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
7984 (cortex_a53_advsimd): ...This.
7986 2015-07-22 Richard Biener <rguenther@suse.de>
7988 * genmatch.c (expr::gen_transform): Clarify error message
7989 and display location.
7991 2015-07-22 Richard Biener <rguenther@suse.de>
7993 * genmatch.c (struct operand): Add location member.
7994 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
7996 (struct simplify): Remove match_location and result_location
7998 (elsehwere): Adjust.
8000 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
8002 * config/mips/m5100.md: New file.
8003 * config/mips/mips-cpus.def (m5100, m5101): Define.
8004 * config/mips/mips-tables.opt: Regenerate.
8005 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
8006 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
8007 -march=m5101 to -mips32r5.
8008 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
8009 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
8011 * config/mips/mips.md: Include m5100.md.
8012 (processor): Add m5100.
8013 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
8015 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
8017 * config/mips/mips-cpus.def (interaptiv): Define.
8018 * config/mips/mips-tables.opt: Regenerate.
8019 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
8021 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
8022 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
8024 2015-07-22 Jiong Wang <jiong.wang@arm.com>
8027 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
8028 (HONOR_REG_ALLOC_ORDER): Define.
8030 2015-07-22 Richard Biener <rguenther@suse.de>
8032 PR tree-optimization/66952
8033 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
8034 blocks we end up executing unconditionally reset all SSA
8035 info such as range and alignment.
8036 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
8037 * tree-ssanames.c (reset_flow_sensitive_info): New function.
8039 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
8041 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
8044 2015-07-22 Richard Biener <rguenther@suse.de>
8046 * genmatch.c (parser::parse_result): Properly handle
8047 match with result operands and conditions.
8049 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
8052 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
8053 Add qualifier_struct_load_store_lane_index.
8054 (aarch64_types_loadstruct_lane_qualifiers): Use
8055 qualifier_struct_load_store_lane_index for lane index argument for
8057 (aarch64_types_storestruct_lane_qualifiers): Ditto.
8058 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
8059 (aarch64_simd_expand_args): Add new argument describing mode of
8060 builtin. Check lane bounds for arguments with
8061 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
8062 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
8063 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
8064 (aarch64_simd_expand_builtin): Handle arguments with
8065 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
8066 aarch64_simd_expand_args.
8067 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
8068 vst[234]_lane with BUILTIN_VALLDIF.
8069 * config/aarch64/aarch64-simd.md:
8070 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
8071 endianness reversal on lane index.
8072 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
8073 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
8074 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
8075 (vec_store_lanesci_lane<mode>): Ditto.
8076 (vec_store_lanesxi_lane<mode>): Ditto.
8077 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
8078 reversal of lane index.
8079 (aarch64_ld3_lane<mode>): Ditto.
8080 (aarch64_ld4_lane<mode>): Ditto.
8081 (aarch64_st2_lane<mode>): Ditto.
8082 (aarch64_st3_lane<mode>): Ditto.
8083 (aarch64_st4_lane<mode>): Ditto.
8084 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
8085 to qmode. Add new mode parameter. Update uses.
8086 (__LD3_LANE_FUNC): Ditto.
8087 (__LD4_LANE_FUNC): Ditto.
8088 (__ST2_LANE_FUNC): Ditto.
8089 (__ST3_LANE_FUNC): Ditto.
8090 (__ST4_LANE_FUNC): Ditto.
8092 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
8094 * doc/invoke.texi (Language Independent Options): Rename node to
8095 Diagnostic Message Formatting Options.
8097 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
8100 * lra-remat.c (operand_to_remat): Prevent using insns with input
8101 subregs processed separately by IRA.
8103 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
8105 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
8107 (single_imm_use): Check for iterator node.
8108 (num_imm_uses): Likewise.
8109 * tree-ssa-operands.c (has_zero_uses_1): Delete.
8110 (single_imm_use_1): Check for iterator node.
8112 2015-07-21 Mike Frysinger <vapier@gentoo.org>
8113 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8115 * configure.ac: Add check for new options in isl-0.15.
8116 * config.in, configure: Rebuilt.
8117 * graphite-blocking.c: Include <isl/constraint.h>
8118 * graphite-interchange.c, graphite-poly.c: Likewise.
8119 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
8120 * graphite.c: Likewise.
8121 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
8123 * graphite-dependences.c: Include <isl/constraint.h>.
8124 (max_number_of_out_dimensions): Returns isl_stat.
8125 (extend_schedule_1): Likewise
8126 (extend_schedule): Corresponding changes.
8127 * graphite-optimize-isl.c: Include <isl/constraint.h> and
8129 (getSingleMap): Change return type of isl_stat.
8130 (optimize_isl): Conditionally use
8131 isl_options_set_schedule_serialize_sccs.
8132 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
8133 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
8135 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
8138 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
8139 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
8141 2015-07-21 Richard Biener <rguenther@suse.de>
8143 PR tree-optimization/66948
8144 * genmatch.c (capture_info::walk_match): Also recurse to
8145 captures. Properly compute expr state from captures of
8147 * match.pd: Add single-use guards to
8148 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
8150 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
8152 * config/nvptx/mkoffload.c (process): Add static destructor call.
8154 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8157 * match.pd (A - B -> A + (-B)): Don't allow folding
8158 when type if a fixed-point type.
8160 2015-07-20 DJ Delorie <dj@redhat.com>
8162 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
8163 (iorqi3_real): Likewise for set1.
8165 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
8167 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
8170 2015-07-20 Aditya Kumar <hiraditya@msn.com>
8172 * graphite-isl-ast-to-gimple.c:
8173 Refactor so that each function can access 'region'. This will help
8174 maintain a parameter rename_map within a region.
8176 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8178 * config/rs6000/rs6000.md (*lt0_disi): New.
8180 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8183 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
8184 "available letters" comment.
8185 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
8186 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
8187 and_2rld_operand): Delete.
8188 (and_operand): Adjust.
8189 (rotate_mask_operator): New.
8190 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
8191 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
8192 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
8193 extract_ME): Delete.
8194 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
8195 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
8196 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
8197 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
8198 rs6000_emit_2insn_and): New.
8199 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
8200 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
8201 includes_rldic_lshift_p, includes_rldicr_lshift_p,
8202 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
8203 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
8204 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
8205 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
8206 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
8207 rs6000_emit_2insn_and): New.
8208 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
8209 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
8211 <NOT>: Don't fall through to next case.
8212 <AND>: Handle the various rotate-and-mask cases directly.
8213 <IOR>: Always cost as one insn.
8214 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
8215 (and<mode>3): Adjust expander for the new patterns.
8216 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
8217 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
8218 (*and<mode>3_imm_dot_shifted): New.
8219 (*and<mode>3_mask): Delete, rewrite as ...
8220 (and<mode>3_mask): ... New.
8221 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
8222 (andsi3_internal0_nomc): Delete.
8223 (*andsi3_internal6): Delete.
8224 (*and<mode>3_2insn): New.
8225 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
8226 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
8227 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
8228 *insvdi_internal3): Delete.
8229 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
8230 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
8231 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
8232 *ior<mode>_mask): New.
8233 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
8234 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
8235 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
8236 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
8238 (ashr<mode>3): Delete expander.
8239 (*ashr<mode>3): Rename to ...
8240 (ashr<mode>3): ... This.
8241 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
8242 (*rotldi3_internal4, *rotldi3_internal5 and split,
8243 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
8244 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
8245 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
8246 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
8247 (splitter for loading a mask): Adjust.
8248 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
8250 2015-07-20 Marek Polacek <polacek@redhat.com>
8252 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
8253 output_add_clobbers, output_added_clobbers_hard_reg_p,
8254 gen_rtx_scratch): Remove declarations.
8256 2015-07-20 Marek Polacek <polacek@redhat.com>
8259 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
8261 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8263 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
8264 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
8266 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8268 * combine.c (combine_simplify_rtx): Move simplification step
8269 before various transformations/substitutions.
8271 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
8273 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
8274 (struct int_traits): Likewise.
8276 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8278 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
8279 function to vmsdbgout_function_decl.
8281 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
8284 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
8285 from misaligned positions.
8286 (ix86_expand_pinsr): Reject insertions to misaligned positions.
8288 2015-07-18 Sebastian Pop <s.pop@samsung.com>
8292 * Makefile.in: Removed omega.o.
8293 * common.opt: Document flag fcheck-data-deps as deprecated.
8294 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
8295 its associated params: omega-max-vars, omega-max-geqs,
8296 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
8297 omega-max-keys, omega-eliminate-redundant-constraints.
8298 * doc/loop.texi: Remove all the section on Omega.
8299 * graphite-blocking.c: Include missing params.h: it used to be
8300 included through tree-data-ref.h and omega.h.
8301 * graphite-isl-ast-to-gimple.c: Same.
8302 * graphite-optimize-isl.c: Same.
8303 * graphite-sese-to-poly.c: Same.
8307 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
8308 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
8309 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
8310 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
8311 * passes.def: Remove pass_check_data_deps.
8312 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
8313 (dump_conflict_function): Same.
8314 (dump_subscript): Same.
8315 (print_direction_vector): Same.
8316 (print_dir_vectors): Same.
8317 (print_lambda_vector): Same.
8318 (print_dist_vectors): Same.
8319 (dump_data_dependence_relation): Same.
8320 (dump_data_dependence_relations): Same.
8321 (dump_dist_dir_vectors): Same.
8323 (init_omega_eq_with_af): Removed.
8324 (omega_extract_distance_vectors): Removed.
8325 (omega_setup_subscript): Removed.
8326 (init_omega_for_ddr_1): Removed.
8327 (init_omega_for_ddr): Removed.
8328 (ddr_consistent_p): Removed.
8329 (compute_affine_dependence): Do not use omega to check data
8331 (compute_data_dependences_for_bb): Removed.
8332 (analyze_all_data_dependences): Removed.
8333 (tree_check_data_deps): Removed.
8334 * tree-data-ref.h: Do not include omega.h.
8335 (compute_data_dependences_for_bb): Removed.
8336 (tree_check_data_deps): Removed.
8337 * tree-ssa-loop.c (pass_check_data_deps): Removed.
8338 (make_pass_check_data_deps): Removed.
8339 * tree-ssa-phiopt.c: Include params.h.
8340 * tree-vect-data-refs.c: Same.
8341 * tree-vect-slp.c: Same.
8343 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
8345 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
8346 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
8347 (mem->fpreg splitters): Ditto.
8348 (general_operand->nonimmediate_operand splitter): Use explicit modes.
8349 Disable DFmode for TARGET_64BIT.
8351 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
8354 * config/i386/i386.c (ix86_expand_prologue): Replicate static
8357 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
8359 * config/nvptx/mkoffload.c (process): Constify host data.
8360 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
8362 (generate_host_descr_file): Likewise.
8364 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
8365 Sebastian Pop <s.pop@samsung.com>
8368 * graphite-dependences.c (add_pdr_constraints): Renamed
8369 pdr->extent to pdr->subscript_sizes.
8370 * graphite-interchange.c (build_linearized_memory_access): Add
8371 back all gcc_assert's that the "isl_int to isl_val conversion"
8372 patch has removed. Refactored.
8373 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
8374 * graphite-poly.c (new_poly_dr): Same.
8375 (free_poly_dr): Same.
8376 * graphite-poly.h (struct poly_dr): Same.
8377 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
8378 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
8379 * graphite-scop-detection.h: Fix space.
8380 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
8381 back all gcc_assert's removed by a previous patch.
8382 (wrap): Remove the_isl_ctx global variable that the same patch has
8384 (build_loop_iteration_domains): Same.
8385 (add_param_constraints): Same.
8386 (pdr_add_data_dimensions): Same. Refactored.
8387 (build_poly_dr): Renamed extent to subscript_sizes.
8389 2015-07-17 Marek Polacek <polacek@redhat.com>
8391 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
8392 * match.pd: ... here.
8394 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
8396 * config/nvptx/mkoffload.c (process): Constify target data.
8397 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
8398 Constify target data.
8399 (generate_target_offloadend_file): Likewise.
8401 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
8403 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
8404 to allow renaming of PHI arguments on edges incoming from outer
8405 loop header, add corresponding check before start PHI iterator.
8406 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
8407 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
8408 with true force_vectorize. Set-up dominator for outer loop too.
8409 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
8410 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
8411 was marked with force_vectorize and has restricted cfg.
8412 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
8414 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
8415 do peeling for outer loops.
8417 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
8418 Matthias Klose <doko@ubuntu.com>
8420 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
8421 build-sysroot, sysroot from the `Miscenalleous configure options' to
8422 the `Directories' section and strip trailing `/' from with_sysroot.
8423 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
8424 * configure: Regenerated.
8426 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
8429 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
8430 (TARGET_HARD_DF_REGS): Ditto.
8431 (TARGET_HARD_XF_REGS): Ditto.
8432 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
8433 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
8434 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
8435 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
8436 (*movsf_internal): Add alternatives 16 and 17. Enable
8437 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
8439 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
8441 PR rtl-optimization/66891
8442 * calls.c (expand_call): Wrap precompute_register_parameters with
8443 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
8445 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
8447 * config/nvptx/mkoffload.c (process): Constify mapping variables.
8448 Define target data struct and initialize it.
8450 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
8452 PR rtl-optimization/66626
8453 * ira.h (emit-rtl.h): Include.
8454 (non_spilled_static_chain_regno_p): New.
8455 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
8456 unless it is non spilled static chain pseudo.
8457 (assign_hard_rego): Spill memory profitable allocno unless it is
8458 non spilled static chain pseudo.
8459 (allocno_spill_priority_compare): Put non spilled static chain
8460 pseudo at the end of sorted array.
8461 (improve_allocation): Do nothing if we have static chain and
8463 (allocno__priority_compare_func): Put non spilled static chain
8464 pseudo at the beginning of sorted array.
8465 (move_spill_restore): Ignore non spilled static chain pseudo.
8466 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
8467 to non spilled static chain pseudo.
8468 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
8469 pseudo at the beginning of sorted array.
8470 (spill_for): Spill non spilled static chain pseudo last.
8471 * lra-constraints.c (lra_constraints): Remove static chain pseudo
8472 check for equivalence.
8474 2015-07-16 Martin Liska <mliska@suse.cz>
8477 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
8478 dst_ctx if it does not exist.
8480 2015-07-16 Martin Liska <mliska@suse.cz>
8482 * hash-set.h (remove): New function.
8483 (iterator): New iteration class for hash_set.
8485 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8487 * genattrtab.c (make_canonical): Add a file_location parameter.
8488 Use fatal_at rather than fatal.
8489 (get_attr_value): Likewise. Update call to make_canonical.
8490 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
8491 (make_internal_attr): Update calls accordingly.
8493 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8495 * read-md.h (message_with_line, error_with_line): Delete.
8496 * read-md.c (message_with_line, error_with_line): Delete.
8497 * gensupport.h: Include read-md.h.
8498 (md_rtx_info): New structure.
8499 (read_md_rtx): Use it. Return a bool success value.
8500 * gensupport.c (read_md_rtx): Likewise.
8501 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
8502 (main): Update after interface changes.
8503 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
8504 (main): Update after interface changes.
8505 * genattrtab.c (insn_code_number): Delete.
8506 (optimize_attrs): Add a max_insn_code parameter and use it instead
8507 of insn_code_number.
8508 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
8509 Use *_at rather than *_with_line functions.
8510 (gen_insn): Likewise.
8511 (gen_delay): Likewise.
8512 (gen_insn_reserv): Likewise.
8513 (gen_bypass): Take an md_rtx_info rather than an rtx.
8514 (main): Update after interface changes. Use a local max_insn_code
8515 variable instead of insn_code_number.
8516 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
8517 an rtx. Use fatal_at rather than fatal.
8518 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
8519 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
8520 (gen_absence_set, gen_final_absence_set, gen_automaton)
8521 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
8522 (main): Update after interface changes.
8523 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
8525 (main): Update after interface changes.
8526 * genconditions.c (main): Use new read_md_rtx interface.
8527 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
8528 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
8529 (main): Update after interface changes.
8530 * genemit.c (insn_code_number, insn_index_number): Delete.
8531 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8532 Use fatal_at rather than fatal.
8533 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
8535 (gen_split): Likewise.
8536 (main): Update after interface changes.
8537 * genextract.c (line_no): Delete.
8538 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8539 Update call to walk_rtx.
8540 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
8541 rather than message_with_line.
8542 (walk_rtx): Add an md_rtx_info argument. Update call to
8543 VEC_safe_set_locstr.
8544 (main): Update after interface changes.
8545 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
8546 and lineno. Use error_at rather than separate message_with_line
8547 calls and have_error assignments.
8548 (main): Update after interface changes.
8549 * genmddump.c (main): Use new read_md_rtx interface.
8550 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
8551 (main): Update after interface changes.
8552 * genoutput.c (next_code_number): Delete.
8553 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8554 (gen_peephole, gen_expand, gen_split): Likewise.
8555 (note_constraint): Likewise. Use *_at rather than *_with_line
8557 (main): Update after interface changes.
8558 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
8560 (main): Update after interface changes.
8561 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
8562 than an rtx and lineno.
8563 (process_define_constraint): Likewise.
8564 (process_define_register_constraint): Likewise.
8565 (main): Update after interface changes.
8566 * genrecog.c (next_insn_code, pattern_lineno): Delete.
8567 (validate_pattern): Replace top-level rtx with an md_rtx_info.
8568 Use *_at rather than *_with_line functions.
8569 (match_pattern_2): Likewise.
8570 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
8571 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
8572 Use *_at rather than *_with_line functions.
8573 * gentarget-def.c (add_insn): New function.
8574 (main): Use it. Use new read_md_rtx interface.
8576 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8578 * gensupport.h (compute_test_codes): Take a file_location rather
8580 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
8581 rather than *_with_line functions.
8582 (process_define_predicate): Update call to compute_test_codes.
8583 * genpreds.c (validate_exp): Take a file_location rather than a
8584 line number. Use *_at functions rather than *_with_line functions.
8585 (process_define_predicate): Update call to validate_exp.
8586 (constraint_data): Replace lineno field with a file_location.
8587 (add_constraint): Take a file_location rather than a line number.
8588 Use *_at functions rather than *_with_line functions. Fix error
8589 message for address constraints. Update after changes to
8590 validate_exp, constraint_data and compute_test_codes.
8591 (process_define_constraint): Update accordingly.
8592 (process_define_register_constraint): Likewise.
8594 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8596 * genoutput.c (data): Use a file_location to record the source
8599 (idata, idata_end): Remove initialization.
8600 (constraint_data): Replace lineno with a file_location.
8601 (output_insn_data): Update after changes to data.
8602 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
8603 (scan_operands): Likewise, using *_at rather than *_with_line
8605 (process_template): Likewise.
8606 (validate_insn_alternatives): Likewise.
8607 (validate_insn_operands): Likewise.
8608 (validate_optab_operands): Likewise.
8609 (init_insn_for_nothing): Initialize idata and idata_end.
8610 (note_constraint): Update after changes to constraint_data,
8611 using at rather than with_line functions.
8612 (mdep_constraint_len): Take a file_location rather than a
8613 line number. Use at rather than with_line functions.
8615 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8617 * read-md.h (fatal_at): Declare.
8618 * read-md.c (fatal_at): New function.
8619 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
8620 to record the source position.
8621 (check_attr_test): Take a file_location instead of a line number.
8622 Use fatal_at instead of fatal.
8623 (check_attr_value): Update after above changes, using "at"
8624 rather than "with_line" reporting functions.
8625 (convert_set_attr_alternative): Likewise.
8626 (gen_attr): Likewise.
8627 (check_defs): Likewise. Don't assign to read_md_filename.
8628 (gen_insn): Update initialization after above changes.
8629 (gen_delay): Likewise.
8630 (write_insn_cases): Print the filename for a define_peephole.
8631 (gen_insn_reserv): Take a line number as argument and update
8632 the call to check_attr_test.
8633 (main): Pass a line number to gen_insn_reserv.
8635 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8637 * read-md.h (file_location): New structure.
8638 (directive_handler_t): Take a file_location rather than a line number.
8639 (message_at, error_at): Declare.
8640 (read_skip_construct): Delete.
8641 * read-md.c (message_with_line_1): Replace with...
8642 (message_at_1): ...this new function.
8643 (message_at, error_at): New functions.
8644 (message_with_line, error_with_line): Update to use message_at_1.
8645 (handle_enum): Take a file_location rather than a line number
8646 and use error_at for error reporting.
8647 (handle_include): Likewise.
8648 (read_skip_construct): Likewise. Make static.
8649 (handle_file): Update after above changes. Pass a file_location
8650 rather than a line number to handle_directive.
8651 * gensupport.c (queue_elem): Replace separate filename and lineno
8652 with a file_location.
8653 (queue_pattern): Replace filename and lineno arguments with a
8654 file_location. Update after change to queue_elem.
8655 (process_define_predicate): Replace lineno argument with a
8656 file_location and use error_at for error reporting. Update
8657 after above changes.
8658 (process_rtx): Likewise.
8659 (subst_pattern_match): Likewise.
8660 (get_alternatives_number): Likewise.
8661 (alter_predicate_for_insn): Likewise.
8662 (rtx_handle_directive): Likewise.
8663 (is_predicable): Update after above changes, using error_at rather
8664 than error_with_line.
8665 (has_subst_attribute): Likewise.
8666 (identify_predicable_attribute): Likewise.
8667 (alter_attrs_for_subst_insn): Likewise.
8668 (process_one_cond_exec): Likewise.
8669 (process_substs_on_one_elem): Likewise.
8670 (process_define_subst): Likewise.
8671 (check_define_attr_duplicates): Likewise.
8672 (read_md_rtx): Update after change to queue_elem.
8674 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8676 * genoutput.c (next_index_number): Delete.
8677 (data): Remove index_number.
8678 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
8679 (main): Remove manipulation of next_index_number.
8681 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8683 * genattrtab.c (check_attr_value): Remove handling of null attrs.
8684 (make_canonical): Likewise.
8686 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
8688 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
8689 instead of adjust_address_nv.
8690 (restore_stack_nonlocal): Likewise.
8691 (nonlocal_goto): Likewise.
8693 2015-07-16 Tom de Vries <tom@codesourcery.com>
8695 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
8696 not have a corresponding loop header phi.
8698 2015-07-16 Tom de Vries <tom@codesourcery.com>
8700 * tree-parloops.c (create_loads_for_reductions): Handle case that
8701 reduction is unused.
8703 2015-07-16 Richard Biener <rguenther@suse.de>
8705 PR tree-optimization/66894
8706 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
8707 about deriving NE_EXPR from truncated values.
8709 2015-07-16 Martin Liska <mliska@suse.cz>
8712 (object_allocator): Add new class.
8713 (pool_allocator::initialize): Use the underlying class.
8714 (pool_allocator::allocate): Likewise.
8715 (pool_allocator::remove): Likewise.
8716 (operator new): A new generic allocator.
8717 * asan.c (struct asan_mem_ref): Remove unused members.
8718 (asan_mem_ref_new): Replace new operator with
8719 object_allocator::allocate.
8720 (free_mem_ref_resources): Change deallocation.
8721 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
8722 with object_allocator.
8723 * config/sh/sh.c (add_constant): Replace new operator with
8724 object_allocator::allocate.
8725 (sh_reorg): Change call to a release method.
8726 * cselib.c (struct elt_list): Remove unused members.
8727 (new_elt_list): Replace new operator with
8728 object_allocator::allocate.
8729 (new_elt_loc_list): Likewise.
8730 (new_cselib_val): Likewise.
8731 (unchain_one_elt_list): Change delete operator with remove method.
8732 (unchain_one_elt_loc_list): Likewise.
8733 (unchain_one_value): Likewise.
8734 (cselib_finish): Release newly added static allocators.
8735 * cselib.h (struct cselib_val): Remove unused members.
8736 (struct elt_loc_list): Likewise.
8737 * df-problems.c (df_chain_alloc): Replace pool_allocator with
8739 * df-scan.c (struct df_scan_problem_data): Likewise.
8740 (df_scan_alloc): Likewise.
8741 * df.h (struct dataflow): Likewise.
8742 * dse.c (struct read_info_type): Likewise.
8743 (struct insn_info_type): Likewise.
8744 (struct dse_bb_info_type): Likewise.
8745 (struct group_info): Likewise.
8746 (struct deferred_change): Likewise.
8747 (get_group_info): Likewise.
8748 (delete_dead_store_insn): Likewise.
8749 (free_read_records): Likewise.
8750 (replace_read): Likewise.
8751 (check_mem_read_rtx): Likewise.
8752 (scan_insn): Likewise.
8753 (dse_step1): Likewise.
8754 (dse_step7): Likewise.
8755 * et-forest.c (struct et_occ): Remove unused members.
8756 (et_new_occ): Use allocate instead of new operator.
8757 (et_new_tree): Likewise.
8758 (et_free_tree): Call release method explicitly.
8759 (et_free_tree_force): Likewise.
8760 (et_free_pools): Likewise.
8761 (et_split): Use remove instead of delete operator.
8762 * et-forest.h (struct et_node): Remove unused members.
8763 * ipa-cp.c: Change pool_allocator to object_allocator.
8764 * ipa-inline-analysis.c: Likewise.
8765 * ipa-profile.c: Likewise.
8766 * ipa-prop.c: Likewise.
8767 * ipa-prop.h: Likewise.
8768 * ira-build.c (initiate_cost_vectors): Cast return value.
8769 (ira_allocate_cost_vector): Likewise.
8770 * ira-color.c (struct update_cost_record): Remove unused members.
8771 * lra-int.h (struct lra_live_range): Likewise.
8772 (struct lra_copy): Likewise.
8773 (struct lra_insn_reg): Likewise.
8774 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
8775 * lra.c (new_insn_reg): Replace new operator with allocate method.
8776 (free_insn_regs): Same for operator delete.
8777 (finish_insn_regs): Release new static allocator.
8778 (finish_insn_recog_data): Likewise.
8779 (lra_free_copies): Replace delete operator with remove method.
8780 (lra_create_copy): Replace operator new with allocate method.
8781 (invalidate_insn_data_regno_info): Same for remove method.
8782 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
8783 (free_debug_insn_changes): Replace delete operator with remove method.
8784 (replace_oldest_value_reg): Replace operator new with allocate method.
8785 (pass_cprop_hardreg::execute): Release new static variable.
8786 * sched-deps.c (sched_deps_init): Change pool_allocator to
8788 * sel-sched-ir.c: Likewise.
8789 * sel-sched-ir.h: Likewise.
8790 * stmt.c (expand_case): Likewise.
8791 (expand_sjlj_dispatch_table): Likewise.
8792 * tree-sra.c (struct access): Remove unused members.
8793 (struct assign_link): Likewise.
8794 (sra_deinitialize): Release newly added static pools.
8795 (create_access_1):Replace operator new with allocate method.
8796 (build_accesses_from_assign): Likewise.
8797 (create_artificial_child_access): Likewise.
8798 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
8799 pool_allocator to object_allocator.
8800 * tree-ssa-pre.c: Likewise.
8801 * tree-ssa-reassoc.c: Likewise.
8802 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
8803 * tree-ssa-strlen.c: Likewise.
8804 * tree-ssa-structalias.c: Likewise.
8805 * var-tracking.c (onepart_pool_allocate): New function.
8806 (unshare_variable): Use the newly added function.
8807 (variable_merge_over_cur): Likewise.
8808 (variable_from_dropped): Likewise.
8809 (variable_was_changed): Likewise.
8810 (set_slot_part): Likewise.
8811 (emit_notes_for_differences_1): Likewise.
8812 (vt_finalize): Release newly added static pools.
8814 2015-07-16 Martin Jambor <mjambor@suse.cz>
8816 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
8817 all uses. Fix two typos in its general comment.
8818 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
8820 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
8822 * config/i386/linux-common.h (LINK_MPX): New.
8823 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
8824 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
8825 indicating '-z bndplt' support by linker.
8826 * configure: Regenerate.
8827 * config.in: Regenerate.
8829 2015-07-16 Richard Biener <rguenther@suse.de>
8831 * fold-const.c (fold_widened_comparison): Remove.
8832 (fold_sign_changed_comparison): Likewise.
8833 (fold_comparison): Move widened and sign-changed comparison
8835 * match.pd: ... to patterns here.
8836 * generic-match-head.c: Include target.h.
8837 * gimple-match-head.c: Likewise.
8839 2015-07-16 Richard Biener <rguenther@suse.de>
8841 * tree-ssa-dom.c (dom_valueize): New function.
8842 (record_temporary_equivalences): Also record equivalences
8843 for dominating stmts that have uses of equivalences we are
8846 2015-07-16 Bin Cheng <bin.cheng@arm.com>
8848 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
8849 add_autoinc_candidates.
8850 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
8851 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
8852 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
8853 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
8855 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
8856 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
8857 Remove parameter struct iv*. Call add_autoinc_candidates here.
8858 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
8859 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
8861 (find_iv_candidates): Call new functions.
8863 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
8865 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
8866 uninitialized-variable warning.
8868 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
8871 * config/sh/sh.md (movdi): Split simple reg move to two movsi
8872 when the destination is R0.
8874 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
8877 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
8878 * config/i386/i386.c (ix86_expand_pextr): New function.
8879 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
8880 for non-lowpart subregs.
8881 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
8882 (insv<mode>): Use SWI248 mode iterator.
8883 (insv<mode>_1): Ditto.
8885 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8886 Sebastian Pop <s.pop@samsung.com>
8888 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
8889 iterator to use_stmt.
8891 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8892 Sebastian Pop <s.pop@samsung.com>
8894 * graphite-scop-detection.c (build_scops_1): Discard scops for
8897 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8898 Sebastian Pop <s.pop@samsung.com>
8900 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
8901 case of a return statement in scop.
8903 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8904 Sebastian Pop <s.pop@samsung.com>
8906 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
8907 INTEGER_TYPE parameters.
8908 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
8909 VECTOR_CST in scan_tree_for_params.
8910 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
8912 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8914 * gimple-pretty-print.h: Don't include pretty-print.h.
8915 * tree-streamer.h: Don't include lto-streamer.h.
8916 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
8917 * gimple-streamer-in.c: Remove redundant includes.
8918 * gimple-streamer-out.c: Likewise.
8919 * ipa-devirt.c: Likewise.
8920 * ipa-icf.c: Likewise.
8921 * ipa-inline-analysis.c: Likewise.
8922 * ipa-polymorphic-call.c: Likewise.
8923 * ipa-profile.c: Likewise.
8924 * ipa-prop.c: Likewise.
8925 * ipa-pure-const.c: Likewise.
8926 * lto-cgraph.c: Likewise.
8927 * lto-streamer-in.c: Likewise.
8928 * lto-streamer-out.c: Likewise.
8929 * lto-streamer.c: Likewise.
8930 * tree-streamer-in.c: Likewise.
8931 * tree-streamer-out.c: Likewise.
8932 * tree-streamer.c: Likewise.
8934 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8936 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
8938 * opts.c: Remove multiline #include comment.
8940 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
8942 * config/nvptx/mkoffload.c (process): Add C++ protection to
8945 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8948 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
8949 null before IEEE 128-bit floating point support patch.
8951 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8953 * simplify-rtx.c (simplify_ternary_operation): Add simplification
8954 for (!c) != {0,...,0} ? a : b for vector modes.
8956 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
8957 Martin Jambor <mjambor@suse.cz>
8959 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
8960 struct func_body_info* instead of struct ipa_node_params*, expecting
8961 fbi->info to be filled in. Replace throughout. Adjust call to
8962 ipa_load_from_parm_agg.
8963 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
8964 instead of struct ipa_node_params*. Adjust calls to other functions
8965 so that they pass either fbi or fbi->info.
8966 (set_switch_stmt_execution_predicate): Likewise.
8967 (will_be_nonconstant_predicate): Likewise.
8968 (compute_bb_predicates): Likewise.
8969 (estimate_function_body_sizes): Move asserts earlier. Fill in
8970 struct func_body_info, replace parms_info with fbi.info. Adjust
8971 calls to functions that now accept struct func_body_info.
8972 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
8973 (struct func_body_info): Likewise.
8974 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
8975 remove static. Adjust callers.
8976 (ipa_load_from_parm_agg): Remove.
8977 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
8978 (func_body_info): Likewise.
8979 (ipa_load_from_parm_agg): Adjust prototype.
8981 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8983 * gensupport.c (rtx_handle_directive): Adjust.
8984 * read-rtl.c (apply_iterators): Take vector to add rtxs to
8985 instead of expr list rtx.
8986 (add_define_attr_for_define_subst): Likewise.
8987 (add_define_subst_attr): Likewise.
8988 (read_subst_mapping): Likewise.
8989 (read_rtx): Likewise.
8990 * rtl.h (read_rtx): Adjust.
8992 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8994 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
8996 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8999 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
9000 (*tls_local_dynamic_base_64_<mode>): Ditto.
9001 (*tls_local_dynamic_base_64_largepic): Ditto.
9002 (tls_global_dynamic_64_<mode>): Update expander pattern.
9003 (tls_local_dynamic_base_64_<mode>): Ditto.
9005 2015-07-15 Richard Biener <rguenther@suse.de>
9007 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
9008 and bool_var == 1 -> bool_var simplifications ...
9009 * match.pd: ... to patterns here. Factor out negate_expr_p
9010 cases from the A - B -> A + (-B) patterns as negate_expr_p
9011 predicate and add a -(A + B) -> (-B) - A pattern.
9013 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
9015 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
9017 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
9018 Robert Suchanek <robert.suchanek@imgtec.com>
9020 * config/mips/mips.c (mips_int_mask): New enum.
9021 (mips_shadow_set): Likewise.
9022 (int_mask): New variable.
9023 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
9024 (machine_function): Add int_mask and use_shadow_register_set.
9025 (mips_attribute_table): Add attribute handlers for interrupt and
9026 use_shadow_register_set.
9027 (mips_interrupt_mask): New static function.
9028 (mips_handle_interrupt_attr): Likewise.
9029 (mips_handle_use_shadow_register_set_attr): Likewise.
9030 (mips_use_shadow_register_set): Change return type to enum
9031 mips_shadow_set. Add argument handling for use_shadow_register_set
9033 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
9034 compare with mips_shadow_set enum.
9035 (mips_compute_frame_info): Add interrupt mask and
9036 use_shadow_register_set to per-function information structure.
9037 Add a stack slot for EPC unconditionally.
9038 (mips_expand_prologue): Compare use_shadow_register_set value
9039 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
9040 masked interrupt register but in EIC mode use K0 and save Cause in K0.
9041 EPC saved and restored unconditionally. Use PMODE_INSN macro when
9042 copying the stack pointer from the shadow register set.
9043 * config/mips/mips.h (SR_IM0): New define.
9044 * config/mips/mips.md (mips_rdpgpr): Rename to...
9045 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
9046 * doc/extend.texi (Declaring Attributes of Functions): Document
9047 optional arguments for interrupt and use_shadow_register_set
9050 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
9052 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
9053 interrupt attribute.
9054 (mips_expand_prologue): Disable the floating point unit in an ISR.
9055 * config/mips/mips.h (SR_COP1): New define.
9057 2015-07-15 Richard Biener <rguenther@suse.de>
9059 * genmatch.c (parser::peek, parser::peek_ident): Add argument
9060 to tell how many tokens to peek ahead (default 1).
9061 (parser::eat_token, parser::eat_ident): Return token consumed.
9062 (parser::parse_result): Parse new switch statement.
9063 * match.pd: Use case statements where appropriate.
9065 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
9067 PR rtl-optimization/58066
9068 * calls.c (expand_call): Precompute register parameters before stack
9069 alignment is performed.
9071 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
9073 PR rtl-optimization/66838
9074 * postreload.c (reload_cse_move2add): Also process
9075 CALL_INSN_FUNCTION_USAGE when resetting information of
9076 call-clobbered registers.
9078 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
9079 Cesar Philippidis <cesar@codesourcery.com>
9080 Chung-Lin Tang <cltang@codesourcery.com>
9082 * config/nios2/constraints.md (U, v): New constraints.
9083 * config/nios2/predicates.md (rdprs_dcache_operand): New.
9084 (ldstex_memory_operand): New.
9085 * config/nios2/sync.md: New file.
9086 * config/nios2/nios2.md (unspecv): Add new builtin function
9088 (rdprs, flushd, flushda, wrpie, eni): New patterns.
9089 (top-level): Include sync.md.
9090 * config/nios2/nios2.c (N2_FTYPES): Add function types for
9092 (N2_BUILTINS): Add arch field setting, add new builtins.
9093 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
9095 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
9096 Also handle ldex/stex/ldsex/stsex builtins.
9097 (nios2_expand_rdprs_builtin): New function.
9098 (nios2_expand_cache_builtin): New function.
9099 (nios2_expand_wrpie_builtin): New function.
9100 (nios2_expand_eni_builtin): New function.
9101 (nios2_expand_builtin): Add arch field handling and new builtin
9103 * doc/extend.texi (Altera Nios II Built-in Functions): Document
9105 * doc/md.texi (Machine Constraints): Document U and v constraints.
9107 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
9108 Cesar Philippidis <cesar@codesourcery.com>
9109 Chung-Lin Tang <cltang@codesourcery.com>
9111 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
9112 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
9113 callee_save_reg_size and uses_anonymous_args fields.
9114 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
9115 (nios2_create_cfa_notes): New function.
9116 (nios2_adjust_stack): New function for adjusting stack.
9117 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
9118 Use nios2_adjust_stack.
9119 (nios2_expand_epilogue): Likewise.
9120 (nios2_expand_return): New function.
9121 (nios2_can_use_return_insn): Update for CDX pop.n usage.
9122 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
9123 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
9124 * config/nios2/nios2.md (return): Use nios2_expand_return.
9126 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
9127 Cesar Philippidis <cesar@codesourcery.com>
9128 Chung-Lin Tang <cltang@codesourcery.com>
9130 * config/nios2/predicates.md (pop_operation): New.
9131 (ldwm_operation, stwm_operation): New.
9132 (nios2_hard_register_operand): New.
9133 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
9134 (ldstwm_operation_p): Declare.
9135 (gen_ldstwm_peep): Declare.
9136 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
9137 (base_reg_adjustment_p): New.
9138 (pop_operation_p): New.
9139 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
9140 (nios2_ldstwm_regset_p): New.
9141 (ldstwm_operation_p): New.
9143 (nios2_ldst_parallel): New.
9144 (struct ldswm_operand): Declare.
9145 (compare_ldstwm_operands): New.
9146 (can_use_cdx_ldstw): New.
9147 (gen_ldstwm_peep): New.
9148 * config/nios2/nios2-ldstwm.sml: New.
9149 * config/nios2/nios2.md: Include ldstwm.md.
9150 * config/nios2/ldstwm.md: Generated.
9152 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
9153 Cesar Philippidis <cesar@codesourcery.com>
9154 Chung-Lin Tang <cltang@codesourcery.com>
9156 * config/nios2/nios2.h (LABEL_ALIGN): Define.
9157 (REG_ALLOC_ORDER): Define.
9158 (ADJUST_REG_ALLOC_ORDER): Define.
9159 (HONOR_REG_ALLOC_ORDER): Define.
9160 (CDX_REG_P): Define.
9161 (ANDCLEAR_INT): Define.
9162 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
9163 (nios2_label_align): Declare.
9164 (nios2_cdx_narrow_form_p): Declare.
9165 (nios2_adjust_reg_alloc_order): Declare.
9166 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
9168 (nios2_large_unspec_reloc_p): New function, split from...
9169 (nios2_legitimate_pic_operand_p): ...here.
9170 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
9171 (nios2_print_operand_punct_valid_p): New.
9172 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
9173 (split_mem_address): New.
9174 (split_alu_insn): New.
9176 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
9177 (enum nios2_add_insn_kind): New.
9178 (nios2_add_insn_names, nios2_add_insn_narrow): New.
9179 (nios2_add_insn_classify): New.
9180 (nios2_add_insn_asm): New.
9181 (nios2_cdx_narrow_form_p): New.
9182 (label_align, min_labelno, max_labelno): New.
9184 (nios2_label_align): New.
9185 (nios2_adjust_reg_alloc_order): New.
9186 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9187 (TARGET_MACHINE_DEPENDENT_REORG): Define.
9188 * config/nios2/constraints.md (P): New constraint.
9189 * config/nios2/predicates.md (const_and_operand): New.
9191 (stack_memory_operand): New.
9192 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
9193 (length): Update to use nios2_cdx_narrow_form_p().
9194 (type): Add new insn type values.
9195 (control, alu, st, ld, shift): Update insn reservations with
9196 new insn type values.
9197 (*high, *lo_sum): Define new insn patterns for constant generation.
9198 (movqi_internal, movhi_internal, movsi_internal): Reduce
9199 alternatives, update asm template to handle CDX variants, update
9201 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
9202 template, update type attributes.
9203 (extendhisi2, extendqi<mode>2): Likewise.
9204 (addsi3): Change to use function for asm string.
9205 (subsi3): Add CDX notation to asm template, update type attributes.
9206 (negsi3, one_cmplsi3): Likewise.
9207 (andsi3): New pattern, specialized from logical patterns.
9208 (<code>si3): Remove and case, combine alternatives, update asm
9210 (<shift_op>si3): Add CDX notation, update type attributes.
9211 (rotrsi3): Update type attribute.
9212 (*merge, extzv, insv): New insn patterns.
9213 (return): Change to define_expand.
9214 (simple_return): Add CDX notation, update type attributes.
9215 (indirect_jump): Add CDX notation.
9216 (jump): Update asm cases, update length attribute expression.
9217 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
9218 (nios2_cbranch): Update asm cases and length attribute expression
9219 to handle CDX variants.
9220 (nios2_cmp<code>): Update asm template.
9221 (nop): Add CDX notation, update type attributes.
9222 (trap): Add CDX notation.
9223 (ctrapsi4): Update asm cases and length attribute expression to
9225 * doc/md.texi (Machine Constraints): Document P constraint.
9227 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
9228 Cesar Philippidis <cesar@codesourcery.com>
9229 Chung-Lin Tang <cltang@codesourcery.com>
9231 * config/nios2/nios2.h (SMALL_INT12): New macro.
9232 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
9233 (nios2_valid_addr_expr_p): Use it.
9234 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
9235 with implicit "io" instructions on R2.
9236 * config/nios2/constraints.md (w): New constraint.
9237 * config/nios2/predicates.md (ldstio_memory_operand): New.
9238 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
9239 operand predicate and constraint.
9240 (ld<bh>io_signed, st<bhw>io>): Likewise.
9241 * doc/md.texi (Machine Constraints): Document w constraint.
9243 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
9244 Cesar Philippidis <cesar@codesourcery.com>
9245 Chung-Lin Tang <cltang@codesourcery.com>
9247 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
9248 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
9249 Nios II architecture level.
9250 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
9251 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
9252 (OPTION_DEFAULT_SPECS): Define.
9253 (ASM_SPEC): Add -march= spec strings.
9254 * config/nios2/nios2.c (nios2_option_override): Check for
9255 conflicts involving new options.
9256 * config.gcc (nios2*-*-*): Support --with-arch=.
9257 * doc/invoke.texi (Option Summary, Nios II Options): Document
9258 -march=, -mbmx, and -mcdx.
9260 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
9262 PR rtl-optimization/66626
9263 * lra-constraints.c (lra_constraints): Prevent equivalence
9264 substitution for static chain pseudo in functions with nonlocal
9267 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
9269 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
9270 (nios2_emit_stack_limit_check): Add size parameter. Handle
9271 -fstack-limit-symbol as well as -fstack-limit-register.
9272 (nios2_expand_prologue): Emit only a single stack limit check,
9273 even if multiple stack adjustments are required.
9274 (nios2_option_override): Diagnose unsupported combination of -fpic
9275 and -stack-limit-symbol.
9277 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
9279 * Makefile.in (top_srcdir): New.
9280 * configure.ac: Use AM_ZLIB.
9281 * configure: Regeneated.
9283 2015-07-14 Matthias Klose <doko@ubuntu.com>
9286 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
9288 2015-07-14 Richard Biener <rguenther@suse.de>
9290 PR tree-optimization/66863
9291 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
9292 what we record for conversion use stmt lhs inequalities.
9294 2015-07-14 Richard Biener <rguenther@suse.de>
9296 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
9297 (decision_tree::gen_gimple): Likewise.
9299 2015-07-14 Tom de Vries <tom@codesourcery.com>
9301 * gcc.c (greater_than_spec_func): Declare forward.
9302 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
9303 -ftree-parallelize-loops={0,1}.
9304 (static_spec_functions): Add greater_than_spec_func function with name
9306 (greater_than_spec_func): New function.
9308 2015-07-14 Richard Biener <rguenther@suse.de>
9310 * tree-ssa-dom.c (record_temporary_equivalences): Merge
9311 wideing type conversion case from record_equivalences_from_incoming_edge
9312 and use record_equality to record equivalences.
9313 (record_equivalences_from_incoming_edge): Call
9314 record_temporary_equivalences.
9316 2015-07-14 Richard Biener <rguenther@suse.de>
9318 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
9319 (struct if_expr): New.
9320 (struct with_expr): Likewise.
9321 (is_a_helper): Add helpers for if_expr and with_expr.
9322 (struct simplify): Add simplify_kind enum and member. Remove
9324 (simplify::simplify): Adjust.
9325 (lower_commutative): Adjust.
9326 (lower_opt_convert): Likewise.
9327 (lower_cond): Likewise.
9328 (replace_id): Handle with_expr and if_expr.
9329 (lower_for): Adjust.
9330 (dt_simplify::gen_1): New recursive worker, split out from ...
9331 (dt_simplify::gen): ... here. Deal with if and with expansion
9333 (capture_info::capture_info): Take context argument
9334 (capture_info::walk_result): Only analyze specific result.
9335 (parser::parse_result): New function.
9336 (parser::parse_simplify): Adjust to parse ifs with then end
9338 (parser::parse_if): Simplify.
9339 (parser::parse_pattern): Pass down simplify kind.
9340 * match.pd: Convert if structure to new syntax.
9342 2015-07-13 Marek Polacek <polacek@redhat.com>
9344 * rtl.c (rtx_equal_p_cb): Fix typo.
9346 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
9348 * omega.h: Don't include config.h, don't include params.h again if
9349 omega.h has already been included.
9350 * graphite-poly.h: Include sese.h.
9351 * graphite.c: Don't include sese.h, remove needless includes and
9352 minimize includes outside #ifdef HAVE_isl block.
9353 * graphite-blocking.c: Don't include sese.h, remove needless includes,
9354 and wrap entire file in #ifdef HAVE_isl
9355 * graphite-dependences.c: Likewise.
9356 * graphite-interchange.c: Likewise.
9357 * graphite-isl-ast-to-gimple.c: Likewise.
9358 * graphite-optimize-isl.c: Likewise.
9359 * graphite-poly.c: Likewise.
9360 * graphite-scop-detection.c: Likewise.
9361 * graphite-sese-to-poly.c: Likewise.
9363 2015-07-13 Tom de Vries <tom@codesourcery.com>
9365 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
9367 2015-07-13 Renlin Li <renlin.li@arm.com>
9370 * simplify-rtx.c (simplify_const_relational_operation): Add
9371 side_effects_p checks.
9373 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
9375 * bitmap.h: Fix double word typos.
9378 * cfgloopmanip.c: Same.
9381 * cgraphclones.c: Same.
9383 * config/aarch64/aarch64-protos.h: Same.
9384 * config/aarch64/aarch64.c: Same.
9385 * config/aarch64/aarch64.md: Same.
9386 * config/arm/arm.md: Same.
9387 * config/arm/arm1020e.md: Same.
9388 * config/arm/arm1026ejs.md: Same.
9389 * config/arm/arm926ejs.md: Same.
9390 * config/arm/fa526.md: Same.
9391 * config/arm/fa606te.md: Same.
9392 * config/arm/fa626te.md: Same.
9393 * config/arm/fa726te.md: Same.
9394 * config/arm/fmp626.md: Same.
9395 * config/darwin.c: Same.
9396 * config/epiphany/epiphany.c: Same.
9397 * config/frv/frv.c: Same.
9398 * config/ft32/ft32.c: Same.
9399 * config/gnu-user.h: Same.
9400 * config/h8300/constraints.md: Same.
9401 * config/i386/i386.c: Same.
9402 * config/i386/i386.md: Same.
9403 * config/iq2000/iq2000.md: Same.
9404 * config/mips/mips.c: Same.
9405 * config/mmix/mmix.md: Same.
9406 * config/moxie/moxie.c: Same.
9407 * config/nds32/nds32.md: Same.
9408 * config/pa/pa.h: Same.
9409 * config/rs6000/aix.h: Same.
9410 * config/rs6000/rs6000.h: Same.
9411 * config/sh/sh.c: Same.
9412 * config/tilegx/tilegx.md: Same.
9413 * config/tilepro/gen-mul-tables.cc: Same.
9416 * doc/invoke.texi: Same.
9418 * dwarf2out.c: Same.
9423 * hash-table.h: Same.
9424 * internal-fn.c: Same.
9426 * ipa-devirt.c: Same.
9429 * ipa-profile.c: Same.
9434 * reg-stack.c: Same.
9440 * tree-inline.c: Same.
9442 * tree-ssa-dom.c: Same.
9443 * tree-ssa-loop-ivopts.c: Same.
9444 * tree-ssa-structalias.c: Same.
9445 * tree-ssa-tail-merge.c: Same.
9446 * tree-ssa-ter.c: Same.
9447 * tree-ssa-threadupdate.c: Same.
9448 * tree-ssa-uninit.c: Same.
9449 * tree-ssanames.c: Same.
9450 * tree-vect-loop-manip.c: Same.
9456 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9459 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
9460 tree_ssa_phiopt_worker): Call it.
9462 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9464 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
9465 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
9468 2015-07-11 Marek Polacek <polacek@redhat.com>
9471 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
9472 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
9473 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
9474 rather than bb_has_abnormal_call_pred.
9475 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
9476 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
9477 rather than bb_has_abnormal_call_pred.
9479 2015-07-10 Anatoly Sokolov <aesok@post.ru>
9481 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9482 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
9483 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9484 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
9485 v850_legitimate_address_p): New functions.
9486 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
9488 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
9491 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
9492 indirect sibcall with register arguments if register available
9493 for argument passing.
9494 (init_cumulative_args): Set cfun->machine->arg_reg_available
9495 to (cum->nregs > 0) or to true if function has a variable
9497 (function_arg_advance_32): Set cfun->machine->arg_reg_available
9498 to false if cum->nregs <= 0.
9499 * config/i386/i386.h (machine_function): Add arg_reg_available.
9501 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
9503 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
9504 and gen_higpart instead of gen_rtx_SUBREG.
9505 * config/i386/i386.md
9506 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
9507 (read-modify peephole2): Use gen_lowpart instead of
9508 gen_rtx_SUBREG for operand 5.
9510 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
9512 * config/tilepro/gen-mul-tables.cc (main): Change include list for
9514 * config/tilepro/mul-tables.c: Regenerate.
9515 * config/tilegx/mul-tables.c: Regenerate.
9517 2015-07-10 Richard Biener <rguenther@suse.de>
9519 * fold-const.c (distribute_bit_expr): Remove.
9520 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
9521 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
9522 to A & (B | C) and simplifying A << C1 << C2 to ...
9523 * match.pd: ... patterns here.
9525 2015-07-10 Jiong Wang <jiong.wang@arm.com>
9527 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9528 Mark mem as READONLY and NOTRAP for PIC symbol.
9530 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
9532 * gimple-predict.h: New file.
9533 (gimple_predict_predictor, gimple_predict_set_predictor,
9534 gimple_predict_outcome, gimple_predict_set_outcome,
9535 gimple_build_predict): Relocate here.
9536 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
9537 gimple_predict_outcome, gimple_predict_set_outcome): Move to
9539 * gimple.c (gimple_build_predict): Move to gimple-predict.h
9540 * basic-block.h: Don't include cfghooks.h.
9541 * backend.h: Don't include predict.h.
9542 * cfghooks.h: Include predict.h.
9543 * gimple-pretty-print.c: Include gimple-predict.h.
9544 * gimplify.c: Likwise.
9545 * predict.c: Adjust includes.
9546 * tree-inline.c: Likewise.
9548 * auto-inc-dec.c: Likewise.
9549 * auto-profile.c: Likewise.
9550 * bb-reorder.c: Likewise.
9551 * builtins.c: Likewise.
9552 * caller-save.c: Likewise.
9553 * calls.c: Likewise.
9554 * cfganal.c: Likewise.
9555 * cfgbuild.c: Likewise.
9557 * cfgcleanup.c: Likewise.
9558 * cfgexpand.c: Likewise.
9559 * cfghooks.c: Likewise.
9560 * cfgloopanal.c: Likewise.
9561 * cfgloop.c: Likewise.
9562 * cfgloopmanip.c: Likewise.
9563 * cfgrtl.c: Likewise.
9564 * cgraph.c: Likewise.
9565 * cgraphunit.c: Likewise.
9566 * combine.c: Likewise.
9567 * cprop.c: Likewise.
9570 * dojump.c: Likewise.
9572 * except.c: Likewise.
9573 * expmed.c: Likewise.
9575 * final.c: Likewise.
9576 * fold-const.c: Likewise.
9577 * function.c: Likewise.
9578 * fwprop.c: Likewise.
9579 * gcc-plugin.h: Likewise.
9581 * genattrtab.c: Likewise.
9582 * genemit.c: Likewise.
9583 * gengtype.c: Likewise.
9584 * genopinit.c: Likewise.
9585 * genoutput.c: Likewise.
9586 * genpreds.c: Likewise.
9587 * genrecog.c: Likewise.
9588 * gimple-fold.c: Likewise.
9589 * gimple-iterator.c: Likewise.
9590 * gimple-ssa-isolate-paths.c: Likewise.
9591 * gimple-ssa-strength-reduction.c: Likewise.
9592 * graph.c: Likewise.
9593 * graphite-blocking.c: Likewise.
9594 * graphite.c: Likewise.
9595 * graphite-dependences.c: Likewise.
9596 * graphite-interchange.c: Likewise.
9597 * graphite-isl-ast-to-gimple.c: Likewise.
9598 * graphite-optimize-isl.c: Likewise.
9599 * graphite-poly.c: Likewise.
9600 * graphite-scop-detection.c: Likewise.
9601 * graphite-sese-to-poly.c: Likewise.
9602 * haifa-sched.c: Likewise.
9603 * ifcvt.c: Likewise.
9604 * internal-fn.c: Likewise.
9605 * ipa-cp.c: Likewise.
9606 * ipa-profile.c: Likewise.
9607 * ipa-split.c: Likewise.
9608 * ipa-utils.c: Likewise.
9609 * ira-build.c: Likewise.
9610 * ira-color.c: Likewise.
9611 * ira-conflicts.c: Likewise.
9612 * ira-costs.c: Likewise.
9613 * ira-emit.c: Likewise.
9614 * ira-lives.c: Likewise.
9616 * loop-doloop.c: Likewise.
9617 * loop-init.c: Likewise.
9618 * loop-invariant.c: Likewise.
9619 * loop-unroll.c: Likewise.
9620 * lower-subreg.c: Likewise.
9621 * lra-assigns.c: Likewise.
9623 * lra-coalesce.c: Likewise.
9624 * lra-constraints.c: Likewise.
9625 * lra-lives.c: Likewise.
9626 * lto-cgraph.c: Likewise.
9627 * lto-streamer-in.c: Likewise.
9628 * mode-switching.c: Likewise.
9629 * modulo-sched.c: Likewise.
9630 * omp-low.c: Likewise.
9631 * optabs.c: Likewise.
9632 * passes.c: Likewise.
9633 * postreload.c: Likewise.
9634 * postreload-gcse.c: Likewise.
9635 * profile.c: Likewise.
9636 * recog.c: Likewise.
9637 * regstat.c: Likewise.
9638 * reload1.c: Likewise.
9639 * reorg.c: Likewise.
9640 * rtlanal.c: Likewise.
9641 * sched-ebb.c: Likewise.
9642 * sel-sched-ir.c: Likewise.
9644 * shrink-wrap.c: Likewise.
9645 * simplify-rtx.c: Likewise.
9647 * store-motion.c: Likewise.
9648 * tracer.c: Likewise.
9649 * trans-mem.c: Likewise.
9650 * tree-call-cdce.c: Likewise.
9651 * tree-cfg.c: Likewise.
9652 * tree-cfgcleanup.c: Likewise.
9653 * tree-chkp.c: Likewise.
9654 * tree-complex.c: Likewise.
9655 * tree-eh.c: Likewise.
9656 * tree-if-conv.c: Likewise.
9657 * tree-loop-distribution.c: Likewise.
9658 * tree-outof-ssa.c: Likewise.
9659 * tree-parloops.c: Likewise.
9660 * tree-predcom.c: Likewise.
9661 * tree-pretty-print.c: Likewise.
9662 * tree-profile.c: Likewise.
9663 * tree-sra.c: Likewise.
9664 * tree-ssa.c: Likewise.
9665 * tree-ssa-coalesce.c: Likewise.
9666 * tree-ssa-dce.c: Likewise.
9667 * tree-ssa-dom.c: Likewise.
9668 * tree-ssa-forwprop.c: Likewise.
9669 * tree-ssa-ifcombine.c: Likewise.
9670 * tree-ssa-loop-ch.c: Likewise.
9671 * tree-ssa-loop-im.c: Likewise.
9672 * tree-ssa-loop-ivcanon.c: Likewise.
9673 * tree-ssa-loop-ivopts.c: Likewise.
9674 * tree-ssa-loop-manip.c: Likewise.
9675 * tree-ssa-loop-prefetch.c: Likewise.
9676 * tree-ssa-loop-unswitch.c: Likewise.
9677 * tree-ssa-math-opts.c: Likewise.
9678 * tree-ssa-phiopt.c: Likewise.
9679 * tree-ssa-pre.c: Likewise.
9680 * tree-ssa-reassoc.c: Likewise.
9681 * tree-ssa-sink.c: Likewise.
9682 * tree-ssa-tail-merge.c: Likewise.
9683 * tree-ssa-threadedge.c: Likewise.
9684 * tree-ssa-threadupdate.c: Likewise.
9685 * tree-switch-conversion.c: Likewise.
9686 * tree-tailcall.c: Likewise.
9687 * tree-vect-data-refs.c: Likewise.
9688 * tree-vect-loop.c: Likewise.
9689 * tree-vect-loop-manip.c: Likewise.
9690 * tree-vectorizer.c: Likewise.
9691 * tree-vrp.c: Likewise.
9692 * ubsan.c: Likewise.
9693 * value-prof.c: Likewise.
9694 * varasm.c: Likewise.
9695 * var-tracking.c: Likewise.
9696 * config/aarch64/aarch64-builtins.c: Likewise.
9697 * config/aarch64/aarch64.c: Likewise.
9698 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9699 * config/alpha/alpha.c: Likewise.
9700 * config/arc/arc.c: Likewise.
9701 * config/arm/arm.c: Likewise.
9702 * config/avr/avr.c: Likewise.
9703 * config/bfin/bfin.c: Likewise.
9704 * config/c6x/c6x.c: Likewise.
9705 * config/cr16/cr16.c: Likewise.
9706 * config/cris/cris.c: Likewise.
9707 * config/darwin.c: Likewise.
9708 * config/darwin-c.c: Likewise.
9709 * config/epiphany/epiphany.c: Likewise.
9710 * config/epiphany/mode-switch-use.c: Likewise.
9711 * config/epiphany/resolve-sw-modes.c: Likewise.
9712 * config/fr30/fr30.c: Likewise.
9713 * config/frv/frv.c: Likewise.
9714 * config/ft32/ft32.c: Likewise.
9715 * config/h8300/h8300.c: Likewise.
9716 * config/i386/i386.c: Likewise.
9717 * config/i386/winnt.c: Likewise.
9718 * config/ia64/ia64.c: Likewise.
9719 * config/iq2000/iq2000.c: Likewise.
9720 * config/lm32/lm32.c: Likewise.
9721 * config/m32c/m32c.c: Likewise.
9722 * config/m32r/m32r.c: Likewise.
9723 * config/m68k/m68k.c: Likewise.
9724 * config/mcore/mcore.c: Likewise.
9725 * config/mep/mep.c: Likewise.
9726 * config/microblaze/microblaze.c: Likewise.
9727 * config/mips/mips.c: Likewise.
9728 * config/mmix/mmix.c: Likewise.
9729 * config/mn10300/mn10300.c: Likewise.
9730 * config/moxie/moxie.c: Likewise.
9731 * config/msp430/msp430.c: Likewise.
9732 * config/nds32/nds32.c: Likewise.
9733 * config/nds32/nds32-cost.c: Likewise.
9734 * config/nds32/nds32-fp-as-gp.c: Likewise.
9735 * config/nds32/nds32-intrinsic.c: Likewise.
9736 * config/nds32/nds32-isr.c: Likewise.
9737 * config/nds32/nds32-md-auxiliary.c: Likewise.
9738 * config/nds32/nds32-memory-manipulation.c: Likewise.
9739 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9740 * config/nds32/nds32-predicates.c: Likewise.
9741 * config/nios2/nios2.c: Likewise.
9742 * config/nvptx/nvptx.c: Likewise.
9743 * config/pa/pa.c: Likewise.
9744 * config/pdp11/pdp11.c: Likewise.
9745 * config/rl78/rl78.c: Likewise.
9746 * config/rs6000/rs6000.c: Likewise.
9747 * config/rx/rx.c: Likewise.
9748 * config/s390/s390.c: Likewise.
9749 * config/sh/sh.c: Likewise.
9750 * config/sh/sh-mem.cc: Likewise.
9751 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9752 * config/sh/sh_treg_combine.cc: Likewise.
9753 * config/sparc/sparc.c: Likewise.
9754 * config/spu/spu.c: Likewise.
9755 * config/stormy16/stormy16.c: Likewise.
9756 * config/tilegx/tilegx.c: Likewise.
9757 * config/tilepro/tilepro.c: Likewise.
9758 * config/v850/v850.c: Likewise.
9759 * config/vax/vax.c: Likewise.
9760 * config/visium/visium.c: Likewise.
9761 * config/xtensa/xtensa.c: Likewise.
9763 2015-07-10 Richard Biener <rguenther@suse.de>
9765 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
9766 (decision_tree::gen_gimple): Likewise.
9767 (decision_tree::gen_generic): Likewise.
9769 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
9772 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
9773 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
9775 2015-07-10 Jakub Jelinek <jakub@redhat.com>
9778 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
9779 or ORT_TASK contexts.
9780 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
9783 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9785 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
9788 2015-07-10 Tom de Vries <tom@codesourcery.com>
9790 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
9791 insert nit + 1 bound.
9793 2015-07-10 Richard Biener <rguenther@suse.de>
9795 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
9796 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
9797 (if_convertible_loop_p_1): For this always compute bb predicates.
9798 (if_convertible_loop_p): And free them.
9800 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9802 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
9805 2015-07-10 Richard Biener <rguenther@suse.de>
9807 PR tree-optimization/66823
9808 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
9811 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
9813 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
9814 to handle mips[32|64]r3 and mips[32|64]r5.
9816 2015-07-09 Jakub Jelinek <jakub@redhat.com>
9819 * tree-nested.c (get_static_chain): Or in a flag into
9820 info->static_chain_added.
9821 (get_frame_field, get_nonlocal_debug_decl): Likewise.
9822 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
9824 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
9825 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
9828 PR tree-optimization/66718
9829 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
9831 (vect_simd_lane_linear): New function.
9832 (vectorizable_simd_clone_call): Support using linear arguments for
9833 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
9835 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9838 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
9840 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
9842 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
9843 Use machine mode, not enum machine_mode in the prototype.
9845 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
9846 classify 128-bit floating point support.
9847 (FLOAT128_IBM_P): Likewise.
9848 (FLOAT128_VECTOR_P): Likewise.
9849 (FLOAT128_2REG_P): Likewise.
9850 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
9851 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
9852 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9853 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
9855 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
9856 tests against TFmode/TDmode, since those modes do not use VSX
9858 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
9860 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
9861 tests against TFmode, etc.
9862 (invalid_e500_subreg): Add tests against IFmode/KFmode.
9863 (reg_offset_addressing_ok_p): Likewise.
9864 (rs6000_legitimate_offset_address_p): Likewise.
9865 (rs6000_legitimize_address): Likewise.
9866 (rs6000_legitimize_reload_address): Likewise.
9867 (rs6000_legitimate_address_p): Clean up tests against TFmode and
9868 TDmode to use the new helper macros, which will include IFmode and
9870 (rs6000_emit_move): Likewise.
9871 (rs6000_darwin64_record_arg_recurse): Likewise.
9872 (print_operand): Likewise.
9873 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
9874 that uses a single vector register as a vector and not as a
9875 floating point register in terms of the calling sequence.
9876 (rs6000_discover_homogeneous_aggregate): Likewise.
9877 (rs6000_return_in_memory): Likewise.
9878 (init_cumulative_args): Likewise.
9879 (rs6000_function_arg_boundary): Likewise.
9880 (rs6000_function_arg_advance_1): Likewise.
9881 (rs6000_function_arg): Likewise.
9882 (rs6000_pass_by_reference): Likewise.
9883 (rs6000_gimplify_va_arg): Likewise.
9884 (rs6000_secondary_reload_memory): Use machine_mode not enum
9886 (rs6000_split_multireg_move): Use new helper macros.
9887 (spe_func_has_64bit_regs_p): Likewise.
9888 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
9889 (output_toc): Use new helper macros.
9890 (rs6000_register_move_cost): Likewise.
9891 (rs6000_function_value): Add IEEE 128-bit floating point calling
9893 (rs6000_libcall_value): Likewise.
9894 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
9895 floating point support.
9896 (rs6000_vector_mode_supported_p): Likewise.
9898 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
9900 PR rtl-optimization/66782
9901 * lra-int.h (struct lra_insn_recog_data): Add comment about
9902 clobbered hard regs for arg_hard_regs.
9903 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
9904 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
9905 Add condition for processing used hard regs.
9906 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
9907 Process clobbered hard regs.
9909 2015-07-09 Michael Matz <matz@suse.de>
9911 * genmatch.c (fprintf_indent): New function.
9912 (operand::gen_transform): Add indent parameter.
9913 (expr::gen_transform, c_expr::gen_transform,
9914 capture::gen_transform): Ditto and use fprintf_indent.
9915 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
9916 (dt_operand::gen, dt_operand::gen_predicate,
9917 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
9918 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
9919 (decision_tree::gen_gimple): Adjust calls and indent generated
9921 (decision_tree::gen_generic): Ditto.
9922 (write_predicate): Ditto.
9924 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9927 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
9928 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
9929 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
9930 {GENERAL,SSE,MMX}_REG_P where appropriate.
9932 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9934 * lto-streamer.h: Don't include target.h and alloc-pool.h.
9935 * builtins.c: Adjust includes.
9936 * gimple.c: Likewise.
9937 * ipa-icf.c: Likewise.
9938 * lto-opts.c: Likewise.
9939 * ipa-reference.c: Likewise.
9940 * lto-section-out.c: Likewise.
9941 * lto-streamer-in.c: Likewise.
9942 * lto-streamer-out.c: Likewise.
9943 * opts-global.c: Likewise.
9944 * symtab.c: Likewise.
9945 * tree-chkp.c: Likewise.
9946 * tree-ssa-live.c: Likewise.
9947 * tree-streamer-in.c: Likewise.
9948 * tree-streamer-out.c: Likewise.
9949 * config/darwin.c: Likewise.
9950 * config/i386/winnt.c: Likewise.
9952 2015-07-09 Richard Biener <rguenther@suse.de>
9954 * genmatch.c (struct expr): Add force_single_use flag.
9955 (expr::expr): Add copy constructor.
9956 (capture_info::walk_match): Gather force_single_use captures.
9957 (expr::gen_transform): Use possibly NULLified sequence.
9958 (dt_simplify::gen): Apply single-use restrictions by NULLifying
9959 seq if any constrained expr is not single-use.
9960 (parser::parse_expr): Refactor to allow multiple flags. Handle
9961 's' flag to force an expression have a single-use if the pattern
9962 simplifies to more than one statement.
9963 * match.pd: Convert most single_use conditionals to :s flags.
9965 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9967 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
9968 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9969 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
9971 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9973 * flags.h: Don't include flag-types.h or options.h.
9974 * opts-common.c: Adjust includes.
9975 * opts-global.c: Likewise.
9976 * common/config/epiphany/epiphany-common.c: Likewise.
9978 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9981 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
9984 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9987 * config/i386/i386.c (ix86_return_in_memory): Return true
9988 if int_size_in_bytes returns negative for IA MCU.
9990 2015-07-09 Marek Polacek <polacek@redhat.com>
9992 PR tree-optimization/66718
9993 * Makefile.in (OBJS): Add gimple-laddress.o.
9994 * passes.def: Schedule pass_laddress.
9995 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
9996 * tree-pass.h (make_pass_laddress): Declare.
9997 * gimple-laddress.c: New file.
9999 2015-07-09 Richard Biener <rguenther@suse.de>
10001 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
10003 2015-07-09 Richard Biener <rguenther@suse.de>
10005 PR tree-optimization/66807
10006 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
10008 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
10010 * function.c (stack_protect_epilogue): Use if rather than switch for
10011 check targetm.have_stack_protect_test.
10013 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10015 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
10016 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
10017 * config/arc/arc.h: Likewise.
10018 * config/arm/arm.h: Likewise.
10019 * config/bfin/bfin.h: Likewise.
10020 * config/epiphany/epiphany.h: Likewise.
10021 * config/frv/frv.h: Likewise.
10022 * config/ia64/ia64.h: Likewise.
10023 * config/iq2000/iq2000.h: Likewise.
10024 * config/lm32/lm32.h: Likewise.
10025 * config/m32r/m32r.h: Likewise.
10026 * config/mcore/mcore.h: Likewise.
10027 * config/mep/mep.h: Likewise.
10028 * config/microblaze/microblaze.h: Likewise.
10029 * config/mips/mips.h: Likewise.
10030 * config/mmix/mmix.h: Likewise.
10031 * config/mn10300/mn10300.h: Likewise.
10032 * config/nds32/nds32.h: Likewise.
10033 * config/nios2/nios2.h: Likewise.
10034 * config/pa/pa.h: Likewise.
10035 * config/rl78/rl78.h: Likewise.
10036 * config/sh/sh.h: Likewise.
10037 * config/sparc/sparc.h: Likewise.
10038 * config/stormy16/stormy16.h: Likewise.
10039 * config/tilegx/tilegx.h: Likewise.
10040 * config/tilepro/tilepro.h: Likewise.
10041 * config/v850/v850.h: Likewise.
10042 * config/xtensa/xtensa.h: Likewise.
10043 * doc/tm.texi: Regenerate.
10044 * doc/tm.texi.in: Adjust.
10045 * combine.c (simplify_set): Likewise.
10046 (simplify_comparison): Likewise.
10047 * expr.c (store_constructor): Likewise.
10048 * internal-fn.c (expand_arith_overflow): Likewise.
10049 * reload.c (push_reload): Likewise.
10050 (find_reloads): Likewise.
10051 (find_reloads_subreg_address): Likewise.
10052 * reload1.c (eliminate_regs_1): Likewise.
10053 * rtlanal.c (nonzero_bits1): Likewise.
10054 (num_sign_bit_copies1): Likewise.
10055 * simplify-rtx.c (simplify_truncation): Likewise.
10057 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10059 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
10060 of AUTO_INC_DEC with the preprocessor.
10061 * combine.c (combine_instructions): Likewise.
10062 (can_combine_p): Likewise.
10063 (try_combine): Likewise.
10064 * emit-rtl.c (try_split): Likewise.
10065 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
10066 * lower-subreg.c (resolve_simple_move): Likewise.
10067 * lra.c (update_inc_notes): Likewise.
10068 * recog.c (asm_operand_ok): Likewise.
10069 (constrain_operands): Likewise.
10070 * regrename.c (scan_rtx_address): Likewise.
10071 * reload.c (update_auto_inc_notes): Likewise.
10072 (reg_inc_found_and_valid_p): Likewise.
10073 * reload1.c (reload): Likewise.
10074 (emit_input_reload_insns): Likewise.
10075 (delete_output_reload): Likewise.
10076 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
10077 * valtrack.c (cleanup_auto_inc_dec): Likewise.
10079 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10081 * rtl.h: Always define AUTO_INC_DEC.
10082 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
10083 * combine.c (combine_instructions): Likewise.
10084 (can_combine_p): Likewise.
10085 (try_combine): Likewise.
10086 * emit-rtl.c (try_split): Likewise.
10087 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
10088 * lower-subreg.c (resolve_simple_move): Likewise.
10089 * lra.c (update_inc_notes): Likewise.
10090 * recog.c (asm_operand_ok): Likewise.
10091 (constrain_operands): Likewise.
10092 * regrename.c (scan_rtx_address): Likewise.
10093 * reload.c (update_auto_inc_notes): Likewise.
10094 (find_equiv_reg): Likewise.
10095 * reload1.c (reload): Likewise.
10096 (reload_as_needed): Likewise.
10097 (choose_reload_regs): Likewise.
10098 (emit_input_reload_insns): Likewise.
10099 (delete_output_reload): Likewise.
10100 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
10101 * valtrack.c (cleanup_auto_inc_dec): Likewise.
10103 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10105 * combine.c (can_combine_def_p): Don't check the value of
10106 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
10107 (combinable_i3pat): Likewise.
10108 (mark_used_regs_combine): Likewise.
10109 * regrename.c (rename_chains): Likewise.
10110 * reload.c (find_reloads_address): Likewise.
10111 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10113 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10115 * combine.c (update_rsp_from_reg_equal): Don't check if
10116 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
10117 (reg_nonzero_bits_for_combine): Likewise.
10118 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
10120 * config/frv/frv.h: Likewise.
10121 * config/lm32/lm32.h: Likewise.
10122 * config/mep/mep.h: Likewise.
10123 * config/mips/mips.h: Likewise.
10124 * config/rs6000/rs6000.h: Likewise.
10125 * config/sh/sh.h: Likewise.
10126 * config/tilegx/tilegx.h (enum reg_class): Likewise.
10127 * config/tilepro/tilepro.h: Likewise.
10128 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
10129 * doc/tm.texi: Regenerate.
10130 * doc/tm.texi.in: Adjust.
10131 * rtlanal.c (nonzero_bits1): Likewise.
10133 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10135 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
10136 with the preprocessor.
10137 (combine_instructions): Likewise.
10138 (try_combine): Likewise.
10140 (distribute_notes): Likewise.
10142 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10144 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
10146 (simplify_set): Likewise.
10147 * cse.c (cse_insn): Likewise.
10148 * fold-const.c (fold_single_bit_test): Likewise.
10149 (fold_unary_loc): Likewise.
10150 * postreload.c (reload_cse_simplify_set): Likewise.
10151 (reload_cse_simplify_operands): Likewise.
10153 2015-07-08 Jiong Wang <jiong.wang@arm.com>
10155 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
10156 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
10158 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
10161 * config/i386/x86intrin.h: Include <adxintrin.h> even if
10162 __iamcu__ is defined.
10164 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
10166 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
10168 2015-07-08 Iain Sandoe <iain@codesourcery.com>
10171 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
10172 names from preservation.
10174 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
10177 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
10179 (function_arg_advance_32): Don't pass vectors in registers for
10181 (function_arg_32): Likewise.
10182 (ix86_return_in_memory): Don't return vectors in registers for
10185 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
10187 PR middle-end/66334
10188 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
10189 hard regno live at the start of BB with incoming abnormal edges.
10190 * lra-lives.c (process_bb_lives): Ditto.
10192 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
10195 * config/nvptx/mkoffload.c (main): Create an offload image only in
10196 64-bit configurations.
10198 2015-07-08 Martin Liska <mliska@suse.cz>
10201 * tree-sra.c (create_access_1): Call ctor without brackets.
10202 (create_artificial_child_access): Likewise.
10204 2015-07-08 Richard Biener <rguenther@suse.de>
10206 PR tree-optimization/66793
10207 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
10208 Properly split the block after stmts ending it.
10210 2015-07-08 Richard Biener <rguenther@suse.de>
10212 PR tree-optimization/66794
10213 * passes.c (execute_function_todo): Assert that post-dominators
10215 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
10216 Free post-dominators.
10218 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10220 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
10223 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
10225 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
10226 more than or equal 8 and less than 32 when optimizing for size.
10228 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10230 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
10231 COSTS_N_INSNS (1) and increment it appropriately throughout the
10234 2015-07-08 Richard Biener <rguenther@suse.de>
10236 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
10238 2015-07-08 Alan Modra <amodra@gmail.com>
10240 * target.def (rtx_costs): Remove "code" param, add "mode".
10241 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
10242 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
10243 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
10244 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
10245 call. Track mode when given in rtx.
10246 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
10247 (default_address_cost): Pass Pmode to rtx_cost.
10248 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
10249 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
10251 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
10252 (notreg_cost): Add mode param. Use it.
10253 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
10254 mode param and pass to set_src_cost. Update all calls.
10255 (hash_scan_set): Formatting.
10256 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
10257 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
10259 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
10260 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
10261 emit_store_flag): Update set_src_cost and rtx_cost calls.
10262 * auto-inc-dec.c (attempt_change): Likewise.
10263 * calls.c (precompute_register_parameters): Likewise.
10264 * combine.c (expand_compound_operation, make_extraction,
10265 force_to_mode, distribute_and_simplify_rtx): Likewise.
10266 * dojump.c (prefer_and_bit_test): Likewise.
10267 * dse.c (find_shift_sequence): Likewise.
10268 * expr.c (compress_float_constant): Likewise.
10269 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
10270 * ifcvt.c (noce_try_sign_mask): Likewise.
10271 * loop-doloop.c (doloop_optimize): Likewise.
10272 * loop-invariant.c (create_new_invariant): Likewise.
10273 * lower-subreg.c (shift_cost, compute_costs): Likewise.
10274 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
10275 lshift_cheap_p): Likewise.
10276 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
10277 try_replace_in_use, reload_cse_move2add): Likewise.
10278 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
10280 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10281 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10282 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
10283 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
10284 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
10285 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
10287 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
10288 * config/arc/arc.c (arc_rtx_costs): Likewise.
10289 * config/arm/arm.c (arm_rtx_costs): Likewise.
10290 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
10291 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
10292 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
10293 * config/cris/cris.c (cris_rtx_costs): Likewise.
10294 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
10295 * config/frv/frv.c (frv_rtx_costs): Likewise.
10296 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
10297 * config/i386/i386.c (ix86_rtx_costs): Likewise.
10298 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
10299 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
10300 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
10301 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
10302 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
10303 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
10304 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
10305 * config/mep/mep.c (mep_rtx_cost): Likewise.
10306 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
10307 * config/mips/mips.c (mips_rtx_costs): Likewise.
10308 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
10309 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
10310 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
10311 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
10312 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
10313 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
10314 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
10315 * config/pa/pa.c (hppa_rtx_costs): Likewise.
10316 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
10317 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
10318 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
10319 * config/s390/s390.c (s390_rtx_costs): Likewise.
10320 * config/sh/sh.c (sh_rtx_costs): Likewise.
10321 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
10322 * config/spu/spu.c (spu_rtx_costs): Likewise.
10323 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
10324 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
10325 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
10326 * config/v850/v850.c (v850_rtx_costs): Likewise.
10327 * config/vax/vax.c (vax_rtx_costs): Likewise.
10328 * config/visium/visium.c (visium_rtx_costs): Likewise.
10329 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
10330 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
10331 "code" param, and pass as outer_code to first rtx_cost call. Pass
10332 mode to rtx_cost calls.
10333 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
10335 (aarch64_rtx_costs_wrapper): Update.
10336 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
10337 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
10339 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
10340 and rtx_cost calls.
10341 (avr_operand_rtx_cost): Similarly.
10342 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
10343 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
10344 * config/mips/mips.c (mips_stack_address_p): Comment typo.
10345 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
10346 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
10347 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
10349 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
10350 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
10351 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
10352 * doc/tm.texi: Regenerate.
10354 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
10356 * tree-core.h: Include symtab.h.
10357 * rtl.h: Include hard-reg-set.h but not flags.h.
10358 (HARD_CONST): Remove condition compilation involving HARD_CONST since
10359 hard-reg-set.h is always included.
10360 * regs.h: Don't include hard-reg-set.h or rtl.h.
10361 * cfg.h: Include dominance.h.
10362 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
10363 * backend.h: New. Aggregate commonly used backend header files.
10364 * gimple-ssa.h: Don't include tree-hasher.h.
10365 * ssa.h: New. Aggregate commonly used SSA header files.
10366 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
10367 * sel-sched-ir.h: Flatten includes.
10368 * lra-int.h: Flatten completely.
10369 * sel-sched-dump.h: Flatten includes.
10370 * ira-int.h: Flatten includes.
10371 * gimple-streamer.h: Remove all includes.
10372 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
10373 * resource.h: Flatten hard-reg-set.h and df.h.
10374 * sched-int.h: Flatten insn-arrt.h and df.h.
10375 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
10376 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
10377 * genattrtab.c (write_header): Adjust generated includes.
10378 * genautomata.c (main): Likewise.
10379 * genconditions.c (write-header): Likewise.
10380 * genemit.c (main): Likewise.
10381 * gengtype.c (open_base_files): Likewise.
10382 * genopinit.c (main): Likewise.
10383 * genoutput.c (output_prologue): Likewise.
10384 * genpeep.c (main): Likewise.
10385 * genpreds.c (write_insn_preds_c): Likewise.
10386 * genrecog.c (write_header): Likewise.
10387 * alias.c: Adjust includes.
10388 * asan.c: Likewise.
10389 * attribs.c: Likewise.
10390 * auto-inc-dec.c: Likewise.
10391 * auto-profile.c: Likewise.
10392 * bb-reorder.c: Likewise.
10393 * bt-load.c: Likewise.
10394 * builtins.c: Likewise.
10395 * caller-save.c: Likewise.
10396 * calls.c: Likewise.
10397 * ccmp.c: Likewise.
10399 * cfganal.c: Likewise.
10400 * cfgbuild.c: Likewise.
10401 * cfgcleanup.c: Likewise.
10402 * cfgexpand.c: Likewise.
10403 * cfghooks.c: Likewise.
10404 * cfgloop.c: Likewise.
10405 * cfgloopanal.c: Likewise.
10406 * cfgloopmanip.c: Likewise.
10407 * cfgrtl.c: Likewise.
10408 * cgraph.c: Likewise.
10409 * cgraphbuild.c: Likewise.
10410 * cgraphclones.c: Likewise.
10411 * cgraphunit.c: Likewise.
10412 * cilk-common.c: Likewise.
10413 * combine-stack-adj.c: Likewise.
10414 * combine.c: Likewise.
10415 * compare-elim.c: Likewise.
10416 * convert.c: Likewise.
10417 * coverage.c: Likewise.
10418 * cppbuiltin.c: Likewise.
10419 * cprop.c: Likewise.
10421 * cselib.c: Likewise.
10422 * data-streamer-in.c: Likewise.
10423 * data-streamer-out.c: Likewise.
10424 * data-streamer.c: Likewise.
10425 * dbxout.c: Likewise.
10428 * debug.c: Likewise.
10429 * df-core.c: Likewise.
10430 * df-problems.c: Likewise.
10431 * df-scan.c: Likewise.
10433 * dojump.c: Likewise.
10434 * dominance.c: Likewise.
10435 * domwalk.c: Likewise.
10436 * double-int.c: Likewise.
10438 * dumpfile.c: Likewise.
10439 * dwarf2asm.c: Likewise.
10440 * dwarf2cfi.c: Likewise.
10441 * dwarf2out.c: Likewise.
10442 * emit-rtl.c: Likewise.
10443 * et-forest.c: Likewise.
10444 * except.c: Likewise.
10445 * explow.c: Likewise.
10446 * expmed.c: Likewise.
10447 * expr.c: Likewise.
10448 * final.c: Likewise.
10449 * fixed-value.c: Likewise.
10450 * fold-const.c: Likewise.
10451 * function.c: Likewise.
10452 * fwprop.c: Likewise.
10453 * gcc-plugin.h: Likewise.
10454 * gcse-common.c: Likewise.
10455 * gcse.c: Likewise.
10456 * generic-match-head.c: Likewise.
10457 * ggc-page.c: Likewise.
10458 * gimple-builder.c: Likewise.
10459 * gimple-expr.c: Likewise.
10460 * gimple-fold.c: Likewise.
10461 * gimple-iterator.c: Likewise.
10462 * gimple-low.c: Likewise.
10463 * gimple-match-head.c: Likewise.
10464 * gimple-pretty-print.c: Likewise.
10465 * gimple-ssa-isolate-paths.c: Likewise.
10466 * gimple-ssa-strength-reduction.c: Likewise.
10467 * gimple-streamer-in.c: Likewise.
10468 * gimple-streamer-out.c: Likewise.
10469 * gimple-walk.c: Likewise.
10470 * gimple.c: Likewise.
10471 * gimplify-me.c: Likewise.
10472 * gimplify.c: Likewise.
10473 * godump.c: Likewise.
10474 * graph.c: Likewise.
10475 * graphite-blocking.c: Likewise.
10476 * graphite-dependences.c: Likewise.
10477 * graphite-interchange.c: Likewise.
10478 * graphite-isl-ast-to-gimple.c: Likewise.
10479 * graphite-optimize-isl.c: Likewise.
10480 * graphite-poly.c: Likewise.
10481 * graphite-scop-detection.c: Likewise.
10482 * graphite-sese-to-poly.c: Likewise.
10483 * graphite.c: Likewise.
10484 * haifa-sched.c: Likewise.
10485 * hw-doloop.c: Likewise.
10486 * ifcvt.c: Likewise.
10487 * init-regs.c: Likewise.
10488 * internal-fn.c: Likewise.
10489 * ipa-chkp.c: Likewise.
10490 * ipa-comdats.c: Likewise.
10491 * ipa-cp.c: Likewise.
10492 * ipa-devirt.c: Likewise.
10493 * ipa-icf-gimple.c: Likewise.
10494 * ipa-icf.c: Likewise.
10495 * ipa-inline-analysis.c: Likewise.
10496 * ipa-inline-transform.c: Likewise.
10497 * ipa-inline.c: Likewise.
10498 * ipa-polymorphic-call.c: Likewise.
10499 * ipa-profile.c: Likewise.
10500 * ipa-prop.c: Likewise.
10501 * ipa-pure-const.c: Likewise.
10502 * ipa-ref.c: Likewise.
10503 * ipa-reference.c: Likewise.
10504 * ipa-split.c: Likewise.
10505 * ipa-utils.c: Likewise.
10506 * ipa-visibility.c: Likewise.
10508 * ira-build.c: Likewise.
10509 * ira-color.c: Likewise.
10510 * ira-conflicts.c: Likewise.
10511 * ira-costs.c: Likewise.
10512 * ira-emit.c: Likewise.
10513 * ira-lives.c: Likewise.
10515 * jump.c: Likewise.
10516 * langhooks.c: Likewise.
10518 * loop-doloop.c: Likewise.
10519 * loop-init.c: Likewise.
10520 * loop-invariant.c: Likewise.
10521 * loop-iv.c: Likewise.
10522 * loop-unroll.c: Likewise.
10523 * lower-subreg.c: Likewise.
10524 * lra-assigns.c: Likewise.
10525 * lra-coalesce.c: Likewise.
10526 * lra-constraints.c: Likewise.
10527 * lra-eliminations.c: Likewise.
10528 * lra-lives.c: Likewise.
10529 * lra-remat.c: Likewise.
10530 * lra-spills.c: Likewise.
10532 * lto-cgraph.c: Likewise.
10533 * lto-compress.c: Likewise.
10534 * lto-opts.c: Likewise.
10535 * lto-section-in.c: Likewise.
10536 * lto-section-out.c: Likewise.
10537 * lto-streamer-in.c: Likewise.
10538 * lto-streamer-out.c: Likewise.
10539 * lto-streamer.c: Likewise.
10541 * mode-switching.c: Likewise.
10542 * modulo-sched.c: Likewise.
10543 * omega.c: Likewise.
10544 * omp-low.c: Likewise.
10545 * optabs.c: Likewise.
10546 * opts-global.c: Likewise.
10547 * passes.c: Likewise.
10548 * plugin.c: Likewise.
10549 * postreload-gcse.c: Likewise.
10550 * postreload.c: Likewise.
10551 * predict.c: Likewise.
10552 * print-rtl.c: Likewise.
10553 * print-tree.c: Likewise.
10554 * profile.c: Likewise.
10555 * real.c: Likewise.
10556 * realmpfr.c: Likewise.
10557 * recog.c: Likewise.
10559 * reg-stack.c: Likewise.
10560 * regcprop.c: Likewise.
10561 * reginfo.c: Likewise.
10562 * regrename.c: Likewise.
10563 * regstat.c: Likewise.
10564 * reload.c: Likewise.
10565 * reload1.c: Likewise.
10566 * reorg.c: Likewise.
10567 * resource.c: Likewise.
10568 * rtl-chkp.c: Likewise.
10569 * rtlanal.c: Likewise.
10570 * rtlhooks.c: Likewise.
10571 * sanopt.c: Likewise.
10572 * sched-deps.c: Likewise.
10573 * sched-ebb.c: Likewise.
10574 * sched-rgn.c: Likewise.
10575 * sched-vis.c: Likewise.
10576 * sdbout.c: Likewise.
10577 * sel-sched-dump.c: Likewise.
10578 * sel-sched-ir.c: Likewise.
10579 * sel-sched.c: Likewise.
10580 * sese.c: Likewise.
10581 * shrink-wrap.c: Likewise.
10582 * simplify-rtx.c: Likewise.
10583 * stack-ptr-mod.c: Likewise.
10584 * stmt.c: Likewise.
10585 * stor-layout.c: Likewise.
10586 * store-motion.c: Likewise.
10587 * stringpool.c: Likewise.
10588 * symtab.c: Likewise.
10589 * target-globals.c: Likewise.
10590 * targhooks.c: Likewise.
10591 * toplev.c: Likewise.
10592 * tracer.c: Likewise.
10593 * trans-mem.c: Likewise.
10594 * tree-affine.c: Likewise.
10595 * tree-browser.c: Likewise.
10596 * tree-call-cdce.c: Likewise.
10597 * tree-cfg.c: Likewise.
10598 * tree-cfgcleanup.c: Likewise.
10599 * tree-chkp-opt.c: Likewise.
10600 * tree-chkp.c: Likewise.
10601 * tree-chrec.c: Likewise.
10602 * tree-complex.c: Likewise.
10603 * tree-data-ref.c: Likewise.
10604 * tree-dfa.c: Likewise.
10605 * tree-diagnostic.c: Likewise.
10606 * tree-dump.c: Likewise.
10607 * tree-eh.c: Likewise.
10608 * tree-emutls.c: Likewise.
10609 * tree-if-conv.c: Likewise.
10610 * tree-inline.c: Likewise.
10611 * tree-into-ssa.c: Likewise.
10612 * tree-iterator.c: Likewise.
10613 * tree-loop-distribution.c: Likewise.
10614 * tree-nested.c: Likewise.
10615 * tree-nrv.c: Likewise.
10616 * tree-object-size.c: Likewise.
10617 * tree-outof-ssa.c: Likewise.
10618 * tree-parloops.c: Likewise.
10619 * tree-phinodes.c: Likewise.
10620 * tree-predcom.c: Likewise.
10621 * tree-pretty-print.c: Likewise.
10622 * tree-profile.c: Likewise.
10623 * tree-scalar-evolution.c: Likewise.
10624 * tree-sra.c: Likewise.
10625 * tree-ssa-address.c: Likewise.
10626 * tree-ssa-alias.c: Likewise.
10627 * tree-ssa-ccp.c: Likewise.
10628 * tree-ssa-coalesce.c: Likewise.
10629 * tree-ssa-copy.c: Likewise.
10630 * tree-ssa-copyrename.c: Likewise.
10631 * tree-ssa-dce.c: Likewise.
10632 * tree-ssa-dom.c: Likewise.
10633 * tree-ssa-dse.c: Likewise.
10634 * tree-ssa-forwprop.c: Likewise.
10635 * tree-ssa-ifcombine.c: Likewise.
10636 * tree-ssa-live.c: Likewise.
10637 * tree-ssa-loop-ch.c: Likewise.
10638 * tree-ssa-loop-im.c: Likewise.
10639 * tree-ssa-loop-ivcanon.c: Likewise.
10640 * tree-ssa-loop-ivopts.c: Likewise.
10641 * tree-ssa-loop-manip.c: Likewise.
10642 * tree-ssa-loop-niter.c: Likewise.
10643 * tree-ssa-loop-prefetch.c: Likewise.
10644 * tree-ssa-loop-unswitch.c: Likewise.
10645 * tree-ssa-loop.c: Likewise.
10646 * tree-ssa-math-opts.c: Likewise.
10647 * tree-ssa-operands.c: Likewise.
10648 * tree-ssa-phiopt.c: Likewise.
10649 * tree-ssa-phiprop.c: Likewise.
10650 * tree-ssa-pre.c: Likewise.
10651 * tree-ssa-propagate.c: Likewise.
10652 * tree-ssa-reassoc.c: Likewise.
10653 * tree-ssa-sccvn.c: Likewise.
10654 * tree-ssa-scopedtables.c: Likewise.
10655 * tree-ssa-sink.c: Likewise.
10656 * tree-ssa-strlen.c: Likewise.
10657 * tree-ssa-structalias.c: Likewise.
10658 * tree-ssa-tail-merge.c: Likewise.
10659 * tree-ssa-ter.c: Likewise.
10660 * tree-ssa-threadedge.c: Likewise.
10661 * tree-ssa-threadupdate.c: Likewise.
10662 * tree-ssa-uncprop.c: Likewise.
10663 * tree-ssa-uninit.c: Likewise.
10664 * tree-ssa.c: Likewise.
10665 * tree-ssanames.c: Likewise.
10666 * tree-stdarg.c: Likewise.
10667 * tree-streamer-in.c: Likewise.
10668 * tree-streamer-out.c: Likewise.
10669 * tree-streamer.c: Likewise.
10670 * tree-switch-conversion.c: Likewise.
10671 * tree-tailcall.c: Likewise.
10672 * tree-vect-data-refs.c: Likewise.
10673 * tree-vect-generic.c: Likewise.
10674 * tree-vect-loop-manip.c: Likewise.
10675 * tree-vect-loop.c: Likewise.
10676 * tree-vect-patterns.c: Likewise.
10677 * tree-vect-slp.c: Likewise.
10678 * tree-vect-stmts.c: Likewise.
10679 * tree-vectorizer.c: Likewise.
10680 * tree-vrp.c: Likewise.
10681 * tree.c: Likewise.
10682 * tsan.c: Likewise.
10683 * ubsan.c: Likewise.
10684 * valtrack.c: Likewise.
10685 * value-prof.c: Likewise.
10686 * var-tracking.c: Likewise.
10687 * varasm.c: Likewise.
10688 * varpool.c: Likewise.
10689 * vmsdbgout.c: Likewise.
10690 * vtable-verify.c: Likewise.
10692 * wide-int.cc: Likewise.
10693 * xcoffout.c: Likewise.
10694 * config/aarch64/aarch64-builtins.c: Likewise.
10695 * config/aarch64/aarch64.c: Likewise.
10696 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10697 * config/alpha/alpha.c: Likewise.
10698 * config/arc/arc.c: Likewise.
10699 * config/arm/aarch-common.c: Likewise.
10700 * config/arm/arm-builtins.c: Likewise.
10701 * config/arm/arm-c.c: Likewise.
10702 * config/arm/arm.c: Likewise.
10703 * config/avr/avr-c.c: Likewise.
10704 * config/avr/avr-log.c: Likewise.
10705 * config/avr/avr.c: Likewise.
10706 * config/bfin/bfin.c: Likewise.
10707 * config/c6x/c6x.c: Likewise.
10708 * config/cr16/cr16.c: Likewise.
10709 * config/cris/cris.c: Likewise.
10710 * config/darwin-c.c: Likewise.
10711 * config/darwin.c: Likewise.
10712 * config/epiphany/epiphany.c: Likewise.
10713 * config/epiphany/mode-switch-use.c: Likewise.
10714 * config/epiphany/resolve-sw-modes.c: Likewise.
10715 * config/fr30/fr30.c: Likewise.
10716 * config/frv/frv.c: Likewise.
10717 * config/ft32/ft32.c: Likewise.
10718 * config/h8300/h8300.c: Likewise.
10719 * config/i386/i386-c.c: Likewise.
10720 * config/i386/i386.c: Likewise.
10721 * config/i386/msformat-c.c: Likewise.
10722 * config/i386/winnt-cxx.c: Likewise.
10723 * config/i386/winnt-stubs.c: Likewise.
10724 * config/i386/winnt.c: Likewise.
10725 * config/ia64/ia64-c.c: Likewise.
10726 * config/ia64/ia64.c: Likewise.
10727 * config/iq2000/iq2000.c: Likewise.
10728 * config/lm32/lm32.c: Likewise.
10729 * config/m32c/m32c-pragma.c: Likewise.
10730 * config/m32c/m32c.c: Likewise.
10731 * config/m32r/m32r.c: Likewise.
10732 * config/m68k/m68k.c: Likewise.
10733 * config/mcore/mcore.c: Likewise.
10734 * config/mep/mep-pragma.c: Likewise.
10735 * config/mep/mep.c: Likewise.
10736 * config/microblaze/microblaze-c.c: Likewise.
10737 * config/microblaze/microblaze.c: Likewise.
10738 * config/mips/mips.c: Likewise.
10739 * config/mmix/mmix.c: Likewise.
10740 * config/mn10300/mn10300.c: Likewise.
10741 * config/moxie/moxie.c: Likewise.
10742 * config/msp430/msp430-c.c: Likewise.
10743 * config/msp430/msp430.c: Likewise.
10744 * config/nds32/nds32-cost.c: Likewise.
10745 * config/nds32/nds32-fp-as-gp.c: Likewise.
10746 * config/nds32/nds32-intrinsic.c: Likewise.
10747 * config/nds32/nds32-isr.c: Likewise.
10748 * config/nds32/nds32-md-auxiliary.c: Likewise.
10749 * config/nds32/nds32-memory-manipulation.c: Likewise.
10750 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10751 * config/nds32/nds32-predicates.c: Likewise.
10752 * config/nds32/nds32.c: Likewise.
10753 * config/nios2/nios2.c: Likewise.
10754 * config/nvptx/nvptx.c: Likewise.
10755 * config/pa/pa.c: Likewise.
10756 * config/pdp11/pdp11.c: Likewise.
10757 * config/rl78/rl78-c.c: Likewise.
10758 * config/rl78/rl78.c: Likewise.
10759 * config/rs6000/rs6000-c.c: Likewise.
10760 * config/rs6000/rs6000.c: Likewise.
10761 * config/rx/rx.c: Likewise.
10762 * config/s390/s390-c.c: Likewise.
10763 * config/s390/s390.c: Likewise.
10764 * config/sh/sh-c.c: Likewise.
10765 * config/sh/sh-mem.cc: Likewise.
10766 * config/sh/sh.c: Likewise.
10767 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10768 * config/sh/sh_treg_combine.cc: Likewise.
10769 * config/sol2-c.c: Likewise.
10770 * config/sol2-cxx.c: Likewise.
10771 * config/sol2-stubs.c: Likewise.
10772 * config/sol2.c: Likewise.
10773 * config/sparc/sparc-c.c: Likewise.
10774 * config/sparc/sparc.c: Likewise.
10775 * config/spu/spu-c.c: Likewise.
10776 * config/spu/spu.c: Likewise.
10777 * config/stormy16/stormy16.c: Likewise.
10778 * config/tilegx/mul-tables.c: Likewise.
10779 * config/tilegx/tilegx-c.c: Likewise.
10780 * config/tilegx/tilegx.c: Likewise.
10781 * config/tilepro/mul-tables.c: Likewise.
10782 * config/tilepro/tilepro-c.c: Likewise.
10783 * config/tilepro/tilepro.c: Likewise.
10784 * config/v850/v850-c.c: Likewise.
10785 * config/v850/v850.c: Likewise.
10786 * config/vax/vax.c: Likewise.
10787 * config/visium/visium.c: Likewise.
10788 * config/vms/vms-c.c: Likewise.
10789 * config/vms/vms.c: Likewise.
10790 * config/vxworks.c: Likewise.
10791 * config/xtensa/xtensa.c: Likewise.
10793 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
10795 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
10796 Remove operand constraints. Change operand 2 predicate to
10797 nonmemory operand. Limit const_int values to mode bitsize. Only
10798 allow const_int values less than 32 when optimizing for size.
10799 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
10800 Remove operand constraints.
10801 (*bt<mode>): Use SImode for const_int values less than 32.
10802 (regmode): Remove mode attribute.
10804 2015-07-07 Anatoly Sokolov <aesok@post.ru>
10806 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10807 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
10808 moxie_legitimate_address_p): New functions.
10809 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
10811 2015-07-07 Tom de Vries <tom@codesourcery.com>
10813 PR tree-optimization/66642
10814 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
10815 header comment. Rename split_edge variable to edge_at_split. Split
10816 exit edge to create new loop exit bb. Insert loop exit phis in new
10819 2015-07-07 Tom de Vries <tom@codesourcery.com>
10821 * tree-cfg.c (get_virtual_phi): New function.
10822 * tree-cfg.h (get_virtual_phi): Declare.
10823 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
10824 (rewrite_virtuals_into_loop_closed_ssa): New function.
10825 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
10827 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
10828 (transform_to_exit_first_loop_alt): Use
10829 rewrite_virtuals_into_loop_closed_ssa.
10831 2015-07-07 Richard Biener <rguenther@suse.de>
10833 * fold-const.c (fold_binary_loc): Move
10834 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
10835 * match.pd: ... here.
10836 Add (X * C1) % C2 -> 0 simplification pattern derived from
10839 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
10842 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
10843 change for target/65249.
10845 2015-07-07 Paulo Matos <pmatos@broadcom.com>
10847 * symtab.c (address_matters_1): Fix typo in comment above.
10848 (can_increase_alignment_p): Likewise.
10850 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10852 * function.c (free_after_compilation): Clear PROP_cfg in
10853 f->curr_properties.
10855 2015-07-07 Richard Biener <rguenther@suse.de>
10857 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
10859 (add_control_edge): Remove excessive vertical space in dumping.
10860 (process_ssa_edge_worklist): Simulate at most one statement and
10861 return whether we did. Do not simulate PHIs if they are in a
10862 BB not yet simulated.
10863 (ssa_propagate): Adjust to always drain the BB worklist whenever
10864 a BB is available there, likewise the VARYING edges list before
10865 the interesting edge list.
10867 2015-07-07 Christian Bruel <christian.bruel@st.com>
10870 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
10872 2015-07-07 Richard Biener <rguenther@suse.de>
10874 PR middle-end/66739
10875 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
10878 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10880 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
10881 modes for operands 0 and 3. Use SImode for operands 2 and 3.
10882 Copy operand 0 to a temporary if !ext_register_operand. Remove
10883 ancient extract_bit_field workaround.
10884 (insv<mode>_1): Rename from mov<mode>_insv_1.
10885 (*insvqi): Rename from *movqi_insv_2.
10886 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
10887 for renamed insvsi_1.
10888 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
10890 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
10892 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
10893 call to nvptx_reorg_subreg.
10895 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
10897 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
10898 * graphite-dependencies.c, graphite-interchange.c,
10899 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
10900 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
10903 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
10905 * match.pd: Remove element_mode inside HONOR_*.
10906 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
10907 (~X | X -> -1, ~X ^ X -> -1): Merge.
10908 * tree.c (build_each_one_cst): New function.
10909 * tree.h (build_each_one_cst): Likewise.
10911 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10913 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10916 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
10918 * config.gcc <mips*-*-*>: Add fused-madd.opt.
10919 * config/mips/mips.opt (mfused-madd): Remove.
10920 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
10921 * config/mips/mips.h (TARGET_MIPS8000): New.
10922 (ISA_HAS_FP_MADD4_MSUB4): Remove.
10923 (ISA_HAS_FP_MADDF_MSUBF): Remove.
10924 (ISA_HAS_FP_MADD3_MSUB3): Remove.
10925 (ISA_HAS_NMADD4_NMSUB4): Remove.
10926 (ISA_HAS_NMADD3_NMSUB3): Remove.
10927 (ISA_HAS_FUSED_MADD4): New.
10928 (ISA_HAS_UNFUSED_MADD4): New.
10929 (ISA_HAS_FUSED_MADDF): New.
10930 (ISA_HAS_FUSED_MADD3): New.
10931 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
10932 (*fma<mode>4_madd3) New.
10933 (*fma<mode>4_madd4) New.
10934 (*fma<mode>4_maddf) New.
10936 (*fms<mode>4_msub3) New.
10937 (*fms<mode>4_msub4) New.
10939 (*fnma<mode>4_nmadd3) New.
10940 (*fnma<mode>4_nmadd4) New.
10942 (*fnms<mode>4_nmsub3) New.
10943 (*fnms<mode>4_nmsub4) New.
10944 (*madd4<mode>) Modify to be unfused only.
10945 (*msub4<mode>) Modify to be unfused only.
10946 (*nmadd4<mode>) Modify to be unfused only.
10947 (*nmsub4<mode>) Modify to be unfused only.
10948 (*madd3<mode>) Remove.
10949 (*msub3<mode>) Remove.
10950 (*nmadd3<mode>) Remove.
10951 (*nmsub3<mode>) Remove.
10952 (*nmadd3<mode>_fastmath) Remove.
10953 (*nmsub3<mode>_fastmath) Remove.
10954 (*nmadd4<mode>_fastmath) Update condition.
10955 (*nmsub4<mode>_fastmath) Update condition.
10957 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10960 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
10961 alignment attribute, exploring one level down for records and arrays.
10963 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10965 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
10966 modes for operands 0 and 1. Use SImode for operands 2 and 3.
10967 Copy operand 1 to a temporary if !ext_register_operand. Remove
10968 ancient extract_bit_field workaround.
10969 (*extv<mode>): Rename from *mov<mode>_extv_1.
10970 (*extvqi): Rename from *movqi_extv_1.
10971 (extzv<mode>): Rename from extzv. Use SWI248 modes for
10972 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
10973 to a temporary if !ext_register_operand. Remove ancient
10974 extract_bit_field workaround.
10975 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
10976 (*extzvqi): Rename from *movqi_extzv_2.
10977 (*testqi_ext_3): Remove modes from const_int_operand predicated
10978 operands. Add "n" constraint.
10979 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
10980 operand. Add "J" constraint.
10981 (*btsq, *btrq, *btcq peephole2s): Remove mode from
10982 const_0_to_63 predicated operand.
10983 (regmode): New insn attribute.
10984 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
10985 to nonmemory_operand. Use regmode insn attribute.
10986 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
10987 (*jcc_bt<mode>_mask): Remove mode from operand 3.
10988 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
10989 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
10990 operands. Use "N" constraint instead of "n".
10992 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10994 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
10996 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10999 * config/i386/i386.c (iamcu_cost): New.
11000 (m_IAMCU): Likewise.
11001 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
11002 (processor_target_table): Add an entry for "iamcu".
11003 (processor_alias_table): Likewise.
11004 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
11005 (ix86_adjust_cost): Likewise.
11006 (ia32_multipass_dfa_lookahead): Likewise.
11007 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
11008 * config/i386/x86-tune.def: Updated for m_IAMCU.
11010 2015-07-06 Richard Biener <rguenther@suse.de>
11012 PR tree-optimization/66772
11013 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
11014 values are available in the PHI node BB when there are
11015 still unexecutable edges.
11017 2015-07-06 Richard Biener <rguenther@suse.de>
11019 PR tree-optimization/66767
11020 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
11021 Make sure to build the alignment test on a SSA name without
11022 final alignment info valid only if the alignment test
11025 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
11028 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
11029 loop start when inserting LSETUP.
11031 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
11034 * config/i386/i386.c (ix86_option_override_internal): Allow
11035 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
11037 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11039 * read-md.c (decimal_string): Rename to ...
11040 (md_decimal_string): ... this.
11041 (handle_enum): Reflect this.
11043 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11046 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
11048 2015-07-06 Richard Biener <rguenther@suse.de>
11050 PR middle-end/66759
11051 * match.pd: Add missing constraint of y to REAL_CST in
11052 REAL_CST - x CMP y to y - CST CMP x simplification.
11054 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
11056 PR tree-optimization/66757
11057 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
11059 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
11060 Sandra Loosemore <sandra@codesourcery.com>
11062 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
11063 Delete extern declaration.
11064 (gprel_constant_p): Add extern declaration.
11065 * config/nios2/constraints.md ("S"): Use gprel_constant_p
11066 instead of nios2_symbol_ref_in_small_data_p.
11067 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
11068 (nios2_symbol_ref_in_small_data_p): Make static.
11069 (gprel_constant_p): Make non-static.
11071 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
11073 * doc/fragments.texi (Target Fragment): Convert debian.org
11075 * doc/install.texi (Configuration): Ditto.
11077 2015-07-05 Jakub Jelinek <jakub@redhat.com>
11079 PR tree-optimization/66718
11080 * tree-vect-stmts.c (vectorizable_call): Replace uses of
11081 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
11083 PR tree-optimization/66718
11084 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
11085 vectorizable_load, vectorizable_condition): Move vectype,
11086 nunits, ncopies computation after checking what kind of statement
11089 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
11091 * target-insns.def (extv, extzv, insv): New targetm instruction
11093 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
11095 * recog.c (simplify_while_replacing): Likewise.
11097 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
11099 * target-insns.def (doloop_begin, doloop_end): New targetm
11100 instruction patterns.
11101 * loop-init.c: Include target.h.
11102 (pass_loop2::gate): Use the new targetm patterns instead of
11103 HAVE_*/gen_* interface.
11104 (pass_rtl_doloop::gate): Likewise.
11105 (pass_rtl_doloop::execute): Remove preprocessor condition.
11106 * hw-doloop.c: Build unconditionally.
11107 * loop-doloop.c: Likewise.
11108 (doloop_optimize): Use the new targetm patterns instead of
11109 HAVE_*/gen_* interface.
11110 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
11111 * modulo-sched.c (doloop_register_get): Likewise.
11113 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
11115 * target-insns.def (clear_cache): New targetm instruction pattern.
11116 * builtins.c (expand_builtin___clear_cache): Use it instead of
11117 HAVE_*/gen_* interface.
11119 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
11121 * target-insns.def (allocate_stack, check_stack, probe_stack)
11122 (probe_stack_address, split_stack_prologue, split_stack_space_check):
11123 New targetm instruction patterns.
11124 * explow.c (allocate_dynamic_stack_space): Use them instead of
11125 HAVE_*/gen_* interface.
11126 (emit_stack_probe): Likewise.
11127 (probe_stack_range): Likewise.
11128 * function.c (thread_prologue_and_epilogue_insns): Likewise.
11130 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
11132 * target-insns.def (stack_protect_set, stack_protect_test): New
11133 targetm instruction patterns.
11134 * cfgexpand.c (stack_protect_prologue): Use them instead of
11135 HAVE_*/gen_* interface.
11136 * function.c (stack_protect_epilogue): Likewise.
11138 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
11140 * expr.h (gen_move_insn_uncast): Delete.
11141 * expr.c (gen_move_insn_uncast): Delete.
11143 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
11145 * target-insns.def (restore_stack_block, restore_stack_function)
11146 (restore_stack_nonlocal, save_stack_block, save_stack_function)
11147 (save_stack_nonlocal): New targetm instruction patterns.
11148 * builtins.c (expand_builtin_apply): Use them instead of
11149 HAVE_*/gen_* interface.
11150 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
11152 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
11154 * target-insns.def (trap): New targetm instruction pattern.
11155 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
11157 * explow.c (allocate_dynamic_stack_space): Likewise.
11158 * ifcvt.c (find_if_header): Likewise.
11160 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
11162 * target-insns.def (prefetch): New targetm instruction pattern.
11163 * tree-ssa-loop-prefetch.c: Include targeth.
11164 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
11165 of HAVE_*/gen_* interface.
11166 * builtins.c (expand_builtin_prefetch): Likewise.
11167 * toplev.c (process_options): Likewise.
11169 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
11171 * target-insns.def (untyped_call, untyped_return): New targetm
11172 instruction patterns.
11173 * builtins.c (expand_builtin_apply): Use them instead of
11174 HAVE_*/gen_* interface.
11175 (result_vector): Define unconditionally.
11177 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
11179 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
11180 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
11181 (nonlocal_goto_receiver): New targetm instruction patterns.
11182 * builtins.c (expand_builtin_setjmp_setup): Use them instead
11183 of HAVE_*/gen_* interface.
11184 (expand_builtin_setjmp_receiver): Likewise.
11185 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
11186 * except.c (expand_dw2_landing_pad_for_region): Likewise.
11188 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
11190 * target.def: Add code_for_* hooks.
11191 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
11192 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
11193 * target-insns.def (casesi, tablejump): New targetm instruction
11195 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
11196 (do_tablejump): Likewise.
11197 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
11198 (expand_sjlj_dispatch_table): Likewise.
11199 * targhooks.c (default_case_values_threshold): Likewise.
11201 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
11203 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
11204 Use rtx_insn * instead of rtx.
11205 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
11206 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
11207 (nios2_call_tls_get_addr): Likewise.
11208 (nios2_emit_expensive_div): Likewise.
11209 (nios2_emit_move_sequence): Change return type to bool.
11210 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
11211 Change return type to bool.
11213 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
11216 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
11218 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
11221 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
11222 of register_operand. Remove constraint.
11224 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
11226 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
11227 the first argument.
11229 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
11231 * attribs.c (decl_attributes): Guard inform with the return value
11232 of the preceding warning.
11234 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
11236 * doc/invoke.texi (moverride): Move to correct section.
11238 2015-07-03 Richard Biener <rguenther@suse.de>
11240 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
11242 (dt_operand::gen_gimple_expr): After valueizing operands
11243 re-canonicalize operand order for commutative tree codes.
11245 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
11248 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
11250 (__crc32w): Likewise.
11251 (__crc32d): Likewise.
11252 (__rdpmc): Likewise.
11253 (__rdtscp): Likewise.
11254 (_rdpmc): Likewise.
11255 (_rdtscp): Likewise.
11256 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
11259 2015-07-03 Richard Biener <rguenther@suse.de>
11261 * fold-const.c (fold_mathfn_compare): Remove.
11262 (fold_inf_compare): Likewise.
11263 (fold_comparison): Move floating point comparison simplifications...
11264 * match.pd: ... to patterns here. Introduce simple_comparisons
11265 operator list and use it for patterns formerly in fold_comparison.
11267 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
11269 PR tree-optimization/66119
11270 * toplev.c (process_options): Don't set up default values for
11271 the sra_max_scalarization_size_{speed,size} parameters.
11272 * tree-sra (analyze_all_variable_accesses): If no values
11273 have been set for the sra_max_scalarization_size_{speed,size}
11274 parameters, call get_move_ratio to get target defaults.
11276 2015-07-03 Richard Biener <rguenther@suse.de>
11278 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
11279 * match.pd: ... here.
11281 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
11284 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
11285 is not actually the default on FreeBSD.
11287 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11289 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
11291 (CMPGE_8HI): Likewise.
11292 (CMPGE_4SI): Likewise.
11293 (CMPGE_2DI): Likewise.
11294 (CMPGE_U16QI): Likewise.
11295 (CMPGE_U8HI): Likewise.
11296 (CMPGE_U4SI): Likewise.
11297 (CMPGE_U2DI): Likewise.
11298 (CMPLE_16QI): Likewise.
11299 (CMPLE_8HI): Likewise.
11300 (CMPLE_4SI): Likewise.
11301 (CMPLE_2DI): Likewise.
11302 (CMPLE_U16QI): Likewise.
11303 (CMPLE_U8HI): Likewise.
11304 (CMPLE_U4SI): Likewise.
11305 (CMPLE_U2DI): Likewise.
11306 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11307 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
11308 ALTIVEC_BUILTIN_VEC_CMPLE.
11309 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
11310 floating-point vector modes.
11311 (vector_nlt<mode>): New define_expand.
11312 (vector_nltu<mode>): Likewise.
11313 (vector_ngt<mode>): Likewise.
11314 (vector_ngtu<mode>): Likewise.
11316 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
11318 PR rtl-optimization/66706
11319 * combine.c (make_compound_operation): If an AND of SUBREG of
11320 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
11322 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
11324 * tree-pass.h (make_pass_ch_vect): New.
11325 * passes.def: Add pass_ch_vect just before pass_if_conversion.
11327 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
11328 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
11329 make_pass_ch_vect): New.
11330 (pass_ch): Extend ch_base.
11332 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
11333 (ch_base::copy_headers): ...here.
11335 2015-07-02 Richard Biener <rguenther@suse.de>
11337 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
11338 * fold-const.c (get_pointer_modulus_and_residue): Remove.
11339 (fold_binary_loc): Implement (T)ptr & CST in terms of
11340 get_pointer_alignment_1.
11341 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
11342 Make sure to build the alignment test on a SSA name without
11343 final alignment info valid only after the prologue.
11345 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
11347 * config/cris/cris.md ("epilogue"): Remove condition.
11348 ("prologue"): Ditto.
11350 2015-07-02 Richard Biener <rguenther@suse.de>
11352 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
11353 parameter to record a condition that is false.
11354 (record_conditions): When recording an extra NE_EXPR that is
11355 true also record a EQ_EXPR that is false.
11357 2015-07-02 Bin Cheng <bin.cheng@arm.com>
11359 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
11360 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
11361 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
11362 (set_iv, find_interesting_uses_address, add_candidate_1): New
11363 argument to alloc_iv.
11364 (find_interesting_uses_op, find_interesting_uses_cond): Don't
11365 duplicate struct iv.
11366 (free_loop_data): Don't free struct iv explicitly.
11367 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
11369 2015-07-01 DJ Delorie <dj@redhat.com>
11371 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
11373 (SUPPORTS_DISCRIMINATOR): Define.
11375 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
11378 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
11379 there are no CALLs in the same pattern.
11381 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11383 PR rtl-optimization/61047
11384 * rtlanal.c (get_initial_register_offset): New function.
11385 (rtx_addr_can_trap_p_1): Check offsets of stack references.
11387 2015-07-01 Richard Biener <rguenther@suse.de>
11389 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
11390 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
11391 ~X CMP C -> X CMP' ~C to ...
11392 * match.pd: ... patterns here.
11394 2015-07-01 Nick Clifton <nickc@redhat.com>
11396 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
11397 a 16-bit value into a 20-bit memory slot.
11399 2015-07-01 Jiong Wang <jiong.wang@arm.com>
11401 * doc/sourcebuild.texi (AArch64-specific attributes): Document
11402 "aarch64_tiny", "aarch64_small", "aarch64_large",
11403 "aarch64_little_endian", "aarch64_big_endian".
11405 2015-07-01 Jiong Wang <jiong.wang@arm.com>
11407 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
11408 Document "aarch64_small_fpic".
11410 2015-07-01 Jiong Wang <jiong.wang@arm.com>
11412 * configure.ac: Add check for aarch64 assembler -fpic relocation
11414 * configure: Regenerate.
11415 * config.in: Regenerate.
11416 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
11417 to -fPIC if not support of -fpic relocation modifier in assembler.
11419 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
11422 * rtl.c (classify_insn): Handle returns in PARALLELs.
11424 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
11426 PR middle-end/66633
11427 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
11428 to true if the function is nested and if not optimizing.
11429 (convert_local_omp_clauses): Initialize need_frame to true if the
11430 function contains nested functions and if not optimizing.
11432 2015-07-01 Richard Biener <rguenther@suse.de>
11434 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
11435 (X & Y) ^ Y -> ~X & Y transforms to ...
11436 * match.pd: ... here.
11438 2015-07-01 Richard Biener <rguenther@suse.de>
11440 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
11441 of converts to avoid uninteresting noise from the conversion
11442 simplifying patterns.
11444 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
11446 * config/c6x/c6x.c (try_rename_operands): Do not depend on
11447 gcc_assert evaluating its argument for side-effect.
11449 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
11452 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
11455 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
11457 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
11458 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
11459 (hash_scc): Add this_ref_p and ref_p parameters and pass them
11460 to the inner DFS walk.
11462 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11464 * target-insns.def (jump): New targetm instruction pattern.
11465 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
11466 instead of gen_jump.
11467 (fix_up_crossing_landing_pad): Likewise.
11468 (add_labels_and_missing_jumps): Likewise.
11469 (fix_crossing_conditional_branches): Likewise.
11470 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11471 (force_nonfallthru_and_redirect): Likewise.
11472 * cse.c (cse_insn): Likewise.
11473 * expmed.c (expand_divmod): Likewise.
11474 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
11475 * haifa-sched.c (init_before_recovery): Likewise.
11476 (sched_create_recovery_edges): Likewise.
11477 * ifcvt.c (find_cond_trap): Likewise.
11478 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
11479 (expand_float, expand_fix): Likewise.
11480 * stmt.c (emit_jump): Likewise.
11482 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11484 * defaults.h (HAVE_load_multiple, gen_load_multiple)
11485 (HAVE_store_multiple, gen_store_multiple): Delete.
11486 * target-insns.def (load_multiple, store_multiple): New targetm
11487 instruction patterns.
11488 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
11489 of HAVE_*/gen_* interface.
11491 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11493 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
11494 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
11495 (gen_mem_signal_fence): Delete.
11496 * target-insns.def (mem_signal_fence, mem_thread_fence)
11497 (memory_barrier): New targetm instruction patterns.
11498 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
11500 (expand_mem_signal_fence): Likewise.
11502 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11504 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
11505 * target-insns.def (epilogue, prologue, sibcall_prologue): New
11506 targetm instruction patterns.
11507 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
11509 * calls.c (expand_call): Likewise.
11510 * cfgrtl.c (cfg_layout_finalize): Likewise.
11511 * df-scan.c (df_get_entry_block_def_set): Likewise.
11512 (df_get_exit_block_use_set): Likewise.
11513 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
11514 * final.c (final_start_function): Likewise.
11515 * function.c (thread_prologue_and_epilogue_insns): Likewise.
11516 (reposition_prologue_and_epilogue_notes): Likewise.
11517 * reorg.c (find_end_label): Likewise.
11518 * toplev.c (process_options): Likewise.
11520 2015-06-30 David Malcolm <dmalcolm@redhat.com>
11522 * typed-splay-tree.h: New file.
11524 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
11527 * lra-int.h (lra_substitute_pseudo): Add a parameter.
11528 (lra_substitute_pseudo_within_insn): Ditto.
11529 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
11531 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
11532 to lra_substitute_pseudo.
11533 * lra-lives.c (process_bb_lives): Add an argument to
11534 lra_substitute_pseudo_within_insn call.
11535 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
11536 argument to lra_substitute_pseudo and
11537 lra_substitute_pseudo_within_insn calls.
11538 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
11540 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
11542 * configure: Regenerated.
11544 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
11546 * config.gcc: Support i[34567]86-*-elfiamcu target.
11547 * config/i386/iamcu.h: New.
11548 * config/i386/i386.opt: Add -miamcu.
11549 * doc/invoke.texi: Document -miamcu.
11550 * common/config/i386/i386-common.c (ix86_handle_option): Turn
11551 off x87/MMX/SSE/AVX codegen for -miamcu.
11552 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11553 __iamcu/__iamcu__ for -miamcu.
11554 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
11555 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
11556 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
11557 * config/i386/i386.c (ix86_option_override_internal): Ignore and
11558 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
11559 MCU by default. Default long double to 64-bit for Intel MCU.
11560 Turn on -freg-struct-return for Intel MCU. Issue an error when
11561 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
11563 (function_arg_advance_32): Pass value whose size is no larger
11564 than 8 bytes in registers for Intel MCU.
11565 (function_arg_32): Likewise.
11566 (ix86_return_in_memory): Return value whose size is no larger
11567 than 8 bytes in registers for Intel MCU.
11568 (iamcu_alignment): New function.
11569 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
11571 (ix86_local_alignment): Don't increase alignment for Intel MCU.
11572 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
11575 2015-06-30 Marek Polacek <polacek@redhat.com>
11577 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
11578 both operands of the resulting expression.
11580 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
11581 the final expression with the operand's type and then convert
11582 it to the type of the expression.
11584 2015-06-30 Richard Biener <rguenther@suse.de>
11586 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
11587 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
11588 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
11589 * match.pd: ... to patterns here.
11591 2015-06-30 Richard Biener <rguenther@suse.de>
11593 PR tree-optimization/66704
11594 * tree-vect-data-refs.c (vect_setup_realignment): Use
11595 make_ssa_name for non-SSA name source.
11597 2015-06-30 Jakub Jelinek <jakub@redhat.com>
11599 PR middle-end/66702
11600 * omp-low.c (simd_clone_adjust): Handle addressable linear
11601 or uniform parameters or non-gimple type uniform parameters.
11603 2015-06-30 Richard Biener <rguenther@suse.de>
11605 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
11606 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
11607 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
11608 * match.pd: ... here.
11609 Add a few cases of A - B -> A + (-B) when B "easily" negates.
11610 Move (x & y) | x -> x and friends before
11611 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
11613 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
11615 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
11616 -mfix-ut699 is not specified.
11617 (leon3_load): Rename into...
11618 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
11621 2015-06-30 Marek Polacek <polacek@redhat.com>
11623 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
11624 * match.pd: ... here.
11626 2015-06-30 Richard Biener <rguenther@suse.de>
11628 * target-insns.def (canonicalize_funcptr_for_compare): Add.
11629 * fold-const.c (build_range_check): Replace uses of
11630 HAVE_canonicalize_funcptr_for_compare.
11631 (fold_widened_comparison): Likewise.
11632 (fold_sign_changed_comparison): Likewise.
11633 * dojump.c: Include "target.h".
11634 (do_compare_and_jump): Replace uses of
11635 HAVE_canonicalize_funcptr_for_compare and
11636 gen_canonicalize_funcptr_for_compare.
11637 * expr.c (do_store_flag): Likewise.
11639 2015-06-30 Tom de Vries <tom@codesourcery.com>
11641 PR tree-optimization/66652
11642 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
11643 max_loop_iterations to determine if nit + 1 overflows.
11645 2015-06-30 Richard Biener <rguenther@suse.de>
11647 * tree-vrp.c (register_edge_assert_for_2): Also register
11648 asserts for dominating conversion results.
11650 2015-06-30 Bin Cheng <bin.cheng@arm.com>
11652 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
11653 field in struct iv.
11655 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
11658 * configure.ac: Fix filds and fildq test for 64-bit.
11659 * configure: Regenerated.
11661 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
11663 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
11664 (nvptx_reorg): Here. Keep the non-subreg pieces.
11666 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
11668 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
11669 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
11671 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
11673 * config/i386/i386.md (*jcc_1): Use %! in asm template.
11674 Set attribute "length_nobnd" instead of "length".
11677 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
11679 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
11681 * config/nios2/nios2.c (nios2_delegitimize_address): Make
11682 assert less restrictive.
11684 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
11687 * cgraphunit.c (cgraph_node::finalize_function): Do not call
11688 do_warn_unused_parameter.
11689 * function.c (do_warn_unused_parameter): Move from here.
11690 * function.h (do_warn_unused_parameter): Do not declare.
11692 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11695 * gcc.target/arm/armv-sync-comp-swap.c: New.
11696 * gcc.target/arm/armv-sync-op-acquire.c: New.
11697 * gcc.target/arm/armv-sync-op-full.c: New.
11698 * gcc.target/arm/armv-sync-op-release.c: New.
11700 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11703 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
11704 initial acquire barrier with final barrier.
11706 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11709 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
11710 initial acquire barrier with final barrier.
11712 2015-06-29 Richard Henderson <rth@redhat.com>
11714 * config/i386/constraints.md (Bf): New constraint.
11715 * config/i386/i386-c.c (ix86_target_macros): Define
11716 __GCC_ASM_FLAG_OUTPUTS__.
11717 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
11719 * doc/extend.texi (FlagOutputOperands): Document them.
11721 2015-06-29 Jiong Wang <jiong.wang@arm.com>
11723 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
11724 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
11726 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
11727 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
11728 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
11729 (aarch64_symbol_context): Ditto.
11730 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
11731 and use new pattern name.
11732 (aarch64_expand_mov_immediate): Ditto.
11733 (aarch64_print_operand): Ditto.
11734 (aarch64_classify_tls_symbol): Ditto.
11736 2015-06-29 Marek Polacek <polacek@redhat.com>
11737 Marc Glisse <marc.glisse@inria.fr>
11739 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
11740 * match.pd: ... pattern here.
11742 2015-06-29 Tom de Vries <tom@codesourcery.com>
11744 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
11745 function structure.
11747 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11749 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
11750 feature description, split out the native option, add a link to
11751 the feature documentation, rearrange and slightly rewrite text.
11752 (Aarch64 options, -mcpu): Likewise.
11753 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
11754 +rdma implies Adv. SIMD.
11756 2015-06-29 Marek Polacek <polacek@redhat.com>
11759 * function.c (stack_protect_epilogue): Remove a cast to int.
11760 * doc/invoke.texi: Update -Wswitch-bool description.
11762 2015-06-29 Richard Biener <rguenther@suse.de>
11764 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
11765 * fold-const.c (fold_binary_loc): Move &A - &B simplification
11766 via ptr_difference_const ...
11767 * match.pd: ... here.
11768 When matching (X ^ Y) == Y also match with swapped operands.
11770 2015-06-29 Richard Biener <rguenther@suse.de>
11772 * lto-streamer.h (LTO_major_version): Bump to 5.
11774 2015-06-29 Richard Biener <rguenther@suse.de>
11776 PR tree-optimization/66677
11777 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
11778 STMT_VINFO_VEC_STMT clobbering less strict.
11780 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
11782 PR middle-end/64130
11783 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
11784 division, compute max and min when value ranges for dividend and
11785 divisor are available.
11787 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
11788 Sandra Loosemore <sandra@codesourcery.com>
11790 * regrename.h (regrename_do_replace): Change to return bool.
11791 * regrename.c (rename_chains): Check return value of
11792 regname_do_replace.
11793 (regrename_do_replace): Re-validate the modified insns and
11794 return bool status.
11795 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
11796 Update to match rename_chains changes.
11797 * config/c6x/c6x.c (try_rename_operands): Assert that
11798 regrename_do_replace returns true.
11800 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
11802 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
11803 operand 2 here. Use copy_addr_to_reg to copy non-index
11804 register operand 2 to a temporary.
11805 (<mode>_stx): Ditto for operand 1.
11806 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
11807 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
11808 (ix86_store_bounds): Ditto.
11810 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
11812 * print-tree.c (print_node) [TREE_VEC]: Print its length.
11814 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
11816 * gimple.c (gimple_call_set_fndecl): Remove.
11817 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
11818 build1_loc directly instead of build_fold_addr_expr_loc.
11820 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11822 * hash-map.h (hash_map::traverse): Use the definition of the
11823 Key typedef rather than the typedef itself.
11825 2015-06-26 Martin Jambor <mjambor@suse.cz>
11828 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
11829 NULL instead of calling dump_enabled_p.
11831 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11833 * config/aarch64/aarch64.opt: (override): New.
11834 * doc/invoke.texi (override): Document.
11835 * config/aarch64/aarch64.c (aarch64_flag_desc): New
11836 (aarch64_fusible_pairs): Likewise.
11837 (aarch64_tuning_flags): Likewise.
11838 (aarch64_tuning_override_function): Likewise.
11839 (aarch64_tuning_override_functions): Likewise.
11840 (aarch64_parse_one_option_token): Likewise.
11841 (aarch64_parse_boolean_options): Likewise.
11842 (aarch64_parse_fuse_string): Likewise.
11843 (aarch64_parse_tune_string): Likewise.
11844 (aarch64_parse_one_override_token): Likewise.
11845 (aarch64_parse_override_string): Likewise.
11846 (aarch64_override_options): Parse the -override string if it
11849 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11851 * config/aarch64/aarch64-protos.h (tune_params): Remove
11852 const from members.
11853 (aarch64_tune_params): Remove const, change to no longer be
11855 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
11856 change to no longer be a pointer, initialize to generic_tunings.
11857 (aarch64_min_divisions_for_recip_mul): Change dereference of
11858 aarch64_tune_params to member access.
11859 (aarch64_reassociation_width): Likewise.
11860 (aarch64_rtx_mult_cost): Likewise.
11861 (aarch64_address_cost): Likewise.
11862 (aarch64_branch_cost): Likewise.
11863 (aarch64_rtx_costs): Likewise.
11864 (aarch64_register_move_cost): Likewise.
11865 (aarch64_memory_move_cost): Likewise.
11866 (aarch64_sched_issue_rate): Likewise.
11867 (aarch64_builtin_vectorization_cost): Likewise.
11868 (aarch64_override_options): Take a copy of the selected tuning
11869 struct in to aarch64_tune_params, rather than just setting
11870 a pointer, change dereferences of aarch64_tune_params to member
11872 (aarch64_override_options_after_change): Change dereferences of
11873 aarch64_tune_params to member access.
11874 (aarch64_macro_fusion_p): Likewise.
11875 (aarch_macro_fusion_pair_p): Likewise.
11876 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
11878 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11880 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
11881 (aarch64_tune_flags): Likewise.
11882 (AARCH64_TUNE_FMA_STEERING): Likewise.
11883 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
11884 to AARCH64_FL_USE_FMA_STEERING_PASS.
11885 (cortex-a57.cortex-a53): Likewise.
11886 (cortex-a72): Use cortexa72_tunings.
11887 (cortex-a72.cortex-a53): Likewise.
11888 (exynos-m1): Likewise.
11889 * config/aarch64/aarch64-protos.h (tune_params): Add
11890 a field: extra_tuning_flags.
11891 * config/aarch64/aarch64-tuning-flags.def: New.
11892 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
11893 (aarch64_extra_tuning_flags): Likewise.
11894 (aarch64_tune_params): Declare here.
11895 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
11896 (cortexa53_tunings): Likewise.
11897 (cortexa57_tunings): Likewise.
11898 (thunderx_tunings): Likewise.
11899 (xgene1_tunings): Likewise.
11900 (cortexa72_tunings): New.
11901 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
11902 (gate): Check against aarch64_tune_params.
11903 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
11906 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11908 * config/aarch64/aarch64-fusion-pairs.def: New.
11909 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
11910 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
11911 aarch64_fusion_pairs.
11912 (AARCH64_FUSE_MOV_MOVK): Likewise.
11913 (AARCH64_FUSE_ADRP_ADD): Likewise.
11914 (AARCH64_FUSE_MOVK_MOVK): Likewise.
11915 (AARCH64_FUSE_ADRP_LDR): Likewise.
11916 (AARCH64_FUSE_CMP_BRANCH): Likewise.
11918 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11920 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
11921 SYMBOL_SMALL_GOT_28K.
11922 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
11923 relocation modifiers.
11924 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
11925 (ldr_got_small_28k_<mode>): New.
11926 (ldr_got_small_28k_sidi): New.
11927 * config/aarch64/iterators.md (got_modifier): New mode iterator.
11928 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
11929 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11930 SYMBOL_SMALL_GOT_28K.
11931 (aarch64_rtx_costs): Add costs for new instruction sequences.
11932 (initialize_aarch64_code_model): Initialize new model.
11933 (aarch64_classify_symbol): Recognize new model and new symbol classification.
11934 (aarch64_asm_preferred_eh_data_format): Support new model.
11935 (aarch64_load_symref_appropriately): Generate new instruction
11936 sequences for -fpic.
11937 (TARGET_USE_PSEUDO_PIC_REG): New definition.
11938 (aarch64_use_pseudo_pic_reg): New function.
11940 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11942 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11943 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
11944 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
11945 (aarch64_expand_mov_immediate): Ditto.
11946 (aarch64_print_operand): Ditto.
11947 (aarch64_classify_symbol): Ditto.
11949 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
11951 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
11953 2015-06-26 Bin Cheng <bin.cheng@arm.com>
11956 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
11957 assertion failed. Remove assertion itself.
11959 2015-06-26 Richard Biener <rguenther@suse.de>
11961 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
11962 and -A CMP CST -> A CMP -CST which is redundant with a pattern
11964 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
11965 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
11966 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
11967 * match.pd: ... patterns here.
11969 2015-06-26 Marek Polacek <polacek@redhat.com>
11971 * match.pd ((x | y) & ~(x & y) -> x ^ y,
11972 (x | y) & (~x ^ y) -> x & y): New patterns.
11974 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11976 * rtl.h (emit): Add an optional boolean parameter to control
11977 whether barriers are emitted.
11978 * emit-rtl.c (emit): Likewise.
11979 * gensupport.c (get_emit_function): Return null rather than "emit".
11980 * genemit.c (gen_emit_seq): Handle the null return value.
11981 Don't emit barriers after the final instruction in the sequence.
11982 * gentarget-def.c (main): Don't emit barriers after the instruction.
11984 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11986 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
11987 TARGET_UNIFIED_ASM.
11989 2015-06-26 Richard Biener <rguenther@suse.de>
11991 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
11993 2015-06-26 Richard Biener <rguenther@suse.de>
11995 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
11996 irrespective on whether the inner operation has a single use
11997 of both off are constant.
11999 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
12000 Segher Boessenkool <segher@kernel.crashing.org>
12003 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
12004 before doing PUT_MODE or PUT_CODE on operands to avoid
12005 in-place RTX modification.
12007 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
12009 * gentarget-def.c (def_target_insn): Cast return of strtol to
12012 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12014 * gimple.h (gimple_call_set_fn): Move inline function.
12015 * gimple.c (gimple_call_set_fn): Relocate here.
12017 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
12021 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
12022 the replacement insn will work.
12024 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
12026 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
12029 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12031 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
12032 * cgraph.h: Include ipa-ref.h and plugin-api.h.
12033 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
12034 (symtab_node::address_can_be_compared_p): Move function.
12035 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
12037 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
12038 * auto-profile.c: Likewise.
12039 * bb-reorder.c: Likewise.
12040 * builtins.c: Likewise.
12041 * calls.c: Likewise.
12042 * cfgexpand.c: Likewise.
12043 * cgraphbuild.c: Likewise.
12044 * cgraphclones.c: Likewise.
12045 * cgraphunit.c: Likewise.
12046 * combine.c: Likewise.
12047 * coverage.c: Likewise.
12048 * data-streamer-in.c: Likewise.
12049 * data-streamer-out.c: Likewise.
12050 * data-streamer.c: Likewise.
12051 * dbxout.c: Likewise.
12052 * dwarf2out.c: Likewise.
12053 * except.c: Likewise.
12054 * expr.c: Likewise.
12055 * final.c: Likewise.
12056 * fold-const.c: Likewise.
12057 * ggc-page.c: Likewise.
12058 * gimple-fold.c: Likewise.
12059 * gimple-iterator.c: Likewise.
12060 * gimple-pretty-print.c: Likewise.
12061 * gimple-streamer-in.c: Likewise.
12062 * gimple-streamer-out.c: Likewise.
12063 * gimple.c: Likewise.
12064 * gimplify.c: Likewise.
12065 * ipa-chkp.c: Likewise.
12066 * ipa-comdats.c: Likewise.
12067 * ipa-cp.c: Likewise.
12068 * ipa-devirt.c: Likewise.
12069 * ipa-icf-gimple.c: Likewise.
12070 * ipa-icf.c: Likewise.
12071 * ipa-inline-analysis.c: Likewise.
12072 * ipa-inline-transform.c: Likewise.
12073 * ipa-inline.c: Likewise.
12074 * ipa-polymorphic-call.c: Likewise.
12075 * ipa-profile.c: Likewise.
12076 * ipa-prop.c: Likewise.
12077 * ipa-pure-const.c: Likewise.
12078 * ipa-ref.c: Likewise.
12079 * ipa-reference.c: Likewise.
12080 * ipa-split.c: Likewise.
12081 * ipa-utils.c: Likewise.
12082 * ipa-visibility.c: Likewise.
12084 * langhooks.c: Likewise.
12085 * lto-cgraph.c: Likewise.
12086 * lto-compress.c: Likewise.
12087 * lto-opts.c: Likewise.
12088 * lto-section-in.c: Likewise.
12089 * lto-section-out.c: Likewise.
12090 * lto-streamer-in.c: Likewise.
12091 * lto-streamer-out.c: Likewise.
12092 * lto-streamer.c: Likewise.
12093 * omp-low.c: Likewise.
12094 * opts-global.c: Likewise.
12095 * passes.c: Likewise.
12096 * predict.c: Likewise.
12097 * print-tree.c: Likewise.
12098 * profile.c: Likewise.
12100 * sanopt.c: Likewise.
12101 * stor-layout.c: Likewise.
12102 * symtab.c: Likewise.
12103 * toplev.c: Likewise.
12104 * trans-mem.c: Likewise.
12105 * tree-cfg.c: Likewise.
12106 * tree-chkp.c: Likewise.
12107 * tree-eh.c: Likewise.
12108 * tree-emutls.c: Likewise.
12109 * tree-inline.c: Likewise.
12110 * tree-nested.c: Likewise.
12111 * tree-parloops.c: Likewise.
12112 * tree-pretty-print.c: Likewise.
12113 * tree-profile.c: Likewise.
12114 * tree-sra.c: Likewise.
12115 * tree-ssa-alias.c: Likewise.
12116 * tree-ssa-live.c: Likewise.
12117 * tree-ssa-loop-ivcanon.c: Likewise.
12118 * tree-ssa-loop-ivopts.c: Likewise.
12119 * tree-ssa-pre.c: Likewise.
12120 * tree-ssa-sccvn.c: Likewise.
12121 * tree-ssa-strlen.c: Likewise.
12122 * tree-ssa-structalias.c: Likewise.
12123 * tree-streamer-in.c: Likewise.
12124 * tree-streamer-out.c: Likewise.
12125 * tree-streamer.c: Likewise.
12126 * tree-switch-conversion.c: Likewise.
12127 * tree-tailcall.c: Likewise.
12128 * tree-vect-data-refs.c: Likewise.
12129 * tree-vect-stmts.c: Likewise.
12130 * tree-vectorizer.c: Likewise.
12131 * tree.c: Likewise.
12132 * tsan.c: Likewise.
12133 * ubsan.c: Likewise.
12134 * value-prof.c: Likewise.
12135 * varasm.c: Likewise.
12136 * varpool.c: Likewise.
12137 * config/arm/arm.c: Likewise.
12138 * config/bfin/bfin.c: Likewise.
12139 * config/c6x/c6x.c: Likewise.
12140 * config/cris/cris.c: Likewise.
12141 * config/darwin-c.c: Likewise.
12142 * config/darwin.c: Likewise.
12143 * config/i386/i386.c: Likewise.
12144 * config/i386/winnt.c: Likewise.
12145 * config/microblaze/microblaze.c: Likewise.
12146 * config/mips/mips.c: Likewise.
12147 * config/rs6000/rs6000.c: Likewise.
12148 * config/rx/rx.c: Likewise.
12149 * config/s390/s390.c: Likewise.
12150 * config/tilegx/mul-tables.c: Likewise.
12152 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12154 * config/aarch64/aarch64.c, config/alpha/alpha.c,
12155 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
12156 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
12157 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
12158 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
12159 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
12160 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
12161 config/microblaze/microblaze.c, config/mips/mips.c,
12162 config/mmix/mmix.c, config/mn10300/mn10300.c,
12163 config/moxie/moxie.c, config/msp430/msp430.c,
12164 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
12165 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
12166 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
12167 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
12168 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
12169 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
12170 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
12171 target-def.h include.
12172 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
12174 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12176 * Makefile.in (TARGET_DEF): Add target-insns.def.
12177 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
12178 (build/gentarget-def.o): New rule.
12179 (genprogrtl): Add target-def.
12180 * target-insns.def, gentarget-def.c: New files.
12181 * target.def: Add targetm.have_* and targetm.gen_* hooks,
12182 based on the contents of target-insns.def.
12183 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
12184 (HAVE_return, gen_return): Delete.
12185 * target-def.h: Include insn-target-def.h.
12186 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
12187 instead of direct calls. Rely on them to do the appropriate assertions.
12188 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
12189 (convert_jumps_to_returns): Use targetm interface instead of
12191 (thread_prologue_and_epilogue_insns): Likewise.
12192 * reorg.c (find_end_label, dbr_schedule): Likewise.
12193 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
12194 * shrink-wrap.c (convert_to_simple_return): Likewise.
12195 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
12197 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12199 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
12200 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
12201 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
12202 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
12203 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
12204 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
12205 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
12206 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
12207 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
12208 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
12209 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
12210 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
12211 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
12212 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
12213 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
12214 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
12217 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12219 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
12220 (unbounded_int_hashmap_traits::key_type): Likewise.
12221 * hash-map.h (hash_map): Get the key type from the traits.
12222 * hash-traits.h (default_hash_traits): By default, inherit from the
12223 template parameter.
12224 * alias.c (alias_set_traits): Delete.
12225 (alias_set_entry_d::children): Use alias_set_hash as the first
12226 template parameter.
12227 (record_alias_subset): Update accordingly.
12228 * except.c (tree_hash_traits): Delete.
12229 (type_to_runtime_map): Use tree_hash as the first template parameter.
12230 (init_eh): Update accordingly.
12231 * genmatch.c (capture_id_map_hasher): Delete.
12232 (cid_map_t): Use nofree_string_hash as first template parameter.
12233 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
12234 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
12235 Use symbol_compare_hash as the first template parameter in
12236 subdivide_hash_map.
12237 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
12238 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
12239 template parameter.
12240 * passes.c (pass_registry_hasher): Delete.
12241 (name_to_pass_map): Use nofree_string_hash as the first template
12243 (register_pass_name): Update accordingly.
12244 * sanopt.c (sanopt_tree_map_traits): Delete.
12245 (sanopt_tree_triplet_map_traits): Delete.
12246 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
12247 template parameter.
12248 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
12249 the first template parameter.
12250 * sese.c (rename_map_hasher): Delete.
12251 (rename_map_type): Use tree_ssa_name_hash as the first template
12253 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
12254 (function_summary::m_map): Use map_hash as the first template
12256 (function_summary::release): Update accordingly.
12257 * tree-if-conv.c (phi_args_hash_traits): Delete.
12258 (predicate_scalar_phi): Use tree_operand_hash as the first template
12259 parameter to phi_arg_map.
12260 * tree-inline.h (dependence_hasher): Delete.
12261 (copy_body_data::dependence_map): Use dependence_hash as the first
12262 template parameter.
12263 * tree-inline.c (remap_dependence_clique): Update accordingly.
12264 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
12265 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
12267 (addr_stridxptr): Update accordingly.
12268 * value-prof.c (profile_id_traits): Delete.
12269 (cgraph_node_map): Use profile_id_hash as the first template
12271 (init_node_map): Update accordingly.
12272 * config/alpha/alpha.c (string_traits): Delete.
12273 (machine_function::links): Use nofree_string_hash as the first
12274 template parameter.
12275 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
12276 * config/m32c/m32c.c (pragma_traits): Delete.
12277 (pragma_htab): Use nofree_string_hash as the first template parameter.
12278 (m32c_note_pragma_address): Update accordingly.
12279 * config/mep/mep.c (pragma_traits): Delete.
12280 (pragma_htab): Use nofree_string_hash as the first template parameter.
12281 (mep_note_pragma_flag): Update accordingly.
12282 * config/mips/mips.c (mips16_flip_traits): Delete.
12283 (mflip_mips16_htab): Use nofree_string_hash as the first template
12285 (mflip_mips16_use_mips16_p): Update accordingly.
12286 (local_alias_traits): Delete.
12287 (mips16_local_aliases): Use nofree_string_hash as the first template
12289 (mips16_local_alias): Update accordingly.
12291 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12293 * hash-map-traits.h (default_hashmap_traits): Delete.
12295 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12297 * hash-map-traits.h (unbounded_hashmap_traits): New class.
12298 (unbounded_int_hashmap_traits): Likewise.
12299 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
12301 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12303 * ipa-icf.h (symbol_compare_hash): New class.
12304 (symbol_compare_hashmap_traits): Use it.
12305 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
12306 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
12307 (mem_alloc_description::reverse_mem_map_t): Remove redundant
12308 default_hashmap_traits.
12309 * sanopt.c (sanopt_tree_triplet_hash): New class.
12310 (sanopt_tree_triplet_map_traits): Use it.
12312 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12314 * gengtype-parse.c (require_template_declaration): Allow '+' in
12315 template parameters. Consolidate cases.
12316 * hash-traits.h (int_hash): New class.
12317 * alias.c (alias_set_hash): New structure.
12318 (alias_set_traits): Use it.
12319 * symbol-summary.h (function_summary::map_hash): New class.
12320 (function_summary::summary_hashmap_traits): Use it.
12321 * tree-inline.h (dependence_hash): New class.
12322 (dependence_hasher): Use it.
12323 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
12324 * value-prof.c (profile_id_hash): New class.
12325 (profile_id_traits): Use it.
12327 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12329 * config/mips/mips.c (mips16_flip_traits): Use it.
12330 (local_alias_traits, mips16_local_aliases): Convert from a map of
12331 rtxes to a map of symbol names.
12332 (mips16_local_alias): Update accordingly.
12334 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12336 * hash-traits.h (string_hash, nofree_string_hash): New classes.
12337 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
12338 * passes.c (pass_registry_hasher): Likewise.
12339 * config/alpha/alpha.c (string_traits): Likewise.
12340 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
12341 * config/m32c/m32c.c (pragma_traits): Likewise.
12342 * config/mep/mep.c (pragma_traits): Likewise.
12344 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12346 * tree-hash-traits.h (tree_hash): New class.
12347 * except.c: Include tree-hash-traits.h.
12348 (tree_hash_traits): Use tree_hash.
12350 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12352 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
12353 * sese.c: Include tree-hash-traits.h.
12354 (rename_map_hasher): Use tree_ssa_name_hasher.
12356 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12358 * tree-hash-traits.h (tree_decl_hash): New class.
12359 * tree-ssa-strlen.c: Include tree-hash-traits.h.
12360 (stridxlist_hash_traits): Use tree_decl_hash.
12362 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12364 * tree-hash-traits.h: New file.
12365 (tree_operand_hash): New class.
12366 * sanopt.c: Include tree-hash-traits.h.
12367 (sanopt_tree_map_traits): Use tree_operand_hash.
12368 * tree-if-conv.c: Include tree-hash-traits.h.
12369 (phi_args_hash_traits): Use tree_operand_hash.
12370 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
12371 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
12373 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12375 * hash-map-traits.h: Include hash-traits.h.
12376 (simple_hashmap_traits): New class.
12377 * mem-stats.h (hash_map): Change the default traits to
12378 simple_hashmap_traits<default_hash_traits<Key> >.
12380 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12382 * hash-table.h: Update comments.
12384 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12386 * hash-traits.h (default_hash_traits): New structure.
12387 * hash-set.h (default_hashset_traits): Delete.
12388 (hash_set): Use default_hash_traits<Key> instead of
12389 default_hashset_traits. Delete hash_entry type and use Key directly.
12390 * ipa-devirt.c (pair_traits): Delete.
12391 (default_hash_traits <type_pair>): Override.
12392 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
12393 (odr_types_equivalent_p, add_type_duplicate): Likewise.
12395 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12397 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
12399 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12401 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
12402 (has_is_empty, is_empty_helper): Delete.
12403 (has_mark_deleted, mark_deleted_helper): Delete.
12404 (has_mark_empty, mark_empty_helper): Delete.
12405 (hash_table::is_deleted): Call the Descriptor unconditionally.
12406 (hash_table::is_empty): Likewise.
12407 (hash_table::mark_deleted): Likewise.
12408 (hash_table::mark_empty): Likewise.
12410 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12412 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
12413 redundant typedefs and members.
12414 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
12415 redundant typedefs.
12416 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
12417 * ipa-devirt.c (odr_name_hasher): Likewise.
12418 (polymorphic_call_target_hasher): Likewise.
12419 * ira-costs.c (cost_classes_hasher): Likewise.
12420 * statistics.c (stats_counter_hasher): Likewise.
12421 * trans-mem.c (log_entry_hasher): Likewise.
12422 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
12423 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
12424 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
12425 * var-tracking.c (variable_hasher): Likewise.
12426 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
12427 Remove redundant typedefs and members.
12429 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12431 * hash-traits.h (ggc_cache_hasher): Rename to...
12432 (ggc_cache_remove): ...this and remove typedefs.
12433 (ggc_cache_ptr_hash): New class.
12434 * hash-table.h: Update commentary.
12435 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
12436 rather than ggc_cache_hasher.
12437 (const_wide_int_hasher, reg_attr_hasher): Likewise.
12438 (const_double_hasher, const_fixed_hasher): Likewise.
12439 * function.c (insn_cache_hasher): Likewise.
12440 * trans-mem.c (tm_wrapper_hasher): Likewise.
12441 * tree.h (tree_decl_map_cache_hasher): Likewise.
12442 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
12443 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
12444 * ubsan.c (tree_type_map_cache_hasher): Likewise.
12445 * varasm.c (tm_clone_hasher): Likewise.
12446 * config/i386/i386.c (dllimport_hasher): Likewise.
12447 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
12448 (tree_hasher): Likewise.
12450 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12452 * hash-traits.h (ggc_hasher): Rename to...
12453 (ggc_remover): ...this and remove typedefs.
12454 (ggc_cache_hasher): Update accordingly. Add typedefs.
12455 (ggc_ptr_hash): New class.
12456 * hash-table.h: Update comment.
12457 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
12459 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
12460 (tree_descriptor_hasher): Likewise.
12461 * cgraph.c (function_version_hasher): Likewise.
12462 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
12463 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
12464 (dw_loc_list_hasher, addr_hasher): Likewise.
12465 * function.h (used_type_hasher): Likewise.
12466 * function.c (temp_address_hasher): Likewise.
12467 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
12468 * libfuncs.h (libfunc_hasher): Likewise.
12469 * lto-streamer.h (decl_state_hasher): Likewise.
12470 * optabs.c (libfunc_decl_hasher): Likewise.
12471 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
12472 * varasm.c (section_hasher, object_block_hasher): Likewise.
12473 (const_rtx_desc_hasher): Likewise.
12474 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
12475 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
12477 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12479 * hash-traits.h (free_ptr_hash): New class.
12480 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
12481 rather than typed_free_remove. Remove redudant typedefs.
12482 (external_ref_hasher): Likewise.
12483 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
12484 (ehspec_hasher): Likewise.
12485 * ggc-common.c (saving_hasher): Likewise.
12486 * gimplify.c (gimplify_hasher): Likewise.
12487 * haifa-sched.c (delay_i2_hasher): Likewise.
12488 * loop-invariant.c (invariant_expr_hasher): Likewise.
12489 * loop-iv.c (biv_entry_hasher): Likewise.
12490 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
12491 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
12492 * tree-cfg.c (locus_discrim_hasher): Likewise.
12493 * tree-eh.c (finally_tree_hasher): Likewise.
12494 * tree-into-ssa.c (var_info_hasher): Likewise.
12495 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
12496 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
12497 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
12498 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
12499 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
12500 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
12501 (shared_bitmap_hasher): Likewise.
12502 * tree-ssa-threadupdate.c (redirection_data): Likewise.
12503 * tree-vectorizer.h (peel_info_hasher): Likewise.
12504 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
12505 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
12507 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12509 * hash-table.h: Update comments.
12510 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
12511 (nofree_ptr_hash): New class.
12512 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
12513 than typed_noop_remove. Remove redudant typedefs.
12514 * attribs.c (attribute_hasher): Likewise.
12515 * cfg.c (bb_copy_hasher): Likewise.
12516 * cselib.c (cselib_hasher): Likewise.
12517 * dse.c (invariant_group_base_hasher): Likewise.
12518 * dwarf2cfi.c (trace_info_hasher): Likewise.
12519 * dwarf2out.c (macinfo_entry_hasher): Likewise.
12520 (comdat_type_hasher, loc_list_hasher): Likewise.
12521 * gcse.c (pre_ldst_expr_hasher): Likewise.
12522 * genmatch.c (id_base): Likewise.
12523 * genrecog.c (test_pattern_hasher): Likewise.
12524 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
12525 * haifa-sched.c (delay_i1_hasher): Likewise.
12526 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
12527 * ipa-icf.h (congruence_class_group_hash): Likewise.
12528 * ipa-profile.c (histogram_hash): Likewise.
12529 * ira-color.c (allocno_hard_regs_hasher): Likewise.
12530 * lto-streamer.h (string_slot_hasher): Likewise.
12531 * lto-streamer.c (tree_entry_hasher): Likewise.
12532 * plugin.c (event_hasher): Likewise.
12533 * postreload-gcse.c (expr_hasher): Likewise.
12534 * store-motion.c (st_expr_hasher): Likewise.
12535 * tree-sra.c (uid_decl_hasher): Likewise.
12536 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
12537 (ssa_name_var_hash): Likewise.
12538 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
12539 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
12540 * tree-ssa-pre.c (pre_expr_d): Likewise.
12541 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
12542 * vtable-verify.h (registration_hasher): Likewise.
12543 * vtable-verify.c (vtbl_map_hasher): Likewise.
12544 * config/arm/arm.c (libcall_hasher): Likewise.
12545 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
12546 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
12547 * config/sol2.c (comdat_entry_hasher): Likewise.
12548 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
12549 (print_fold_checksum, fold_checksum_tree): Likewise.
12550 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
12551 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
12552 (fold_build_call_array_loc): Likewise.
12553 * tree-ssa-ccp.c (gimple_htab): Likewise.
12554 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
12555 rather than pointer_type.
12557 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12559 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
12560 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
12562 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12564 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
12565 (ggc_hasher::ggc_mx): Likewise.
12566 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
12567 that duplicate ggc_hasher ones.
12569 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12571 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
12572 (gt_cleare_cache): Check here for deleted and empty entries.
12573 Replace handle_cache_entry with a call to keep_cache_entry.
12574 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
12575 (ggc_cache_hasher::keep_cache_entry): New function.
12576 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
12577 (tm_wrapper_hasher::keep_cache_entry): New function.
12578 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
12579 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
12580 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
12581 (type_cache_hasher::keep_cache_entry): New function.
12582 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
12583 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
12584 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
12585 (tree_type_map_cache_hasher::keep_cache_entry): New function.
12586 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
12587 (tm_clone_hasher::keep_cache_entry): New function.
12588 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
12589 (dllimport_hasher::keep_cache_entry): New function.
12591 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12593 * hash-table.h: Include hash-traits.h.
12594 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
12595 (ggc_cache_hasher): Move to...
12596 * hash-traits.h: ...this new file.
12598 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12600 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
12601 struct cl_optimization.
12602 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
12603 * tree.c (make_node_stat): Allocate cl_optimization struct.
12604 (copy_node_stat): Allocate and copy cl_optimization struct.
12606 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12608 * function.h (struct incoming_args): Move struct.
12609 (pass_by_reference, reference_callee_copied): Remove prototypes.
12610 * emit-rtl.h (struct incoming_args): Relocate struct here.
12611 * calls.h (pass_by_reference, reference_callee_copied): Relocate
12613 * function.c (pass_by_reference, reference_callee_copied): Move.
12614 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
12615 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
12616 * ipa-chkp.c: Include calls.h.
12618 2015-06-25 Andrew Macleod <amacleod@redhat.com>
12620 * alias.h (alias_set_type): Move typedef.
12621 * coretypes.h (alias_set_type): Relocate typedef here.
12622 * rtl.h: Don't include alias.h.
12624 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12626 * cgraph.h (cgraph_rtl_info): Move to rtl.h
12627 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
12629 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
12630 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
12632 * calls.c: Include hard-reg-set.h before rtl.h.
12635 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
12636 Vladimir Makarov <vmakarov@redhat.com>
12638 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
12641 2015-06-25 Richard Biener <rguenther@suse.de>
12643 * fold-const.c (fold_binary_loc): Move simplification of
12644 (X <<>> C1) & C2 ...
12645 * match.pd: ... here.
12647 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
12649 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
12651 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12653 * match.pd: Add patterns for vec_conds between 1 and 0.
12655 2015-06-25 Richard Biener <rguenther@suse.de>
12657 * tree-vect-stmts.c (vectorizable_conversion): Do not set
12658 STMT_VINFO_VEC_STMT for SLP.
12659 (vectorizable_store): Likewise.
12660 (vectorizable_load): Likewise.
12661 (vect_transform_stmt): Catch SLP vectorization clobbering
12662 STMT_VINFO_VEC_STMT.
12664 2015-06-25 Richard Biener <rguenther@suse.de>
12666 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
12668 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
12669 cleanup resulting dead code and parameters.
12670 (vect_transform_slp_perm_load): Adjust.
12672 2015-06-25 Nick Clifton <nickc@redhat.com>
12674 * config/bfin/bfin.c (bfin_expand_prologue): Set
12675 current_function_static_stack_size if flag_stack_usage_info is set.
12676 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12677 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
12678 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
12679 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
12681 2015-06-25 Tom de Vries <tom@codesourcery.com>
12683 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
12684 comment that the generated IV is unsigned.
12686 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12689 * config/arm/arm.c (arm_dbx_register_number): Return
12690 DWARF_FRAME_REGISTERS by default.
12692 2015-06-25 Tom de Vries <tom@codesourcery.com>
12694 * dominance.c (calculate_dominance_info): Fix verify_dominators call
12695 argument. Call verify_dominator when reusing dominator info.
12697 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
12700 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
12701 an additional element of the unspec vector. Modify indices
12703 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
12704 * config/sh/sh.c (prepare_move_operands): Pass incremented
12705 const_int to gen_GOTaddr2picreg.
12706 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
12708 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12710 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
12711 Condition on TARGET_FLOAT.
12713 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12715 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
12718 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12720 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
12722 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
12723 aarch64_err_no_fpadvsimd.
12725 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
12726 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
12727 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
12728 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
12729 Turn error into assert, test TARGET_FLOAT.
12730 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
12733 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
12736 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
12738 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
12740 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
12742 2015-06-24 Renlin Li <renlin.li@arm.com>
12744 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
12745 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
12747 2015-06-24 Richard Biener <rguenther@suse.de>
12749 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
12751 (lower_opt_convert): Support lowering of conditional view_convert.
12752 (parser::parse_operation): Likewise.
12753 (parser::parse_for): Likewise.
12755 2015-06-24 Renlin Li <renlin.li@arm.com>
12757 * varasm.c (emit_local): Use unsigned int for align variable.
12759 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12762 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
12763 for negative numbers.
12765 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12767 PR rtl-optimization/66306
12768 * reload.c (find_reloads): Swap the match_dup info for
12769 commutative operands.
12771 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12773 * config/s390/vx-builtins.md
12774 ("vec_scatter_element<mode>_<non_vec_int>")
12775 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
12776 attribute with bhfgq.
12778 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12780 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
12782 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12784 * config/s390/s390-builtin-types.def: Add flag to indicate the
12785 options under which the function type is needed.
12786 * config/s390/s390-builtins.def: Add flag to indicate the options
12787 under which the builtin is enabled.
12788 * config/s390/s390-builtins.h: Add flags parameter to macro
12790 (bflags_for_builtin): New function.
12791 (flags_for_builtin): Renamed to ...
12792 (opflags_for_builtin): ... this.
12793 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
12794 flags_for_builtin to bflags_for_builtin and
12795 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
12796 * config/s390/s390.c: Add initialization of bflags_builtin and
12797 opflags_builtin arrays.
12798 Remove code for flags_builtin.
12799 (s390_init_builtins): Only create builtin function types if one of
12800 their flags is active.
12801 Only create builtins if all of their flags are active.
12802 (s390_expand_builtin): Rename flags_for_builtin to
12803 opflags_for_builtin.
12805 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12807 * config/s390/vecintrin.h: Remove internal builtins.
12809 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12811 * config/s390/s390.c (s390_secondary_reload): Fix check for
12812 GENERAL_REGS register class.
12814 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12816 * config/s390/s390.c (s390_support_vector_misalignment): Call
12817 default implementation for !TARGET_VX.
12819 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12821 * config/s390/s390.c (s390_legitimate_constant_p): Add
12824 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12826 * config/s390/s390.c (s390_vector_abi): New variable definition.
12827 (s390_check_type_for_vector_abi): New function.
12828 (TARGET_ASM_FILE_END): New macro definition.
12829 (s390_asm_file_end): New function.
12830 (s390_function_arg): Call s390_check_type_for_vector_abi.
12831 (s390_gimplify_va_arg): Likewise.
12832 * configure: Regenerate.
12833 * configure.ac: Check for .gnu_attribute Binutils feature.
12835 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
12838 * config/bfin/bfin.c (hwloop_optimize): Initialize
12839 JUMP_LABEL for newly created jump.
12841 2015-06-23 Tristan Gingold <gingold@adacore.com>
12843 * collect-utils.c (collect_wait): Unlink the response file here
12845 (do_wait): ...here.
12846 (utils_cleanup): ...and here.
12848 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
12850 * df-scan.c: Don't include target-def.h.
12851 * targhooks.c: Likewise.
12852 * config/arm/arm-c.c: Likewise.
12853 * config/i386/i386-c.c: Likewise.
12854 * config/nds32/nds32-cost.c: Likewise.
12855 * config/nds32/nds32-fp-as-gp.c: Likewise.
12856 * config/nds32/nds32-intrinsic.c: Likewise.
12857 * config/nds32/nds32-isr.c: Likewise.
12858 * config/nds32/nds32-md-auxiliary.c: Likewise.
12859 * config/nds32/nds32-memory-manipulation.c: Likewise.
12860 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12861 * config/nds32/nds32-predicates.c: Likewise.
12863 2015-06-23 Richard Biener <rguenther@suse.de>
12865 PR tree-optimization/66636
12866 * tree-vect-stmts.c (vectorizable_store): Properly compute the
12867 def type for further defs for strided stores.
12869 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
12871 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
12872 conditional selects.
12873 (setcc_int<mode>, setcc_float<mode>): Reformat.
12875 2015-06-23 Marek Polacek <polacek@redhat.com>
12877 * match.pd ((x + y) - (x | y) -> x & y,
12878 (x + y) - (x & y) -> x | y): New patterns.
12880 2015-06-23 Ludovic Courtès <ludo@gnu.org>
12883 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
12884 '-dynamic-linker' within %{!shared: ...}.
12886 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
12889 * config/i386/predicates.md (addsub_vm_operator): New predicate.
12890 (addsub_vs_operator): Ditto.
12891 (addsub_vs_parallel): Ditto.
12892 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
12893 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
12894 Put minus RTX before plus and adjust vec_merge selector.
12895 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
12896 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
12897 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
12898 (addsub vec_merge splitters): New combiner splitters.
12899 (addsub vec_select/vec_concat splitters): Ditto.
12901 2015-06-23 Bin Cheng <bin.cheng@arm.com>
12903 PR tree-optimization/66449
12904 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
12905 POINTER_PLUS_EXPR for pointers.
12907 2015-06-23 Alan Modra <amodra@gmail.com>
12909 * rtlanal.c (commutative_operand_precedence): Correct comments.
12910 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
12911 declaration. Return an int. Distinguish REG,REG return from
12913 (struct simplify_plus_minus_op_data): Make local to function.
12914 (simplify_plus_minus): Don't set canonicalized if merely sorting
12915 registers. Avoid packing ops if nothing changes. White space fixes.
12917 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
12919 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
12920 -fdump-ada-spec is passed but not if -fsyntax-only is.
12922 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
12925 * lra-lives.c (process_bb_lives): Check insn copying the same
12926 reload pseudo and don't create a copy for it.
12928 2015-06-22 Tom de Vries <tom@codesourcery.com>
12930 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
12933 2015-06-22 Tom de Vries <tom@codesourcery.com>
12935 * builtins.def (DEF_GOMP_BUILTIN): Test
12936 'flag_tree_parallelize_loops > 1' instead of
12937 'flag_tree_parallelize_loops'. Test flag_cilkplus.
12939 2015-06-22 Tom de Vries <tom@codesourcery.com>
12941 * dominance.c (calculate_dominance_info): Verify dominators if
12944 2015-06-22 Marek Polacek <polacek@redhat.com>
12946 * match.pd ((x ^ y) ^ (x | y) -> x & y,
12947 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
12948 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
12949 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
12951 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
12954 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
12955 cost of embedded comparison.
12957 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12960 * config/rs6000/predicates.md (altivec_register_operand): Permit
12961 virtual stack registers.
12962 (vsx_register_operand): Likewise.
12963 (vfloat_operand): Likewise.
12964 (vint_operand): Likewise.
12965 (vlogical_operand): Likewise.
12967 2015-06-22 Richard Biener <rguenther@suse.de>
12969 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
12970 and single_scalar_iteration_cost members.
12971 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
12972 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
12973 (vect_get_single_scalar_iteration_cost): Remove.
12974 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
12975 Use LOOP_VINFO_SCALAR_ITERATION_COST.
12976 * tree-vect-loop.c (destroy_loop_vec_info): Free
12978 (vect_get_single_scalar_iteration_cost): Compute result into
12979 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
12980 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
12981 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
12982 (vect_estimate_min_profitable_iters): Use them.
12984 2015-06-22 Christian Bruel <christian.bruel@st.com>
12987 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
12988 (TARGET_INSERT_ATTRIBUTES): Define.
12989 (thumb_flipper): New var.
12990 * config/arm/arm.opt (-mflip-thumb): New switch.
12992 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12993 Martin Liska <mliska@suse.cz>
12996 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
12997 construction of arg_types.
12998 (sem_function::sem_function): Likewise.
12999 (sem_function::~sem_function): Remove destruction of arg_types.
13000 (sem_function::compatible_parm_types_p): New function.
13001 (sem_function::equals_wpa): Reorg matching of return values
13002 and parameter types.
13003 (sem_function::equals_private): Reorg mathcing of argument types.
13004 (sem_function::parse_tree_args): Remove.
13005 * ipa-icf.h (init_wpa): Do not call it.
13006 (parse_tree_args): Remove.
13007 (compatible_parm_types_p): Declare.
13008 (result_type): Remove.
13009 (arg_types): Remove.
13011 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
13014 * ipa-polymorphic-call.c
13015 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
13016 initializing alias oracle; fix formating; set base_alias_set if it
13019 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
13021 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
13022 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
13023 (find_inc): Likewise.
13024 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
13026 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
13027 * df-scan.c (df_swap_refs): Remove.
13028 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
13029 * dominance.c (link_roots): Use std::swap instead of manually swapping.
13030 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
13031 * fold-const.c (fold_relational_const): Likewise.
13032 * genattrtab.c (simplify_test_exp): Likewise.
13033 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
13034 gimple_simplify): Likewise.
13035 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
13036 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
13037 * ipa-devirt.c (add_type_duplicate): Likewise.
13038 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
13039 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
13040 * lra.c (lra_create_copy): Likewise.
13041 * lto-streamer-out.c (DFS::DFS): Likewise.
13042 * modulo-sched.c (get_sched_window): Likewise.
13043 * omega.c (omega_pretty_print_problem): Likewise.
13044 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
13045 * reload1.c (reloads_unique_chain_p): Likewise.
13046 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
13047 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
13049 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
13051 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
13052 predicate_mem_writes): Likewise.
13053 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
13054 * tree-predcom.c (combine_chains): Likewise.
13055 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
13056 refs_may_alias_p_1): Likewise.
13057 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
13058 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
13059 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
13060 number_of_iterations_cond): Likewise.
13061 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
13062 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
13063 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
13064 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
13065 * tree-vrp.c (extract_range_from_binary_expr_1,
13066 extract_range_from_unary_expr_1): Likewise.
13068 2015-06-20 Marek Polacek <polacek@redhat.com>
13070 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
13072 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
13075 * config/sh/sh.c (prepare_move_operands): Replace subreg
13076 index term with R0 for base and index addressing.
13078 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
13080 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
13082 (movsf_aarch64): Change condition from register_operand to
13083 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
13084 load1. Change type for alternative 7 to store1.
13085 (movdf_aarch64): Likewise.
13087 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
13089 * config/vax/vax.md: Adjust sign/zero extend patterns to
13090 handle SUBREGs in operands[1].
13092 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13094 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
13095 of manually swapping.
13096 (expand_vec_perm_interleave2): Likewise.
13098 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
13100 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
13101 reuse bounds created for abnormal ssa names.
13103 2015-06-19 Jakub Jelinek <jakub@redhat.com>
13105 * config/nvptx/nvptx.md (allocate_stack): Rename to...
13106 (allocate_stack_<mode>): ... this, and add :P on both
13107 match_operand and unspec.
13108 (allocate_stack): New expander.
13110 2015-06-19 Christian Bruel <christian.bruel@st.com>
13114 * config/arm/arm.c (arm_set_current_function): Handle
13115 explicit default options.
13117 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
13119 * config/i386/i386.md (*movsicc_noc_zext): New insn.
13120 (zero-extended cmove with mem peephole2): New pattern.
13121 (cmove with mem peephole2): Merge patterns.
13123 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
13125 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
13127 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
13129 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
13130 * config/mips/mips.md (*madd4<mode>): Ditto.
13131 (*nmadd3<mode>) Ditto.
13132 (*nmadd4<mode>_fastmath): Ditto.
13133 (*nmadd3<mode>_fastmath): Ditto.
13134 (*nmsub4<mode>): Ditto.
13135 (*nmsub3<mode>): Ditto.
13136 (*nmsub4<mode>_fastmath): Ditto.
13137 (*nmsub3<mode>_fastmath): Ditto.
13139 2015-06-18 Michael Matz <matz@suse.de>
13141 PR middle-end/66253
13142 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
13143 grouped strided stores.
13144 (vectorizable_load): Don't use the DR from first_stmt in
13145 the non-SLP grouped strided case.
13147 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
13150 * function.c (assign_bounds): Add arguments assign_regs,
13151 assign_special, assign_bt.
13152 (assign_parms): For vararg functions handle bounds in BT
13153 and special slots after incoming vararg bounds.
13155 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
13157 PR middle-end/66568
13158 * cfgexpand.c (expand_return): Handle missing bounds.
13159 (expand_gimple_stmt_1): Likewise.
13160 * tree-chkp.c (chkp_expand_zero_bounds): New.
13161 * tree-chkp.h (chkp_expand_zero_bounds): New.
13163 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
13165 PR middle-end/66567
13166 * ipa-chkp.c (chkp_maybe_create_clone): Require
13167 functions to be instrumentable.
13168 * tree-chkp.c (chkp_replace_function_pointer): Use
13169 chkp_instrumentable_p instead of attribute check.
13171 2015-06-18 Richard Biener <rguenther@suse.de>
13173 PR tree-optimization/66510
13174 * tree-vect-stmts.c (vectorizable_load): Properly compute the
13175 number of vector loads for SLP permuted loads.
13176 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
13177 check the stride for loop vectorization.
13178 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
13179 vectorization factor.
13180 (vect_analyze_group_access): If the group size is not a power
13181 of two require a epilogue loop.
13182 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
13183 compute and optimizing and alias test pruning after final
13184 vectorization factor computation.
13185 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
13187 (vect_transform_slp_perm_load): Properly compute the original
13188 number of vector load stmts.
13190 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
13192 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
13193 "unlikely character , in @var" warning.
13195 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
13197 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
13198 (ix86_function_arg_advance): Ditto.
13199 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
13201 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
13203 * function.h (struct rtl_data): Remove struct and accessor macros.
13204 * emit-rtl.h (struct rtl_data): Relocate to here.
13205 * Makefile.in (GTFILES): Add emit-rtl.h.
13206 * df-core.c: Include emit-rtl.h.
13207 * genattrtab.c: Likewise.
13208 * genconditions.c: Likewise.
13209 * genpreds.c: Likewise.
13210 * genrecog.c: Likewise.
13211 * regcprop.c: Likewise.
13212 * resource.c: Likewise.
13213 * sched-rgn.c: Likewise.
13214 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13215 * config/i386/winnt.c: Likewise.
13217 2015-06-17 Jakub Jelinek <jakub@redhat.com>
13219 PR middle-end/66429
13220 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
13221 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
13222 and has_force_vectorize_loops flags from cfun into
13224 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
13225 if simduid is non-NULL.
13226 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
13227 * passes.def (pass_simduid_cleanup): Add new pass after loop
13229 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
13230 indirection from htab argument's type.
13231 (shrink_simd_arrays): New function.
13232 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
13233 Don't call adjust_simduid_builtins if there are no loops.
13234 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
13235 (pass_simduid_cleanup::execute): New method.
13236 (make_pass_simduid_cleanup): New function.
13238 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
13240 * tree-core.h (tree_target_option): Make opts field a pointer to a
13241 cl_target_option instead of an instance of the struct.
13242 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
13244 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
13245 TARGET_OPTION_NODE.
13246 (copy_node_stat): Allocate and copy struct cl_target_option.
13248 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
13250 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
13251 Remove conditional exposure of prototypes.
13252 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
13253 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
13254 definitions in tree.h with functions.
13255 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
13257 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
13259 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
13261 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
13262 (*cmp<mode>_signed): ... this.
13263 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
13264 (*cmp<mode>_unsigned): ... this. Remove %b.
13266 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
13268 * coretypes.h: Include input.h and as-a.h.
13269 * rtl.h: Include input.h and as-a.h for generator files.
13270 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
13271 * vec.c: Don't include diagnostic-core.h.
13272 * alias.c: Do not include input.h, line-map.h or is-a.h.
13273 * asan.c: Likewise.
13274 * attribs.c: Likewise.
13275 * auto-inc-dec.c: Likewise.
13276 * auto-profile.c: Likewise.
13277 * bb-reorder.c: Likewise.
13278 * bt-load.c: Likewise.
13279 * builtins.c: Likewise.
13280 * caller-save.c: Likewise.
13281 * calls.c: Likewise.
13282 * ccmp.c: Likewise.
13284 * cfganal.c: Likewise.
13285 * cfgbuild.c: Likewise.
13286 * cfgcleanup.c: Likewise.
13287 * cfgexpand.c: Likewise.
13288 * cfghooks.c: Likewise.
13289 * cfgloop.c: Likewise.
13290 * cfgloop.h: Likewise.
13291 * cfgloopanal.c: Likewise.
13292 * cfgloopmanip.c: Likewise.
13293 * cfgrtl.c: Likewise.
13294 * cgraph.c: Likewise.
13295 * cgraphbuild.c: Likewise.
13296 * cgraphclones.c: Likewise.
13297 * cgraphunit.c: Likewise.
13298 * cilk-common.c: Likewise.
13299 * combine-stack-adj.c: Likewise.
13300 * combine.c: Likewise.
13301 * compare-elim.c: Likewise.
13302 * convert.c: Likewise.
13303 * coverage.c: Likewise.
13304 * cppbuiltin.c: Likewise.
13305 * cprop.c: Likewise.
13307 * cselib.c: Likewise.
13308 * data-streamer-in.c: Likewise.
13309 * data-streamer-out.c: Likewise.
13310 * data-streamer.c: Likewise.
13311 * dbxout.c: Likewise.
13314 * debug.c: Likewise.
13315 * df-core.c: Likewise.
13316 * df-problems.c: Likewise.
13317 * df-scan.c: Likewise.
13320 * diagnostic-core.h: Likewise.
13321 * diagnostic.c: Likewise.
13322 * dojump.c: Likewise.
13323 * dominance.c: Likewise.
13324 * domwalk.c: Likewise.
13325 * double-int.c: Likewise.
13327 * dumpfile.c: Likewise.
13328 * dumpfile.h: Likewise.
13329 * dwarf2asm.c: Likewise.
13330 * dwarf2cfi.c: Likewise.
13331 * dwarf2out.c: Likewise.
13332 * emit-rtl.c: Likewise.
13333 * et-forest.c: Likewise.
13334 * except.c: Likewise.
13335 * explow.c: Likewise.
13336 * expmed.c: Likewise.
13337 * expr.c: Likewise.
13338 * final.c: Likewise.
13339 * fixed-value.c: Likewise.
13340 * fold-const.c: Likewise.
13341 * function.c: Likewise.
13342 * fwprop.c: Likewise.
13343 * gcc-plugin.h: Likewise.
13344 * gcse.c: Likewise.
13345 * generic-match-head.c: Likewise.
13346 * ggc-page.c: Likewise.
13347 * gimple-builder.c: Likewise.
13348 * gimple-expr.c: Likewise.
13349 * gimple-fold.c: Likewise.
13350 * gimple-iterator.c: Likewise.
13351 * gimple-low.c: Likewise.
13352 * gimple-match-head.c: Likewise.
13353 * gimple-pretty-print.c: Likewise.
13354 * gimple-ssa-isolate-paths.c: Likewise.
13355 * gimple-ssa-strength-reduction.c: Likewise.
13356 * gimple-streamer-in.c: Likewise.
13357 * gimple-streamer-out.c: Likewise.
13358 * gimple-streamer.h: Likewise.
13359 * gimple-walk.c: Likewise.
13360 * gimple.c: Likewise.
13361 * gimplify-me.c: Likewise.
13362 * gimplify.c: Likewise.
13363 * godump.c: Likewise.
13364 * graph.c: Likewise.
13365 * graphite-blocking.c: Likewise.
13366 * graphite-dependences.c: Likewise.
13367 * graphite-interchange.c: Likewise.
13368 * graphite-isl-ast-to-gimple.c: Likewise.
13369 * graphite-optimize-isl.c: Likewise.
13370 * graphite-poly.c: Likewise.
13371 * graphite-scop-detection.c: Likewise.
13372 * graphite-sese-to-poly.c: Likewise.
13373 * graphite.c: Likewise.
13374 * haifa-sched.c: Likewise.
13375 * hw-doloop.c: Likewise.
13376 * ifcvt.c: Likewise.
13377 * init-regs.c: Likewise.
13378 * input.c: Likewise.
13379 * internal-fn.c: Likewise.
13380 * ipa-chkp.c: Likewise.
13381 * ipa-comdats.c: Likewise.
13382 * ipa-cp.c: Likewise.
13383 * ipa-devirt.c: Likewise.
13384 * ipa-icf-gimple.c: Likewise.
13385 * ipa-icf.c: Likewise.
13386 * ipa-inline-analysis.c: Likewise.
13387 * ipa-inline-transform.c: Likewise.
13388 * ipa-inline.c: Likewise.
13389 * ipa-polymorphic-call.c: Likewise.
13390 * ipa-profile.c: Likewise.
13391 * ipa-prop.c: Likewise.
13392 * ipa-pure-const.c: Likewise.
13393 * ipa-ref.c: Likewise.
13394 * ipa-reference.c: Likewise.
13395 * ipa-split.c: Likewise.
13396 * ipa-utils.c: Likewise.
13397 * ipa-visibility.c: Likewise.
13399 * ira-build.c: Likewise.
13400 * ira-color.c: Likewise.
13401 * ira-conflicts.c: Likewise.
13402 * ira-costs.c: Likewise.
13403 * ira-emit.c: Likewise.
13404 * ira-lives.c: Likewise.
13406 * jump.c: Likewise.
13407 * langhooks.c: Likewise.
13409 * loop-doloop.c: Likewise.
13410 * loop-init.c: Likewise.
13411 * loop-invariant.c: Likewise.
13412 * loop-iv.c: Likewise.
13413 * loop-unroll.c: Likewise.
13414 * lower-subreg.c: Likewise.
13415 * lra-assigns.c: Likewise.
13416 * lra-coalesce.c: Likewise.
13417 * lra-constraints.c: Likewise.
13418 * lra-eliminations.c: Likewise.
13419 * lra-lives.c: Likewise.
13420 * lra-remat.c: Likewise.
13421 * lra-spills.c: Likewise.
13423 * lto-cgraph.c: Likewise.
13424 * lto-compress.c: Likewise.
13425 * lto-opts.c: Likewise.
13426 * lto-section-in.c: Likewise.
13427 * lto-section-out.c: Likewise.
13428 * lto-streamer-in.c: Likewise.
13429 * lto-streamer-out.c: Likewise.
13430 * lto-streamer.c: Likewise.
13432 * mode-switching.c: Likewise.
13433 * modulo-sched.c: Likewise.
13434 * omega.c: Likewise.
13435 * omp-low.c: Likewise.
13436 * optabs.c: Likewise.
13437 * opts-global.c: Likewise.
13438 * opts.h: Likewise.
13439 * passes.c: Likewise.
13440 * plugin.c: Likewise.
13441 * postreload-gcse.c: Likewise.
13442 * postreload.c: Likewise.
13443 * predict.c: Likewise.
13444 * pretty-print.h: Likewise.
13445 * print-rtl.c: Likewise.
13446 * print-tree.c: Likewise.
13447 * profile.c: Likewise.
13448 * real.c: Likewise.
13449 * realmpfr.c: Likewise.
13450 * recog.c: Likewise.
13452 * reg-stack.c: Likewise.
13453 * regcprop.c: Likewise.
13454 * reginfo.c: Likewise.
13455 * regrename.c: Likewise.
13456 * regstat.c: Likewise.
13457 * reload.c: Likewise.
13458 * reload1.c: Likewise.
13459 * reorg.c: Likewise.
13460 * resource.c: Likewise.
13461 * rtl-chkp.c: Likewise.
13462 * rtl-error.c: Likewise.
13463 * rtlanal.c: Likewise.
13464 * rtlhooks.c: Likewise.
13465 * sanopt.c: Likewise.
13466 * sched-deps.c: Likewise.
13467 * sched-ebb.c: Likewise.
13468 * sched-rgn.c: Likewise.
13469 * sched-vis.c: Likewise.
13470 * sdbout.c: Likewise.
13471 * sel-sched-dump.c: Likewise.
13472 * sel-sched-ir.c: Likewise.
13473 * sel-sched.c: Likewise.
13474 * sese.c: Likewise.
13475 * shrink-wrap.c: Likewise.
13476 * simplify-rtx.c: Likewise.
13477 * stack-ptr-mod.c: Likewise.
13478 * statistics.c: Likewise.
13479 * stmt.c: Likewise.
13480 * stor-layout.c: Likewise.
13481 * store-motion.c: Likewise.
13482 * streamer-hooks.c: Likewise.
13483 * stringpool.c: Likewise.
13484 * symtab.c: Likewise.
13485 * target-globals.c: Likewise.
13486 * targhooks.c: Likewise.
13487 * toplev.c: Likewise.
13488 * tracer.c: Likewise.
13489 * trans-mem.c: Likewise.
13490 * tree-affine.c: Likewise.
13491 * tree-browser.c: Likewise.
13492 * tree-call-cdce.c: Likewise.
13493 * tree-cfg.c: Likewise.
13494 * tree-cfgcleanup.c: Likewise.
13495 * tree-chkp-opt.c: Likewise.
13496 * tree-chkp.c: Likewise.
13497 * tree-chrec.c: Likewise.
13498 * tree-complex.c: Likewise.
13499 * tree-data-ref.c: Likewise.
13500 * tree-dfa.c: Likewise.
13501 * tree-diagnostic.c: Likewise.
13502 * tree-dump.c: Likewise.
13503 * tree-eh.c: Likewise.
13504 * tree-emutls.c: Likewise.
13505 * tree-if-conv.c: Likewise.
13506 * tree-inline.c: Likewise.
13507 * tree-into-ssa.c: Likewise.
13508 * tree-iterator.c: Likewise.
13509 * tree-loop-distribution.c: Likewise.
13510 * tree-nested.c: Likewise.
13511 * tree-nrv.c: Likewise.
13512 * tree-object-size.c: Likewise.
13513 * tree-outof-ssa.c: Likewise.
13514 * tree-parloops.c: Likewise.
13515 * tree-phinodes.c: Likewise.
13516 * tree-predcom.c: Likewise.
13517 * tree-pretty-print.c: Likewise.
13518 * tree-profile.c: Likewise.
13519 * tree-scalar-evolution.c: Likewise.
13520 * tree-sra.c: Likewise.
13521 * tree-ssa-address.c: Likewise.
13522 * tree-ssa-alias.c: Likewise.
13523 * tree-ssa-ccp.c: Likewise.
13524 * tree-ssa-coalesce.c: Likewise.
13525 * tree-ssa-copy.c: Likewise.
13526 * tree-ssa-copyrename.c: Likewise.
13527 * tree-ssa-dce.c: Likewise.
13528 * tree-ssa-dom.c: Likewise.
13529 * tree-ssa-dse.c: Likewise.
13530 * tree-ssa-forwprop.c: Likewise.
13531 * tree-ssa-ifcombine.c: Likewise.
13532 * tree-ssa-live.c: Likewise.
13533 * tree-ssa-loop-ch.c: Likewise.
13534 * tree-ssa-loop-im.c: Likewise.
13535 * tree-ssa-loop-ivcanon.c: Likewise.
13536 * tree-ssa-loop-ivopts.c: Likewise.
13537 * tree-ssa-loop-manip.c: Likewise.
13538 * tree-ssa-loop-niter.c: Likewise.
13539 * tree-ssa-loop-prefetch.c: Likewise.
13540 * tree-ssa-loop-unswitch.c: Likewise.
13541 * tree-ssa-loop.c: Likewise.
13542 * tree-ssa-math-opts.c: Likewise.
13543 * tree-ssa-operands.c: Likewise.
13544 * tree-ssa-phiopt.c: Likewise.
13545 * tree-ssa-phiprop.c: Likewise.
13546 * tree-ssa-pre.c: Likewise.
13547 * tree-ssa-propagate.c: Likewise.
13548 * tree-ssa-reassoc.c: Likewise.
13549 * tree-ssa-sccvn.c: Likewise.
13550 * tree-ssa-scopedtables.c: Likewise.
13551 * tree-ssa-sink.c: Likewise.
13552 * tree-ssa-strlen.c: Likewise.
13553 * tree-ssa-structalias.c: Likewise.
13554 * tree-ssa-tail-merge.c: Likewise.
13555 * tree-ssa-ter.c: Likewise.
13556 * tree-ssa-threadedge.c: Likewise.
13557 * tree-ssa-threadupdate.c: Likewise.
13558 * tree-ssa-uncprop.c: Likewise.
13559 * tree-ssa-uninit.c: Likewise.
13560 * tree-ssa.c: Likewise.
13561 * tree-ssanames.c: Likewise.
13562 * tree-stdarg.c: Likewise.
13563 * tree-streamer-in.c: Likewise.
13564 * tree-streamer-out.c: Likewise.
13565 * tree-streamer.c: Likewise.
13566 * tree-switch-conversion.c: Likewise.
13567 * tree-tailcall.c: Likewise.
13568 * tree-vect-data-refs.c: Likewise.
13569 * tree-vect-generic.c: Likewise.
13570 * tree-vect-loop-manip.c: Likewise.
13571 * tree-vect-loop.c: Likewise.
13572 * tree-vect-patterns.c: Likewise.
13573 * tree-vect-slp.c: Likewise.
13574 * tree-vect-stmts.c: Likewise.
13575 * tree-vectorizer.c: Likewise.
13576 * tree-vrp.c: Likewise.
13577 * tree.c: Likewise.
13578 * tsan.c: Likewise.
13579 * ubsan.c: Likewise.
13580 * valtrack.c: Likewise.
13581 * value-prof.c: Likewise.
13582 * var-tracking.c: Likewise.
13583 * varasm.c: Likewise.
13584 * varpool.c: Likewise.
13585 * vmsdbgout.c: Likewise.
13586 * vtable-verify.c: Likewise.
13588 * wide-int.cc: Likewise.
13589 * xcoffout.c: Likewise.
13590 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
13591 * common/common-targhooks.c: Likewise.
13592 * config/aarch64/aarch64-builtins.c: Likewise.
13593 * config/aarch64/aarch64.c: Likewise.
13594 * config/alpha/alpha.c: Likewise.
13595 * config/arc/arc.c: Likewise.
13596 * config/arm/aarch-common.c: Likewise.
13597 * config/arm/arm-builtins.c: Likewise.
13598 * config/arm/arm-c.c: Likewise.
13599 * config/arm/arm.c: Likewise.
13600 * config/avr/avr-c.c: Likewise.
13601 * config/avr/avr-log.c: Likewise.
13602 * config/avr/avr.c: Likewise.
13603 * config/bfin/bfin.c: Likewise.
13604 * config/c6x/c6x.c: Likewise.
13605 * config/cr16/cr16.c: Likewise.
13606 * config/cris/cris.c: Likewise.
13607 * config/darwin-c.c: Likewise.
13608 * config/darwin.c: Likewise.
13609 * config/default-c.c: Likewise.
13610 * config/epiphany/epiphany.c: Likewise.
13611 * config/epiphany/mode-switch-use.c: Likewise.
13612 * config/epiphany/resolve-sw-modes.c: Likewise.
13613 * config/fr30/fr30.c: Likewise.
13614 * config/frv/frv.c: Likewise.
13615 * config/ft32/ft32.c: Likewise.
13616 * config/glibc-c.c: Likewise.
13617 * config/h8300/h8300.c: Likewise.
13618 * config/i386/i386-c.c: Likewise.
13619 * config/i386/i386.c: Likewise.
13620 * config/i386/msformat-c.c: Likewise.
13621 * config/i386/winnt-cxx.c: Likewise.
13622 * config/i386/winnt-stubs.c: Likewise.
13623 * config/i386/winnt.c: Likewise.
13624 * config/ia64/ia64-c.c: Likewise.
13625 * config/ia64/ia64.c: Likewise.
13626 * config/iq2000/iq2000.c: Likewise.
13627 * config/lm32/lm32.c: Likewise.
13628 * config/m32c/m32c-pragma.c: Likewise.
13629 * config/m32c/m32c.c: Likewise.
13630 * config/m32r/m32r.c: Likewise.
13631 * config/m68k/m68k.c: Likewise.
13632 * config/mcore/mcore.c: Likewise.
13633 * config/mep/mep-pragma.c: Likewise.
13634 * config/mep/mep.c: Likewise.
13635 * config/microblaze/microblaze-c.c: Likewise.
13636 * config/microblaze/microblaze.c: Likewise.
13637 * config/mips/mips.c: Likewise.
13638 * config/mmix/mmix.c: Likewise.
13639 * config/mn10300/mn10300.c: Likewise.
13640 * config/moxie/moxie.c: Likewise.
13641 * config/msp430/msp430-c.c: Likewise.
13642 * config/msp430/msp430.c: Likewise.
13643 * config/nds32/nds32-cost.c: Likewise.
13644 * config/nds32/nds32-fp-as-gp.c: Likewise.
13645 * config/nds32/nds32-intrinsic.c: Likewise.
13646 * config/nds32/nds32-isr.c: Likewise.
13647 * config/nds32/nds32-md-auxiliary.c: Likewise.
13648 * config/nds32/nds32-memory-manipulation.c: Likewise.
13649 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13650 * config/nds32/nds32-predicates.c: Likewise.
13651 * config/nds32/nds32.c: Likewise.
13652 * config/nios2/nios2.c: Likewise.
13653 * config/nvptx/nvptx.c: Likewise.
13654 * config/pa/pa.c: Likewise.
13655 * config/pdp11/pdp11.c: Likewise.
13656 * config/rl78/rl78-c.c: Likewise.
13657 * config/rl78/rl78.c: Likewise.
13658 * config/rs6000/rs6000-c.c: Likewise.
13659 * config/rs6000/rs6000.c: Likewise.
13660 * config/rx/rx.c: Likewise.
13661 * config/s390/s390-c.c: Likewise.
13662 * config/s390/s390.c: Likewise.
13663 * config/sh/sh-c.c: Likewise.
13664 * config/sh/sh-mem.cc: Likewise.
13665 * config/sh/sh.c: Likewise.
13666 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13667 * config/sh/sh_treg_combine.cc: Likewise.
13668 * config/sol2-c.c: Likewise.
13669 * config/sol2-cxx.c: Likewise.
13670 * config/sol2-stubs.c: Likewise.
13671 * config/sol2.c: Likewise.
13672 * config/sparc/sparc-c.c: Likewise.
13673 * config/sparc/sparc.c: Likewise.
13674 * config/spu/spu-c.c: Likewise.
13675 * config/spu/spu.c: Likewise.
13676 * config/stormy16/stormy16.c: Likewise.
13677 * config/tilegx/mul-tables.c: Likewise.
13678 * config/tilegx/tilegx-c.c: Likewise.
13679 * config/tilegx/tilegx.c: Likewise.
13680 * config/tilepro/mul-tables.c: Likewise.
13681 * config/tilepro/tilepro-c.c: Likewise.
13682 * config/tilepro/tilepro.c: Likewise.
13683 * config/v850/v850-c.c: Likewise.
13684 * config/v850/v850.c: Likewise.
13685 * config/vax/vax.c: Likewise.
13686 * config/visium/visium.c: Likewise.
13687 * config/vms/vms-c.c: Likewise.
13688 * config/vms/vms.c: Likewise.
13689 * config/vxworks.c: Likewise.
13690 * config/winnt-c.c: Likewise.
13691 * config/xtensa/xtensa.c: Likewise.
13693 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
13695 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
13697 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
13699 2015-06-17 Richard Biener <rguenther@suse.de>
13701 PR tree-optimization/66251
13702 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
13703 stmts for SLP strided stores.
13706 2015-05-22 Richard Biener <rguenther@suse.de>
13708 PR tree-optimization/66251
13709 * tree-vect-stmts.c (vectorizable_conversion): Properly
13710 set STMT_VINFO_VEC_STMT even for the SLP case.
13712 2015-05-26 Michael Matz <matz@suse.de>
13714 PR middle-end/66251
13715 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
13716 STMT_VINFO_VEC_STMT, also with SLP.
13718 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
13721 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
13722 (*avx_addsubv4df3_1s): Ditto.
13723 (*sse3_addsubv2df3_1): Ditto.
13724 (*sse3_addsubv2df3_1s): Ditto.
13725 (*avx_addsubv8sf3_1): Ditto.
13726 (*avx_addsubv8sf3_1s): Ditto.
13727 (*sse3_addsubv4sf3_1): Ditto.
13728 (*sse3_addsubv4sf3_1s): Ditto.
13730 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
13732 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
13733 (SYSROOT_SUFFIX_SPEC): Update.
13734 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
13735 (STARTFILE_PREFIX_SPEC): Update.
13736 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
13737 (MULTILIB_REQUIRED): New.
13738 (MULTILIB_OSDIRNAMES): New.
13739 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
13740 (MULTILIB_REQUIRED): New.
13741 (MULTILIB_OSDIRNAMES): New.
13743 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
13745 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
13746 * config/aarch64/aarch64-options-extensions.def: Update "fP",
13747 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
13748 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
13749 (AARCH64_FL_PAN): New.
13750 (AARCH64_FL_LOR): New.
13751 (AARCH64_FL_RDMA): New.
13752 (AARCH64_FL_FOR_ARCH8_1): New.
13753 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
13754 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
13756 2015-06-16 Martin Liska <mliska@suse.cz>
13758 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
13759 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
13762 2015-06-16 Richard Biener <rguenther@suse.de>
13764 * tree-vect-stmts.c (vectorizable_store): Adjust.
13765 (vectorizable_load): Likewise.
13766 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13768 (vect_create_data_ref_ptr): Likewise.
13769 (bump_vector_ptr): Adjust.
13771 2015-06-16 Richard Biener <rguenther@suse.de>
13773 * tree-vect-stmts.c (vectorizable_load): Properly start loads
13774 with the first element if this is grouped loads.
13776 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
13778 * config/arm/arm-protos.h (struct tune_params): Rename
13779 log_op_non_sc to log_op_non_short_circuit, and rename enum
13780 values to expand SC to SHORT_CIRCUIT.
13781 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
13782 to LOG_OP_NON_SHORT_CIRCUIT.
13783 (arm_fastmul_tune):Likewise
13784 (arm_strongarm_tune): Likewise.
13785 (arm_xscale_tune): Likewise.
13786 (arm_9e_tune): Likewise.
13787 (arm_marvell_pj4_tune): Likewise.
13788 (arm_v6t2_tune): Likewise.
13789 (arm_cortex_tune): Likewise.
13790 (arm_cortex_a8_tune): Likewise.
13791 (arm_cortex_a7_tune): Likewise.
13792 (arm_cortex_a15_tune): Likewise.
13793 (arm_cortex_a53_tune): Likewise.
13794 (arm_cortex_a57_tune): Likewise.
13795 (arm_xgene1_tune): Likewise.
13796 (arm_cortex_a5_tune): Likewise.
13797 (arm_cortex_a9_tune): Likewise.
13798 (arm_cortex_a12_tune): Likewise.
13799 (arm_v7m_tune): Likewise.
13800 (arm_cortex_m7_tune): Likewise.
13801 (arm_v6m_tune): Likewise.
13802 (arm_fa726te_tune): Likewise.
13804 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
13806 * altivec.md: Delete UNSPEC_VMLADDUHM.
13807 (mulv4si3_p8): New pattern.
13808 (mulv4si3): Use it for POWER8.
13809 (mulv8hi3): Use vmladduhm with zero addend.
13810 (altivec_vmladduhm): Descriptive RTL.
13812 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
13814 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
13815 to use neon_move instead of mov_imm.
13816 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
13817 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
13819 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
13820 aarch64_float_const_zero_rtx_p check before TFmode check.
13821 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
13823 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
13824 code and attributes to match. Change condition from register_operand
13825 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
13826 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
13829 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
13832 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
13833 there is no parent.
13835 2015-06-14 Shiva Chen <shiva0217@gmail.com>
13837 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
13838 HOST_WIDE_INT parameter.
13840 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
13843 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
13844 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
13846 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
13848 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
13850 * rtl.h (classify_insn): Declare.
13851 * emit-rtl.c (classify_insn): Move to...
13852 * rtl.c: ...here and add generator support.
13853 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
13854 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
13855 * genemit.c (gen_emit_seq): New function.
13856 (gen_expand, gen_split): Use it.
13858 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
13860 * tree.c (make_vector_stat): Fix comment to state that the
13861 function returns a VECTOR_CST.
13863 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
13865 * gensupport.h (add_implicit_parallel): Declare.
13866 * genrecog.c (add_implicit_parallel): Move to...
13867 * gensupport.c (add_implicit_parallel): ...here.
13868 (process_one_cond_exec): Use it.
13869 * genemit.c (gen_insn): Likewise.
13871 2015-06-13 Iain Sandoe <iain@codesourcery.com>
13874 * passes.c (rest_of_decl_compilation): Do not register globals for
13875 early debug if they are declared in built-ins.
13877 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
13879 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
13881 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13883 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
13885 (noce_try_cmove_arith): Likewise.
13886 (noce_get_alt_condition): Likewise.
13888 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13890 * common/config/i386/i386-common.c
13891 (OPTION_MASK_ISA_MWAITX_SET): New.
13892 (ix86_handle_option): Handle mwaitx.
13893 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
13894 (x86_64-*-*): Likewise.
13895 * config/i386/mwaitxintrin.h: New header.
13896 * config/i386/cpuid.h (bit_MWAITX): Define.
13897 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13899 * config/i386/i386.opt (mwaitx): New.
13900 * config/i386/i386-builtin-types.def
13901 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
13902 * config/i386/i386-c.c: Define __MWAITX__ if needed.
13903 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
13905 (ix86_option_override_internal): Handle new option.
13906 (processor_alias_table): Added PTA_MWAITX.
13907 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
13908 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
13909 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
13910 IX86_BUILTIN_MONITORX built-ins.
13911 * config/i386/i386.h (TARGET_MWAITX): New.
13912 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
13914 (mwaitx): New pattern.
13915 (monitorx_<mode>): New pattern.
13916 * config/i386/x86intrin.h: Include mwaitxintrin.h.
13917 * doc/extend.texi: Document monitorx and mwaitx builtins.
13918 * doc/invoke.texi: Document -mmwaitx option.
13920 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
13922 * emit-rtl.c (need_atomic_barrier_p): Mask model with
13923 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
13925 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13927 * dbxout.c (xcoff_debug_hooks): Provide a function for
13928 register_main_translation_unit hook.
13930 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13932 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
13933 variants cases from switch.
13934 (rs6000_post_atomic_barrier): Same.
13935 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
13936 (rs6000_expand_atomic_exchange): Same.
13937 (rs6000_expand_atomic_op): Same.
13938 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
13939 SYNC variants cases from switch.
13940 (atomic_load): Same.
13941 (atomic_store): Same.
13943 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
13945 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
13946 CONST_INT for goto.
13948 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
13951 * dwarf2out.c (check_die): Check for common duplicate attributes.
13952 (add_location_or_const_value_attribute): Do not add duplicate
13954 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
13956 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
13957 (gen_type_die_with_usage): Call check_die.
13958 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
13960 2015-06-11 Jason Merrill <jason@redhat.com>
13962 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
13965 2015-06-11 Marek Polacek <polacek@redhat.com>
13967 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
13969 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
13972 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
13973 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
13974 (*addx_extend_sp32): Fix pasto.
13975 (*subx_extend): Rename into...
13976 (*subx_extend_sp32): ...this.
13977 (*adddi3_extend_sp32): Add earlyclobber.
13978 (*subdi3_insn_sp32): Likewise.
13979 (*subdi3_extend_sp32): Likewise.
13980 (*and_not_di_sp32): Likewise.
13981 (*or_not_di_sp32): Likewise.
13982 (*xor_not_di_sp32): Likewise.
13983 (*negdi2_sp32): Likewise.
13984 (*one_cmpldi2_sp32): Likewise.
13986 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
13988 * debug.h (struct gcc_debug_hooks): Add a
13989 register_main_translation_unit hook.
13990 * debug.c (do_nothing_debug_hooks): Provide a function for this
13992 * dbxout.c (dbx_debug_hooks): Likewise.
13993 * sdbout.c (sdb_debug_hooks): Likewise.
13994 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13995 * dwarf2out.c (main_translation_unit): New global variable.
13996 (dwarf2out_register_main_translation_unit): New function
13997 implementing the new hook.
13998 (dwarf2_debug_hooks): Assign
13999 dwarf2out_register_main_translation_unit to this new hook.
14000 (dwarf2out_init): Associate any main translation unit to
14003 2015-06-11 Marek Polacek <polacek@redhat.com>
14005 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
14007 2015-06-11 Marek Polacek <polacek@redhat.com>
14009 * match.pd: Use single_use throughout.
14011 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14013 * config/arm/arm.c (arm_option_params_internal): When optimising
14014 for speed set max_insns_skipped when arm_restrict_it.
14016 2015-06-11 Christian Bruel <christian.bruel@st.com>
14019 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
14021 (arm_cpu_builtins): New function.
14022 (arm_pragma_target_parse): Call arm_cpu_builtins.
14023 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
14024 (arm_register_target_pragmas): Likewise.
14025 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
14026 Call arm_register_target_pragmas.
14027 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
14028 (arm_pragma_target_parse): Likewise.
14030 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
14032 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
14033 of the second operand.
14035 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
14038 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
14039 to prepare mask operand for AVX512 modes.
14041 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
14044 * doc/md.texi (Machine Constraints): Document that on the PowerPC
14045 if you use a constraint that targets a VSX register, you must use
14046 %x<n> in the template.
14048 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
14050 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
14051 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
14052 (define_insn "trap"): New definition.
14054 2015-06-10 Richard Biener <rguenther@suse.de>
14056 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
14058 (vect_supported_load_permutation_p): ... here. Handle
14059 supportable permutations in reductions.
14060 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
14061 for vectorizing strided group loads.
14063 2015-06-10 Jakub Jelinek <jakub@redhat.com>
14066 * config/i386/i386.c (ix86_split_long_move): For collisions
14067 involving direct tls segment refs, move the UNSPEC_TP possibly
14068 wrapped in ZERO_EXTEND out of the address for lea, to each of
14071 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14073 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
14074 dmb sy. Adjust tabs.
14076 2015-06-10 Tom de Vries <tom@codesourcery.com>
14078 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
14080 2015-06-10 Martin Liska <mliska@suse.cz>
14083 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
14084 all enum values in mem_alloc_origin.
14085 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
14087 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
14088 * bitmap.c (bitmap_register): Likewise.
14089 (dump_bitmap_statistics): Likewise.
14090 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
14091 (ggc_record_overhead): Likewise.
14092 * hash-map.h: Likewise.
14093 * hash-set.h: Likewise.
14094 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
14095 * hash-table.h: Likewise.
14096 * vec.c (vec_prefix::register_overhead): Likewise.
14097 (vec_prefix::release_overhead): Likewise.
14098 (dump_vec_loc_statistics): Likewise.
14100 2015-06-09 Christian Bruel <christian.bruel@st.com>
14103 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
14104 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
14105 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
14106 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
14107 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
14108 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
14109 (arm_valid_target_attribute_p): Likewise.
14110 (arm_set_current_function, arm_can_inline_p): Likewise.
14111 (arm_valid_target_attribute_rec): Likewise.
14112 (arm_previous_fndecl): New variable.
14113 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
14114 (TARGET_CAN_INLINE_P): Define.
14115 (arm_asm_trampoline_template): Emit mode.
14116 (arm_file_start): Don't set unified syntax.
14117 (arm_declare_function_name): Set unified syntax and mode.
14118 (arm_option_override): Init target_option_default_node.
14119 and target_option_current_node.
14120 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
14121 (*call_symbol): Likewise.
14122 * doc/extend.texi: Document ARM/Thumb target attribute.
14123 * doc/invoke.texi: Likewise.
14125 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
14128 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
14129 PR rtl-optimization/64164
14130 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14131 * tree-ssa-copyrename.c: Removed.
14132 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14133 -ftree-coalesce-vars.
14134 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14135 * common.opt (ftree-copyrename): Ignore.
14136 (ftree-coalesce-inlined-vars): Likewise.
14137 * doc/invoke.texi: Remove the ignored options above.
14138 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14139 * tree-ssa-coalesce.h: ... here.
14140 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14141 headers required by it.
14142 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14143 across variables when flag_tree_coalesce_vars. Check register
14144 use and promoted modes to allow coalescing. Moved to
14145 tree-ssa-coalesce.c.
14146 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14147 with its member functions to tree-ssa-coalesce.c.
14148 (var_map_base_init): Likewise. Renamed to
14149 compute_samebase_partition_bases.
14150 (partition_view_normal): Drop want_bases parameter.
14151 (partition_view_bitmap): Likewise.
14152 * tree-ssa-live.h: Adjust declarations.
14153 * tree-ssa-coalesce.c: Include explow.h.
14154 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14155 default defs at the entry point.
14156 (dump_part_var_map): New.
14157 (compute_optimized_partition_bases): New, called by...
14158 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14159 of compute_samebase_partition_bases. Adjust.
14160 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14161 * cfgexpand.c (leader_merge): New.
14162 (get_rtl_for_parm_ssa_default_def): New.
14163 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14164 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14165 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14166 redundant MEM attr setting.
14167 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14169 (expand_one_stack_var): ... this. New wrapper to check and
14170 skip already expanded SSA partitions.
14171 (record_alignment_for_reg_var): New, factored out of...
14172 (expand_one_var): ... this.
14173 (expand_one_ssa_partition): New.
14174 (adjust_one_expanded_partition_var): New.
14175 (expand_one_register_var): Check and skip already expanded SSA
14177 (expand_used_vars): Don't create DECLs for anonymous SSA
14178 names. Expand all SSA partitions, then adjust all SSA names.
14179 (pass::execute): Replace the loops that set
14180 SA.partition_to_pseudo from partition leaders and cleared
14181 DECL_RTL for multi-location variables, and that which used to
14182 rename vars and set attrs, with one that clears DECL_RTL and
14183 checks that PARMs and RESULTs default_defs match DECL_RTL.
14184 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14185 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14186 * explow.c (promote_ssa_mode): New.
14187 * explow.h (promote_ssa_mode): Declare.
14188 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14189 * function.c: Include cfgexpand.h.
14190 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14191 (use_register_for_parm_decl): Wrapper for the above to
14192 special-case the result_ptr.
14193 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14194 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14195 multiple locations.
14196 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14197 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14198 (assign_parm_setup_block): Prefer SSA-assigned location.
14199 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
14200 if stack_parm is NULL.
14201 (assign_parm_setup_stack): Prefer SSA-assigned location.
14202 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14203 rtl before testing for pointer bounds. Special-case result_ptr.
14204 (expand_function_start): Maybe reset DECL_RTL of result.
14205 Prefer SSA-assigned location for result and static chain.
14206 Factor out DECL_RESULT and SET_DECL_RTL.
14207 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14208 anonymous SSA names. Use promote_ssa_mode.
14209 (get_temp_reg): Likewise.
14210 (remove_ssa_form): Adjust.
14211 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14212 and get its reg_usage for reg invalidation.
14213 (compute_bb_dataflow): Pass it insn.
14214 (emit_notes_in_bb): Likewise.
14215 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
14216 fail assert on conversion between unsigned types.
14218 2015-06-09 Tom de Vries <tom@codesourcery.com>
14220 PR tree-optimization/65460
14221 * omp-low.c (expand_omp_target): Set parallelized_function on
14222 cgraph_node for child_fn.
14224 2015-06-09 Tom de Vries <tom@codesourcery.com>
14226 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
14227 parallelized_function before add_new_function.
14229 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
14231 * gcc-plugin.h: Move decls to plugin.h and include it.
14232 * plugin.h: Relocate decls from gcc-plugin.h
14233 * ggc-page.c: Include required header files.
14234 * passes.c: Likewise.
14235 * cgraphunit.c: Likewise.
14237 2015-06-09 Tom de Vries <tom@codesourcery.com>
14239 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
14241 2015-06-09 Jason Merrill <jason@redhat.com>
14244 * toplev.c (check_global_declaration): Don't warn about a clone.
14246 2015-06-09 Marek Polacek <polacek@redhat.com>
14248 PR tree-optimization/66299
14249 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
14250 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
14253 2015-06-09 Richard Biener <rguenther@suse.de>
14255 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
14256 (vect_analyze_slp_instance): Instead do not falsely drop
14259 2015-06-09 Richard Biener <rguenther@suse.de>
14261 PR middle-end/66423
14262 * match.pd: Handle A % (unsigned)(1 << B).
14264 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
14266 * varasm.c (output_object_block_htab): Remove.
14267 (output_object_block_compare): New.
14268 (output_object_blocks): Sort named object_blocks before outputting
14271 2015-06-09 Richard Biener <rguenther@suse.de>
14273 PR tree-optimization/66419
14274 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
14275 consider GROUP_GAP when detecting a perfect subchain.
14277 2015-06-09 Nick Clifton <nickc@redhat.com>
14279 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
14280 place read only data in the .frodata section.
14282 2015-06-09 Shiva Chen <shiva0217@gmail.com>
14284 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
14285 (atomic_store<mode>): Likewise.
14287 2015-06-09 Richard Biener <rguenther@suse.de>
14289 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
14291 2015-06-09 Richard Biener <rguenther@suse.de>
14293 PR middle-end/66413
14294 * tree-inline.c (insert_init_debug_bind): Unshare value.
14296 2015-06-09 Richard Biener <rguenther@suse.de>
14298 PR tree-optimization/66396
14299 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
14300 Rename virtual operands.
14302 2015-06-09 Tom de Vries <tom@codesourcery.com>
14304 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
14305 always return false.
14307 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
14309 PR rtl-optimization/64164
14310 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14311 * tree-ssa-copyrename.c: Removed.
14312 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14313 -ftree-coalesce-vars.
14314 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14315 * common.opt (ftree-copyrename): Ignore.
14316 (ftree-coalesce-inlined-vars): Likewise.
14317 * doc/invoke.texi: Remove the ignored options above.
14318 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14319 * tree-ssa-coalesce.h: ... here.
14320 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14321 headers required by it.
14322 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14323 across variables when flag_tree_coalesce_vars. Check register
14324 use and promoted modes to allow coalescing. Moved to
14325 tree-ssa-coalesce.c.
14326 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14327 with its member functions to tree-ssa-coalesce.c.
14328 (var_map_base_init): Likewise. Renamed to
14329 compute_samebase_partition_bases.
14330 (partition_view_normal): Drop want_bases parameter.
14331 (partition_view_bitmap): Likewise.
14332 * tree-ssa-live.h: Adjust declarations.
14333 * tree-ssa-coalesce.c: Include explow.h.
14334 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14335 default defs at the entry point.
14336 (dump_part_var_map): New.
14337 (compute_optimized_partition_bases): New, called by...
14338 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14339 of compute_samebase_partition_bases. Adjust.
14340 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14341 * cfgexpand.c (leader_merge): New.
14342 (get_rtl_for_parm_ssa_default_def): New.
14343 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14344 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14345 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14346 redundant MEM attr setting.
14347 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14349 (expand_one_stack_var): ... this. New wrapper to check and
14350 skip already expanded SSA partitions.
14351 (record_alignment_for_reg_var): New, factored out of...
14352 (expand_one_var): ... this.
14353 (expand_one_ssa_partition): New.
14354 (adjust_one_expanded_partition_var): New.
14355 (expand_one_register_var): Check and skip already expanded SSA
14357 (expand_used_vars): Don't create DECLs for anonymous SSA
14358 names. Expand all SSA partitions, then adjust all SSA names.
14359 (pass::execute): Replace the loops that set
14360 SA.partition_to_pseudo from partition leaders and cleared
14361 DECL_RTL for multi-location variables, and that which used to
14362 rename vars and set attrs, with one that clears DECL_RTL and
14363 checks that PARMs and RESULTs default_defs match DECL_RTL.
14364 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14365 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14366 * explow.c (promote_ssa_mode): New.
14367 * explow.h (promote_ssa_mode): Declare.
14368 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14369 * function.c: Include cfgexpand.h.
14370 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14371 (use_register_for_parm_decl): Wrapper for the above to
14372 special-case the result_ptr.
14373 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14374 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14375 multiple locations.
14376 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14377 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14378 (assign_parm_setup_block): Prefer SSA-assigned location.
14379 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
14380 if stack_parm is NULL.
14381 (assign_parm_setup_stack): Prefer SSA-assigned location.
14382 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14383 rtl before testing for pointer bounds. Special-case result_ptr.
14384 (expand_function_start): Maybe reset DECL_RTL of result.
14385 Prefer SSA-assigned location for result and static chain.
14386 Factor out DECL_RESULT and SET_DECL_RTL.
14387 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14388 anonymous SSA names. Use promote_ssa_mode.
14389 (get_temp_reg): Likewise.
14390 (remove_ssa_form): Adjust.
14391 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14392 and get its reg_usage for reg invalidation.
14393 (compute_bb_dataflow): Pass it insn.
14394 (emit_notes_in_bb): Likewise.
14395 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
14396 fail assert on conversion between unsigned types.
14398 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
14401 * tree-inline.c (reset_debug_binding): New.
14402 (reset_debug_bindings): Likewise.
14403 (expand_call_inline): Call it.
14405 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14407 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
14410 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14412 * lto-streamer-out.c (lto_output_location): Stream
14413 reserved locations correctly.
14414 * lto-streamer-in.c (lto_output_location): Likewise.
14416 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
14418 * coretypes.h: Include hash-table.h and hash-set.h for host files.
14419 * ggc.h: Don't include statistics.h>
14420 * hash-map.h: Remove all includes.
14421 * hash-set.h: Likewise.
14422 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
14423 the include list. Remove <new>.
14424 * inchash.h: Remove all includes.
14425 * mem-stats.h: Likewise.
14426 * vec.h: No special processing for generators or ggc.
14427 * alias.c : Adjust include files.
14428 * alloc-pool.c : Likewise.
14429 * alloc-pool.h : Likewise.
14430 * asan.c : Likewise.
14431 * attribs.c : Likewise.
14432 * auto-inc-dec.c : Likewise.
14433 * auto-profile.c : Likewise.
14434 * bb-reorder.c : Likewise.
14435 * bitmap.c : Likewise.
14436 * bitmap.h : Likewise.
14437 * bt-load.c : Likewise.
14438 * builtins.c : Likewise.
14439 * caller-save.c : Likewise.
14440 * calls.c : Likewise.
14441 * ccmp.c : Likewise.
14442 * cfg.c : Likewise.
14443 * cfganal.c : Likewise.
14444 * cfgbuild.c : Likewise.
14445 * cfgcleanup.c : Likewise.
14446 * cfgexpand.c : Likewise.
14447 * cfghooks.c : Likewise.
14448 * cfgloop.c : Likewise.
14449 * cfgloop.h : Likewise.
14450 * cfgloopanal.c : Likewise.
14451 * cfgloopmanip.c : Likewise.
14452 * cfgrtl.c : Likewise.
14453 * cgraph.c : Likewise.
14454 * cgraphbuild.c : Likewise.
14455 * cgraphclones.c : Likewise.
14456 * cgraphunit.c : Likewise.
14457 * cilk-common.c : Likewise.
14458 * combine-stack-adj.c : Likewise.
14459 * combine.c : Likewise.
14460 * compare-elim.c : Likewise.
14461 * context.c : Likewise.
14462 * convert.c : Likewise.
14463 * coverage.c : Likewise.
14464 * cppbuiltin.c : Likewise.
14465 * cprop.c : Likewise.
14466 * cse.c : Likewise.
14467 * cselib.c : Likewise.
14468 * data-streamer-in.c : Likewise.
14469 * data-streamer-out.c : Likewise.
14470 * data-streamer.c : Likewise.
14471 * data-streamer.h : Likewise.
14472 * dbxout.c : Likewise.
14473 * dce.c : Likewise.
14474 * ddg.c : Likewise.
14475 * debug.c : Likewise.
14476 * df-core.c : Likewise.
14477 * df-problems.c : Likewise.
14478 * df-scan.c : Likewise.
14480 * dfp.c : Likewise.
14481 * dojump.c : Likewise.
14482 * dominance.c : Likewise.
14483 * domwalk.c : Likewise.
14484 * double-int.c : Likewise.
14485 * dse.c : Likewise.
14486 * dumpfile.c : Likewise.
14487 * dwarf2asm.c : Likewise.
14488 * dwarf2cfi.c : Likewise.
14489 * dwarf2out.c : Likewise.
14490 * emit-rtl.c : Likewise.
14491 * et-forest.c : Likewise.
14492 * except.c : Likewise.
14493 * except.h : Likewise.
14494 * explow.c : Likewise.
14495 * expmed.c : Likewise.
14496 * expr.c : Likewise.
14497 * final.c : Likewise.
14498 * fixed-value.c : Likewise.
14499 * fold-const.c : Likewise.
14500 * function.c : Likewise.
14501 * fwprop.c : Likewise.
14502 * gcc-plugin.h : Likewise.
14503 * gcc.c : Likewise.
14504 * gcse-common.c : Likewise.
14505 * gcse.c : Likewise.
14506 * genattrtab.c : Likewise.
14507 * genautomata.c : Likewise.
14508 * genconditions.c : Likewise.
14509 * genemit.c : Likewise.
14510 * generic-match-head.c : Likewise.
14511 * genextract.c : Likewise.
14512 * gengtype-state.c : Likewise.
14513 * gengtype.c : Likewise.
14514 * genhooks.c : Likewise.
14515 * genmatch.c : Likewise.
14516 * genmodes.c : Likewise.
14517 * genrecog.c : Likewise.
14518 * gensupport.c : Likewise.
14519 * ggc-common.c : Likewise.
14520 * ggc-internal.h : Likewise.
14521 * ggc-none.c : Likewise.
14522 * ggc-page.c : Likewise.
14523 * gimple-builder.c : Likewise.
14524 * gimple-expr.c : Likewise.
14525 * gimple-fold.c : Likewise.
14526 * gimple-iterator.c : Likewise.
14527 * gimple-low.c : Likewise.
14528 * gimple-match-head.c : Likewise.
14529 * gimple-pretty-print.c : Likewise.
14530 * gimple-ssa-isolate-paths.c : Likewise.
14531 * gimple-ssa-strength-reduction.c : Likewise.
14532 * gimple-ssa.h : Likewise.
14533 * gimple-streamer-in.c : Likewise.
14534 * gimple-streamer-out.c : Likewise.
14535 * gimple-streamer.h : Likewise.
14536 * gimple-walk.c : Likewise.
14537 * gimple.c : Likewise.
14538 * gimplify-me.c : Likewise.
14539 * gimplify.c : Likewise.
14540 * godump.c : Likewise.
14541 * graph.c : Likewise.
14542 * graphds.c : Likewise.
14543 * graphite-blocking.c : Likewise.
14544 * graphite-dependences.c : Likewise.
14545 * graphite-interchange.c : Likewise.
14546 * graphite-isl-ast-to-gimple.c : Likewise.
14547 * graphite-optimize-isl.c : Likewise.
14548 * graphite-poly.c : Likewise.
14549 * graphite-scop-detection.c : Likewise.
14550 * graphite-sese-to-poly.c : Likewise.
14551 * graphite.c : Likewise.
14552 * haifa-sched.c : Likewise.
14553 * hard-reg-set.h : Likewise.
14554 * hw-doloop.c : Likewise.
14555 * ifcvt.c : Likewise.
14556 * inchash.c : Likewise.
14557 * incpath.c : Likewise.
14558 * init-regs.c : Likewise.
14559 * input.c : Likewise.
14560 * internal-fn.c : Likewise.
14561 * ipa-chkp.c : Likewise.
14562 * ipa-comdats.c : Likewise.
14563 * ipa-cp.c : Likewise.
14564 * ipa-devirt.c : Likewise.
14565 * ipa-icf-gimple.c : Likewise.
14566 * ipa-icf.c : Likewise.
14567 * ipa-inline-analysis.c : Likewise.
14568 * ipa-inline-transform.c : Likewise.
14569 * ipa-inline.c : Likewise.
14570 * ipa-polymorphic-call.c : Likewise.
14571 * ipa-profile.c : Likewise.
14572 * ipa-prop.c : Likewise.
14573 * ipa-pure-const.c : Likewise.
14574 * ipa-ref.c : Likewise.
14575 * ipa-reference.c : Likewise.
14576 * ipa-split.c : Likewise.
14577 * ipa-utils.c : Likewise.
14578 * ipa-visibility.c : Likewise.
14579 * ipa.c : Likewise.
14580 * ira-build.c : Likewise.
14581 * ira-color.c : Likewise.
14582 * ira-conflicts.c : Likewise.
14583 * ira-costs.c : Likewise.
14584 * ira-emit.c : Likewise.
14585 * ira-lives.c : Likewise.
14586 * ira.c : Likewise.
14587 * jump.c : Likewise.
14588 * langhooks.c : Likewise.
14589 * lcm.c : Likewise.
14590 * libfuncs.h : Likewise.
14591 * lists.c : Likewise.
14592 * loop-doloop.c : Likewise.
14593 * loop-init.c : Likewise.
14594 * loop-invariant.c : Likewise.
14595 * loop-iv.c : Likewise.
14596 * loop-unroll.c : Likewise.
14597 * lower-subreg.c : Likewise.
14598 * lra-assigns.c : Likewise.
14599 * lra-coalesce.c : Likewise.
14600 * lra-constraints.c : Likewise.
14601 * lra-eliminations.c : Likewise.
14602 * lra-lives.c : Likewise.
14603 * lra-remat.c : Likewise.
14604 * lra-spills.c : Likewise.
14605 * lra.c : Likewise.
14606 * lto-cgraph.c : Likewise.
14607 * lto-compress.c : Likewise.
14608 * lto-opts.c : Likewise.
14609 * lto-section-in.c : Likewise.
14610 * lto-section-out.c : Likewise.
14611 * lto-streamer-in.c : Likewise.
14612 * lto-streamer-out.c : Likewise.
14613 * lto-streamer.c : Likewise.
14614 * lto-streamer.h : Likewise.
14615 * mcf.c : Likewise.
14616 * mode-switching.c : Likewise.
14617 * modulo-sched.c : Likewise.
14618 * omega.c : Likewise.
14619 * omp-low.c : Likewise.
14620 * optabs.c : Likewise.
14621 * opts-global.c : Likewise.
14622 * opts.h : Likewise.
14623 * passes.c : Likewise.
14624 * plugin.c : Likewise.
14625 * postreload-gcse.c : Likewise.
14626 * postreload.c : Likewise.
14627 * predict.c : Likewise.
14628 * print-rtl.c : Likewise.
14629 * print-tree.c : Likewise.
14630 * profile.c : Likewise.
14631 * read-md.c : Likewise.
14632 * read-md.h : Likewise.
14633 * read-rtl.c : Likewise.
14634 * real.c : Likewise.
14635 * realmpfr.c : Likewise.
14636 * recog.c : Likewise.
14637 * ree.c : Likewise.
14638 * reg-stack.c : Likewise.
14639 * regcprop.c : Likewise.
14640 * reginfo.c : Likewise.
14641 * regrename.c : Likewise.
14642 * regstat.c : Likewise.
14643 * reload.c : Likewise.
14644 * reload1.c : Likewise.
14645 * reorg.c : Likewise.
14646 * resource.c : Likewise.
14647 * rtl-chkp.c : Likewise.
14648 * rtl.c : Likewise.
14649 * rtl.h : Likewise.
14650 * rtlanal.c : Likewise.
14651 * rtlhash.c : Likewise.
14652 * rtlhash.h : Likewise.
14653 * rtlhooks.c : Likewise.
14654 * sanopt.c : Likewise.
14655 * sched-deps.c : Likewise.
14656 * sched-ebb.c : Likewise.
14657 * sched-rgn.c : Likewise.
14658 * sched-vis.c : Likewise.
14659 * sdbout.c : Likewise.
14660 * sel-sched-dump.c : Likewise.
14661 * sel-sched-ir.c : Likewise.
14662 * sel-sched-ir.h : Likewise.
14663 * sel-sched.c : Likewise.
14664 * sese.c : Likewise.
14665 * shrink-wrap.c : Likewise.
14666 * shrink-wrap.h : Likewise.
14667 * simplify-rtx.c : Likewise.
14668 * stack-ptr-mod.c : Likewise.
14669 * statistics.c : Likewise.
14670 * stmt.c : Likewise.
14671 * stor-layout.c : Likewise.
14672 * store-motion.c : Likewise.
14673 * stringpool.c : Likewise.
14674 * symtab.c : Likewise.
14675 * target-globals.c : Likewise.
14676 * targhooks.c : Likewise.
14677 * tlink.c : Likewise.
14678 * toplev.c : Likewise.
14679 * tracer.c : Likewise.
14680 * trans-mem.c : Likewise.
14681 * tree-affine.c : Likewise.
14682 * tree-affine.h : Likewise.
14683 * tree-browser.c : Likewise.
14684 * tree-call-cdce.c : Likewise.
14685 * tree-cfg.c : Likewise.
14686 * tree-cfgcleanup.c : Likewise.
14687 * tree-chkp-opt.c : Likewise.
14688 * tree-chkp.c : Likewise.
14689 * tree-chrec.c : Likewise.
14690 * tree-complex.c : Likewise.
14691 * tree-data-ref.c : Likewise.
14692 * tree-dfa.c : Likewise.
14693 * tree-diagnostic.c : Likewise.
14694 * tree-dump.c : Likewise.
14695 * tree-eh.c : Likewise.
14696 * tree-eh.h : Likewise.
14697 * tree-emutls.c : Likewise.
14698 * tree-hasher.h : Likewise.
14699 * tree-if-conv.c : Likewise.
14700 * tree-inline.c : Likewise.
14701 * tree-inline.h : Likewise.
14702 * tree-into-ssa.c : Likewise.
14703 * tree-iterator.c : Likewise.
14704 * tree-loop-distribution.c : Likewise.
14705 * tree-nested.c : Likewise.
14706 * tree-nrv.c : Likewise.
14707 * tree-object-size.c : Likewise.
14708 * tree-outof-ssa.c : Likewise.
14709 * tree-parloops.c : Likewise.
14710 * tree-phinodes.c : Likewise.
14711 * tree-predcom.c : Likewise.
14712 * tree-pretty-print.c : Likewise.
14713 * tree-profile.c : Likewise.
14714 * tree-scalar-evolution.c : Likewise.
14715 * tree-sra.c : Likewise.
14716 * tree-ssa-address.c : Likewise.
14717 * tree-ssa-alias.c : Likewise.
14718 * tree-ssa-ccp.c : Likewise.
14719 * tree-ssa-coalesce.c : Likewise.
14720 * tree-ssa-copy.c : Likewise.
14721 * tree-ssa-copyrename.c : Likewise.
14722 * tree-ssa-dce.c : Likewise.
14723 * tree-ssa-dom.c : Likewise.
14724 * tree-ssa-dse.c : Likewise.
14725 * tree-ssa-forwprop.c : Likewise.
14726 * tree-ssa-ifcombine.c : Likewise.
14727 * tree-ssa-live.c : Likewise.
14728 * tree-ssa-loop-ch.c : Likewise.
14729 * tree-ssa-loop-im.c : Likewise.
14730 * tree-ssa-loop-ivcanon.c : Likewise.
14731 * tree-ssa-loop-ivopts.c : Likewise.
14732 * tree-ssa-loop-manip.c : Likewise.
14733 * tree-ssa-loop-niter.c : Likewise.
14734 * tree-ssa-loop-prefetch.c : Likewise.
14735 * tree-ssa-loop-unswitch.c : Likewise.
14736 * tree-ssa-loop.c : Likewise.
14737 * tree-ssa-math-opts.c : Likewise.
14738 * tree-ssa-operands.c : Likewise.
14739 * tree-ssa-phiopt.c : Likewise.
14740 * tree-ssa-phiprop.c : Likewise.
14741 * tree-ssa-pre.c : Likewise.
14742 * tree-ssa-propagate.c : Likewise.
14743 * tree-ssa-reassoc.c : Likewise.
14744 * tree-ssa-sccvn.c : Likewise.
14745 * tree-ssa-scopedtables.c : Likewise.
14746 * tree-ssa-sink.c : Likewise.
14747 * tree-ssa-strlen.c : Likewise.
14748 * tree-ssa-structalias.c : Likewise.
14749 * tree-ssa-tail-merge.c : Likewise.
14750 * tree-ssa-ter.c : Likewise.
14751 * tree-ssa-threadedge.c : Likewise.
14752 * tree-ssa-threadupdate.c : Likewise.
14753 * tree-ssa-uncprop.c : Likewise.
14754 * tree-ssa-uninit.c : Likewise.
14755 * tree-ssa.c : Likewise.
14756 * tree-ssanames.c : Likewise.
14757 * tree-stdarg.c : Likewise.
14758 * tree-streamer-in.c : Likewise.
14759 * tree-streamer-out.c : Likewise.
14760 * tree-streamer.c : Likewise.
14761 * tree-streamer.h : Likewise.
14762 * tree-switch-conversion.c : Likewise.
14763 * tree-tailcall.c : Likewise.
14764 * tree-vect-data-refs.c : Likewise.
14765 * tree-vect-generic.c : Likewise.
14766 * tree-vect-loop-manip.c : Likewise.
14767 * tree-vect-loop.c : Likewise.
14768 * tree-vect-patterns.c : Likewise.
14769 * tree-vect-slp.c : Likewise.
14770 * tree-vect-stmts.c : Likewise.
14771 * tree-vectorizer.c : Likewise.
14772 * tree-vectorizer.h : Likewise.
14773 * tree-vrp.c : Likewise.
14774 * tree.c : Likewise.
14775 * tsan.c : Likewise.
14776 * ubsan.c : Likewise.
14777 * valtrack.c : Likewise.
14778 * valtrack.h : Likewise.
14779 * value-prof.c : Likewise.
14780 * var-tracking.c : Likewise.
14781 * varasm.c : Likewise.
14782 * varpool.c : Likewise.
14784 * vmsdbgout.c : Likewise.
14785 * vtable-verify.c : Likewise.
14786 * vtable-verify.h : Likewise.
14787 * web.c : Likewise.
14788 * wide-int.cc : Likewise.
14789 * xcoffout.c : Likewise.
14790 * config/aarch64/aarch64-builtins.c : Likewise.
14791 * config/aarch64/aarch64.c : Likewise.
14792 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
14793 * config/alpha/alpha.c : Likewise.
14794 * config/arc/arc.c : Likewise.
14795 * config/arm/aarch-common.c : Likewise.
14796 * config/arm/arm-builtins.c : Likewise.
14797 * config/arm/arm-c.c : Likewise.
14798 * config/arm/arm.c : Likewise.
14799 * config/avr/avr-c.c : Likewise.
14800 * config/avr/avr-log.c : Likewise.
14801 * config/avr/avr.c : Likewise.
14802 * config/bfin/bfin.c : Likewise.
14803 * config/c6x/c6x.c : Likewise.
14804 * config/cr16/cr16.c : Likewise.
14805 * config/cris/cris.c : Likewise.
14806 * config/darwin-c.c : Likewise.
14807 * config/darwin.c : Likewise.
14808 * config/default-c.c : Likewise.
14809 * config/epiphany/epiphany.c : Likewise.
14810 * config/epiphany/mode-switch-use.c : Likewise.
14811 * config/epiphany/resolve-sw-modes.c : Likewise.
14812 * config/fr30/fr30.c : Likewise.
14813 * config/frv/frv.c : Likewise.
14814 * config/ft32/ft32.c : Likewise.
14815 * config/glibc-c.c : Likewise.
14816 * config/h8300/h8300.c : Likewise.
14817 * config/i386/i386-c.c : Likewise.
14818 * config/i386/i386.c : Likewise.
14819 * config/i386/msformat-c.c : Likewise.
14820 * config/i386/winnt-cxx.c : Likewise.
14821 * config/i386/winnt-stubs.c : Likewise.
14822 * config/i386/winnt.c : Likewise.
14823 * config/ia64/ia64-c.c : Likewise.
14824 * config/ia64/ia64.c : Likewise.
14825 * config/iq2000/iq2000.c : Likewise.
14826 * config/lm32/lm32.c : Likewise.
14827 * config/m32c/m32c-pragma.c : Likewise.
14828 * config/m32c/m32c.c : Likewise.
14829 * config/m32r/m32r.c : Likewise.
14830 * config/m68k/m68k.c : Likewise.
14831 * config/mcore/mcore.c : Likewise.
14832 * config/mep/mep-pragma.c : Likewise.
14833 * config/mep/mep.c : Likewise.
14834 * config/microblaze/microblaze-c.c : Likewise.
14835 * config/microblaze/microblaze.c : Likewise.
14836 * config/mips/mips.c : Likewise.
14837 * config/mmix/mmix.c : Likewise.
14838 * config/mn10300/mn10300.c : Likewise.
14839 * config/moxie/moxie.c : Likewise.
14840 * config/msp430/msp430-c.c : Likewise.
14841 * config/msp430/msp430.c : Likewise.
14842 * config/nds32/nds32-cost.c : Likewise.
14843 * config/nds32/nds32-fp-as-gp.c : Likewise.
14844 * config/nds32/nds32-intrinsic.c : Likewise.
14845 * config/nds32/nds32-isr.c : Likewise.
14846 * config/nds32/nds32-md-auxiliary.c : Likewise.
14847 * config/nds32/nds32-memory-manipulation.c : Likewise.
14848 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
14849 * config/nds32/nds32-predicates.c : Likewise.
14850 * config/nds32/nds32.c : Likewise.
14851 * config/nios2/nios2.c : Likewise.
14852 * config/nvptx/nvptx.c : Likewise.
14853 * config/pa/pa.c : Likewise.
14854 * config/pdp11/pdp11.c : Likewise.
14855 * config/rl78/rl78-c.c : Likewise.
14856 * config/rl78/rl78.c : Likewise.
14857 * config/rs6000/rs6000-c.c : Likewise.
14858 * config/rs6000/rs6000.c : Likewise.
14859 * config/rx/rx.c : Likewise.
14860 * config/s390/s390-c.c : Likewise.
14861 * config/s390/s390.c : Likewise.
14862 * config/sh/sh-c.c : Likewise.
14863 * config/sh/sh-mem.cc : Likewise.
14864 * config/sh/sh.c : Likewise.
14865 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
14866 * config/sh/sh_treg_combine.cc : Likewise.
14867 * config/sol2-c.c : Likewise.
14868 * config/sol2-cxx.c : Likewise.
14869 * config/sol2-stubs.c : Likewise.
14870 * config/sol2.c : Likewise.
14871 * config/sparc/sparc-c.c : Likewise.
14872 * config/sparc/sparc.c : Likewise.
14873 * config/spu/spu-c.c : Likewise.
14874 * config/spu/spu.c : Likewise.
14875 * config/stormy16/stormy16.c : Likewise.
14876 * config/tilegx/mul-tables.c : Likewise.
14877 * config/tilegx/tilegx-c.c : Likewise.
14878 * config/tilegx/tilegx.c : Likewise.
14879 * config/tilepro/mul-tables.c : Likewise.
14880 * config/tilepro/tilepro-c.c : Likewise.
14881 * config/tilepro/tilepro.c : Likewise.
14882 * config/v850/v850-c.c : Likewise.
14883 * config/v850/v850.c : Likewise.
14884 * config/vax/vax.c : Likewise.
14885 * config/visium/visium.c : Likewise.
14886 * config/vms/vms-c.c : Likewise.
14887 * config/vms/vms.c : Likewise.
14888 * config/vxworks.c : Likewise.
14889 * config/winnt-c.c : Likewise.
14890 * config/xtensa/xtensa.c : Likewise.
14892 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14895 * ipa-utils.h (warn_types_mismatch): Update prototype.
14896 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
14898 (type_mismatch_p): New function.
14899 (warn_types_mismatch): Reorg to work better on non-C++ types.
14900 (odr_types_equivalent_p): Add loc1/loc2 parameters.
14901 (add_type_duplicate): Update.
14903 2015-06-08 Tom de Vries <tom@codesourcery.com>
14905 PR rtl-optimization/66444
14906 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
14909 2015-06-08 Richard Biener <rguenther@suse.de>
14911 PR tree-optimization/66422
14912 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
14913 block after inserted gcc_unreachable.
14915 2015-06-08 Nick Clifton <nickc@redhat.com>
14917 * config/rx/rx.c (rx_function_value): Do not promote vector types.
14918 (rx_promote_function_mode): Likewise.
14919 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
14921 2015-06-08 Jakub Jelinek <jakub@redhat.com>
14923 * genattrtab.c (insn_alternatives): Change type from int *
14925 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
14926 (get_attr_value): Change type of num_alt to uint64_t.
14927 (compute_alternative_mask): Change return type from
14928 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
14929 (make_alternative_compare, mk_attr_alt): Change argument type
14930 from int to uint64_t.
14931 (simplify_test_exp): Change type of i from int to uint64_t.
14932 Shift ((uint64_t) 1) instead of 1 up.
14933 (main): Adjust oballocvec first argument from int to uint64_t.
14934 Shift ((uint64_t) 1) instead of 1 up.
14936 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14939 * gdbhooks.py: Import sys.
14940 (intptr): New function. Replace int(...) by intptr(...).
14942 2015-06-08 Richard Biener <rguenther@suse.de>
14944 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
14945 adjustment for gaps at the end of a SLP load group properly.
14946 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
14947 all permutations we can generate.
14948 (vect_transform_slp_perm_load): Use the correct group-size.
14950 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
14952 * genmatch.c (expr::gen_transform): For conditions, guess the type
14953 from the second operand.
14955 2015-06-08 Tom de Vries <tom@codesourcery.com>
14957 PR tree-optimization/66442
14958 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
14959 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
14960 if the loop latch is not a singleton. Use
14961 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
14963 2015-06-08 Marek Polacek <polacek@redhat.com>
14966 * toplev.c (check_global_declaration): Don't warn about artificial
14969 2015-06-08 Tom de Vries <tom@codesourcery.com>
14971 PR tree-optimization/66436
14972 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
14974 * gimplify.c: Add tree-dump.h include.
14975 (gimplify_function_tree): Dump function to gimple dump file.
14976 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
14979 2015-06-08 Tom de Vries <tom@codesourcery.com>
14981 PR tree-optimization/66435
14982 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
14985 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
14987 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
14988 of ptr_type_node to not be ptr_to_node.
14989 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
14990 TREE_TYPE of pointers.
14991 * gimple-expr.c (useless_type_conversion): Reorder the check for
14992 function pointers and TYPE_CANONICAL.
14994 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
14997 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
14998 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
14999 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
15001 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
15002 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
15003 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
15004 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
15005 and non iso if unix2003.
15007 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
15009 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
15011 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
15013 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
15014 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
15015 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
15016 except.c, final.c, function.c, gcse-common.c, genemit.c,
15017 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
15018 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
15019 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
15020 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
15023 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
15025 * combine.c (combine_split_insns): Remove cast.
15026 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
15027 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
15028 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
15029 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
15030 * genemit.c (gen_split): Change return type of generated functions to
15032 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
15033 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
15034 gen_peephole2_* functions.
15035 (print_subroutine, main): Likewise.
15036 * recog.c (peephole2_optimize): Remove cast.
15037 (peep2_next_insn): Promote return type to rtx_insn.
15038 * recog.h (peep2_next_insn): Fix prototype.
15039 * rtl.h (try_split, split_insns): Likewise.
15041 2015-06-06 DJ Delorie <dj@redhat.com>
15043 * config/msp430/msp430.c (msp430_asm_integer): Support addition
15044 and subtraction too.
15046 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
15049 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
15050 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
15051 instead of Snd. Disparage Sid/z alternative with '^'.
15053 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
15055 * dwarf2out.c: Remove deferred_locations*.
15056 (dwarf2_debug_hooks): Add early_finish hook.
15057 Remove global_decl hook.
15058 Add early_global_decl and late_global_decl hook.
15059 New global early_dwarf.
15060 New structure set_early_dwarf.
15061 (output_die): Indicate whether a DIE was generated early
15062 when generating assembly with -dA.
15063 (struct limbo_die_struct): Document created_for field.
15064 Remove file_table_last_lookup.
15065 (remove_AT): Return TRUE if successful.
15066 (remove_child_TAG): Clear die_parent.
15067 (reparent_child): New function abstracted from...
15068 (splice_child_die): ...here.
15069 (new_die): ICE if a DIE ends up in limbo too late.
15071 (defer_location): Remove.
15072 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
15073 (fill_variable_array_bounds): New.
15074 (decl_start_label): Call fill_variable_array_bounds.
15075 (gen_formal_parameter_die): Rewrite to reuse previously generated
15077 (gen_subprogram_die): Same.
15078 (gen_variable_die): Same.
15079 (gen_const_die): Same.
15080 (gen_label_die): Same.
15081 (gen_lexical_block_die): Same.
15082 (decl_will_get_specification_p): New.
15083 (local_function_static): New.
15084 (gen_struct_or_union_type_die): Fill in variable-length fields.
15085 (gen_typedef_die): Fill in variable-length typedefs.
15086 (gen_tagged_type_die): Gracefully return on error_mark_node.
15087 Handle re-entrancy.
15088 (gen_type_die_with_usage): Handle variable-length types.
15089 Remove duplicate code for ARRAY_TYPE case.
15090 (process_scope_var): Only process imported modules during early
15092 (dwarf2out_early_global_decl): New.
15093 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
15094 (dwarf2out_type_decl): Set early_dwarf while calling
15096 (dwarf2out_decl): Verify that we did not recreate a previously
15098 Do not return on DECL_EXTERNALs in VAR_DECLs.
15099 Abstract some code to local_function_static.
15100 (lookup_filename): Remove use of file_table_last_lookup.
15101 Gracefully exit on missing file_name.
15102 (dwarf2out_finish): Verify limbo list.
15103 Remove deferred_locations_list use.
15104 Move deferred_asm_name and limbo flushing to...
15105 (dwarf2out_early_finish): ...here. New.
15106 (dwarf2out_c_finalize): Remove set of deferred_location_list,
15107 deferred_asm_name, and file_table_last_lookup.
15108 * cgraph.h (referred_to_p): Add default argument.
15109 * cgraphunit.c (referred_to_p): Add and handle include_self
15111 (analyze_functions): Add first_time argument.
15112 Call check_global_declaration for all symbols.
15113 Call late_global_decl for nodes for moribund nodes.
15114 (finalize_compilation_unit): Add new argument to
15116 Call early_global_decl for functions.
15117 Call early_finish debug hook.
15118 * dbxout.c (dbxout_early_global_decl): New.
15119 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
15120 (dbx_debug_hooks): Add new hooks.
15121 (xcoff_debug_hooks): Same.
15122 * debug.c (do_nothing_debug_hooks): Add early_finish field.
15123 Add early and late debug hooks.
15124 Remove global_decl hook.
15125 * debug.h (struct gcc_debug_hooks): Add early_finish,
15126 early_global_decl, and late_global_decl fields.
15127 Remove global_decl field.
15128 Document gcc_debug_hooks.
15129 * gengtype.c (output_typename): Remove.
15130 * godump.c (go_early_global_decl): New.
15131 (go_late_global_decl): New.
15132 (go_global_decl): Remove.
15133 (dump_go_spec_init): Remove global_decl. Add
15134 {early,late}_global_decl.
15135 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
15136 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
15137 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
15138 (write_global_declarations): Remove.
15139 (global_decl_processing): New.
15140 * langhooks.h (struct lang_hooks_for_decls): Remove
15141 final_write_globals field.
15142 Add post_compilation_parsing_cleanups field.
15143 * passes.c (rest_of_decl_compilation): Call early_global_decl.
15144 * sdbout.c: Add early and late_global_decl hooks. Remove
15145 sdbout_global_decl hook.
15146 Add early_finish field for sdb_debug_hooks.
15147 (sdbout_global_decl): Remove.
15148 (sdbout_early_global_decl): New.
15149 (sdbout_late_global_decl): New.
15150 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
15151 * toplev.c (check_global_declaration): Rename from
15152 check_global_declaration_1.
15153 Adapt to use symtab infrastructure.
15154 (check_global_declarations): Remove.
15155 (emit_debug_global_declarations): Remove.
15156 (compile_file): Remove call to final_write_globals langhook.
15157 Run the actual compilation process.
15158 Perform any post compilation parser cleanups.
15159 Generate late debug info.
15160 * toplev.h (check_global_declaration): New.
15161 (check_global_declaration_1): Remove.
15162 (check_global_declarations): Remove.
15163 (write_global_declarations): Remove.
15164 (emit_debug_global_declarations): Remove.
15165 (global_decl_processing): New.
15166 * tree-core.h (struct tree_block): Add DIE field.
15167 * tree.h (BLOCK_DIE): New.
15168 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
15170 (vmsdbgout_early_global_decl): New.
15171 (vmsdbgout_late_global_decl): New.
15172 Add early_finish debug hook field to vmsdbg_debug_hooks.
15173 Remove vmsdbgout_decl to vmsdbgout_function_decl.
15174 Add early and late_global_decl debug hooks.
15176 2015-06-05 Julian Brown <julian@codesourcery.com>
15177 Sandra Loosemore <sandra@codesourcery.com>
15179 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
15180 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
15181 to print-sysroot-suffix.sh script.
15183 2015-06-05 Tom de Vries <tom@codesourcery.com>
15185 merge from gomp4 branch:
15186 2015-05-28 Tom de Vries <tom@codesourcery.com>
15188 PR tree-optimization/65443
15189 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
15190 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
15191 (try_transform_to_exit_first_loop_alt): New function.
15192 (transform_to_exit_first_loop): Use
15193 try_transform_to_exit_first_loop_alt.
15195 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
15197 * builtins.c (expand_builtin_atomic_compare_exchange): Call
15198 emit_cmp_and_jump_insns with the mode of target.
15200 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15202 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
15204 2015-06-04 DJ Delorie <dj@redhat.com>
15206 * config/msp430/msp430.md (movsi_s): New. Special case for
15207 storing a 20-bit symbol into a 32-bit register.
15208 * config/msp430/msp430.c (msp430_subreg): Add support for it.
15209 * config/msp430/predicates.md (msp430_symbol_operand): New.
15211 2015-06-04 Sriraman Tallam <tmsriram@google.com>
15213 * c-family/c-common.c (noplt): New attribute.
15214 (handle_noplt_attribute): New handler.
15215 * calls.c (prepare_call_address): Check for noplt
15217 * config/i386/i386.c (ix86_expand_call): Check
15218 for noplt attribute.
15219 (ix86_nopic_noplt_attribute_p): New function.
15220 (ix86_output_call_insn): Output indirect call for non-pic
15222 * doc/extend.texi (noplt): Document new attribute.
15223 * doc/invoke.texi: Document new attribute.
15225 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
15227 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
15228 real.h, and fixed-value.h when included in host source files.
15229 * double-int.h: Remove redundant #includes listed above.
15230 * fixed-value.h: Likewise.
15231 * real.h: Likewise.
15232 * wide-int.h: Likewise.
15233 * inchash.h: Likewise.
15234 * rtl.h: Add some include files When included from a generator file.
15235 * target.h: Remove wide-int.h and insn-modes.h from the include list.
15236 * internal-fn.h: Don't include coretypes.h.
15237 * alias.c: Adjust includes for restructured coretypes.h.
15238 * asan.c: Likewise.
15239 * attribs.c: Likewise.
15240 * auto-inc-dec.c: Likewise.
15241 * auto-profile.c: Likewise.
15242 * bb-reorder.c: Likewise.
15243 * bt-load.c: Likewise.
15244 * builtins.c: Likewise.
15245 * caller-save.c: Likewise.
15246 * calls.c: Likewise.
15247 * ccmp.c: Likewise.
15249 * cfganal.c: Likewise.
15250 * cfgbuild.c: Likewise.
15251 * cfgcleanup.c: Likewise.
15252 * cfgexpand.c: Likewise.
15253 * cfghooks.c: Likewise.
15254 * cfgloop.c: Likewise.
15255 * cfgloop.h: Likewise.
15256 * cfgloopanal.c: Likewise.
15257 * cfgloopmanip.c: Likewise.
15258 * cfgrtl.c: Likewise.
15259 * cgraph.c: Likewise.
15260 * cgraphbuild.c: Likewise.
15261 * cgraphclones.c: Likewise.
15262 * cgraphunit.c: Likewise.
15263 * cilk-common.c: Likewise.
15264 * combine-stack-adj.c: Likewise.
15265 * combine.c: Likewise.
15266 * compare-elim.c: Likewise.
15267 * convert.c: Likewise.
15268 * coverage.c: Likewise.
15269 * cppbuiltin.c: Likewise.
15270 * cprop.c: Likewise.
15272 * cselib.c: Likewise.
15273 * data-streamer-in.c: Likewise.
15274 * data-streamer-out.c: Likewise.
15275 * data-streamer.c: Likewise.
15276 * dbxout.c: Likewise.
15279 * debug.c: Likewise.
15280 * df-core.c: Likewise.
15281 * df-problems.c: Likewise.
15282 * df-scan.c: Likewise.
15285 * dojump.c: Likewise.
15286 * dominance.c: Likewise.
15287 * domwalk.c: Likewise.
15288 * double-int.c: Likewise.
15290 * dumpfile.c: Likewise.
15291 * dwarf2asm.c: Likewise.
15292 * dwarf2cfi.c: Likewise.
15293 * dwarf2out.c: Likewise.
15294 * dwarf2out.h: Likewise.
15295 * emit-rtl.c: Likewise.
15296 * et-forest.c: Likewise.
15297 * except.c: Likewise.
15298 * explow.c: Likewise.
15299 * expmed.c: Likewise.
15300 * expr.c: Likewise.
15301 * final.c: Likewise.
15302 * fixed-value.c: Likewise.
15303 * fold-const.c: Likewise.
15304 * function.c: Likewise.
15305 * fwprop.c: Likewise.
15306 * gcc-plugin.h: Likewise.
15307 * gcse.c: Likewise.
15308 * generic-match-head.c: Likewise.
15309 * ggc-page.c: Likewise.
15310 * gimple-builder.c: Likewise.
15311 * gimple-expr.c: Likewise.
15312 * gimple-fold.c: Likewise.
15313 * gimple-iterator.c: Likewise.
15314 * gimple-low.c: Likewise.
15315 * gimple-match-head.c: Likewise.
15316 * gimple-pretty-print.c: Likewise.
15317 * gimple-ssa-isolate-paths.c: Likewise.
15318 * gimple-ssa-strength-reduction.c: Likewise.
15319 * gimple-streamer-in.c: Likewise.
15320 * gimple-streamer-out.c: Likewise.
15321 * gimple-streamer.h: Likewise.
15322 * gimple-walk.c: Likewise.
15323 * gimple.c: Likewise.
15324 * gimplify-me.c: Likewise.
15325 * gimplify.c: Likewise.
15326 * godump.c: Likewise.
15327 * graph.c: Likewise.
15328 * graphite-blocking.c: Likewise.
15329 * graphite-dependences.c: Likewise.
15330 * graphite-interchange.c: Likewise.
15331 * graphite-isl-ast-to-gimple.c: Likewise.
15332 * graphite-optimize-isl.c: Likewise.
15333 * graphite-poly.c: Likewise.
15334 * graphite-scop-detection.c: Likewise.
15335 * graphite-sese-to-poly.c: Likewise.
15336 * graphite.c: Likewise.
15337 * haifa-sched.c: Likewise.
15338 * hooks.h: Likewise.
15339 * hw-doloop.c: Likewise.
15340 * ifcvt.c: Likewise.
15341 * incpath.c: Likewise.
15342 * init-regs.c: Likewise.
15343 * internal-fn.c: Likewise.
15344 * ipa-chkp.c: Likewise.
15345 * ipa-comdats.c: Likewise.
15346 * ipa-cp.c: Likewise.
15347 * ipa-devirt.c: Likewise.
15348 * ipa-icf-gimple.c: Likewise.
15349 * ipa-icf.c: Likewise.
15350 * ipa-inline-analysis.c: Likewise.
15351 * ipa-inline-transform.c: Likewise.
15352 * ipa-inline.c: Likewise.
15353 * ipa-polymorphic-call.c: Likewise.
15354 * ipa-profile.c: Likewise.
15355 * ipa-prop.c: Likewise.
15356 * ipa-pure-const.c: Likewise.
15357 * ipa-ref.c: Likewise.
15358 * ipa-reference.c: Likewise.
15359 * ipa-split.c: Likewise.
15360 * ipa-utils.c: Likewise.
15361 * ipa-visibility.c: Likewise.
15363 * ira-build.c: Likewise.
15364 * ira-color.c: Likewise.
15365 * ira-conflicts.c: Likewise.
15366 * ira-costs.c: Likewise.
15367 * ira-emit.c: Likewise.
15368 * ira-lives.c: Likewise.
15370 * jump.c: Likewise.
15371 * langhooks.c: Likewise.
15373 * loop-doloop.c: Likewise.
15374 * loop-init.c: Likewise.
15375 * loop-invariant.c: Likewise.
15376 * loop-iv.c: Likewise.
15377 * loop-unroll.c: Likewise.
15378 * lower-subreg.c: Likewise.
15379 * lra-assigns.c: Likewise.
15380 * lra-coalesce.c: Likewise.
15381 * lra-constraints.c: Likewise.
15382 * lra-eliminations.c: Likewise.
15383 * lra-lives.c: Likewise.
15384 * lra-remat.c: Likewise.
15385 * lra-spills.c: Likewise.
15387 * lto-cgraph.c: Likewise.
15388 * lto-compress.c: Likewise.
15389 * lto-opts.c: Likewise.
15390 * lto-section-in.c: Likewise.
15391 * lto-section-out.c: Likewise.
15392 * lto-streamer-in.c: Likewise.
15393 * lto-streamer-out.c: Likewise.
15394 * lto-streamer.c: Likewise.
15396 * mode-switching.c: Likewise.
15397 * modulo-sched.c: Likewise.
15398 * omega.c: Likewise.
15399 * omp-low.c: Likewise.
15400 * optabs.c: Likewise.
15401 * opts-global.c: Likewise.
15402 * passes.c: Likewise.
15403 * plugin.c: Likewise.
15404 * postreload-gcse.c: Likewise.
15405 * postreload.c: Likewise.
15406 * predict.c: Likewise.
15407 * print-rtl.c: Likewise.
15408 * print-tree.c: Likewise.
15409 * profile.c: Likewise.
15410 * real.c: Likewise.
15411 * realmpfr.c: Likewise.
15412 * realmpfr.h: Likewise.
15413 * recog.c: Likewise.
15415 * reg-stack.c: Likewise.
15416 * regcprop.c: Likewise.
15417 * reginfo.c: Likewise.
15418 * regrename.c: Likewise.
15419 * regs.h: Likewise.
15420 * regstat.c: Likewise.
15421 * reload.c: Likewise.
15422 * reload1.c: Likewise.
15423 * reorg.c: Likewise.
15424 * resource.c: Likewise.
15425 * rtl-chkp.c: Likewise.
15426 * rtlanal.c: Likewise.
15427 * rtlhooks.c: Likewise.
15428 * sanopt.c: Likewise.
15429 * sched-deps.c: Likewise.
15430 * sched-ebb.c: Likewise.
15431 * sched-rgn.c: Likewise.
15432 * sched-vis.c: Likewise.
15433 * sdbout.c: Likewise.
15434 * sel-sched-dump.c: Likewise.
15435 * sel-sched-ir.c: Likewise.
15436 * sel-sched.c: Likewise.
15437 * sese.c: Likewise.
15438 * shrink-wrap.c: Likewise.
15439 * shrink-wrap.h: Likewise.
15440 * simplify-rtx.c: Likewise.
15441 * stack-ptr-mod.c: Likewise.
15442 * statistics.c: Likewise.
15443 * stmt.c: Likewise.
15444 * stor-layout.c: Likewise.
15445 * store-motion.c: Likewise.
15446 * stringpool.c: Likewise.
15447 * symtab.c: Likewise.
15448 * target-globals.c: Likewise.
15449 * targhooks.c: Likewise.
15450 * toplev.c: Likewise.
15451 * tracer.c: Likewise.
15452 * trans-mem.c: Likewise.
15453 * tree-affine.c: Likewise.
15454 * tree-affine.h: Likewise.
15455 * tree-browser.c: Likewise.
15456 * tree-call-cdce.c: Likewise.
15457 * tree-cfg.c: Likewise.
15458 * tree-cfgcleanup.c: Likewise.
15459 * tree-chkp-opt.c: Likewise.
15460 * tree-chkp.c: Likewise.
15461 * tree-chrec.c: Likewise.
15462 * tree-complex.c: Likewise.
15463 * tree-data-ref.c: Likewise.
15464 * tree-dfa.c: Likewise.
15465 * tree-diagnostic.c: Likewise.
15466 * tree-dump.c: Likewise.
15467 * tree-eh.c: Likewise.
15468 * tree-emutls.c: Likewise.
15469 * tree-if-conv.c: Likewise.
15470 * tree-inline.c: Likewise.
15471 * tree-into-ssa.c: Likewise.
15472 * tree-iterator.c: Likewise.
15473 * tree-loop-distribution.c: Likewise.
15474 * tree-nested.c: Likewise.
15475 * tree-nrv.c: Likewise.
15476 * tree-object-size.c: Likewise.
15477 * tree-outof-ssa.c: Likewise.
15478 * tree-parloops.c: Likewise.
15479 * tree-phinodes.c: Likewise.
15480 * tree-predcom.c: Likewise.
15481 * tree-pretty-print.c: Likewise.
15482 * tree-pretty-print.h: Likewise.
15483 * tree-profile.c: Likewise.
15484 * tree-scalar-evolution.c: Likewise.
15485 * tree-sra.c: Likewise.
15486 * tree-ssa-address.c: Likewise.
15487 * tree-ssa-alias.c: Likewise.
15488 * tree-ssa-ccp.c: Likewise.
15489 * tree-ssa-coalesce.c: Likewise.
15490 * tree-ssa-copy.c: Likewise.
15491 * tree-ssa-copyrename.c: Likewise.
15492 * tree-ssa-dce.c: Likewise.
15493 * tree-ssa-dom.c: Likewise.
15494 * tree-ssa-dse.c: Likewise.
15495 * tree-ssa-forwprop.c: Likewise.
15496 * tree-ssa-ifcombine.c: Likewise.
15497 * tree-ssa-live.c: Likewise.
15498 * tree-ssa-loop-ch.c: Likewise.
15499 * tree-ssa-loop-im.c: Likewise.
15500 * tree-ssa-loop-ivcanon.c: Likewise.
15501 * tree-ssa-loop-ivopts.c: Likewise.
15502 * tree-ssa-loop-manip.c: Likewise.
15503 * tree-ssa-loop-niter.c: Likewise.
15504 * tree-ssa-loop-prefetch.c: Likewise.
15505 * tree-ssa-loop-unswitch.c: Likewise.
15506 * tree-ssa-loop.c: Likewise.
15507 * tree-ssa-loop.h: Likewise.
15508 * tree-ssa-math-opts.c: Likewise.
15509 * tree-ssa-operands.c: Likewise.
15510 * tree-ssa-phiopt.c: Likewise.
15511 * tree-ssa-phiprop.c: Likewise.
15512 * tree-ssa-pre.c: Likewise.
15513 * tree-ssa-propagate.c: Likewise.
15514 * tree-ssa-reassoc.c: Likewise.
15515 * tree-ssa-sccvn.c: Likewise.
15516 * tree-ssa-scopedtables.c: Likewise.
15517 * tree-ssa-sink.c: Likewise.
15518 * tree-ssa-strlen.c: Likewise.
15519 * tree-ssa-structalias.c: Likewise.
15520 * tree-ssa-tail-merge.c: Likewise.
15521 * tree-ssa-ter.c: Likewise.
15522 * tree-ssa-threadedge.c: Likewise.
15523 * tree-ssa-threadupdate.c: Likewise.
15524 * tree-ssa-uncprop.c: Likewise.
15525 * tree-ssa-uninit.c: Likewise.
15526 * tree-ssa.c: Likewise.
15527 * tree-ssanames.c: Likewise.
15528 * tree-stdarg.c: Likewise.
15529 * tree-streamer-in.c: Likewise.
15530 * tree-streamer-out.c: Likewise.
15531 * tree-streamer.c: Likewise.
15532 * tree-switch-conversion.c: Likewise.
15533 * tree-tailcall.c: Likewise.
15534 * tree-vect-data-refs.c: Likewise.
15535 * tree-vect-generic.c: Likewise.
15536 * tree-vect-loop-manip.c: Likewise.
15537 * tree-vect-loop.c: Likewise.
15538 * tree-vect-patterns.c: Likewise.
15539 * tree-vect-slp.c: Likewise.
15540 * tree-vect-stmts.c: Likewise.
15541 * tree-vectorizer.c: Likewise.
15542 * tree-vrp.c: Likewise.
15543 * tree.c: Likewise.
15544 * tsan.c: Likewise.
15545 * ubsan.c: Likewise.
15546 * valtrack.c: Likewise.
15547 * value-prof.c: Likewise.
15548 * var-tracking.c: Likewise.
15549 * varasm.c: Likewise.
15550 * varpool.c: Likewise.
15551 * vmsdbgout.c: Likewise.
15552 * vtable-verify.c: Likewise.
15554 * wide-int-print.cc: Likewise.
15555 * wide-int-print.h: Likewise.
15556 * wide-int.cc: Likewise.
15557 * xcoffout.c: Likewise.
15558 * config/aarch64/aarch64-builtins.c: Likewise.
15559 * config/aarch64/aarch64.c: Likewise.
15560 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15561 * config/alpha/alpha.c: Likewise.
15562 * config/arc/arc.c: Likewise.
15563 * config/arm/aarch-common.c: Likewise.
15564 * config/arm/arm-builtins.c: Likewise.
15565 * config/arm/arm-c.c: Likewise.
15566 * config/arm/arm.c: Likewise.
15567 * config/avr/avr-c.c: Likewise.
15568 * config/avr/avr-log.c: Likewise.
15569 * config/avr/avr.c: Likewise.
15570 * config/bfin/bfin.c: Likewise.
15571 * config/c6x/c6x.c: Likewise.
15572 * config/cr16/cr16.c: Likewise.
15573 * config/cris/cris.c: Likewise.
15574 * config/darwin-c.c: Likewise.
15575 * config/darwin.c: Likewise.
15576 * config/default-c.c: Likewise.
15577 * config/epiphany/epiphany.c: Likewise.
15578 * config/epiphany/mode-switch-use.c: Likewise.
15579 * config/epiphany/resolve-sw-modes.c: Likewise.
15580 * config/fr30/fr30.c: Likewise.
15581 * config/frv/frv.c: Likewise.
15582 * config/ft32/ft32.c: Likewise.
15583 * config/glibc-c.c: Likewise.
15584 * config/h8300/h8300.c: Likewise.
15585 * config/i386/i386-c.c: Likewise.
15586 * config/i386/i386.c: Likewise.
15587 * config/i386/msformat-c.c: Likewise.
15588 * config/i386/winnt-cxx.c: Likewise.
15589 * config/i386/winnt-stubs.c: Likewise.
15590 * config/i386/winnt.c: Likewise.
15591 * config/ia64/ia64-c.c: Likewise.
15592 * config/ia64/ia64.c: Likewise.
15593 * config/iq2000/iq2000.c: Likewise.
15594 * config/lm32/lm32.c: Likewise.
15595 * config/m32c/m32c-pragma.c: Likewise.
15596 * config/m32c/m32c.c: Likewise.
15597 * config/m32r/m32r.c: Likewise.
15598 * config/m68k/m68k.c: Likewise.
15599 * config/mcore/mcore.c: Likewise.
15600 * config/mep/mep-pragma.c: Likewise.
15601 * config/mep/mep.c: Likewise.
15602 * config/microblaze/microblaze-c.c: Likewise.
15603 * config/microblaze/microblaze.c: Likewise.
15604 * config/mips/mips.c: Likewise.
15605 * config/mmix/mmix.c: Likewise.
15606 * config/mn10300/mn10300.c: Likewise.
15607 * config/moxie/moxie.c: Likewise.
15608 * config/msp430/msp430-c.c: Likewise.
15609 * config/msp430/msp430.c: Likewise.
15610 * config/nds32/nds32-cost.c: Likewise.
15611 * config/nds32/nds32-fp-as-gp.c: Likewise.
15612 * config/nds32/nds32-intrinsic.c: Likewise.
15613 * config/nds32/nds32-isr.c: Likewise.
15614 * config/nds32/nds32-md-auxiliary.c: Likewise.
15615 * config/nds32/nds32-memory-manipulation.c: Likewise.
15616 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15617 * config/nds32/nds32-predicates.c: Likewise.
15618 * config/nds32/nds32.c: Likewise.
15619 * config/nios2/nios2.c: Likewise.
15620 * config/nvptx/nvptx.c: Likewise.
15621 * config/pa/pa.c: Likewise.
15622 * config/pdp11/pdp11.c: Likewise.
15623 * config/rl78/rl78-c.c: Likewise.
15624 * config/rl78/rl78.c: Likewise.
15625 * config/rs6000/rs6000-c.c: Likewise.
15626 * config/rs6000/rs6000.c: Likewise.
15627 * config/rx/rx.c: Likewise.
15628 * config/s390/s390-c.c: Likewise.
15629 * config/s390/s390.c: Likewise.
15630 * config/sh/sh-c.c: Likewise.
15631 * config/sh/sh-mem.cc: Likewise.
15632 * config/sh/sh.c: Likewise.
15633 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15634 * config/sh/sh_treg_combine.cc: Likewise.
15635 * config/sol2-c.c: Likewise.
15636 * config/sol2-cxx.c: Likewise.
15637 * config/sol2-stubs.c: Likewise.
15638 * config/sol2.c: Likewise.
15639 * config/sparc/sparc-c.c: Likewise.
15640 * config/sparc/sparc.c: Likewise.
15641 * config/spu/spu-c.c: Likewise.
15642 * config/spu/spu.c: Likewise.
15643 * config/stormy16/stormy16.c: Likewise.
15644 * config/tilegx/mul-tables.c: Likewise.
15645 * config/tilegx/tilegx-c.c: Likewise.
15646 * config/tilegx/tilegx.c: Likewise.
15647 * config/tilepro/mul-tables.c: Likewise.
15648 * config/tilepro/tilepro-c.c: Likewise.
15649 * config/tilepro/tilepro.c: Likewise.
15650 * config/v850/v850-c.c: Likewise.
15651 * config/v850/v850.c: Likewise.
15652 * config/vax/vax.c: Likewise.
15653 * config/visium/visium.c: Likewise.
15654 * config/vms/vms-c.c: Likewise.
15655 * config/vms/vms.c: Likewise.
15656 * config/vxworks.c: Likewise.
15657 * config/winnt-c.c: Likewise.
15658 * config/xtensa/xtensa.c: Likewise.
15659 * common/config/bfin/bfin-common.c: Likewise.
15661 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
15663 * tree.h (tree_code_for_canonical_type_merging): New function.
15664 * tree.c (gimple_canonical_types_compatible_p): Use
15665 tree_code_for_canonical_type_merging..
15667 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15671 * doc/tm.texi: Regenerate.
15672 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
15673 * target.def (TARGET_RELAXED_ORDERING): Likewise.
15674 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
15675 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
15676 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
15677 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
15678 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
15679 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
15680 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
15682 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15684 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
15685 register fma steering pass.
15686 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
15687 AARCH64_TUNE_FMA_STEERING.
15689 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
15691 * tree.c (verify_type_variant): Verify that type and variant is
15693 (gimple_canonical_types_compatible_p): Look for main variants.
15695 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15697 * config.gcc (powerpc*-*-*): Add support for a new configure
15698 option --with-advance-toolchain=<xxx> which overrides using the
15699 default header files, libraries and dynamic linker.
15701 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
15702 specs to support the configure --with-advance-toolchain=<xxx>
15704 (INCLUDE_EXTRA_SPEC): Likewise.
15705 (LINK_OS_EXTRA_SPEC32): Likewise.
15706 (LINK_OK_EXTRA_SPEC64): Likewise.
15707 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
15708 (DYNAMIC_LINKER_PREFIX): Likewise.
15709 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
15711 (GLIBC_DYNAMIC_LINKER32): Likewise.
15712 (GLIBC_DYNAMIC_LINKER64): Likewise.
15713 (LINK_OS_LINUX_SPEC32): Likewise.
15714 (LINK_OS_LINUX_SPEC64): Likewise.
15716 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
15717 configuration option.
15719 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
15722 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
15723 to determine current function ABI.
15724 (ix86_function_value_regno_p): Ditto.
15726 2015-06-03 Martin Liska <mliska@suse.cz>
15728 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
15729 * bitmap.h (struct bitmap_usage): Likewise.
15730 * ggc-common.c (struct ggc_usage): Likewise.
15731 * mem-stats.h (struct mem_location): Likewise.
15732 (struct mem_usage): Likewise.
15733 * vec.c (struct vec_usage): Likewise.
15735 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
15737 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
15740 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
15742 * doc/plugins.texi (enum plugin_event): New event.
15743 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
15744 and PLUGIN_FINISH_FUNCTION.
15745 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
15746 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
15748 2015-06-03 Richard Biener <rguenther@suse.de>
15750 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
15751 compute GROUP_GAP for the first element.
15752 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
15755 2015-06-03 Nick Clifton <nickc@redhat.com>
15757 * config/rl78/rl78-real.md: Add peepholes to avoid a register
15758 copy when calling a function.
15759 * config/rl78/rl78.c (need_to_save): Do not push the frame
15760 pointer in an interrupt handler prologue if it is never used.
15762 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15764 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
15766 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15768 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
15769 reference when cloning alias node.
15771 2015-06-03 Martin Liska <mliska@suse.cz>
15773 * alloc-pool.h (struct pool_usage): Correct space padding.
15774 * ggc-page.c (ggc_print_statistics): Align columns in a report.
15775 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
15776 * tree.c (dump_tree_statistics): Align columns in a report.
15778 2015-06-03 Martin Liska <mliska@suse.cz>
15780 * alloc-pool.c (allocate_pool_descriptor): Remove.
15781 (struct pool_output_info): Likewise.
15782 (print_alloc_pool_statistics): Likewise.
15783 (dump_alloc_pool_statistics): Likewise.
15784 * alloc-pool.h (struct pool_usage): New struct.
15785 (pool_allocator::initialize): Change usage of memory statistics
15786 to a new interface.
15787 (pool_allocator::release): Likewise.
15788 (pool_allocator::allocate): Likewise.
15789 (pool_allocator::remove): Likewise.
15790 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
15791 for a pool allocator.
15792 * mem-stats.h (struct mem_location): Add new ctor.
15793 (struct mem_usage): Add counter for number of
15795 (mem_alloc_description::register_descriptor): New overload of
15796 * mem-stats.h (mem_location::to_string): New function.
15797 * bitmap.h (struct bitmap_usage): Use this new function.
15798 * ggc-common.c (struct ggc_usage): Likewise.
15801 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15803 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
15804 of GCC_INSN_FLAGS_H block.
15806 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
15808 * explow.c (plus_constant): Update check after force_const_mem call
15809 to see if the value returned is not a NULL_RTX.
15811 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15813 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
15814 remove instumentation thunks calling reachable functions.
15815 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
15816 * lto/lto-partition.c (privatize_symbol_name_1): New.
15817 (privatize_symbol_name): Privatize both decl and orig_decl
15818 names for instrumented functions.
15819 * cgraph.c (cgraph_node::verify_node): Add transparent
15820 alias chain check for instrumented node.
15822 2015-06-03 Marek Polacek <polacek@redhat.com>
15826 * tree.c (attribute_value_equal): Handle attribute format.
15827 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
15829 2015-06-03 Richard Biener <rguenther@suse.de>
15831 PR tree-optimization/63916
15832 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15833 Forward-propagate non-invariant addresses by splicing their
15834 reference ops if the result isn't going to be used by PRE.
15835 (vn_reference_lookup_3): Remove pointless assert.
15837 2015-06-03 Richard Biener <rguenther@suse.de>
15839 PR tree-optimization/66375
15840 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
15841 add to the evolution before following SSA edges.
15843 2015-06-03 Bin Cheng <bin.cheng@arm.com>
15845 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
15846 (dump_use, dump_cand, find_induction_variables): Pass new argument
15848 (record_use): Preserve the ssa name information in IV.
15850 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15852 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
15854 (add_mode_tests): Don't add mode tests if the predicate only
15855 accepts scalar constant integers. Otherwise, allow the mode
15856 of "op" to be VOIDmode if the predicate does accept such integers.
15858 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
15861 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
15862 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
15863 (aarch64_secondary_reload): Likewise
15864 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
15866 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
15869 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
15870 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15873 * cprop.c (try_replace_reg): Check cost of constants before propagating.
15875 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15877 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
15878 provide access to the IBM extended double floating point mode if
15879 long double is IEEE 128-bit floating point.
15880 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
15881 point if long double is the IBM extended double type.
15883 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
15884 enable adding IEEE 128-bit floating point support.
15885 (-mfloat128-software): Likewise.
15886 (-mfloat128-sw): Likewise.
15888 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
15889 128-bit floating point types to occupy any register if
15890 -mlong-double-64. Do not allow use of IFmode/KFmode unless
15891 -mfloat128-software is enabled.
15892 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
15894 (rs6000_option_override_internal): Add -mfloat128-* support.
15895 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
15897 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
15898 and float128 type nodes.
15899 (ieee128_float_type_node): Likewise.
15900 (ibm128_float_type_node): Likewise.
15902 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15905 * config/aarch64/geniterators.sh: Rewrite in awk.
15907 2015-06-02 Martin Liska <mliska@suse.cz>
15909 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
15910 values to avoid -Wmaybe-uninitialized errors.
15912 2015-06-02 Richard Biener <rguenther@suse.de>
15915 * dwarf2out.c (lookup_context_die): New function.
15916 (resolve_addr): Avoid forcing a full DIE for the
15917 target of a DW_TAG_GNU_call_site during late compilation.
15918 Instead create a stub DIE without a type if we have a
15919 context DIE present.
15921 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
15923 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
15925 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15927 PR tree-optimization/48052
15928 * cfgloop.h (struct control_iv): New.
15929 (struct loop): New field control_ivs.
15930 * tree-ssa-loop-niter.c : Include "stor-layout.h".
15931 (number_of_iterations_lt): Set no_overflow information.
15932 (number_of_iterations_exit): Init control iv in niter struct.
15933 (record_control_iv): New.
15934 (estimate_numbers_of_iterations_loop): Call record_control_iv.
15935 (loop_exits_before_overflow): New. Interface factored out of
15936 scev_probably_wraps_p.
15937 (scev_probably_wraps_p): Factor loop niter related code into
15938 loop_exits_before_overflow.
15939 (free_numbers_of_iterations_estimates_loop): Free control ivs.
15940 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
15942 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
15944 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
15945 the target doesn't belong to the current function.
15947 2015-06-02 Marek Polacek <polacek@redhat.com>
15949 PR middle-end/66345
15950 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
15951 get_maxval_strlen does not produce an INTEGER_CST.
15953 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
15955 * config/arc/constraints.md: Use lower-case names in match_code.
15956 * config/mmix/constraints.md: Likewise.
15958 2015-06-02 Richard Biener <rguenther@suse.de>
15960 PR tree-optimization/65961
15961 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
15962 check and clarify dump message.
15963 (vect_build_slp_tree): If all children are built up from scalars
15964 build up the parent from scalars instead.
15965 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
15967 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
15970 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
15971 instead of print ... .
15973 2015-06-02 Alan Modra <amodra@gmail.com>
15975 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
15978 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15980 PR tree-optimization/52563
15981 PR tree-optimization/62173
15982 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
15983 (alloc_iv, set_iv): New parameter.
15984 (determine_biv_step): Delete.
15985 (find_bivs): Inline original determine_biv_step. Pass new
15986 argument to set_iv.
15987 (idx_find_step): Use no_overflow information for conversion.
15988 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
15989 resolve_mixers handle folded_casts.
15990 (instantiate_scev_name): Change bool parameter to bool pointer.
15991 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
15992 (instantiate_array_ref, instantiate_scev_not): Ditto.
15993 (instantiate_scev_3, instantiate_scev_2): Ditto.
15994 (instantiate_scev_1, instantiate_scev_r): Ditto.
15995 (instantiate_scev_convert, ): Change parameter. Pass argument
15996 to chrec_convert_aggressive.
15997 (instantiate_scev): Change argument.
15998 (resolve_mixers): New parameter and set it.
15999 (scev_const_prop): New argument.
16000 * tree-scalar-evolution.h (resolve_mixers): New parameter.
16001 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
16003 (chrec_convert): New parameter. Move definition below.
16004 (chrec_convert_aggressive): New parameter and set it. Call
16005 convert_affine_scev.
16006 * tree-chrec.h (chrec_convert): New parameter.
16007 (chrec_convert_aggressive): Ditto.
16009 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
16011 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
16012 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
16013 the LHS of a no-return call if its type has variable size.
16014 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
16015 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
16017 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
16019 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
16020 * config.in: Regenerate.
16022 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
16024 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
16025 consecutive accesses within outer-loop with force_vectorize
16026 for references with zero step in inner-loop.
16028 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
16030 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
16031 rather than from gcc/build directory.
16033 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
16036 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
16037 for __sync memory models, emit initial loads and final barriers as
16040 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
16043 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
16044 (aarch64_split_atomic_op): Check for __sync memory models, emit
16045 appropriate initial loads and final barriers.
16047 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
16049 * Makefile.in: Fix gcov dependencies that should
16050 not point to a build folder.
16052 2015-06-01 Richard Biener <rguenther@suse.de>
16055 2015-05-29 Richard Biener <rguenther@suse.de>
16057 PR tree-optimization/66314
16058 * tree-ssa-threadupdate.c (create_block_for_threading): Add
16059 parameter that says which loop the new block belongs to.
16060 (ssa_create_duplicates): Blocks duplicated for the threaded
16061 path belong to the loop of the thread destination.
16063 2015-06-01 Martin Liska <mliska@suse.cz>
16065 * sched-deps.c: Include pool-alloc.h before
16066 cselib.h header file is included.
16068 2015-06-01 Richard Biener <rguenther@suse.de>
16070 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
16073 2015-06-01 Martin Liska <mliska@suse.cz>
16075 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
16076 a function local variable.
16078 2015-06-01 Martin Liska <mliska@suse.cz>
16080 * alloc-pool.c (create_alloc_pool): Remove.
16081 (empty_alloc_pool): Likewise.
16082 (free_alloc_pool): Likewise.
16083 (free_alloc_pool_if_empty): Likewise.
16084 (pool_alloc): Likewise.
16085 (pool_free): Likewise.
16086 * alloc-pool.h: Remove old declarations.
16088 2015-06-01 Martin Liska <mliska@suse.cz>
16090 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
16091 (ira_create_object): Likewise.
16092 (ira_create_allocno): Likewise.
16093 (ira_create_live_range): Likewise.
16094 (copy_live_range): Likewise.
16095 (ira_finish_live_range): Likewise.
16096 (ira_free_allocno_costs): Likewise.
16097 (finish_allocno): Likewise.
16098 (finish_allocnos): Likewise.
16099 (initiate_prefs): Likewise.
16100 (ira_create_pref): Likewise.
16101 (finish_pref): Likewise.
16102 (finish_prefs): Likewise.
16103 (initiate_copies): Likewise.
16104 (ira_create_copy): Likewise.
16105 (finish_copy): Likewise.
16106 (finish_copies): Likewise.
16107 (finish_prefs): Likewise.
16109 2015-06-01 Martin Liska <mliska@suse.cz>
16111 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
16112 (allocate_and_init_ipcp_value): Likewise.
16113 (ipcp_lattice::add_value): Likewise.
16114 (merge_agg_lats_step): Likewise.
16115 (ipcp_driver): Likewise.
16116 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
16117 (ipa_free_all_structures_after_iinln): Likewise.
16118 * ipa-prop.h: Likewise.
16120 2015-06-01 Martin Liska <mliska@suse.cz>
16122 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
16124 (set_hint_predicate): Likewise.
16125 (inline_summary_alloc): Likewise.
16126 (reset_inline_edge_summary): Likewise.
16127 (reset_inline_summary): Likewise.
16128 (set_cond_stmt_execution_predicate): Likewise.
16129 (set_switch_stmt_execution_predicate): Likewise.
16130 (compute_bb_predicates): Likewise.
16131 (estimate_function_body_sizes): Likewise.
16132 (inline_free_summary): Likewise.
16134 2015-06-01 Martin Liska <mliska@suse.cz>
16136 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
16137 (ipa_edge_duplication_hook): Likewise.
16138 (ipa_free_all_structures_after_ipa_cp): Likewise.
16139 (ipa_free_all_structures_after_iinln): Likewise.
16141 2015-06-01 Martin Liska <mliska@suse.cz>
16143 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
16144 (ipa_profile_generate_summary): Likewise.
16145 (ipa_profile_read_summary): Likewise.
16146 (ipa_profile): Likewise.
16148 2015-06-01 Martin Liska <mliska@suse.cz>
16150 * tree-ssa-structalias.c (new_var_info): Use new type-based
16152 (new_constraint): Likewise.
16153 (init_alias_vars): Likewise.
16154 (delete_points_to_sets): Likewise.
16156 2015-06-01 Martin Liska <mliska@suse.cz>
16158 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
16159 (free_strinfo): Likewise.
16160 (pass_strlen::execute): Likewise.
16162 2015-06-01 Martin Liska <mliska@suse.cz>
16164 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
16166 (vn_reference_insert_pieces): Likewise.
16167 (vn_phi_insert): Likewise.
16168 (visit_reference_op_call): Likewise.
16169 (copy_phi): Likewise.
16170 (copy_reference): Likewise.
16171 (process_scc): Likewise.
16172 (allocate_vn_table): Likewise.
16173 (free_vn_table): Likewise.
16175 2015-06-01 Martin Liska <mliska@suse.cz>
16177 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
16179 (add_repeat_to_ops_vec): Likewise.
16180 (get_ops): Likewise.
16181 (maybe_optimize_range_tests): Likewise.
16182 (init_reassoc): Likewise.
16183 (fini_reassoc): Likewise.
16185 2015-06-01 Martin Liska <mliska@suse.cz>
16187 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
16189 (bitmap_set_new): Likewise.
16190 (get_or_alloc_expr_for_constant): Likewise.
16191 (get_or_alloc_expr_for): Likewise.
16192 (phi_translate_1): Likewise.
16193 (compute_avail): Likewise.
16194 (init_pre): Likewise.
16195 (fini_pre): Likewise.
16197 2015-06-01 Martin Liska <mliska@suse.cz>
16199 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
16200 (delete_dep_node): Likewise.
16201 (create_deps_list): Likewise.
16202 (free_deps_list): Likewise.
16203 (sched_deps_init): Likewise.
16204 (sched_deps_finish): Likewise.
16206 2015-06-01 Martin Liska <mliska@suse.cz>
16208 * regcprop.c (free_debug_insn_changes): Use new type-based
16210 (replace_oldest_value_reg): Likewise.
16211 (pass_cprop_hardreg::execute): Likewise.
16213 2015-06-01 Martin Liska <mliska@suse.cz>
16215 * ira-build.c (initiate_cost_vectors): Use new type-based
16217 (ira_allocate_cost_vector): Likewise.
16218 (ira_free_cost_vector): Likewise.
16219 (finish_cost_vectors): Likewise.
16221 2015-06-01 Martin Liska <mliska@suse.cz>
16223 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
16225 (free_sched_pools): Likewise.
16226 * sel-sched-ir.h (_list_alloc): Likewise.
16227 (_list_remove): Likewise.
16229 2015-06-01 Martin Liska <mliska@suse.cz>
16231 * stmt.c (add_case_node): Use new type-based pool allocator.
16232 (expand_case): Likewise.
16233 (expand_sjlj_dispatch_table): Likewise.
16235 2015-06-01 Martin Liska <mliska@suse.cz>
16237 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
16238 (free_bb): Likewise.
16239 (pass_cse_reciprocals::execute): Likewise.
16241 2015-06-01 Martin Liska <mliska@suse.cz>
16243 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
16244 (sra_deinitialize) Likewise.
16245 (create_access_1) Likewise.
16246 (build_accesses_from_assign) Likewise.
16247 (create_artificial_child_access) Likewise.
16249 2015-06-01 Martin Liska <mliska@suse.cz>
16251 * dse.c (get_group_info):Use new type-based pool allocator.
16252 (dse_step0) Likewise.
16253 (free_store_info) Likewise.
16254 (delete_dead_store_insn) Likewise.
16255 (free_read_records) Likewise.
16256 (record_store) Likewise.
16257 (replace_read) Likewise.
16258 (check_mem_read_rtx) Likewise.
16259 (scan_insn) Likewise.
16260 (dse_step1) Likewise.
16261 (dse_step7) Likewise.
16263 2015-06-01 Martin Liska <mliska@suse.cz>
16265 * df-scan.c (struct df_scan_problem_data):Use new type-based
16267 (df_scan_free_internal) Likewise.
16268 (df_scan_alloc) Likewise.
16269 (df_grow_reg_info) Likewise.
16270 (df_free_ref) Likewise.
16271 (df_insn_create_insn_record) Likewise.
16272 (df_mw_hardreg_chain_delete) Likewise.
16273 (df_insn_info_delete) Likewise.
16274 (df_free_collection_rec) Likewise.
16275 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
16276 (df_sort_and_compress_mws) Likewise.
16277 (df_ref_create_structure) Likewise.
16278 (df_ref_record) Likewise.
16280 2015-06-01 Martin Liska <mliska@suse.cz>
16282 * df-problems.c (df_chain_create):Use new type-based pool allocator.
16283 (df_chain_unlink_1) Likewise.
16284 (df_chain_unlink) Likewise.
16285 (df_chain_remove_problem) Likewise.
16286 (df_chain_alloc) Likewise.
16287 (df_chain_free) Likewise.
16288 * df.h (struct dataflow) Likewise.
16290 2015-06-01 Martin Liska <mliska@suse.cz>
16292 * cselib.c (new_elt_list):Use new type-based pool allocator.
16293 (new_elt_loc_list) Likewise.
16294 (unchain_one_elt_list) Likewise.
16295 (unchain_one_elt_loc_list) Likewise.
16296 (unchain_one_value) Likewise.
16297 (new_cselib_val) Likewise.
16298 (cselib_init) Likewise.
16299 (cselib_finish) Likewise.
16301 2015-06-01 Martin Liska <mliska@suse.cz>
16303 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
16304 (sh_reorg) Likewise.
16306 2015-06-01 Martin Liska <mliska@suse.cz>
16308 * cfg.c (initialize_original_copy_tables):Use new type-based
16310 (free_original_copy_tables) Likewise.
16311 (copy_original_table_clear) Likewise.
16312 (copy_original_table_set) Likewise.
16314 2015-06-01 Martin Liska <mliska@suse.cz>
16316 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
16318 (asan_mem_ref_new) Likewise.
16319 (free_mem_ref_resources) Likewise.
16321 2015-06-01 Martin Liska <mliska@suse.cz>
16323 * var-tracking.c (variable_htab_free):Use new type-based
16325 (attrs_list_clear) Likewise.
16326 (attrs_list_insert) Likewise.
16327 (attrs_list_copy) Likewise.
16328 (shared_hash_unshare) Likewise.
16329 (shared_hash_destroy) Likewise.
16330 (unshare_variable) Likewise.
16331 (var_reg_delete_and_set) Likewise.
16332 (var_reg_delete) Likewise.
16333 (var_regno_delete) Likewise.
16334 (drop_overlapping_mem_locs) Likewise.
16335 (variable_union) Likewise.
16336 (insert_into_intersection) Likewise.
16337 (canonicalize_values_star) Likewise.
16338 (variable_merge_over_cur) Likewise.
16339 (dataflow_set_merge) Likewise.
16340 (remove_duplicate_values) Likewise.
16341 (variable_post_merge_new_vals) Likewise.
16342 (dataflow_set_preserve_mem_locs) Likewise.
16343 (dataflow_set_remove_mem_locs) Likewise.
16344 (variable_from_dropped) Likewise.
16345 (variable_was_changed) Likewise.
16346 (set_slot_part) Likewise.
16347 (clobber_slot_part) Likewise.
16348 (delete_slot_part) Likewise.
16349 (loc_exp_insert_dep) Likewise.
16350 (notify_dependents_of_changed_value) Likewise.
16351 (emit_notes_for_differences_1) Likewise.
16352 (vt_emit_notes) Likewise.
16353 (vt_initialize) Likewise.
16354 (vt_finalize) Likewise.
16356 2015-06-01 Martin Liska <mliska@suse.cz>
16358 * ira-color.c (init_update_cost_records):Use new type-based
16360 (get_update_cost_record) Likewise.
16361 (free_update_cost_record_list) Likewise.
16362 (finish_update_cost_records) Likewise.
16363 (initiate_cost_update) Likewise.
16365 2015-06-01 Martin Liska <mliska@suse.cz>
16367 * lra.c (init_insn_regs): Use new type-based pool allocator.
16368 (new_insn_reg) Likewise.
16369 (free_insn_reg) Likewise.
16370 (free_insn_regs) Likewise.
16371 (finish_insn_regs) Likewise.
16372 (init_insn_recog_data) Likewise.
16373 (init_reg_info) Likewise.
16374 (finish_reg_info) Likewise.
16375 (lra_free_copies) Likewise.
16376 (lra_create_copy) Likewise.
16377 (invalidate_insn_data_regno_info) Likewise.
16379 2015-06-01 Martin Liska <mliska@suse.cz>
16381 * lra-lives.c (free_live_range): Use new type-based pool allocator.
16382 (free_live_range_list) Likewise.
16383 (create_live_range) Likewise.
16384 (copy_live_range) Likewise.
16385 (lra_merge_live_ranges) Likewise.
16386 (remove_some_program_points_and_update_live_ranges) Likewise.
16387 (lra_live_ranges_init) Likewise.
16388 (lra_live_ranges_finish) Likewise.
16390 2015-06-01 Martin Liska <mliska@suse.cz>
16392 * et-forest.c (et_new_occ): Use new type-based pool allocator.
16393 (et_new_tree): Likewise.
16394 (et_free_tree): Likewise.
16395 (et_free_tree_force): Likewise.
16396 (et_free_pools): Likewise.
16397 (et_split): Likewise.
16399 2015-06-01 Martin Liska <mliska@suse.cz>
16401 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
16403 * alloc-pool.h (pool_allocator::pool_allocator): New function.
16404 (pool_allocator::release): Likewise.
16405 (inline pool_allocator::release_if_empty): Likewise.
16406 (inline pool_allocator::~pool_allocator): Likewise.
16407 (pool_allocator::allocate): Likewise.
16408 (pool_allocator::remove): Likewise.
16410 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
16412 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
16415 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
16417 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
16419 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
16420 (arm_macro_fusion_p): Likewise.
16421 (arm_macro_fusion_pair_p): Likewise.
16423 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
16425 * config/aarch64/aarch64-protos.h (tune_params): Rename
16426 fuseable_ops to fusible_ops.
16427 * config/aarch64/aarch64.c (generic_tunings): Rename
16428 fuseable_ops to fusible_ops.
16429 (cortexa53_tunings): Likewise.
16430 (cortexa57_tunings): Likewise.
16431 (thunderx_tunings): Likewise.
16432 (xgene1_tunings): Likewise.
16433 (aarch64_macro_fusion_p): Likewise.
16434 (aarch64_macro_fusion_pair_p): Likewise.
16436 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
16438 * config/s390/driver-native.c: New file.
16439 * config/s390/x-native: New file.
16440 * config.host: Add new files for s390.
16441 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
16443 * config.gcc: Likewise.
16444 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
16445 * config/s390/s390-opts.h (enum processor_type): Ditto.
16446 * config/s390/s390.c (s390_option_override): Catch unhandled
16449 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
16452 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
16453 redirection for instrumented calls.
16454 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
16455 (append_compiler_options): Append -fcheck-pointer-bounds.
16456 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
16457 (chkp_redirect_edge): New.
16458 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
16459 (chkp_redirect_edge): New.
16461 2015-06-01 Richard Biener <rguenther@suse.de>
16463 PR tree-optimization/66280
16464 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
16467 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16469 * config/aarch64/aarch64.md
16470 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
16473 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
16475 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
16476 Remove obsolete kludge.
16478 2015-06-01 Richard Biener <rguenther@suse.de>
16480 * tree-ssa-reassoc.c (get_rank): Simplify.
16482 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
16484 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
16485 * configure: Regenerated.
16487 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
16489 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
16490 issue (add space between string literal and macro).
16491 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
16493 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
16495 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
16496 implict or explicit -fPIE or -fpie.
16498 2015-05-30 Mike Frysinger <vapier@gentoo.org>
16500 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
16502 2015-05-28 DJ Delorie <dj@redhat.com>
16504 * expmed.c (extract_bit_field_1): Avoid clobbering a
16505 yet-to-be-used base/index register.
16507 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
16509 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
16510 (alias_stats): Add num_universal.
16511 (alias_set_subset_of): Special case pointers; be ready for NULL
16513 (alias_sets_conflict_p): Special case pointers; be ready for NULL
16515 (init_alias_set_entry): Break out from ...
16516 (record_alias_subset): ... here; propagate new fields;
16517 allocate children only when really needed.
16518 (get_alias_set): Do less generous pointer globbing.
16519 (dump_alias_stats_in_alias_c): Update statistics.
16521 2015-05-30 Alan Modra <amodra@gmail.com>
16523 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
16524 correct block for use of r12.
16525 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
16527 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16530 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
16533 2015-05-29 Jakub Jelinek <jakub@redhat.com>
16535 PR tree-optimization/66142
16536 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
16537 virtual phis that feed themselves.
16539 2015-05-29 Richard Biener <rguenther@suse.de>
16541 PR tree-optimization/66314
16542 * tree-ssa-threadupdate.c (create_block_for_threading): Add
16543 parameter that says which loop the new block belongs to.
16544 (ssa_create_duplicates): Blocks duplicated for the threaded
16545 path belong to the loop of the thread destination.
16547 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16549 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
16550 to cleanup-saved-temps.
16551 * doc/sourcebuild.texi (Clean up generated test files): Expand
16553 (dg-keep-saved-temps): Document new proc.
16554 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
16555 cleanup-saved-temps): Remove.
16557 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
16559 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
16560 gcc_AC_CHECK_DECLS.
16561 * configure: Regenerate.
16563 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16565 * config/nios2/linux.h (CPP_SPEC): Define.
16567 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16569 * config/microblaze/linux.h (CPP_SPEC): Define.
16571 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16573 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
16574 -pthread is specified.
16576 2015-05-28 Richard Biener <rguenther@suse.de>
16578 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
16579 (vect_fixup_scalar_cycles_with_patterns): Likewise.
16580 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
16581 after pattern recog.
16582 (vect_create_epilog_for_reduction): Properly handle reductions
16584 (vectorizable_reduction): Likewise.
16585 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
16587 (vect_get_constant_vectors): Create the correct number of
16588 initial values for reductions.
16589 (vect_schedule_slp_instance): Handle reduction chains that are
16590 type changing properly.
16591 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
16593 2015-05-28 Richard Biener <rguenther@suse.de>
16595 PR tree-optimization/66142
16596 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
16597 values better in memcpy destination handling. Handle non-aliasing
16600 2015-05-28 Lawrence Velázquez <vq@larryv.me>
16603 * config/darwin-c.c (version_components): New global enum.
16604 (parse_version, version_as_legacy_macro)
16605 (version_as_modern_macro, macosx_version_as_macro): New functions.
16606 (version_as_macro): Remove.
16607 (darwin_cpp_builtins): Use new function.
16609 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
16611 * builtins.c (expand_builtin_acc_on_device): Mark parameters
16612 with ATTRIBUTE_UNUSED.
16614 2015-05-28 Julian Brown <julian@codesourcery.com>
16618 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
16619 sequence for !ACCEL_COMPILER.
16621 2015-05-28 Nick Clifton <nickc@redhat.com>
16623 * config/rx/rx.c (push_regs): New function. Extracts code from...
16624 (rx_expand_prologue): ... here. Use push_regs to push even small
16625 spans of registers.
16626 (pop_regs): New function.
16627 (rx_expand_epilogue): Use pop_regs to pop even small spans of
16630 2015-05-28 Richard Biener <rguenther@suse.de>
16632 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
16634 (SLP_INSTANCE_BODY_COST_VEC): Remove.
16635 (vect_update_slp_costs_according_to_vf): Likewise.
16636 (vect_slp_analyze_operations): Update prototype.
16637 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
16638 vect_update_slp_costs_according_to_vf, adjust.
16639 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
16640 (vect_analyze_slp_cost_1): Likewise.
16641 (vect_analyze_slp_cost): Likewise. Properly deal with
16642 widening reduction ops. Commit body costs.
16643 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
16644 cost for loops from here.
16645 (vect_slp_analyze_operations): But do it from here when
16646 the vectorization factor is known and stmts are analyzed.
16647 (vect_bb_vectorization_profitable_p): Simplify.
16648 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
16649 (vect_update_slp_costs_according_to_vf): Remove.
16651 2015-05-27 Magnus Granberg <zorry@gentoo.org>
16652 H.J. Lu <hongjiu.lu@intel.com>
16654 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
16655 (BUILD_CFLAGS): Likewise.
16656 (BUILD_CXXFLAGS): Likewise.
16657 (LINKER): Add @NO_PIE_FLAG@.
16658 (BUILD_LDFLAGS): Likewise.
16659 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
16660 --enable-default-pie.
16661 * common.opt (fPIE): Initialize to -1.
16663 (no-pie): New option.
16664 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
16665 * configure.ac: Add --enable-default-pie.
16666 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
16667 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
16668 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
16669 * gcc.c (NO_PIE_SPEC): New.
16670 (PIE_SPEC): Likewise.
16671 (NO_FPIE1_SPEC): Likewise.
16672 (FPIE1_SPEC): Likewise.
16673 (NO_FPIE2_SPEC): Likewise.
16674 (FPIE2_SPEC): Likewise.
16675 (NO_FPIE2_SPEC): Likewise.
16676 (FPIE_SPEC): Likewise.
16677 (NO_FPIE_SPEC): Likewise.
16678 (NO_FPIC1_SPEC): Likewise.
16679 (FPIC1_SPEC): Likewise.
16680 (NO_FPIC2_SPEC): Likewise.
16681 (FPIC2_SPEC): Likewise.
16682 (NO_FPIC2_SPEC): Likewise.
16683 (FPIC_SPEC): Likewise.
16684 (NO_FPIC_SPEC): Likewise.
16685 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
16686 (FPIE1_OR_FPIC1_SPEC): Likewise.
16687 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
16688 (FPIE2_OR_FPIC2_SPEC): Likewise.
16689 (NO_FPIE_AND_FPIC_SPEC): Likewise.
16690 (FPIE_OR_FPIC_SPEC): Likewise.
16691 (LD_PIE_SPEC): Likewise.
16692 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
16693 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
16694 * config/darwin.h (PIE_SPEC): Renamed to ...
16695 (DARWIN_PIE_SPEC): This.
16696 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
16697 * config/darwin9.h (PIE_SPEC): Renamed to ...
16698 (DARWIN_PIE_SPEC): This.
16699 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
16700 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
16701 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
16702 FPIE2_OR_FPIC2_SPEC.
16703 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
16704 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
16705 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
16706 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16707 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16708 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16709 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
16710 * config/m32r/m32r.h (ASM_SPEC): Likewise.
16711 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
16712 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16713 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
16714 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
16715 * config/sparc/linux.h (ASM_SPEC): Likewise.
16716 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16717 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
16718 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
16719 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16720 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16721 * config/sparc/sparc.h (ASM_SPEC): Likewise.
16722 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
16723 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
16724 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
16725 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
16726 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
16727 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
16728 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
16729 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
16730 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
16731 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
16732 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
16733 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
16734 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16735 * config/vax/linux.h (ASM_SPEC): Likewise.
16736 * doc/install.texi: Document --enable-default-pie.
16737 * doc/invoke.texi: Document -no-pie.
16738 * config.in: Regenerated.
16739 * configure: Likewise.
16741 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
16743 PR rtl-optimization/66168
16744 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
16745 can_move_invariant_reg.
16747 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
16750 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
16751 REG_EQUAL note when doing insert.
16753 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
16754 instead of "%d" for 'o' operand.
16756 2015-05-27 Nathan Sidwell <nathan@acm.org>
16759 * tree.c (build_pointer_type_for_mode): Canonical type does not
16760 inherit can_alias_all.
16761 (build_reference_type_for_mode): Likewise.
16763 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
16765 * expr.h (array_at_struct_end_p): Move to...
16766 (array_ref_element_size): Likewise.
16767 (component_ref_field_offset): Likewise.
16768 * tree.h (array_ref_element_size): ...here.
16769 (array_at_struct_end_p): Likewise.
16770 (component_ref_field_offset): Likewise.
16771 * expr.c (array_ref_element_size): Move to...
16772 (array_ref_low_bound): Likewise.
16773 (array_at_struct_end_p): Likewise.
16774 (array_ref_up_bound): Likewise.
16775 (component_ref_field_offset): Likewise.
16776 * tree.c (array_ref_element_size): ...here.
16777 (array_ref_low_bound): Likewise.
16778 (array_ref_up_bound): Likewise.
16779 (array_at_struct_end_p): Likewise.
16780 (component_ref_field_offset): Likewise.
16782 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16783 Szabolcs Nagy <szabolcs.nagy@arm.com>
16785 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
16787 2015-05-27 Jason Merrill <jason@redhat.com>
16790 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
16791 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
16792 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
16794 2015-05-22 Aditya Kumar <hiraditya@msn.com>
16796 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
16799 * statistics.c (statistics_fini_pass): Print pass name.
16801 2015-05-27 Richard Biener <rguenther@suse.de>
16803 PR tree-optimization/66272
16805 2014-08-15 Richard Biener <rguenther@suse.de>
16807 PR tree-optimization/62031
16808 * tree-data-ref.c (dr_analyze_indices): Do not set
16809 DR_UNCONSTRAINED_BASE.
16810 (dr_may_alias_p): All indirect accesses have to go the
16811 formerly DR_UNCONSTRAINED_BASE path.
16812 * tree-data-ref.h (struct indices): Remove
16813 unconstrained_base member.
16814 (DR_UNCONSTRAINED_BASE): Remove.
16816 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
16818 * dwarf2out.c: Remove block_map.
16819 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
16820 (gen_lexical_block_die): Same.
16821 (dwarf2out_function_decl): Remove block_map use.
16822 (dwarf2out_c_finalize): Same.
16823 * tree-core.h (struct tree_block): Add die field.
16824 * tree.h (BLOCK_DIE): New.
16826 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16829 * expr.c (memory_load_overlap): New function.
16830 (emit_push_insn): When pushing partial args to the stack would
16831 clobber the register part load the overlapping part into a pseudo
16832 and put it into the hard reg after pushing. Change return type
16833 to bool. Add bool argument.
16834 * expr.h (emit_push_insn): Change return type to bool.
16836 * calls.c (expand_call): Cancel sibcall optimization when encountering
16837 partial argument on targets with ARGS_GROW_DOWNWARD and
16838 !STACK_GROWS_DOWNWARD.
16839 (emit_library_call_value_1): Update callsite of emit_push_insn.
16840 (store_one_arg): Likewise.
16842 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16844 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
16846 2015-05-27 Martin Liska <mliska@suse.cz>
16848 * Makefile.in: Add additional dependencies related to memory report
16850 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
16851 * bitmap.c (struct bitmap_descriptor_d): Remove.
16852 (struct loc): Likewise.
16853 (struct bitmap_desc_hasher): Likewise.
16854 (bitmap_desc_hasher::hash): Likewise.
16855 (bitmap_desc_hasher::equal): Likewise.
16856 (get_bitmap_descriptor): Likewise.
16857 (bitmap_register): User new memory descriptor API.
16858 (register_overhead): Likewise.
16859 (bitmap_find_bit): Register nsearches and search_iter statistics.
16860 (struct bitmap_output_info): Remove.
16861 (print_statistics): Likewise.
16862 (dump_bitmap_statistics): Use new memory descriptor.
16863 * bitmap.h (struct bitmap_usage): New class.
16864 * genmatch.c: Extend header file inclusion.
16865 * genpreds.c: Likewise.
16866 * ggc-common.c (struct ggc_usage): New class.
16867 (struct ggc_loc_desc_hasher): Remove.
16868 (ggc_loc_desc_hasher::hash): Likewise.
16869 (ggc_loc_desc_hasher::equal): Likewise.
16870 (struct ggc_ptr_hash_entry): Likewise.
16871 (struct ptr_hash_hasher): Likewise.
16872 (ptr_hash_hasher::hash): Likewise.
16873 (ptr_hash_hasher::equal): Likewise.
16874 (make_loc_descriptor): Likewise.
16875 (ggc_prune_ptr): Likewise.
16876 (dump_ggc_loc_statistics): Use new memory descriptor.
16877 (ggc_record_overhead): Likewise.
16878 (ggc_free_overhead): Likewise.
16879 (final_cmp_statistic): Remove.
16880 (cmp_statistic): Likewise.
16881 (ggc_add_statistics): Liekwise.
16882 (ggc_prune_overhead_list): Likewise.
16883 * hash-map-traits.h: New file.
16884 * hash-map.h (struct default_hashmap_traits): Move the traits to a
16885 separate header file.
16886 * hash-set.h: Pass memory statistics info to ctor.
16887 * hash-table.c (void dump_hash_table_loc_statistics): New function.
16888 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
16889 (hash_table::~hash_table): Register memory release operation.
16890 (hash_table::alloc_entries): Handle memory allocation operation.
16891 (hash_table::expand): Likewise.
16892 * inchash.c (iterative_hash_hashval_t): Move implementation to header
16894 (iterative_hash_host_wide_int): Likewise.
16895 * inchash.h (class hash): Likewise.
16896 * mem-stats-traits.h: New file.
16897 * mem-stats.h: New file.
16898 (mem_location): Add new class.
16899 (mem_usage): Likewise.
16900 (mem_alloc_description): Likewise.
16901 * sese.c: Add new header file inclusision.
16902 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
16904 * tree-sra.c: Add new header file inclusision.
16905 * vec.c (struct vec_descriptor): Remove.
16906 (hash_descriptor): Likewise.
16907 (struct vec_usage): Likewise.
16908 (struct ptr_hash_entry): Likewise.
16909 (hash_ptr): Likewise.
16910 (eq_ptr): Likewise.
16911 (vec_prefix::register_overhead): Use new memory descriptor API.
16912 (vec_prefix::release_overhead): Likewise.
16913 (add_statistics): Remove.
16914 (dump_vec_loc_statistics): Use new memory descriptor API.
16915 * vec.h (struct vec_prefix): Likewise.
16916 (va_heap::reserve): Likewise.
16917 (va_heap::release): Likewise.
16918 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
16920 2015-05-27 Richard Biener <rguenther@suse.de>
16922 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
16923 earlier and remove ??? comment.
16924 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
16925 and got called from loop analysis bail out. Always pass the SLP
16926 node to the vectorizable_* functions.
16927 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
16928 the premature SLP check here.
16929 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
16930 detected SLP stmts.
16931 (vect_detect_hybrid_slp_1): Likewise.
16933 2015-05-26 Jeff Law <law@redhat.com>
16935 * combine.c (find_split_point): Verify that the shift count is a
16936 constant when choosing (plus (ashift ...)) as a split point.
16938 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
16939 No functional changes.
16941 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
16943 * ipa-polymorphic-call.c
16944 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
16945 case when call target is already known.
16947 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
16950 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
16951 take into account the case that operands[1] and operands[2]
16952 are the same register.
16954 2015-05-26 Michael Matz <matz@suse.de>
16956 PR middle-end/66251
16958 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
16960 (vect_create_vectorized_demotion_stmts): Always set
16961 STMT_VINFO_VEC_STMT, also with SLP.
16962 (vectorizable_store): Handle strided group stores.
16964 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16967 * config/aarch64/aarch64.md
16968 (*adds_shift_imm_<mode>): New pattern.
16969 (*subs_shift_imm_<mode>): Likewise.
16970 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16971 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16972 (*add_uxt<mode>_shift2): Likewise.
16973 (*add_uxtsi_shift2_uxtw): Likewise.
16974 (*sub_uxt<mode>_shift2): Likewise.
16975 (*sub_uxtsi_shift2_uxtw): Likewise.
16977 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
16979 * config/rs6000/constraints.md (Y, U): Use match_test.
16981 2015-05-26 Christian Bruel <christian.bruel@st.com>
16984 * config/arm/arm.c (arm_option_check_internal)
16985 (arm_option_params_internal): Check opts->target_flags to set macros.
16986 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16987 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
16988 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16989 (builtin_define): Replaced with def_or_undef_macro.
16990 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16991 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
16992 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16993 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
16994 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
16995 (TARGET_ARM_FEATURE_LDREX_P)
16996 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
16997 * config/arm/arm-c.c (def_or_undef_macro): New function.
16998 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
17000 2015-05-26 Christian Bruel <christian.bruel@st.com>
17002 * c-common.h (builtin_define_with_int_value)
17003 (builtin_define_type_sizeof): Declare.
17004 * c-cppbuiltin.c (builtin_define_with_int_value)
17005 (builtin_define_type_sizeof): Externalize.
17006 (builtin_define_std): Cleanup declaration.
17007 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
17008 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
17009 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
17010 (builtin_define, builtin_assert): New macros.
17012 2015-05-26 Richard Biener <rguenther@suse.de>
17014 PR tree-optimization/66142
17015 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
17016 MEM_REFs for the same base address.
17018 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17021 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
17023 2015-05-26 Jason Merrill <jason@redhat.com>
17025 * configure.ac: Set CXXFLAGS for ISL test.
17026 * configure: Regenerate.
17028 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
17029 strstr and basename.
17030 * configure: Regenerate.
17032 2015-05-26 Richard Biener <rguenther@suse.de>
17034 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
17035 X % C -> X & (C - 1) for C being a power-of two to ...
17036 * match.pd: ... patterns.
17038 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
17040 * match.pd (swapped_tcc_comparison): New operator list.
17041 (-A CMP -B): New simplification.
17042 * fold-const.c (fold_comparison): Remove corresponding code.
17044 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
17046 * caller-save.c (init_caller_save): Base temporary register numbers
17047 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
17048 * cfgloopanal.c (init_set_costs): Likewise.
17049 * dojump.c (prefer_and_bit_test): Likewise.
17050 * expr.c (init_expr_target): Likewise.
17051 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17052 * lower-subreg.c (init_lower_subreg): Likewise.
17053 * postreload.c (reload_cse_regs_1): Likewise.
17055 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
17057 * gensupport.h (compute_test_codes): Declare.
17058 * gensupport.c (compute_predicate_codes): Rename to...
17059 (compute_test_codes): ...this. Generalize error message.
17060 (process_define_predicate): Update accordingly.
17061 * genpreds.c (compute_maybe_allows): Delete.
17062 (add_constraint): Use compute_test_codes to determine whether
17063 something can accept a SUBREG, REG or MEM.
17065 2015-05-26 Torvald Riegel <triegel@redhat.com>
17067 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
17068 'memory model' to align with C++11; fix description of memory orders;
17071 2015-05-26 Richard Biener <rguenther@suse.de>
17073 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
17074 (vect_analyze_loop_operations): ... here. Remove slp parameter,
17075 detect whether we apply SLP. Remove call to
17076 vect_update_slp_costs_according_to_vf.
17077 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
17078 vect_update_slp_costs_according_to_vf from here. Dispatch
17079 to vect_slp_analyze_operations to analyze SLP stmts.
17080 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
17081 unused bb_vec_info parameter, adjust assert.
17082 (vect_slp_analyze_operations): Pass in the slp instance tree
17083 instead of bb_vec_info.
17084 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
17085 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
17087 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
17089 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
17090 Q_REGS. Expand comment.
17091 (REG_CLASS_NAMES): Ditto.
17092 (REG_CLASS_CONTENTS): Ditto.
17094 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
17097 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
17098 when LEGACY_INT_REGNO_P is processed.
17100 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
17102 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
17104 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17106 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
17107 register if not marked dead/unused, before return.
17109 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
17112 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
17113 is set; check for assembler name at LTO time.
17114 (type_in_anonymous_namespace): Remove hacks, check that all
17115 anonymous types are called "<anon>"
17116 (odr_type_p): Simplify; add check for "<anon>"
17117 (odr_subtypes_equivalent): Add odr_type_p check.
17118 * tree.c (need_assembler_name_p): Even anonymous namespace needs
17121 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
17123 * ipa-utils.h (method_class_type): Remove.
17124 * cgraphunit.c (walk_polymorphic_call_targets): Use
17125 TYPE_METHOD_BASETYPE.
17126 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
17127 on main variants only.
17128 (method_class_type): Remove.
17129 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
17130 (build_type_inheritance_graph): Likewise.
17131 * ipa-icf.c (sem_function::equals_wpa): Likewise.
17132 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
17133 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
17135 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
17137 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
17138 is_typedef_decl, typedef_variant_p): Constify.
17139 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
17140 is_typedef_decl, typedef_variant_p): Constify.
17142 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17144 * defaults.h (gen_tablejump): New function.
17145 (HAVE_tablejump): Add default value.
17147 * stmt.c: Likewise.
17149 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17151 * defaults.h (gen_store_multiple): New function.
17152 (HAVE_store_multiple): Add default value.
17153 * expr.c (move_block_from_reg): Adjust.
17155 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17157 * defaults.h (gen_load_multiple): New function.
17158 (HAVE_load_multiple): Add default value.
17159 * expr.c (move_block_to_reg): Adjust.
17161 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17163 * defaults.h (gen_mem_signal_fence): New function.
17164 (HAVE_mem_signal_fence): Add default value.
17165 * optabs.c: Adjust.
17167 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17169 * defaults.h (gen_memory_barrier): New function.
17170 (HAVE_memory_barrier): Add default value.
17171 * optabs.c: Adjust.
17173 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17175 * defaults.h (gen_mem_thread_fence): New function.
17176 (HAVE_mem_thread_fence): Add default definition.
17177 * optabs.c: Adjust.
17179 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17181 * combine.c (find_split_point): Check the value of HAVE_lo_sum
17182 instead of if it is defined.
17183 (combine_simplify_rtx): Likewise.
17184 * lra-constraints.c (process_address_1): Likewise.
17185 * config/darwin.c: Adjust.
17186 * genconfig.c (main): Always define HAVE_lo_sum.
17188 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17190 * genmatch.c (parser::parse_operation): Reject expanding
17191 operator-list inside 'for'.
17193 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17195 * genmatch.c (parser::parse_for): Reject iterator if used as
17198 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17200 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
17201 after end of id-list.
17203 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
17205 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
17206 we do not try to compute canonical type for type that does not need
17208 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
17210 * tree.h (type_with_alias_set_p): New.
17212 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
17214 * tree.c (gimple_canonical_types_compatible_p): Do not compare
17215 function attributes.
17216 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
17218 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
17220 * Makefile.in (check_gcc_parallelize): Delete.
17221 (lang_checks_parallelized): Update comment.
17223 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
17225 PR rtl-optimization/66237
17226 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
17227 location of an "as_a" cast.
17229 2015-05-22 Jeff Law <law@redhat.com>
17231 * config/pa/pa.md (non-canonical shift-add insns): Remove.
17232 (peepholes with non-canonical RTL sources): Remove.
17233 (peepholes for indexed stores of FP regs in integer modes): Match and
17234 generate canonical RTL.
17236 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
17238 PR tree-optimization/63387
17239 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
17240 ((x ord x) & (y ord y) -> (x ord y),
17241 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
17242 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
17243 vectors like scalars.
17245 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
17247 * convert.c (convert_to_integer, convert_to_vector): Include the
17248 types in the error message.
17250 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
17252 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
17255 2015-05-22 Jeff Law <law@redhat.com>
17257 * config/pa/pa.md (integer_indexed_store splitters): Use
17258 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
17259 insns -- adjusting the constant 2nd operand accordingly.
17261 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
17262 (plus (ashift X log2) Y) if it is a split point.
17264 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
17265 out of hppa_legitimize_address to handle both forms of a multiply
17267 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
17268 Always generate the ASHIFT variant as the result is not directly
17269 used in a MEM. Update comments and refactor slightly to improve
17272 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17275 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
17276 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
17277 (aarch64_composite_type_p): Return false if given type and mode are
17278 for a short vector.
17280 2015-05-22 Richard Biener <rguenther@suse.de>
17282 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
17284 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
17285 patterns when determining whether SLP is pure.
17286 (vect_is_slp_reduction): Remove check for pattern stmts.
17287 (vect_is_simple_reduction_1): Remove dead code.
17288 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
17289 (vect_get_and_check_slp_defs): Pass in the stmt number.
17290 Allow the first def in a reduction to be not a pattern stmt when
17291 the rest of the stmts def are patterns.
17292 (vect_build_slp_tree_1): Allow tcc_expression codes like
17293 SAD_EXPR and DOT_PROD_EXPR.
17294 (vect_build_slp_tree): Adjust.
17295 (vect_analyze_slp): Refactor and move BB vect error message ...
17296 (vect_slp_analyze_bb_1): ... here.
17298 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
17300 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
17301 for CSWTCH temporary.
17303 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17305 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
17306 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
17309 2015-05-22 Richard Biener <rguenther@suse.de>
17311 PR tree-optimization/66251
17312 * tree-vect-stmts.c (vectorizable_conversion): Properly
17313 set STMT_VINFO_VEC_STMT even for the SLP case.
17315 2015-05-22 Marek Polacek <polacek@redhat.com>
17317 * doc/extend.texi: Use @pxref instead of @xref.
17319 2015-05-22 hiraditya <hiraditya@msn.com>
17321 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
17324 2015-05-22 Richard Biener <rguenther@suse.de>
17326 PR tree-optimization/65701
17327 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17328 Move peeling cost models into one place. Peel for alignment
17329 for single loads only if an aligned load is cheaper than
17332 2015-05-22 Marek Polacek <polacek@redhat.com>
17335 * doc/extend.texi (Enumerator Attributes): New section.
17336 Document syntax of enumerator attributes.
17338 2015-05-22 Richard Biener <rguenther@suse.de>
17340 * tree-vect-loop.c (get_reduction_op): New function.
17341 (vect_model_reduction_cost): Use it, add reduc_index parameter.
17342 Make ready for BB reductions.
17343 (vect_create_epilog_for_reduction): Use get_reduction_op.
17344 (vectorizable_reduction): Init reduc_index to a valid value.
17345 Adjust vect_model_reduction_cost call.
17346 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
17347 operand for reduction defaults. Add SAD_EXPR support.
17348 Assert we have a neutral op for SLP reductions.
17349 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
17350 walking pattern stmt ops only recurse to SSA names.
17352 2015-05-22 Richard Biener <rguenther@suse.de>
17354 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
17355 assert with guard, remove check on detected reduction.
17356 (vect_recog_sad_pattern): Likewise.
17357 (vect_recog_widen_sum_pattern): Likewise.
17359 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17361 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
17362 __always_inline__ attribute.
17363 (vaesdq_u8): Likewise.
17364 (vaesmcq_u8): Likewise.
17365 (vaesimcq_u8): Likewise.
17366 (vsha1cq_u32): Likewise.
17367 (vsha1mq_u32): Likewise.
17368 (vsha1pq_u32): Likewise.
17369 (vsha1h_u32): Likewise.
17370 (vsha1su0q_u32): Likewise.
17371 (vsha1su1q_u32): Likewise.
17372 (vsha256hq_u32): Likewise.
17373 (vsha256h2q_u32): Likewise.
17374 (vsha256su0q_u32): Likewise.
17375 (vsha256su1q_u32): Likewise.
17376 (vmull_p64): Likewise.
17377 (vmull_high_p64): Likewise.
17379 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17381 * final.c (final_scan_insn): Don't check HAVE_peephole with the
17383 * output.h: Likewise.
17384 * genconfig.c (main): Alwways define HAVE_peephole.
17385 * genpeep.c: Don't emit checks of HAVE_peephole.
17387 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17389 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
17390 check HAVE_conditional_move with the preprocessor.
17392 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17394 * genconfig.c (main): Always define HAVE_conditional_move.
17395 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
17396 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
17399 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17401 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
17402 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
17403 and FRAME_POINTER_REGNUM with the preprocessor.
17405 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17407 * defaults.h: Add default for STACK_PUSH_CODE.
17408 * expr.c: Don't redefine STACK_PUSH_CODE.
17409 * recog.c: Likewise.
17411 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17413 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
17414 sched-deps.c: Use if instead of preprocessor checks with
17415 STACK_GROWS_DOWNWARD.
17417 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17419 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
17421 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
17422 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
17423 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
17424 * doc/tm.texi: Regenerate.
17426 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
17429 * config/i386/constraints.md (Bg): New constraint for GOT memory
17431 * config/i386/i386.md (*call_got_x32): New pattern.
17432 (*call_value_got_x32): Likewise.
17433 * config/i386/predicates.md (GOT_memory_operand): New predicate.
17435 2015-05-21 Jakub Jelinek <jakub@redhat.com>
17437 PR tree-optimization/66233
17438 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
17441 2015-05-21 Jeff Law <law@redhat.com>
17443 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
17444 than MULT for shadd sequences.
17446 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
17448 * alias.c (alias_stats): New static var.
17449 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
17450 (dump_alias_stats_in_alias_c): New function.
17451 * alias.h (dump_alias_stats_in_alias_c): Declare.
17452 * tree-ssa-alias.c (dump_alias_stats): Call it.
17454 2015-05-08 Michael Matz <matz@suse.de>
17456 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
17458 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
17459 (STMT_VINFO_STRIDED_P): ... this.
17460 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
17461 (vect_verify_datarefs_alignment): Likewise.
17462 (vect_enhance_data_refs_alignment): Likewise.
17463 (vect_analyze_data_ref_access): Likewise.
17464 (vect_analyze_data_refs): Accept strided stores.
17465 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
17466 (vect_model_load_cost): Adjust for macro rename.
17467 (vectorizable_mask_load_store): Likewise.
17468 (vectorizable_load): Likewise.
17469 (vectorizable_store): Open code strided stores.
17471 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17473 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
17474 Document sqrt_insn.
17476 2015-05-21 Richard Biener <rguenther@suse.de>
17479 * match.pd: Guard pattern optimzing (int)(float)int
17480 conversions to apply only on GIMPLE.
17482 2015-05-21 Jeff Law <law@redhat.com>
17484 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
17485 multiply-accumulate/shift-add insn generation.
17487 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
17490 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
17491 operands[1] are the same.
17493 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
17495 PR middle-end/66221
17496 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
17497 build_distinct_type_copy to copy bounds.
17499 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
17501 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
17502 Change to unsigned int.
17504 2015-05-20 Jeff Law <law@redhat.com>
17506 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
17507 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
17508 (pa_shadd_constant_p): Allow constants for shadd insns rather
17509 than valid scaling constants for memory addresses.
17510 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
17511 * config/pa/predicates.md (mem_shadd_operand): New predicate.
17512 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
17513 (shift-add insns using ASHIFT): New patterns.
17515 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
17517 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
17519 (fix_up_fall_thru_edges): Likewise.
17520 (fix_crossing_conditional_branches): Likewise. Promote jump targets
17521 from to rtx_insn to rtx_code_label where feasible.
17522 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
17523 gen_move_insn (returned type changed to rtx_insn).
17524 * builtins.c (expand_errno_check): Fix arguments of
17525 do_compare_rtx_and_jump (now expects rtx_code_label).
17526 (expand_builtin_acc_on_device): Likewise.
17527 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
17528 invert_jump (now exprects rtx_jump_insn).
17529 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
17530 (construct_init_block): Use rtx_code_label.
17531 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
17532 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
17533 calling redirect_jump.
17534 (patch_jump_insn): Likewise.
17535 (redirect_branch_edge): Likewise.
17536 (force_nonfallthru_and_redirect): Likewise.
17537 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
17539 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
17540 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
17541 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
17542 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
17543 to store the value retured by gen_label_rtx.
17544 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
17546 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
17547 (split_branches): Fix calls of redirect_jump.
17548 * dojump.c (jumpifnot): Promote argument type from rtx to
17550 (jumpifnot_1): Likewise.
17551 (jumpif): Likewise.
17552 (jumpif_1): Likewise.
17553 (do_jump_1): Likewise.
17554 (do_jump): Likewise. Use rtx_code_label when feasible.
17555 (do_jump_by_parts_greater_rtx): Likewise.
17556 (do_jump_by_parts_zero_rtx): Likewise.
17557 (do_jump_by_parts_equality_rtx): Likewise.
17558 (do_compare_rtx_and_jump): Likewise.
17559 * dojump.h: Update function prototypes.
17560 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
17562 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
17564 (emit_label_before): Likewise.
17565 (emit_jump_insn_after_noloc): Likewise.
17566 (emit_jump_insn_after_setloc): Likewise.
17567 (emit_jump_insn_after): Likewise
17568 (emit_jump_insn_before_setloc): Likewise.
17569 (emit_jump_insn_before): Likewise.
17570 (emit_label_before): Promote return type to rtx_code_label.
17571 (emit_label): Likewise.
17572 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
17573 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
17575 (emit_stack_restore): Likewise.
17576 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
17577 (do_cmp_and_jump): Likewise.
17578 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
17579 from rtx to rtx_code_label.
17580 (gen_move_insn_uncast): New function.
17581 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
17582 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
17583 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
17584 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
17585 invert_jump_1 and redirect_jump_1.
17586 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
17587 do_compare_rtx_and_jump.
17588 (expand_addsub_overflow): Likewise.
17589 (expand_neg_overflow): Likewise.
17590 (expand_mul_overflow): Likewise.
17591 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
17592 return value of gen_move_insn.
17593 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
17594 * loop-doloop.c (add_test): Use rtx_code_label.
17595 (doloop_modify): Likewise.
17596 (doloop_optimize): Likewise.
17597 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
17598 * lra-constraints.c (emit_spill_move): Remove cast of value returned
17600 (inherit_reload_reg): Add cast when calling dump_insn_slim.
17601 (split_reg): Likewise.
17602 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
17604 * optabs.c (expand_binop_directly): Remove casts of values returned by
17606 (expand_unop_direct): Likewise.
17607 (expand_abs): Likewise.
17608 (maybe_emit_unop_insn): Likewise.
17609 (maybe_gen_insn): Promote return type to rtx_insn.
17610 * optabs.h: Update prototype of maybe_gen_insn.
17611 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
17613 * recog.c (struct peep2_insn_data): Promote type of insn field to
17615 (peep2_reinit_state): Use NULL instead of NULL_RTX.
17616 (peep2_attempt): Remove casts of insn in peep2_insn_data.
17617 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
17618 * recog.h (struct insn_gen_fn): Promote return types of function
17619 pointers and operator ().from rtx to rtx_insn.
17620 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
17621 (fill_eager_delay_slots): Likewise.
17622 (relax_delay_slots): Likewise.
17623 (make_return_insns): Likewise.
17624 (dbr_schedule): Likewise.
17625 (optimize_skips): Likewise.
17626 (reorg_redirect_jump): Likewise.
17627 (fill_slots_from_thread): Likewise.
17628 * reorg.h: Update prototypes.
17629 * resource.c (find_dead_or_set_registers): Use dyn_cast to
17630 rtx_jump_insn instead of check. Use it's jump_target method.
17631 * rtl.h (rtx_jump_insn::jump_label): Define new method.
17632 (rtx_jump_insn::jump_target): Define new method.
17633 (rtx_jump_insn::set_jump_target): Define new method.
17634 * rtlanal.c (tablejump_p): Promote type of one local variable.
17635 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
17636 (sched_analyze_insn): Likewise.
17637 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
17638 (print_insn): Likewise.
17639 * stmt.c (label_rtx): Promote return type to rtx_insn.
17640 (force_label_rtx): Likewise.
17641 (jump_target_rtx): Define new function.
17642 (expand_label): Use it, get rid of one cast.
17643 (expand_naked_return): Promote rtx to rtx_code_label.
17644 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
17645 (expand_case): Use rtx_code_label instread of rtx where feasible.
17646 (expand_sjlj_dispatch_table): Likewise.
17647 (emit_case_nodes): Likewise.
17648 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
17649 * store-motion.c (insert_store): Make use of new return type of
17650 gen_move_insn and remove a cast.
17651 (replace_store_insn): Likewise.
17653 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
17655 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
17656 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
17658 2015-05-20 Jeff Law <law@redhat.com>
17660 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
17661 dispose of the jump thread path when the jump threading
17662 opportunity is cancelled.
17664 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17666 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
17667 when printing the caret character.
17669 2015-05-20 Marek Polacek <polacek@redhat.com>
17671 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
17673 2015-05-20 Marek Polacek <polacek@redhat.com>
17675 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
17676 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
17677 * gimple-fold.c (canonicalize_bool): Likewise.
17678 (same_bool_result_p): Likewise.
17679 * tree-if-conv.c (parse_predicate): Likewise.
17681 2015-05-20 Marek Polacek <polacek@redhat.com>
17683 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
17684 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
17686 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17688 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
17689 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
17692 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
17694 * config/mips/mips.h (micromips_globals): Declare.
17696 2015-05-20 David Malcolm <dmalcolm@redhat.com>
17698 * timevar.def (TV_INITIALIZE_RTL): New.
17699 * toplev.c (initialize_rtl): Use an auto_timevar to account this
17700 function's time to TV_INITIALIZE_RTL.
17702 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
17704 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
17705 gimple_build_nop calls.
17706 (chkp_find_bounds_for_elem): Likewise.
17707 (chkp_get_zero_bounds): Likewise.
17708 (chkp_get_none_bounds): Likewise.
17709 (chkp_get_bounds_by_definition): Likewise.
17710 (chkp_generate_extern_var_bounds): Likewise.
17711 (chkp_get_bounds_for_decl_addr): Likewise.
17712 (chkp_get_bounds_for_string_cst): Likewise.
17714 2015-05-20 Bin Cheng <bin.cheng@arm.com>
17716 PR tree-optimization/65447
17717 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
17718 (dump_use, dump_uses): Support to dump sub use.
17719 (record_use): New parameters to support sub use. Remove call to
17721 (record_sub_use, record_group_use): New functions.
17722 (compute_max_addr_offset, split_all_small_groups): New functions.
17723 (group_address_uses, rewrite_use_address): New functions.
17724 (strip_offset): New declaration.
17725 (find_interesting_uses_address): Call record_group_use.
17726 (add_candidate): New assertion.
17727 (infinite_cost_p): Move definition forward.
17728 (add_costs): Check INFTY cost and return immediately.
17729 (get_computation_cost_at): Clear setup cost and dependent bitmap
17731 (determine_use_iv_cost_address): Compute cost for sub uses.
17732 (rewrite_use_address_1): Rename from old rewrite_use_address.
17733 (free_loop_data): Free sub uses.
17734 (tree_ssa_iv_optimize_loop): Call group_address_uses.
17736 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17737 Jim Wilson <jim.wilson@linaro.org>
17739 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
17740 new fields loadv and storev.
17741 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
17742 Initialize loadv and storev.
17743 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
17744 (cortexa53_extra_costs): Likewise.
17745 (cortexa57_extra_costs): Likewise.
17746 (xgene1_extra_costs): Likewise.
17747 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
17750 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17752 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
17754 (cortexa8_extra_costs): Likewise.
17755 (cortexa5_extra_costs): Likewise.
17756 (cortexa7_extra_costs): Likewise.
17757 (cortexa12_extra_costs): Likewise.
17758 (cortexa15_extra_costs): Likewise.
17759 (v7m_extra_costs): Likewise.
17761 2015-05-20 Jeff Law <law@redhat.com>
17763 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
17764 instead of open-coded version. Also delete the jump thread created
17765 within this function.
17767 2015-05-20 Alan Modra <amodra@gmail.com>
17769 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
17770 stack adjusting insn. Formatting.
17771 (rs6000_emit_prologue): Track stack adjusting insn, and use of
17772 r12. If possible, emit first -fsplit-stack arg pointer insn
17773 before stack adjust. Don't use r12 to save cr if split-stack.
17775 2015-05-20 Alan Modra <amodra@gmail.com>
17777 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
17779 (rs6000_supports_split_stack): New function.
17780 * gcc/config/rs6000/rs6000.c (machine_function): Add
17781 split_stack_arg_pointer.
17782 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
17783 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
17784 rather than virtual_incoming_args_rtx.
17785 (rs6000_va_start): Likewise.
17786 (split_stack_arg_pointer_used_p): New function.
17787 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
17788 (morestack_ref): New var.
17789 (gen_add3_const, rs6000_expand_split_stack_prologue,
17790 rs6000_internal_arg_pointer, rs6000_live_on_entry,
17791 rs6000_split_stack_space_check): New functions.
17792 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
17793 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
17794 (UNSPECV_SPLIT_STACK_RETURN): Define.
17795 (split_stack_prologue, load_split_stack_limit,
17796 load_split_stack_limit_di, load_split_stack_limit_si,
17797 split_stack_return, split_stack_space_check): New expands and insns.
17798 * gcc/config/rs6000/rs6000-protos.h
17799 (rs6000_expand_split_stack_prologue): Declare.
17800 (rs6000_split_stack_space_check): Declare.
17802 2015-05-20 Alan Modra <amodra@gmail.com>
17804 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
17805 (direct_return): Test vrsave_size rather than vrsave_mask.
17806 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
17807 (rs6000_emit_epilogue): Likewise.
17809 2015-05-20 Alan Modra <amodra@gmail.com>
17811 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
17812 when not saving registers.
17813 (debug_stack_info): Adjust to omit printing unused offsets,
17815 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
17818 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17821 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
17822 value_type to const char *.
17824 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
17826 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
17827 to build a biarch toolchain again.
17829 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17831 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
17832 or implicit declarations.
17833 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
17835 (get_odr_type): Check type has linkage before adding bases.
17836 (register_odr_type): Check that type has linkage before adding it.
17837 (type_known_to_have_no_deriavations_p): Rename to ..
17838 (type_known_to_have_no_derivations_p): This one.
17839 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
17840 (type_known_to_have_no_derivations_p): This one.
17841 * ipa-polymorphic-call.c
17842 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
17845 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17847 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
17848 (layout_type): Use RECORD_OR_UNION_TYPE_P.
17850 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17852 * config/s390/s390.c (s390_vector_bool_type_p): New function.
17853 (s390_invalid_binary_op): New function.
17854 (TARGET_INVALID_BINARY_OP): Define macro.
17856 2015-05-19 David Sherwood <david.sherwood@arm.com>
17858 * loop-invariant.c (create_new_invariant): Don't calculate address cost
17859 if mode is not a scalar integer.
17860 (get_inv_cost): Increase computational cost for unused invariants.
17862 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17864 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
17865 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
17866 * config/s390/s390-builtin-types.def: New file.
17867 * config/s390/s390-builtins.def: New file.
17868 * config/s390/s390-builtins.h: New file.
17869 * config/s390/s390-c.c: New file.
17870 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
17871 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
17872 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
17873 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
17875 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
17877 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
17878 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
17879 variable definitions.
17880 (s390_const_operand_ok): New function.
17881 (s390_expand_builtin): Rewrite.
17882 (s390_init_builtins): New function.
17883 (s390_handle_vectorbool_attribute): New function.
17884 (s390_attribute_table): Add s390_vector_bool attribute.
17885 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
17886 (s390_branch_condition_mask): Generate masks for new modes.
17887 (s390_expand_vec_compare_cc): New function.
17888 (s390_mangle_type): Add mangling for vector bool types.
17889 (enum s390_builtin): Remove.
17890 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
17892 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
17893 s390_cpu_cpp_builtins.
17894 (REGISTER_TARGET_PRAGMAS): New macro.
17895 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
17896 (insn_cmp mode attribute): Add new CC modes.
17897 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
17898 (lcbb): New pattern definition.
17899 * config/s390/s390intrin.h: Include vecintrin.h.
17900 * config/s390/t-s390: New file.
17901 * config/s390/vecintrin.h: New file.
17902 * config/s390/vector.md: Include vx-builtins.md.
17903 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
17906 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17908 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
17910 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
17911 (s390_select_ccmode): Likewise.
17912 (s390_canonicalize_comparison): Swap operands if necessary.
17913 (s390_expand_vec_compare_scalar): Expand DFmode compare using
17914 single element vector instructions.
17915 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
17916 (s390_branch_condition_mask): Generate CC masks for the new modes.
17917 * config/s390/s390.md (v0, vf, vd): New mode attributes.
17918 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
17919 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
17920 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
17921 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
17922 (*extend<DSF:mode><BFP:mode>2): New insn definition.
17923 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
17924 (extend<DSF:mode><BFP:mode>2): Turn into expander.
17925 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
17926 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
17927 (sqrt<mode>2): Add vector instruction.
17929 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17931 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
17933 * config/s390/predicates.md (const0_operand, constm1_operand)
17934 (constable_operand): Accept vector operands.
17935 * config/s390/s390-modes.def: Add supported vector modes.
17936 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
17937 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
17938 (s390_bytemask_vector_p, s390_expand_vec_strlen)
17939 (s390_expand_vec_compare, s390_expand_vcond)
17940 (s390_expand_vec_init): Add prototypes.
17941 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
17942 (s390_vector_mode_supported_p): New function.
17943 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
17944 (s390_contiguous_bitmask_vector_p): New function.
17945 (s390_bytemask_vector_p): New function.
17946 (s390_split_ok_p): Vector regs don't work either.
17947 (regclass_map): Add VEC_REGS.
17948 (s390_legitimate_constant_p): Handle vector constants.
17949 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
17950 (legitimate_reload_vector_constant_p): New function.
17951 (s390_preferred_reload_class): Handle CONST_VECTOR.
17952 (s390_reload_symref_address): Likewise.
17953 (s390_secondary_reload): Vector memory instructions only support
17954 short displacements. Rename reload*_nonoffmem* to reload*_la*.
17955 (s390_emit_ccraw_jump): New function.
17956 (s390_expand_vec_strlen): New function.
17957 (s390_expand_vec_compare): New function.
17958 (s390_expand_vcond): New function.
17959 (s390_expand_vec_init): New function.
17960 (s390_dwarf_frame_reg_mode): New function.
17961 (print_operand): Handle addresses with 'O' and 'R' constraints.
17962 (NR_C_MODES, constant_modes): Add vector modes.
17963 (s390_output_pool_entry): Handle vector constants.
17964 (s390_hard_regno_mode_ok): Handle vector registers.
17965 (s390_class_max_nregs): Likewise.
17966 (s390_cannot_change_mode_class): New function.
17967 (s390_invalid_arg_for_unprototyped_fn): New function.
17968 (s390_function_arg_vector): New function.
17969 (s390_function_arg_float): Remove size variable.
17970 (s390_pass_by_reference): Handle vector arguments.
17971 (s390_function_arg_advance): Likewise.
17972 (s390_function_arg): Likewise.
17973 (s390_return_in_memory): Vector values are returned in a VR if
17975 (s390_function_and_libcall_value): Handle vector arguments.
17976 (s390_gimplify_va_arg): Likewise.
17977 (s390_call_saved_register_used): Consider the arguments named.
17978 (s390_conditional_register_usage): Disable v16-v31 for non-vec
17980 (s390_preferred_simd_mode): New function.
17981 (s390_support_vector_misalignment): New function.
17982 (s390_vector_alignment): New function.
17983 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
17984 (TARGET_VECTOR_MODE_SUPPORTED_P)
17985 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
17986 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17987 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
17988 (TARGET_VECTOR_ALIGNMENT): Define target macro.
17989 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
17990 (FIRST_PSEUDO_REGISTER): Increase value.
17991 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
17992 (VECTOR_REG_P): Define macros.
17993 (FIXED_REGISTERS, CALL_USED_REGISTERS)
17994 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
17995 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
17996 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
17997 Add vector registers.
17998 (CANNOT_CHANGE_MODE_CLASS): Call C function.
17999 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
18000 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
18002 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
18003 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
18004 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
18005 (VR*_REGNUM): New constants.
18006 (ALL): New mode iterator.
18007 (INTALL): Remove mode iterator.
18009 (movti): Implement TImode moves for VRs.
18010 Disable TImode splitter for VR targets.
18011 Implement splitting TImode GPR<->VR moves.
18012 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
18013 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
18014 reload<mode>_la_in, reload<mode>_la_out.
18015 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
18016 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
18017 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
18018 (mov<mode> SF SD): Prefer lder, lde for loading.
18019 Add lrl and strl instructions.
18020 Add vector instructions.
18021 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
18022 Call s390_expand_vec_strlen on z13.
18023 (*cc_to_int): Change predicate to nonimmediate_operand.
18024 (addti3): Rename to *addti3. New expander.
18025 (subti3): Rename to *subti3. New expander.
18026 * config/s390/vector.md: New file.
18028 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18030 * common/config/s390/s390-common.c (processor_flags_table): Add
18032 * config.gcc: Add z13.
18033 * config/s390/s390-opts.h (enum processor_type): Add
18034 PROCESSOR_2964_Z13.
18035 * config/s390/s390.c (s390_adjust_priority): Check for
18036 PROCESSOR_2964_Z13.
18037 (s390_reorg): Likewise.
18038 (s390_sched_reorder): Likewise.
18039 (s390_sched_variable_issue): Likewise.
18040 (s390_loop_unroll_adjust): Likewise.
18041 (s390_option_override): Likewise. Default to -mvx when available.
18042 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
18043 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
18044 (TARGET_VX_ABI): Define macros.
18046 (TARGET_DEFAULT): Add MASK_OPT_VX.
18047 * config/s390/s390.md ("cpu" attribute): Add z13.
18048 ("cpu_facility" attribute): Add vec.
18049 * config/s390/s390.opt (processor_type): Add z13.
18050 (mvx): New options.
18051 * doc/invoke.texi: Add z13 option for -march.
18053 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18055 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
18056 mode check to make sure that only scalar integer values are
18059 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
18061 * tree.c (verify_type_variant): Fix #undef.
18062 (gimple_canonical_types_compatible_p): Move here from lto.c
18063 (verify_type): Verify TYPE_CANONICAL compatibility.
18064 * tree.h (gimple_canonical_types_compatible_p): Declare.
18066 2015-05-19 Jakub Jelinek <jakub@redhat.com>
18068 PR middle-end/66199
18069 * tree.h (OMP_TEAMS_COMBINED): Define.
18070 * gimplify.c (enum gimplify_omp_var_data): Add
18071 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
18072 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
18073 (omp_notice_variable): Accept both ORT_TEAMS
18074 and ORT_COMBINED_TEAMS. Don't recurse if
18075 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
18076 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
18078 (omp_no_lastprivate): New function.
18079 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
18080 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
18081 notice_outer and set appropriate bits, otherwise make
18082 sure default(none) combined constructs won't complain.
18083 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
18084 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
18085 omp_no_lastprivate either remove the clause or turn it
18086 into OMP_CLAUSE_PRIVATE.
18087 (gimplify_omp_for): Fix up handling of implicit
18088 lastprivate or linear iterators.
18089 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
18090 ORT_COMBINED_TEAMS.
18091 * omp-low.c (lower_omp_for_lastprivate): For combined
18092 for simd use fd.loop.n2 from the for rather than simd.
18094 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18096 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
18097 instead of gen_rtx_raw_REG.
18098 (cris_expand_epilogue): Likewise.
18099 * config/microblaze/microblaze.c (microblaze_classify_address):
18101 * config/sparc/sparc.md: Likewise.
18103 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
18105 * config/alpha/alpha.c (alpha_legitimize_reload_address)
18106 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
18107 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
18108 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
18109 Use CASE_CONST_SCALAR_INT.
18110 (print_operand) <case 'M'>: Use mode_width_operand to check the
18111 value of the constant.
18112 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
18113 * config/alpha/predicates.md (input_operand): Use general_operand
18114 instead of match_code as operand check.
18115 (symbolic_operand): Use match_code with subexpression digits.
18116 * config/alpha/constraints.md (Q): Ditto.
18118 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18120 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
18122 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18124 * config/s390/s390.c (s390_secondary_reload): Fix check for
18125 load/store relative.
18127 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18129 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
18130 alternative_mask to uint64_t.
18132 2015-05-19 Jakub Jelinek <jakub@redhat.com>
18134 PR tree-optimization/66187
18135 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
18136 Pass TYPE_SIGN to tree_int_cst_min_precision. If
18137 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
18139 2015-05-19 David Malcolm <dmalcolm@redhat.com>
18141 * diagnostic.c (diagnostic_report_current_module): Strengthen
18142 local "new_map" from const line_map * to
18143 const line_map_ordinary *.
18144 * genmatch.c (error_cb): Likewise for local "map".
18145 (output_line_directive): Likewise for local "map".
18146 * input.c (expand_location_1): Likewise for local "map".
18147 Pass NULL rather than &map to
18148 linemap_unwind_to_first_non_reserved_loc, since the value is never
18149 read from there, and the value written back not read from here.
18150 (is_location_from_builtin_token): Strengthen local "map" from
18151 const line_map * to const line_map_ordinary *.
18152 (dump_location_info): Strengthen locals "map" from
18153 line_map *, one to const line_map_ordinary *, the other
18154 to const line_map_macro *.
18155 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
18156 const line_map * to const line_map_macro *.
18157 (maybe_unwind_expanded_macro_loc): Add a call to
18158 linemap_check_macro when writing to the "map" field of the
18160 Introduce local const line_map_ordinary * "ord_map", using it in
18161 place of "map" in the part of the function where we know we have
18162 an ordinary map. Strengthen local "m" from const line_map * to
18163 const line_map_ordinary *.
18165 2015-05-19 Nick Clifton <nickc@redhat.com>
18168 * config/msp430/msp430.md (zero_extendhisi2): Add support for
18169 separate source and destination registers.
18171 2015-05-19 Richard Biener <rguenther@suse.de>
18173 PR tree-optimization/66165
18174 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
18175 for no load permutation.
18177 PR tree-optimization/66185
18178 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
18179 when building the SLP node from scalars.
18181 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
18182 Tristan Gingold <gingold@adacore.com>
18184 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
18185 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
18186 (expand_stack_restore): Call record_new_stack_level.
18187 (expand_stack_save): Do not call do_pending_stack_adjust.
18188 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
18189 * calls.c (expand_call): Call record_new_stack_level for alloca.
18190 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
18191 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
18192 (update_sjlj_context): New global function.
18193 * except.h (update_sjlj_context): Declare.
18194 * explow.c (record_new_stack_level): New global function.
18195 (allocate_dynamic_stack_space): Call record_new_stack_level.
18196 * explow.h (record_new_stack_level): Declare.
18197 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
18198 * cfgrtl.c (duplicate_insn_chain): Likewise.
18200 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18202 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
18203 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
18204 STACK_GROWS_DOWNWARD as normal if.
18205 (expand_call): Likewise.
18207 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
18210 * config/sh/sh.md (*round_int_even): New insn_and_split and
18211 accompanying new unnamed split.
18213 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18215 * bitmap.c (bitmap_set_range): Handle count==1 specially.
18216 (bitmap_clear_range): Likewise.
18217 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
18218 bitmap_set_range unconditionally.
18219 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
18220 * df-scan.c (df_mark_reg): Likewise.
18221 * haifa-sched.c (setup_ref_regs): Likewise.
18222 * sched-rgn.c (update_live_1): Likewise.
18224 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18226 * regs.h (END_HARD_REGNO): Delete.
18227 (END_REGNO): Move to...
18229 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
18230 * caller-save.c (mark_set_regs): Likewise.
18231 * combine.c (move_deaths, distribute_notes): Likewise.
18232 * cse.c (invalidate, invalidate_for_call): Likewise.
18233 * df-scan.c (df_ref_record): Likewise.
18234 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
18235 (record_last_reg_set_info): Likewise.
18236 * reg-stack.c (convert_regs_exit): Likewise.
18237 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
18238 * resource.c (update_live_status): Likewise.
18239 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
18241 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18243 * rtl.h (reg_info): Add an nregs field.
18244 (REG_NREGS): Use it.
18245 (SET_REGNO_RAW): Delete.
18246 (set_regno_raw): New function.
18247 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
18248 (END_REGNO): Redefine in terms of REG_NREGS.
18249 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
18251 * emit-rtl.c (set_mode_and_regno): Likewise.
18252 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
18253 instead of SET_REGNO_RAW.
18255 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18257 * rtl.h (PUT_MODE_RAW): New macro.
18258 (PUT_REG_NOTE_KIND): Use it.
18259 (set_mode_and_regno): Declare.
18260 (gen_raw_REG): Change regno to "unsigned int".
18261 (gen_rtx_REG): Change "unsigned" to "unsigned int".
18262 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
18263 use set_mode_and_regno to change the mode of registers.
18264 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
18265 * emit-rtl.c (set_mode_and_regno): New function.
18266 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
18267 * caller-save.c (reg_save_code): Use set_mode_and_regno.
18268 * expr.c (init_expr_target): Likewise.
18269 * ira.c (setup_prohibited_mode_move_regs): Likewise.
18270 * postreload.c (reload_cse_simplify_operands): Likewise.
18272 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18274 * caller-save.c (init_caller_save): Use word_mode and
18275 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
18276 * expr.c (init_expr_target): Likewise.
18277 * ira.c (setup_prohibited_mode_move_regs): Likewise.
18278 * postreload.c (reload_cse_regs_1): Likewise.
18280 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18282 * rtl.def (REG): Change format to "r".
18283 * rtl.h (rtunion): Remove rt_reg.
18284 (reg_info): New structure.
18285 (rtx_def): Add reg field to main union.
18286 (X0REGATTR): Delete.
18287 (REG_CHECK): New macro.
18288 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
18289 * rtl.c (rtx_format): Document "r".
18290 (rtx_code_size): Handle REG specially.
18291 * gengenrtl.c (special_format): Return true for formats
18293 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
18294 Deal with REG_ATTRS after the field loop.
18295 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
18296 * expmed.c (init_expmed): Call gen_raw_REG instead of
18298 * expr.c (init_expr_target): Likewise.
18299 * regcprop.c (maybe_mode_change): Likewise.
18300 * varasm.c (make_decl_rtl): Likewise.
18301 * final.c (leaf_renumber_regs_insn): Return early after
18303 * genemit.c (gen_exp): Handle 'r' fields.
18304 * genpeep.c (match_rtx): Likewise.
18305 * gensupport.c (subst_pattern_match): Likewise.
18306 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
18307 (alter_constraints, subst_dup): Likewise.
18308 * read-rtl.c (read_rtx_code): Likewise.
18309 * print-rtl.c (print_rtx): Likewise.
18310 * genrecog.c (find_operand, find_matching_operand): Likewise.
18311 (validate_pattern, match_pattern_2): Likewise.
18312 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
18313 (rtx_test::regno_field): New function.
18314 (operator ==, safe_to_hoist_p, transition_parameter_type)
18315 (parameter_type_string, print_parameter_value)
18316 (print_nonbool_test, print_test): Handle new enum values.
18317 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
18318 * lra-constraints.c (operands_match_p): Likewise.
18320 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18322 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
18323 Change type of new_regno to unsigned int.
18324 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
18325 new_regno to unsigned int.
18326 (df_ref_change_reg_with_loc): Remove old_regno parameter.
18327 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
18328 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
18329 (SET_REGNO_RAW): Add space after ",".
18331 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18333 * rtl.h (REG_NREGS): New macro
18334 * alias.c (record_set): Use it.
18335 * cfgcleanup.c (mark_effect): Likewise.
18336 * combine.c (likely_spilled_retval_1): Likewise.
18337 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
18338 (move_deaths, distribute_notes): Likewise.
18339 * cselib.c (cselib_record_set): Likewise.
18340 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
18341 * df-scan.c (df_mark_reg): Likewise.
18342 * dse.c (look_for_hardregs): Likewise.
18343 * dwarf2out.c (reg_loc_descriptor): Likewise.
18344 (multiple_reg_loc_descriptor): Likewise.
18345 * expr.c (write_complex_part, read_complex_part): Likewise.
18346 (emit_move_complex): Likewise.
18347 * haifa-sched.c (setup_ref_regs): Likewise.
18348 * ira-lives.c (mark_hard_reg_live): Likewise.
18349 * lra.c (lra_set_insn_recog_data): Likewise.
18350 * mode-switching.c (create_pre_exit): Likewise.
18351 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
18352 (reload_combine_recognize_pattern): Likewise.
18353 (reload_combine_note_use, move2add_record_mode): Likewise.
18354 (reload_cse_move2add): Likewise.
18355 * reg-stack.c (subst_stack_regs_pat): Likewise.
18356 * regcprop.c (kill_value, copy_value): Likewise.
18357 (copyprop_hardreg_forward_1): Likewise.
18358 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
18359 (build_def_use): Likewise.
18360 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
18361 (deps_analyze_insn): Likewise.
18362 * sched-rgn.c (check_live_1, update_live_1): Likewise.
18363 * sel-sched.c (count_occurrences_equiv): Likewise.
18364 * valtrack.c (dead_debug_insert_temp): Likewise.
18366 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18368 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
18369 * dse.c (note_add_store): Likewise.
18370 * ira-lives.c (mark_hard_reg_dead): Likewise.
18371 * loop-invariant.c (mark_reg_store): Likewise.
18372 (mark_reg_death): Likewise.
18373 * postreload.c (reload_combine): Likewise.
18374 (reload_combine_note_store): Likewise.
18375 (reload_combine_note_use): Likewise.
18376 * recog.c (peep2_reg_dead_p): Likewise.
18378 2015-05-19 Alan Modra <amodra@gmail.com>
18380 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
18381 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
18382 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
18384 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
18385 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
18386 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
18387 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
18389 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
18391 * config/mips/mips.md (JOIN_MODE): New mode iterator.
18392 (join2_load_Store<JOIN_MODE:mode>): New pattern.
18393 (join2_loadhi): Likewise.
18394 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
18395 load-load and store-stores.
18396 * config/mips/mips.opt (mload-store-pairs): New option.
18397 (TARGET_LOAD_STORE_PAIRS): New macro.
18398 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
18399 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
18400 * config/mips/mips.c (mips_load_store_bonding_p): New function.
18402 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
18404 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
18406 * dojump.c (do_compare_rtx_and_jump): Likewise.
18407 * expmed.c (emit_store_flag_1): Likewise.
18408 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
18409 * final.c (sprint_ul): Use std::reverse for reversing a string.
18410 * fold-const.c (extract_muldiv_1): Use std::swap.
18411 * genmodes.c (emit_mode_int_n): Likewise.
18412 * ifcvt.c (dead_or_predicable): Likewise.
18413 * ira-build.c (ira_merge_live_ranges): Likewise.
18414 (swap_allocno_copy_ends_if_necessary): Likewise.
18415 * ira.c (ira_setup_alts): Likewise.
18416 * loop-iv.c (iv_analyze_expr): Likewise.
18417 (implies_p): Likewise.
18418 (canon_condition): Likewise.
18419 * lra-constraints.c (swap_operands): Likewise.
18420 * lra-lives.c (lra_merge_live_ranges): Likewise.
18421 * omega.c (swap): Remove.
18423 (omega_unprotect_1): Use std::swap.
18424 (omega_solve_geq): Likewise.
18425 * optabs.c (expand_binop_directly): Likewise.
18426 (expand_binop): Likewise.
18427 (emit_conditional_move): Likewise.
18428 (emit_conditional_add): Likewise.
18429 * postreload.c (reload_cse_simplify_operands): Likewise.
18430 * reg-stack.c (emit_swap_insn): Likewise.
18431 (swap_to_top): Likewise.
18432 (compare_for_stack_reg): Likewise.
18433 (subst_asm_stack_regs): Likewise.
18434 * reload.c (find_reloads): Likewise.
18435 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
18436 * sel-sched.c (invoke_reorder_hooks): Likewise.
18437 (create_block_for_bookkeeping): Likewise.
18438 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
18439 (lambda_matrix_right_hermite): Use std::swap.
18440 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
18441 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
18442 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
18443 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
18444 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
18445 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
18446 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
18447 * tree-vrp.c (compare_ranges): Likewise.
18448 * var-tracking.c (add_with_sets): Likewise.
18449 (vt_find_locations): Likewise.
18451 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
18453 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
18455 (FBSD_ENDFILE_SPEC): Likewise.
18456 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
18457 config/freebsd-spec.h.
18458 (ENDFILE_SPEC): Likewise.
18460 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
18461 Richard Henderson <rth@redhat.com>
18464 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
18465 Check for a memory location that is not a reference (using an AND)
18466 to an unaligned location here.
18467 * config/alpha/predicates.md (normal_memory_operand): Remove.
18469 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
18471 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
18472 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
18474 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
18476 * config/mips/mips.c (micromips_globals): New variable.
18477 (mips_set_compression_mode): Save and reinitialize target-dependent
18478 state for microMIPS.
18480 2015-05-18 Martin Liska <mliska@suse.cz>
18482 * dbgcnt.def: Add new counter.
18483 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
18485 2015-05-18 Martin Liska <mliska@suse.cz>
18487 * dbgcnt.def: Sort counters.
18488 * opts.c (common_handle_option): Do not compile if
18489 -fdbg-cnt-list is enabled.
18491 2015-05-18 Tom de Vries <tom@codesourcery.com>
18493 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
18494 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
18495 address operator to va_list operand.
18496 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
18498 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
18500 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
18501 * config/s390/s390.c (s390_gimplify_va_arg): Same.
18502 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
18504 2015-05-18 Tom de Vries <tom@codesourcery.com>
18506 * tree-ssa-tail-merge.c: Fix whitespace.
18508 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
18510 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
18511 cortex-a17, and cortex-a17.cortex-a7.
18513 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
18516 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
18518 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
18521 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
18522 QImode inner modes for TARGET_AVX512BW. Force mask operand
18523 to a register for AVX512F modes.
18525 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18527 * toplev.c (emit_debug_global_declarations): Do not output debug info
18528 when doing slim LTO objects.
18530 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18532 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
18533 odr_types_equivalent_p): Declare.
18534 (odr_type_p): Use gcc_checking_assert.
18535 (type_in_anonymous_namespace_p) Declare.
18536 (type_with_linkage_p): Declare.
18537 * common.opt (Wlto-type-mismatch): New warning.
18538 * ipa-devirt.c (compound_type_base): New function.
18539 (odr_or_derived_type_p): New function.
18540 (odr_types_equivalent_p): New function.
18541 (add_type_duplicate): Simplify.
18542 (type_with_linkage_p): Add hack to prevent false positives on C types
18543 (type_in_anonymous_namespace_p): Likewise.
18544 * tree.c (need_assembler_name_p): Use type_with_linkage.
18545 * tree.h (type_in_anonymous_namespace_p): Remove.
18546 * doc/invoke.texi (-Wlto-type-mismatch): Document
18548 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18550 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
18551 (verify_type): Verify STRING_FLAG.
18553 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
18556 * tree-pretty-print.c (percent_K_format): Replace locus pointer
18557 with accessor function.
18558 * tree-diagnostic.c (diagnostic_report_current_function): Use
18559 diagnostic_location function.
18560 (maybe_unwind_expanded_macro_loc): Likewise.
18561 (virt_loc_aware_diagnostic_finalizer): Likewise.
18562 (default_tree_printer): Replace locus pointer with accessor function.
18563 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
18564 (diagnostic_set_info_translated): Initialize second location.
18565 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
18566 (diagnostic_show_locus): Handle two locations. Call
18567 diagnostic_print_caret_line.
18568 (diagnostic_print_caret_line): New.
18569 (default_diagnostic_starter): Use diagnostic_location function.
18570 (diagnostic_report_diagnostic): Use diagnostic_location function.
18571 (verbatim): Do not set text.locus.
18572 * diagnostic.h (struct diagnostic_info): Remove location field.
18573 (struct diagnostic_context): Make caret_chars an array of two.
18574 (diagnostic_location): New inline.
18575 (diagnostic_expand_location): Handle two locations.
18576 (diagnostic_same_line): New inline.
18577 (diagnostic_print_caret_line): Declare.
18578 (CARET_LINE_MARGIN): New constant.
18579 * pretty-print.c (pp_printf): Do not set text.locus.
18580 (pp_verbatim): Do not set text.locus.
18581 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
18582 (struct text_info): Replace locus pointer with locations
18583 array. Add accessor functions.
18585 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
18586 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18589 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
18590 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
18591 large constants in register instead of splitting them.
18593 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
18596 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
18597 replacements in memory addresses.
18598 (get_unaligned_address): Ditto.
18600 2015-05-16 James Bowman <james.bowman@ftdichip.com>
18602 * config/ft32/*: New files for FT32 port.
18603 * doc/install.texi: Add FT32 information.
18604 * doc/invoke.texi: Add FT32 information.
18605 * doc/md.texi: Add FT32 information.
18606 * doc/contrib.texi: Self added.
18608 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
18610 PR tree-optimization/64454
18611 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
18612 (-1 - A -> ~A): Remove unnecessary condition.
18614 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
18616 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
18617 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
18618 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
18620 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
18622 * ipa-chkp.h (chkp_wrap_function): New.
18623 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
18624 (chkp_wrap_function_name): New.
18625 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
18626 to get wrapper name.
18627 * lto-cgraph.c: Include ipa-chkp.h.
18628 (input_cgraph_1): Avoid alias chain for wrappers.
18630 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18632 PR middle-end/66134
18633 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
18634 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
18636 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18638 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
18639 (AARCH64_FL_SLOWMUL): Delete.
18640 (AARCH64_FL_CRC): Redefine to 1<<3.
18641 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
18643 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18645 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
18648 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
18650 * config/alpha/alpha.md (extendqidi2): Use general_operand
18651 instead of some_operand for operand[1] predicate.
18652 (extendhidi2): Ditto.
18653 (cbranchdi4): Use general_operand instead of some_operand
18654 for operand[1] and operands[2] predicates.
18655 (cstoredi4): Ditto.
18656 * config/alpha/predicates.md (some_operand): Remove unused predicate.
18657 (some_ni_operand): Ditto.
18659 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
18661 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
18662 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
18663 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
18664 low part of the constant using alpha_emit_set_const_1.
18665 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
18667 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
18669 * varasm.c (output_constant_pool_1): Pass down alignment from
18670 constant pool entry's descriptor to output_constant_pool_2.
18671 (output_object_block): Add comment prior to call to
18672 output_constant_pool_1.
18674 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
18676 PR rtl-optimization/65862
18677 * target.def (ira_change_pseudo_allocno_class): New hook.
18678 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
18680 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
18681 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
18683 * ira-costs.c (find_costs_and_classes): Call the hook and change
18684 classes when it is necessary.
18685 * doc/tm.texi: Update.
18687 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
18689 * config/i386/i386.md (sibcall_memory): Check that register with
18690 callee address is not also used as one of the arguments, instead
18691 of checking that it is not live after the sibcall.
18692 (sibcall_pop_memory): Ditto.
18693 (sibcall_value_memory): Ditto.
18694 (sibcall_value_pop_memory): Ditto.
18696 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
18698 * generic-match-head.c (types_match): Handle non-types.
18699 * gimple-match-head.c (types_match): Likewise.
18700 * match.pd: Remove unnecessary TREE_TYPE for types_match.
18702 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
18704 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
18705 (csneg3<mode>_insn): Enable expansion of pattern.
18707 2015-05-14 Nick Clifton <nickc@redhat.com>
18709 * config/rl78/rl78.c (rl78_select_section): Select the correct
18710 default section based upon the category of the decl.
18712 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
18714 PR rtl-optimization/30967
18715 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
18716 destination mode for the cost of scc patterns.
18718 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
18720 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
18721 using SWIM248 mode iterator.
18722 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
18723 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
18724 for operand[2] constraint.
18725 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
18727 2015-05-13 Jakub Jelinek <jakub@redhat.com>
18729 PR middle-end/66133
18730 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
18731 make sure it is never noreturn, even when the task body does not
18733 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
18734 right before GIMPLE_OMP_RETURN.
18735 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
18736 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
18737 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
18739 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18741 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
18742 * tree-ssa-math-opts.c: Include params.h
18743 (pow_synth_sqrt_info): New struct.
18744 (representable_as_half_series_p): New function.
18745 (get_fn_chain): Likewise.
18746 (print_nested_fn): Likewise.
18747 (dump_fractional_sqrt_sequence): Likewise.
18748 (dump_integer_part): Likewise.
18749 (expand_pow_as_sqrts): Likewise.
18750 (gimple_expand_builtin_pow): Use above to attempt to expand
18751 pow as series of square roots. Removed now unused variables.
18753 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
18755 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
18756 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
18757 Remove *p0 and *p1 arguments. Rewrite function.
18758 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
18759 (alpha_split_const_mov): Update calls to alpha_extract_integer and
18760 alpha_emit_set_long_const.
18761 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
18762 (alpha_output_mi_thunk_osf): Ditto.
18763 * config/alpha/alpha.md (movti): Do not check operands[1]
18766 2015-05-13 Richard Biener <rguenther@suse.de>
18768 PR tree-optimization/66129
18769 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
18771 (vect_schedule_slp_instance): Fix typo.
18773 2015-05-13 David Malcolm <dmalcolm@redhat.com>
18775 * common.opt (fdump-internal-locations): New option.
18776 * input.c: Include diagnostic-core.h.
18777 (get_end_location): New function.
18778 (write_digit): New function.
18779 (write_digit_row): New function.
18780 (dump_location_range): New function.
18781 (dump_labelled_location_range): New function.
18782 (dump_location_info): New function.
18783 * input.h (dump_location_info): New prototype.
18784 * toplev.c (compile_file): Handle flag_dump_locations.
18786 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
18788 * gimple-expr.h (is_gimple_constant): Reorder.
18789 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
18791 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
18793 * combine.c (simplify_set): When generating a CC set, if the
18794 source already is in the correct mode, do not wrap it in a
18795 compare. Simplify the rest of that code.
18797 2015-05-13 Richard Biener <rguenther@suse.de>
18799 PR tree-optimization/66123
18800 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
18803 2015-05-13 Richard Biener <rguenther@suse.de>
18805 PR middle-end/66110
18806 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
18808 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
18810 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
18812 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
18813 * aclocal.m4: Regenerated with automake-1.11.6.
18815 2015-05-13 Tom de Vries <tom@codesourcery.com>
18817 PR tree-optimization/66010
18818 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
18819 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
18820 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
18821 and rval based on do_deref.
18823 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18826 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
18827 link time constants into adress expressions and therefore set
18830 2015-05-13 Jakub Jelinek <jakub@redhat.com>
18833 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
18834 Use SWI248 iterator instead of SWI.
18835 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
18836 Use eq_attr "alternative" "0" instead of match_test in
18837 length_immediate attribute computation.
18838 (*mulvhi4, *mulvhi4_1): New define_insns.
18841 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
18842 SIGNED to get precision of non-negative value.
18844 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18847 * function.c (diddle_return_value_1): Process bounds first.
18848 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
18851 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18853 PR rtl-optimization/64616
18854 * loop-invariant.c (can_move_invariant_reg): New.
18855 (move_invariant_reg): Call above new function to decide whether
18856 instruction can just be moved, skipping creation of temporary
18859 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18861 PR target/pr66047.c
18862 * i386.c (ix86_function_sseregparm): Only return -1 if local function
18863 with implied regparm is called from -mno-sse function.
18864 (init_cumulative_args): Output error if ix86_function_sseregparm
18865 return -1 and SSE register would be needed.
18866 (function_arg_advance_32): Likewise.
18867 (function_arg_32): Likewise.
18868 * i386.h (ix86_args): Add decl field.
18870 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18873 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
18874 inlines across optimization boundary.
18876 2015-05-12 Jason Merrill <jason@redhat.com>
18878 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
18879 string literal and macro name.
18881 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
18883 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
18884 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
18885 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
18887 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18889 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
18890 (-Wmisleading-indentation): New option.
18891 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
18893 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
18895 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
18896 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
18897 (alpha_extract_integer): Ditto.
18898 (alpha_legitimate_constant_p): Ditto.
18899 (alpha_split_tmode_pair): Ditto.
18900 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
18901 (alpha_expand_mov): Ditto.
18902 (print_operand): Remove handling of 'H' modifier.
18903 <case 'm'>: Remove CONST_DOUBLE handling.
18904 (summarize_insn): Handle CONST_WIDE_INT.
18905 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
18907 (movti): Handle CONST_WIDE_INT.
18908 * config/alpha/constraints.md ('H'): Remove constraint definition.
18909 ('G'): Do not match MODE_FLOAT class.
18910 * config/alpha/predicates.md (const0_operand): Also match
18912 (non_add_const_operand): Ditto.
18913 (non_zero_const_operand): Ditto.
18914 (some_operand): Ditto.
18915 (input_operand): Ditto. Handle CONST_WIDE_INT.
18916 (and_operand): Do not match const_double.
18917 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
18919 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
18922 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
18923 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
18924 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
18925 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
18926 is_mm_seq_cst, is_mm_sync): New accessor functions.
18927 * builtins.c (expand_builtin_sync_operation,
18928 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
18929 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
18930 (get_memmodel, expand_builtin_atomic_compare_exchange,
18931 expand_builtin_atomic_load, expand_builtin_atomic_store,
18932 expand_builtin_atomic_clear): Use new accessor routines.
18933 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
18934 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
18935 (maybe_emit_sync_lock_test_and_set): Use new accessors and
18936 MEMMODEL_SYNC_ACQUIRE.
18937 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
18938 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
18939 expand_atomic_store): Use new accessors.
18940 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
18941 * tsan.c (instrument_builtin_call): Update check for memory model beyond
18942 final enum to use MEMMODEL_LAST.
18943 * c-family/c-common.c: Use new accessor for memmodel_base.
18944 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
18946 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
18947 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
18948 mem_thread_fence, *dmb): Likewise.
18949 * config/alpha/alpha.c (alpha_split_compare_and_swap,
18950 alpha_split_compare_and_swap_12): Likewise.
18951 * config/arm/arm.c (arm_expand_compare_and_swap,
18952 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
18953 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
18954 atomic_loaddi): Likewise.
18955 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
18957 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
18958 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
18960 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
18961 atomic_store<mode>, atomic_compare_and_swap<mode>,
18962 atomic_exchange<mode>): Use new accessors.
18963 * config/mips/mips.c (mips_process_sync_loop): Likewise.
18964 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
18965 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
18966 rs6000_post_atomic_barrier): Add new cases.
18967 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
18968 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
18969 (atomic_load<mode>): Add new cases and use new accessors.
18970 (store_quadpti): Add new cases.
18971 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
18973 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
18974 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
18977 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18979 * ipa-devirt.c (type_with_linkage_p): New function.
18980 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
18982 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
18983 (can_be_name_hashed_p): Simplify.
18984 (hash_odr_name): Check that type has linkage before checking if it is
18986 (types_same_for_odr): Likewise.
18987 (odr_name_hasher::equal): Likewise.
18988 (odr_subtypes_equivalent_p): Likewise.
18989 (warn_types_mismatch): Likewise.
18990 (get_odr_type): Likewise.
18991 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
18992 * ipa-utils.h (odr_type_p): Move offline.
18993 * tree.c (need_assembler_name_p): Fix handling of types
18995 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
18997 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18999 * timevar.c (timevar_enable): Delete in favor of...
19000 (g_timer): New global.
19001 (struct timevar_def): Move to timevar.h inside class timer.
19002 (struct timevar_stack_def): Likewise.
19003 (timevars): Delete global in favor of field "m_timevars" within
19004 class timer in timevar.h
19005 (stack): Likewise, in favor of field "m_stack".
19006 (unused_stack_instances): Likewise, in favor of field
19007 "m_unused_stack_instances".
19008 (start_time): Likewise, in favor of field "m_start_time".
19009 (get_time): Eliminate check for timevar_enable.
19010 (timer::timer): New function, built from part of timevar_init.
19011 (timevar_init): Rewrite idempotency test from using
19012 "timevar_enable" bool to using dynamic allocation of "g_timer".
19013 Move rest of implementation into timer's constructor.
19014 (timevar_push_1): Rename to...
19015 (timer::push): ...this, adding "m_" prefixes to variables that
19016 are now fields of timer.
19017 (timevar_pop_1): Likewise, rename to...
19018 (timer::pop): ...this, and add "m_" prefixes.
19019 (timevar_start): Replace test for "timevar_enable" with one for
19020 "g_timer", and move bulk of implementation to...
19021 (timer::start): ...here, adding "m_" prefixes.
19022 (timevar_stop): Likewise, from here...
19023 (timer::stop): ...to here.
19024 (timevar_cond_start): Likewise, from here...
19025 (timer::cond_start): ...to here.
19026 (timevar_cond_stop): Likewise, from here...
19027 (timer::cond_stop): ...to here.
19028 (validate_phases): Rename to...
19029 (timer::validate_phases): ...this, and add "m_" prefixes. Make
19030 locals "total" and "tv" const.
19031 (timevar_print): Rename to...
19032 (timer::print): ...this, and add "m_" prefixes. Make locals
19033 "total" and "tv" const. Eliminate test for timevar_enable.
19034 * timevar.h (timevar_enable): Eliminate.
19035 (g_timer): New declaration.
19036 (timevar_push_1): Eliminate.
19037 (timevar_pop_1): Eliminate.
19038 (timevar_print): Eliminate.
19039 (class timer): New class.
19040 (timevar_push): Rewrite to use g_timer.
19041 (timevar_pop): Likewise.
19042 * toplev.c (toplev::~toplev): Likewise.
19044 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
19046 * arm-protos.h (arm_sched_autopref): Delete.
19047 (tune_params): Re-organize, use enums for flag values.
19048 (FUSE_OPS): New macro.
19049 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
19050 (ARM_PREFETCH_BENEFICIAL): Likewise.
19051 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
19052 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
19053 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
19054 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
19055 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
19056 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
19057 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
19058 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
19060 (arm_option_override, thumb2_reorg, arm_print_tune_info)
19061 (aarch_macro_fusion_pair_p): Update uses of current_tune.
19062 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
19064 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
19066 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
19069 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
19070 Sandra Loosemore <sandra@codesourcery.com>
19072 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
19074 (REG_CLASS_NAMES): Add "IJMP_REGS".
19075 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
19076 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
19077 use new "c" register constraint.
19078 * config/nios2/constraint.md (c): New register constraint
19079 corresponding to IJMP_REGS.
19081 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
19083 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
19084 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
19085 define_splits): Delete, revamp, transmogrify into ...
19086 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
19087 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
19088 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
19091 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
19093 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
19094 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
19096 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
19098 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
19099 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
19100 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
19101 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
19102 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
19103 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
19104 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
19105 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
19106 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
19107 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
19108 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
19109 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
19110 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
19111 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
19112 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
19113 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
19114 and 30 corresponding splitters): Delete.
19116 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
19118 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
19121 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
19123 * combine.c (recog_for_combine_1): New function, factored out
19124 from recog_for_combine.
19125 (change_zero_ext): New function.
19126 (recog_for_combine): If recog fails, try again with the pattern
19127 modified by change_zero_ext; if that still fails, restore the
19130 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
19132 * combine.c (get_undo_marker): New function.
19133 (undo_to_marker): New function, largely factored out from ...
19134 (undo_all): ... this. Adjust.
19136 2015-05-12 Richard Biener <rguenther@suse.de>
19138 PR tree-optimization/66101
19139 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
19140 fixup if we turn a loop exit edge to a fallthru edge.
19142 2015-05-12 Richard Biener <rguenther@suse.de>
19144 PR tree-optimization/37021
19145 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
19146 (SLP_TREE_TWO_OPERATORS): New define.
19147 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
19148 SLP_TREE_TWO_OPERATORS.
19149 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
19151 (vect_build_slp_tree): Adjust.
19152 (vect_analyze_slp_cost_1): Likewise.
19153 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
19154 emitting two vector stmts and mixing the results.
19156 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
19158 * call.c (print_z_candidates): Remove dead code.
19160 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19162 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
19163 and zEC12_simple_fp.
19164 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
19167 2015-05-12 Tom de Vries <tom@codesourcery.com>
19169 PR tree-optimization/66010
19170 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
19172 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
19173 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
19174 va_lists are passed, and remove corresponding handling.
19175 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
19176 do_deref argument to ifn_va_arg.
19177 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
19180 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19183 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
19184 REG before taking its REGNO.
19186 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
19188 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
19189 rsp->sign_bit_copies and rsp->nonzero_bits into ...
19190 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
19191 present to get more accurate information about the number of sign bit
19192 copies and non zero bits.
19194 2015-05-12 Richard Biener <rguenther@suse.de>
19196 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
19197 do not allow unrolling.
19199 2015-05-11 Richard Henderson <rth@redhat.com>
19201 * config/i386/i386-modes.def (CCP): New.
19202 * config/i386/i386.c (put_condition_code): Handle it.
19203 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
19205 2015-05-11 Richard Henderson <rth@redhat.com>
19207 * target.def (md_asm_clobbers): Replace with...
19208 (md_asm_adjust): this.
19209 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
19210 (TARGET_MD_ASM_ADJUST): New.
19211 * tm.texi: Rebuild.
19212 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
19213 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
19214 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
19216 * cfgexpand.c (check_operand_nalternatives): Accept vector of
19217 constraints instead of lists of outputs and inputs.
19218 (expand_asm_stmt): Save and restore input_location around the
19219 body of the function. Move asm data into vectors instead of
19220 building tree lists. Generate cleanup sequences as needed,
19221 rather than waiting til the end. Use new md_asm_adjust hook.
19223 * config/vxworks.c: Include vec.h before target.h.
19224 * gimple.c: Likewise.
19225 * incpath.c: Likewise.
19226 * mode-switching.c: Likewise.
19228 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
19229 (cris_md_asm_adjust): this.
19230 (TARGET_MD_ASM_CLOBBERS): Remove.
19231 (TARGET_MD_ASM_ADJUST): New.
19232 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
19233 (ix86_md_asm_adjust): this.
19234 (TARGET_MD_ASM_CLOBBERS): Remove.
19235 (TARGET_MD_ASM_ADJUST): New.
19236 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
19237 (mn10300_md_asm_adjust): this.
19238 (TARGET_MD_ASM_CLOBBERS): Remove.
19239 (TARGET_MD_ASM_ADJUST): New.
19240 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
19241 (rs6000_md_asm_adjust): this.
19242 (TARGET_MD_ASM_CLOBBERS): Remove.
19243 (TARGET_MD_ASM_ADJUST): New.
19244 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
19245 (visium_md_asm_adjust): this.
19246 (TARGET_MD_ASM_CLOBBERS): Remove.
19247 (TARGET_MD_ASM_ADJUST): New.
19249 2015-05-11 Richard Henderson <rth@redhat.com>
19251 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
19252 if noutputs is zero.
19253 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
19255 * cfgexpand.c (expand_asm_operands): Merge into...
19256 (expand_asm_stmt): ... here.
19258 * cfgexpand.c (expand_asm_operands): Don't call
19259 resolve_asm_operand_names.
19260 * stmt.c (resolve_asm_operand_names): Clarify block comment.
19262 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
19264 * dwarf2out.c (gen_member_die): Sanity check that we access
19265 TYPE_MAIN_VARIANT for TYPE_METHODS.
19266 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
19267 checking TYPE_METHODS.
19268 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
19270 (build_distinct_type_copy): Clear TYPE_METHODS.
19271 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
19272 (verify_type): Allow TYPE_METHODS to be error_mark_node.
19273 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
19275 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
19277 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
19278 (emit_pattern_before_setloc): Likewise.
19280 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
19282 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
19283 for define_peephole2s.
19284 (get_peephole2_pattern): New function.
19285 (main): Use it. Call validate_pattern.
19287 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19289 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
19290 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
19291 (Last callee saved reg is different for AVR_TINY architecture)
19293 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
19295 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
19296 when looking for memory references.
19298 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
19301 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
19302 via function pointers.
19304 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
19306 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
19307 indirect call by forcing address into a pseudo with -fno-plt.
19308 * common.opt (flag_plt): New option.
19309 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
19310 ([-fno-plt]): Document.
19312 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
19315 * config/rs6000/option-defaults.h: Add space between string literal
19318 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
19320 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
19321 accross ARM targets.
19323 2015-05-11 Christian Bruel <christian.bruel@st.com>
19325 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
19326 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
19328 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
19330 PR rtl-optimization/66076
19331 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
19332 Don't grow the heap array if it is already big enough from a
19333 previous iteration.
19335 2015-05-11 Christian Bruel <christian.bruel@st.com>
19337 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
19338 (is_called_in_ARM_mode): Remove.
19339 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
19340 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
19341 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
19342 arm_declare_function_name.
19344 2015-05-11 Christian Bruel <christian.bruel@st.com>
19346 * config/arm/arm.c (arm_option_override): Reoganized and split into :
19347 (arm_option_params_internal); New function.
19348 (arm_option_check_internal): New function.
19349 (arm_option_override_internal): New function.
19350 (thumb_code, thumb1_code): Remove.
19351 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
19352 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
19353 (thumb_code, thumb1_code): Remove.
19354 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
19356 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
19358 * config/alpha/alpha.c (alpha_emit_set_const_1)
19359 (alpha_emit_set_long_const, alpha_extract_integer)
19360 (alpha_legitimate_constant_p, alpha_split_const_mov)
19361 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
19362 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
19363 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
19365 * config/alpha/predicates.md (mode_mask_operand): Do not match
19367 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
19368 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
19369 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
19370 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
19371 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
19373 2015-05-11 Jakub Jelinek <jakub@redhat.com>
19376 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
19377 default_binds_local_p_2.
19378 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
19379 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
19381 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19383 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
19385 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19387 Patch by Richard Biener
19388 * coverage.c (coverage_obj_init): Delay building of type variant
19389 until the type is finished.
19391 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19393 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
19394 mismatch between C and C++ type; compoare correctly ARG_TYPES
19395 for non-prototypes and output correctly parameter index for METHOD_TYPE.
19396 (odr_types_equivalent_p): Fix wording of warning about attributes;
19397 it is OK to match prototype and non-prototype.
19399 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19401 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
19402 TYPE_ARG_TYPES list.
19403 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
19404 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
19406 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19408 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
19409 * tree.h (is_lang_specific): Constify.
19411 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
19413 PR tree-optimization/64454
19414 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
19417 2015-05-08 Jason Merrill <jason@redhat.com>
19419 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
19420 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
19421 config/darwin.h, config/darwin9.h, config/elfos.h,
19422 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
19423 config/microblaze/microblaze.h, config/mips/mips.h,
19424 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
19425 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
19426 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
19427 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
19428 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
19429 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
19430 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
19431 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
19432 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
19433 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
19434 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
19435 between string literal and macro name.
19437 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19439 * jump.c: Change argument types to rtx_insn *.
19442 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19444 * lra-constraints.c: Change argument type to rtx_insn *.
19446 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19448 * df-problems.c: Change argument type to rtx_insn *.
19450 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19452 * combine.c: Change argument type to rtx_insn *.
19454 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19457 * rtlanal.c: Change argument type to rtx_insn *.
19459 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19461 * sched-deps.c: Change argument types to rtx_insn *.
19462 * sched-int.h: Adjust.
19464 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19466 * dwarf2cfi.c: Change argument type to rtx_insn *.
19468 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19470 * ira.c (decrease_live_ranges_number): Changetype of local
19471 variable to rtx_insn *.
19472 * recog.c: Change argument types to rtx_insn *.
19475 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19477 * reorg.c: Change argument types to rtx_insn *.
19479 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19481 * ira-color.c: Change argument types to rtx_insn *.
19482 * lra-eliminations.c: Likewise.
19485 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19487 * gcse.c: Change argument types to rtx_insn *.
19489 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19491 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
19493 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19495 * emit-rtl.c (emit_debug_insn_before): Change argument type to
19499 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19501 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
19504 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19506 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
19509 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19511 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
19514 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19516 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
19519 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19521 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
19525 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19527 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
19531 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19533 * except.c (can_nonlocal_goto): Change type of argument to
19537 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19539 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
19542 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19544 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
19545 * cfgrtl.c (can_delete_label_p): Adjust.
19548 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19550 * reorg.c (stop_search_p): Change argument to rtx_insn *.
19552 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19554 * except.c (make_reg_eh_region_note): Change argument to
19556 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
19557 * except.h: Adjust.
19559 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19561 * mode-switching.c (commit_mode_sets): Change type of local
19562 variable from rtx to rtx_insn *.
19564 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
19566 * doc/install.texi (--enable-languages): Add missing jit and lto info.
19567 Add ^ to grep command.
19568 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
19569 arg to last gimple_simplify declaration. Add missing gimple_build
19570 declaration for built-in function case with four tree args.
19572 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
19573 Szabolcs Nagy <szabolcs.nagy@arm.com>
19575 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
19576 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
19577 (GNU_USER_DYNAMIC_LINKERN32): Update.
19579 2015-05-08 Richard Biener <rguenther@suse.de>
19581 PR tree-optimization/66036
19582 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19583 Handle strided group loads.
19584 (vect_verify_datarefs_alignment): Likewise.
19585 (vect_enhance_data_refs_alignment): Likewise.
19586 (vect_analyze_group_access): Likewise.
19587 (vect_analyze_data_ref_access): Likewise.
19588 (vect_analyze_data_ref_accesses): Likewise.
19589 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
19590 (vectorizable_load): Likewise.
19592 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
19594 * config/rs6000/rs6000.md: Require operand inequality in one
19597 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
19598 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19600 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
19602 * config/rx/rx.md (movdi, movdf): Likewise.
19603 Likewise for define_peephole2s.
19605 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19607 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
19608 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
19609 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
19610 vtst_u64): Rewrite using gcc vector extensions.
19612 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19614 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
19615 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
19617 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19619 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
19621 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19623 * config/glibc-stdint.h (OPTION_MUSL): Define.
19624 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
19625 Change the definition based on OPTION_MUSL for 64 bit targets.
19626 * config/linux.h (OPTION_MUSL): Redefine.
19627 * config/alpha/linux.h (OPTION_MUSL): Redefine.
19628 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
19629 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
19631 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
19632 Szabolcs Nagy <szabolcs.nagy@arm.com>
19634 * config.gcc (LIBC_MUSL): New tm_defines macro.
19635 * config/linux.h (OPTION_MUSL): Define.
19636 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
19637 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
19638 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19639 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19640 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19641 * config/linux.opt (mmusl): New option.
19642 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
19643 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19644 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19645 * configure: Regenerate.
19647 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
19648 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19651 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
19652 * config/i386/knetbsd-gnu64.h: New file.
19654 2015-05-08 Marek Polacek <polacek@redhat.com>
19657 * doc/invoke.texi: Document -Woverride-init-side-effects.
19659 2015-05-07 Marek Polacek <polacek@redhat.com>
19662 * doc/invoke.texi: Document -Wshift-negative-value.
19664 2015-05-06 Aditya Kumar <hiraditya@msn.com>
19666 * gcov-tool.c (do_merge): Refactore to remove int ret.
19667 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
19668 !type == FUNC to type != FUNC.
19669 * reload.h (struct target_reload): Changee to type of
19670 x_spill_indirect_levels from bool to unsigned char.
19672 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
19674 * rtl.h (always_void_p): New function.
19675 * gengenrtl.c (always_void_p): Likewise.
19676 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
19677 with code foo are always VOIDmode.
19678 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
19679 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
19680 compare-elim.c, config/aarch64/aarch64.c,
19681 config/aarch64/aarch64.md, config/alpha/alpha.c,
19682 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
19683 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
19684 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
19685 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19686 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
19687 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
19688 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
19689 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
19690 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
19691 config/ia64/vect.md, config/iq2000/iq2000.c,
19692 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
19693 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
19694 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
19695 config/mep/mep.c, config/microblaze/microblaze.c,
19696 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
19697 config/mn10300/mn10300.c, config/msp430/msp430.c,
19698 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
19699 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
19700 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
19701 config/rs6000/altivec.md, config/rs6000/rs6000.c,
19702 config/rs6000/rs6000.md, config/rs6000/vector.md,
19703 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
19704 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
19705 config/sh/sh.md, config/sh/sh_treg_combine.cc,
19706 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
19707 config/spu/spu.md, config/stormy16/stormy16.c,
19708 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
19709 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
19710 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
19711 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
19712 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
19713 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
19714 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
19715 var-tracking.c: Update calls accordingly.
19717 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19720 PR middle-end/54303
19721 * varasm.c (function_mergeable_rodata_prefix): New function.
19722 (mergeable_string_section): Use it.
19723 (mergeable_constant_section): Use it.
19725 2015-05-07 Jeff Law <law@redhat.com>
19728 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19729 simplifier to narrow arithmetic.
19730 * generic-match-head.c: (types_match, single_use): New functions.
19731 * gimple-match-head.c: (types_match, single_use): New functions.
19733 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19735 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
19738 2015-05-07 Richard Biener <rguenther@suse.de>
19740 PR tree-optimization/66002
19741 * passes.def: Schedule another pass_merge_phi after ifcombine, right
19744 2015-05-07 Marek Polacek <polacek@redhat.com>
19745 Martin Uecker <uecker@eecs.berkeley.edu>
19747 * doc/invoke.texi: Document -fsanitize=bounds-strict.
19748 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
19749 into SANITIZE_NONDEFAULT.
19750 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
19752 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
19755 * config/alpha/alpha.c (alpha_override_options_after_change): New.
19756 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
19757 (alpha_override_options): Move align_loops, align_jumps and
19758 align_functions handling into alpha_override_options_after_change.
19760 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
19761 Chris Jones <chrisj@nvidia.com>
19762 Joshua Conner <jconner@nvidia.com>
19764 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
19765 linking of crtfastmath.o.
19766 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
19768 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19770 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
19771 (cstore<mode>4_unsigned_imm): New expander.
19772 (cstore<mode>4): Remove empty constraint strings. Use the new
19775 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
19778 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
19781 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
19783 * config/aarch64/geniterators.sh: Use standard BRE in sed.
19785 2015-05-06 Alan Modra <amodra@gmail.com>
19788 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
19789 (UNSPEC_NOP): Define.
19790 (reload_vsx_from_gpr<mode>): Add missing DONE.
19791 (reload_gpr_from_vsx<mode>): Likewise.
19792 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
19793 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
19795 2015-05-06 Christian Bruel <christian.bruel@st.com>
19798 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
19799 align_jumps, align_functions into aarch64_override_options_after_change.
19801 2015-05-06 Richard Biener <rguenther@suse.de>
19803 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
19804 vect_transform_slp_perm_load to check if we support a permutation
19805 for basic-block vectorization.
19807 2015-05-06 Nick Clifton <nickc@redhat.com>
19809 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
19810 used, even if it is not being used as a frame pointer.
19812 2015-05-05 Jason Merrill <jason@redhat.com>
19814 * dwarf2out.c (gen_member_die): Don't emit anything for an
19815 anonymous class constructor.
19817 2015-05-05 David Malcolm <dmalcolm@redhat.com>
19819 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
19820 that it reflects the block structure.
19821 (afdo_propagate_edge): Likewise.
19822 (afdo_calculate_branch_prob): Likewise.
19823 (afdo_annotate_cfg): Likewise.
19824 * cfgcleanup.c (equal_different_set_p): Likewise.
19825 (try_crossjump_to_edge): Likewise.
19826 * cgraph.c (cgraph_node::verify_node): Likewise.
19827 * cgraphunit.c (expand_all_functions): Likewise.
19828 * config/i386/i386.c (ix86_expand_copysign): Likewise.
19829 (exact_dependency_1): Likewise.
19830 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
19831 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
19832 * gensupport.c (process_define_subst): Likewise.
19833 * lto-wrapper.c (merge_and_complain): Likewise.
19834 * tree-if-conv.c (if_convertible_bb_p): Likewise.
19835 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
19836 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
19837 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
19838 * tree-vect-loop.c (vectorizable_reduction): Likewise.
19839 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
19840 * tree-vect-stmts.c (vectorizable_shift): Likewise.
19841 * tree-vrp.c (vrp_finalize): Likewise.
19842 * tree.c (variably_modified_type_p): Likewise.
19844 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
19846 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
19847 on darwin12 and later.
19848 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
19849 file to pass -rdynamic on darwin12 and later.
19850 * config/darwin.opt (rdynamic): Add.
19852 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19854 * doc/extend.texi (C Extensions): Update menu for moved Variable
19855 Attributes and Type Attributes sections.
19857 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19860 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
19861 if rep_8byte stringop strategy was specified for 32-bit target.
19863 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
19866 * config/i386/i386.md (vector convert to float spltiter): Check for
19867 xmm16+, when splitting scalar float conversion.
19868 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
19870 2015-05-05 Nick Clifton <nickc@redhat.com>
19872 * config/msp430/msp430-opts.h (enum msp430_regions): New.
19873 * config/msp430/msp430.c (msp430_override_options): Complain if
19874 -mcode-region or -mdata-region is used on a non MSP430X.
19875 (msp430_section_attr): New function. Checks lower, upper and
19877 (msp430_attribute_table): Add lower, upper and either.
19878 (gen_prefix): New function. Generates a prefix for a section
19880 (msp430_select_section): New function - handles the choice of
19881 section for an object. Takes into account memory region
19882 attributes and options.
19883 (msp430_function_section): Use gen_prefix.
19884 (TARGET_SECTION_TYPE_FLAGS): Define.
19885 (msp430_section_type_flags): New function.
19886 (TARGET_ASM_UNIQUE_SECTION): Define.
19887 (msp430_unique_section): New function.
19888 (msp430_output_aligned_decl_common): New function.
19889 (msp430_do_not_relax_short_jumps): New function.
19890 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
19892 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19893 * config/msp430/msp430-protos.h
19894 (msp430_do_not_relax_short_jumps): New prototype.
19895 (msp430_output_aligned_decl_common): New prototype.
19896 * config/msp430/msp430.md (length): New attribute.
19897 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
19898 then use a long code sequence for short jumps.
19899 * config/msp430/msp430.opt (mcode-region): New.
19900 (mdata-region): New.
19901 * doc/invoke.texi: Document new options.
19902 * doc/extend.texi: Document new attributes.
19904 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19906 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
19907 (tune_params): Add field branch_costs.
19908 (aarch64_branch_cost): Declare.
19909 * gcc/config/aarch64.c (generic_branch_cost): New.
19910 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
19911 (cortexa53_tunings): Likewise.
19912 (cortexa57_tunings): Likewise.
19913 (thunderx_tunings): Likewise.
19914 (xgene1_tunings): Likewise.
19915 (aarch64_branch_cost): Define.
19916 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
19918 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19920 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
19921 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
19922 * config/i386/i386.md: Ditto.
19923 * config/i386/winnt.c: Ditto.
19925 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19927 * doc/extend.texi (__atomic Builtins): Move implementation details
19928 to the end of the description, rewrite opening paragraphs, state
19929 difference with __sync builtins, state C11/C++11 assumptions,
19930 weaken itemized descriptions, add explanation of memory model
19931 behaviour, expand description of compare-exchange, simplify text.
19933 2015-05-05 Renlin Li <renlin.li@arm.com>
19935 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
19937 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
19939 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
19940 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19941 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
19942 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19943 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
19944 * configure: Regenerate.
19945 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
19946 * doc/install.texi (aarch64*-*-*): Document new
19947 --enable-fix-cortex-a53-843419 option.
19948 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
19949 and -mno-fix-cortex-a53-843419 options.
19951 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19954 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
19956 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
19958 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
19959 fix overactive TYPE_MIN_VALUE check and add FIXME for type
19960 compatibility problems.
19962 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19964 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
19966 (cbranchsi4_reg): New.
19967 * config/microblaze/microblaze.c
19968 (microblaze_expand_conditional_branch_reg): New.
19969 * config/microblaze/microblaze-protos.h
19970 (microblaze_expand_conditional_branch_reg): New prototype.
19972 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19974 * config/microblaze/microblaze.md (peephole2): New.
19976 2015-05-04 Jeff Law <law@redhat.com>
19979 2015-05-04 Jeff Law <law@redhat.com>
19981 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19982 simplifier to narrow arithmetic.
19983 * generic-match-head.c: (types_match, single_use): New functions.
19984 * gimple-match-head.c: (types_match, single_use): New functions.
19986 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
19989 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
19990 (split_branches): Likewise.
19992 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
19994 * common.opt (fdelete-null-pointer-checks): Init to -1.
19995 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
19996 override flag_delete_null_pointer_checks default.
19997 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
19998 behavior re address zero. Better document target-specific behavior.
19999 (-fisolate-errneous-paths-dereference): Mention relationship to
20000 -fdelete-null-pointer-checks.
20002 2015-05-04 Jakub Jelinek <jakub@redhat.com>
20004 PR tree-optimization/65984
20005 * ubsan.c: Include tree-cfg.h.
20006 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
20007 stmt_could_throw_p test, rename can_throw variable to ends_bb.
20009 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
20011 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
20012 to CONST_DOUBLE_P predicate.
20013 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
20014 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
20015 allow only operands that satisfy standard_sse_constant_p predicate.
20016 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
20017 to CONST_DOUBLE_P predicate.
20019 2015-05-04 Jeff Law <law@redhat.com>
20021 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
20022 simplifier to narrow arithmetic.
20023 * generic-match-head.c: (types_match, single_use): New functions.
20024 * gimple-match-head.c: (types_match, single_use): New functions.
20026 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
20028 * config/arm/arm.c: Restore bootstrap.
20030 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
20032 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
20033 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
20034 as CONST_WIDE_INT, not CONST_DOUBLE.
20035 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
20036 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
20037 (ix86_find_base_term): Do not check for CONST_DOUBLE.
20038 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
20039 (ix86_build_signbit_mask): Rewrite using wide ints.
20040 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
20041 (ix86_rtx_costs): Handle CONST_WIDE_INT.
20042 (find_constant): Ditto.
20043 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
20044 using gen_int_mode.
20045 * config/i386/predicates.md (x86_64_immediate_operand)
20046 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
20047 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
20048 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
20049 (const0_operand): Also match const_wide_int.
20050 (constm1_operand): Ditto.
20051 (const1_operand): Ditto.
20053 2015-05-04 Richard Biener <rguenther@suse.de>
20055 PR tree-optimization/65965
20056 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
20057 store groups at gaps.
20059 2015-05-04 Richard Biener <rguenther@suse.de>
20061 PR tree-optimization/65935
20062 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
20063 then make sure to apply that swapping to the IL.
20065 2015-05-04 Jakub Jelinek <jakub@redhat.com>
20067 * Makefile.in (PATCHLEVEL_c): New variable.
20068 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
20069 expand the same way as if DEVPHASE_c was non-empty.
20071 2015-05-04 Kai Tietz <ktietz@redhat.com>
20074 * lto-wrapper.c (run_gcc): Open filename
20077 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
20079 * doc/extend.texi (Variable Attributes, Type Attributes): Move
20080 sections up in file, to immediately after the Function Attributes
20083 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
20085 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
20087 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20089 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
20090 (insert_partition_copy_on_edge): Adjust.
20091 (insert_rtx_to_part_on_edge): Likewise.
20092 (insert_part_to_rtx_on_edge): Likewise.
20094 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20096 * function.c (set_return_jump_label): Change type of argument to
20098 * function.h (set_return_jump_label): Adjust.
20100 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20102 * reload.h (struct reg_equivs_t): Change type of init to
20104 * ira.c (fix_reg_equiv_init): Adjust.
20105 * reload1.c (eliminate_regs_1): Likewise.
20106 (init_eliminable_invariants): Likewise.
20108 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20110 * cselib.c (fp_setter_insn): Take a rtx_insn *.
20111 * cselib.h (fp_setter_insn): Adjust.
20113 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20115 * recog.c (struct validate_replace_src_data): Change type of
20116 insn field to rtx_insn *.
20117 (validate_replace_src_group): Change type of argument to rtx_insn *.
20118 * recog.h (validate_replace_src_group): Adjust.
20120 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20122 * haifa-sched.c: Change the type of some variables to rtx_insn *.
20123 * sched-deps.c: Likewise.
20124 * sched-int.h: Likewise.
20125 * sched-rgn.c: Likewise.
20126 * sel-sched.c: Likewise.
20128 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20131 * config/i386/i386.c: Change the type of some arguments to
20133 * config/arm/arm.c: Likewise.
20135 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20137 * lra-constraints.c: Change type of some arguments to rtx_insn *.
20139 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20141 * regcprop.c (kill_autoinc_value): Change type of argument to
20144 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20146 * genrecog.c (print_subroutine): Adjust.
20147 * recog.c (get_bool_attr_mask_uncached): Likewise.
20148 * recog.h (struct recog_data_d): Change the type of insn to
20151 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20153 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
20155 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20157 * df-problems.c (df_set_note): Change type of argument to
20160 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20162 * builtins.c (expand_builtin_trap): Change type of local
20163 variable to rtx_insn *.
20164 (add_sched_insns_for_speculation): Likewise.
20165 (ix86_emit_save_regs): Likewise.
20166 (get_scratch_register_on_entry): Likewise.
20167 (ix86_emit_restore_reg_using_pop): Likewise.
20168 (ix86_emit_leave): Likewise.
20169 (ix86_emit_restore_regs_using_mov): Likewise.
20170 (ix86_expand_epilogue): Likewise.
20172 (rl78_alloc_physical_registers_umul): Likewise.
20173 * cselib.c (discard_useless_locs): Likewise.
20174 (cselib_invalidate_regno): Likewise.
20175 (cselib_invalidate_mem): Likewise.
20176 * function.c (expand_function_start): Likewise.
20177 (emit_use_return_register_into_block): Likewise.
20178 * gcse.c: Likewise.
20179 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
20180 * ifcvt.c (noce_get_alt_condition): Likewise.
20181 * loop-doloop.c (doloop_condition_get): Likewise.
20182 * lra-constraints.c (inherit_in_ebb): Likewise.
20183 * modulo-sched.c (sms_schedule_by_order): Likewise.
20184 * recog.c (next_insn_tests_no_inequality): Likewise.
20185 * reorg.c (emit_delay_sequence): Likewise.
20186 (update_reg_dead_notes): Likewise.
20187 (fix_reg_dead_note): Likewise.
20188 (fill_slots_from_thread): Likewise.
20189 (delete_computation): Likewise.
20191 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
20193 * doc/extend.texi (Variable Attributes): Add menu and proper
20194 @nodes to subsections. Move Microsoft Windows attributes to
20195 their own subsection.
20196 (Type Attributes): Reorganize introduction to remove duplicate
20197 list of attributes. Add menu and proper @nodes to subsections.
20198 Alphabetize the main table of common attributes.
20200 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
20202 * match.pd: New simplification patterns.
20203 (x + (x & 1)) -> ((x + 1) & ~1)
20204 (x & ~(x & y)) -> ((x & ~y))
20205 (x | ~(x | y)) -> ((x | ~y))
20207 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20209 * target.def (attribute_table): Mention that struct attribute_spec
20210 is defined in tree-core.h rather than tree.h
20211 * doc/tm.texi: Regenerate.
20213 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
20215 * genrecog.c (test): Rename to rtx_test. Update rest of file
20218 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
20220 PR translation/65959
20221 * params.h (DEFPARAM): Rename msgid to nocmsgid.
20223 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
20225 * gcc/config/aarch64/aarch64-protos.h (tune_params):
20226 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
20227 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
20228 Return value depending on target.
20229 (generic_tunings): Initialize new target settings.
20230 (cortexa53_tunings): Likewise.
20231 (cortexa57_tunings): Likewise.
20232 (thunderx_tunings): Likewise.
20233 (xgene1_tunings): Likewise.
20235 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
20237 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
20238 Make Cortex-A53 shift costs more accurate.
20240 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20242 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
20245 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
20247 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
20248 Calculate cost of op0 and op1 in PLUS and MINUS cases.
20250 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20252 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
20253 Add cost of op0 in the compare-with-fpzero case.
20255 2015-04-30 David Malcolm <dmalcolm@redhat.com>
20257 * builtins.c (fold_builtin_1): Remove spurious second
20259 * cgraph.h (symtab_node::get_availability): Likewise.
20260 * opts.c (common_handle_option): Remove spurious second semicolon.
20261 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
20262 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
20264 2015-04-30 Caroline Tice <cmtice@google.com>
20266 PR gcov-profile/65929
20267 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
20268 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
20269 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
20270 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
20271 * doc/tm.texi: Regenerate.
20272 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
20273 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
20274 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
20275 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
20277 2015-04-30 Marek Polacek <polacek@redhat.com>
20279 * varasm.c (handle_cache_entry): Fix logic.
20281 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20283 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
20284 (*extrsi5_insn_uxtw_alt): Likewise.
20285 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
20286 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
20289 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20291 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
20294 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20296 * config/aarch64/aarch64.md
20297 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
20298 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
20299 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
20300 appropriately. Handle alternative EON form.
20302 2015-04-30 Renlin Li <renlin.li@arm.com>
20304 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
20305 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
20307 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
20310 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
20311 -fstrict-aliasing boundaries.
20313 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20315 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
20316 and [SU]MNEGL patterns.
20318 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20320 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
20321 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
20322 combined arithmetic-shift ops. Properly handle all shift and extend
20323 operations that can occur in combination with PLUS/MINUS.
20324 Rename maybe_fma to compound_p.
20325 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
20326 arithmetic and shift operations.
20328 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20330 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
20331 rather than arith_shift cost when costing ADD/MINUS of an
20334 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
20337 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
20340 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
20342 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
20343 are for the same position.
20345 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
20347 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
20349 (vectorize_loops): Use it.
20351 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
20353 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
20354 for aggregate types.
20355 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
20356 type to be non_ODR.
20357 * tree.c (need_assembler_name_p): Compute mangled name for
20358 non-fundamental types and integer types.
20360 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
20362 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
20364 * expr.c (expand_expr_real_2): Likewise.
20366 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
20368 * tree.c (build_common_builtin_nodes): Do not build
20369 __builtin_alloca_with_align as equivalent of library alloca.
20371 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
20373 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
20374 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
20376 * tree.c: Include print-tree.h and ipa-utils.h
20377 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
20378 (free_lang_data_in_cgraph): Call verify_type.
20379 (verify_type_variant): New function.
20380 (verify_type): New function.
20381 * tree.h (verify_type): Declare.
20383 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
20385 * config/mips/mips-cpus.def: (mips4): Change default processor
20386 from PROCESSOR_R8000 to PROCESSOR_R10000.
20388 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
20390 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
20391 la/jalr instead of jal.
20393 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
20396 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
20397 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
20398 (setcc+movzbl peephole2): Check also clobbered reg.
20399 (setcc+andl peephole2): Ditto.
20401 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
20404 * config/nvptx/mkoffload.c (target_ilp32): New variable.
20405 (main): Set it depending on "-foffload-abi=[...]".
20406 (compile_native, main): Use it to pass "-m32" or "-m64" to the
20409 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
20412 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
20413 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
20414 Flip lane index back at assembly time for bigendian.
20416 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
20418 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
20419 * gimplify.c (gimplify_omp_workshare): Use it.
20421 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
20423 * Makefile.in (build/genrecog.o): Depend on inchash.h.
20424 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
20426 * genrecog.c: Rewrite most of the code except for the third page.
20428 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
20430 * inchash.h, inchash.c: Include bconfig.h for build objects.
20431 * Makefile.in (build/inchash.o): New rule.
20433 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
20436 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
20437 number in type attribute expression.
20439 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
20441 * loop-iv.c (canon_condition): Generalize to all types of integer
20444 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
20446 * gimple-walk.c: Prune duplicate or unneeded includes.
20447 (walk_gimple_asm): Only call parse_input_constraint or
20448 parse_output_constraint if their findings are used.
20449 Honour parse_input_constraint and parse_output_constraint
20452 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
20454 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
20456 2015-04-29 Tom de Vries <tom@codesourcery.com>
20458 PR tree-optimization/65893
20459 * passes.def (pass_all_optimizations): Move pass_stdarg to after
20462 2015-04-29 Richard Biener <rguenther@suse.de>
20464 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
20465 compute GROUP_SIZE for basic-block SLP.
20466 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
20467 take into account gaps.
20468 (vect_get_mask_element): Properly reject references to previous
20470 (vect_transform_slp_perm_load): Likewise.
20472 2015-04-29 Christian Bruel <christian.bruel@st.com>
20475 * config/i386/i386.c (ix86_default_align): New function.
20476 (ix86_override_options_after_change): Call ix86_default_align.
20477 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
20478 (ix86_override_options_after_change): New function.
20480 2015-04-28 Jeff Law <law@redhat.com>
20482 * tree-ssa-dom.c (record_equality); Fix comment typos.
20484 2015-04-28 Tom de Vries <tom@codesourcery.com>
20486 PR tree-optimization/65887
20487 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
20489 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
20491 * doc/extend.texi (Declaring Attributes of Functions): Split into
20492 subsections by target. Alphabetize the table of common attributes.
20493 Rewrite some of the introductory text to reflect the new structure.
20494 Update some cross-references to point to the new subsections.
20495 (Attribute Syntax): Put paragraph about "__" naming here. Remove
20496 duplicate copies in the discussion of function, label, and type
20499 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
20502 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
20504 2015-04-28 Jason Merrill <jason@redhat.com>
20507 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
20508 (finalize_type_size): Respect TYPE_USER_ALIGN.
20509 (layout_type) [ARRAY_TYPE]: Likewise.
20511 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
20513 * config/arm/arm.md (*arm_movt): Fix type attribute.
20514 (*cmpsi_shiftsi): Likewise.
20515 (*cmpsi_shiftsi_swp): Likewise.
20516 (*movsicc_insn): Likewise.
20517 (*cond_move): Likewise.
20518 (*if_plus_move): Likewise.
20519 (*if_move_plus): Likewise.
20520 (*if_arith_move): Likewise.
20521 (*if_move_arith): Likewise.
20522 (*if_shift_move): Likewise.
20523 (*if_move_shift): Likewise.
20524 (*arm_movtas_ze): Likewise.
20525 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
20526 redundancy and type attribute.
20527 (*thumb2_movsi_insn): Fix type attribute.
20528 (*thumb2_addsi_short): Likewise.
20529 (thumb2_addsi3_compare0): Likewise.
20530 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
20531 attributes accordingly.
20533 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
20536 * function.c (pad_to_arg_alignment): Add parentheses.
20538 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
20540 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
20541 libgcc/config/frv/elf-lib.h.
20543 2015-04-28 Tom de Vries <tom@codesourcery.com>
20545 * tree-call-cdce.c: Fix example in header comment.
20547 2015-04-28 Richard Biener <rguenther@suse.de>
20549 PR tree-optimization/62283
20550 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
20551 fails fatally and we are vectorizing a basic-block simply
20552 cause the child to be constructed piecewise.
20553 (vect_analyze_slp_cost_1): Adjust.
20554 (vect_detect_hybrid_slp_stmts): Likewise.
20555 (vect_bb_slp_scalar_cost): Likewise.
20556 (vect_get_constant_vectors): For piecewise constructed
20557 constants place them after the last def.
20558 (vect_get_slp_defs): Adjust.
20559 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
20560 externals for basic-block vectorization.
20562 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20565 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
20567 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
20568 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
20569 (AARCH64_TUNE_FMA_STEERING): Likewise.
20570 * config/aarch64/aarch64-cores.def: Set
20571 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
20572 FMUL/FMADD instructions.
20573 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
20574 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
20575 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
20576 * config/aarch64/cortex-a57-fma-steering.h: New file.
20577 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20579 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
20581 * gensupport.c (std_preds): Add missing codes to address_operand entry.
20583 2015-04-28 Richard Biener <rguenther@suse.de>
20585 PR tree-optimization/65851
20586 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
20587 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
20588 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
20589 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
20590 (ccp_visit_phi_node): Adjust.
20591 (evaluate_stmt): For simplifications to SSA names return its
20592 lattice value if that isn't VARYING. Return immediately when
20593 simplified to a constant.
20594 (visit_assignment): Adjust.
20595 (ccp_visit_stmt): Likewise.
20597 2015-04-28 Tom de Vries <tom@codesourcery.com>
20599 PR tree-optimization/65818
20600 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
20603 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20605 * calls.c (save_fixed_argument_area): Don't check
20606 ARGS_GROW_DOWNWARD with the preprocessor.
20607 (restore_fixed_argument_area): Likewise.
20608 (mem_overlaps_already_clobbered_arg_p): Likewise.
20609 (check_sibcall_argument_overlap): Likewise.
20610 (expand_call): Likewise.
20611 (emit_library_call_value_1): Likewise.
20612 (store_one_arg): Likewise.
20613 * function.c (assign_parms): Likewise.
20614 (locate_and_pad_parm): Likewise.
20615 (pad_to_arg_alignment): Likewise.
20616 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
20618 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20620 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
20621 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
20622 * calls.c (save_fixed_argument_area): Don't chekc if
20623 ARGS_GROW_DOWNWARD is defined.
20624 (restore_fixed_argument_area): Likewise.
20625 (mem_overlaps_already_clobbered_arg_p): Likewise.
20626 (check_sibcall_argument_overlap): Likewise.
20627 (expand_call): Likewise.
20628 (emit_library_call_value_1): Likewise.
20629 (store_one_arg): Likewise.
20630 * function.c (assign_parms): Likewise.
20631 (locate_and_pad_parm): Likewise.
20632 (pad_to_arg_alignment): Likewise.
20633 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
20635 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20637 * defaults.h (gen_epilogue): New function.
20638 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
20640 * cfgrtl.c (cfg_layout_finalize): Likewise.
20641 * df-scan.c: Likewise.
20642 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20643 (reposition_prologue_and_epilogue_notes): Likewise.
20644 * reorg.c (find_end_label): Likewise.
20645 * toplev.c: Likewise.
20647 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20649 * bb-reorder.c (HAVE_return): Don't check if its undefined.
20650 * defaults.h (gen_simple_return): New function.
20651 (gen_simple_return): Likewise.
20652 (HAVE_return): Add default definition to false.
20653 (HAVE_simple_return): Likewise.
20654 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
20655 HAVE_return and HAVE_simple_return are defined.
20656 * function.c (gen_return_pattern): Likewise.
20657 (convert_jumps_to_returns): Likewise.
20658 (thread_prologue_and_epilogue_insns): Likewise.
20659 * reorg.c (find_end_label): Likewise.
20660 (dbr_schedule): Likewise.
20661 * shrink-wrap.c: Likewise.
20662 * shrink-wrap.h: Likewise.
20664 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20666 * defaults.h (EPILOGUE_USES): Add default definition of false.
20667 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
20668 * resource.c (init_resource_info): Likewise.
20670 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20672 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
20674 * dwarf2out.c (field_byte_offset): REmove check if
20675 PCC_BITFIELD_TYPE_MATTERS is defined.
20676 * stor-layout.c (layout_decl): Likewise.
20677 (update_alignment_for_field): Likewise.
20678 (place_field): Likewise.
20680 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20682 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
20684 * regrename.c (check_new_reg_p): Remove check if
20685 HARD_REGNO_RENAME_OK is defined.
20686 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
20688 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20690 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
20691 * cse.c (fold_rtx): Likewise.
20692 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
20693 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
20694 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
20695 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
20696 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
20697 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
20698 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
20699 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
20700 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
20701 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
20703 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
20704 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
20705 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
20706 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
20707 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
20708 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
20709 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
20710 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
20711 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
20712 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
20713 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
20714 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
20715 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
20716 * doc/tm.texi: Regenerate.
20717 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
20718 either true or false.
20720 2015-04-27 Jeff Law <law@redhat.com>
20722 PR tree-optimization/65217
20723 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
20724 of them has a single use, make sure it is the LHS of the implied
20727 2015-04-28 Alan Modra <amodra@gmail.com>
20730 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
20731 (offsettable_ok_by_alignment): Use minimum of decl and toc
20732 pointer alignment. Replace dead code with assertion.
20733 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
20734 case if size exceeds toc pointer alignment.
20735 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
20736 (rs6000_emit_move): Likewise.
20737 * configure.ac: Add linker toc pointer alignment check.
20738 * configure: Regenerate.
20739 * config.in: Regenerate.
20741 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
20743 * config.gcc: Add h8300-*-linux.
20744 * config/h8300/linux.h: New.
20745 * config/h8300/t-linux: New.
20746 * config/h8300/h8300.c (h8300_option_override): Normal mode
20747 is not supported for h8300-*-linux.
20748 (h8300_file_start): Target priority change.
20749 (get_shift_alg): Likewise.
20750 (h8300_shift_need_scratch_p): Likewise.
20751 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
20752 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
20754 2015-04-27 Caroline Tice <cmtice@google.com>
20756 * final.c (final_scan_insn): Output cold_function_name as function
20758 * varasm.c (cold_function_name): Make global.
20759 (assemble_start_function): Re-set cold_function_name.
20760 (assemble_end_function): Output cold partition size.
20761 * varasm.h (cold_function_name): Declare global.
20763 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
20765 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
20766 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
20768 (*movxi_internal_avx512f): Ditto.
20769 (define_split): Check for xmm16+, when splitting scalar float_extend.
20770 (*extendsfdf2_mixed): Use "v" constraint.
20771 (define_split): Check for xmm16+, when splitting scalar float_truncate.
20772 (*truncdfsf_fast_sse): Use "v" constraint.
20773 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
20774 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
20775 (define_peephole2): Check for xmm16+, when converting scalar
20777 (define_peephole2): Check for xmm16+, when converting scalar
20779 (*fop_<mode>_comm_mixed): Use "v" constraint.
20780 (*fop_<mode>_comm_sse): Ditto.
20781 (*fop_<mode>_1_mixed): Ditto.
20782 (*sqrt<mode>2_sse): Ditto.
20783 (*ieee_s<ieee_maxmin><mode>3): Ditto.
20785 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20787 * combine.c (simplify_if_then_else): Use std::swap instead
20788 of manually swapping.
20789 (known_cond): Likewise.
20790 (simplify_comparison): Likewise.
20792 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
20795 * config/rs6000/htm.md: Remove all define_expands.
20796 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
20797 UNSPECV_HTM_TABORTWCI): Remove.
20798 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
20799 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
20800 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
20801 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
20802 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
20803 tabortwci_internal): Remove define_insns.
20804 (tabort<wd>c, tabort<wd>ci): New define_insns.
20805 (tabort): Use gpc_reg_operand.
20806 (tcheck): Remove operand.
20807 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
20808 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
20810 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
20811 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
20812 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
20813 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
20814 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
20815 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
20816 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
20817 (tcheck): Remove builtin argument.
20818 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
20820 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
20821 tabortdc and tabortdci builtins when not in 64-bit mode.
20822 Modify code to handle the loss of the HTM define_expands.
20823 Emit code to copy the CR register to TARGET.
20824 (htm_init_builtins): Modify code to handle the loss of the HTM
20826 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
20827 (RS6000_BTC_64BIT): Likewise.
20828 (RS6000_BTC_CR): New macro.
20829 * doc/extend.texi: Update documentation for htm builtins.
20831 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20833 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
20834 of manually swapping.
20835 (simplify_associative_operation): Likewise.
20836 (simplify_binary_operation): Likewise.
20837 (simplify_plus_minus): Likewise.
20838 (simplify_relational_operation): Likewise.
20839 (simplify_ternary_operation): Likewise.
20841 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20843 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
20844 (xs_hi_nonmemory_operand): Remove error.
20845 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
20846 general_operand rather than xs_hi_general_operand.
20848 2015-04-27 Richard Biener <rguenther@suse.de>
20850 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
20851 (record_equivalences_from_stmt): Valueize rhs.
20852 (record_equality): Canonicalize x and y order via
20853 tree_swap_operands_p. Do not swap operands for same loop depth.
20855 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
20859 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
20860 Add hint how to use own spec file.
20862 2015-04-27 Jakub Jelinek <jakub@redhat.com>
20864 PR tree-optimization/65875
20865 * tree-vrp.c (update_value_range): If in is_new case setting
20866 old_vr to VR_VARYING, also set new_vr to it. Remove
20867 old_vr->type == VR_VARYING test.
20868 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
20869 SSA_PROP_INTERESTING if update_value_range returned true,
20870 but new range is VR_VARYING.
20872 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
20874 * combine.c (sign_extend_short_imm): New.
20875 (set_nonzero_bits_and_sign_copies): Use above new function for sign
20876 extension of src short immediate.
20877 (reg_nonzero_bits_for_combine): Likewise for tem.
20879 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20881 * stor-layout.c (self_referential_component_ref_p): New predicate.
20882 (copy_self_referential_tree_r): Use it.
20883 (self_referential_size): Punt for simple operations directly involving
20884 self-referential component references.
20885 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
20887 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20889 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
20891 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20893 * vec.h (vec): Make splice arguments const. Update definitions
20896 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
20898 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
20901 2015-04-26 Tom de Vries <tom@codesourcery.com>
20903 PR tree-optimization/65826
20904 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
20906 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
20908 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
20909 (*madd3<mode>): Ditto.
20910 (*msub4<mode>): Ditto.
20911 (*msub3<mode>): Ditto.
20912 (*nmadd4<mode>): Ditto.
20913 (*nmadd3<mode>): Ditto.
20914 (*nmadd4<mode>_fastmath): Ditto.
20915 (*nmadd3<mode>_fastmath): Ditto.
20916 (*nmsub4<mode>): Ditto.
20917 (*nmsub3<mode>): Ditto.
20918 (*nmsub4<mode>_fastmath): Ditto.
20919 (*nmsub3<mode>_fastmath): Ditto.
20921 2015-04-24 Jason Merrill <jason@redhat.com>
20924 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
20925 down when building TYPE_CANONICAL.
20926 (build_pointer_type_for_mode): Likewise.
20928 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
20930 * genrecog.c (validate_pattern): Check matching constraint refers
20931 to a lower numbered operand.
20933 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20936 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
20937 save to independent variables use the Save attribute. This will
20938 allow these options to be modified with the #pragma/attribute
20940 (-mallow-movmisalign): Likewise.
20941 (-mallow-df-permute): Likewise.
20942 (-msched-groups): Likewise.
20943 (-malways-hint): Likewise.
20944 (-malign-branch-targets): Likewise.
20945 (-mvectorize-builtins): Likewise.
20946 (-msave-toc-indirect): Likewise.
20948 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
20949 can be set via the #pragma/attribute target support.
20950 (rs6000_opt_vars): Likewise.
20951 (rs6000_inner_target_options): If VSX was set, also set
20952 -mno-avoid-indexed-addresses.
20954 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20956 * config/arm/iterators.md (shiftable_ops): Rename to...
20957 (SHIFTABLE_OPS): ... This. Update use in comments.
20958 (ior_xor): Rename to...
20959 (IOR_XOR): ... This.
20960 (vqh_ops): Rename to...
20961 (VQH_OPS): ... This.
20962 (vqhs_ops): Rename to...
20963 (VQHS_OPS): ... This.
20964 (rshifts): Rename to...
20965 (RSHIFTS): ... This.
20966 (returns): Rename to...
20967 (RETURNS): ... This.
20968 * config/arm/arm.md: Update uses of the above.
20969 * config/arm/neon.md: Likewise.
20971 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20973 * config.host (case ${host}): Add aarch64*-*-linux case.
20974 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
20975 fields to all the cores.
20976 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
20977 Add MCPU_MTUNE_NATIVE_SPECS.
20978 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
20979 field to all extensions.
20980 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
20981 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
20982 Adjust definition of AARCH64_OPT_EXTENSION.
20983 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
20984 (MCPU_MTUNE_NATIVE_SPECS): Define.
20985 * config/aarch64/driver-aarch64.c: New file.
20986 * config/aarch64/x-arch64: New file.
20987 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
20990 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20991 Wei Mi <wmi@google.com>
20993 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
20994 * config/i386/i386.c (extract_base_offset_in_addr): New function.
20995 (ix86_operands_ok_for_move_multiple): Ditto.
20996 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
20997 (movlpd/movhpd to movupd peephole2): Ditto.
20999 2015-04-24 Marek Polacek <polacek@redhat.com>
21002 * input.h (from_macro_expansion_at): Define.
21005 * doc/invoke.texi: Update description of -Wlogical-op.
21007 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
21009 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
21010 ternary operator in fprintf and harmonize spacing.
21012 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
21014 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
21015 Mark operand1 commutative.
21017 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
21019 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
21020 input operands in memory.
21021 (*vec_concatv2si_sse4_1): Ditto.
21022 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
21023 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
21025 (vec_extract_hi_v32hi): Ditto.
21026 (vec_extract_hi_v64hi): Ditto.
21027 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
21029 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
21030 Steven Bosscher <steven@gcc.gnu.org>
21032 PR rtl-optimization/34503
21033 * cprop.c (cprop_reg_p): New.
21034 (hash_scan_set): Use above function to check if register can be
21036 (find_avail_set): Return up to two sets, one whose source is a
21037 register and one whose source is a constant. Sets are returned in an
21038 array passed as parameter rather than as a return value.
21039 (cprop_insn): Use a do while loop rather than a goto. Try each of the
21040 sets returned by find_avail_set, starting with the one whose source is
21041 a constant. Use cprop_reg_p to check if register can be propagated.
21042 (do_local_cprop): Use cprop_reg_p to check if register can be
21044 (implicit_set_cond_p): Likewise.
21046 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
21048 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
21049 (sem_function::equals): IGNORED_NODES parameter is now unused;
21050 update call of equals_private.
21051 (sem_function::equals_private): Do not call equals_wpa; skip
21052 gimple body matching if there is no body.
21053 (sem_function::init): Add logic to hash tthunk info.
21054 (sem_function::parse): Also parse thunks.
21055 * ipa-icf.h (equals_private): Update declaration.
21057 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21059 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
21060 asterisk from name so this can be generated directly.
21061 (*altivec_stvx_<mode>_internal): Likewise.
21062 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
21063 that this is never called during or after reload/lra.
21064 (rs6000_frame_related): Remove split_reg
21065 argument and logic that references it.
21066 (emit_frame_save): Remove last parameter from call to
21067 rs6000_frame_related.
21068 (rs6000_emit_prologue): Remove last parameter from eight calls to
21069 rs6000_frame_related. Force generation of stvx instruction for
21070 Altivec register saves. Remove split_reg handling, which is no
21072 (rs6000_emit_epilogue): Force generation of lvx instruction for
21073 Altivec register restores.
21075 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21077 * config/rs6000/rs6000.opt (mcrypto): Change option description to
21078 match category changes in ISA 2.07B.
21080 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21082 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
21084 (cmp_op, cmp_type): New code attributes.
21085 (NEON_VCMP, NEON_VACMP): New int iterators.
21086 (cmp_op_unsp): New int attribute.
21087 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
21088 (neon_vceq<mode>): Delete.
21089 (neon_vc<cmp_op><mode>_insn): New pattern.
21090 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
21091 (neon_vcgeu<mode>): Delete.
21092 (neon_vcle<mode>): Likewise.
21093 (neon_vclt<mode>: Likewise.
21094 (neon_vcage<mode>): Likewise.
21095 (neon_vcagt<mode>): Likewise.
21096 (neon_vca<cmp_op><mode>): New define_expand.
21097 (neon_vca<cmp_op><mode>_insn): New pattern.
21098 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
21100 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
21102 * tree.h (attribute_value_equal): Declare.
21103 * tree.c (attribute_value_equal): Export.
21105 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
21107 * ipa-icf.c (sem_item::compare_attributes): New function.
21108 (sem_item::compare_referenced_symbol_properties): Compare variable
21110 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
21111 (sem_function::param_used_p): New function.
21112 (sem_function::equals_wpa): Fix attribute comparsion; match
21113 parameter type codes; do not compare paremter flags when
21114 they are not used; compare edge flags; compare indirect calls.
21115 (sem_item::update_hash_by_addr_refs): Hash reference type.
21116 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
21117 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
21118 reference use type.
21119 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
21120 * ipa-icf.h (compare_attributes, param_used_p): Declare.
21122 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
21124 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
21126 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
21127 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
21128 (sem_item::compare_referenced_symbol_properties): New.
21129 (sem_item::hash_referenced_symbol_properties): New.
21130 (sem_item::compare_cgraph_references): Rename to ...
21131 (sem_item::compare_symbol_references): ... this one; use
21132 compare_referenced_symbol_properties.
21133 (sem_function::equals_wpa): Do not compare
21134 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
21135 DECL_IS_OPERATOR_NEW; compare pointer sizes.
21136 (sem_item::update_hash_by_addr_refs): Call
21137 hash_referenced_symbol_properties.
21138 (sem_item::update_hash_by_local_refs): Cleanup.
21139 (sem_function::merge): Do not mix up symbol properties.
21140 (sem_variable::equals_wpa): Use compare_symbol_references.
21141 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
21142 (sem_item::hash_referenced_symbol_properties): New.
21143 (sem_item::compare_symbol_references): New.
21144 (sem_item::compare_cgraph_references): Remove.
21146 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
21149 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
21150 Emit size of local.
21152 2015-04-23 Nick Clifton <nickc@redhat.com>
21154 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
21155 ATTRIBUTE_UNUSED to x parameter.
21156 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
21158 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21160 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
21161 TARGET_CRYPTO to TARGET_P8_VECTOR>
21162 (crypto_vpermxor_<mode>): Likewise.
21163 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
21164 (BU_CRYPTO_3A): Likewise.
21165 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
21166 (BU_CRYPTO_OVERLOAD_3A): New #define.
21167 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
21168 (VPMSUMH): Likewise.
21169 (VPMSUMW): Likewise.
21170 (VPMSUMD): Likewise.
21171 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
21172 (VPERMXOR_V4SI): Likewise.
21173 (VPERMXOR_V8HI): Likewise.
21174 (VPERMXOR_V16QI): Likewise.
21175 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
21176 BU_CRYPTO_OVERLOAD_2A.
21177 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
21178 BU_CRYPTO_OVERLOAD_3A.
21179 * config/rs6000/rs6000.opt (mcrypto): Change description of
21182 2015-04-23 Richard Biener <rguenther@suse.de>
21184 * passes.def: Remove copy propagation passes run directly after CCP.
21185 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
21187 (ccp_visit_phi_node): Rework to handle first executable edge
21190 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
21192 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
21193 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
21194 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
21195 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
21196 (thumb_legimitimize_reload_address): Remove.
21197 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
21199 (thumb_legimitimize_reload_address): Remove.
21201 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21203 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
21205 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21207 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
21209 (store_multiple): Likewise.
21211 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21213 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
21214 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
21215 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
21216 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
21217 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
21218 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
21219 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
21220 Specify issue_rate value.
21221 (arm_issue_rate): Look up issue rate from tuning structs. Remove
21222 large switch statement.
21223 (arm_marvell_pj4_tune): New struct.
21224 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
21227 2015-04-23 Richard Biener <rguenther@suse.de>
21229 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
21230 (vect_find_last_store_in_slp_instance): Rename to ...
21231 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
21232 (vect_analyze_slp_cost_1): Use vector_load for constant defs
21233 and vec_construct for external defs when estimating prologue cost.
21234 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
21235 Compute costs here only when vectorizing loops.
21236 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
21237 have been determined.
21238 (vect_schedule_slp_instance): Simplify vectorized code placement
21239 and prepare for in-BB external defs.
21240 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
21241 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
21242 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
21244 (vect_model_load_cost): Likewise.
21245 (vectorizable_store): Instead add it here.
21246 (vectorizable_load): Likewise.
21247 (vect_is_simple_use): Dump def type textually.
21249 2015-04-23 Richard Biener <rguenther@suse.de>
21251 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
21252 * cfgloop.c (verify_loop_structure): Verify the root loop node.
21253 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
21254 instead of get_eh_region_from_lp_number.
21255 * loop-init.c (fix_loop_structure): If we removed a loop, reset
21258 2015-04-23 Anton Blanchard <anton@samba.org>
21260 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
21261 need for -mprofile-kernel to save LR to stack.
21263 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21265 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
21267 (insn_is_swappable_p): Return 1 for a convert from double to
21268 single precision when all of its uses are splats of BE element
21271 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21273 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
21275 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21278 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
21279 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
21280 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
21282 (rs6000_builtin_mask_for_load): Return 0 for targets with
21283 efficient unaligned VSX accesses so that the vectorizer will use
21284 direct unaligned loads.
21285 (rs6000_builtin_support_vector_misalignment): Always return true
21286 for targets with efficient unaligned VSX accesses.
21287 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
21288 stores on targets with efficient unaligned VSX accesses is almost
21289 always the same as the cost of an aligned load or store, so model
21291 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
21292 unaligned vectors if we have efficient unaligned VSX accesses.
21293 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
21294 undocumented option.
21296 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21299 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
21301 * config.gcc (LIBC_MUSL): New tm_defines macro.
21302 * config/linux.h (OPTION_MUSL): Define.
21303 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
21304 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
21305 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
21307 * config/linux.opt (mmusl): New option.
21308 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
21309 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
21311 * configure: Regenerate.
21313 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
21315 * config.gcc (LIBC_MUSL): New tm_defines macro.
21316 * config/linux.h (OPTION_MUSL): Define.
21317 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
21318 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
21319 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
21321 * config/linux.opt (mmusl): New option.
21322 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
21323 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
21325 * configure: Regenerate.
21327 2015-04-22 Yury Gribov <y.gribov@samsung.com>
21329 * doc/invoke.texi (-fsanitize-sections): Update description.
21330 * asan.c (set_sanitized_sections): Parse incoming arg.
21331 (section_sanitized_p): Support wildcards.
21333 2015-04-22 Tom de Vries <tom@codesourcery.com>
21335 PR tree-optimization/65823
21336 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
21337 equality between ap_copy and ap.
21339 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21342 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
21344 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21347 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
21349 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21352 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
21353 remove already contained t-files.
21355 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21357 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
21358 Remove unneeded forward declarations.
21359 (suitable_for_tail_call_opt_p): Commentary typo fix.
21361 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21363 * varasm.c (emit_bss): Remove redundant guard.
21365 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21367 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
21369 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21371 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
21373 2015-04-22 Hale Wang <hale.wang@arm.com>
21374 Terry Guo <terry.guo@arm.com>
21376 PR rtl-optimization/64818
21377 * combine.c (can_combine_p): Don't combine user-specified
21378 register if it is in an asm input.
21380 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
21383 * passes.def (early_optimizations): Add pass_dse.
21385 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21387 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
21388 * reorg.c (redundant_insn): Remove ifdef
21389 INSN_REFERENCES_ARE_DELAYED.
21390 * resource.c (mark_referenced_resources): Likewise.
21392 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21394 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
21395 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
21396 * resource.c (mark_set_resources): Likewise.
21398 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21400 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
21401 * cfgcleanup.c (flow_find_cross_jump): Likewise.
21402 (flow_find_head_matching_sequence): Likewise.
21403 (try_head_merge_bb): Likewise.
21404 * combine.c (can_combine_p): Likewise.
21405 (try_combine): Likewise.
21406 (distribute_notes): Likewise.
21407 * df-problems.c (can_move_insns_across): Likewise.
21408 * final.c (final): Likewise.
21409 * gcse.c (insert_insn_end_basic_block): Likewise.
21410 * ira.c (find_moveable_pseudos): Likewise.
21411 * reorg.c (try_merge_delay_insns): Likewise.
21412 (fill_simple_delay_slots): Likewise.
21413 (fill_slots_from_thread): Likewise.
21414 * sched-deps.c (sched_analyze_2): Likewise.
21416 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21418 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
21419 PIC_OFFSET_TABLE_REGNUM.
21421 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21423 * alias.c (init_alias_target): Remove ifdef
21424 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
21425 * df-scan.c (df_insn_refs_collect): Likewise.
21426 (df_get_regular_block_artificial_uses): Likewise.
21427 (df_get_eh_block_artificial_uses): Likewise.
21428 (df_get_entry_block_def_set): Likewise.
21429 (df_get_exit_block_use_set): Likewise.
21430 * emit-rtl.c (gen_rtx_REG): Likewise.
21431 * ira.c (ira_setup_eliminable_regset): Likewise.
21432 * reginfo.c (init_reg_sets_1): Likewise.
21433 * regrename.c (rename_chains): Likewise.
21434 * reload1.c (reload): Likewise.
21435 (eliminate_regs_in_insn): Likewise.
21436 * resource.c (mark_referenced_resources): Likewise.
21437 (init_resource_info): Likewise.
21439 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21441 * defaults.h (MASK_RETURN_ADDR): New definition.
21442 * except.c (expand_builtin_extract_return_addr): Remove ifdef
21445 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21447 * defaults.h (RETURN_ADDR_OFFSET): New definition.
21448 * except.c (expand_builtin_extract_return_addr): Remove ifdef
21449 RETURN_ADDR_OFFSET.
21450 (expand_builtin_frob_return_addr): Likewise.
21452 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21454 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
21455 (try_redirect_by_replacing_jump): Likewise.
21456 (rtl_tidy_fallthru_edge): Likewise.
21457 * combine.c (insn_a_feeds_b): Likewise.
21458 (find_split_point): Likewise.
21459 (simplify_set): Likewise.
21460 * cprop.c (cprop_jump): Likewise.
21461 * cse.c (cse_extended_basic_block): Likewise.
21462 * df-problems.c (can_move_insns_across): Likewise.
21463 * function.c (emit_use_return_register_into_block): Likewise.
21464 * haifa-sched.c (sched_init): Likewise.
21465 * ira.c (find_moveable_pseudos): Likewise.
21466 * loop-invariant.c (find_invariant_insn): Likewise.
21467 * lra-constraints.c (curr_insn_transform): Likewise.
21468 * postreload.c (reload_combine_recognize_const_pattern):
21470 * reload.c (find_reloads): Likewise.
21471 * reorg.c (delete_scheduled_jump): Likewise.
21472 (steal_delay_list_from_target): Likewise.
21473 (steal_delay_list_from_fallthrough): Likewise.
21474 (redundant_insn): Likewise.
21475 (fill_simple_delay_slots): Likewise.
21476 (fill_slots_from_thread): Likewise.
21477 (delete_computation): Likewise.
21478 * sched-rgn.c (add_branch_dependences): Likewise.
21480 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21482 * genconfig.c (main): Always define HAVE_cc0.
21483 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
21485 * cfgcleanup.c (flow_find_cross_jump): Likewise.
21486 (flow_find_head_matching_sequence): Likewise.
21487 (try_head_merge_bb): Likewise.
21488 * cfgrtl.c (rtl_merge_blocks): Likewise.
21489 (try_redirect_by_replacing_jump): Likewise.
21490 (rtl_tidy_fallthru_edge): Likewise.
21491 * combine.c (do_SUBST_MODE): Likewise.
21492 (insn_a_feeds_b): Likewise.
21493 (combine_instructions): Likewise.
21494 (can_combine_p): Likewise.
21495 (try_combine): Likewise.
21496 (find_split_point): Likewise.
21498 (simplify_set): Likewise.
21499 (distribute_notes): Likewise.
21500 * cprop.c (cprop_jump): Likewise.
21501 * cse.c (cse_extended_basic_block): Likewise.
21502 * df-problems.c (can_move_insns_across): Likewise.
21503 * final.c (final): Likewise.
21504 (final_scan_insn): Likewise.
21505 * function.c (emit_use_return_register_into_block): Likewise.
21506 * gcse.c (insert_insn_end_basic_block): Likewise.
21507 * haifa-sched.c (sched_init): Likewise.
21508 * ira.c (find_moveable_pseudos): Likewise.
21509 * loop-invariant.c (find_invariant_insn): Likewise.
21510 * lra-constraints.c (curr_insn_transform): Likewise.
21511 * optabs.c (prepare_cmp_insn): Likewise.
21512 * postreload.c (reload_combine_recognize_const_pattern):
21514 * reload.c (find_reloads): Likewise.
21515 (find_reloads_address_1): Likewise.
21516 * reorg.c (delete_scheduled_jump): Likewise.
21517 (steal_delay_list_from_target): Likewise.
21518 (steal_delay_list_from_fallthrough): Likewise.
21519 (try_merge_delay_insns): Likewise.
21520 (redundant_insn): Likewise.
21521 (fill_simple_delay_slots): Likewise.
21522 (fill_slots_from_thread): Likewise.
21523 (delete_computation): Likewise.
21524 (relax_delay_slots): Likewise.
21525 * sched-deps.c (sched_analyze_2): Likewise.
21526 * sched-rgn.c (add_branch_dependences): Likewise.
21528 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21530 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
21531 that is trivially ded on non cc0 targets.
21532 (simplify_set): Likewise.
21533 (mark_used_regs_combine): Likewise.
21534 * cse.c (new_basic_block): Likewise.
21535 (fold_rtx): Likewise.
21536 (cse_insn): Likewise.
21537 (cse_extended_basic_block): Likewise.
21538 (set_live_p): Likewise.
21539 * rtlanal.c (canonicalize_condition): Likewise.
21540 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
21542 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21544 * conditions.h: Define macros even if HAVE_cc0 is undefined.
21545 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
21546 * final.c: Likewise.
21547 * jump.c: Likewise.
21548 * recog.c: Likewise.
21549 * recog.h: Declare functions even when HAVE_cc0 is undefined.
21550 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
21552 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21554 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
21555 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
21556 * builtins.c (expand_builtin): Remove check if
21557 EH_RETURN_DATA_REGNO is defined.
21558 * df-scan.c (df_bb_refs_collect): Likewise.
21559 (df_get_exit_block_use_set): Likewise.
21560 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
21561 * ira-lives.c (process_bb_node_lives): Likewise.
21562 * lra-lives.c (process_bb_lives): Likewise.
21564 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
21566 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
21567 FIRST_PSEUDO_REG): New.
21568 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
21569 (ARG_POINTER_REGNUM): Define to ARGP_REG.
21570 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
21571 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
21572 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
21573 (FIRST_INT_REG): New.
21574 (LAST_INT_REG): New.
21575 (FIRST_*_REG): Define using *_REG.
21576 (LAST_*_REG): Ditto.
21577 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
21578 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
21579 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
21581 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21583 * expmed.c: (synth_mult): Only assume overlapping
21584 shift with previous steps in alg_sub_t_m2 case.
21586 2015-04-21 Richard Biener <rguenther@suse.de>
21588 PR tree-optimization/65650
21589 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
21590 transitions involving copies.
21591 (set_lattice_value): Adjust for copy lattice state.
21592 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
21593 if that doesn't dominate the merge point.
21594 (bit_value_unop): Adjust what we treat as varying mask.
21595 (bit_value_binop): Likewise.
21596 (bit_value_assume_aligned): Likewise.
21597 (evaluate_stmt): When we simplified to a SSA name record a copy
21598 instead of dropping to varying.
21599 (visit_assignment): Simplify.
21601 * gimple-match.h (gimple_simplify): Add another callback.
21602 * gimple-fold.c (fold_stmt_1): Adjust caller.
21603 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
21604 for the 2nd callback.
21605 * gimple-match-head.c (gimple_simplify): Add a callback that is
21606 used to valueize the stmt operands and use it that way.
21608 2015-04-21 Richard Biener <rguenther@suse.de>
21610 PR tree-optimization/65788
21611 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
21613 2015-04-21 Richard Biener <rguenther@suse.de>
21615 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
21616 vec_construct cost by vec_stmt_cost.
21618 2015-04-21 Richard Biener <rguenther@suse.de>
21620 * cfghooks.h (create_basic_block): Replace with two overloads
21621 for RTL and GIMPLE.
21622 (split_block): Likewise.
21623 * cfghooks.c (split_block): Rename to ...
21624 (split_block_1): ... this.
21625 (split_block): Add two type-safe overloads for RTL and GIMPLE.
21626 (split_block_after_labels): Call split_block_1.
21627 (create_basic_block): Rename to ...
21628 (create_basic_block_1): ... this.
21629 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
21630 (create_empty_bb): Call create_basic_block_1.
21631 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
21632 split_block_after_labels.
21633 * omp-low.c (expand_parallel_call): Likewise.
21634 (expand_omp_target): Likewise.
21635 (simd_clone_adjust): Likewise.
21636 * tree-chkp.c (chkp_get_entry_block): Likewise.
21637 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
21638 create_basic_block overload.
21639 (cgraph_node::expand_thunk): Likewise.
21640 * tree-cfg.c (make_blocks): Likewise.
21641 (handle_abnormal_edges): Likewise.
21642 * tree-inline.c (copy_bb): Likewise.
21644 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21646 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
21648 (*xor_one_cmplsidi3_ze): Likewise.
21650 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
21652 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
21653 use df_remove_problem rather than manually removing problems, leaving
21654 holes in df->problems_in_order[].
21656 2015-04-21 Tom de Vries <tom@codesourcery.com>
21658 PR tree-optimization/65802
21659 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
21661 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21663 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
21665 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
21666 at '.'. Assert that there's enough space for everything.
21668 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
21670 PR tree-optimization/64950
21672 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
21675 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
21678 2015-04-20 Shiva Chen <shiva0217@gmail.com>
21680 PR rtl-optimization/64916
21681 * cfgcleanup.c (values_equal_p): New function.
21682 (can_replace_by): Use it.
21684 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
21687 * doc/invoke.texi ([-Wnarrowing]): Update.
21689 2015-04-20 Jeff Law <law@redhat.com>
21691 PR tree-optimization/65658
21692 * tree-ssa-threadupdate.c (redirection_block_p): Remove
21693 redundant test for GIMPLE_ASSIGN in last change.
21695 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
21697 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
21698 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
21699 (legitimize_tls_address): Ditto.
21700 (ix86_expand_move): Ditto.
21701 (ix86_expand_binary_operator): Remove reload_in_progress checks.
21702 (ix86_expand_unary_operator): Ditto.
21703 * config/i386/predicates.md (index_register_operand): Ditto.
21705 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
21707 * reorg.c (try_merge_delay_insns): Improve correctness checking
21708 for targets with multiple delay slots.
21710 2015-04-20 Jeff Law <law@redhat.com>
21712 PR tree-optimization/65658
21713 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
21716 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
21718 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
21719 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
21722 2015-04-20 Jakub Jelinek <jakub@redhat.com>
21725 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
21727 2015-04-20 Richard Biener <rguenther@suse.de>
21729 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
21730 * gimple-fold.c (gimple_build_valueize): New function.
21731 (gimple_build): Always use gimple_build_valueize as valueize hook.
21733 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
21736 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
21737 and overwrite variable parts if <= 1/2 the elements are variable.
21739 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
21741 PR rtl-optimization/65805
21742 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
21743 Don't use difference of offset and previous offset if
21744 update_sp_offset is non-zero.
21745 (eliminate_regs_in_insn): Ditto.
21746 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
21747 lra_eliminate_regs_1 call.
21748 * lra-constraints.c (get_equiv_with_elimination): Ditto.
21750 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
21752 * hash-table.h: Remove version of hash_table that stored value_type *.
21753 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
21754 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
21755 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
21756 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
21757 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
21758 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
21759 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
21760 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
21761 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
21762 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
21763 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
21764 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
21765 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
21766 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
21767 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
21768 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
21770 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21771 Jakub Jelinek <jakub@redhat.com>
21774 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
21775 subsequent SH_NONE operand does not overwrite an existing *special
21777 (adjust_extract): Handle case where a vec_extract operation is
21778 wrapped in a PARALLEL.
21780 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21783 * config/i386/i386.c (ix86_binds_local_p): Define only if
21784 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
21786 2015-04-17 Jeff Law <law@redhat.com>
21788 PR tree-optimization/47679
21789 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
21790 * tree-ssa-scopedtables.c: New file.
21791 * tree-ssa-scopedtables.h: New file.
21792 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
21793 (const_and_copies): Change name/type.
21794 (record_const_or_copy): Move into tree-ssa-scopedtables.c
21795 (record_const_or_copy_1): Similarly.
21796 (restore_vars_to_original_value): Similarly.
21797 (pass_dominator::execute): Create and destroy const_and_copies table.
21798 (thread_across_edge): Update passing of const_and_copies.
21799 (record_temporary_equivalence): Use method calls rather than
21800 manipulating const_and_copies directly.
21801 (record_equality, cprop_into_successor_phis): Similarly.
21802 (dom_opt_dom_walker::before_dom_children): Similarly.
21803 (dom_opt_dom_walker::after_dom_children): Similarly.
21804 (eliminate_redundant_computations): Similarly.
21805 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
21806 (record_temporary_equivalence): Likewise.
21807 (invalidate_equivalences): Likewise.
21808 (record_temporary_equivalences_from_phis): Update due to type
21809 change of const_and_copies. Use method calls rather than
21810 manipulating the stack directly.
21811 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
21812 (thread_through_normal_block, thread_across_edge): Likewise.
21813 (thread_across_edge): Likewise.
21814 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
21815 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
21817 (identify_jump_threads): Update due to type change of equiv_stack.
21818 (finalize_jump_threads): Delete the equiv_stack when complete.
21820 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
21822 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
21823 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
21824 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
21826 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
21829 * config.gcc: Exit with a comment when we do not have a major version
21830 number for the FreeBSD target.
21832 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21835 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
21836 maybe_allows_mem bitfields.
21837 (maybe_allows_none_start, maybe_allows_none_end,
21838 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
21839 maybe_allows_mem_end): New variables.
21840 (compute_maybe_allows): New function.
21841 (add_constraint): Use it to initialize maybe_allows_reg and
21842 maybe_allows_mem fields.
21843 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
21844 is_address constraints such that those that allow neither mem nor
21845 reg come first, then those that only allow reg but not mem, then
21846 those that only allow mem but not reg, then the rest.
21847 (write_allows_reg_mem_function): New function.
21848 (write_tm_preds_h): Call it.
21849 * stmt.c (parse_output_constraint, parse_input_constraint): Use
21850 the generated insn_extra_constraint_allows_reg_mem function
21851 instead of always setting *allows_reg = true; *allows_mem = true;
21852 for unknown extra constraints.
21854 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21857 * output.h (default_binds_local_p_3): New.
21858 * varasm.c (default_binds_local_p_3): Make it public. Take an
21859 argument to indicate if common symbol may be local. If common
21860 symbol may be local, treat non-external variable as defined
21862 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
21863 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
21864 * config/i386/i386.c (ix86_binds_local_p): New.
21865 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
21866 ix86_binds_local_p.
21868 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21871 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
21872 trying mem_loc_descriptor on XEXP (rtl, 0).
21874 2015-04-17 Martin Liska <mliska@suse.cz>
21876 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
21877 Release symbol_compare_collection.
21878 * ipa-reference.c: Add TODO that a vector should be released.
21880 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
21883 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
21884 to new AVR-LibC file layout (bug #44574).
21885 (*avrlibc_devicelib): Same.
21886 * config/avr/avr-mcus.def: Adjust comments.
21887 * config/avr/avr.opt (nodevicelib): Adjust help.
21889 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
21891 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
21893 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
21896 * gimplify.c (gimplify_init_constructor): Always emit a
21897 side-effecting constructor.
21899 2015-04-17 Tom de Vries <tom@codesourcery.com>
21901 PR tree-optimization/64950
21902 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
21903 in cfun->curr_properties.
21904 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
21905 if we generate an IFN_VA_ARG.
21906 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
21907 function if PROP_gimple_lva is not set in src function.
21909 2015-04-17 Tom de Vries <tom@codesourcery.com>
21910 Michael Matz <matz@suse.de>
21912 PR tree-optimization/64950
21913 * gimple-iterator.c (update_modified_stmts): Remove static.
21914 * gimple-iterator.h (update_modified_stmts): Declare.
21915 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
21916 (gimplify_va_arg_internal): New function.
21917 (gimplify_va_arg_expr): Use IFN_VA_ARG.
21918 * gimplify.h (gimplify_va_arg_internal): Declare.
21919 * internal-fn.c (expand_VA_ARG): New unreachable function.
21920 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
21921 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
21922 (expand_ifn_va_arg): New function.
21923 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
21924 (pass_stdarg::execute): Call expand_ifn_va_arg.
21925 (pass_data_lower_vaarg): New pass_data.
21926 (pass_lower_vaarg): New gimple_opt_pass.
21927 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
21928 (make_pass_lower_vaarg): New function.
21929 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
21930 properties_required field.
21931 * passes.def (all_passes): Add pass_lower_vaarg.
21932 * tree-pass.h (PROP_gimple_lva): Add define.
21933 (make_pass_lower_vaarg): Declare.
21935 2015-04-17 Tom de Vries <tom@codesourcery.com>
21937 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
21938 * calls.c (call_expr_flags): Same.
21940 2015-04-17 Tom de Vries <tom@codesourcery.com>
21942 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
21943 (pass_stdarg::execute): ... here.
21945 2015-04-17 Tom de Vries <tom@codesourcery.com>
21946 Michael Matz <matz@suse.de>
21948 * tree-cfg.c (make_blocks_1): Factor out of ...
21949 (make_blocks): ... here.
21950 (make_edges_bb): Factor out of ...
21951 (make_edges): ... here.
21952 (gimple_find_sub_bbs): New function.
21953 * tree-cfg.h (gimple_find_sub_bbs): Declare.
21955 2015-04-17 Tom de Vries <tom@codesourcery.com>
21957 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
21959 2015-04-17 Yury Gribov <y.gribov@samsung.com>
21961 * asan.c (set_sanitized_sections): New function.
21962 (section_sanitized_p): Ditto.
21963 (asan_protect_global): Optionally sanitize user-defined
21965 * asan.h (set_sanitized_sections): Declare new function.
21966 * common.opt (fsanitize-sections): New option.
21967 * doc/invoke.texi (-fsanitize-sections): Document new option.
21968 * opts-global.c (handle_common_deferred_options): Handle new
21971 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21974 * dwarf2out.c (loc_list_from_tree): Return NULL
21975 for DEBUG_EXPR_DECL.
21977 2015-04-17 Christian Bruel <christian.bruel@st.com>
21979 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
21982 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21984 * ira-color.c (setup_left_conflict_sizes_p): Do not process
21985 node itself when computing left conflict subnode size.
21987 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21989 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
21990 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
21991 *fop_<mode>_1_sse using enabled attribute. Use
21992 register_mixssei387nonimm_operand operand 1 predicate. Change
21993 alternative 3 constraints from "x" to "v".
21995 2015-04-16 Richard Biener <rguenther@suse.de>
21997 PR tree-optimization/65774
21998 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
21999 bit-value tracking on.
22001 2015-04-16 Richard Biener <rguenther@suse.de>
22003 PR tree-optimization/64277
22004 * tree-vrp.c (check_array_ref): Fix anti-range handling,
22005 simplify upper bound handling.
22006 (search_for_addr_array): Simplify.
22007 (check_array_bounds): Handle ADDR_EXPRs here.
22008 (check_all_array_refs): Simplify.
22010 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
22012 * config/i386/i386.c (print_reg): Rewrite function.
22014 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22016 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
22017 Invert the condition.
22019 2015-04-16 Renlin Li <renlin.li@arm.com>
22021 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
22022 simplifications for UNSIGNED_FLOAT.
22024 2015-04-16 Nick Clifton <nickc@redhat.com>
22026 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
22028 (enum rl78_cpu_type): New.
22029 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
22030 (umulhi3_shift_virt): Remove m constraint from operand 1.
22031 (umulqihi3_virt): Likewise.
22032 * config/rl78/rl78.c (rl78_option_override): Add code to process
22033 -mcpu and -mmul options.
22034 (rl78_alloc_physical_registers): Add code to handle divhi and
22035 divsi valloc attributes.
22036 (set_origin): Likewise.
22037 * config/rl78/rl78.h (RL78_MUL_G14): Define.
22038 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
22039 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
22041 (ASM_SPEC): Pass -mcpu on to assembler.
22042 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
22043 (mulqi3_rl78): Likewise.
22044 (mulhi3_g13): Likewise.
22045 (mulhi3): Generate the G13 or G14 versions of the insn directly.
22046 (mulsi3): Likewise.
22047 (mulhi3_g14): Add clobbers of AX and BC.
22048 (mulsi3_g14): Likewise.
22049 (mulsi3_g13): Likewise.
22050 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
22051 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
22052 * config/rl78/rl78.opt (mmul): Initialise value to
22054 (mcpu): New option.
22055 (m13, m14, mrl78): New option aliases.
22056 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
22057 (MULTILIB_DIRNAMES): Add g13 and g14.
22058 * doc/invoke.texi: Document -mcpu and -mmul options.
22060 2015-04-16 Richard Biener <rguenther@suse.de>
22062 * tree-ssa-ccp.c (likely_value): See if we have operands that
22063 are marked as never simulate again and return CONSTANT in this
22065 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
22066 not have any operands that will be simulated again as
22067 not being simulated again.
22069 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
22071 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
22072 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
22073 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
22075 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
22077 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
22078 *float<SWI48:mode><MODEF:mode>2_sse.
22079 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
22081 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
22084 2015-04-15 Tom de Vries <tom@codesourcery.com>
22087 * function.c (push_dummy_function): New function.
22088 (init_dummy_function_start): Use push_dummy_function.
22089 (pop_dummy_function): New function. Factored out of ...
22090 (expand_dummy_function_end): ... here.
22091 * function.h (push_dummy_function, pop_dummy_function): Declare.
22092 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
22093 pop_dummy_function.
22094 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
22096 2015-04-15 Jeff Law <law@redhat.com>
22098 PR tree-optimization/47679
22099 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
22100 need for forward declaration in upcoming changes.
22101 (record_conditions, record_edge_info): Likewise.
22103 PR rtl-optimization/42522
22104 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
22105 SIGN_EXTRACT as a whole object rather than simplifying
22108 2015-04-15 Jakub Jelinek <jakub@redhat.com>
22111 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
22112 and GIMPLE_PREDICT use break instead of return true. For
22113 GIMPLE_EH_DISPATCH, compare dispatch region.
22115 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
22117 * doc/extend.texi (__sync Builtins): Simplify some text. Update
22118 details about the implementation. Make clear preference for
22119 __atomic builtins. Reduce possibility of future change.
22121 2015-04-15 Nick Clifton <nickc@redhat.com>
22123 * config/rx/rx.opt (mallow-string-insns): New option.
22124 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
22125 builtin if string instructions are denied.
22126 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
22127 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
22129 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
22130 * config/rx/rx.md (movstr): Enable pattern only if string
22131 instructions are allowed.
22132 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
22133 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
22134 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
22135 (MULTILIB_DIRNAMES): Add no-strings.
22136 * doc/invoke.texi: Document -mno-allow-string-insns.
22138 2015-04-15 Alan Modra <amodra@gmail.com>
22142 PR middle-end/36043
22143 * calls.c (load_register_parameters): Don't load past end of
22144 mem unless suitably aligned.
22146 2015-04-15 Nick Clifton <nickc@redhat.com>
22148 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
22149 decrement instruction as being frame related.
22150 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
22152 If zero extending a function address enclose the operation in
22154 (rl78_preferred_reload_class): New function.
22155 (TARGET_PREFERRED_RELOAD_CLASS): Define.
22156 * config/rl78/rl78.md: Remove useless constraints in expanders.
22157 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
22158 (mulhi3_rl78): Likewise.
22159 (mulhi3_g13): Likewise.
22160 (mulsi3_rl78): Likewise.
22161 (es_addr): Move to before the multiply patterns.
22163 2015-04-15 Alan Modra <amodra@gmail.com>
22165 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
22166 and sequence_stack. Add seq.
22167 (seq_stack): Delete.
22168 * function.c (prepare_function_start): Don't access x_last_insn.
22169 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
22170 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
22171 * emit_rtl.c (start_sequence, push_topmost_sequence,
22172 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
22173 sequence accessors.
22174 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
22175 remove_insn): Likewise. Simplify.
22176 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
22177 and pop_topmost_sequence.
22178 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
22180 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
22182 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
22185 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
22188 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
22190 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
22191 (LEGACY_INT_REGNO_P): Ditto.
22192 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
22193 (ANY_MASK_REG_P): Remove.
22194 (BND_REG_P): Rename from ANY_BND_REG_P.
22195 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
22196 legacy integer registers. Do not handle MMX_REG_P in a special way.
22197 Merge 64byte and 32byte SSE handling.
22199 2015-04-14 Nick Clifton <nickc@redhat.com>
22201 * expr.c (expand_assignment): Force an address offset computation
22202 into a register before changing its mode.
22203 (expand_expr_real_1): Likewise.
22205 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
22207 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
22208 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
22209 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
22210 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
22211 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
22212 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
22213 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
22214 and __aarch64_vget_lane_any.
22216 2015-04-14 Jakub Jelinek <jakub@redhat.com>
22218 PR rtl-optimization/65761
22219 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
22220 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
22222 2015-04-14 Richard Biener <rguenther@suse.de>
22224 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
22225 (graphite_can_represent_scev): Use POINTER_TYPE_P.
22227 2015-04-14 Richard Biener <rguenther@suse.de>
22229 PR tree-optimization/65758
22230 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
22232 (ccp_lattice_meet): Likewise.
22233 (bit_value_unop): Likewise.
22234 (bit_value_binop): Likewise.
22235 (bit_value_assume_aligned): Likewise.
22237 2015-04-14 Christian Bruel <christian.bruel@st.com>
22239 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
22242 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
22244 PR tree-optimization/63387
22245 * match.pd ((x unord x) | (y unord y) -> (x unord y),
22246 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
22248 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
22250 * config/i386/predicates.md (any_QIreg_operand): Rename from
22251 q_regs_operand. Do not process subregs.
22252 (QIreg_operand): Use QI_REGNO_P predicate.
22253 (ext_QIreg_operand): Ditto.
22254 (ext_register_operand): Ditto.
22255 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
22256 (AND splitters): Ditto.
22257 (AND with -65536 splitter): Add SWI48 mode for operand 0.
22258 (AND with -256 splitter): Use any_QIreg_operand predicate and
22259 SWI248 mode for operand 0.
22260 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
22261 mode for operand 0.
22262 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
22264 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
22266 * doc/plugins.texi: Rewrite first introductory paragraph.
22268 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22270 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
22271 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
22273 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22275 * ipa-profie.c (ipa_profile): Check number of parameters
22276 and possible polymorphic call targets before
22279 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
22281 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
22282 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
22284 2015-04-13 Richard Biener <rguenther@suse.de>
22286 PR tree-optimization/65204
22287 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
22288 takens for bit-CCP.
22290 2015-04-13 Richard Biener <rguenther@suse.de>
22293 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
22294 and cond_not_taken_branch_cost to 4 and 2.
22295 (bdver2_cost): Likewise.
22296 (bdver3_cost): Likewise.
22297 (bdver4_cost): Likewise.
22299 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22301 * hash-table.h (hash_table constructor): Add mem stats.
22302 (alloc_entries): Likewise.
22304 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22306 * ipa-cp.c (ipcp_driver): Relase prev_edge.
22307 * passes.c (execute_one_pass): Only add transform if pass has one.
22309 2015-04-12 Joseph Myers <joseph@codesourcery.com>
22311 * config/i386/i386.c (ix86_option_override_internal): Don't set
22312 -fprefetch-loop-arrays if optimizing for size.
22314 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22315 Gerald Pfeifer <gerald@pfeifer.com>
22317 * doc/contrib.texi (Contributors): Add Martin Jambor and
22320 2015-04-12 Jakub Jelinek <jakub@redhat.com>
22322 * BASE-VER: Set to 6.0.0.
22324 PR tree-optimization/65747
22325 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
22326 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
22328 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
22330 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
22331 sentence. Improve grammar.
22333 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
22335 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
22337 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
22340 * ipa-inline-transform.c (speculation_removed): Remove static var.
22341 (check_speculations): New function.
22342 (clone_inlined_nodes): Do not check spculations.
22343 (inline_call): Call check_speculations.
22344 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
22345 consider non-invariants.
22347 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
22348 Martin Liska <mliska@suse.cz>
22351 * ipa-icf.c (sem_item::compare_cgraph_references): function and
22352 variable can not match.
22353 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
22354 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
22356 2015-04-11 Jakub Jelinek <jakub@redhat.com>
22358 PR tree-optimization/65735
22359 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
22360 Remove visited_phis argument, add visited_bbs, avoid recursing into the
22361 same bb rather than just into the same phi node.
22362 (thread_through_normal_block): Adjust caller.
22364 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
22366 * doc/contrib.texi (Contributors): Add Ira Rosen.
22368 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
22370 * gcov.c (find_source): Fix miswording in error message.
22371 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
22372 (ix86_expand_sse_comi_round): Fix typo in error message.
22374 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
22376 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
22378 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
22380 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
22382 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
22385 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
22386 Print bad_spills_num and insn_pseudos_num.
22388 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22391 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
22392 when creating +1 values for SImode.
22394 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
22397 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
22400 2015-04-10 Jakub Jelinek <jakub@redhat.com>
22401 Iain Sandoe <iain@codesourcery.com>
22404 * configure: Regenerate.
22406 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
22409 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
22411 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
22413 * doc/contrib.texi (Contributors): Add John Marino.
22415 2015-04-09 Jakub Jelinek <jakub@redhat.com>
22417 PR tree-optimization/65709
22418 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
22419 TREE_TYPE (TREE_TYPE (t)).
22421 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
22424 * lra-int.h (lra_bad_spill_regno_start): New.
22425 * lra.c (lra_bad_spill_regno_start): New.
22426 (lra): Set up lra_bad_spill_regno_start. Set up
22427 lra_constraint_new_regno_start unconditionally.
22428 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
22431 2015-04-09 Marek Polacek <polacek@redhat.com>
22432 Jakub Jelinek <jakub@redhat.com>
22434 PR middle-end/65554
22435 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
22436 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
22439 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
22441 PR rtl-optimization/65693
22442 * combine.c (is_parallel_of_n_reg_sets): Move outside of
22445 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
22448 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
22449 device specs file if "device-specs%s" didn't resolve to a path.
22451 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
22454 * config/i386/i386.c (fixup_modeless_constant): New.
22455 (ix86_expand_args_builtin): Fixup modeless constant operand.
22456 (ix86_expand_round_builtin): Ditto.
22457 (ix86_expand_special_args_builtin): Ditto.
22458 (ix86_expand_builtin): Ditto.
22460 2015-04-09 Jakub Jelinek <jakub@redhat.com>
22463 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
22464 any pow2 integer in between 2 and 0x80000000U inclusive.
22466 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
22468 PR rtl-optimization/65693
22469 * combine.c (is_parallel_of_n_reg_sets): Change first argument
22470 from an rtx_insn * to an rtx.
22471 (try_combine): Adjust both callers. Use it once more.
22473 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22475 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
22476 (chkp_make_static_const_bounds): Search existing
22477 symbol by assembler name. Use make_decl_one_only.
22478 (chkp_get_zero_bounds_var): Remove node search which
22479 is now performed in chkp_make_static_const_bounds.
22480 (chkp_get_none_bounds_var): Likewise.
22482 2015-04-08 Michael Witten <mfwitten@gmail.com>
22484 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
22487 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22489 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
22491 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
22493 * doc/extend.texi (__sync Builtins): Fix grammar.
22495 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22497 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
22499 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22501 * varasm.c (emit_local): Move definition of align.
22503 2015-04-08 Julian Brown <julian@codesourcery.com>
22505 * config/nvptx/mkoffload.c (process): Support variable mapping.
22507 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
22509 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
22511 (alpha_write_one_linkage): Correct typo.
22513 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22515 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
22517 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
22519 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
22521 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22523 * tree-chkp.h (chkp_insert_retbnd_call): New.
22524 * tree-chkp.c (chkp_insert_retbnd_call): New.
22525 * ipa-split.c (insert_bndret_call_after): Remove.
22526 (split_function): Use chkp_insert_retbnd_call.
22527 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
22528 bounds for instrumented functions.
22530 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
22533 * calls.c (initialize_argument_information): When producing tail
22534 call also turn SSA_NAMES passed by references to original PARM_DECLs
22536 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
22539 * lra-remat.c (do_remat): Process input and non-input insn
22540 registers separately.
22542 2015-04-07 Jakub Jelinek <jakub@redhat.com>
22545 * valtrack.c (debug_lowpart_subreg): New function.
22546 (dead_debug_insert_temp): Use it.
22548 PR middle-end/65680
22549 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
22550 into signed HOST_WIDE_INT the same as negative bit_offset.
22552 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
22554 * ipa-comdats.c (ipa_comdats): Visit all thunks
22555 to set proper comdat group.
22557 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22560 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
22561 on constants for NEON VSTRUCT modes.
22563 2015-04-07 Jakub Jelinek <jakub@redhat.com>
22564 Iain Sandoe <iain@codesourcery.com>
22567 * configure: Regenerate.
22569 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22572 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
22573 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
22574 that LFD is used to load double constants instead of LFS. Add
22575 defaults for all costs structures. Add comments for missing
22576 initialization fields.
22577 (size32_cost): Likewise.
22578 (size64_cost): Likewise.
22579 (rs64a_cost): Likewise.
22580 (mpccore_cost): Likewise.
22581 (ppc403_cost): Likewise.
22582 (ppc405_cost): Likewise.
22583 (ppc440_cost): Likewise.
22584 (ppc476_cost): Likewise.
22585 (ppc601_cost): Likewise.
22586 (ppc603_cost): Likewise.
22587 (ppc604_cost): Likewise.
22588 (ppc604e_cost): Likewise.
22589 (ppc620_cost): Likewise.
22590 (ppc630_cost): Likewise.
22591 (ppccell_cost): Likewise.
22592 (ppc750_cost): Likewise.
22593 (ppc7450_cost): Likewise.
22594 (ppc8540_cost): Likewise.
22595 (ppce300c2c3_cost): Likewise.
22596 (ppce500mc_cost): Likewise.
22597 (ppce500mc64_cost): Likewise.
22598 (ppce5500_cost): Likewise.
22599 (ppce6500_cost): Likewise.
22600 (titan_cost): Likewise.
22601 (power4_cost): Likewise.
22602 (power6_cost): Likewise.
22603 (power7_cost): Likewise.
22604 (power8_cost): Likewise.
22605 (ppca2_cost): Likewise.
22606 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
22608 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
22609 instead of XXLOR to copy SFmode to clear out dirty bits created
22610 when SFmode denormals are generated.
22611 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
22612 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
22614 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
22616 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
22617 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
22618 * config/aarch64/aarch64-tune.md: Regenerate.
22620 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
22622 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
22623 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
22624 * config/arm/arm-cores.def (exynos-m1): New core.
22625 * config/arm/arm-tune.md: Regenerate.
22626 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
22627 * config/arm/bpabi.h: Likewise.
22629 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
22631 * ipa-cp (set_single_call_flag): Remove too
22632 restrictive assert.
22634 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
22636 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
22637 GOMP_offload_unregister from the destructor.
22639 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
22641 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
22642 flags for instrumentation thunk.
22643 (chkp_produce_thunks): Likewise.
22645 2015-04-05 Martin Liska <mliska@suse.cz>
22648 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
22649 has computed data structure.
22650 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22652 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
22654 * invoke.texi (inline-unit-growth): Increase growth to 20%
22655 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
22657 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
22660 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
22662 (lra_rematerialization_iter): New.
22663 * lra.c (lra): Initialize lra_rematerialization_iter.
22664 Stop updating lra_constraint_new_regno_start after switching of
22665 inheritance and rematerialization.
22666 * lra-remat.c (lra_rematerialization_iter): New.
22667 (lra_remat): Add printing pass iteration. Do rematerialization
22668 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
22670 2015-04-04 Richard Biener <rguenther@suse.de>
22672 PR tree-optimization/64909
22673 PR tree-optimization/65660
22674 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
22675 to take a cost vector for scalar iteration cost.
22676 (vect_get_single_scalar_iteration_cost): Likewise.
22677 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
22678 Compute the scalar iteration cost into a cost vector.
22679 (vect_get_known_peeling_cost): Use the scalar cost vector to
22680 account for the cost of the peeled iterations.
22681 (vect_estimate_min_profitable_iters): Likewise.
22682 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
22685 2015-04-04 Alan Modra <amodra@gmail.com>
22689 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
22690 0.0 constant unless TARGET_VSX.
22691 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
22694 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22697 * ipa-inline-transform.c (inline_call): Skip sanity check to work
22700 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22703 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
22704 speculative indirect edges to avoid ordering issue.
22706 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22709 * ipa-inline.c (edge_badness): Add combined size to the denominator.
22711 2015-04-03 Jakub Jelinek <jakub@redhat.com>
22713 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
22714 TYPE_ARTIFICIAL on the .omp_data* types.
22716 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22718 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
22719 instrumentation thunks.
22721 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22723 * config/i386/i386.c (ix86_expand_call): Avoid nested
22724 PARALLEL in returned call value.
22726 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22728 * lto-cgraph.c (input_cgraph_1): Always link instrumented
22729 assembler name with original one.
22731 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22733 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
22735 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22737 Revert parts of r216820.
22738 * config/i386/i386.md (movqi_internal): Correct type calculation
22739 for alternatives 3 and 5.
22741 2015-04-02 Jakub Jelinek <jakub@redhat.com>
22743 PR preprocessor/61977
22744 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
22745 predefine __vector/__bool/__pixel macros nor context sensitive
22746 macros for CLK_ASM.
22747 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
22749 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
22751 * config/pa/pa.c (pa_output_move_double): Directly handle register
22752 indexed memory operand. Simplify handling of scaled register indexed
22755 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22758 * config/i386/linux-common.h (MPX_SPEC): New.
22759 (CHKP_SPEC): Add MPX_SPEC.
22760 * doc/invoke.texi (-fcheck-pointer-boudns): Document
22761 possible issues with '-z bndplt' support in linker.
22763 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22765 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
22766 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
22767 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
22768 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
22769 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
22771 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
22773 * config/i386/sync.md (UNSPEC_MOVA): Remove.
22774 (atomic_load<mode>): Change operand 0 predicate to
22775 nonimmediate_operand and fix up the destination when needed.
22777 (atomic_loaddi_fpu): Use UNSPEC_LDA.
22778 (atomic_store<mode>): Change operand 1 predicate to
22779 nonimmendate_operand and move the source to register when needed.
22781 (atomic_store<mode>_1): Use UNSPEC_STA.
22782 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
22783 Fix moves from memory operand. Use UNSPEC_STA.
22785 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
22787 * expmed.c (strict_volatile_bitfield_p): Check that the access will
22788 not cross a MODESIZE boundary.
22789 (store_bit_field, extract_bit_field): Added assertions in the
22790 strict volatile bitfields code path.
22792 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
22795 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
22796 Increase args array size by one to avoid buffer overflow.
22798 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22800 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
22802 * ipa-inline.c (edge_badness): Add wrapper penalty.
22803 (sum_callers): Move up.
22804 (inline_small_functions): Set single_caller.
22805 * ipa-inline.h (inline_summary): Add single_caller.
22806 * ipa-split.c (split_function): Set split_part.
22807 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
22808 * cgraph.h (cgraph_node): Add split_part.
22810 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
22813 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
22814 Do not split operands 0 and operands 2 to halfmode.
22815 (atomic_compare_and_swap<mode>): Update for
22816 atomic_compare_and_swap<dwi>_doubleword changes.
22818 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22820 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
22821 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
22822 no caching is done.
22824 2015-03-31 Martin Liska <mliska@suse.cz>
22827 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
22828 has already filled up function summary.
22829 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22831 2015-03-31 Richard Biener <rguenther@suse.de>
22833 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
22836 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
22838 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
22840 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
22841 (s390_asm_output_function_label): Adapt to new signature of
22842 s390_function_num_hotpatch_hw
22843 Optimise the code generating assembler output.
22844 Add comments to assembler file.
22846 2015-03-31 Richard Biener <rguenther@suse.de>
22848 PR middle-end/65626
22849 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
22850 of the noreturn call so it is last and cleanup_control_flow_bb
22851 can do the CFG part.
22853 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
22856 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
22857 same_comdat_group for external symbols.
22858 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
22859 infinite same_comdat_group traversal loop.
22861 2015-03-31 Jakub Jelinek <jakub@redhat.com>
22864 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
22865 automatically to $headers.
22867 2015-03-30 Jakub Jelinek <jakub@redhat.com>
22870 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
22871 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
22873 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
22875 * ipa-prop.c (param_type_may_change_p): Likewise.
22876 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
22877 (remove_unused_scope_block_p): Add in_ctor_dtor_block
22878 argument. Before inlining, preserve
22879 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
22880 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
22882 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
22884 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22887 * ipa-inline.c (edge_badness): Base denominator on callee's
22890 2015-03-27 Martin Jambor <mjambor@suse.cz>
22893 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
22894 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
22895 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
22896 node_calling_single_call.
22897 * ipa-cp.c (count_callers): New function.
22898 (set_single_call_flag): Likewise.
22899 (initialize_node_lattices): Count callers and set single_flag_call if
22901 (incorporate_penalties): New function.
22902 (good_cloning_opportunity_p): Use it, dump new flags.
22903 (propagate_constants_topo): Set node_within_scc flag if appropriate.
22904 * doc/invoke.texi (ipa-cp-recursion-penalty,
22905 ipa-cp-single-call-pentalty): Document.
22907 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22910 * symtab.c (symtab_node::get_partitioning_class): Register vars
22912 * varpool.c (symbol_table::output_variables) Do not assemble unefined
22913 decls for non-symbols.
22915 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
22918 * output.h (default_binds_local_p_2): New.
22919 * varasm.c (default_binds_local_p_2): Renamed to ...
22920 (default_binds_local_p_3): This. Don't return true on protected
22921 data symbol if protected data may be external.
22922 (default_binds_local_p): Use default_binds_local_p_3.
22923 (default_binds_local_p_1): Likewise.
22924 (default_binds_local_p_2): New.
22925 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
22926 default_binds_local_p_2 if TARGET_MACHO is undefined.
22928 2015-03-27 Jakub Jelinek <jakub@redhat.com>
22931 * config/i386/i386.c (legitimize_pic_address): If base
22932 is SYMBOL_REF or LABEL_REF using %rip addressing, force
22933 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
22935 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22938 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
22941 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22944 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
22945 of optimized out indirect call.
22946 (redirect_to_unreachable): Always build symbol table node for
22947 BUILT_IN_UNREACHABLE
22949 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
22952 * ira-costs.c (record_reg_classes): Process all constraint string
22955 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
22957 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
22961 * config/c6x/constraints.md (S3): New constraint.
22962 * config/c6x/c6x.md (real_jump): Use it.
22964 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22966 PR middle-end/65595
22967 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
22968 do redirection if the call is not optimized out.
22970 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
22973 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
22974 (fchkp-check-incomplete-type): Add LTO.
22975 (fchkp-zero-input-bounds-for-main): Likewise.
22976 (fchkp-first-field-has-own-bounds): Likewise.
22977 (fchkp-narrow-bounds): Likewise.
22978 (fchkp-narrow-to-innermost-array): Likewise.
22979 (fchkp-use-static-bounds): Likewise.
22980 (fchkp-use-static-const-bounds): Likewise.
22981 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22983 2015-03-27 Marek Polacek <polacek@redhat.com>
22985 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
22987 2015-03-27 Marek Polacek <polacek@redhat.com>
22990 * ubsan.c (ubsan_create_edge): New function.
22991 (instrument_bool_enum_load): Call it.
22992 (instrument_nonnull_arg): Likewise.
22993 (instrument_nonnull_return): Likewise.
22994 (instrument_object_size): Likewise.
22996 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22998 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
23001 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
23004 * lto-streamer.h (class lto_location_cache): New.
23005 (struct data_in): Add location_cache.
23006 (lto_input_location): Update prototype.
23007 (stream_input_location_now): New.
23008 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
23009 pointer to location.
23010 (stream_input_location): Update.
23011 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
23012 (warn_odr): Apply location cache before warning.
23013 (lto_input_location): Update prototype.
23014 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
23015 Use stream_input_location_now.
23016 * lto-streamer-in.c (lto_location_cache::current_cache): New static
23018 (lto_location_cache::cmp_loc): New function.
23019 (lto_location_cache::apply_location_cache): New function.
23020 (lto_location_cache::accept_location_cache): New function.
23021 (lto_location_cache::revert_location_cache): New function.
23022 (lto_location_cache::input_location): New function.
23023 (lto_input_location): Do location caching.
23024 (stream_input_location_now): New function.
23025 (input_eh_region, input_struct_function_base): Use
23026 stream_input_location_now.
23027 (lto_data_in_create): use new.
23028 (lto_data_in_delete): Use delete.
23029 * tree-streamer-in.c (unpack_ts_block_value_fields,
23030 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
23031 lto_input_ts_exp_tree_pointers): Update for cached location api.
23033 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
23036 * passes.def: Add pass_nothrow.
23037 * ipa-pure-const.c: (pass_data_nothrow): New.
23038 (pass_nothrow): New.
23039 (pass_nothrow::execute): New.
23040 (make_pass_nothrow): New.
23041 * tree-pass.h (make_pass_nothrow): Declare.
23043 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
23045 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
23046 edge to change by speculation resolution or redirection.
23047 (edge_set_predicate): Likewise.
23048 (inline_summary_t::duplicate): Likewise.
23049 (remap_edge_summaries): Likewise.
23051 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
23053 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
23055 (can_inline_edge_p): Relax option matching for always inline functions.
23057 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
23060 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
23061 Check operand 4 and operand 0 for equality.
23062 (avx512f_vextract<shuffletype>32x4_1_maskm):
23063 Check operand 6 and operand 0 for equality.
23064 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
23066 (vec_extract_hi_<mode>_maskm): Ditto.
23068 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
23070 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
23071 dead calls back to live.
23072 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
23074 (cgraph_node::verify_node): ... here; verify only callee edges,
23076 * cif-code.def (CILK_SPAWN): New code.
23078 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
23080 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
23081 (edge_set_predicate): Use it to mark unreachable edges.
23082 (inline_summary_t::duplicate): Remove unnecesary code.
23083 (remap_edge_summaries): Likewise.
23084 (dump_inline_summary): Report contains_cilk_spawn.
23085 (compute_inline_parameters): Compute contains_cilk_spawn.
23086 (inline_read_section, inline_write_summary): Stream
23087 contains_cilk_spawn.
23088 * ipa-inline.c (can_inline_edge_p): Do not touch
23089 DECL_STRUCT_FUNCTION that may not be available;
23090 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
23091 remove check for callee_fun->can_throw_non_call_exceptions and
23092 replace it by optimization attribute check; check for flag_exceptions.
23093 * ipa-inline-transform.c (inline_call): Maintain
23094 DECL_FUNCTION_PERSONALITY
23095 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
23097 2015-03-26 Jakub Jelinek <jakub@redhat.com>
23099 PR tree-optimization/65551
23100 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
23101 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
23103 2015-03-26 Richard Biener <rguenther@suse.de>
23105 PR middle-end/65555
23106 * tree-cfg.c (verify_gimple_call): Do not require a call to
23107 have no LHS if it wasn't recognized as control altering yet.
23109 2015-03-26 Jakub Jelinek <jakub@redhat.com>
23111 PR tree-optimization/64715
23112 * passes.def: Add another instance of pass_object_sizes before ccp1.
23113 * tree-object-size.c (pass_object_sizes::execute): In
23114 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
23115 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
23116 __bos result and the computed constant. Remove redundant
23117 checks, obsoleted by gimple_call_builtin_p test.
23119 * var-tracking.c (variable_tracking_main_1): Don't track
23120 variables for targetm.no_register_allocation targets.
23122 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
23124 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
23125 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
23127 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
23130 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
23131 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
23132 0.0 is correctly setup.
23133 (extenddftf2_internal): Likewise.
23135 2015-03-25 Sebastian Pop <s.pop@samsung.com>
23137 PR tree-optimization/65177
23138 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
23140 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
23141 edges not adjacent on the path to the original code.
23143 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
23146 * doc/install.texi (Building a native compiler): Document new
23147 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
23148 configuration assumes that the host supports the linker plugin.
23150 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
23153 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
23154 chain for generated call.
23156 2015-03-25 Richard Biener <rguenther@suse.de>
23158 * passes.c (pass_manager::execute_early_local_passes): Guard
23159 execution of pass_chkp_instrumentation_passes with
23160 flag_check_pointer_bounds.
23161 (pass_chkp_instrumentation_passes::gate): Likewise.
23163 2015-03-25 Martin Liska <mliska@suse.cz>
23165 PR tree-optimization/65538
23166 * symbol-summary.h (function_summary::~function_summary):
23167 Relese memory for allocated summaries.
23168 (function_summary::release): New function.
23170 2015-03-25 Jakub Jelinek <jakub@redhat.com>
23173 * lto-streamer-out.c (DFS::worklist): New struct.
23174 (DFS::worklist_vec): New data member.
23175 (DFS::next_dfs_num): Remove.
23176 (DFS::DFS): Rewritten using worklist instead of recursion,
23177 using most of code from DFS::DFS_write_tree.
23178 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
23179 pass it to DFS_write_tree calls.
23180 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
23181 quick initial checks push it into worklist_vec and return.
23183 2015-03-25 Richard Biener <rguenther@suse.de>
23185 PR middle-end/65519
23186 * genmatch.c (expr::gen_transform): Re-write to avoid
23187 using gimple_build.
23189 2015-03-25 Bin Cheng <bin.cheng@arm.com>
23191 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
23193 2015-03-25 Bin Cheng <bin.cheng@arm.com>
23195 * config/arm/arm.opt (print_tune_info): New option.
23196 * config/arm/arm.c (arm_print_tune_info): New function.
23197 (arm_file_start): Call arm_print_tune_info.
23198 * config/arm/arm-protos.h (struct tune_params): Add comment.
23199 * doc/invoke.texi (@item -mprint-tune-info): New item.
23200 (-mtune): mention it in ARM Option Summary.
23202 2015-03-25 DJ Delorie <dj@redhat.com>
23204 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
23207 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
23208 Martin Liska <mliska@suse.cz>
23210 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
23211 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
23212 (sem_item::add_type): New function.
23213 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
23214 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
23215 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
23216 (sem_function::equals_wpa): Fix typo.
23217 * ipa-icf.h (sem_item::add_type): New function.
23218 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
23221 2015-03-24 Jakub Jelinek <jakub@redhat.com>
23223 PR tree-optimization/65533
23224 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
23225 with swapped operands, call vect_free_slp_tree on
23226 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
23229 2015-03-24 Richard Biener <rguenther@suse.de>
23231 PR middle-end/65517
23232 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
23233 for fixup if necessary.
23235 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
23237 * doc/extend.texi (Function Attributes): Add @cindex entries
23238 for all attributes and regularize their format. Delete text
23239 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
23240 information about "eightbit_data", "tiny_data", and "model"
23241 variable attributes to the Variable Attributes section. Fix
23242 some obvious typos and copy-editing issues.
23243 (Variable Attributes, Type Attributes): Likewise add/fix
23244 @cindex entries for all attributes.
23246 2015-03-23 Jakub Jelinek <jakub@redhat.com>
23249 * tree-chkp.c (chkp_build_returned_bound): Ignore
23250 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
23252 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
23255 * config/sh/predicates.md (simple_mem_operand,
23256 displacement_mem_operand): Add test for reg.
23257 (short_displacement_mem_operand): Test for displacement_mem_operand
23258 before invoking sh_disp_addr_displacement.
23259 * config/sh/constraints.md (Sdd, Sra): Simplify.
23260 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
23261 Remove redundant displacement_mem_operand tests.
23263 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
23266 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
23267 the same -mmcu=MCU more than once.
23269 2015-03-23 Jakub Jelinek <jakub@redhat.com>
23272 * ipa-devirt.c: Remove duplicate demangle.h include.
23275 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
23277 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
23278 REG_POINTER on *destptr after adjusting it for prologue size.
23281 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
23282 ultimate_alias_target ()->order ints instead of
23283 ultimate_alias_target () pointers.
23285 2015-03-23 Richard Biener <rguenther@suse.de>
23287 PR tree-optimization/65518
23288 * tree-vect-stmts.c (vectorizable_load): Reject single-element
23289 interleaving cases we generate absymal code for.
23291 2015-03-23 Richard Biener <rguenther@suse.de>
23293 PR tree-optimization/65494
23294 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
23296 (vect_analyze_slp_instance): But do that here, always and once.
23298 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23300 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
23301 adding T or multiplying by T+1 and subracting T.
23303 2015-03-22 Jeff Law <law@redhat.com>
23305 PR rtl-optimization/64317
23306 * Makefile.in (OBJS): Add gcse-common.c
23307 * gcse.c: Include gcse-common.h
23308 (struct modify_pair_s): Move structure definition to gcse-common.h
23309 (compute_transp): Move function to gcse-common.c.
23310 (canon_list_insert): Similarly.
23311 (record_last_mem_set_info): Break out some code and put it into
23312 gcse-common.c. Call into the new common code.
23313 (compute_local_properties): Pass additional arguments to compute_transp.
23314 * postreload-gcse.c: Include gcse-common.h and df.h
23315 (modify_mem_list_set, blocks_with_calls): New variables.
23316 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
23317 (get_bb_avail_insn): Pass in the expression index too.
23318 (alloc_mem): Allocate memory for the new bitmaps and lists.
23319 (free_mem): Free memory for the new bitmaps and lists.
23320 (insert_expr_in_table): Record a bitmap index for each entry we
23322 (record_last_mem_set_info): Call into common code in gcse-common.c.
23323 (get_bb_avail_insn): If no available insn was found in the requested
23324 BB. If BB has a single predecessor, see if the expression is
23325 transparent in BB and available in that single predecessor.
23326 (compute_expr_transp): New wrapper for compute_transp.
23327 (eliminate_partially_redundant_load): Pass expression's bitmap_index
23328 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
23329 (gcse_after_reload_main): If there are elements in the hash table,
23330 then compute transparency for all the elements in the hash table.
23331 * gcse-common.h: New file.
23332 * gcse-common.c: New file.
23334 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
23336 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
23338 (System Headers): Likewise.
23340 (Traditional macros): Likewise.
23341 (Invocation): Likewise.
23342 (Option Index): Likewise.
23343 * doc/cppopts.texi (-M): Likewise.
23344 (-finput-charset): Likewise.
23345 (--help): Likewise.
23346 * doc.invoke.texi (AVR Options): Likewise.
23347 (V850 Options): Likewise.
23349 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
23352 * ipa-devirt.c: Include demangle.h
23353 (odr_type_d): Add field rtti_broken.
23354 (odr_subtypes_equivalent_p): Do not require name to match.
23355 (compare_virtual_tables): Fix typo; if type already has ODR violation,
23356 bypass the tests; be ready for function referneces in vtables that are
23357 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
23358 (warn_odr): Give up for nameless types.
23359 (warn_types_mismatch): Report mismatch in mangled names;
23360 report mismatch in anonymous namespaces; look into component types to
23361 give useful error; report when mismatch is dragged in from other ODR
23363 (odr_types_equivalent_p): Match types for being polymorphic; avoid
23364 duplicated diagnostics.
23365 (add_type_duplicate): Reorder checks so more informative ones come
23366 first; fix typo; do not output "the extra base is defined here" when
23368 (BINFO_N_BASE_BINFOS): Relax sanity check.
23370 2015-03-22 Martin Liska <mliska@suse.cz>
23371 Jakub Jelinek <jakub@redhat.com>
23373 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
23374 masks that can potentially include a builtin.
23375 (ix86_add_new_builtins): Introduce fast filter for isa values
23376 that cannot trigger builtin inclusion.
23378 2015-03-22 Martin Liska <mliska@suse.cz>
23380 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
23381 (sem_item::update_hash_by_local_refs): Likewise.
23382 (sem_variable::get_hash): Empty line is fixed.
23383 (sem_item_optimizer::execute): Include adding of hash references.
23384 (sem_item_optimizer::update_hash_by_addr_refs): New function.
23385 (sem_item_optimizer::build_hash_based_classes): Use local hash.
23386 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
23387 (sem_item::update_hash_by_local_refs): Likewise.
23389 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
23392 * ipa-comdats.c (enqueue_references): Walk through thunks.
23393 (ipa_comdats): Likewise.
23394 (set_comdat_group_1): New function.
23396 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
23399 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
23402 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
23403 Gerald Pfeifer <gerald@pfeifer.com>
23405 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
23407 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
23408 Sandra Loosemore <sandra@codesourcery.com>
23410 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
23411 function parameter declaration.
23412 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
23413 Update arguments to nios2_adjust_call_address().
23414 (sibcall_internal): Rename from *sibcall.
23415 (sibcall_value_internal): Rename from *sibcall_value.
23416 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
23417 (nios2_large_got_address): Add target temp reg parameter.
23418 (nios2_got_address): Adjust call to nios2_large_got_address, add
23419 force_reg around it.
23420 (nios2_load_pic_address): Add target temp reg parameter, replace call
23421 to nios2_got_address with corresponding code.
23422 (nios2_legitimize_constant_address): Update call to
23423 nios2_load_pic_address.
23424 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
23425 to use temp reg for PIC loading purposes.
23426 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
23427 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
23428 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
23430 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
23432 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
23433 usage of "the @option{...}".
23434 (-Wopenmp-simd): Likewise.
23435 (-fsanitize-recover): Likewise.
23436 (-fsanitize-undefined-trap-on-error): Likewise.
23438 (tracer-dynamic-coverage-feedback): Likewise.
23439 (reorder-block-duplicate-feedback): Likewise.
23440 (loop-unroll-jam-size): Likewise.
23443 (-mabs=legacy): Likewise.
23444 (-mupper-regs-df): Likewise.
23445 (-mupper-regs-sf): Likewise.
23446 (-mpointers-to-nested-functions): Likewise.
23448 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
23450 * doc/extend.texi (Cilk Plus Builtins): Add markup.
23452 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
23454 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
23455 additional index entries and cross-references.
23456 (-fchkp-check-incomplete-type): Likewise.
23457 (-fchkp-first-field-has-own-bounds): Likewise.
23458 (-fchkp-narrow-to-innermost-array): Likewise.
23459 (-fchkp-use-fast-string-functions): Likewise.
23460 (-fchkp-use-nochk-string-functions): Likewise.
23461 (-fchkp-use-static-const-bounds): Likewise.
23462 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
23463 (-fchkp-instrument-marked-only): Likewise.
23464 (-fchkp-use-wrappers): Likewise.
23465 (-static-libmpx): Likewise.
23466 (-static-libmpxwrappers): Likewise.
23467 * doc/extend.texi (bnd_legacy): Likewise.
23468 (bnd_instrument): Likewise.
23469 (bnd_variable_size): Likewise.
23470 (Pointer Bounds Checker builtins): Likewise.
23472 2015-03-21 Tom de Vries <tom@codesourcery.com>
23474 PR tree-optimization/65458
23475 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
23476 * cgraph.h (cgraph_node): Add parallelized_function field.
23477 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
23478 (input_overwrite_node): Read parallelized_function field.
23479 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
23480 parallelized_function on cgraph_node for child_fn.
23481 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
23482 Remove include of gt-tree-parloops.h.
23483 (parallelized_functions): Remove static variable.
23484 (parallelized_function_p): Rewrite using parallelized_function field of
23486 (create_loop_fn): Remove adding to parallelized_functions.
23487 * Makefile.in (GTFILES): Remove tree-parloops.c
23489 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
23491 PR rtl-optimization/64366
23492 * lra.c (lra_update_insn_regno_info): Consider regs in
23493 CALL_INSN_FUNCTION_USAGE memory.
23495 2015-03-20 Richard Biener <rguenther@suse.de>
23497 PR middle-end/64715
23498 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
23499 for type comparison and gcc_checking_assert.
23500 (chrec_fold_plus_poly_poly): Likewise.
23501 (chrec_fold_multiply_poly_poly): Likewise.
23502 (chrec_convert_1): Likewise.
23503 * gimplify.c (gimplify_expr): Remove premature folding of
23504 &X + CST to &MEM[&X, CST].
23506 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
23508 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
23510 (ipa_inline): Recompute inline_failed codes.
23511 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
23512 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
23515 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
23517 PR rtl-optimization/60851
23518 * recog.c (constrain_operands): Accept a pseudo register before reload
23519 for LRA enabled targets.
23521 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
23524 * config/rs6000/predicates.md (easy_fp_constant): Remove special
23525 -ffast-math handling that kept non-0 constants live in the RTL
23526 until reload. Remove logic testing the number of instructions it
23527 took to create a constant in a GPR that was never used, due to a
23528 test for soft-float earlier.
23529 (memory_fp_constant): Delete, no longer used.
23531 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
23532 alternatives for loading non-0 constants into GPRs for hard
23533 floating point that is no longer needed due to changes in
23534 easy_fp_constant. Add support for loading 0.0 into GPRs.
23535 (mov<mode>_hardfloat32): Likewise.
23536 (mov<mode>_hardfloat64): Likewise.
23537 (mov<mode>_64bit_dm): Likewise.
23538 (movtd_64bit_nodm): Likewise.
23539 (pre-reload move FP constant define_split): Delete define_split,
23540 since it is no longer used.
23541 (extenddftf2_internal): Remove GHF constraints that are not valid
23544 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
23546 PR rtl-optimization/63491
23547 * lra-constraints.c (check_and_process_move): Use src instead of
23548 sreg. Remove some dead code.
23550 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
23553 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
23554 (sem_variable::merge): Likewise.
23556 2015-03-19 Martin Liska <mliska@suse.cz>
23559 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
23560 all fields of cgraph_thunk_info.
23562 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
23564 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
23565 clone instrumented thunks.
23567 2015-03-19 Richard Biener <rguenther@suse.de>
23570 2015-03-10 Richard Biener <rguenther@suse.de>
23572 PR middle-end/63155
23573 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23574 * tree-ssa-coalesce.c: Include timevar.h.
23575 (attempt_coalesce): Handle graph being NULL.
23576 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23577 Split out abnormal coalescing to ...
23578 (perform_abnormal_coalescing): ... this function.
23579 (coalesce_ssa_name): Perform abnormal coalescing without computing
23581 (verify_ssa_coalescing_worker): New function.
23582 (verify_ssa_coalescing): Likewise.
23584 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23585 Jakub Jelinek <jakub@redhat.com>
23588 * tsan.c (instrument_gimple): Clear tail call flag on
23591 2015-03-19 Jakub Jelinek <jakub@redhat.com>
23594 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
23595 call in the return bb.
23596 (find_split_points): Add RETURN_BB argument, don't call
23598 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
23599 if true append TSAN_FUNC_EXIT internal call after the call to
23600 the split off function.
23601 (execute_split_functions): Call find_return_bb here.
23602 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
23603 Adjust find_split_points and split_function calls.
23605 2015-03-18 DJ Delorie <dj@redhat.com>
23607 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
23608 (iorqi3_virt): Likewise.
23610 2015-03-18 Tom de Vries <tom@codesourcery.com>
23612 * tree-parloops.c (parallelize_loops): Make static.
23613 * tree-parloops.h (parallelize_loops): Remove extern declaration.
23615 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
23617 PR middle-end/64491
23619 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
23621 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
23622 condition would be removed due to undefined behaviour.
23624 2015-03-18 Martin Liska <mliska@suse.cz>
23627 * cgraph.c (cgraph_node::get_create): Remove unnecessary
23628 xstrdup_for_dump wrapper.
23629 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
23631 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
23632 with xstrdup_for_dump.
23633 (sem_variable::equals): Likewise.
23634 (sem_item_optimizer::read_section): Use symtab_node::name instead of
23636 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
23637 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
23638 symtab_node::asm_name with xstrdup_for_dump.
23639 (congruence_class::dump): Use symtab_node::name instead of
23641 * ipa-icf.h (symtab_node::name): Remove.
23642 (symtab_node::asm_name): Likewise.
23644 2015-03-18 Jakub Jelinek <jakub@redhat.com>
23646 PR tree-optimization/65450
23647 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
23649 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
23650 it instead of duplicate_ssa_name_ptr_info.
23653 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
23655 2015-03-18 Richard Biener <rguenther@suse.de>
23657 * tree-data-ref.h (struct access_matrix): Remove.
23658 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
23659 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
23660 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
23661 (am_vector_index_for_loop): Likewise.
23662 (struct data_reference): Remove access_matrix member.
23663 (DR_ACCESS_MATRIX): Remove.
23664 (lambda_vector_new): Add comment.
23665 (lambda_matrix_new): Use XOBNEWVEC.
23667 2015-03-18 Richard Biener <rguenther@suse.de>
23669 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
23670 (pass_ch::execute): Cleanup the CFG only if we did sth.
23671 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
23673 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23675 * expmed.c (synth_mult): Use std::swap instead of manually
23676 swapping algorithms.
23678 2015-03-18 Jakub Jelinek <jakub@redhat.com>
23681 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
23683 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
23686 * config/avr/avr.opt (-nodevicelib): New option.
23687 * doc/invoke.texi (AVR Options): Document it.
23688 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
23689 libgcc.a, libc.a, libm.a.
23690 * config/avr/specs.h: Same.
23691 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
23692 which don't (directly) depend on the device. Print more help.
23693 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
23694 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
23695 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
23697 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
23698 for specs file name.
23699 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
23700 * config/avr/avr-mcus.def: Adjust initializers and comments.
23702 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
23704 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
23705 DECL_ONE_ONLY to check if decl is one only.
23706 * ipa-split.c (consider_split): Limit splitt of one only functions.
23708 2015-03-16 Jakub Jelinek <jakub@redhat.com>
23710 PR tree-optimization/65427
23711 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
23713 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
23715 2015-03-16 Marek Polacek <polacek@redhat.com>
23717 * cgraph.h (add_new_static_var): Remove declaration.
23718 * varpool.c (add_new_static_var): Remove function.
23720 2015-03-16 Jakub Jelinek <jakub@redhat.com>
23722 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
23723 instead of vec<tree> * with vec_alloc and release for args.
23726 PR middle-end/65431
23727 * omp-low.c (delete_omp_context): Only splay_tree_delete
23728 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
23729 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
23731 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
23734 * cfgexpand.c (align_base): New function.
23735 (alloc_stack_frame_space): Call it.
23736 (expand_stack_vars): Align prev_frame to be sure
23737 data->asan_vec elements aligned properly.
23739 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
23741 PR middle-end/65409
23742 * expr.c (store_field): Do not do a direct block copy if the source is
23743 a PARALLEL with BLKmode.
23745 2015-03-16 Tom de Vries <tom@codesourcery.com>
23747 PR middle-end/65414
23749 2015-03-12 Tom de Vries <tom@codesourcery.com>
23751 PR rtl-optimization/64895
23752 * lra-lives.c (check_pseudos_live_through_calls): Use
23753 actual_call_used_reg_set instead of call_used_reg_set, if available.
23755 2015-03-16 Alan Modra <amodra@gmail.com>
23758 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
23759 Modify Z->r bswapdi splitter to use dest in place of scratch.
23760 In r->Z and Z->r bswapdi splitter rename word_high, word_low
23761 to word1, word2 and rearrange logic to suit.
23762 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
23763 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
23764 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
23765 Add one '?' on r->r. Modify Z->r splitter to avoid need for
23768 2015-03-14 Jakub Jelinek <jakub@redhat.com>
23770 PR tree-optimization/65369
23771 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
23772 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
23773 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
23775 PR tree-optimization/65418
23776 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
23777 are casts in the first PLUS_EXPR operand, ensure tbias and
23778 *totallowp are in the inner type.
23780 PR rtl-optimization/65401
23781 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
23782 argument. If true, adjust_address_nv of x with big-endian
23783 correction for the mode widening to GET_MODE (y).
23784 (make_field_assignment): Don't do MEM mode widening here.
23785 Use MEM_P instead of GET_CODE == MEM.
23787 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
23789 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
23790 the external decls.
23792 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23795 * config/arm/arm.c (arm_gen_constant, AND case): Use
23796 ARM_SIGN_EXTEND when constructing AND mask.
23798 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
23800 * graph.c (print_graph_cfg): Make function names visible and append
23801 parenthesis to it. Also make groups of basic blocks belonging to the
23802 same function visible.
23804 2015-03-12 Richard Biener <rguenther@suse.de>
23806 PR middle-end/44563
23807 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
23808 to avoid quadratic behavior with inline expansion splitting blocks.
23809 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
23810 with the successor if the predecessor will be merged with it.
23811 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
23812 entry block with its successor.
23814 2015-03-13 Richard Biener <rguenther@suse.de>
23816 PR middle-end/44563
23817 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
23818 (cleanup_tree_cfg_1): Do not call it.
23819 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
23820 (fixup_noreturn_call): Mark the stmt as control altering.
23821 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
23823 (pass_data_fixup_cfg): Produce a dump file.
23824 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
23825 (need_noreturn_fixup): New global.
23826 (pass_dominator::execute): Fixup queued noreturn calls.
23827 (optimize_stmt): Queue calls that became noreturn for fixup.
23828 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
23829 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
23830 (el_to_fixup): New global.
23831 (eliminate_dom_walker::before_dom_childre): Queue calls that
23832 became noreturn for fixup.
23833 (eliminate): Fixup queued noreturn calls.
23834 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
23835 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
23836 (substitute_and_fold_dom_walker::before_dom_children): Queue
23837 alls that became noreturn for fixup.
23838 (substitute_and_fold): Fixup queued noreturn calls.
23840 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
23842 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
23843 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
23844 are building; for methods check ODR type of class they belong to if
23845 they may lead to a polymorphic call.
23846 (sem_function::compare_polymorphic_p): Be bit smarter about testing
23847 when function may lead to a polymorphic call.
23848 (sem_function::compare_type_list): Remove.
23849 (sem_variable::equals): Update use of compatible_types_p.
23850 (sem_variable::parse_tree_refs): Remove.
23851 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
23853 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
23855 (func_checker::compatible_polymorphic_types_p): Break out from ...
23856 (unc_checker::compatible_types_p): ... here.
23857 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
23859 (unc_checker::compatible_types_p): Update.
23860 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
23863 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23865 PR rtl-optimization/65235
23866 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
23867 When first element of vec_concat is const_int, calculate its size
23868 using second element.
23870 2015-03-12 Richard Biener <rguenther@suse.de>
23872 PR middle-end/65270
23873 * fold-const.c (operand_equal_p): Fix ordering of resetting
23874 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
23876 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
23878 * config/s390/s390.c (s390_reorg): Move code to output nops after label
23880 (s390_asm_output_function_label): Likewise.
23881 * config/s390/s390.c (s390_asm_output_function_label):
23882 Fix function label alignment with -mhtopatch.
23883 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
23884 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
23885 ("nop_2_byte"): New define_insn.
23886 ("nop_4_byte"): Likewise.
23887 ("nop_6_byte"): Likewise.
23888 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
23889 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
23891 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23894 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
23897 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23900 * toplev.c (process_options): Restrict Pointer Bounds Checker
23901 usage with Address Sanitizer.
23903 2015-03-12 Richard Biener <rguenther@suse.de>
23905 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
23907 * omp-low.c (expand_omp_taskreg): Split block before removing
23909 (expand_omp_target): Likewise.
23910 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
23911 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
23912 stmt to split_block.
23914 2015-03-12 Tom de Vries <tom@codesourcery.com>
23916 PR rtl-optimization/64895
23917 * lra-lives.c (check_pseudos_live_through_calls): Use
23918 actual_call_used_reg_set instead of call_used_reg_set, if available.
23920 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23922 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
23923 (cgraph_node::remove): Likewise.
23924 (cgraph_node::get_untransformed_body): Likewise.
23925 * varpool.c (varpool_node::remove): Likewise.
23926 (varpool_node::get_constructor): Add sanity check.
23928 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
23930 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
23932 (-fabi-compat-version): Likewise.
23933 (-ffriend-injection): Likewise.
23934 (-Wdeclaration-after-statement): Likewise.
23935 (-fomit-frame-pointer): Likewise.
23936 (-ftree-coalesce-inlined-vars): Likewise.
23937 (-fvisibility=): Likewise.
23938 * doc/extend.texi (Typeof): Likewise.
23939 (Zero Length): Likewise.
23940 (Escaped Newlines): Likewise.
23941 (Compound Literals): Likewise.
23942 (Function Attributes): Likewise.
23943 (Label Attributes): Likewise.
23944 (Type Attributes): Likewise.
23945 (Function Names): Likewise.
23946 (Other Builtins): Likewise.
23947 (Function Specific Option Pragmas): Likewise.
23948 (C++ Interface): Likewise.
23950 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
23952 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
23954 2015-03-11 Marek Polacek <polacek@redhat.com>
23956 PR tree-optimization/65388
23957 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
23959 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23962 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
23963 * configure: Regenerate.
23964 * config.in: Regenerate.
23965 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
23966 [-mn-flash]: Document it.
23967 [__AVR_ARCH__]: Document avrtiny.
23969 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
23970 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
23971 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
23973 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23975 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
23977 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23980 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
23981 allow reloads of PLUS in floating point/VSX registers.
23983 2015-03-11 Junmo Park <junmoz.park@samsung.com>
23985 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
23986 crypto_sha256_fast.
23987 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
23989 2015-03-11 Richard Biener <rguenther@suse.de>
23991 PR tree-optimization/65310
23992 * tree-sra.c (build_ref_for_offset): Also preserve larger
23995 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
23997 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
23999 2015-03-10 Jakub Jelinek <jakub@redhat.com>
24002 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
24004 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
24006 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
24008 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
24009 (sem_function::equals_wpa): ... here.
24011 2015-03-10 Marek Polacek <polacek@redhat.com>
24012 Jakub Jelinek <jakub@redhat.com>
24015 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
24016 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
24019 2015-03-10 Jakub Jelinek <jakub@redhat.com>
24022 * config/rs6000/t-linux: For powerpc64* target set
24023 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
24025 2015-03-10 Richard Biener <rguenther@suse.de>
24027 PR middle-end/44563
24028 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
24029 for redirect_all_calls.
24031 2015-03-10 Marek Polacek <polacek@redhat.com>
24033 * gdbinit.in (pcfun): Define and document.
24035 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
24037 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
24038 of libgomp-plugin.h.
24039 (find_target_compiler): Support a case when the path to gcc is
24040 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
24041 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
24042 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
24044 (main): Use GCC_INSTALL_NAME as target_driver_name.
24045 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
24047 (mkoffload.o): Remove obsolete include path and defines.
24048 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
24050 2015-03-10 Richard Biener <rguenther@suse.de>
24052 PR middle-end/63155
24053 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
24054 * tree-ssa-coalesce.c: Include timevar.h.
24055 (attempt_coalesce): Handle graph being NULL.
24056 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
24057 Split out abnormal coalescing to ...
24058 (perform_abnormal_coalescing): ... this function.
24059 (coalesce_ssa_name): Perform abnormal coalescing without computing
24061 (verify_ssa_coalescing_worker): New function.
24062 (verify_ssa_coalescing): Likewise.
24064 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
24067 * config.gcc (extra_options) [avr]: Remove.
24068 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
24069 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
24070 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
24072 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
24073 (-mmcu=): Add Var and MissingArgError properties.
24075 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
24076 * config/avr/t-multilib: Regenerate.
24077 * config/avr/specs.h: New file.
24078 * config/avr/driver-avr.c: New file.
24079 * config/avr/genopt.sh: Remove file.
24080 * config/avr/avr-tables.opt: Remove file.
24081 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
24082 * config/avr/avr-c.c: Same.
24083 * avr-arch.h: Same.
24084 (avr_current_device): Remove proto.
24085 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
24086 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
24087 (EXTRA_SPEC_FUNCTIONS): Define.
24088 (avr_devicespecs_file): New specs function proto.
24089 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
24090 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
24091 (avr_current_device): Remove definition and usage.
24092 (avr_set_core_architecture): New static function.
24093 (avr_option_override): Use it.
24094 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
24095 (mcu_name): New static array.
24096 (comparator, avr_archs_str, avr_mcus_str): New static functions.
24097 (avr_inform_devices, avr_inform_core_architectures): New functions.
24098 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
24099 (avrlibc.h) [WITH_AVRLIBC]: Include.
24100 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
24101 (print_mcu): Rewrite from scratch.
24102 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
24103 Forward to avr-specific specs defined in device-specs file.
24104 * config/avr/t-avr (driver-avr.o): New rule.
24105 (avr-devices.o): Depend on avr-arch.h.
24106 (avr-mcus): No more depend on avr-tables.opt.
24107 (avr-tables.opt): Remove rule.
24108 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
24110 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
24112 * c-family/c.opt (fchkp-use-wrappers): New.
24113 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
24114 (chkp_wrap_function): New.
24115 (chkp_build_instrumented_fndecl): Support wrapped
24117 * doc/invoke.texi (-fcheck-pointer-bounds): New.
24118 (-fchkp-check-incomplete-type): New.
24119 (-fchkp-first-field-has-own-bounds): New.
24120 (-fchkp-narrow-bounds): New.
24121 (-fchkp-narrow-to-innermost-array): New.
24122 (-fchkp-optimize): New.
24123 (-fchkp-use-fast-string-functions): New.
24124 (-fchkp-use-nochk-string-functions): New.
24125 (-fchkp-use-static-bounds): New.
24126 (-fchkp-use-static-const-bounds): New.
24127 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
24128 (-fchkp-check-read): New.
24129 (-fchkp-check-write): New.
24130 (-fchkp-store-bounds): New.
24131 (-fchkp-instrument-calls): New.
24132 (-fchkp-instrument-marked-only): New.
24133 (-fchkp-use-wrappers): New.
24134 (-static-libmpx): New.
24135 (-static-libmpxwrappers): New.
24137 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
24139 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
24140 (CHKP_SPEC): Add wrappers library.
24141 * c-family/c.opt (static-libmpxwrappers): New.
24143 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
24145 * config/i386/linux-common.h (LIBMPX_LIBS): New.
24146 (LIBMPX_SPEC): New.
24148 * gcc.c (CHKP_SPEC): New.
24149 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
24150 * c-family/c.opt (static-libmpx): New.
24152 2015-03-10 Richard Biener <rguenther@suse.de>
24154 PR middle-end/44563
24155 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
24157 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
24158 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
24159 (cgraph_add_edge_to_call_site_hash): Likewise.
24160 (cgraph_node::get_edge): Likewise.
24161 (cgraph_edge::set_call_stmt): Likewise.
24162 (cgraph_edge::remove_caller): Likewise.
24164 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
24166 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
24167 (callee_saved_gpr_regs_size): ... this.
24168 (callee_saved_regs_first_regno): Rename to ...
24169 (callee_saved_first_gpr_regno): ... this.
24170 (callee_saved_regs_last_regno) Rename to ...
24171 (callee_saved_last_gpr_regno): ... this.
24172 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
24174 (nds32_initial_elimination_offset): Likewise.
24175 (nds32_expand_prologue): Likewise.
24176 (nds32_expand_epilogue): Likewise.
24177 (nds32_expand_prologue_v3push): Likewise.
24178 (nds32_expand_epilogue_v3pop): Likewise.
24179 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
24180 Adjust renamed variables.
24181 (nds32_output_stack_pop): Likewise.
24183 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
24185 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
24188 2015-03-10 Jakub Jelinek <jakub@redhat.com>
24190 PR rtl-optimization/65321
24191 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
24193 * var-tracking.c (use_narrower_mode): Likewise.
24195 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
24197 PR tree-optimization/65355
24198 * varasm.c (notice_global_symbol): Do not produce RTL.
24199 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
24201 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
24202 check for section anchors.
24204 2015-03-10 Alan Modra <amodra@gmail.com>
24207 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
24208 to be single-arch by default. Set cpu_is_64bit for powerpc64
24209 given --with-cpu=native.
24210 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
24211 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
24213 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
24214 rs6000_isa_flags rather than TARGET_64BIT.
24216 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
24217 Kaz Kojima <kkojima@gcc.gnu.org>
24219 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
24221 2015-03-09 Jakub Jelinek <jakub@redhat.com>
24224 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
24225 on a TREE_BINFO, instead use BINFO_TYPE.
24227 2015-03-09 Richard Biener <rguenther@suse.de>
24229 PR middle-end/65270
24230 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
24231 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
24232 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
24233 of that. When comparing dereferences compare alignment.
24234 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
24236 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
24238 * ipa-inline-analysis.c (check_callers): Check
24239 node->can_remove_if_no_direct_calls_and_refs_p.
24240 (growth_likely_positive): Reorganize to call
24241 can_remove_if_no_direct_calls_p later.
24242 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
24243 will_be_removed_from_program_if_no_direct_calls_p): Add
24244 will_inline parameter.
24245 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
24246 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
24247 Handle inliner case correctly.
24249 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
24251 PR tree-optimization/63743
24252 * cfgexpand.c (reorder_operands): Also reorder if only second operand
24253 had its definition forwarded by TER.
24255 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
24258 * ipa-utils.h (types_odr_comparable): Add strict argument.
24259 * ipa-devirt.c: Fix whitespace;
24260 (odr_hasher): Remove.
24261 (odr_name_hasher, odr_vtable_hasher): New hashers.
24262 (can_be_name_hashed_p): New predicate.
24263 (hash_type_name): remove.
24264 (hash_odr_name): New.
24265 (odr_name_hasher::hash): new.
24266 (can_be_vtable_hashed_p): New.
24267 (hash_odr_vtable): New.
24268 (odr_vtable_hasher::hash): New.
24269 (types_same_for_odr): Add strict parameter.
24270 (types_odr_comparable): Likewise.
24271 (odr_name_hasher::equal): New.
24272 (odr_vtable_hasher::equal): New.
24273 (odr_name_hasher::remove): New.
24274 (odr_hash_type): Change to hash_table<odr_name_hasher>.
24275 (odr_vtable_hash_type): New.
24276 (odr_vtable_hash): New.
24277 (odr_subtypes_equivalent_p): Do strict comparsion.
24278 (add_type_duplicate): Merge type names; cleanup; avoid type
24280 (register_odr_type): Initialize vtable hash.
24281 (build_type_inheritance_graph): Likewise
24282 (get_odr_type): Reorg to use two hashes.
24283 (dump_possible_polymorphic_call_targets): Move sanity check after debug
24285 (ipa_devirt): Dump type_inheritance_graph.
24286 (types_same_for_odr): Add strict mode.
24288 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
24291 * cgraph.h (symtab_node): Add definition_alignment,
24292 can_increase_alignment_p and increase_alignment.
24293 * symtab.c (symtab_node::can_increase_alignment_p,
24294 increase_alignment_1, symtab_node::increase_alignment,
24295 symtab_node::definition_alignment): New.
24296 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
24297 can_increase_alignment_p.
24298 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
24299 * tree-vect-stmts.c (ensure_base_align): Likewise.
24300 * varasm.c (function_section_1): Use definition_alignment.
24301 (assemble_start_function): Likewise.
24302 (emit_local): likewise.
24303 (build_constant_desc): Likewsie.
24304 (output_constant_def_contents): Likewise.
24305 (place_block_symbol): Likewise.
24306 (output_object_block): Likewise.
24308 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
24311 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
24312 when outputting debug.
24314 2015-03-07 Marek Polacek <polacek@redhat.com>
24315 Martin Uecker <uecker@eecs.berkeley.edu>
24318 * doc/invoke.texi: Update description of -fsanitize=bounds.
24320 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
24322 * tree-ssa-phiopt.c (neg_replacement): Remove.
24323 (tree_ssa_phiopt_worker): Remove negate optimization.
24325 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
24328 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
24330 2015-03-06 Richard Biener <rguenther@suse.de>
24332 PR middle-end/64928
24333 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
24334 and liveout_obstack members.
24335 (calculate_live_on_exit): Remove.
24336 (calculate_live_ranges): Change declaration.
24337 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
24338 (new_tree_live_info): Adjust.
24339 (calculate_live_ranges): Delete livein when not wanted.
24340 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
24341 Deal with partly deleted live info.
24342 (loe_visit_block): Remove temporary bitmap by using
24343 bitmap_ior_and_compl_into.
24344 (live_worklist): Adjust accordingly.
24345 (calculate_live_on_exit): Make static.
24346 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
24347 we do not need livein.
24349 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
24351 * real.c (real_from_string): Fix typo in assertion.
24353 2015-03-06 Alex Velenko <alex.velenko@arm.com>
24355 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
24358 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
24360 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
24362 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
24365 * lra-assigns.c (find_hard_regno_for): Rename to
24366 find_hard_regno_for_1. Add a new parameter.
24367 (find_hard_regno_for): New function using find_hard_regno_for_1.
24369 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
24371 PR rtl-optimization/65067
24372 * expmed.c (store_bit_field, extract_bit_field): Reworked the
24373 strict volatile bitfield handling.
24375 2015-03-05 Martin Liska <mliska@suse.cz>
24378 * ipa-icf.c (sem_variable::equals): Compare variables types.
24380 2015-03-05 Richard Henderson <rth@redhat.com>
24383 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
24384 correctly check weak symbol binding.
24386 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
24388 PR middle-end/65315
24389 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
24392 2015-03-05 Martin Liska <mliska@suse.cz>
24394 * ipa-inline.c (inline_small_functions): Set default value to
24395 prevent warning during bootstrap.
24396 * tree.h: Add pragma guard that ignores false positives during
24399 2015-03-05 Richard Biener <rguenther@suse.de>
24401 PR tree-optimization/65310
24402 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
24403 Properly preserve alignment of the base of the access.
24405 2015-03-05 Richard Biener <rguenther@suse.de>
24408 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
24409 Compare dependence info.
24411 2015-03-05 Richard Biener <rguenther@suse.de>
24413 PR middle-end/65233
24414 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
24416 (walk_ssa_copies): Revert last chage. Instead do not walk
24417 SSA names registered for SSA update.
24419 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
24422 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
24423 vtable references for their containing type.
24424 (sem_function::equals_wpa): Compare TYPE_RESTRICT
24425 and type attributes.
24427 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
24429 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
24430 before negating it.
24431 * stor-layout.c (finalize_record_size): Revert latest change.
24433 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
24435 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
24437 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
24439 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
24440 for correct comdat handling.
24441 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
24443 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
24444 (used_from_object_file_p_worker): Remove.
24445 (cgraph_node::only_called_directly_or_alised): Add
24446 used_from_object_file_p.
24447 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
24448 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
24449 can_remove_if_no_direct_calls_and_refs_p.
24451 2015-03-04 Nick Clifton <nickc@redhat.com>
24453 * config/rl78/rl78.h (enum reg_class): Remove real registers from
24454 General register class.
24455 * config/rl78/rl78-real.md: Replace general register constraints
24456 with real+virtual register constraints.
24458 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24460 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
24461 from checking for -mhtm option.
24463 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
24465 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
24466 (struct ipa_sra_check_caller_data): Add has_thunk field.
24467 (ipa_sra_check_caller): Check for thunk.
24468 (ipa_sra_preliminary_function_checks): Give up on function with
24470 (ipa_early_sra): Use call_for_symbol_and_aliases.
24472 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
24475 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
24476 called for __stack_chk_guard symbol.
24478 2015-03-03 DJ Delorie <dj@redhat.com>
24480 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
24482 (*addhi3_real): Likewise.
24483 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
24484 pattern to match incrementing memory.
24485 * config/rl78/predicates.md (rl78_1_2_operand): New.
24486 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
24487 it's the same and only mem.
24488 (rl78_alloc_physical_registers_op2): If there's effectively only
24489 one MEM, transcode it into HL.
24490 (rl78_far_p): Reject addresses that aren't legitimate.
24492 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
24494 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
24497 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
24499 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
24501 Implement call0 ABI for xtensa
24502 * config/xtensa/constraints.md ("a" constraint): Include stack
24503 pointer in case of call0 ABI.
24504 ("q" constraint): Make empty in case of call0 ABI.
24505 ("D" constraint): Include stack pointer in case of call0 ABI.
24506 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
24507 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
24509 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
24511 (xtensa_regno_to_class): Make it a local variable in the
24512 function xtensa_regno_to_class.
24513 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
24514 macro, function prototype and implementation.
24515 (reg_nonleaf_alloc_order): Make it a local variable in the
24516 function order_regs_for_local_alloc.
24517 (xtensa_conditional_register_usage): New function.
24518 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
24519 (xtensa_valid_move): Allow direct moves to stack pointer
24520 register in call0 ABI.
24521 (xtensa_setup_frame_addresses): Only spill register windows in
24523 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
24524 call0 ABI respectively.
24525 (xtensa_function_arg_1): Only mark a7 register for copying in
24527 (xtensa_call_save_reg): New function.
24528 (compute_frame_size): Add space for callee saved register
24529 storage to the frame size in call0 ABI.
24530 (xtensa_expand_prologue): Generate code to set up stack frame
24531 and save callee-saved registers in call0 ABI.
24532 (xtensa_expand_epilogue): New function.
24533 (xtensa_set_return_address): New function.
24534 (xtensa_return_addr): Calculate return address in call0 ABI.
24535 (xtensa_builtin_saveregs): Only mark a7 register for copying and
24536 emit copying code in windowed ABI.
24537 (order_regs_for_local_alloc): Add preferred register allocation
24538 order for non-leaf function in call0 ABI.
24539 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
24540 (xtensa_asm_trampoline_template): Add trampoline generation for
24542 (xtensa_trampoline_init): Add trampoline initialization for
24544 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
24546 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
24547 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
24548 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
24549 ABI call-used registers.
24550 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
24551 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
24553 (REG_CLASS_CONTENTS): Include all registers into the preferred
24554 reload registers set, adjust the set in the
24555 xtensa_conditional_register_usage.
24556 (xtensa_regno_to_class): Drop variable declaration.
24557 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
24559 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
24561 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
24562 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
24563 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
24564 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
24565 location in call0 ABI.
24566 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
24567 stack adjustment size when handling exception.
24568 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
24569 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
24571 ("return" pattern): Generate ret.n/ret in call0 ABI.
24572 ("epilogue" pattern): Expand epilogue.
24573 ("nonlocal_goto" pattern): Use default in call0 ABI.
24574 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
24575 emit eh_set_a0_* depending on ABI.
24576 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
24577 ("eh_set_a0_call0", "blockage"): New patterns.
24579 2015-03-03 Martin Liska <mliska@suse.cz>
24582 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
24584 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
24587 * config/rs6000/rs6000-tables.opt: Regenerate table.
24589 2015-03-03 Renlin Li <renlin.li@arm.com>
24591 * doc/md.texi (@item ^): Change ? into ^.
24593 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
24595 * doc/tm.texi: Regenerated.
24597 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
24599 * builtins.c (expand_builtin_return_addr): Add
24600 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
24601 surrounding #ifdef.
24602 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
24604 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
24606 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
24608 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
24611 2015-03-03 Martin Jambor <mjambor@suse.cz>
24612 Eric Botcazou <ebotcazou@adacore.com>
24614 * tree-sra.c (ipa_sra_check_caller_data): New type.
24615 (has_caller_p): Removed.
24616 (ipa_sra_check_caller): New function.
24617 (ipa_sra_preliminary_function_checks): Use it.
24619 2015-03-03 Martin Liska <mliska@suse.cz>
24621 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
24622 instead of if branch.
24624 2015-03-03 Martin Liska <mliska@suse.cz>
24627 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
24629 2015-03-23 Jeff Law <law@redhat.com>
24631 PR tree-optimization/65241
24632 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
24633 hash table if INSERT is true.
24635 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24638 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
24640 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24643 * config/avr/avr.c (context.h, tree-pass.h): Include them.
24644 (avr_pass_data_recompute_notes): New static variable.
24645 (avr_pass_recompute_notes): New class.
24646 (avr_register_passes): New static function.
24647 (avr_option_override): Call it.
24649 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24651 Fix various problems with specs file generation.
24654 * config.gcc (extra_gcc_objs) [avr]: Remove.
24655 * config/avr/driver-avr.c: Remove file.
24656 * config/avr/t-avr (driver-avr.o): Remove rule.
24657 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
24658 INCLUDES to build. Depend on TM_H.
24659 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
24660 build warnings. Fix non-matching types and non-existing %-codes.
24662 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
24663 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
24664 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
24665 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
24666 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
24667 (LIBGCC_SPEC): Remove definitions.
24669 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
24671 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
24672 to create a register in testing mode.
24674 2015-03-03 Martin Liska <mliska@suse.cz>
24675 Jan Hubicka <hubicka@ucw.cz>
24678 * cgraph.c (cgraph_node::has_thunk_p): New function.
24679 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
24680 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
24681 (sem_function::merge): Assert is changed.
24683 2015-03-03 Martin Liska <mliska@suse.cz>
24684 Martin Jambor <mjambor@suse.cz>
24687 * ipa-icf.c (sem_item_optimizer::execute): Change function
24688 return value to boolean.
24689 (sem_item_optimizer::merge_classes): Likewise.
24690 (ipa_icf_driver): Return TODO_remove_functions in case there's
24691 a merge operation processed.
24692 * ipa-icf.h: Change function return value to boolean.
24694 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24697 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
24698 processor type for 64-bit little endian PowerPC.
24700 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
24701 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
24702 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
24703 printing built-in mask so it does not pass NULL pointers.
24705 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
24708 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
24711 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
24712 !ISA_HAS_FP_CONDMOVE.
24714 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
24716 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
24719 2015-03-02 Ulrich Drepper <drepper@gmail.com>
24721 * doc/invoke.texi (Options for Code Generation Conventions):
24722 Fix URL of DSO paper.
24724 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24727 * ipa-inline.c (check_callers): Looks for recursion.
24728 (inline_to_all_callers): Give up on uninlinable or recursive edges.
24729 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
24730 summary of inline clones.
24731 (do_estimate_growth_1): Fix recursion check.
24733 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24736 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
24739 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24740 Aldy Hernandez <aldyh@redhat.com>
24743 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
24744 when checking TYPE_BINFO.
24746 2015-03-02 Richard Biener <rguenther@suse.de>
24749 * ipa-icf-gimple.c: Include builtins.h.
24750 (func_checker::compare_memory_operand): Compare base alignment.
24752 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
24755 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
24756 are never passed by reference.
24758 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
24761 * tree-chkp.c (chkp_check_lower): Don't check against
24762 zero bounds for already instrumented functions.
24763 (chkp_check_upper): Likewise.
24764 (chkp_fini): Clean pass local data to avoid wrong reusage.
24766 2015-02-28 Martin Liska <mliska@suse.cz>
24767 Jan Hubicka <hubicka@ucw.cz>
24769 * ipa-icf.c (sem_variable::equals): Improve debug output;
24770 get variable constructor.
24771 (sem_variable::parse): Do not filter out too early; give up on
24772 volatile and register vars.
24773 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
24775 * ipa-icf.h (sem_variable::init): Do not set ctor.
24776 (sem_variable::ctor): Remove.
24778 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
24780 PR middle-end/65233
24781 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
24783 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24785 * ipa-icf.c: Include stor-layout.h
24786 (sem_function::compare_cgraph_references): Rename to ...
24787 (sem_item::compare_cgraph_references): ... this one.
24788 (sem_variable::equals_wpa): New function
24789 (sem_variable::equals): Do not check stuff already verified by
24791 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
24792 * ipa-icf.h (sem_item): Add compare_cgraph_references.
24793 (sem_function): Remove compare_cgraph_references.
24794 (sem_variable): Turns equals_wpa into non-inline.
24796 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24798 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
24799 (sem_item::add_expr): New function.
24800 (sem_function::hash_stmt): Handle operands of most statements.
24801 (sem_variable::get_hash): Hash the actual constructor.
24802 * ipa-icf.h (sem_item): Add add_expr.
24803 (sem_function): Update prototype of hash_stmt
24805 2015-02-28 Martin Liska <mliska@suse.cz>
24806 Jan Hubicka <hubicka@ucw.cz>
24809 * ipa-icf-gimple.c (func_checker::compare_function_decl):
24811 (func_checker::compare_variable_decl): Skip symtab vars.
24812 (func_checker::compare_cst_or_decl): Update.
24813 * ipa-icf.c (sem_function::parse): Do not consider aliases.
24814 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
24815 use correct symtab predicates.
24816 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
24817 (sem_variable::parse): Update comment.
24818 (sem_item_optimizer::build_graph): Consider ultimate aliases
24821 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24823 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
24826 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24828 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
24829 (sem_variable::merge) Likewise.
24831 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24833 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
24834 target; also match flag_ipa_devirt.
24836 2015-03-01 Martin Liska <mliska@suse.cz>
24837 Jan Hubicka <hubicka@ucw.cz>
24839 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
24840 Validate variable alignment.
24841 * ipa-icf.c (sem_function::equals_private): Be more precise
24842 about non-common function attributes.
24843 (sem_variable::equals): Likewise.
24845 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24848 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
24849 across COMDAT group boundary.
24851 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24854 * ipa-icf.c (clear_decl_rtl): New function.
24855 (sem_function::merge): Clear RTL before forming alias.
24856 (sem_variable::merge): Clear RTL before forming alias.
24858 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24861 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
24863 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
24865 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
24868 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24870 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
24871 a typo in the description.
24873 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24876 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24877 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24878 * lra-constraints.c: Include "params.h".
24879 (EBB_PROBABILITY_CUTOFF): Use
24880 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
24881 (lra_inheritance): Use '<' instead of '<=' for
24882 EBB_PROBABILITY_CUTOFF.
24883 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
24886 2015-02-27 Martin Liska <mliska@suse.cz>
24888 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
24889 vector length condition.
24891 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
24893 * doc/extend.texi (x86 transactional memory intrinsics):
24894 Reorganize discussion of _xbegin. Clarify that the return
24895 value is a bit mask. Expand example and move to end of section.
24897 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24898 Aldy Hernandez <aldyh@redhat.com>
24900 PR rtl-optimization/65220
24901 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
24903 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24906 * lra-remat.c (update_scratch_ops): New.
24907 (do_remat): Call it.
24908 * lra.c (lra_register_new_scratch_op): New. Take code from ...
24909 (remove_scratches): ... here.
24910 * lra-int.h (lra_register_new_scratch_op): New prototype.
24912 2015-02-27 Marek Polacek <polacek@redhat.com>
24915 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
24916 -Wformat-signedness anymore.
24918 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24920 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
24922 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
24924 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24926 * config/s390/s390.c (enum s390_builtin):
24927 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
24928 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
24929 (s390_init_builtins): Generate new builtin functions.
24930 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
24931 (s390_sfpc, s390_efpc): New pattern definitions.
24933 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24935 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
24936 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
24937 (s390_builtin_decls): New array.
24938 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
24939 (s390_builtin_decl): New function.
24940 (TARGET_BUILTIN_DECL): Define macro.
24942 2015-02-27 Richard Biener <rguenther@suse.de>
24944 PR middle-end/63175
24945 * builtins.c (get_object_alignment_2): Make sure to re-apply
24946 the ANDed mask after recursing to its operand gets us a new
24947 misalignment bit position.
24949 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
24950 Martin Liska <mliska@suse.cz>
24953 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
24954 Use address_matters_p.
24955 (redirect_all_callers, set_addressable): New functions.
24956 (sem_function::merge): Reorganize and fix merging issues.
24957 (sem_variable::merge): Likewise.
24958 (sem_variable::compare_sections): Remove.
24959 * common.opt (fmerge-all-constants, fmerge-constants): Remove
24961 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
24963 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
24965 (address_matters_1): New function.
24966 (symtab_node::address_matters_p): New function.
24967 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
24968 check for merged flag.
24969 * cgraph.h (address_matters_p): Declare.
24970 (symtab_node::address_taken_from_non_vtable_p): Remove.
24971 (symtab_node::address_can_be_compared_p): New method.
24972 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
24973 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
24975 (comdat_can_be_unshared_p_1) Use address_matters_p.
24976 (update_vtable_references): Fix formating.
24977 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
24978 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
24979 * cgraphclones.c: Preserve merged and icf_merged flags.
24981 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
24983 * doc/extend.texi (Function Attributes): Fix spelling and typos.
24984 (Label Attributes): Likewise.
24985 (Cilk Plus Builtins): Likewise.
24986 (ARC SIMD Built-in Functions): Likewise.
24987 (ARM C Language Extensions (ACLE)): Likewise.
24988 (PowerPC Built-in Functions): Likewise.
24989 (PowerPC Hardware Transactional Memory Built-in Functions):
24992 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24994 PR tree-optimization/65216
24995 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
24996 new stmt and new SSA_NAME for lhs whenever the arguments have
24997 changed and weren't just swapped. Fix comment typo.
24999 PR tree-optimization/65215
25000 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
25001 for PDP endian targets.
25002 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
25003 Fix up formatting issues.
25004 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
25005 size is smaller than the original, adjust MEM_REF offset by the
25006 difference of sizes. Use is_gimple_mem_ref_addr instead of
25007 is_gimple_min_invariant test to avoid adding address temporaries.
25009 2015-02-26 Martin Liska <mliska@suse.cz>
25010 Jan Hubicka <hubicka@ucw.cz>
25013 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
25014 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
25015 (sem_item_optimizer::process_cong_reduction): Include division by
25016 sensitive references.
25017 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
25018 * ipa-ref.c (ipa_ref::address_matters_p): New function.
25019 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
25021 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
25024 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
25026 * config/avr/avr.c: Same.
25027 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
25028 Refuse any constant address not in 0..0xbf.
25029 * config/avr/avr.md (*mov<mode>, *movsf): Remove
25030 tiny_valid_direct_memory_access_range from insn conditions.
25031 (mov<mode>): Don't special-case expansion of avrtiny addresses.
25033 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
25036 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
25037 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
25038 * config/sh/predicates.md (const_logical_operand): New predicate.
25039 * config/sh/sh.md: Add new peephole2 patterns.
25041 2015-02-26 Marek Polacek <polacek@redhat.com>
25044 * ipa-inline.c (early_inliner): Recompute inline parameters.
25046 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25049 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
25050 instructions with TImode operands are included in the analysis.
25052 2015-02-26 Sebastian Pop <s.pop@samsung.com>
25054 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
25055 of an EDGE_FSM_THREAD.
25057 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
25059 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
25061 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
25064 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
25066 2015-02-26 Sebastian Pop <s.pop@samsung.com>
25068 PR tree-optimization/65048
25069 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
25070 (thread_through_all_blocks): Call valid_jump_thread_path.
25071 Remove invalid FSM jump-thread paths.
25073 2015-02-26 Jakub Jelinek <jakub@redhat.com>
25075 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
25076 (ipa_write_optimization_summaries): Likewise.
25077 * tree-streamer.h: Include data-streamer.h.
25078 (streamer_mode_table): Declare extern variable.
25079 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
25080 * lto-streamer-out.c (lto_output_init_mode_table,
25081 lto_write_mode_table): New functions.
25082 (produce_asm_for_decls): Call lto_write_mode_table when streaming
25084 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
25085 (lto_create_simple_input_block): Add mode_table argument to the
25086 lto_input_block constructors.
25087 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
25089 * data-streamer-in.c (string_for_index): Likewise.
25090 * ipa-inline-analysis.c (inline_read_section): Likewise.
25091 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
25092 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
25093 * lto-streamer-in.c (lto_read_body_or_constructor,
25094 lto_input_toplevel_asms): Likewise.
25095 (lto_input_mode_table): New function.
25096 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
25097 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
25098 Use bp_pack_machine_mode.
25099 * real.h (struct real_format): Add name field.
25100 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
25101 (class lto_input_block): Add mode_table member.
25102 (lto_input_block::lto_input_block): Add mode_table_ argument,
25103 initialize mode_table.
25104 (struct lto_file_decl_data): Add mode_table field.
25105 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
25106 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
25107 unpack_ts_decl_common_value_fields,
25108 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
25109 * tree-streamer.c (streamer_mode_table): New variable.
25110 * real.c (ieee_single_format, mips_single_format,
25111 motorola_single_format, spu_single_format, ieee_double_format,
25112 mips_double_format, motorola_double_format,
25113 ieee_extended_motorola_format, ieee_extended_intel_96_format,
25114 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
25115 ibm_extended_format, mips_extended_format, ieee_quad_format,
25116 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
25117 decimal_single_format, decimal_double_format, decimal_quad_format,
25118 ieee_half_format, arm_half_format, real_internal_format): Add name
25120 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
25122 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
25125 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
25126 reordering for selective scheduling.
25128 2015-02-26 Terry Guo <terry.guo@arm.com>
25130 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
25131 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
25132 (arm_arch_no_volatile_ce): Declare new global variable.
25133 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
25134 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
25135 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
25136 (TARGET_NO_VOLATILE_CE): New macro.
25137 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
25138 volatile memory access in IT block
25140 2015-02-25 Kai Tietz <ktietz@redhat.com>
25142 PR tree-optimization/61917
25143 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
25144 that reduc_def_stmt is null.
25146 2015-02-25 Martin Liska <mliska@suse.cz>
25148 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
25149 hard register variables.
25151 2015-02-25 Kai Tietz <ktietz@redhat.com>
25154 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
25155 (symtab::noninterposable_alias): Likewise.
25157 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
25160 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
25162 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
25164 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
25167 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
25168 as split condition; force split via '#' in output pattern.
25170 2015-02-25 Richard Biener <rguenther@suse.de>
25171 Kai Tietz <ktietz@redhat.com>
25173 PR tree-optimization/61917
25174 * tree-vect-loop.c (vectorizable_reduction): Allow
25175 vect_internal_def without reduction to exit graceful.
25177 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
25180 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
25181 only with NONDEBUG_INSN_P.
25183 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
25185 Use variadic macros with avr-log.c.
25187 * config/avr/avr-protos.h (avr_vdump): New prototype.
25188 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
25189 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
25190 * config/avr/avr-log.c: Adjust comments.
25191 (avr_vdump): New function.
25192 (avr_vadump): Pass caller as 2nd argument instead of format string.
25193 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
25194 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
25196 2015-02-25 Jakub Jelinek <jakub@redhat.com>
25199 * target.def (target_option_stream_in): New target hook.
25200 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
25201 targetm.target_option.post_stream_in if non-NULL.
25202 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
25203 * doc/tm.texi: Updated.
25204 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
25206 (TARGET_OPTION_POST_STREAM_IN): Redefine.
25208 2015-02-24 Jeff Law <law@redhat.com>
25211 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
25212 of operand 0 and operand 2.
25213 (zero_cost_loop_end, loop_end): Similarly.
25215 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
25217 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
25220 2015-02-24 DJ Delorie <dj@redhat.com>
25222 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
25223 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
25224 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
25225 instead of hardcoding SImode.
25227 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
25229 * omp-low.c (create_omp_child_function): Tag entrypoint
25230 functions with a special attribute.
25232 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
25235 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
25237 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
25239 PR rtl-optimization/65123
25240 * lra-remat.c (operand_to_remat): Check hard regs in insn
25243 2015-02-24 Nick Clifton <nickc@redhat.com>
25245 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
25248 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
25251 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
25252 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
25253 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
25254 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
25255 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
25256 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
25257 (BUILT_IN_GOACC_PARALLEL): Specify as
25258 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
25259 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
25260 * builtin-types.def
25261 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
25262 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
25263 Remove function types.
25264 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
25265 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
25266 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
25267 New function types.
25269 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
25271 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
25273 2015-02-24 Jakub Jelinek <jakub@redhat.com>
25275 PR tree-optimization/65170
25276 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
25277 if val[1] < 0, clear also val[2] and return 3.
25279 2015-02-24 Alan Modra <amodra@gmail.com>
25282 * config/rs6000/rs6000.c (get_memref_parts): Only return true
25283 when *base is a reg. Handle nested plus addresses. Simplify
25286 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
25288 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
25289 use natural alignment when optimizing for size.
25291 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
25294 * config/sh/sh.md (movsicc_true+3): Remove peephole.
25295 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
25296 * config/sh/sh.c (replace_n_hard_rtx): Remove.
25298 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
25301 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
25302 too big for a wide_int. Implement missing wrapping operation.
25304 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
25307 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
25308 instead of const_int 4294901760.
25310 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
25312 * config/avr/t-avr: Fix typo in comment.
25314 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
25316 * doc/rtl.texi (fma): Clarify documentation.
25318 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
25321 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
25322 over input_location.
25324 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
25326 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
25327 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
25328 restrict alignments to absolute_biggest_alignment.
25329 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
25331 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
25332 * doc/tm.texi: Regenerate.
25333 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
25335 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
25338 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
25340 2015-02-20 Richard Biener <rguenther@suse.de>
25342 PR tree-optimization/65136
25343 * tree-ssa-propagate.c: Include cfgloop.h.
25344 (replace_phi_args_in): Avoid replacing loop latch edge PHI
25345 arguments with constants.
25347 2015-02-20 Jakub Jelinek <jakub@redhat.com>
25348 Martin Liska <mliska@suse.cz>
25351 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
25352 don't try to create_thunk if stdarg_p. If
25353 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
25354 redirect_callers if possible.
25355 (sem_item_optimizer::execute): Call unregister_hooks here...
25356 (ipa_icf_driver): ... instead of here.
25358 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25360 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
25361 Mark operand 0 as earlyclobber in 2nd alternative.
25362 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
25363 Write negated shift amount into QI lowpart operand 0 and use it
25365 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
25367 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
25369 * cgraph.h (clone_function_name_1): Declare.
25370 * cgraphclones.c (clone_function_name_1): New function.
25371 (clone_function_name): Use it.
25372 * lto-partition.c: Include "stringpool.h".
25373 (must_not_rename, maybe_rewrite_identifier)
25374 (validize_symbol_for_target): New static functions.
25375 (privatize_symbol_name): Use must_not_rename.
25376 (promote_symbol): Call validize_symbol_for_target.
25377 (lto_promote_cross_file_statics): Likewise.
25378 (lto_promote_statics_nonwpa): Likewise.
25380 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
25383 * config/avr/avr.md (pushhi_insn): New insn.
25384 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
25386 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
25387 Jakub Jelinek <jakub@redhat.com>
25389 * tree-streamer.c (preload_common_nodes): Don't preload
25390 TI_VA_LIST* for offloading.
25391 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
25394 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
25396 * config/pa/pa.c (pa_emit_move_sequence): Always force
25397 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
25400 * config/pa/pa.c (pa_reloc_rw_mask): New function.
25401 (TARGET_ASM_RELOC_RW_MASK): Define.
25402 (pa_cannot_force_const_mem): Revert previous change.
25404 2015-02-19 Martin Jambor <mjmabor@suse.cz>
25405 Jan Hubicka <hubicka@ucw.cz>
25408 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
25409 across jump functions.
25411 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
25413 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
25415 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
25417 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
25419 2015-02-19 Richard Henderson <rth@redhat.com>
25421 PR middle-end/65074
25422 * varasm.c (default_binds_local_p_2): Don't test node->definition;
25423 test DECL_EXTERNAL independent of symtab_node.
25425 2015-02-19 Jakub Jelinek <jakub@redhat.com>
25428 * varpool.c (varpool_node::get_constructor): Return early
25429 if this->lto_file_data is NULL.
25431 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25433 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
25434 (rank_for_schedule_debug): Update.
25435 (ready_sort): Make static. Move sorting logic to ...
25436 (ready_sort_debug, ready_sort_real): New static functions.
25437 (schedule_block): Sort both debug insns and real insns in preparation
25438 for ready list trimming. Improve debug output.
25439 * sched-int.h (ready_sort): Remove global declaration.
25441 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
25443 * ipa-icf.c (sem_function::equals_private): Adjust.
25444 (sem_function::bb_dict_test): Take a vec<int> * instead of
25446 * ipa-icf.h (bb_dict_test): Likewise.
25448 2015-02-18 Jakub Jelinek <jakub@redhat.com>
25450 PR gcov-profile/64634
25451 * tree-eh.c (frob_into_branch_around): Fix up typos
25452 in function comment.
25453 (lower_catch): Put eh_seq resulting from EH lowering of
25454 the cleanup sequence after the cleanup rather than before it.
25456 2015-02-18 Tom de Vries <tom@codesourcery.com>
25458 * common.opt (fstdarg-opt): New option.
25459 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
25460 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
25461 (@item -fstdarg-opt): New item.
25463 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
25466 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
25467 for common symbols.
25469 2015-02-18 Jakub Jelinek <jakub@redhat.com>
25471 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
25473 (ALL_HOST_OBJS): Add mkoffload.o.
25474 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
25476 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
25478 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
25479 (compare_virtual_tables): Be smarter about skipping typeinfos;
25480 do sane output on virtual table table mismatch.
25481 (warn_odr): Be ready for forward declarations of enums;
25482 output sane info on base mismatch and virtual table mismatch.
25483 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
25484 when only one type is polymorphic.
25485 (get_odr_type): Fix hashtable corruption.
25486 (dump_odr_type): Dump mangled names.
25488 2015-02-18 Richard Biener <rguenther@suse.de>
25490 PR tree-optimization/65063
25491 * tree-predcom.c (determine_unroll_factor): Return 1 if we
25492 have replaced looparound PHIs.
25494 2015-02-18 Martin Liska <mliska@suse.cz>
25496 * lto-streamer.c (lto_streamer_init): Encapsulate
25497 streamer_check_handled_ts_structures with checking macro.
25499 2015-02-18 Jakub Jelinek <jakub@redhat.com>
25502 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
25503 section if !implicit_section.
25504 (cgraph_node::create_version_clone_with_body): Likewise.
25505 * trans-mem.c (ipa_tm_create_version): Likewise.
25507 2015-02-18 Richard Biener <rguenther@suse.de>
25509 PR tree-optimization/62217
25510 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
25513 2015-02-18 Marek Polacek <polacek@redhat.com>
25516 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
25517 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
25518 is in range [-16K, -1]. Don't issue run-time error if
25519 (ptr > ptr + offset).
25521 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
25523 * doc/install.texi (nvptx-*-none): New section.
25524 * doc/invoke.texi (Nvidia PTX Options): Likewise.
25525 * config/nvptx/nvptx.opt: Update.
25527 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
25528 (access_check): New functions, copied from
25529 config/i386/intelmic-mkoffload.c.
25530 (main): For non-installed testing, look in all COMPILER_PATHs for
25533 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
25535 2015-02-18 Andrew Pinski <apinski@cavium.com>
25536 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25538 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
25539 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
25541 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
25543 * ipa-visibility.c (function_and_variable_visibility): Only
25544 check locality if node is not already local.
25545 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
25546 call_for_symbol_and_aliases instead of
25547 call_for_symbol_thunks_and_aliases.
25548 (ipa_inline): Likewise.
25549 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25550 first walk aliases.
25551 * ipa.c (symbol_table::remove_unreachable_nodes): Use
25552 call_for_symbol_and_aliases.
25553 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
25554 (ipa_propagate_frequency_1): Use it; use opt_for_fn
25555 (ipa_propagate_frequency): Update.
25556 (ipa_profile): Add opt_for_fn gueards.
25558 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
25560 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
25561 * doc/invoke.texi (SH options): Document it.
25562 * config/sh/sh.c (sh_insn_length_adjustment): Check
25563 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
25565 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
25567 * common.opt (fipa-cp-alignment): New.
25568 * ipa-cp.c (ipcp_store_alignment_results): Check
25569 flag_ipa_cp_alignment.
25570 * opts.c (default_options_table): Enable -fipa-cp-alignment for
25572 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
25573 * doc/invoke.texi: Document -fipa-cp-alignment.
25575 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
25578 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
25579 to nil. Adjust comments.
25581 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
25583 * ipa-visibility.c (function_and_variable_visibility): Only
25584 check locality if node is not already local.
25585 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
25586 call_for_symbol_and_aliases instead of
25587 call_for_symbol_thunks_and_aliases.
25588 (ipa_inline): Likewise.
25589 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25590 first walk aliases.
25591 * ipa.c (symbol_table::remove_unreachable_nodes): Use
25592 call_for_symbol_and_aliases.
25593 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
25594 (ipa_propagate_frequency_1): Use it; use opt_for_fn
25595 (ipa_propagate_frequency): Update.
25596 (ipa_profile): Add opt_for_fn guards.
25598 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
25600 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
25601 skipping of "strange" tokens.
25603 2015-02-17 Jeff Law <law@redhat.com>
25605 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
25608 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
25610 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
25611 as forcing a HARD_DEP between instructions, thereby
25612 disallowing rewriting to break dependencies.
25614 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
25616 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
25617 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
25618 variables in boundary that have no inlitalizer encoded and are
25620 * varasm.c (default_binds_local_p_2): External definitions do not
25621 count as definitions here.
25623 2015-02-16 Jeff Law <law@redhat.com>
25625 PR tree-optimization/64823
25626 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
25628 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
25629 threading through blocks with PHIs, but no statements.
25630 (thread_through_normal_block): Distinguish between blocks where
25631 we did not process all the statements and blocks with no statements.
25633 2015-02-16 Jakub Jelinek <jakub@redhat.com>
25634 James Greenhalgh <james.greenhalgh@arm.com>
25637 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
25638 section if not linkonce. Fix up formatting.
25639 (cgraph_node::create_version_clone_with_body): Copy section.
25640 * trans-mem.c (ipa_tm_create_version): Likewise.
25642 2015-02-16 Richard Biener <rguenther@suse.de>
25644 PR tree-optimization/65077
25645 * tree-ssa-structalias.c (get_constraint_for_1): Handle
25646 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
25647 (find_func_aliases): Allow float values to carry pointers again.
25649 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
25651 * doc/install.texi (Specific): Reorder targets list to put
25652 aarch64 in alphabetical order. Add a link to aarch64*-*-*
25655 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
25656 David Edelsohn <dje.gcc@gmail.com>
25659 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
25660 mapping class to external variable or function reference.
25661 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
25664 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
25667 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
25668 ASM_WEAKEN_DECL if defined.
25670 2015-02-16 Richard Biener <rguenther@suse.de>
25673 * varasm.c (default_file_start): For LTO produced units
25674 emit <artificial> as file directive.
25676 2015-02-16 Richard Biener <rguenther@suse.de>
25678 PR tree-optimization/63593
25679 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
25680 stmts and releasing SSA names until...
25681 (execute_pred_commoning): ... after processing all chains.
25683 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
25686 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
25687 external functions.
25689 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
25691 * doc/bugreport.texi: Adjust section titles throughout the file
25692 to use "Title Case".
25693 * doc/extend.texi: Likewise.
25694 * doc/gcov.texi: Likewise.
25695 * doc/implement-c.texi: Likewise.
25696 * doc/implement-cxx.texi: Likewise.
25697 * doc/invoke.texi: Likewise.
25698 * doc/objc.texi: Likewise.
25699 * doc/standards.texi: Likewise.
25700 * doc/trouble.texi: Likewise.
25702 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
25704 * cgraph.h (symtab_node::has_aliases_p): Simplify.
25705 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
25706 * tree.c (lookup_binfo_at_offset): Make static.
25707 (get_binfo_at_offset): Do not shadow offset; add explanatory
25710 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
25712 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
25713 for all floading point loads and stores except those using a register
25715 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
25718 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
25720 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
25721 (do_estimate_growth_1): Record if any uninlinable edge was seen.
25722 (estimate_growth): Handle uninlinable edges correctly.
25723 (check_callers): New.
25724 (growth_likely_positive): Handle aliases correctly.
25726 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
25728 * ipa-chkp.c: Use iterate_direct_aliases.
25729 * symtab.c (resolution_used_from_other_file_p): Move inline.
25730 (symtab_node::create_reference): Fix formating.
25731 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
25732 (symtab_node::iterate_reference): Move inline.
25733 (symtab_node::iterate_referring): Move inline.
25734 (symtab_node::iterate_direct_aliases): Move inline.
25735 (symtab_node::used_from_object_file_p_worker): Inline into ...
25736 (symtab_node::used_from_object_file_p): ... this one; move inline.
25737 (symtab_node::call_for_symbol_and_aliases): Move inline;
25738 use iterate_direct_aliases.
25739 (symtab_node::call_for_symbol_and_aliases_1): New method.
25740 (cgraph_node::call_for_symbol_and_aliases): Move inline;
25741 use iterate_direct_aliases.
25742 (cgraph_node::call_for_symbol_and_aliases_1): New method.
25743 (varpool_node::call_for_node_and_aliases): Rename to ...
25744 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
25745 use iterate_direct_aliases.
25746 (varpool_node::call_for_symbol_and_aliases_1): New method.
25747 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
25748 (ipa_discover_readonly_nonaddressable_var): Update.
25749 * ipa-devirt.c: Fix formating.
25750 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
25752 (cgraph_node::call_for_symbol_and_aliases): Move inline.
25753 (cgraph_node::call_for_symbol_and_aliases_1): New function..
25754 * cgraph.h (used_from_object_file_p_worker): Remove.
25755 (resolution_used_from_other_file_p): Move inline.
25756 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
25757 (symtab_node::iterate_reference): Move inline.
25758 (symtab_node::iterate_referring): Move inline.
25759 (symtab_node::iterate_direct_aliases): Move inline.
25760 (symtab_node::used_from_object_file_p_worker): Inline into ...
25761 (symtab_node::used_from_object_file_p): Move inline.
25762 * tree-emutls.c (ipa_lower_emutls): Update.
25763 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
25764 (varpool_node::call_for_node_and_aliases): Remove.
25766 2015-02-14 Jakub Jelinek <jakub@redhat.com>
25768 PR tree-optimization/62209
25769 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
25770 op == range->exp, insert seq and gimplified code after labels
25771 instead of after the phi.
25773 2015-02-13 Jeff Law <law@redhat.com>
25776 Revert my change for tree-optimization/64823.
25778 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25780 PR tree-optimization/65053
25781 * tree-ssa-phiopt.c (value_replacement): When moving assign before
25782 cond, either reset VR on lhs or set it to phi result VR.
25784 2015-02-13 Jeff Law <law@redhat.com>
25786 PR tree-optimization/64823
25787 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
25788 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
25789 threading through blocks with PHIs, but no statements.
25790 (thread_through_normal_block): Distinguish between blocks where
25791 we did not process all the statements and blocks with no statements.
25793 PR rtl-optimization/47477
25794 * match.pd (convert (plus/minus (convert @0) (convert @1): New
25795 simplifier to narrow arithmetic.
25797 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
25800 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
25801 polymorphic call info when type is not known to be preserved.
25803 2015-02-13 Maritn Jambor <mjambor@suse.cz>
25806 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
25807 (inline_call): Use it.
25809 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
25811 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
25812 GOMP_DEVICE_NVIDIA_PTX.
25814 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25817 * stmt.c (emit_case_nodes): Use void_type_node instead of
25818 NULL_TREE as LABEL_DECL type.
25820 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
25822 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
25824 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
25825 symbolic references to data to be forced to constant memory on the
25828 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
25830 PR tree-optimization/65002
25831 * tree-cfg.c (pass_data_fixup_cfg): Don't update
25833 * tree-sra.c (some_callers_have_no_vuse_p): New.
25834 (ipa_early_sra): Reject functions whose callers
25835 assume function is read only.
25837 2015-02-13 Richard Biener <rguenther@suse.de>
25840 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
25841 for LTO produced CUs.
25843 2015-02-13 Bin Cheng <bin.cheng@arm.com>
25845 PR tree-optimization/64705
25846 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
25847 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
25848 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
25849 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
25850 expand_simple_operations.
25852 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
25853 Richard Henderson <rth@redhat.com>
25856 * cgraphunit.c (cgraph_node::finalize_function): Set definition
25857 before notice_global_symbol.
25858 (varpool_node::finalize_decl): Likewise.
25859 * varasm.c (default_binds_local_p_2): Rename from
25860 default_binds_local_p_1, add weak_dominate argument. Use direct
25861 returns instead of assigning to local variable. Unify varpool and
25862 cgraph paths via symtab_node. Reject undef weak variables before
25863 testing visibility. Reorder tests for simplicity.
25864 (default_binds_local_p): Use default_binds_local_p_2.
25865 (default_binds_local_p_1): Likewise.
25866 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
25868 (default_elf_asm_output_external): Emit visibility when specified.
25870 2015-02-13 Alan Modra <amodra@gmail.com>
25872 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
25873 code setting up r11 for out-of-line fp restore.
25875 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
25877 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
25878 (muser-mode): Likewise.
25880 2015-02-13 Alan Modra <amodra@gmail.com>
25882 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
25883 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
25885 2015-02-12 David Howells <dhowells@redhat.com>
25887 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
25889 * tree-ssa-uninit.c (dump_predicates): Likewise.
25890 * opts.c (print_filtered_help): Likewise.
25892 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25894 * dwarf2out.c (output_die): Use "%s", name instead of name to
25895 avoid -Wformat-security warning.
25897 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
25898 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25899 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
25900 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25902 2015-02-12 Jason Merrill <jason@redhat.com>
25904 * common.opt (-flifetime-dse): New.
25906 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25909 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
25911 PR tree-optimization/65014
25912 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
25913 use original second operand of arg0 or arg1 instead of
25914 that adjusted by STRIP_NOPS.
25916 2015-02-11 Jeff Law <law@redhat.com>
25919 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
25920 that needs to be queued, just queue it for a single cycle.
25922 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
25924 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
25925 bodies of thunks; comment on why.
25926 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
25927 symbols are extern.
25929 2015-02-11 Richard Henderson <rth@redhat.com>
25932 * tree-eh.c (mark_reachable_handlers): Mark source and destination
25933 regions of __builtin_eh_copy_values.
25935 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25937 PR middle-end/65003
25938 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
25939 ultimate alias is MEM with SYMBOL_REF satisfying
25940 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
25941 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
25943 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
25945 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
25946 "diagnostic-core.h".
25947 (main): Initialize progname, and call diagnostic_initialize.
25949 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
25950 instead of __OPENMP_TARGET__.
25952 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
25953 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
25954 hard-coding PTX_ID.
25956 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
25958 * doc/sourcebuild.texi (pie_enabled): Document.
25960 2015-02-11 Martin Liska <mliska@suse.cz>
25963 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
25964 a return value for call to a function that is noreturn.
25966 2015-02-11 Richard Biener <rguenther@suse.de>
25969 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
25972 2015-02-11 Andrew Pinski <apinski@cavium.com>
25975 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
25976 Change the first argument type to size_type_node and add another
25978 (aarch64_simd_expand_builtin): Handle the new argument to
25979 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
25980 print an out when the first two arguments are not
25981 nonzero integer constants.
25982 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
25983 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
25985 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25988 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
25989 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
25990 (ix86_set_current_function): Rewritten.
25991 (ix86_add_new_builtins): Temporarily clear current_target_pragma
25992 when creating builtin fndecls.
25994 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25997 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
25999 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
26000 have no comdat group.
26001 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
26002 (lto_output_varpool_node): Always output alias info.
26003 (output_refs): Output refs of boundary aliases, too.
26004 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
26005 (output_symtab): Output call eges in thunks in boundary.
26006 (get_alias_symbol): Remove.
26007 (input_node, input_varpool_node): Do not special case weakrefs.
26008 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
26009 alias and thunks targets in the boundary; do not take removed symbols
26010 from their comdat groups.
26011 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
26012 (cgraph_node::global_info): Remove.
26013 (cgraph_node::rtl_info): Look through aliases and thunks.
26014 * cgrpah.h (global_info): Remove.
26015 (non_local_p): Remove.
26017 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
26018 Sandra Loosemore <sandra@codesourcery.com>
26020 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
26021 to inline asm. List dialects in proper order.
26023 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
26024 Sandra Loosemore <sandra@codesourcery.com>
26026 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
26028 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
26030 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
26031 modified) reference to Solaris.
26033 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
26035 * doc/extend.texi (Extended Asm): Fix typos.
26037 2015-02-10 Jakub Jelinek <jakub@redhat.com>
26040 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
26042 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
26045 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
26046 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
26047 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
26048 * config/sh/constraints.md (Ara, Add): New constraints.
26049 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
26051 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
26052 atomic_mem_operand_0. Don't use force_reg on the memory address.
26053 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
26054 Sra constraint. Convert to insn_and_split. Add workaround for
26056 (atomic_compare_and_swap<mode>_hard): Copy to
26057 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
26058 Use atomic_mem_operand_0 predicate.
26059 (atomic_compare_and_swap<mode>_soft_gusa,
26060 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
26061 AraAdd constraints.
26062 (atomic_compare_and_swap<mode>_soft_tcb,
26063 atomic_compare_and_swap<mode>_soft_imask,
26064 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
26065 atomic_mem_operand_0 predicate and SraSdd constraints.
26066 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
26068 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
26069 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
26070 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
26071 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
26072 force_reg on the memory address.
26073 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
26074 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
26075 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
26076 atomic_mem_operand_1 predicate and Sra constraint.
26077 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
26078 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
26079 Use atomic_mem_operand_1 predicate.
26080 (atomic_<fetchop_name><mode>_hard): Copy to
26081 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
26082 Use atomic_mem_operand_1 predicate.
26083 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
26084 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
26085 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
26086 insn_and_split. Use atomic_mem_operand_1 predicate.
26087 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
26088 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
26089 Use atomic_mem_operand_1 predicate.
26090 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
26091 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
26092 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
26093 in generated insn with original mem operand before emitting the insn.
26094 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
26095 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
26096 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
26097 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
26098 Use atomic_mem_operand_1 predicate and AraAdd constraints.
26099 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
26100 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
26101 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
26102 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
26103 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
26104 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
26105 atomic_not_fetch<mode>_soft_tcb,
26106 atomic_<fetchop_name>_fetch<mode>_soft_imask,
26107 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
26108 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
26109 Use atomic_mem_operand_1 predicate and SraSdd constraints.
26111 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
26113 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
26114 and 3 earlyclobber operands.
26116 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
26118 * common.opt (fstack-reuse): Mark as optimization.
26120 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
26123 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
26125 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
26127 PR tree-optimization/64326
26128 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
26130 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
26132 PR gcov-profile/61889
26133 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
26135 2015-02-10 Richard Biener <rguenther@suse.de>
26137 PR tree-optimization/64995
26138 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
26139 value we use is final.
26140 (visit_reference_op_store): Always valueize op.
26141 (visit_use): Properly valueize vuses.
26143 2015-02-10 Richard Biener <rguenther@suse.de>
26145 PR tree-optimization/64909
26146 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
26147 pass a scalar-stmt count estimate to the cost model.
26148 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
26150 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
26152 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
26153 enabled by default together with var-tracking.
26155 2015-02-10 Nick Clifton <nickc@redhat.com>
26157 * config/rl78/rl78.c: Remove DIV attribute code accidentally
26158 included in previous rl78 commit.
26160 2015-02-10 Richard Biener <rguenther@suse.de>
26162 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
26163 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
26164 return the bitpack.
26166 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
26168 PR gcov-profile/61889
26169 * config.in: regenerate.
26170 * configure.in: Likewise.
26171 * configure.ac: Check for ftw.h.
26172 * gcov-tool.c: Check for ftw.h before using nftw.
26174 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
26177 * ipa-visibility.c (update_visibility_by_resolution_info): Only
26178 assert when not in lto mode.
26180 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26182 * ira-color.c (setup_left_conflict_sizes_p): Simplify
26183 initialization/assignment of conflict_size.
26185 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
26188 * ipa-cp.c (gather_caller_stats): Skip thunks.
26189 (propagate_constants_topo): Skip aliases.
26191 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
26194 * config/sh/sh.c (sh_option_override): Don't change
26195 -freorder-blocks-and-partition to -freorder-blocks even when
26196 unwinding is enabled.
26197 (sh_can_follow_jump): Return false if the followee jump is
26198 a crossing jump when -freorder-blocks-and-partition is specified.
26199 * config/sh/sh.md (*jump_compact_crossing): New insn.
26201 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
26202 Kaz Kojima <kkojima@gcc.gnu.org>
26205 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
26206 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
26207 (sh_can_redirect_branch): Rename to ...
26208 (sh_can_follow_jump): ... this. Constify argument types.
26209 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
26210 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
26211 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
26212 * doc/tm.texi: Regenerate.
26214 2015-02-09 Jakub Jelinek <jakub@redhat.com>
26217 * builtins.c (expand_builtin): Call targetm.expand_builtin
26218 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
26220 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26223 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
26225 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26228 * ipa-icf.c (set_local): New function.
26229 (sem_function::merge): Use it.
26231 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26233 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
26234 (add_type_duplicate): Fix comparison of BINFOs.
26236 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26238 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
26239 on getting VOID pointer.
26241 2015-02-09 Jakub Jelinek <jakub@redhat.com>
26244 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
26247 2015-02-09 Richard Biener <rguenther@suse.de>
26249 * genmatch.c (replace_id): Copy expr_type.
26251 2015-02-09 Richard Biener <rguenther@suse.de>
26253 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
26254 (streamer_write_tree_bitfields): Declare.
26255 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
26256 properly unpack padding.
26257 (unpack_value_fields): Inline ...
26258 (streamer_read_tree_bitfields): ... here.
26259 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
26260 and properly add padding bits.
26261 (streamer_pack_tree_bitfields): Fold into ...
26262 (streamer_write_tree_bitfields): ... this new function,
26263 exposing the bitpack object.
26264 * lto-streamer-out.c (lto_write_tree_1): Call
26265 streamer_write_tree_bitfields.
26267 2015-02-09 Richard Biener <rguenther@suse.de>
26269 PR tree-optimization/54000
26270 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
26271 (struct ivopts_data): Add loop_loc member.
26272 (tree_ssa_iv_optimize_loop): Dump loop location.
26273 (create_new_ivs): Likewise, also dump number of IVs generated.
26275 2015-02-09 Martin Liska <mliska@suse.cz>
26277 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
26278 just if not yet registered.
26279 (ipa_icf_generate_summary): Register callgraph hooks.
26281 2015-02-08 Andrew Pinski <apinski@cavium.com>
26283 * config/aarch64/aarch64.c (gty_dummy): Delete.
26285 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26288 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
26289 (cgraph_node::local_p): Remove thunk related FIXME.
26291 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26294 * i386.c (ix86_function_regparm): Look through aliases to see if callee
26295 is local and optimized.
26296 (ix86_function_sseregparm): Likewise; also use target's SSE math
26297 settings; error out instead of silently generating wrong code
26299 (init_cumulative_args): Look through aliases.
26301 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26304 * ipa-split.c (execute_split_functions): Split if function has aliases.
26306 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26309 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
26310 aliases before trying to expand it.
26311 (cgraph_node::expand_thunk): Fix formating.
26313 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
26315 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
26316 (Using Assembly Language with C): Expand introduction.
26317 (Basic Asm): Copy-edit. Add more information about uses of
26319 (Extended Asm): Copy-edit. Document new escape syntax and
26321 (Global Reg Vars): Copy-edit.
26322 (Local Reg Vars): Likewise.
26324 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
26328 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
26329 (DBX_CONTIN_CHAR): Define.
26331 2015-02-06 Sebastian Pop <s.pop@samsung.com>
26332 Brian Rzycki <b.rzycki@samsung.com>
26334 PR tree-optimization/64878
26335 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
26336 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
26337 Stop recursion at loop phi nodes after having visited a loop phi node.
26339 2015-02-06 Jakub Jelinek <jakub@redhat.com>
26341 * toplev.c (process_options): Change flag_ipa_ra before creating
26342 optimization_{default,current}_node.
26345 * cgraphunit.c (cgraph_node::expand_thunk): If
26346 restype is not is_gimple_reg_type nor the thunk_fndecl
26347 returns aggregate_value_p, set restmp to a temporary variable
26348 instead of resdecl.
26350 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
26352 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
26354 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26357 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
26358 add a general secondary reload handler for SDmode, unless we have
26359 both read/write support for SDmode.
26361 2015-02-06 Jakub Jelinek <jakub@redhat.com>
26363 PR middle-end/64937
26364 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
26365 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
26366 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
26367 1 before, push it to abstract_vec.
26368 (dwarf2out_abstract_function): Adjust caller. Don't call
26369 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
26370 DECL_ABSTRACT_P flags for all abstract_vec elts.
26372 2015-02-06 Renlin Li <renlin.li@arm.com>
26374 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
26376 * tree-ssa.c (execute_update_addresses_taken): Likewise.
26378 2015-02-06 Jeff Law <law@redhat.com>
26381 * config/h8300/h8300.c (push): New argument "in_prologue".
26382 Pass "in_prologue" along to "F".
26383 (h8300_push_pop): Corresponding changes.
26384 (h8300_expand_prologue): Likewise.
26385 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
26387 2015-02-06 Jakub Jelinek <jakub@redhat.com>
26389 PR rtl-optimization/64957
26391 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
26392 IOR rather than for AND.
26394 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
26397 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
26398 of shift-add and (add + shift) operations. Rename local variable.
26400 2015-02-05 Jeff Law <law@redhat.com>
26403 * config/h8300/constraints.md (U): Correctly dectect
26404 "eightbit_data" memory addresses.
26405 * config/h8300/h8300.c (eightbit_constant_address_p): Also
26406 handle (const (plus (symbol_ref (x)))) where x is declared
26407 as an 8-bit data memory address.
26408 * config/h8300/h8300.md (call, call_value): Correctly detect
26409 "funcvec" functions.
26412 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
26413 24 to 28 bits for the H8/300.
26415 2015-02-06 Alan Modra <amodra@gmail.com>
26418 * config/rs6000/rs6000.c (chain_already_loaded): New function.
26419 (rs6000_call_aix): Use it.
26421 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
26423 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
26426 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
26428 * config/h8300/constraints.md ("U" constraint): Use strict
26429 variant of REG_OK_FOR_BASE_P after reload has started.
26431 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
26433 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
26434 define to zero if !TARGET_NEON.
26435 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
26437 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26438 Trevor Saunders <tsaunders@mozilla.com>
26441 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
26443 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26446 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
26447 when removing varpool nodes.
26449 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26452 * varpool.c (varpool_node::remove): Fix order of variables.
26454 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26457 * ipa-inline.c (inline_small_functions): Fix ordering issue between
26458 speculation resolution and key updates.
26460 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26462 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
26463 about not letting any speculative edges unupdated.
26465 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26468 * gcov-io.c (gcov_var): Export.
26470 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26472 PR middle-end/64922
26473 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
26474 edges that become speculative.
26476 2015-02-04 Jakub Jelinek <jakub@redhat.com>
26478 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
26479 or DW_LANG_Fortran08.
26480 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
26482 (gen_compile_unit_die): Handle "GNU Fortran2003" and
26483 "GNU Fortran2008" language strings.
26484 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
26485 * langhooks.h (lang_GNU_Fortran): New prototype.
26486 * langhooks.c (lang_GNU_Fortran): New function.
26487 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
26490 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
26492 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
26493 (RTX_OK_FOR_OLO10_P): Likewise.
26495 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
26497 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
26499 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26501 PR middle-end/64922
26502 * gimple.c: Include gimple-ssa.h.
26503 (maybe_remove_unused_call_args): New function.
26504 * gimple.h (maybe_remove_unused_call_args): Declare.
26505 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
26506 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
26507 * gimple-fold.c (gimple_fold_call): Likewise.
26509 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
26511 PR rtl-optimization/64905
26512 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
26513 pointer alignment if it isn't needed.
26515 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
26517 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
26518 cortex-a72.cortex-a53.
26519 * config/aarch64/aarch64-tune.md: Regenerate.
26520 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
26522 2015-02-04 Nick Clifton <nickc@redhat.com>
26524 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
26527 2015-02-04 Jakub Jelinek <jakub@redhat.com>
26529 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
26530 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
26531 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
26533 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
26534 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
26535 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
26536 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
26537 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
26538 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
26539 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
26540 * tree-core.h (enum built_in_function): In between
26541 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
26542 for builtins that use DEF_BUILTIN_CHKP macro.
26544 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
26547 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
26548 operands for tcc_comparison exprs. Fix typos.
26551 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
26552 of two XORs that have an intervening AND or IOR.
26555 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
26556 simplification of XOR of AND to not allocate new rtx before
26557 committing to a simplification.
26559 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26561 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
26562 manual swaps in all peepholes.
26564 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26566 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
26567 of manual swapping implementation.
26568 (aarch64_expand_vec_perm_const_1): Likewise.
26570 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
26572 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
26573 (generic_addrcost_table): Remove NAMED_PARAM.
26574 (cortexa57_addrcost_table): Likewise.
26575 (xgene1_addrcost_table): Likewise.
26576 (generic_regmove_table): Likewise.
26577 (cortexa53_regmove_table): Likewise.
26578 (xgene1_regmove_table): Likewise.
26579 (generic_vector_table): Likewise.
26580 (cortexa57_vector_table): Likewise.
26581 (xgene1_vector_table): Likewise.
26582 (generic_tunings): Likewise.
26583 (cortexa53_tunings): Likewise.
26584 (cortexa57_tunings): Likewise.
26585 (xgene1_tunings): Likewise.
26587 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
26589 * config/arm/arm-cores.def: Add cortex-a72 and
26590 cortex-a72.cortex-a53.
26591 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
26592 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
26593 * config/arm/arm-tune.md: Regenerate.
26594 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
26595 "cortex-a72.cortex-a53".
26596 * doc/invoke.texi (ARM Options/-mtune): Likewise.
26598 2015-02-04 Nick Clifton <nickc@redhat.com>
26601 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
26603 (nonimmediate_di_operand): Likewise.
26605 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
26606 prefixes of known F5 using MSP430 MCUs.
26608 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26610 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
26611 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
26612 instead of __builtin_sqrt.
26614 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
26616 * varasm.c (do_assemble_alias): Follow transparent alias
26618 (default_assemble_visibility): Follow transparent alias
26619 chain for decl name.
26621 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
26623 PR middle-end/62103
26624 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
26625 to compute size of referenced value in the constant case.
26627 2015-02-03 Jakub Jelinek <jakub@redhat.com>
26629 PR rtl-optimization/64756
26630 * cse.c (invalidate_dest): New function.
26631 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
26632 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
26633 invalidate and do not record it.
26635 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
26638 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
26639 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
26640 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
26641 atomic_nand<mode>_soft_tcb): New insns.
26642 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
26643 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
26644 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
26645 Split into atomic_not_fetchsi_hard if operands[0] is unused.
26646 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
26647 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
26648 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
26649 atomic_not<mode>_hard if operands[0] is unused.
26650 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
26651 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
26652 if operands[0] is unused.
26653 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
26654 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
26655 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
26656 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
26658 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
26659 into atomic_not<mode>_soft_tcb if operands[0] is unused.
26660 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
26661 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
26662 if operands[0] is unused.
26663 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
26664 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
26665 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
26666 atomic_nand_fetchsi_hard if operands[0] is unused.
26667 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
26668 atomic_nand<mode>_hard if operands[0] is unused.
26669 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
26670 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
26671 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
26672 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
26673 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
26674 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
26675 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
26676 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
26677 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
26678 atomic_not<mode>_hard if operands[0] is unused.
26679 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
26680 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
26682 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
26683 into atomic_not<mode>_soft_tcb if operands[0] is unused.
26684 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
26685 atomic_nand<mode>_hard if operands[0] is unused.
26686 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
26687 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
26689 2015-02-03 David Malcolm <dmalcolm@redhat.com>
26692 * Makefile.in (GCC_OBJS): Add gcc-main.o.
26693 * gcc-main.c: New file, containing "main" taken from gcc.c.
26694 * gcc.c (do_self_spec): Free decoded_options.
26695 (class driver): Move declaration to gcc.h.
26696 (main): Move declaration and implementation to new file
26698 (driver_get_configure_time_options): New function.
26699 * gcc.h (class driver): Move this declaration here, from
26701 (driver_get_configure_time_options): New declaration.
26703 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
26705 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
26706 cross-module inlining.
26707 * cgraph.h (cgraph_node): Add flag merged.
26708 * ipa-icf.c (sem_function::merge): Maintain it.
26710 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
26712 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
26713 instead of OBJECT_P.
26715 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
26718 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
26719 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
26720 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
26721 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
26723 2015-02-03 Jakub Jelinek <jakub@redhat.com>
26726 * combine.c (reg_n_sets_max): New variable.
26727 (can_change_dest_mode, reg_nonzero_bits_for_combine,
26728 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
26729 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
26730 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
26731 (rest_of_handle_combine): Initialize reg_n_sets_max.
26733 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
26735 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
26736 if some always_inline was inlined, apply changes before inlining
26739 2015-02-02 David Malcolm <dmalcolm@redhat.com>
26742 * config/arm/arm.c (arm_option_override): Set
26743 arm_selected_arch/cpu/tune to NULL on entry.
26745 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
26746 Andrew Pinski <pinskia@gcc.gnu.org>
26747 Jakub Jelinek <jakub@gcc.gnu.org>
26750 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
26751 integer typing for small model. Use IN_RANGE.
26753 2015-02-02 Richard Biener <rguenther@suse.de>
26755 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
26756 * tree-vrp.c (vrp_valueize_1): Likewise.
26758 2015-02-02 Alan Modra <amodra@gmail.com>
26760 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
26761 than mem for toc_restore.
26762 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
26763 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
26764 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
26766 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
26769 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
26770 explicit default options.
26772 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
26775 * ipa-utils.c (ipa_merge_profiles): Add release argument.
26776 * ipa-icf.c (sem_function::merge): Do not release body when merging.
26777 * ipa-utils.h (ipa_merge_profiles): Update prototype.
26779 2015-02-01 Jakub Jelinek <jakub@redhat.com>
26782 * cfgexpand.c (deep_ter_debug_map): New variable.
26783 (avoid_deep_ter_for_debug): New function.
26784 (expand_debug_expr): If TERed SSA_NAME is in
26785 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
26786 instead of trying to expand SSA_NAME's def stmt.
26787 (expand_debug_locations): When expanding debug bind
26788 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
26789 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
26791 (pass_expand::execute): Call avoid_deep_ter_for_debug on
26792 all debug bind stmts. Delete deep_ter_debug_map after
26793 expand_debug_location if non-NULL and clear it.
26795 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
26798 * config/sh/sync.md (atomic_fetch_notsi_hard,
26799 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
26800 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
26801 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
26802 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
26803 atomic_not_fetch<mode>_soft_imask): New insns.
26805 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26807 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
26808 (rank_for_schedule_debug): Split from ...
26809 (rank_for_schedule): ... this.
26810 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
26811 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
26813 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26815 * doc/md.texi (Machine Constraints): Alphabetize table by target.
26816 * doc/extend.texi (x86 Variable Attributes): Move section to
26817 correct alphabetization after renaming.
26818 (x86 Type Attributes): Likewise.
26819 (Target Builtins): Re-alphabetize menu.
26820 (x86 Built-in Functions): Move section to correct alphabetization
26822 (x86 transactional memory intrinsics): Likewise.
26823 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
26824 and x86 Windows Options in table and menu.
26825 (x86 Options): Move section to correct alphabetization after
26827 (x86 Windows Options): Likewise.
26829 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26831 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
26832 preferred names of the architecture and its 32- and 64-bit
26834 * doc/invoke.texi: Likewise.
26835 * doc/md.texi: Likewise.
26837 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26840 * config/i386/predicates.md (address_no_seg_operand): Reject
26841 non-CONST_INT_P operands in invalid mode.
26843 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26845 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
26846 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
26847 * config/i386/predicates.md (address_no_seg_operand): Call
26848 address_operand with VOIDmode.
26849 (vsib_address_operand): Ditto.
26850 (address_mpx_no_base_operand): Ditto.
26851 (address_mpx_no_index_operand): Ditto.
26853 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26856 * lra-constraints.c (original_subreg_reg_mode): New.
26857 (simplify_operand_subreg): Try to simplify subreg of const. Use
26858 original_subreg_reg_mode for it.
26859 (swap_operands): Update original_subreg_reg_mode.
26860 (curr_insn_transform): Set up original_subreg_reg_mode.
26862 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26865 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
26867 (process_alt_operands): Use it.
26868 (curr_insn_transform): Check the optional reload pseudo class is
26871 2015-01-30 Joseph Myers <joseph@codesourcery.com>
26873 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
26874 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
26876 * toplev.h (init_asm_output): Update comment on use of
26877 UNKNOWN_LOCATION with fatal_error.
26878 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
26879 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
26880 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
26881 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
26882 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
26883 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
26884 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
26885 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
26886 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
26887 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
26888 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
26889 fatal_error changed to pass input_location as first argument.
26891 2015-01-30 Martin Liska <mliska@suse.cz>
26893 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
26894 in #pragma GCC diagnostic guards.
26896 2015-01-30 Richard Biener <rguenther@suse.de>
26898 PR tree-optimization/64829
26899 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
26900 not add a widening conversion pattern but hand off extra
26901 widenings to callers.
26902 (vect_recog_widen_mult_pattern): Handle extra widening produced
26903 by vect_handle_widen_op_by_const.
26904 (vect_recog_widen_shift_pattern): Likewise.
26905 (vect_pattern_recog_1): Remove excess vertical space in dumping.
26906 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
26907 (vect_init_vector_1): Likewise.
26908 (vect_get_vec_def_for_operand): Likewise.
26909 (vect_finish_stmt_generation): Likewise.
26910 (vectorizable_load): Likewise.
26911 (vect_analyze_stmt): Likewise.
26912 (vect_is_simple_use): Likewise.
26914 2015-01-29 Jeff Law <law@redhat.com>
26916 * combine.c (try_combine): Fix typo in comment.
26918 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
26921 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
26922 (rs6000_stack_info): Add assert.
26923 (rs6000_output_savres_externs): New function, split off from...
26924 (rs6000_output_function_prologue): ... here. Do not call it for
26927 2015-01-29 Jeff Law <law@redhat.com>
26930 * combine.c (try_combine): If I0 is a memory load and I3 a store
26931 to a related address, increase the "goodness" of doing a 4-insn
26932 combination with I0-I3.
26933 (make_field_assignment): Handle SUBREGs in the ior+and case.
26935 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
26937 PR tree-optimization/64746
26938 * tree-if-conv.c (mask_exists): New function.
26939 (predicate_mem_writes): Save created mask with given size for further
26941 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
26942 (ifcvt_repair_bool_pattern): Collect all statements that are root
26943 of bool pattern and use iterative algorithm to remove multiple uses
26944 of predicates, display number of required iterations.
26946 2015-01-29 Richard Biener <rguenther@suse.de>
26948 PR tree-optimization/64853
26949 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
26950 stmt will get simulated again.
26951 * tree-ssa-ccp.c (valueize_op_1): Likewise.
26953 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26955 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
26956 return_in_pc. Remove redundant assignments.
26957 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
26958 (arm_expand_epilogue): Don't compare boolean with true in if condition.
26960 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
26962 * config/i386/i386.c (ix86_mode_after): Make static.
26964 2015-01-29 Richard Biener <rguenther@suse.de>
26966 PR tree-optimization/64844
26967 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
26968 dump cost model analysis.
26969 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26970 Do not register adjusted load/store costs here.
26972 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26973 Uros Bizjak <ubizjak@gmail.com>
26975 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
26976 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
26977 using x86_use_pseudo_pic_reg.
26978 * config/i386/i386.c (ix86_conditional_register_usage): Remove
26979 support for fixed PIC register.
26980 (ix86_use_pseudo_pic_reg): Not static any more.
26982 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26984 PR middle-end/64805
26985 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
26986 to avoid error in cgraph node verification.
26988 2015-01-29 Marek Polacek <polacek@redhat.com>
26990 * doc/standards.texi: Reflect that the default for C is gnu11.
26992 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
26995 * reorg.c (switch_text_sections_between_p): New function.
26996 (relax_delay_slots): Call it when testing if the jump insn
26997 is removable. Use targetm.can_follow_jump when testing if
26998 the conditional branch can follow an unconditional jump.
27000 2015-01-27 Caroline Tice <cmtice@google.com>
27002 Committing VTV Cywin/Ming patch for Patrick Wollgast
27003 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
27004 if -fvtable-verify=preinit/std is used.
27005 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
27006 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
27007 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
27008 if -fvtable-verify=preinit/std is used.
27009 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
27010 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
27011 if -fvtable-verify=preinit/std is used.
27012 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
27013 * config/i386/mingw32.h (LIB_SPEC): Likewise.
27014 * varasm.c (assemble_variable): Add code to properly set the comdat
27015 section and name for the .vtable_map_vars section in case the
27016 target is PE or COFF.
27018 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
27021 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
27022 make sane BB profile.
27023 (cgraph_node::expand_thunk): Make sane BB profile.
27024 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
27025 * cgraph.h (init_lowered_empty_function): Update prototype.
27026 * config/i386/i386.c (make_resolver_func): Update call.
27027 * predict.c (gate): Disable branch prediction pass if
27028 profile is already there.
27030 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
27032 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
27033 * opth-gen.awk: Likewise.
27034 * common.opt: Mark flag_fp_contract_mode as Optimization.
27036 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
27038 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
27039 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
27041 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
27044 * config/sh/predicates.md (atomic_arith_operand,
27045 atomic_logical_operand): Remove.
27046 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
27047 (atomic_arith_operand_0): New predicate.
27048 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
27049 Use atomic_arith_operand_0 for input values.
27050 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
27051 atomic_compare_and_swap<mode>_soft_gusa,
27052 atomic_compare_and_swap<mode>_soft_tcb,
27053 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
27054 arith_reg_operand instead of register_operand.
27055 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
27056 atomic_arith_operand_0 for newval input.
27057 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
27058 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
27059 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
27060 arith_reg_operand instead of register_operand.
27061 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
27062 fetchop_predicate_1, fetchop_constraint_1_llcs,
27063 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
27064 fetchop_constraint_1_imask): New code iterator attributes.
27065 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
27066 register_operand. Use fetchop_predicate_1.
27067 (atomic_fetch_<fetchop_name>si_hard,
27068 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
27069 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
27070 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
27071 and arith_reg_operand instead of register_operand. Use
27072 fetchop_predicate_1, fetchop_constraint_1_gusa.
27073 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
27074 and arith_reg_operand instead of register_operand. Use
27075 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
27077 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
27078 and arith_reg_operand instead of register_operand. Use
27079 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
27081 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
27082 register_operand. Use atomic_logical_operand_1.
27083 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
27084 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
27085 arith_reg_operand instead of register_operand.
27086 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
27087 Use arith_reg_dest and arith_reg_operand instead of register_operand.
27088 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
27089 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
27090 register_operand. Use fetchop_predicate_1.
27091 (atomic_<fetchop_name>_fetchsi_hard,
27092 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
27093 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
27094 fetchop_constraint_1_llcs.
27095 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
27096 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
27097 fetchop_constraint_1_gusa.
27098 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
27099 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
27100 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
27101 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
27102 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
27103 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
27104 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
27105 register_operand. Use atomic_logical_operand_1.
27106 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
27107 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
27108 arith_reg_operand instead of register_operand.
27109 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
27110 arith_reg_operand instead of register_operand. Use logical_operand
27111 and K08. Adjust asm sequence to allow R0 usage.
27112 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
27113 arith_reg_operand instead of register_operand. Use logical_operand
27116 2015-01-28 Jakub Jelinek <jakub@redhat.com>
27119 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
27120 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
27121 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
27122 only get_full_len HOST_WIDE_INTs from get_val () array rather than
27123 all bits in *val_wide.
27125 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
27127 * varpool.c (tls_model_names): Fix names.
27128 (varpool_node::dump): Dump tls- prefix for tls models.
27130 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
27131 Bernd Schmidt <bernds@codesourcery.com>
27132 Nathan Sidwell <nathan@codesourcery.com>
27134 * config/nvptx/mkoffload.c: New file.
27135 * config/nvptx/t-nvptx: Add build rules for it.
27136 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
27137 (extra_programs): Add mkoffload.
27138 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
27140 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
27142 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
27144 PR middle-end/64809
27145 * cfgexpand.c (reorder_operands): Skip debug gimples.
27147 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
27149 PR tree-optimization/64277
27150 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
27151 range info when possible to refine estimation.
27153 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
27155 PR tree-optimization/64718
27156 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
27157 be a 16bit unsigned integer when n->range is 16.
27158 (bswap_replace): Convert src to that type if necessary for all bswap
27159 sizes. Fix rotation right notation in nearby comment. Use bswap_type
27160 set in pass_optimize_bswap::execute ().
27162 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
27164 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
27165 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
27166 integer and floating point variants.
27167 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
27169 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
27171 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
27172 for all vector modes.
27174 2015-01-28 Jakub Jelinek <jakub@redhat.com>
27177 * doc/sourcebuild.texi (comdat_group): Document.
27179 2015-01-28 Terry Guo <terry.guo@arm.com>
27181 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
27183 2015-01-27 David Malcolm <dmalcolm@redhat.com>
27185 * toplev.c (print_version): Add param "show_global_state", and
27186 only print GGC and plugin information if it is true.
27187 (init_asm_output): Pass in "true" for the new param when calling
27189 (process_options): Likewise.
27190 (toplev::main): Likewise.
27191 * toplev.h (print_version): Add new param to decl.
27193 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
27197 * tree.c (lookup_binfo_at_offset): New function.
27198 (get_binfo_at_offset): Use it.
27200 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
27203 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
27204 on vtable being vtable.
27206 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
27208 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
27209 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
27210 -mhotpatch= option.
27211 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
27212 -mno-hotpatch options. Change syntax of -mhotpatch= option.
27213 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
27215 (s390_hotpatch_trampoline_halfwords_max): Renamed.
27216 (s390_hotpatch_hw_max): New name.
27217 (s390_hotpatch_trampoline_halfwords): Renamed.
27218 (s390_hotpatch_hw_before_label): New name.
27219 (get_hotpatch_attribute): Removed.
27220 (s390_hotpatch_hw_after_label): New name.
27221 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
27223 (s390_attribute_table): Ditto.
27224 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
27225 (s390_function_num_hotpatch_hw): New name.
27226 Remove special handling of inline functions and hotpatching.
27227 Return number of nops before and after the function label.
27228 (s390_can_inline_p): Removed.
27229 (s390_asm_output_function_label): Emit a configurable number of nops
27230 after the function label.
27231 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
27232 (TARGET_CAN_INLINE_P) Removed.
27233 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
27235 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27236 Jiong Wang <jiong.wang@arm.com>
27238 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
27240 (cb<optab><mode>1): Likewise.
27241 * config/aarch64/iterators.md (bcond): New define_code_attr.
27243 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27245 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
27248 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27250 * config/s390/s390.c (s390_register_move_cost): Increase costs for
27253 2015-01-27 Richard Biener <rguenther@suse.de>
27255 * tree-vrp.c (update_value_range): Intersect the range with
27256 old recorded SSA name range information.
27258 2015-01-27 Nick Clifton <nickc@redhat.com>
27260 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
27261 BC, DE and HL registers directly, not via AX.
27262 When decrementing the stack pointer by a large amount, transfer SP
27263 into AX and perform the subtraction there.
27264 (rl78_expand_epilogue): Perform the inverse of the above
27267 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27269 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
27271 2015-01-27 Jakub Jelinek <jakub@redhat.com>
27272 Yury Gribov <y.gribov@samsung.com>
27275 * ubsan.c (ubsan_source_location): Refactor code.
27276 (ubsan_type_descriptor): Update type size. Refactor code.
27278 2015-01-27 Richard Biener <rguenther@suse.de>
27280 PR tree-optimization/56273
27281 PR tree-optimization/59124
27282 PR tree-optimization/64277
27283 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
27284 from the first VRP pass.
27286 2015-01-27 Jakub Jelinek <jakub@redhat.com>
27289 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
27290 handle the first argument in the same loop as all the other arguments.
27292 PR rtl-optimization/61058
27293 * jump.c (cleanup_barriers): Update basic block boundaries
27294 if BLOCK_FOR_INSN is non-NULL on PREV.
27296 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
27298 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
27299 bounds narrowing, already instrumented calls and calls to
27300 not instrumentable functions.
27302 2015-01-27 Jakub Jelinek <jakub@redhat.com>
27304 PR tree-optimization/64807
27305 * wide-int.cc (wi::divmod_internal): Clear
27306 b_dividend[dividend_blocks_needed].
27308 2015-01-26 DJ Delorie <dj@redhat.com>
27310 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
27311 volatile memory references.
27313 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
27316 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
27318 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
27319 shifts if it already fits into K08.
27321 2015-01-26 Jakub Jelinek <jakub@redhat.com>
27324 * ipa-inline.c (inline_small_functions): Print "unknown" even
27325 if edge->call_stmt is non-NULL, but has builtins or unknown
27328 PR middle-end/64421
27329 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
27330 with asterisk, skip the first character.
27332 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
27335 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
27338 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
27341 * config/i386/i386.md (*movdi_internal): Also check operand 0
27342 to determine TYPE_LEA operand.
27343 (*movsi_internal): Ditto.
27345 2015-01-26 Jakub Jelinek <jakub@redhat.com>
27347 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
27348 OPTION_MASK_QUAD_MEMORY_ATOMIC.
27350 2015-01-26 Renlin Li <renlin.li@arm.com>
27352 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
27354 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
27357 2015-01-26 Richard Biener <rguenther@suse.de>
27359 PR middle-end/64764
27360 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
27361 combining two BIT_AND_EXPR predicates.
27363 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
27366 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
27368 2015-01-26 Terry Guo <terry.guo@arm.com>
27370 * config/arm/arm.c (arm_file_start): Update the assignment of
27371 Tag_ABI_HardFP_use.
27373 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
27375 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
27377 config/arm/arm.md: Include the new Cortex-A57 model.
27378 (generic_sched): Don't use generic_sched when tuning for
27381 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
27382 Uros Bizjak <ubizjak@gmail.com>
27384 * config/i386/i386.c (get_builtin_code_for_version): Add
27385 support for BMI and BMI2 multiversion functions.
27387 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27389 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
27390 (extract_bit_field): Likewise.
27391 (extract_low_bits): Likewise.
27392 (expand_mult): Likewise.
27393 (expand_mult_highpart_adjust): Likewise.
27395 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
27397 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
27398 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
27399 * config/i386/i386.c (processor_model): Add
27400 M_INTEL_COREI7_BROADWELL.
27401 (arch_names_table): Add "broadwell".
27403 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
27412 * config/sh/sh-protos.h
27413 (sh_extending_set_of_reg::can_use_as_unextended_reg,
27414 sh_extending_set_of_reg::use_as_unextended_reg,
27415 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
27416 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
27417 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
27418 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
27419 (sh_treg_insns): New class.
27420 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
27421 (scope_counter): New class.
27422 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
27423 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
27424 sh_extending_set_of_reg::can_use_as_unextended_reg,
27425 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
27426 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
27427 sh_split_treg_set_expr): New functions.
27428 (addsubcosts): Handle treg_set_expr.
27429 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
27430 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
27431 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
27432 (sh_insn_operands_modified_between_p): Make non-static.
27433 * config/sh/predicates.md (zero_extend_movu_operand): Allow
27434 simple_mem_operand in addition to displacement_mem_operand.
27435 (zero_extend_operand): Don't allow zero_extend_movu_operand.
27436 (treg_set_expr, treg_set_expr_not_const01,
27437 arith_reg_or_treg_set_expr): New predicates.
27438 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
27439 arith_or_int_operand instead of logical_operand. Convert to
27440 insn_and_split. Try to optimize constant operand in splitter.
27441 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
27442 (*tstqi_t_zero): Delete.
27443 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
27444 (tstsi_t_and_not): Delete.
27445 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
27446 Convert to insn_and_split.
27447 (unnamed split, tstsi_t_zero_extract_xor,
27448 tstsi_t_zero_extract_subreg_xor_little,
27449 tstsi_t_zero_extract_subreg_xor_big): Delete.
27450 (*tstsi_t_shift_mask): New insn_and_split.
27451 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
27452 to recombine with surrounding insns when splitting.
27453 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
27454 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
27455 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
27456 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
27457 (*cbranch_div0s: Delete.
27458 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
27459 Try to recombine with surrounding insns when splitting. Add operand
27461 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
27462 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
27463 *addc_r_r_msb, *addc_2r_msb): Delete.
27464 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
27466 (*addc_negreg_t): New insn_and_split.
27467 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
27468 Try to recombine with surrounding insns when splitting.
27469 Add operand order variants.
27470 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
27471 insn_and_split patterns.
27472 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
27473 surrounding insns when splitting.
27474 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
27475 (*rotcl): Likewise. Add zero_extract variant.
27476 (*ashrsi2_31): New insn_and_split.
27477 (*negc): Convert to insn_and_split. Use treg_set_expr.
27478 (*zero_extend<mode>si2_disp_mem): Update comment.
27479 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
27481 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
27482 with surrounding insns when splitting.
27483 (any_treg_expr_to_reg): New insn_and_split.
27484 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
27485 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
27486 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
27487 *zero_extract_2): New single bit zero extract patterns.
27488 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
27489 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
27490 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
27491 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
27493 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
27494 register_operand for set source.
27496 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
27498 * i386.opt (prefetch_sse): New targetsave.
27499 * i386.c (ix86_function_specific_save): Save prefetch_sse.
27500 (ix86_function_specific_restore): Restore prefetch_sse and initialize
27501 ix86_cost/ix86_tune_cost.
27503 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27505 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
27506 Support the JIT by using 0 as the language type.
27508 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
27511 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
27512 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
27513 (mark_regno_live, process_bb_lives): Pass new parameter value to
27514 make_hard_regno_born.
27516 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27518 PR rtl-optimization/63637
27519 PR rtl-optimization/60663
27520 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
27521 if elt->cost is MAX_COST for ASM_OPERANDS.
27522 (find_sets_in_insn): Fix up comment typo.
27523 (cse_insn): Don't set src_volatile for all non-volatile
27524 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
27525 or with "memory" clobber. Set elt->cost to MAX_COST
27526 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
27527 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
27529 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
27531 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
27534 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
27536 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
27537 libgcc/config/i386/elf-lib.h.
27539 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27542 * gcc.c (print_configuration): Don't print a blank line at the end
27544 (run_attempt): ... but here unstead.
27546 PR middle-end/64734
27547 * omp-low.c (scan_sharing_clauses): Don't ignore
27548 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
27549 on target data/update constructs.
27551 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
27554 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
27555 (DEBUG_RELOAD): Removed define.
27556 (m32c_limit_reload_class): Enable traces with if DEBUG0.
27557 (m32c_function_arg): Added a type cast.
27558 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
27559 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
27560 * config/m32c/bitops.md (andqi3_16): Likewise.
27561 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
27562 (push_a01_l): Likewise.
27564 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27567 * main.c (main): Construct toplev instances with init_signals=true.
27568 * toplev.c (general_init): Add param "init_signals", and use it to
27569 conditionalize the calls to signal and host_hooks.extra_signals.
27570 (toplev::toplev): Add param "init_signals".
27571 (toplev::main): When invoking general_init, pass m_init_signals
27572 to control whether signal-handlers are installed.
27573 * toplev.h (toplev::toplev): Add param "init_signals".
27574 (toplev::m_init_signals): New field.
27576 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27579 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
27580 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
27581 latter may be affected by the former (e.g. on i686).
27583 2015-01-23 Martin Liska <mliska@suse.cz>
27585 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
27586 false positive during profiledbootstrap.
27588 2015-01-23 Tom de Vries <tom@codesourcery.com>
27591 * lto-opts.c (lto_write_options): Output non-explicit conservative
27593 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
27594 (append_compiler_options): Pass -fopenacc through.
27596 2015-01-23 Tom de Vries <tom@codesourcery.com>
27599 * lto-opts.c (lto_write_options): Output non-explicit conservative
27601 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
27602 (append_compiler_options): Pass -fopenmp through.
27604 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27607 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
27610 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
27611 * diagnostic.def (DK_ICE_NOBT): New kind.
27612 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
27613 like DK_ICE, but never print backtrace.
27614 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
27615 (internal_error_no_backtrace): New function.
27616 * gcc.c (execute): Use internal_error_no_backtrace instead of
27619 2015-01-22 Jeff Law <law@redhat.com>
27622 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
27623 improve code density for small immediate to memory case.
27624 (insv): Better handle bitfield assignments when the field is
27625 being set to all ones.
27626 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
27629 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27630 Jakub Jelinek <jakub@redhat.com>
27632 PR middle-end/64729
27633 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
27634 for !TARGET_LIBC_PROVIDES_SSP version and
27635 -fstack-protector-{all,strong,explicit} otherwise.
27636 * config/freebsd.h (LINK_SSP_SPEC): Handle
27637 -fstack-protector-{strong,explicit}.
27639 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
27640 H.J. Lu <hongjiu.lu@intel.com>
27643 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
27646 2015-01-22 Wei Mi <wmi@google.com>
27648 PR rtl-optimization/64557
27649 * dse.c (record_store): Call get_addr for mem_addr.
27650 (check_mem_read_rtx): Likewise.
27652 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
27654 * fold-const.c (const_binop): Add early return for non-tcc_binary.
27656 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
27658 * toplev.c (init_local_tick): Process the failure when read
27659 fails for random_seed.
27661 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
27662 'pretty_name' to avoid memory overflow.
27664 2015-01-22 Richard Biener <rguenther@suse.de>
27666 PR middle-end/64728
27667 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
27668 abnormal coalescing on undefined SSA names.
27670 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
27674 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
27676 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
27678 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
27680 PR middle-end/63325
27681 * fold-const.c (fold_checksum_tree): Don't include value of
27682 expr->decl_with_vis.symtab_node in the checksum.
27684 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27686 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
27688 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
27691 * gcc.c (insert_comments): New function.
27692 (try_generate_repro): Call it.
27693 (append_text): Removed.
27695 2015-01-22 Richard Biener <rguenther@suse.de>
27697 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
27698 with IL incompatible options. Properly honor user optimize
27701 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
27703 PR rtl-optimization/64682
27704 * combine.c (distribute_notes): When moving a death note for
27705 a register that is set in the new I2, make sure to put it
27706 before that new I2.
27708 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
27710 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
27711 not TARGET_DEFAULT.
27713 2015-01-21 Jakub Jelinek <jakub@redhat.com>
27716 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
27717 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
27718 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
27721 * doc/invoke.texi (-fsanitize=vptr): Document.
27723 PR rtl-optimization/62078
27724 * dse.c: Include cfgcleanup.h.
27725 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
27726 anything call purge_all_dead_edges and cleanup_cfg at the end
27729 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
27731 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
27734 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
27736 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
27739 2015-01-21 David Sherwood <david.sherwood@arm.com>
27740 Tejas Belagod <Tejas.Belagod@arm.com>
27742 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
27743 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
27744 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
27747 2015-01-21 David Sherwood <david.sherwood@arm.com>
27748 Tejas Belagod <Tejas.Belagod@arm.com>
27750 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
27751 (aarch64_reverse_mask): New decls.
27752 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
27753 (insn_count): New mode_attr.
27754 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
27755 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
27756 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
27757 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
27758 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
27759 (aarch64_simd_st4): New patterns.
27760 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
27761 (aarch64_reverse_mask): New functions.
27763 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
27765 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
27767 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
27768 addressing modes for BE.
27769 (aarch64_print_operand): Add 'R' specifier.
27770 (aarch64_simd_disambiguate_copy): Delete.
27771 (aarch64_simd_emit_reg_reg_move): New function.
27772 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
27773 in define_splits for structural moves.
27774 (mov<mode>): Use less restrictive predicates.
27775 (*aarch64_mov<mode>): Simplify and only allow for LE.
27776 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
27778 2015-01-21 Alan Hayward <alan.hayward@arm.com>
27780 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
27782 2015-01-21 Richard Henderson <rth@redhat.com>
27785 * ccmp.c (used_in_cond_stmt_p): Remove.
27786 (expand_ccmp_expr): Don't use it.
27788 2015-01-21 Nick Clifton <nickc@redhat.com>
27790 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
27793 2015-01-21 Richard Biener <rguenther@suse.de>
27795 PR middle-end/64313
27796 * tree-core.h (builtin_info, builtin_info_type): Turn from
27797 an object with two arrays into an array of an object with
27798 decl and two flags, implicit_p and declared_p.
27799 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
27800 set_builtin_decl, set_builtin_decl_implicit_p,
27801 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
27802 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
27803 * builtins.c (builtin_info): Adjust.
27804 * gimplify.c (gimplify_addr_expr): References to builtins
27805 that have been declared by the user makes them eligible for
27806 use by the compiler. Call set_builtin_decl_implicit_p on them.
27808 2015-01-20 Jeff Law <law@redhat.com>
27811 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
27812 allow pc-relative addresses in operand predicates or constraints.
27814 2015-01-21 Bin Cheng <bin.cheng@arm.com>
27816 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
27817 neon on aarch32 processors for stringops.
27819 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27822 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
27824 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27827 * ipa-inline.c: Include lto-streamer.h
27828 (report_inline_failed_reason): Output source file differences and
27829 flags on optimization/target node mismatch.
27830 (can_inline_edge_p): Consider caller to be the outer inline function;
27831 be less restrictive about matching opimize and optimize_size attributes.
27832 (inline_account_function_p): Break out from ...
27833 (inline_small_functions): ... here.
27834 * ipa-inline-transform.c (clone_inlined_nodes): Use
27835 inline_account_function_p.
27836 (inline_call): Use optimize attribution; use inline_account_function_p.
27837 (inline_transform): Use opt_for_fn.
27838 * ipa-inline.h (inline_account_function_p): Declare.
27840 2015-01-20 Jakub Jelinek <jakub@redhat.com>
27843 * dwarf2out.c (decl_piece_node): Don't put bitsize into
27844 mode if bitsize <= 0.
27845 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
27846 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
27847 sizes and positions.
27849 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
27851 * config/nios2/nios2.c (nios2_asm_file_end): Implement
27852 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
27854 (TARGET_ASM_FILE_END): Define.
27856 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27858 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
27859 (struct tune_params): Use the enum.
27860 * arm.c (arm_*_tune): Update.
27861 (arm_option_override): Update.
27863 2015-01-20 Richard Biener <rguenther@suse.de>
27866 * ipa-reference.c (add_static_var): Inline ...
27867 (analyze_function): ... here after splitting out from ...
27868 (is_proper_for_analysis): ... this.
27870 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
27873 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
27874 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
27875 replace the conditional with it's true branch.
27876 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
27877 (arm_lra_p): Remove.
27879 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
27881 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
27883 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27885 * config/tilegx/mul-tables.c: Move symtab.h include after
27886 coretypes.h include.
27887 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
27888 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
27889 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
27890 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
27891 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27893 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
27897 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27899 PR rtl-optimization/64081
27900 * loop-iv.c (def_pred_latch_p): New function.
27901 (latch_dominating_def): Allow specific cases with non-single
27903 (iv_get_reaching_def): Likewise.
27904 (check_complex_exit_p): New function.
27905 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27906 with exits not executing on any iteration.
27908 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27911 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
27912 to set branch cost.
27914 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27917 * i386.c (gate): Check flag_expensive_optimizations and
27919 (ix86_option_override_internal): Drop optimize_size condition
27920 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
27921 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
27922 MASK_PREFER_AVX128.
27923 (ix86_avx256_split_vector_move_misalign,
27924 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
27925 * sse.md (all uses of TARGET_PREFER_AVX128): Add
27926 optimize_insn_for_speed_p check.
27928 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
27930 * config/mips/mips.h (FP_ASM_SPEC): New define.
27931 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
27934 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
27937 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
27938 nullptr for insn when reaching the first insn.
27939 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
27940 (sh_insn_operands_modified_between_p): Add nullptr check.
27941 (sh_find_extending_set_of_reg): Fix log message. Don't accept
27942 sign extending mem load if the insn contains any UNSPEC or
27945 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27947 * params.def (inline-unit-growth): Drop to 15%.
27948 * invoke.texi (inline-unit-growth): Document change.
27950 2015-01-19 Martin Liska <mliska@suse.cz>
27953 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
27954 function for second argument of OBJ_TYPE_REF.
27956 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27959 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
27960 whether function is an alias.
27962 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27964 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
27967 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
27969 PR rtl-optimization/64671
27970 * lra-remat.c (operand_to_remat): Don't consider jump and call
27973 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
27976 * config/rs6000/default64.h: Include rs6000-cpus.def.
27977 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
27978 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
27979 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
27981 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
27983 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
27984 pseudo-op to specify assembler dialect.
27986 2015-01-19 Martin Liska <mliska@suse.cz>
27989 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
27990 Handle safe potentially removed nodes during filtering.
27992 2015-01-19 Martin Liska <mliska@suse.cz>
27994 * doc/extend.texi (no_icf): Add new attribute description.
27995 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
27996 where the pass attempts to merge a function with no_icf attribute.
27998 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28001 * doc/md.texi (ARM Options): Document register constraints.
28003 2015-01-19 Jiong Wang <jiong.wang@arm.com>
28004 Andrew Pinski <apinski@cavium.com>
28007 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
28008 (ashl<mode>3): Don't expand if operands[2] is not constant.
28010 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28013 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
28014 Match xor-and-xor RTL pattern.
28016 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
28018 PR rtl-optimization/64081
28019 * loop-iv.c (def_pred_latch_p): New function.
28020 (latch_dominating_def): Allow specific cases with non-single
28022 (iv_get_reaching_def): Likewise.
28023 (check_complex_exit_p): New function.
28024 (check_simple_exit): Use check_complex_exit_p to allow certain cases
28025 with exits not executing on any iteration.
28027 2015-01-19 Jakub Jelinek <jakub@redhat.com>
28029 * common.opt (fgraphite): Fix a typo.
28031 2015-01-19 Felix Yang <felix.yang@huawei.com>
28033 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
28035 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
28036 uminp, smax_nanp, smin_nanp): New builtins.
28037 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
28038 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
28039 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
28040 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
28041 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
28042 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
28043 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
28044 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
28045 vpminnms_f32): Rewrite using builtin functions.
28047 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
28050 * omp-low.c (offload_symbol_decl): Remove variable.
28051 (get_offload_symbol_decl): Remove function.
28052 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
28053 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
28054 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
28055 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
28056 BUILT_IN_GOACC_UPDATE don't pass it at all.
28058 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
28060 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
28063 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
28065 * ipa-chkp.c (chkp_produce_thunks): Add early param
28066 to split thunks production into two passes. Keep
28067 'always_inline' function bodies after the first pass.
28068 (pass_data_ipa_chkp_early_produce_thunks): New.
28069 (pass_ipa_chkp_early_produce_thunks): New.
28070 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
28071 chkp_produce_thunks signature.
28072 (make_pass_ipa_chkp_early_produce_thunks): New.
28073 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
28074 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
28075 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
28077 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
28079 * cgraph.c (cgraph_node::dump): Dump profile flags.
28081 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
28084 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
28085 reg appear first in the parallel.
28087 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
28089 * ipa-reference.c (set_reference_optimization_summary,
28090 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
28092 (ignore_module_statics): New static var.
28093 (propagate_bits): If ipa-reference is disabled, do not look into local
28095 (analyze_function): Disable analysis when ipa_reference is disabled.
28096 (generate_summary): Do not dump when reference is disabled;
28097 collect vars accessed from functions with ipa-reference disabled.
28098 (get_read_write_all_from_node): When ipa-reference is disabled, use the
28100 (gate): Enable for LTO.
28101 (ignore_edge_p): New function.
28102 (propagate): Skip functions w/o ipa-reference analysis.
28103 * optc-save-gen.awk: Handle optimize_debug correctly.
28104 * opth-gen.awk: Likewise.
28105 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
28106 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
28107 fira-share-save-slots, fira-share-spill-slots,
28108 fmodulo-sched-allow-regmoves, fpartial-inlining,
28109 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
28110 ftracer, ftree-parallelize-loops, fassociative-math,
28111 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
28113 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
28114 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
28116 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
28119 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
28122 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
28124 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
28126 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
28128 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
28129 Remove duplicate option listings.
28131 2015-01-18 Felix Yang <felix.yang@huawei.com>
28133 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
28134 (autofdo_source_profile::get_callsite_total_count,
28135 function_instance::get_function_instance_by_decl,
28136 string_table::get_index, string_table::get_index_by_decl,
28137 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
28138 Fix comment typos. Reformatting and minor code rearrangement.
28140 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
28142 * config/rs6000/rs6000.md (probe_stack): Delete.
28143 (probe_stack_address): New.
28145 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
28147 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
28148 to test for 32-bit ABIs, not !TARGET_POWERPC64.
28150 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
28152 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
28153 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
28154 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
28156 (rs6000_libcall_value): Use the new function.
28158 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
28160 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
28162 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
28164 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
28165 implement a more precise life analysis for it during backward scan.
28167 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
28169 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
28171 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
28173 PR rtl-optimization/52773
28174 * calls.c (emit_library_call_value): When pushing arguments use
28175 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
28176 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
28177 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
28179 2015-01-17 Jeff Law <law@redhat.com>
28181 PR rtl-optimization/32790
28182 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
28183 not ZERO_EXTEND in SET_DESTs.
28185 2015-01-17 Alan Modra <amodra@gmail.com>
28187 * cprop.c (do_local_cprop): Revert last change.
28189 2015-01-16 DJ Delorie <dj@redhat.com>
28190 Nick Clifton <nickc@redhat.com>
28192 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
28193 (addhi3_real): Likewise. Fix [HL+0] syntax.
28194 (subqi3_real): Likewise.
28195 (subhi3_real): Likewise.
28196 (cbranchqi4_real): Likewise. Allow saddr,#imm.
28197 (cbranchhi4_real): Likewise.
28198 (cbranchhi4_real_inverted): Likewise.
28199 (cbranchsi4_real_lt): Likewise.
28200 (cbranchsi4_real_ge): Likewise.
28201 (cbranchsi4_real_ge): Likewise.
28202 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
28203 (sub<mode>3_virt): Likewise.
28204 (cbranchqi4_virt): Likewise.
28205 (cbranchhi4_virt): Likewise.
28206 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
28207 always use '[reg+imm]' even when imm is zero.
28208 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
28209 (rl78_general_operand): New.
28210 (rl78_nonimmediate_operand): New.
28211 (rl78_nonfar_operand): Use them.
28212 (rl78_nonfar_nonimm_operand): Likewise.
28213 (rl78_stack_based_mem): Fix.
28214 * config/rl78/constraints.md (Ibqi): New.
28219 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
28220 (iorqi3): Likewise.
28221 (xorqi3): Likewise.
28222 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
28224 * config/rl78/constrains (Qs8): New constraint.
28225 * config/rl78/rl78.c (rl78_flags_already_set): New function.
28226 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
28227 * config/rl78/rl78-real.md (update_Z): New attribute.
28228 Update patterns to set it.
28229 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
28230 shorter compare and branch sequence can be used.
28231 (cbranchhi4_real): Likewise.
28232 (cbranchhi4_real_inverted): Likewise.
28234 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
28235 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
28237 * config/rl78/rl78.c (rl78_get_name_encoding): New.
28238 (rl78_option_override): Allow -mes0 only if C.
28239 (characterize_address): Support subregs of symbol_refs.
28240 (rl78_addr_space_address_mode): Move. Add __near.
28241 (rl78_far_p): Likewise.
28242 (rl78_addr_space_pointer_mode): Likewise.
28243 (rl78_as_legitimate_address): Likewise.
28244 (rl78_addr_space_subset_p): Likewise.
28245 (rl78_addr_space_convert): Likewise.
28246 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
28247 symbols with -mes0.
28248 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
28250 (rl78_alloc_physical_registers_op1): Change logic to prefer
28251 symbol[BC] addressing.
28252 (frodata_section): New.
28253 (rl78_asm_init_sections): Initialize it.
28254 (rl78_select_section): Put __far readonly symbols in .frodata.
28255 (rl78_make_type_far): New.
28256 (rl78_insert_attributes): Force all readonly symbols to be
28258 (rl78_asm_out_integer): New.
28259 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
28260 * config/rl78/rl78.opt (-mes0): New.
28262 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
28263 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
28264 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
28265 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
28266 (rl78_saddr_p): New.
28267 (rl78_output_aligned_common): New.
28268 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
28269 (rl78_handle_saddr_attribute): New.
28270 (rl78_handle_naked_attribute): New.
28271 (rl78_attribute_table): Add saddr.
28272 (rl78_print_operand_1): Don't print '!' on saddr operands.
28273 (rl78_print_operand_1): Strip encodings.
28275 (rl78_strip_name_encoding): New.
28276 (rl78_attrlist_to_encoding): New.
28277 (rl78_encode_section_info): New.
28278 (rl78_asm_init_sections): New.
28279 (rl78_select_section): New.
28280 (rl78_output_labelref): New.
28281 (rl78_output_aligned_common): New.
28282 (rl78_asm_out_integer): New.
28283 (rl78_asm_ctor_dtor): New.
28284 (rl78_asm_constructor): New.
28285 (rl78_asm_destructor): New.
28287 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
28288 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
28289 (transcode_memory_rtx): Update.
28290 (rl78_expand_epilogue): Use A_REG instead of 0.
28292 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28294 * config/arm/arm-protos.h (struct tune_params): New field
28295 sched_autopref_queue_depth.
28296 * config/arm/arm.c (sched-int.h): Include header.
28297 (arm_first_cycle_multipass_dfa_lookahead_guard,)
28298 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
28299 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
28300 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
28301 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
28302 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
28303 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
28304 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
28305 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
28306 * config/arm/t-arm (arm.o): Update.
28307 * haifa-sched.c (update_insn_after_change): Update.
28308 (rank_for_schedule): Use auto-prefetcher model, if requested.
28309 (autopref_multipass_init): New static function.
28310 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
28311 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
28312 variable for debug dumps.
28313 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
28314 (autopref_multipass_dfa_lookahead_guard): New global function that
28315 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
28316 (init_h_i_d): Update.
28317 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
28318 * sched-int.h (enum autopref_multipass_data_status): New const enum.
28319 (autopref_multipass_data_): Structure for auto-prefetcher data.
28320 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
28321 (struct _haifa_insn_data:autopref_multipass_data): New field.
28322 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
28323 (autopref_multipass_dfa_lookahead_guard): Declare.
28325 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28327 * rtlanal.c (get_base_term): Handle SCRATCH.
28329 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28331 * config/aarch64/aarch64.c
28332 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
28333 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
28335 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
28336 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
28338 2015-01-17 Alan Modra <amodra@gmail.com>
28340 * cprop.c (do_local_cprop): Disallow replacement of fixed
28343 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28346 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
28349 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
28351 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
28352 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
28354 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28356 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
28357 * config/arm/thumb1.md: ... Here.
28359 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28361 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
28362 TImode for TARGET_32BIT.
28364 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28366 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
28367 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
28369 (rs6000_abi_word_mode): New function.
28371 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28373 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
28374 instead of UNITS_PER_WORD to describe the size of stack slots.
28376 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28378 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
28379 as rs6000_promote_function_mode. Move comment to there.
28380 (rs6000_promote_function_mode): New function.
28382 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28384 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
28385 -mpowerpc64 is active.
28387 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
28389 PR middle-end/64353
28390 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
28393 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
28395 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
28396 introduced in revision 219724.
28398 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28399 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28402 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
28403 destination is not a GP reg.
28404 (*movdi_aarch64): Likewise.
28406 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
28409 * config/rs6000/default64.h: Revert ISA change.
28411 2015-01-16 Richard Biener <rguenther@suse.de>
28413 PR middle-end/64614
28414 * tree-ssa-uninit.c: Include tree-cfg.h.
28415 (MAX_SWITCH_CASES): New define.
28416 (convert_control_dep_chain_into_preds): Handle switch statements.
28417 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
28418 (normalize_one_pred_1): Do not split bit-manipulations.
28421 2015-01-16 Richard Biener <rguenther@suse.de>
28423 PR tree-optimization/64568
28424 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
28425 complex load rewriting for TARGET_MEM_REFs.
28427 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
28429 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
28431 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
28434 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
28436 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
28437 (aarch64_lra_p): Remove.
28439 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
28442 * ipa-chkp.h (chkp_instrumentable_p): New.
28443 * ipa-chkp.c: Include tree-inline.h.
28444 (chkp_instrumentable_p): New.
28445 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
28446 Fix processing of not instrumentable functions.
28447 (chkp_versioning): Use chkp_instrumentable_p. Warn about
28448 not instrumentable functions.
28449 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
28450 chkp_instrumentable_p.
28451 * tree-inline.h (copy_forbidden): New.
28452 * tree-inline.c (copy_forbidden): Not static anymore.
28454 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28456 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
28459 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
28461 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
28462 type OP_OUT to OP_INOUT.
28464 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
28466 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
28467 (high x) y) to y if x and y have the same base.
28469 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
28471 * config/arm/cortex-a57.md: New.
28472 * config/aarch64/aarch64.md: Include it.
28473 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
28474 * config/aarch64/aarch64-tune.md: Regenerate.
28476 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
28479 * ccmp.c (expand_ccmp_next): New function.
28480 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
28481 and compare insn sequence.
28482 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
28483 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
28484 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
28485 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
28486 (*ccmp_ior): Changed to ccmp_ior<mode>.
28487 (cmp<mode>): New pattern.
28488 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
28490 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
28492 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
28494 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
28495 _mm256_bsrli_epi128): New.
28496 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
28498 2015-01-15 Jiong Wang <jiong.wang@arm.com>
28500 * expmed.c (store_bit_field_using_insv): Improve warning message.
28501 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
28503 2015-01-15 Jiong Wang <jiong.wang@arm.com>
28505 PR rtl-optimization/64011
28506 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
28507 there is partial overflow.
28509 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28511 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
28513 (nds32_expand_epilogue_v3pop): Likewise.
28514 * config/nds32/nds32.md (sibcall): Define this for sibling call
28516 (sibcall_register): Likewise.
28517 (sibcall_immediate): Likewise.
28518 (sibcall_value): Likewise.
28519 (sibcall_value_register): Likewise.
28520 (sibcall_value_immediate): Likewise.
28521 (sibcall_epilogue): Likewise.
28522 (epilogue): Pass false to indicate this is not a sibcall epilogue.
28523 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
28524 (nds32_expand_epilogue_v3pop): Likewise.
28526 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28528 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
28529 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
28530 (return_internal): New.
28531 (return): Define this named pattern.
28532 (simple_return): Define this named pattern.
28533 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
28534 pattern instead of unspec_volatile_func_return.
28535 (nds32_expand_epilogue_v3pop): Likewise.
28536 (nds32_can_use_return_insn): New function.
28538 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28540 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
28541 * config/nds32/nds32.md (pop25return): New.
28542 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
28543 pop25return pattern.
28545 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28547 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
28548 -mforbid-fp-as-gp, and -mex9 options.
28550 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28552 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
28553 remove -mgp-direct option.
28555 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28557 * doc/invoke.texi (--param early-inlining-insns): Update default value.
28558 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
28560 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28562 * ipa-inline.c (inline_small_functions): Work around hints
28565 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
28568 * doc/invoke.texi (Option Summary): Document new Nios II
28570 (Nios II Options): Likewise.
28571 * config/nios2/nios2.opt: Add -mgpopt= option support.
28572 Modify existing -mgpopt and -mno-gpopt options to be aliases.
28573 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
28574 * config/nios2/nios2.c (nios2_option_override): Adjust
28575 -mgpopt defaulting.
28576 (nios2_in_small_data_p): Return true for explicit small data
28577 sections even with -G0.
28578 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
28581 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28584 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
28586 (inline_call): Fix removal of aliases.
28588 2015-01-15 Jakub Jelinek <jakub@redhat.com>
28590 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
28591 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
28592 * opts.c (common_handle_option): Add -fsanitize=vptr.
28593 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
28594 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
28595 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
28596 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
28597 (ubsan_expand_vptr_ifn): New prototype.
28598 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
28599 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
28600 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
28601 expand_LOOP_VECTORIZED): Make argument nameless, remove
28603 (expand_UBSAN_VPTR): New function.
28604 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
28606 (UBSAN_VPTR): New internal function.
28607 * sanopt.c (tree_map_traits): Renamed to ...
28608 (sanopt_tree_map_traits): ... this.
28609 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
28610 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
28611 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
28612 (maybe_optimize_ubsan_vptr_ifn): New function.
28613 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
28614 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
28616 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
28617 internal calls like pure functions for aliasing, even when they
28618 have other side-effects that prevent making them ECF_PURE.
28619 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
28620 (ubsan_expand_vptr_ifn): New function.
28622 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
28624 PR rtl-optimization/64110
28625 * stmt.c (parse_output_constraint): Process '^' and '$'.
28626 (parse_input_constraint): Ditto.
28627 * lra-constraints.c (process_alt_operands): Process the new
28629 * ira-costs.c (record_reg_classes): Process the new constraint
28631 * genoutput.c (indep_constraints): Add '^' and '$'.
28632 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
28633 * doc/md.texi: Add description of the new constraints.
28635 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
28636 Bernd Schmidt <bernds@codesourcery.com>
28637 Cesar Philippidis <cesar@codesourcery.com>
28638 James Norris <jnorris@codesourcery.com>
28639 Tom de Vries <tom@codesourcery.com>
28640 Ilmir Usmanov <i.usmanov@samsung.com>
28641 Dmitry Bocharnikov <dmitry.b@samsung.com>
28642 Evgeny Gavrin <e.gavrin@samsung.com>
28643 Jakub Jelinek <jakub@redhat.com>
28645 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
28646 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28647 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28648 New function types.
28649 * builtins.c: Include "gomp-constants.h".
28650 (expand_builtin_acc_on_device): New function.
28651 (expand_builtin, is_inexpensive_builtin): Handle
28652 BUILT_IN_ACC_ON_DEVICE.
28653 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
28655 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
28657 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
28658 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
28659 i386/intelmic-offload.h.
28660 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
28661 to libgomp and its dependencies.
28662 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
28663 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28664 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28665 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28666 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28667 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28668 * doc/generic.texi: Update for OpenACC changes.
28669 * doc/gimple.texi: Likewise.
28670 * doc/invoke.texi: Likewise.
28671 * doc/sourcebuild.texi: Likewise.
28672 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
28673 GF_OMP_FOR_KIND_OACC_LOOP.
28674 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
28675 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
28676 GF_OMP_TARGET_KIND_OACC_UPDATE,
28677 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
28679 * gimple.c: Update comments for OpenACC changes.
28680 * gimple.def: Likewise.
28681 * gimple.h: Likewise.
28682 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
28683 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
28684 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
28685 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
28686 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
28688 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
28689 * gimplify.c: Include "gomp-constants.h".
28690 Update comments for OpenACC changes.
28691 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
28692 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
28693 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
28694 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
28695 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
28696 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
28697 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
28698 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
28699 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
28701 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
28702 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
28703 OMP_CLAUSE_SET_MAP_KIND.
28704 (gimplify_oacc_cache): New function.
28705 (gimplify_omp_for): Handle OACC_LOOP.
28706 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
28708 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
28709 OACC_EXIT_DATA, OACC_UPDATE.
28710 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
28711 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
28712 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
28713 (gimplify_body): Consider flag_openacc next to flag_openmp.
28714 * lto-streamer-out.c: Include "gomp-constants.h".
28715 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
28716 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
28717 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
28718 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
28719 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
28720 (BUILT_IN_ACC_ON_DEVICE): New builtins.
28721 * omp-low.c: Include "gomp-constants.h".
28722 Update comments for OpenACC changes.
28723 (struct omp_context): Add reduction_map, gwv_below, gwv_this
28725 (extract_omp_for_data, use_pointer_for_field, install_var_field)
28726 (new_omp_context, delete_omp_context, scan_sharing_clauses)
28727 (create_omp_child_function, scan_omp_for, scan_omp_target)
28728 (check_omp_nesting_restrictions, lower_reduction_clauses)
28729 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
28730 Update for OpenACC changes.
28731 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
28732 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
28733 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
28734 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
28735 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
28736 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
28738 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
28739 Handle GF_OMP_FOR_KIND_OACC_LOOP.
28740 (expand_omp_target, lower_omp_target): Handle
28741 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
28742 GF_OMP_TARGET_KIND_OACC_UPDATE,
28743 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
28744 GF_OMP_TARGET_KIND_OACC_DATA.
28745 (pass_expand_omp::execute, execute_lower_omp)
28746 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
28748 (offload_symbol_decl): New variable.
28749 (oacc_get_reduction_array_id, oacc_max_threads)
28750 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
28751 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
28752 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
28753 (oacc_gimple_assign, oacc_initialize_reduction_data)
28754 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
28756 (is_targetreg_ctx): Remove function.
28757 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
28758 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
28759 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
28760 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
28761 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
28762 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
28763 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
28764 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
28765 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
28766 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
28767 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
28768 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
28769 * tree-core.h: Update comments for OpenACC changes.
28770 (enum omp_clause_map_kind): Remove.
28771 (struct tree_omp_clause): Change type of map_kind member from enum
28772 omp_clause_map_kind to unsigned char.
28773 * tree-inline.c: Update comments for OpenACC changes.
28774 * tree-nested.c: Likewise. Include "gomp-constants.h".
28775 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
28776 (convert_tramp_reference_stmt, convert_gimple_call): Update for
28777 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
28778 OMP_CLAUSE_SET_MAP_KIND.
28779 * tree-pretty-print.c: Include "gomp-constants.h".
28780 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
28781 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
28782 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
28783 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
28784 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
28785 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
28786 instead of OMP_CLAUSE_MAP_*.
28787 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
28788 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
28789 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
28790 * tree-streamer-in.c: Include "gomp-constants.h".
28791 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
28792 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
28793 * tree-streamer-out.c: Include "gomp-constants.h".
28794 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
28796 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
28797 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
28798 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
28799 * tree.c (omp_clause_num_ops): Update accordingly.
28800 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
28802 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
28803 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
28804 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
28805 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
28806 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
28807 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
28808 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
28809 (OMP_CLAUSE_SET_MAP_KIND): New macro.
28810 * varpool.c (varpool_node::get_create): Consider flag_openacc next
28812 * config/i386/intelmic-offload.h: New file.
28813 * config/nvptx/offload.h: Likewise.
28815 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28817 * explow.h: Remove duplicate contents.
28818 * dojump.h: Likewise.
28820 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
28822 * arm.c (arm_xgene_tune): Add default initializer for instruction
28825 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28829 * ipa.c (symbol_table::remove_unreachable_nodes):
28830 Do not put abstract origins into boundary.
28832 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
28834 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
28835 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
28837 2015-01-15 Steve Ellcey <sellcey@mips.com>
28839 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
28840 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
28841 builtins.def, and chkp-builtins.def.
28843 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
28845 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
28848 2015-01-15 Richard Biener <rguenther@suse.de>
28850 PR tree-optimization/61743
28851 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
28852 information on PHIs for some simple cases.
28854 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28856 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
28858 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
28859 * config/arm/arm-cores.def (xgene1): New entry.
28860 * config/arm/arm-tables.opt: Regenerate.
28861 * config/arm/arm-tune.md: Regenerate.
28862 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
28864 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
28866 * tree-if-conv.c: Include hash-map.h.
28867 (aggressive_if_conv): New variable.
28868 (fold_build_cond_expr): Add simplification of non-zero condition.
28869 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
28870 destination block is not always executed.
28871 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
28872 than two predecessors if AGGRESSIVE_IF_CONV is true.
28873 (if_convertible_stmt_p): Fix commentary.
28874 (all_preds_critical_p): New function.
28875 (has_pred_critical_p): New function.
28876 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
28877 BB can have more than two predecessors and all incoming edges can be
28879 (predicate_bbs): Skip predication for loop exit block, use build2_loc
28880 to compute predicate for true edge.
28881 (find_phi_replacement_condition): Delete this function.
28882 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
28883 Allow interchange PHI arguments if EXTENDED is false.
28884 Change check that block containing reduction statement candidate
28885 is predecessor of phi-block since phi may have more than two arguments.
28886 (phi_args_hash_traits): New helper structure.
28887 (struct phi_args_hash_traits): New type.
28888 (phi_args_hash_traits::hash): New function.
28889 (phi_args_hash_traits::equal_keys): New function.
28890 (gen_phi_arg_condition): New function.
28891 (predicate_scalar_phi): Add handling of phi nodes with more than two
28892 arguments, delete COND and TRUE_BB arguments, insert body of
28893 find_phi_replacement_condition to predicate ordinary phi nodes.
28894 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
28895 delete call of find_phi_replacement_condition and invoke
28896 predicate_scalar_phi with two arguments.
28897 (insert_gimplified_predicates): Add assert that non-predicated block
28898 don't have statements to insert.
28899 (ifcvt_split_critical_edges): New function.
28900 (ifcvt_split_def_stmt): Likewise.
28901 (ifcvt_walk_pattern_tree): Likewise.
28902 (stmt_is_root_of_bool_pattern): Likewise.
28903 (ifcvt_repair_bool_pattern): Likewise.
28904 (ifcvt_local_dce): Likewise.
28905 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
28906 is copy of inner or outer loop force_vectorize field, invoke
28907 ifcvt_split_critical_edges, ifcvt_local_dce and
28908 ifcvt_repair_bool_pattern for aggressive if-conversion.
28910 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
28912 * config/aarch64/aarch64.md: Include xgene1.md.
28913 * config/aarch64/xgene1.md: New file.
28915 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28917 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
28918 xgene1 (APM XGene-1) core definition.
28919 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
28920 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
28921 * doc/invoke.texi: Document -mcpu=xgene1.
28923 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28925 * dojump.h: New header file.
28926 * explow.h: Likewise.
28927 * expr.h: Remove includes.
28928 Move expmed.c prototypes to expmed.h.
28929 Move dojump.c prototypes to dojump.h.
28930 Move alias.c prototypes to alias.h.
28931 Move explow.c prototypes to explow.h.
28932 Move calls.c prototypes to calls.h.
28933 Move emit-rtl.c prototypes to emit-rtl.h.
28934 Move varasm.c prototypes to varasm.h.
28935 Move stmt.c prototypes to stmt.h.
28936 (saved_pending_stack_adjust): Move to dojump.h.
28937 (adjust_address): Move to explow.h.
28938 (adjust_address_nv): Move to emit-rtl.h.
28939 (adjust_bitfield_address): Likewise.
28940 (adjust_bitfield_address_size): Likewise.
28941 (adjust_bitfield_address_nv): Likewise.
28942 (adjust_automodify_address_nv): Likewise.
28943 * explow.c (expr_size): Move to expr.c.
28944 (int_expr_size): Likewise.
28945 (tree_expr_size): Likewise.
28946 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28947 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28948 * genemit.c (main): Generate includes statistics.h, real.h,
28949 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
28951 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
28952 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
28953 explow.h, emit-rtl.h, stmt.h.
28954 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
28955 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
28956 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
28957 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
28958 emit-rtl.h, varasm.h, stmt.h.
28959 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
28960 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
28961 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
28962 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
28963 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
28964 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
28965 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
28966 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
28967 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
28968 tm.h tree.h varasm.h vec.h wide-int.h.
28969 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28970 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28971 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
28972 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
28973 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
28974 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
28975 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
28976 * loop-iv.c: Likewise.
28977 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
28978 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
28979 statistics.h stmt.h tree.h varasm.h wide-int.h.
28980 * lra-constraints.c: Likewise.
28981 * lra-eliminations.c: Likewise.
28982 * lra-lives.c: Likewise.
28983 * lra-remat.c: Likewise.
28984 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28985 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
28986 statistics.h stmt.h tree.h varasm.h wide-int.h.
28987 * hw-doloop.c: Likewise.
28988 * ira-color.c: Likewise.
28989 * ira-emit.c: Likewise.
28990 * loop-doloop.c: Likewise.
28991 * loop-invariant.c: Likewise.
28992 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28993 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
28994 statistics.h stmt.h tree.h varasm.h wide-int.h.
28995 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
28996 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
28997 statistics.h stmt.h tree.h varasm.h wide-int.h.
28998 * combine-stack-adj.c: Likewise.
29001 * ifcvt.c: Likewise.
29002 * ira-costs.c: Likewise.
29003 * jump.c: Likewise.
29004 * lra-coalesce.c: Likewise.
29005 * lra-spills.c: Likewise.
29006 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
29007 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
29008 stmt.h varasm.h wide-int.h.
29009 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
29010 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
29012 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
29013 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
29014 statistics.h stmt.h varasm.h wide-int.h.
29015 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
29016 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
29017 varasm.h wide-int.h.
29018 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
29019 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
29020 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
29021 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
29022 statistics.h stmt.h.
29023 * config/tilepro/tilepro.c: Likewise.
29024 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
29025 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
29026 * config/pdp11/pdp11.c: Likewise.
29027 * config/xtensa/xtensa.c: Likewise.
29028 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
29029 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
29031 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29032 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
29033 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
29034 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29035 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
29036 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
29037 * rtl-chkp.c: Likewise.
29038 * tree-chkp-opt.c: Likewise.
29039 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
29040 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
29041 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
29042 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29043 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
29044 statistics.h stmt.h.
29045 * tree-vect-data-refs.c: Likewise.
29046 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
29047 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
29048 rtl.h statistics.h stmt.h varasm.h.
29049 * internal-fn.c: Likewise.
29050 * ipa-icf-gimple.c: Likewise.
29051 * lto-section-out.c: Likewise.
29052 * tree-data-ref.c: Likewise.
29053 * tree-nested.c: Likewise.
29054 * tree-outof-ssa.c: Likewise.
29055 * tree-predcom.c: Likewise.
29056 * tree-pretty-print.c: Likewise.
29057 * tree-scalar-evolution.c: Likewise.
29058 * tree-ssa-strlen.c: Likewise.
29059 * tree-vect-loop.c: Likewise.
29060 * tree-vect-patterns.c: Likewise.
29061 * tree-vect-slp.c: Likewise.
29062 * tree-vect-stmts.c: Likewise.
29063 * tsan.c: Likewise.
29064 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29065 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
29067 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
29068 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
29069 statistics.h stmt.h varasm.h.
29070 * loop-unroll.c: Likewise.
29071 * ubsan.c: Likewise.
29072 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
29073 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
29075 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29076 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
29077 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
29078 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
29079 statistics.h stmt.h.
29080 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
29081 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
29082 statistics.h stmt.h varasm.h.
29083 * gimple-match-head.c: Likewise.
29084 * lto-cgraph.c: Likewise.
29085 * lto-section-in.c: Likewise.
29086 * lto-streamer-in.c: Likewise.
29087 * lto-streamer-out.c: Likewise.
29088 * tree-affine.c: Likewise.
29089 * tree-cfg.c: Likewise.
29090 * tree-cfgcleanup.c: Likewise.
29091 * tree-if-conv.c: Likewise.
29092 * tree-into-ssa.c: Likewise.
29093 * tree-ssa-alias.c: Likewise.
29094 * tree-ssa-copyrename.c: Likewise.
29095 * tree-ssa-dse.c: Likewise.
29096 * tree-ssa-forwprop.c: Likewise.
29097 * tree-ssa-live.c: Likewise.
29098 * tree-ssa-math-opts.c: Likewise.
29099 * tree-ssa-pre.c: Likewise.
29100 * tree-ssa-sccvn.c: Likewise.
29101 * tree-tailcall.c: Likewise.
29102 * tree-vect-generic.c: Likewise.
29103 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29104 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
29105 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29106 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
29107 * varasm.c: Likewise.
29108 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29109 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
29111 * init-regs.c: Likewise.
29113 * omp-low.c: Likewise.
29114 * stack-ptr-mod.c: Likewise.
29115 * tree-ssa-reassoc.c: Likewise.
29116 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29117 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
29119 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29120 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
29121 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29122 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
29123 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29124 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
29125 * tree-ssa-phiopt.c: Likewise.
29126 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29127 fixed-value.h hashtab.h real.h statistics.h stmt.h.
29128 * config/fr30/fr30.c: Likewise.
29129 * config/frv/frv.c: Likewise.
29130 * expr.c: Likewise.
29131 * final.c: Likewise.
29132 * optabs.c: Likewise.
29133 * passes.c: Likewise.
29134 * simplify-rtx.c: Likewise.
29135 * stmt.c: Likewise.
29136 * toplev.c: Likewise.
29137 * var-tracking.c: Likewise.
29138 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29139 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
29140 * lower-subreg.c: Likewise.
29141 * postreload-gcse.c: Likewise.
29143 * reginfo.c: Likewise.
29144 * store-motion.c: Likewise.
29145 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29146 fixed-value.h hashtab.h real.h stmt.h varasm.h.
29147 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29148 fixed-value.h hashtab.h statistics.h stmt.h.
29149 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29150 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
29151 * except.c: Likewise.
29152 * explow.c: Likewise.
29153 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29154 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
29156 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29157 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
29158 * tree-ssa-structalias.c: Likewise.
29159 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29160 fixed-value.h insn-config.h real.h statistics.h.
29161 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29162 fixed-value.h insn-config.h real.h statistics.h stmt.h.
29163 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29164 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
29165 * cfgbuild.c: Likewise.
29166 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29167 fixed-value.h real.h rtl.h statistics.h stmt.h.
29168 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29169 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
29170 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29171 fixed-value.h real.h statistics.h stmt.h.
29172 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29173 fixed-value.h real.h statistics.h stmt.h varasm.h.
29174 * cprop.c: Likewise.
29175 * modulo-sched.c: Likewise.
29176 * postreload.c: Likewise.
29177 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
29178 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
29179 statistics.h stmt.h varasm.h.
29180 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
29181 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
29182 rtl.h statistics.h stmt.h varasm.h.
29183 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
29184 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
29186 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
29187 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
29189 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
29190 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
29192 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
29193 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
29194 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
29195 function.h real.h statistics.h stmt.h varasm.h.
29196 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
29197 insn-config.h real.h statistics.h stmt.h.
29198 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
29199 statistics.h stmt.h.
29200 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
29201 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
29202 statistics.h stmt.h varasm.h.
29203 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
29204 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
29205 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
29206 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
29207 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
29208 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
29209 statistics.h stmt.h varasm.h.
29210 * ipa-polymorphic-call.c: Likewise.
29211 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
29212 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
29213 statistics.h stmt.h.
29214 * config/c6x/c6x.c: Likewise.
29215 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
29216 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
29217 statistics.h stmt.h varasm.h.
29218 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
29219 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
29221 * ipa-split.c: Likewise.
29222 * tree-eh.c: Likewise.
29223 * tree-ssa-dce.c: Likewise.
29224 * tree-ssa-loop-niter.c: Likewise.
29225 * tree-vrp.c: Likewise.
29226 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
29227 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
29229 * config/nds32/nds32-fp-as-gp.c: Likewise.
29230 * config/nds32/nds32-intrinsic.c: Likewise.
29231 * config/nds32/nds32-isr.c: Likewise.
29232 * config/nds32/nds32-md-auxiliary.c: Likewise.
29233 * config/nds32/nds32-memory-manipulation.c: Likewise.
29234 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
29235 * config/nds32/nds32-predicates.c: Likewise.
29236 * config/nds32/nds32.c: Likewise.
29237 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
29238 fixed-value.h hashtab.h real.h statistics.h.
29239 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
29240 fixed-value.h hashtab.h real.h statistics.h stmt.h.
29241 * config/arm/arm.c: Likewise.
29242 * config/avr/avr.c: Likewise.
29243 * config/bfin/bfin.c: Likewise.
29244 * config/h8300/h8300.c: Likewise.
29245 * config/i386/i386.c: Likewise.
29246 * config/ia64/ia64.c: Likewise.
29247 * config/iq2000/iq2000.c: Likewise.
29248 * config/m32c/m32c.c: Likewise.
29249 * config/m32r/m32r.c: Likewise.
29250 * config/m68k/m68k.c: Likewise.
29251 * config/mcore/mcore.c: Likewise.
29252 * config/mep/mep.c: Likewise.
29253 * config/mips/mips.c: Likewise.
29254 * config/mn10300/mn10300.c: Likewise.
29255 * config/moxie/moxie.c: Likewise.
29256 * config/pa/pa.c: Likewise.
29257 * config/rl78/rl78.c: Likewise.
29258 * config/rx/rx.c: Likewise.
29259 * config/s390/s390.c: Likewise.
29260 * config/sh/sh.c: Likewise.
29261 * config/sparc/sparc.c: Likewise.
29262 * config/spu/spu.c: Likewise.
29263 * config/stormy16/stormy16.c: Likewise.
29264 * config/v850/v850.c: Likewise.
29265 * config/vax/vax.c: Likewise.
29266 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
29267 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
29268 * config/msp430/msp430.c: Likewise.
29269 * predict.c: Likewise.
29270 * value-prof.c: Likewise.
29271 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
29272 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
29273 * config/microblaze/microblaze.c: Likewise.
29274 * config/nios2/nios2.c: Likewise.
29275 * config/rs6000/rs6000.c: Likewise.
29276 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
29277 insn-config.h real.h rtl.h statistics.h stmt.h.
29278 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
29279 insn-config.h real.h statistics.h stmt.h.
29280 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
29281 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
29282 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
29283 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
29284 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
29285 fixed-value.h real.h statistics.h stmt.h.
29286 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
29287 fixed-value.h statistics.h stmt.h.
29288 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
29291 2015-01-15 Jakub Jelinek <jakub@redhat.com>
29293 * gengtype.c (create_user_defined_type): Workaround
29294 -Wmaybe-uninitialized false positives.
29295 * cse.c (fold_rtx): Likewise.
29296 * loop-invariant.c (gain_for_invariant): Likewise.
29298 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
29300 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
29301 set the memory attributes in all cases but clear MEM_EXPR if need be.
29303 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
29305 PR tree-optimization/64434
29306 * cfgexpand.c (reorder_operands): New function.
29307 (expand_gimple_basic_block): Insert call of reorder_operands if
29310 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
29312 * config/mips/micromips.md (*swp): Remove explicit parallel.
29313 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
29314 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
29315 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
29316 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
29317 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
29318 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
29319 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
29320 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
29321 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
29322 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
29323 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
29324 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
29325 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
29326 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
29327 (mips_wrdsp): Likewise.
29328 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
29330 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
29331 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
29332 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
29333 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
29334 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
29335 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
29336 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
29337 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
29338 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
29340 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
29342 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
29343 (mips_print_operand): Support 'y' to print exact log2 in decimal
29345 * config/mips/mips.h (ISA_HAS_LSA): New define.
29346 (ISA_HAS_DLSA): Likewise.
29347 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
29348 * config/mips/predicates.md (const_immlsa_operand): New predicate.
29350 2015-01-15 Martin Liska <mliska@suse.cz>
29353 * optc-save-gen.awk: Add support for array types.
29355 2015-01-15 Richard Biener <rguenther@suse.de>
29357 PR middle-end/64365
29358 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
29359 for MEM_REF access functions with the same base can never partially
29362 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
29364 * common.opt: New option -fstack-protector-explicit.
29365 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
29366 (stack_protect_decl_phase): Handle stack_protect attribute for
29367 explicit stack protection requests.
29368 (expand_used_vars): Similarly.
29369 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
29370 * doc/extend.texi: Add documentation for "stack_protect" attribute.
29371 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
29373 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
29376 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
29378 (sh_extending_set_of_reg): New struct.
29379 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
29380 sh_remove_reg_dead_or_unused_notes): New Declarations.
29381 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
29382 sh_find_extending_set_of_reg, sh_split_tst_subregs,
29383 sh_extending_set_of_reg::use_as_extended_reg): New functions.
29384 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
29385 convert to insn_and_split and use new function sh_split_tst_subregs.
29387 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
29389 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
29391 (Optimization Options): Move -fuse-ld documentation to...
29392 (Link Options): ...here.
29394 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
29396 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
29398 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
29399 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
29400 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
29401 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
29402 instead of ZR for the memory operand of LL/SC.
29403 (compare_and_swap_12, sync_add<mode>): Likewise.
29404 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
29405 (sync_new_<optab>_12, sync_nand_12): Likewise.
29406 (sync_old_nand_12, sync_new_nand_12): Likewise.
29407 (sync_sub<mode>, sync_old_add<mode>): Likewise.
29408 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
29409 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
29410 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
29411 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
29412 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
29413 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
29414 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
29415 * doc/md.texi (ZC): Update description.
29417 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
29419 * builtins.c (expand_builtin_atomic_exchange): Remove error when
29420 memory model is CONSUME.
29421 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
29422 expand_builtin_atomic_store): Change invalid memory model errors to
29424 (expand_builtin_atomic_clear): Change invalid model errors to warnings
29425 and issue warning for CONSUME.
29427 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
29429 * lto-cgraph: Update function comments for
29430 lto_symtab_encoder_encode_*.
29432 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
29434 * Makefile.in (site.exp): Do not set ENABLE_LTO.
29436 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
29438 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
29439 * lto-cgraph.c (select_what_to_stream): Remove argument, use
29440 lto_stream_offload_p instead.
29441 * lto-streamer.h (select_what_to_stream): Remove argument.
29442 * passes.c (ipa_write_summaries): Likewise.
29443 * tree-pass.h (ipa_write_summaries): Likewise.
29445 2015-01-14 Richard Biener <rguenther@suse.de>
29447 PR tree-optimization/59354
29448 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
29449 groups larger than the slp group size as having gaps.
29451 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
29453 PR middle-end/59448
29454 * builtins.c (get_memmodel): Promote consume to acquire always.
29456 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
29459 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
29462 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
29465 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
29467 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
29468 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
29469 AVX512VBMI, as it implies AVX512BW.
29471 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
29474 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
29475 (vec_unpacks_hi_v16sf): Ditto.
29477 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29479 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
29482 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29484 * doc/invoke.texi (mapcs): Mention deprecation.
29485 (mapcs-frame): Likewise.
29487 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
29490 * config/arm/arm.c (callee_saved_reg_p): Define.
29491 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
29492 register is callee saved instead of !call_used_regs[reg].
29493 (thumb1_compute_save_reg_mask): Likewise.
29495 2015-01-14 Hale Wang <hale.wang@arm.com>
29497 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
29500 2015-01-14 Richard Biener <rguenther@suse.de>
29503 * tree-inline.c (insert_debug_decl_map): Check destination
29504 function MAY_HAVE_DEBUG_STMTS.
29505 (insert_init_debug_bind): Likewise.
29506 (insert_init_stmt): Remove redundant check.
29507 (remap_gimple_stmt): Drop debug stmts if the destination
29508 function has var-tracking assignments disabled.
29510 2015-01-14 Martin Liska <mliska@suse.cz>
29512 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
29513 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
29515 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29518 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
29519 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
29521 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
29523 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
29524 level from an ARCH; do not inject the default.
29525 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
29526 MIPS_ISA_LEVEL_SPEC.
29527 (MIPS_ISA_NAN2008_SPEC): Update comment.
29528 (BASE_DRIVER_SELF_SPECS): Likewise.
29529 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
29530 MIPS_DEFAULT_ISA_LEVEL_SPEC.
29531 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
29532 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
29533 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
29535 2015-01-14 Richard Biener <rguenther@suse.de>
29537 PR tree-optimization/64493
29538 PR tree-optimization/64495
29539 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
29540 assign the proper vectorized PHI to the inner loop exit PHIs.
29542 2015-01-14 Joey Ye <joey.ye@arm.com>
29544 * config/arm/arm.c (arm_compute_save_reg_mask):
29545 Do not save lr in case of tail call.
29546 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
29548 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
29550 * tree-vrp.c (check_array_ref): Emit more warnings
29551 for warn_array_bounds >= 2.
29552 * common.opt: New option -Warray-bounds=.
29553 * doc/invoke.texi: Document -Warray-bounds=.
29555 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
29557 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
29558 (mforbid-fp-as-gp): Remove.
29560 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
29561 (nds32_symbol_load_store_p): Remove.
29562 (nds32_fp_as_gp_check_available): Clean up implementation.
29563 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
29565 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
29566 fp-as-gp and ex9 cases.
29568 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29570 * tree-profile.c (init_ic_make_global_vars): Drop workaround
29571 for bintuils bug 14342.
29572 (init_ic_make_global_vars): Likewise.
29573 (gimple_init_edge_profiler): Likewise.
29574 (gimple_gen_ic_func_profiler): Likewise.
29576 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29578 * ipa-inline.c (inline_small_functions): Swap the operands in
29581 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29584 * ipa-inline-analysis.c (node_growth_cache): Remove.
29585 (initialize_growth_caches): Do not initialize it.
29586 (free_growth_caches): Do not free it.
29587 (do_estimate_growth): Rename to ...
29588 (estimate_growth): ... this one; drop growth cache code.
29589 (growth_likely_positive): Always go the heuristics way.
29590 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
29591 (reset_edge_caches): Do not reset node growth.
29592 (heap_edge_removal_hook): Do not maintain cache.
29593 (inline_small_functions): Likewise; strenghten sanity check.
29594 (ipa_inline): Do not maintain caches.
29595 * ipa-inline.h (node_growth_cache): Remove.
29596 (do_estimate_growth): Remove to ...
29597 (estimate_growth): this one; remove inline version.
29598 (reset_node_growth_cache): Remove.
29600 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29603 * ipa-inline.c (inline_small_functions): Update callee keys after
29604 resolving speculation
29605 (inline_small_functions): Always check monotonicity of the queue.
29607 2015-01-13 Marek Polacek <polacek@redhat.com>
29609 PR middle-end/64391
29610 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
29612 2015-01-13 Jakub Jelinek <jakub@redhat.com>
29614 PR rtl-optimization/64286
29615 * ree.c (combine_reaching_defs): Move part of comment earlier,
29616 remove !SCALAR_INT_MODE_P check.
29617 (add_removable_extension): Don't add vector mode
29618 extensions if all uses of the source register aren't the same
29621 2015-01-13 Renlin Li <renlin.li@arm.com>
29623 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
29624 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
29626 2015-01-13 Martin Liska <mliska@suse.cz>
29628 * ipa-icf.c (sem_function::equals_private): Call new functions
29629 cl_target_option_print_diff and cl_optimization_print_diff.
29630 * optc-save-gen.awk (cl_target_option_print_diff): New function.
29631 (cl_optimization_print_diff): Likewise.
29632 * opth-gen.awk: Likewise.
29634 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
29636 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
29637 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
29638 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
29639 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
29640 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
29641 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
29643 2015-01-13 Andrew Pinski <apinski@cavium.com>
29645 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
29646 instead of src mode.
29648 2015-01-13 Richard Biener <rguenther@suse.de>
29651 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
29654 2015-01-13 Andrew Pinski <apinski@cavium.com>
29656 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
29658 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
29660 2015-01-13 Jakub Jelinek <jakub@redhat.com>
29662 PR middle-end/63974
29663 * cfgexpand.c (expand_computed_goto): Don't call
29664 convert_memory_address here.
29666 2015-01-13 Richard Biener <rguenther@suse.de>
29668 PR tree-optimization/64406
29669 * tree-loop-distibution.c (pass_loop_distribution::execute):
29670 Reset the SCEV hashtable if we distributed anything.
29672 2015-01-13 Richard Biener <rguenther@suse.de>
29674 PR tree-optimization/64404
29675 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
29676 SLP types for CSEd loads.
29678 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29680 PR tree-optimization/64436
29681 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
29682 merge of two symbolic numbers for a bitwise OR to ...
29683 (perform_symbolic_merge): This. Also fix computation of the range and
29684 end of the symbolic number corresponding to the result of a bitwise OR.
29686 2015-01-13 Richard Biener <rguenther@suse.de>
29688 PR tree-optimization/64568
29689 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
29690 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
29692 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29694 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
29695 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
29697 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29699 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
29700 target-specific symbol_ref flag.
29701 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
29702 resides in rodata section.
29703 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
29704 (nds32_encode_section_info): New function.
29706 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29708 * config/nds32/nds32.md (call): Use pseudo instruction bal which
29709 clobbers TA_REGNUM if large code model is specified.
29710 (call_register): Likewise.
29711 (call_immediate): Likewise.
29712 (call_value): Likewise.
29713 (call_value_register): Likewise.
29714 (call_value_immediate): Likewise.
29716 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29718 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
29719 (TARGET_CMODEL_MEDIUM): New macro.
29720 (TARGET_CMODEL_LARGE): New macro.
29721 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
29722 code model setting in assembly code.
29724 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29726 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29727 Remove MASK_GP_DIRECT flag.
29728 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
29729 one of the multilib default options.
29730 * config/nds32/nds32.opt (mgp-direct): Remove.
29731 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
29732 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
29734 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29736 * config/nds32/nds32.opt (mcmodel): Add new option.
29737 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
29738 to describe code model.
29740 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
29743 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
29745 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
29747 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
29748 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
29749 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
29750 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
29751 __builtin_sh_set_fpscr.
29753 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
29755 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
29756 after a funtion name just to indicate it is a function.
29757 ([-fsanitize-undefined-trap-on-error]): Likewise.
29758 ([-fdbg-cnt=]): Likewise.
29759 ([-mmemcpy]): Likewise.
29760 ([-mflush-func]): Likewise.
29761 ([-msynci]): Likewise.
29763 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
29765 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
29768 2015-01-12 Jakub Jelinek <jakub@redhat.com>
29770 PR tree-optimization/64563
29771 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
29772 instead of != VR_VARYING.
29775 * config/i386/i386.c (ix86_expand_prologue): Add
29776 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
29778 PR tree-optimization/64454
29779 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
29780 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
29781 for signed or [0, op1 - 1] for unsigned modulo.
29782 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
29783 even if op1 does not satisfy integer_pow2p.
29786 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
29788 2015-01-12 Jeff Law <law@redhat.com>
29791 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
29792 (trunchiqi2, truncsihi2): Similarly.
29794 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
29795 rather than calling F.
29797 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
29799 * tsan.c (instrument_expr): Use force_gimple_operand.
29800 Use may_be_nonaddressable_p instead of is_gimple_addressable.
29802 2015-01-12 Richard Biener <rguenther@suse.de>
29804 PR tree-optimization/64530
29805 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
29808 2015-01-12 Richard Biener <rguenther@suse.de>
29810 PR middle-end/64357
29811 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
29814 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29816 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
29817 Cortex-A17 tuning parameters.
29818 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
29820 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29822 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
29823 * config/arm/arm.c (arm_macro_fusion_p): New function.
29824 (arm_macro_fusion_pair_p): Likewise.
29825 (TARGET_SCHED_MACRO_FUSION_P): Define.
29826 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
29827 (ARM_FUSE_NOTHING): Likewise.
29828 (ARM_FUSE_MOVW_MOVT): Likewise.
29829 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
29830 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
29831 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
29832 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
29833 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
29834 arm_cortex_a5_tune): Specify fuseable_ops value.
29836 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
29839 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
29840 test for PIE with copy reloc.
29841 * configure: Regenerated.
29843 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29845 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
29847 (arm_tls_descseq_addr): Likewise.
29848 (arm_gen_movmemqi): Likewise.
29849 (arm_expand_epilogue_apcs_frame): Likewise.
29850 (arm_expand_epilogue): Likewise.
29851 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
29854 2015-01-12 Martin Liska <mliska@suse.cz>
29857 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
29858 volatility for correct operands.
29860 2015-01-12 Martin Liska <mliska@suse.cz>
29862 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
29863 indication that a function is not leaf.
29864 (sem_function::compare_polymorphic_p): Likewise.
29866 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29868 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
29869 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
29870 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
29871 fold-const.h, tree-check.h.
29873 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29877 * ipa-inline.c (compute_uninlined_call_time,
29878 compute_inlined_call_time): Use counts for extra precision when
29880 (big_speedup_p): Fix formating.
29881 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
29882 (relative_time_benefit): Remove.
29883 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
29884 merge guessed and read profile paths.
29885 (inline_small_functions): Count only !optimize_size functions into
29886 initial size; be more lax about sanity check when profile is used;
29887 be sure to update inlined function profile when profile is read.
29889 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29892 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
29893 cost when edge becomes direct.
29894 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
29895 is resolved or when introducing new speculation.
29897 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
29901 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
29902 '||' to fix typo issue.
29904 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
29905 accept and return NULL.
29907 2015-01-12 Martin Liska <mliska@suse.cz>
29909 * cgraph.c (cgraph_edge::remove_callee): Move function to header
29910 file for being inlined.
29911 (cgraph_set_edge_callee): Delete.
29912 (cgraph_edge::redirect_callee): Move function to header file
29914 (cgraph_edge::make_direct): Use new function.
29915 (cgraph_edge::dump_edge_flags): New function created from
29916 static dump_edge_flags function.
29917 (cgraph_node::dump): Use new function.
29918 (cgraph_edge::verify_count_and_frequency): New function created
29919 from verify_edge_count_and_frequency.
29920 (cgraph_edge::verify_corresponds_to_fndecl): New function created
29921 from verify_edge_corresponds_to_fndecl.
29922 (verify_edge_corresponds_to_fndecl): Delete.
29923 (cgraph_node::verify_node): Use new function.
29924 * cgraph.h (cgraph_edge::set_callee): New function.
29925 (cgraph_edge::dump_edge_flags): Likewise.
29926 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
29928 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
29930 * ipa-utils.c (estimate_function_body_sizes): Do not
29931 free node params when called late with early=true.
29933 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
29935 * doc/md.texi (Instruction Patterns): Rewrite text for
29937 (Example): Likewise.
29939 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
29941 * doc/invoke.texi (Option Summary): Break long lines.
29942 [(-fdiagnostics-color)]: Put long literal in @smallexample
29944 [(-fsanitize-recover)]: Likewise.
29945 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
29946 [(-ffast-math)]: Likewise.
29947 [(--param max-inline-insns-recursive)]: Likewise.
29948 [(--param max-inline-recursive-depth)]: Likewise.
29949 [(-mno-text-section-literals)]: Likewise.
29951 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
29953 * doc/install.texi: Update for libgomp being renamed from "GNU
29954 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
29956 * doc/sourcebuild.texi: Likewise.
29958 2015-01-10 Anthony Green <green@moxielogic.com>
29960 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
29961 mul.x availability for moxiebox configuration.
29963 2015-01-09 Anthony Green <green@moxielogic.com>
29965 * config/moxie/moxie.md: Tabify assembly output.
29967 2015-01-09 Anthony Green <green@moxielogic.com>
29969 * config/moxie/moxie.md (CC_REG): Correct register definition.
29971 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
29973 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
29974 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
29977 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29979 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
29981 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
29982 Jakub Jelinek <jakub@redhat.com>
29984 PR middle-end/64412
29985 * lto-streamer.h (lto_stream_offload_p): New declaration.
29986 * lto-streamer.c (lto_stream_offload_p): New variable.
29987 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
29988 at the same time as section_name_prefix.
29989 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
29990 if lto_stream_offload_p.
29991 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
29992 stream TREE_TARGET_OPTION if lto_stream_offload_p.
29993 (write_ts_function_decl_tree_pointers): Don't
29994 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
29995 * tree-streamer-in.c (unpack_value_fields): Don't stream
29996 TREE_TARGET_OPTION in if ACCEL_COMPILER.
29997 (lto_input_ts_function_decl_tree_pointers): Don't stream
29998 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
29999 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
30000 instead of section_name_prefix string comparisons.
30002 2015-01-09 Jakub Jelinek <jakub@redhat.com>
30004 PR rtl-optimization/64536
30005 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
30008 2015-01-09 Michael Collison <michael.collison@linaro.org>
30010 PR tree-optimization/64322
30011 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
30012 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
30014 2015-01-09 Tom de Vries <tom@codesourcery.com>
30016 PR rtl-optimization/64539
30017 * regcprop.c (kill_clobbered_values): Factor out of ...
30018 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
30019 instead of note_stores with kill_clobbered_value.
30021 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
30023 * ginclude/unwind-arm-common.h: Revert previous commit.
30025 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
30027 * config.gcc (arm*-*-freebsd*): New configuration.
30028 * config/arm/freebsd.h: New file.
30029 * config.host: Add extra components for arm*-*-freebsd*.
30030 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
30031 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
30033 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
30035 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
30037 * config/rs6000/t-rtems: Add e6500 multilibs.
30039 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
30041 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
30044 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
30046 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
30047 MULTILIB_EXCEPTIONS.
30049 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
30051 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
30052 MULTILIB_EXCEPTIONS.
30054 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
30056 * config/arm/t-rtems-eabi: Rename to...
30057 * config/arm/t-rtems: ...this.
30058 * config/arm/rtems-eabi.h: Rename to...
30059 * config/arm/rtems.h: ...this.
30060 * config.gcc (arm*-*-rtems*): Reflect changes above.
30062 2015-01-09 Richard Biener <rguenther@suse.de>
30064 PR tree-optimization/64410
30065 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
30067 (execute_update_addresses_taken): Deal with that.
30068 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
30069 loads/stores for complex variables.
30071 2015-01-09 Martin Liska <mliska@suse.cz>
30073 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
30075 (func_checker::compare_memory_operand): New function.
30076 (func_checker::compare_operand): Split case to newly
30078 (func_checker::compare_cst_or_decl): New function.
30079 (func_checker::compare_gimple_call): Identify
30081 (func_checker::compare_gimple_assign): Likewise.
30082 * ipa-icf-gimple.h: New function.
30084 2015-01-09 Martin Liska <mliska@suse.cz>
30087 * sreal.c (sreal::dump): Change unsigned format to signed for
30089 (sreal::to_double): Replace exp2 with scalbln.
30091 2015-01-09 Martin Liska <mliska@suse.cz>
30093 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
30094 * ipa-icf.c (sem_function::equals_private): Add support for target and
30095 (sem_item_optimizer::merge_classes): Remove redundant function
30096 optimization flags comparison.
30097 * tree.h (target_opts_for_fn): New function.
30099 2015-01-09 Tom de Vries <tom@codesourcery.com>
30101 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
30103 2015-01-09 Kito Cheng <kito@0xlab.org>
30105 PR rtl-optimization/64348
30106 * lra-constraints.c (split_reg): Fix caller-save store/restore
30107 instruction generation.
30109 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
30111 PR gcov-profile/61790
30112 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
30113 long long. Fallback to int64_t if host doesn't have long long and
30114 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
30116 2015-01-08 Jakub Jelinek <jakub@redhat.com>
30118 PR tree-optimization/63989
30119 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
30120 from 1000 to 10000.
30121 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
30122 (get_stridx): If we don't have a record for certain SSA_NAME,
30123 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
30124 constant offset, call get_stridx_plus_constant.
30125 (get_stridx_plus_constant): New function.
30126 (zero_length_string): Don't use get_stridx here.
30129 PR middle-end/64388
30130 * dse.c (struct insn_info): Mention frame_read set also
30131 before reload for tail calls on some targets.
30132 (scan_insn): Revert 2014-12-22 change. Set frame_read
30133 also before reload for tail calls if
30134 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
30135 instead of add_non_frame_wild_read for non-const/memset
30136 tail calls after reload.
30138 2015-01-08 Jason Merrill <jason@redhat.com>
30140 * ubsan.c (do_ubsan_in_current_function): New.
30141 (pass_ubsan::gate): Use it.
30142 * ubsan.h: Declare it.
30143 * convert.c (convert_to_integer): Use it.
30145 2015-01-08 Jakub Jelinek <jakub@redhat.com>
30148 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
30149 compare_code when it is unconditionally overwritten afterwards.
30150 Use ix86_reverse_condition instead of reverse_condition. Don't
30151 change code if *reverse_condition* returned UNKNOWN and don't
30152 swap ct/cf and negate diff in that case.
30154 2015-01-08 Mike Stump <mikestump@comcast.net>
30156 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
30157 (pass_tsan_O0::gate): Likewise.
30158 * extend.texi (Function Attributes): Add no_sanitize_thread
30161 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
30163 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
30164 for registering builtins.
30165 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
30166 add -fopenmp to the argv_obstack used when invoking
30167 compile_for_target.
30169 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
30170 add "-m32" or "-m64" to argv_obstack.
30171 (generate_host_descr_file): Likewise, when invoking host_compiler.
30172 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
30175 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
30177 * config/sh/sh-mem.cc: Use constant as second operand when emitting
30180 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
30183 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
30184 constant load if constant operand fits into I08.
30186 2015-01-08 Jakub Jelinek <jakub@redhat.com>
30189 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
30190 and TREE_THIS_VOLATILE for MEM_REFs.
30191 (build5_stat): Fix up initialization of TREE_READONLY and
30192 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
30194 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
30197 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
30198 of r for the second alternative of the destination operand.
30200 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
30203 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
30205 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
30207 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
30209 ([-fivar-visibility], [-fvisibility]): Likewise.
30211 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
30213 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
30214 the file where @code, @command, etc is more appropriate.
30216 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
30218 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
30219 of -mrecip= documentation.
30221 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
30224 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
30225 correct reload handler if -m32 -mpowerpc64 is used.
30227 2015-01-06 Tom de Vries <tom@codesourcery.com>
30229 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
30231 2015-01-08 Christian Bruel <christian.bruel@st.com>
30234 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
30236 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
30238 PR tree-optimization/63259
30239 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
30240 if optab exists for 16bit byteswap.
30242 2015-01-06 Jakub Jelinek <jakub@redhat.com>
30244 * opts.c (common_handle_option): Add support for
30245 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
30246 * doc/invoke.texi: Document -fno-sanitize=all,
30247 -f{,no-}sanitize-recover=all. Document that
30248 -fsanitize=float-cast-overflow is not enabled
30249 by -fsanitize=undefined. Fix up documentation
30250 of -f{,no-}sanitize-recover.
30252 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
30254 * config.gcc: Add Visium support.
30255 * configure.ac: Likewise.
30256 * configure: Regenerate.
30257 * doc/extend.texi (interrupt attribute): Add Visium.
30258 * doc/invoke.texi: Document Visium options.
30259 * doc/install.texi: Document Visium target.
30260 * doc/md.texi: Document Visium constraints.
30261 * common/config/visium: New directory.
30262 * config/visium: Likewise.
30264 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
30266 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
30267 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
30269 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
30271 * combine.c (combine_validate_cost): Do not count the cost of a
30272 split I2 twice. Do not display it twice in the dump, either.
30274 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
30276 Revert parts of r219199.
30277 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
30279 ([-Wtraditional]): Restore markup on <limits.h>.
30281 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
30284 * doc/invoke.texi: Document -Wsuggest-override.
30286 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
30288 PR rtl-optimization/64287
30289 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
30290 (process_options): Disable flag_ipa_ra if profiling.
30292 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
30294 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
30296 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
30298 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
30299 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
30300 put under #if TARGET_LOOPS guard.
30302 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
30304 * config/i386/i386.c (output_387_binary_op): Use std::swap.
30306 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
30308 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
30309 * rtl.h (refers_to_regno_p): Add overload.
30311 * bt-load.c: Likewise.
30312 * combine.c: Likewise.
30313 * df-scan.c: Likewise.
30314 * sched-deps.c: Likewise.
30315 * config/s390/s390.c: Likewise.
30316 * config/m32r/m32r.c: Likewise.
30317 * config/rs6000/spe.md: Likewise.
30318 * config/rs6000/rs6000.c: Likewise.
30319 * config/pa/pa.c: Likewise.
30320 * config/stormy16/stormy16.c: Likewise.
30321 * config/cris/cris.c: Likewise.
30322 * config/arc/arc.md: Likewise.
30323 * config/arc/arc.c: Likewise.
30324 * config/sh/sh.md: Likewise.
30325 * config/sh/sh.c: Likewise.
30326 * config/frv/frv.c: Likewise.
30328 2015-01-05 Jakub Jelinek <jakub@redhat.com>
30331 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
30332 call as cleanup of the whole body.
30333 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
30334 * tsan.c (replace_func_exit): New function.
30335 (instrument_func_exit): Moved earlier.
30336 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
30337 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
30339 (tsan_pass): Don't call instrument_func_exit.
30340 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
30341 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
30345 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
30346 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
30347 it to libubsan handler instead of EXPR. Fold comparisons earlier,
30348 if the result is integer_zerop, return NULL_TREE.
30349 * convert.c (convert_to_integer): Pass expr as ARG.
30351 PR tree-optimization/64465
30352 * tree-inline.c (redirect_all_calls): During inlining
30353 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
30354 changed the stmt to a non-throwing call.
30356 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
30358 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
30359 etc markup throughout the file.
30361 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
30363 Enable experimental TSAN support for Ada.
30364 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
30366 2015-01-05 Jakub Jelinek <jakub@redhat.com>
30368 PR tree-optimization/64494
30369 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
30370 clear SSA_NAME_ANTI_RANGE_P flag.
30372 2015-01-05 Marek Polacek <polacek@redhat.com>
30374 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
30376 2015-01-05 Jakub Jelinek <jakub@redhat.com>
30378 Update copyright years.
30380 * gcc.c (process_command): Update copyright notice dates.
30381 * gcov-dump.c: Ditto.
30383 * doc/cpp.texi: Bump @copying's copyright year.
30384 * doc/cppinternals.texi: Ditto.
30385 * doc/gcc.texi: Ditto.
30386 * doc/gccint.texi: Ditto.
30387 * doc/gcov.texi: Ditto.
30388 * doc/install.texi: Ditto.
30389 * doc/invoke.texi: Ditto.
30391 * auto-profile.c, auto-profile.h: Fix up Copyright line.
30393 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
30395 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
30397 ([-fvtable-verify], [-fvtv-debug]): Likewise.
30398 ([-Wabi]): Likewise.
30399 ([-fmessage-length]): Likewise.
30400 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
30401 ([-Wno-discarded-qualifiers]): Likewise.
30402 ([-Wnodiscarded-array-qualifiers]): Likewise.
30403 ([-Wno-virtual-move-assign]): Likewise.
30404 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
30405 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
30406 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
30407 ([-fsanitize-undefined-trap-on-error]): Likewise.
30408 ([-floop-interchange]): Likewise.
30409 ([-ftree-coalesce-inlined-vars]): Likewise.
30410 ([-fvect-cost-model]): Likewise.
30411 ([-flto]): Likewise.
30412 ([--param]): Likewise.
30413 (Spec Files): Likewise.
30414 ([-mstrict-align]): Likewise.
30415 ([-mfix-cortex-a53-835769]): Likewise.
30416 ([-march], [-mtune]): Likewise.
30417 ([-mpic-register]): Likewise.
30418 ([-munaligned-access]): Likewise.
30419 ([-msp8]): Likewise.
30420 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
30421 (AVR Built-in Macros): Likewise.
30422 ([-mpreferred-stack-boundary]): Likewise.
30423 ([-mtune-crtl]): Likewise.
30424 ([-mashf]): Likewise.
30425 ([-mmcu=]): Likewise.
30426 ([-minrt]): Likewise.
30427 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
30428 ([-mupper-regs]): Likewise.
30429 ([-matomic-model]): Likewise.
30430 ([-mdiv]): Likewise.
30431 ([-mzdcbranch]): Likewise.
30432 ([-mdisable-callt]): Likewise.
30433 ([-msoft-float]): Likewise.
30434 ([-m8byte-align]): Likewise.
30435 ([-fstack-reuse]): Likewise.
30437 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
30439 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
30440 Fix markup, light copy-editing.
30441 ([-fauto-profile]): Rewrite to fix formatting and content
30444 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
30446 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
30447 Copy-edit description.
30448 ([-fisolate-erroneous-paths-attribute]): Likewise.
30449 * common.opt (fisolate-erroneous-paths-dereference):
30450 Copy-edit description.
30451 (fisolate-erroneous-paths-attribute): Likewise.
30453 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
30455 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
30458 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
30460 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
30461 ([-fvtv-debug]): Likewise.
30462 ([-Wc++-compat]): Likewise.
30463 ([-Wc++11-compat]): Likewise.
30464 ([-Wc++14-compat]): Likewise.
30465 ([-Wno-sized-deallocation]): Likewise.
30466 ([-femit-class-debug-always]): Likewise.
30467 ([-femit-struct-debug-detailed]): Likewise.
30468 ([-fno-keep-inline-dllexport]): Likewise.
30469 ([-fira-algorithm]): Likewise.
30470 ([-fira-region]): Likewise.
30471 ([-flra-remat]): Likewise.
30472 ([-fipa-ra]): Likewise.
30473 ([-fhoist-adjacent-loads]): Likewise.
30474 ([-fisolate-erroneous-paths-dereference]): Likewise.
30475 ([-fisolate-erroneous-paths-attribute]): Likewise.
30476 ([-ftree-switch-conversion]): Likewise.
30477 ([-ftree-tail-merge]): Likewise.
30478 ([-ftree-loop-if-convert]): Likewise.
30479 ([-ftree-loop-if-convert-stores]): Likewise.
30480 ([-ftree-loop-distribution]): Likewise.
30481 ([-ftree-loop-distribute-patterns]): Likewise.
30482 ([-flto-compression-level]): Likewise.
30483 ([-flto-report]): Likewise.
30484 ([-flto-report-wpa]): Likewise.
30485 ([-fuse-linker-plugin]): Likewise.
30486 ([-mfix-cortex-a53-835769]): Likewise.
30487 ([-mno-fix-cortex-a53-835769]): Likewise.
30488 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
30489 explicit listing; add a note to the discussion indicating they
30490 exist. Reorder table to group similar options. Add missing
30491 @opindex entries. Add @need commands throughout the table to
30492 allow it to be split across multiple pages.
30493 ([-m8bit-idiv]): Fix @opindex.
30494 ([-mavx256-split-unaligned-load]): Likewise.
30495 ([-mavx256-split-unaligned-store]): Likewise.
30496 ([-mstack-protector-guard]): Likewise.
30497 ([-mcpu=]): Likewise.
30498 ([-mcpu]): Likewise.
30499 ([-mpointer-size=]): Likewise.
30501 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
30503 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
30504 instead of `m' constraint. Likewise for unnamed movb comparison
30505 patterns using reg_before_reload_operand predicate.
30506 * config/pa/predicates.md (reg_before_reload_operand): Tighten
30507 predicate to reject register index and LO_SUM DLT memory forms
30510 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
30512 * doc/invoke.texi (Option Summary): Fix spelling of
30513 -fdevirtualize-at-ltrans.
30514 ([-fdevirtualize]): Fix markup.
30515 ([-fdevirtualize-speculatively]): Fix typo.
30516 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
30517 implementor-speaky.
30518 * common.opt (fdevirtualize-at-ltrans): Likewise.
30519 * ipa-devirt.c: Fix typos in comments throughout the file.
30520 (ipa_devirt): Fix typos in format strings for dump output.
30522 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
30524 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
30525 discussion of defaults, light copy-editing.
30527 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
30529 * tsan.c (instrument_expr): corrected previous checkin.
30531 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
30533 Instrument bit field and unaligned accesses for TSAN.
30534 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
30535 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
30536 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
30537 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
30538 unaligned memory regions.
30540 2015-01-01 Anthony Green <green@moxielogic.com>
30542 * config/moxie/predicates.md (moxie_general_movsrc_operand):
30543 Restrict move source register offsets to 16 bits.
30545 Copyright (C) 2015 Free Software Foundation, Inc.
30547 Copying and distribution of this file, with or without modification,
30548 are permitted in any medium without royalty provided the copyright
30549 notice and this notice are preserved.