1 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
4 double check that type is main variant.
5 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
7 (verify_type_variant): Verify that variants have no
8 TYPE_ALIAS_SET_KNOWN_P set
9 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
10 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
11 only for main variants; stream TYPE_ALIAS_SET as a bit.
12 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
15 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
17 * tree.c (make_vector_type): Properly compute canonical type of the
19 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
22 2015-11-24 Nathan Sidwell <nathan@acm.org>
24 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
25 VOIDmode, don't alter incoming mode.
26 (nvptx_split_reg_p): Delete.
27 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
28 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
29 maybe_split_mode calls.
30 (nvptx_print_operand): Use maybe_split_mode.
32 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
34 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
35 only for types where LTO sets them.
36 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
37 (make_vector_type): Likewise.
38 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
39 * tree.h (canonical_type_used_p): New inline.
40 * alias.c (get_alias_set): Handle structural equality for all
41 types that pass canonical_type_used_p.
42 (record_component_aliases): Look through all types with
43 record_component_aliases for possible pointers; sanity check that
46 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
48 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
50 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
52 * tree.c (free_node): New function.
53 (type_hash_canon): Use it.
54 * tree.h (free_node): Declare.
56 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
57 Michael Meissner <meissner@linux.vnet.ibm.com>
59 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
60 (Fv2): New mode attribute to be used when ISA 2.07 instructions
61 are used on SF values, and ISA 2.06 instructions on DF values.
62 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
63 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
64 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
65 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
66 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
67 (fre<Fs>): Use <Fv2> instead of <Fv>.
68 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
69 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
70 (xsrdpi<mode>): Add support for the lround function.
71 (lround<mode>di2): Likewise.
72 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
73 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
74 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
75 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
77 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
78 Sebastian Pop <s.pop@samsung.com>
80 PR tree-optimization/67984
81 * graphite-isl-ast-to-gimple.c (is_constant): New.
82 (get_rename): Call is_constant.
85 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
86 Sebastian Pop <s.pop@samsung.com>
88 * graphite-dependences.c: Only include graphite.h.
89 * graphite-isl-ast-to-gimple.c: Same.
90 * graphite-optimize-isl.c: Same.
91 * graphite-poly.c: Same.
92 * graphite-scop-detection.c: Same.
93 * graphite-sese-to-poly.c: Same.
95 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
96 * graphite-poly.h: Same.
97 * graphite-scop-detection.h: Same.
100 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
102 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
103 DW_TAG_namespace for IMPORTED_DECL declarations. Call
104 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
105 function already takes care of checking what it can emit.
107 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
109 * doc/invoke.texi (-fpic): Add the AArch64 limit.
110 (-fPIC): Add AArch64.
112 2015-11-24 Tom de Vries <tom@codesourcery.com>
114 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
115 (pass_lim::execute): Allow to run outside pass_tree_loop.
117 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
119 * gcc/config/aarch64/aarch64.md (add<mode>3):
120 Block early expansion into 2 add instructions.
121 (add<mode>3_pluslong): New pattern to combine complex
122 immediates into 2 additions.
124 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
129 * config/rs6000/predicates.md (and_operand): Check that the operand
130 is a const_int before calling rs6000_is_valid_and_mask.
132 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
134 * config/aarch64/aarch64.md (*condjump): Rename to...
135 (condjump): ... This.
136 (*compare_condjump<mode>): New define_insn_and_split.
137 (*compare_cstore<mode>_insn): Likewise.
138 (*cstore<mode>_insn): Rename to...
139 (cstore<mode>_insn): ... This.
140 * config/aarch64/iterators.md (CMP): Handle ne code.
141 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
143 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
146 * config/i386/i386.c (output_387_binary_op): Fix assertion for
149 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
151 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
152 (val_ssa_equiv_hash_traits::remove): Likewise.
153 (pass_uncprop::execute): Adjust.
155 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
157 * hash-map-traits.h (simple_hashmap_traits ::remove): call
158 destructors on values that are being removed.
159 * mem-stats.h (hash_map): Pass type of values to
160 simple_hashmap_traits.
161 * tree-sra.c (sra_deinitialize): Remove work around for hash
162 maps not destructing values.
163 * genmatch.c (sinfo_hashmap_traits): Adjust.
164 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
166 2015-11-24 Richard Biener <rguenther@suse.de>
167 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
170 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
173 2015-11-24 Jakub Jelinek <jakub@redhat.com>
176 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
177 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
179 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
180 whenever first is nelt or above. Don't mask expected with
183 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
186 * gimple-fold.c: Include ipa-chkp.h.
187 (gimple_fold_builtin_memory_op): Don't fold call if we
188 are going to instrument it and it may copy pointers.
190 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
191 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
193 PR rtl-optimization/68194
194 PR rtl-optimization/68328
195 PR rtl-optimization/68185
196 * ree.c (combine_reaching_defs): Reject copy_needed case if
197 copies_list is not empty.
199 2015-11-24 Richard Biener <rguenther@suse.de>
202 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
205 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
207 PR rtl-optimization/68381
208 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
211 2015-11-23 Nick Clifton <nickc@redhat.com>
212 Jeff Law <law@redhat.com>
214 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
215 the source/dest of the target extension require a different number of
217 (combine_set_extension): Remove #if 0 code.
219 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
220 Sebastian Pop <s.pop@samsung.com>
222 PR tree-optimization/68314
223 * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
224 * graphite-poly.c (new_scop): Remove original_schedule.
226 * graphite-poly.h (struct scop): Same.
227 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
228 (build_pbb_scattering_polyhedrons): Add back.
229 (build_scop_minimal_scattering): Remove.
230 (build_scop_scattering): Add back.
231 (build_scop_original_schedule): Remove.
232 (build_poly_scop): Revert to only call build_scop_scattering.
234 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
235 Sebastian Pop <s.pop@samsung.com>
237 PR tree-optimization/68493
238 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
239 missing early return when codegen_error is set.
241 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
242 Sebastian Pop <s.pop@samsung.com>
244 PR tree-optimization/68279
245 * graphite-poly.c (new_scop): Remove poly_scop_p.
246 * graphite-poly.h (struct scop): Same.
247 (build_poly_scop): Declare.
248 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
249 (cleanup_loop_iter_dom): New.
250 (build_loop_iteration_domains): Early return when scev analysis fails.
251 (create_pw_aff_from_tree): Same.
252 (add_condition_to_pbb): Same.
253 (add_conditions_to_domain): Same.
254 (add_conditions_to_constraints): Same.
255 (build_scop_iteration_domain): Same.
256 (build_poly_scop): Same. Do not initialize poly_scop_p.
257 * graphite-sese-to-poly.h: Remove.
258 * graphite.c: Do not include graphite-sese-to-poly.h.
259 (graphite_transform_loops): Stop before code generation when
260 build_poly_scop fails.
261 * sese.c (scalar_evolution_in_region): Add fixme note about scev
264 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
265 Sebastian Pop <s.pop@samsung.com>
267 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
268 Remove call to update_ssa.
269 * sese.c (sese_insert_phis_for_liveouts): Same.
271 2015-11-23 Marek Polacek <polacek@redhat.com>
273 PR tree-optimization/68455
274 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
275 extract_range_from_multiplicative_op_1 on symbolic ranges.
277 2015-11-23 Richard Henderson <rth@redhat.com>
279 * optabs.def (uaddv4_optab, usubv4_optab): New.
280 * internal-fn.c (expand_addsub_overflow): Use them.
281 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
283 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
284 to reversed operands.
285 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
286 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
287 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
288 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
289 (*add<SWI>3_cconly_overflow_2): New.
290 (*add<SWI>3_cc_overflow_2): New.
291 (*addsi3_zext_cc_overflow_2): New.
293 2015-11-23 Richard Biener <rguenther@suse.de>
295 PR tree-optimization/68465
296 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
297 Also record equalities from multiple predecessor blocks if
298 only one non-backedge exists.
300 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
303 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
306 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
308 * config/aarch64/aarch64-builtins.c
309 (aarch64_gimple_fold_builtin): Fold FMULX.
311 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
313 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
314 * graphite-dependences.c: Define USES_ISL. Include ISL header files
315 after GCC header files and before graphite header files.
316 * graphite-dependences.c: Same.
317 * graphite-isl-ast-to-gimple.c: Same.
318 * graphite-optimize-isl.c: Same.
319 * graphite-poly.c: Same.
320 * graphite-scop-detection.c: Same.
321 * graphite-sese-to-poly.c: Same.
324 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
325 Jiong Wang <jiong.wang@arm.com>
327 PR tree-optimization/68317
328 PR tree-optimization/68326
329 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
330 final min and max are not infinity.
332 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
333 Richard Biener <rguenther@suse.de>
335 PR tree-optimization/68327
336 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
337 compute vectype for non-relevant mask producers.
338 * gcc/tree-vect-stmts.c (vectorizable_comparison): Check stmt
341 2015-11-23 Tom de Vries <tom@codesourcery.com>
343 PR tree-optimization/68460
344 * tree-parloops.c (gather_scalar_reductions): Also call
345 free_stmt_vec_info_vec if simple_loop_info == NULL.
347 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
349 * opts.c (finish_options): Allow -fsanitize-recover=address for
350 userspace sanitization.
351 * asan.c (asan_expand_check_ifn): Redefine recover_p.
352 * doc/invoke.texi (fsanitize-recover): Update documentation.
354 2015-11-23 Tom de Vries <tom@codesourcery.com>
356 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
358 2015-11-23 Richard Biener <rguenther@suse.de>
360 PR tree-optimization/68445
361 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
362 two different strides.
364 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
366 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
367 * config/s390/s390.c (s390_check_symref_alignment): Use new
368 symref flags, early abort on wrong alignment
369 (s390_secondary_reload): Use new symref flags.
370 (s390_encode_section_info): Likewise.
371 * config/s390/predicates.md: Likewise.
373 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
376 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
377 for indirect function call.
379 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
381 * config/aarch64/aarch64-simd.md
382 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
383 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
384 (*aarch64_mulx_elt_to_64v2df): Likewise.
385 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
386 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
387 (vmulx_lane_f64): Likewise.
388 (vmulxq_lane_f32): Refactored & moved.
389 (vmulxq_lane_f64): Likewise.
390 (vmulx_laneq_f32): New.
391 (vmulx_laneq_f64): Likewise.
392 (vmulxq_laneq_f32): Likewise.
393 (vmulxq_laneq_f64): Likewise.
394 (vmulxs_lane_f32): Likewise.
395 (vmulxs_laneq_f32): Likewise.
396 (vmulxd_lane_f64): Likewise.
397 (vmulxd_laneq_f64): Likewise.
399 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
401 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
402 In LTO we do not compute TYPE_CANONICAL of pointers.
403 (gimple_canonical_types_compatible_p): Improve coments; sanity check
404 that pointers do not have canonical type that would make us believe
406 * alias.c (get_alias_set): Do structural type equality on pointers;
407 enable pointer path for LTO; also glob pointer to vector with pointer
408 to vector element; glob pointers and references for LTO; do more strict
409 sanity checking about build_pointer_type returning the canonical type
410 which is also the main variant.
411 (record_component_aliases): When component type is pointer and we
412 do LTO; record void_type_node alias set.
414 2015-11-21 Nathan Sidwell <nathan@acm.org>
416 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
418 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
420 (write_func_decl_from_insn): Likewise.
421 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
422 (nvptx_file_end): Likewise.
423 (nvptx_function_end): Undent output.
424 (nvptx_expand_call): Fix formatting.
425 (nvptx_output_call_insn): Indent output.
426 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
427 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
429 2015-11-21 Jakub Jelinek <jakub@redhat.com>
432 * tree-inline.c (copy_debug_stmt): If
433 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
434 in decl_debug_args, don't call remap_gimple_op_r on it.
436 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
438 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
439 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
440 Check that all record types are complete.
441 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
442 compare alias sets for types w/o alias sets.
444 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
446 * config/sparc/sparc.md (umulxhi_vis): Move around.
447 (*umulxhi_sp64): Likewise.
448 (umulxhi_v8plus): Likewise.
449 (xmulx_vis): Likewise.
450 (*xmulx_sp64): Likewise.
451 (xmulx_v8plus): Likewise.
452 (xmulxhi_vis): Likewise.
453 (*xmulxhi_sp64): Likewise.
454 (xmulxhi_v8plus): Likewise.
456 2015-11-20 David Malcolm <dmalcolm@redhat.com>
459 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
460 (class layout): Update comment
461 (layout::print_any_fixits): New method.
462 (layout::move_to_column): New method.
463 (diagnostic_show_locus): Add call to layout.print_any_fixits.
465 2015-11-20 Jakub Jelinek <jakub@redhat.com>
468 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
469 has non-zero bias, subtract it in integer type instead of
470 pointer plus of negated bias.
473 * omp-low.c (expand_simd_clones): Call node->get_body () before
474 allocating stuff in GC.
476 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
478 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
480 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
482 * config/aarch64/aarch64.md (predicated): Copy attribute from
484 * config/arm/arm.md (predicated): Added description.
486 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
488 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
489 for unaligned_access.
490 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
491 from matching condition.
492 (unaligned_loadhis): Likewise.
493 (unaligned_loadhiu): Likewise.
494 (unaligned_storesi): Likewise.
495 (unaligned_storehi): Likewise.
497 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
500 * config/arm/arm.md (unaligned_loaddi): Delete.
501 (unaligned_storedi): Likewise.
502 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
503 unaligned DImode memory ops. Instead perform two back-to-back
504 unaligned SImode ops.
506 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
507 James Norris <jnorris@codesourcery.com>
509 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
510 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
512 2015-11-20 Alan Hayward <alan.hayward@arm.com>
514 PR tree-optimization/68413
515 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
517 (vectorizable_reduction): Use cached base
519 2015-11-20 Tom de Vries <tom@codesourcery.com>
521 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
523 (try_create_reduction_list): Same. Fix typo in dump-file string.
525 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
527 * doc/md.texi (Standard Names): Move entry for addptr3 around,
528 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
529 glitch in entries for cbranch4 and jump.
531 2015-11-20 Tom de Vries <tom@codesourcery.com>
533 PR tree-optimization/68373
534 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
536 (scev_const_prop): ... here.
537 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
538 * tree-parloops.c (try_create_reduction_list): Call
539 final_value_replacement_loop.
541 2015-11-20 Bin Cheng <bin.cheng@arm.com>
543 PR tree-optimization/52272
544 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
545 (struct iv_common_cand_hasher): New struct.
546 (iv_common_cand_hasher::hash): New function.
547 (iv_common_cand_hasher::equal): New function.
548 (struct ivopts_data): New fields, iv_common_cand_tab and
550 (tree_ssa_iv_optimize_init): Initialize above fields.
551 (record_common_cand, common_cand_cmp): New functions.
552 (add_iv_candidate_derived_from_uses): New function.
553 (add_iv_candidate_for_use): Record iv_common_cands derived from
554 iv use in hash table, instead of adding candidates directly.
555 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
556 (record_important_candidates): Add important candidates to iv uses'
557 related_cands. Always keep related_cands for future use.
558 (try_add_cand_for): Use iv uses' related_cands.
559 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
560 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
562 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
564 * config/s390/s390.md ("bswaphi2"): New pattern.
566 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
568 * config/s390/s390.md (GPR1_REGNUM): New constant.
569 ("*trunc<BFP:mode><DFP_ALL:mode>2")
570 ("*trunc<DFP_ALL:mode><BFP:mode>2")
571 ("trunc<BFP:mode><DFP_ALL:mode>2")
572 ("trunc<DFP_ALL:mode><BFP:mode>2")
573 ("*extend<BFP:mode><DFP_ALL:mode>2")
574 ("*extend<DFP_ALL:mode><BFP:mode>2")
575 ("extend<BFP:mode><DFP_ALL:mode>2")
576 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
578 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
579 Sebastian Pop <s.pop@samsung.com>
581 PR tree-optimization/68428
582 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
583 over basic blocks outside the scop.
585 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
586 Sebastian Pop <s.pop@samsung.com>
588 PR tree-optimization/68341
589 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
590 gcc_unreachable and safely fail codegen.
591 (copy_loop_close_phi_args): Do not insert merge phis in a basic
592 block with loop phi nodes.
593 (edge_for_new_close_phis): New.
594 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
596 2015-11-19 Nathan Sidwell <nathan@acm.org>
598 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
599 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
600 (nvptx_declare_objec_name): Likewise.
602 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
604 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
605 (get_false_edge_from_guard_bb): Move...
606 * sese.c (get_false_edge_from_guard_bb)
607 (get_true_edge_from_guard_bb): ... here.
609 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
612 2015-11-18 Alan Modra <amodra@gmail.com>
614 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
618 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
620 * tree.h (desired_pro_or_demotion_p): New function.
621 * tree-vrp.c (simplify_cond_using_ranges): Call it.
623 2015-11-19 Michael Matz <matz@suse.de>
625 * fwprop.c (update_uses): Use flag_checking instead of
628 2015-11-19 David Malcolm <dmalcolm@redhat.com>
630 * doc/gty.texi (Support for inheritance): Fix missing
631 parentheses in example.
633 2015-11-19 Marek Polacek <polacek@redhat.com>
635 PR tree-optimization/68431
636 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
638 2015-11-19 Nathan Sidwell <nathan@acm.org>
640 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
641 atomic_exchange<mode>): Input values can be immediates.
643 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
646 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
648 * configure: Regenerate.
650 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
653 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
654 (DTORS_SECTION_ASM_OP): Likewise.
656 2015-11-19 Jakub Jelinek <jakub@redhat.com>
658 PR rtl-optimization/68376
659 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
660 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
662 2015-11-19 Richard Biener <rguenther@suse.de>
665 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
666 redirect_edge_var_map_destroy.
668 2015-11-19 Jakub Jelinek <jakub@redhat.com>
671 * config/i386/i386.md (simple_return): Disable if
672 ix86_static_chain_on_stack is true.
674 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
677 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
680 2015-11-18 Jeff Law <law@redhat.com>
682 PR tree-optimization/68198
683 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
684 between threading a multi-way branch and a thread path that contains
685 a multi-way branch. Disallow the case where a path contains a
686 multi-way branch and does not thread a multi-way branch.
687 (thread_through_all_blocks): Update comment.
689 2015-11-18 Joseph Myers <joseph@codesourcery.com>
692 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
693 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
694 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
695 functions before defining as macros.
697 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
699 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
700 (nvptx_record_offload_symbol): Remove code compensating for lack
701 of default dimension handling.
702 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
704 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
706 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
707 type to bool for early exit.
708 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
710 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
711 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
712 predecessor dominates the other.
713 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
714 element is not found it returns -1.
715 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
716 out early when codegen fails.
717 (graphite_regenerate_ast_isl): Remove codegen region when pending
718 phis could not be generated.
720 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
722 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
724 (class translate_isl_ast_to_gimple): Indentation.
725 (translate_pending_phi_nodes): Comment.
726 (add_parameters_to_ivs_params): Moved from sese.c inside class
727 translate_isl_ast_to_gimple.
728 (get_max_schedule_dimensions): Same.
729 (generate_isl_context): Same.
730 (extend_schedule): Same.
731 (generate_isl_schedule): Same.
733 (scop_to_isl_ast): Same.
734 (is_valid_rename): Same.
736 (get_rename_from_scev): Same.
737 (get_def_bb_for_const): Same.
738 (get_new_name): Same.
739 (collect_all_ssa_names): Same.
740 (copy_loop_phi_args): Same.
741 (copy_loop_phi_nodes): Same.
742 (copy_loop_close_phi_args): Same.
743 (copy_loop_close_phi_nodes): Same.
744 (copy_cond_phi_args): Same.
745 (copy_cond_phi_nodes): Same.
746 (graphite_copy_stmts_from_block): Same.
747 (copy_bb_and_scalar_dependences): Same.
748 (add_phi_arg_for_new_expr): Same.
751 (set_rename_for_each_def): Same.
752 (gsi_insert_earliest): Same.
753 (rename_all_uses): Same.
754 (codegen_error_p): Same.
755 (print_isl_ast_node): Same.
756 (translate_isl_ast_for_loop): Call function codegen_error_p.
757 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
758 (translate_isl_ast_node_user): Make nb_loops const and release
760 (get_true_edge_from_guard_bb): Move all free-functions early.
761 (get_false_edge_from_guard_bb): Same.
762 (bb_contains_loop_close_phi_nodes): Same.
763 (bb_contains_loop_phi_nodes): Same.
764 (is_loop_closed_ssa_use): Same.
765 (number_of_phi_nodes): Same.
766 (phi_uses_name): Same.
767 (later_of_the_two): Same.
768 (substitute_ssa_name):
771 (get_loop_init_value): Same.
772 (find_init_value): Same.
773 (find_init_value_close_phi): Same.
774 (ast_build_before_for): Same.
775 (graphite_regenerate_ast_isl): Formatting changes.
776 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
777 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
779 (gsi_insert_earliest): Same.
780 (collect_all_ssa_names): Same.
781 (rename_all_uses): Same.
783 (get_def_bb_for_const): Same.
784 (copy_loop_phi_nodes): Same.
785 (copy_loop_close_phi_args): Same.
786 (copy_loop_close_phi_nodes): Same.
787 (copy_cond_phi_args): Same.
788 (copy_cond_phi_nodes): Same.
789 (set_rename_for_each_def): Same.
790 (graphite_copy_stmts_from_block): Same.
791 (copy_bb_and_scalar_dependences): Same.
792 (if_region_set_false_region): Same.
793 (scev_analyzable_p): Same.
794 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
796 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
798 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
799 commit from r125920 for FreeBSD.
801 2015-11-18 Jason Merrill <jason@redhat.com>
803 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
805 (add_finalizer): Split out from ggc_internal_alloc.
806 (ggc_handle_finalizers): Run finalizers for the current depth.
807 (init_ggc, ggc_pch_read): Reserve space for finalizers.
809 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
812 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
815 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
817 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
818 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
820 * doc/avr-mmcu.texi: Regenerate.
822 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
824 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
825 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
826 (struct bb_sese): New struct.
827 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
828 (BB_GET_SESE, BB_SET_SESE): Define.
829 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
830 (nvptx_find_sese): New.
831 (nvptx_neuter_pars): Find SESE regions when optimizing.
833 2015-11-18 Alan Modra <amodra@gmail.com>
835 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
838 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
841 * hash-set.h (hash_set::traverse): Expand Key typedef.
843 2015-11-18 Martin Liska <mliska@suse.cz>
845 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
848 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
850 * config/nvptx/nvptx.c (global_lock_var): New.
851 (nvptx_global_lock_addr): New.
852 (nvptx_lockless_update): Recomment and adjust for clarity.
853 (nvptx_lockfull_update): New.
854 (nvptx_reduction_update): New.
855 (nvptx_goacc_reduction_fini): Call it.
857 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
859 * regrename.h (struct du_head): Add target_data_1 and target_data_2
861 * regrename.c (create_new_chain): Clear entire struct after allocating.
863 * config/i386/i386.opt (mmitigate-rop): New option.
864 * doc/invoke.texi (mmitigate-rop): Document.
865 * config/i386/i386.c: Include "regrename.h".
866 (ix86_rop_should_change_byte_p, reg_encoded_number,
867 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
869 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
870 * config/i386/i386.md (attr "modrm_class"): New.
871 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
872 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
873 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
875 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
878 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
880 2015-11-18 Jakub Jelinek <jakub@redhat.com>
882 PR tree-optimization/68157
883 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
884 pow_stmt or mul_stmt from stmt's uid.
885 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
887 2015-11-18 Martin Liska <mliska@suse.cz>
889 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
891 2015-11-18 Martin Liska <mliska@suse.cz>
893 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
894 Fix GNU coding style.
895 (find_def_preds): Use auto_vec.
896 (destroy_predicate_vecs): Change signature of the function.
897 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
899 (simplify_preds_4): Use destroy_predicate_vecs instread of
900 just releasing preds vector.
901 (normalize_preds): Likewise.
902 (is_use_properly_guarded): Use new signature of
903 destroy_predicate_vecs.
904 (find_uninit_use): Likewise.
906 2015-11-18 Richard Biener <rguenther@suse.de>
908 PR tree-optimization/67790
909 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
910 IL rewrite for MINUS_EXPR reductions, rename back to ...
911 (vect_is_simple_reduction): ... this, removing the wrapper.
912 (vect_force_simple_reduction): Adjust.
913 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
914 reductions and make use if reduc_index in all places. For
915 the final reduction of MINUS_EXPR use PLUS_EXPR.
917 2015-11-18 Alan Modra <amodra@gmail.com>
919 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
921 * configure: Regenerate.
923 2015-11-17 Tom de Vries <tom@codesourcery.com>
925 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
927 2015-11-17 Tom de Vries <tom@codesourcery.com>
929 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
930 uses of ssa_name with constant.
932 2015-11-17 Tom de Vries <tom@codesourcery.com>
934 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
937 2015-11-17 Tom de Vries <tom@codesourcery.com>
939 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
940 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
941 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
943 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
945 * regrename.c (regrename_find_superclass): New function, code moved
947 (rename_chains): ... here. Call it.
948 * regrename.h (regrename_find_superclass): Declare.
950 * regrename.c (record_out_operands): Terminate earlyclobbered
954 * regrename.c (record_operand_use): Keep track of failed operands
955 and stop appending if we see any.
956 * regrename.h (struct operand_rr_info): Add a failed field and shrink
959 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
962 * doc/extend.texi (Common Function Attributes) [visibility]:
963 Add cross-references to matching variable and type attributes.
964 (Common Variable Attributes) [visibility]: Add missing entry.
966 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
968 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
969 entries that map directly to optabs.
971 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
973 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
974 entries that map directly to optabs.
976 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
978 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
979 * internal-fn.c (direct_internal_fn_array): Update accordingly.
980 * tree-vectorizer.h (vectorizable_function): Delete.
981 * tree-vect-stmts.c: Include internal-fn.h.
982 (vectorizable_internal_function): New function.
983 (vectorizable_function): Inline into...
984 (vectorizable_call): ...here. Explicitly reject calls that read
985 from or write to memory. Try using an internal function before
986 falling back on the old vectorizable_function behavior.
988 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
990 * target.def (builtin_vectorized_function): Take a combined_fn (in
991 the form of an unsigned int) rather than a function decl.
992 (builtin_md_vectorized_function): New.
993 * targhooks.h (default_builtin_vectorized_function): Replace the
994 fndecl argument with an unsigned int.
995 (default_builtin_md_vectorized_function): Declare.
996 * targhooks.c (default_builtin_vectorized_function): Replace the
997 fndecl argument with an unsigned int.
998 (default_builtin_md_vectorized_function): New function.
999 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
1001 * doc/tm.texi: Regenerate.
1002 * tree-vect-stmts.c (vectorizable_function): Update call to
1003 builtin_vectorized_function, also passing internal functions.
1004 Call builtin_md_vectorized_function for target-specific builtins.
1005 * config/aarch64/aarch64-protos.h
1006 (aarch64_builtin_vectorized_function): Replace fndecl argument
1007 with an unsigned int.
1008 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
1009 (aarch64_builtin_vectorized_function): Update after above changes.
1011 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
1012 fndecl argument with an unsigned int.
1013 * config/arm/arm-builtins.c: Include case-cfn-macros.h
1014 (arm_builtin_vectorized_function): Update after above changes.
1016 * config/i386/i386.c: Include case-cfn-macros.h
1017 (ix86_veclib_handler): Take a combined_fn rather than a
1019 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
1020 mathfn_built_in rather than calling builtin_decl_implicit directly.
1021 (ix86_builtin_vectorized_function) Update after above changes.
1023 * config/rs6000/rs6000.c: Include case-cfn-macros.h
1024 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
1025 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
1026 than calling builtin_decl_implicit directly.
1027 (rs6000_builtin_vectorized_function): Update after above changes.
1028 Use CASE_CFN_*. Move BUILT_IN_MD to...
1029 (rs6000_builtin_md_vectorized_function): ...this new function.
1030 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
1032 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1034 * tree-vect-patterns.c: Include internal-fn.h.
1035 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
1037 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1039 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
1040 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
1042 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1044 * builtins.c (expand_errno_check, expand_builtin_mathfn)
1045 (expand_builtin_mathfn_2): Delete.
1046 (expand_builtin): Remove handling of functions with
1047 internal function equivalents.
1048 * internal-fn.def (SET_EDOM): New internal function.
1049 * internal-fn.h (set_edom_supported_p): Declare.
1050 * internal-fn.c (expand_SET_EDOM): New function.
1051 (set_edom_supported_p): Likewise.
1052 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
1053 Rewrite comment at head of file.
1054 (is_call_dce_candidate): Rename to...
1055 (can_test_argument_range): ...this. Don't check gimple_call_lhs
1056 or gimple_call_builtin_p here.
1057 (edom_only_function): New function.
1058 (shrink_wrap_one_built_in_call_with_conds): New function, split out
1060 (shrink_wrap_one_built_in_call): ...here.
1061 (can_use_internal_fn, use_internal_fn): New functions.
1062 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
1063 for calls that have an lhs.
1064 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
1065 (pass_call_cdce::execute): Skip blocks that are optimized for size.
1066 Check gimple_call_builtin_p here. Use can_use_internal_fn for
1068 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
1071 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1073 * builtins.h (called_as_built_in): Declare.
1074 * builtins.c (called_as_built_in): Make external.
1075 * internal-fn.h (expand_internal_call): Define a variant that
1076 specifies the internal function explicitly.
1077 * internal-fn.c (expand_load_lanes_optab_fn)
1078 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
1079 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
1080 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
1081 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
1082 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
1083 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
1084 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
1085 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
1086 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
1087 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
1088 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
1089 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
1090 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
1092 (internal_fn_expanders): Update prototype.
1093 (expand_internal_call): Define a variant that specifies the
1094 internal function explicitly. Use it to implement the previous
1096 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
1097 functions as calls to internal functions.
1099 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1101 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
1102 (generated_files): Likewise.
1103 (s-cfn-operators, cfn-operators.pd): New rules.
1104 (s-match): Depend on cfn-operators.pd.
1105 * gencfn-macros.c: Expand comment to describe -o behavior.
1106 (print_define_operator_list): New function.
1107 (main): Accept -o. Call print_define_operator_list.
1108 * genmatch.c (main): Add the current directory to the include path.
1109 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
1112 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1114 * doc/match-and-simplify.texi: Document the "null" identifier.
1115 * genmatch.c (id_base::NULL_ID): New kind.
1116 (null_id): New variable.
1117 (get_operator): Add a parameter that says whether null identifiers
1119 (contains_id): New function.
1120 (lower_for): Skip substitutions that would have a null_id in
1121 either the match or the result.
1122 (parser::parse_for): Allow the null identifier to be used.
1123 (parser::parse_operator_list): Likewise.
1124 (main): Initialize null_id.
1126 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1128 * match.pd: Use HYPOT and COS rather than hypot and cos.
1129 Use CASE_CFN_* macros. Guard log/exp folds with
1130 SCALAR_FLOAT_TYPE_P.
1131 * genmatch.c (internal_fn): New enum.
1132 (fn_id::fn): Change to an unsigned int.
1133 (fn_id::fn_id): Accept internal_fn too.
1134 (add_builtin): Rename to...
1135 (add_function): ...this and turn into a template.
1136 (get_operator): Only try one variation if the original name fails.
1137 Only add _EXPR if the original name was all lower case.
1138 Try converting internal and built-in function names to their
1140 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
1141 (dt_simplify::gen_1): Likewise.
1142 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
1143 and get_call_combined_fn for generic.
1144 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
1145 (decision_tree::gen): Likewise.
1146 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
1147 Use add_function rather than add_builtin. Register internal
1149 * generic-match-head.c: Include case-cfn-macros.h.
1150 * gimple-fold.c (replace_stmt_with_simplification): Use
1151 gimple_call_combined_fn to test whether we can keep an
1153 * gimple-match.h (code_helper): Replace built_in_function
1155 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
1156 and case-fn-macros.h.
1157 (gimple_resimplify1): Use fold_const_call.
1158 (gimple_resimplify2, gimple_resimplify3): Likewise.
1159 (build_call_internal, build_call): New functions.
1160 (maybe_push_res_to_seq): Use them.
1161 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
1162 rather than a built-in function.
1163 * tree.h (build_call_expr_internal_loc): Declare.
1164 (maybe_build_call_expr_loc): Likewise.
1165 * tree.c (build_call_expr_internal_loc_array): New function.
1166 (maybe_build_call_expr_loc): Likewise.
1168 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1170 * builtins.h (mathfn_built_in): Add a variant that takes
1172 * builtins.c: Include case-cfn-macros.h.
1173 (CASE_MATHFN): Use CASE_CFN_*.
1174 (CASE_MATHFN_REENT): Use CFN_ codes.
1175 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
1176 argument with a combined_fn.
1177 (mathfn_built_in): Add a variant that takes a combined_fn.
1178 (expand_builtin_int_roundingfn_2): Update callers accordingly.
1179 (fold_builtin_sincos, fold_builtin_classify): Likewise.
1181 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1183 * tree-vect-patterns.c: Include case-cfn-macros.h.
1184 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
1186 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1188 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
1189 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
1190 (pass_cse_sincos::execute): Likewise.
1192 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1194 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
1195 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
1196 (decrement_power, acceptable_pow_call): Likewise.
1197 (attempt_builtin_copysign): Likewise.
1199 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1201 * tree-vrp.c: Include case-cfn-macros.h.
1202 (extract_range_basic): Switch on combined_fn rather than handling
1203 built-in functions and internal functions separately.
1205 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1207 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
1208 than a built_in_function.
1209 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1211 (integer_valued_real_call_p): Likewise.
1212 * fold-const.c: Include case-cfn-macros.h
1213 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
1214 (negate_expr_p): Update accordingly.
1215 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1217 (integer_valued_real_call_p): Likewise.
1218 (tree_invalid_nonnegative_warnv_p): Update accordingly.
1219 (integer_valued_real_p): Likewise.
1220 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
1221 to tree_call_nonnegative_warnv_p.
1222 (gimple_call_integer_valued_real_p): Likewise
1223 integer_valued_real_call_p.
1224 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
1225 (backprop::process_builtin_call_use): Extend to combined_fn.
1226 (strip_sign_op_1): Likewise.
1227 (backprop::process_use): Don't check for built-in calls here.
1228 (backprop::execute): Likewise.
1229 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
1231 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1233 * fold-const-call.h (fold_const_call): Replace built_in_function
1234 arguments with combined_fn arguments.
1235 * fold-const-call.c: Include case-cfn-macros.h.
1236 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
1237 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
1238 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
1239 built_in_function arguments with combined_fn arguments.
1240 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
1241 (fold_builtin_3): Update calls to fold_const_call.
1243 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1245 * Makefile.in (HASH_TABLE_H): Add GGC_H.
1246 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
1247 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
1248 (build/gencfn-macros$(build_exeext): New rules.
1249 (genprogerr): Add cfn-macros.
1250 * hash-set.h (hash_set): Use the traits value_type as the key.
1251 * gencfn-macros.c: New file.
1253 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1255 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
1256 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
1257 * builtins.c (associated_internal_fn): Handle them.
1259 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1261 * builtins.h (associated_internal_fn): Declare.
1262 (replacement_internal_fn): Likewise.
1263 * builtins.c: Include internal-fn.h
1264 (associated_internal_fn, replacement_internal_fn): New functions.
1265 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
1266 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
1267 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
1268 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
1269 (LDEXP): New functions.
1270 * internal-fn.c: Include recog.h.
1271 (unary_direct, binary_direct): New macros.
1272 (expand_direct_optab_fn): New function.
1273 (expand_unary_optab_fn): New macro.
1274 (expand_binary_optab_fn): Likewise.
1275 (direct_unary_optab_supported_p): Likewise.
1276 (direct_binary_optab_supported_p): Likewise.
1278 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1280 * coretypes.h (tree_pair): New type.
1281 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
1282 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
1283 * internal-fn.h (direct_internal_fn_info): New structure.
1284 (direct_internal_fn_array): Declare.
1285 (direct_internal_fn_p, direct_internal_fn): New functions.
1286 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
1287 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
1288 (mask_store_direct, store_lanes_direct): New macros.
1289 (direct_internal_fn_array) New array.
1290 (get_multi_vector_move): Return the optab handler without asserting
1291 that it is available.
1292 (expand_LOAD_LANES): Rename to...
1293 (expand_load_lanes_optab_fn): ...this and add an optab argument.
1294 (expand_STORE_LANES): Rename to...
1295 (expand_store_lanes_optab_fn): ...this and add an optab argument.
1296 (expand_MASK_LOAD): Rename to...
1297 (expand_mask_load_optab_fn): ...this and add an optab argument.
1298 (expand_MASK_STORE): Rename to...
1299 (expand_mask_store_optab_fn): ...this and add an optab argument.
1300 (direct_internal_fn_types, direct_optab_supported_p)
1301 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
1302 (direct_internal_fn_supported_p): New functions.
1303 (direct_mask_load_optab_supported_p): New macro.
1304 (direct_load_lanes_optab_supported_p): Likewise.
1305 (direct_mask_store_optab_supported_p): Likewise.
1306 (direct_store_lanes_optab_supported_p): Likewise.
1308 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1310 * tree-core.h (internal_fn): Move immediately after the definition
1311 of built_in_function.
1312 (combined_fn): New enum.
1313 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
1314 (internal_fn_p, as_internal_fn): New functions.
1315 (get_call_combined_fn, combined_fn_name): Declare.
1316 * tree.c (get_call_combined_fn): New function.
1317 (combined_fn_name): Likewise.
1318 * gimple.h (gimple_call_combined_fn): Declare.
1319 * gimple.c (gimple_call_combined_fn): New function.
1321 2015-11-17 Martin Sebor <msebor@redhat.com>
1324 * cp/init.c (build_new_1): Check for expression constness
1327 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
1330 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
1332 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
1333 discussion of the Microsoft structure layout details here from
1334 its former home in extend.texi.
1335 * doc/extend.texi (x86 Variable Attributes): Replace detailed
1336 discussion with pointer to its new location. Add cross-reference
1337 to corresponding type attributes.
1338 (x86 Type Attributes): Add cross-references to command-line options
1339 and variable attributes.
1341 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
1344 * targhooks.c (default_get_mask_mode): Filter out
1345 scalar modes returned by mode_for_vector.
1347 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1350 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
1351 offset from dstbase and use it appropriately in
1352 adjust_automodify_address.
1353 (arm_block_set_aligned_vect): Likewise.
1355 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
1357 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
1358 (MULTILIB_DIRNAMES): Adjust accordingly.
1360 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
1362 * config/aarch64/aarch64-cores.def (cortex-a35): New.
1363 * config/aarch64/aarch64.c (cortexa35_tunings): New.
1364 * config/aarch64/aarch64-tune.md: Regenerate.
1365 * doc/invoke.texi (-mcpu): Add Cortex-A35
1367 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
1370 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
1372 * config/i386/sse.md (*mov<mode>_internal): Always enable
1373 AVX and SSE unaligned moves for IAMCU.
1375 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
1377 * tree-if-conv.c: Include varasm.h
1378 (ref_DR_map): Define.
1379 (baseref_DR_map): Like wise
1380 (struct ifc_dr): Add new tree predicate field.
1381 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
1382 (memrefs_read_or_written_unconditionally): Remove.
1383 (write_memrefs_written_at_least_once): Remove.
1384 (ifcvt_memrefs_wont_trap): Use hash maps to query
1385 unconditional read/written information.
1386 (if_convertible_loop_p_1): Initialize hash maps and predicates
1387 before hashing data references and delete hashmaps at the end.
1389 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
1392 * doc/invoke.texi (Optimize Options): Move @end table to the right
1395 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
1398 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
1401 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
1403 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
1404 128-bit types, just types that fit in a single vector.
1405 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
1407 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
1409 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
1410 in the user documentation.
1411 (define_peephole2, define_split): Similarly.
1413 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
1415 * lto-streamer-out.c (write_global_references): Adjust integer type.
1416 (lto_output_decl_state_refs): Likewise.
1418 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
1420 * config/arm/arm-cores.def (cortex-a35): New.
1421 * config/arm/arm.c (arm_cortex_a35_tune): New.
1422 * config/arm/arm-tables.opt: Regenerate.
1423 * config/arm/arm-tune.md: Regenerate.
1424 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
1425 * config/arm/t-aprofile: Likewise.
1426 * doc/invoke.texi (-mcpu): Likewise.
1428 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
1430 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
1431 and qdf24xx and xgene1 to match -march=armv8-a.
1433 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1435 PR rtl-optimization/68330
1436 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
1437 of LSHIFTRT by a non-zero constant integer.
1439 2015-11-16 Richard Biener <rguenther@suse.de>
1441 PR tree-optimization/68306
1442 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
1443 bogus copying from verify_data_ref_alignment and use continue
1446 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
1447 Kaz Kojima <kkojima@gcc.gnu.org>
1450 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
1452 (*addsi3): Add another insn_and_split variant for reload.
1454 2015-11-16 Richard Biener <rguenther@suse.de>
1457 * cfgexpand.c (pass_expand::execute): Destroy the edge
1458 redirection var map before setting RTL CFG hooks.
1460 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
1462 * config/i386/sse.md (reduc_splus_v8df): Rename to...
1463 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
1465 (reduc_splus_v4df): Rename to...
1466 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
1468 (reduc_splus_v2df): Rename to...
1469 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
1471 (reduc_splus_v16sf): Rename to...
1472 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
1474 (reduc_splus_v8sf): Rename to...
1475 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
1477 (reduc_splus_v4sf): Rename to...
1478 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
1480 (reduc_<code>_<mode>, all 3 variants): Rename each to...
1481 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
1483 (reduc_umin_v8hf): Rename to...
1484 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
1486 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1488 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
1489 without additional conditions.
1490 * doc/extend.texi (@item simd): New.
1492 2015-11-16 Tom de Vries <tom@codesourcery.com>
1494 * passes.c (first_pass_instance): Remove variable.
1495 (execute_todo): Remove setting of first_pass_instance.
1496 * tree-pass.h (first_pass_instance): Remove declaration.
1498 2015-11-16 Tom de Vries <tom@codesourcery.com>
1500 * passes.def: Add arg to pass_ccp pass instantiation.
1501 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
1502 instead of first_pass_instance.
1503 (do_ssa_ccp): Add and handle param nonzero_p.
1504 (pass_ccp::pass_ccp): Initialize nonzero_p.
1505 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
1506 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
1507 (pass_ccp::nonzero_p): New private member.
1509 2015-11-16 Tom de Vries <tom@codesourcery.com>
1511 * passes.def: Add arg to pass_object_sizes pass instantiation.
1512 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
1514 (pass_object_sizes::set_pass_param): New member function. Set
1516 (pass_object_sizes::insert_min_max_p): New private member.
1517 (pass_object_sizes::execute): Use insert_min_max_p instead of
1518 first_pass_instance.
1520 2015-11-16 Tom de Vries <tom@codesourcery.com>
1522 * passes.def: Add arg to pass_dominator pass instantiation.
1523 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
1525 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
1526 may_peel_loop_headers_p.
1527 (pass_dominator::set_pass_param): New member function. Set
1528 may_peel_loop_headers_p.
1529 (pass_dominator::may_peel_loop_headers_p): New private member.
1530 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
1531 first_pass_instance.
1533 2015-11-16 Tom de Vries <tom@codesourcery.com>
1535 * passes.def: Add arg to pass_reassoc pass instantiation.
1536 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
1537 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
1538 of first_pass_instance.
1539 (execute_reassoc): Add and handle insert_powi_p parameter.
1540 (pass_reassoc::insert_powi_p): New private member.
1541 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
1542 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
1543 (pass_reassoc::execute): Call execute_reassoc with extra arg.
1545 2015-11-16 Tom de Vries <tom@codesourcery.com>
1547 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
1548 * gen-pass-instances.awk (handle_line): Same.
1549 * pass_manager.h (class pass_manager): Define and undefine
1551 * passes.c (opt_pass::set_pass_param): New function.
1552 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
1553 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
1554 * tree-pass.h (gimple_opt::set_pass_param): Declare.
1555 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
1556 warn_array_bounds_p parameter.
1557 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
1558 (pass_vrp::set_pass_param): New function.
1559 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
1560 (pass_vrp::warn_array_bounds_p): New private member.
1562 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
1564 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
1565 (output_probe_stack_range): Rotate the loop and simplify.
1567 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
1569 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
1570 (output_probe_stack_range): Rotate the loop and simplify.
1572 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
1574 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
1575 an lea instruction when possible.
1576 (output_adjust_stack_and_probe): Rotate the loop and simplify.
1577 (ix86_emit_probe_stack_range): Adjust.
1578 (output_probe_stack_range): Rotate the loop and simplify.
1580 2015-11-16 Christian Bruel <christian.bruel@st.com>
1582 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
1583 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
1584 with appropriate pragma GCC target.
1586 2015-11-16 Christian Bruel <christian.bruel@st.com>
1589 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
1590 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
1592 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
1594 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
1595 (cortexa57_tunings): Use it.
1597 2015-11-16 Christian Bruel <christian.bruel@st.com>
1600 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
1601 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
1602 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
1604 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
1605 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
1606 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
1607 * doc/extend.texi (-mfpu=): Describe attribute.
1609 2015-11-16 Christian Bruel <christian.bruel@st.com>
1612 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
1613 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
1614 arm_init_neon_builtins.
1615 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
1616 (arm_init_neon_builtins_internal)
1617 (arm_init_crypto_builtins_internal):
1618 Test and set neon_set_p, neon_crypto_set_p.
1619 (neon_set_p, neon_crypto_set_p): New static booleans.
1621 2015-11-16 Christian Bruel <christian.bruel@st.com>
1624 * config/arm/arm.c (arm_fpu_desc): Remove.
1625 (all_fpus): Make global.
1626 (arm_option_override): Use FPU TARGET accessors.
1627 (arm_declare_function_name): Likewise.
1628 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
1629 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
1630 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
1631 (TARGET_NEON): Likewise.
1632 (all_fpus): Declare extern.
1633 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
1634 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
1636 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1639 * sdbout.c: Include emit-rtl.h and function.h.
1641 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
1643 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
1644 Remove support for FreeBSD 5 and earlier.
1646 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1648 * configure: Regenerate.
1649 * configure.ac: Always define ENABLE_OFFLOADING.
1650 * cgraph.c (cgraph_node::create): Adjust.
1651 * gcc.c (process_command): Likewise.
1652 * omp-low.c (create_omp_child_function): Likewise.
1653 (expand_omp_target): Likewise.
1654 * varpool.c (varpool_node::get_create): Likewise.
1656 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1658 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
1659 * df-scan.c (df_get_exit_block_use_set): Adjust.
1660 * except.c (expand_eh_return): Likewise.
1662 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1664 * config/i386/i386.h (TARGET_PECOFF): Remove define.
1665 * defaults.h (TARGET_PECOFF): New default definition.
1666 * varasm.c (handle_vtv_comdat_section): Adjust.
1668 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1670 * defaults.h: New definition of SDB_DEBUGGING_INFO.
1671 * doc/tm.texi: Regenerate.
1672 * doc/tm.texi.in: Adjust.
1673 * final.c (rest_of_clean_state): Remove check if
1674 SDB_DEBUGGING_INFO is defined.
1675 * function.c (number_blocks): Likewise.
1676 * output.h: Likewise.
1677 * sdbout.c: Likewise.
1678 * toplev.c (process_options): Likewise.
1680 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1682 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
1683 (enum sdb_masks): Likewise.
1684 * sdbout.c (plain_type_1): Likewise.
1685 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
1687 2015-11-14 Jakub Jelinek <jakub@redhat.com>
1689 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
1690 internal calls - 0 if ordered simd and 1 for ordered threads simd.
1691 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
1692 argument is 1, replace it with GOMP_ordered_* call instead of removing
1695 2015-11-13 Rich Felker <dalias@libc.org>
1697 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
1698 address loading hack for FDPIC targets.
1700 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
1701 Jeff Law <law@redhat.com>
1703 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
1704 * common.opt (-fsplit-paths): New flag controlling path splitting.
1705 * doc/invoke.texi (fsplit-paths): Document.
1706 * opts.c (default_options_table): Add -fsplit-paths to -O2.
1707 * passes.def: Add split_paths pass.
1708 * timevar.def (TV_SPLIT_PATHS): New timevar.
1709 * tracer.c: Include "tracer.h"
1710 (ignore_bb_p): No longer static.
1711 (transform_duplicate): New function, broken out of tail_duplicate.
1712 (tail_duplicate): Use transform_duplicate.
1713 * tracer.h (ignore_bb_p): Declare
1714 (transform_duplicate): Likewise.
1715 * tree-pass.h (make_pass_split_paths): Declare.
1716 * gimple-ssa-split-paths.c: New file.
1718 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
1719 Marek Polacek <polacek@redhat.com>
1720 Jason Merrill <jason@redhat.com>
1722 * convert.c (maybe_fold_build1_loc): New.
1723 (maybe_fold_build2_loc): New.
1724 (convert_to_pointer_1): Split out from convert_to_pointer.
1725 (convert_to_pointer_nofold): New.
1726 (convert_to_real_1): Split out from convert_to_real.
1727 (convert_to_real_nofold): New.
1728 (convert_to_integer_1): Split out from convert_to_integer.
1729 (convert_to_integer_nofold): New.
1730 (convert_to_complex_1): Split out from convert_to_complex.
1731 (convert_to_complex_nofold): New.
1732 * convert.h: Declare new functions.
1733 * tree-complex.c (create_one_component_var): Break up line to
1734 avoid sequence point issues.
1736 2015-11-13 Jason Merrill <jason@redhat.com>
1738 * fold-const.c (fold_convert_const): Fold changing cv-quals on
1741 * hash-map.h (hash_map::empty): New.
1743 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1745 * gcc/omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
1746 (oacc_loop_fixed_partitions): Correct return type to bool.
1747 (oacc_loop_auto_partitions): New.
1748 (oacc_loop_partition): Take mask argument, call
1749 oacc_loop_auto_partitions.
1750 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
1752 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1754 * config/rs6000/constraints.md (we constraint): New constraint for
1755 64-bit power9 vector support.
1756 (wL constraint): New constraint for the element in a vector that
1757 can be addressed by the MFVSRLD instruction.
1759 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
1761 (convert_int_to_float128): Likewise.
1762 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
1763 hardware support for IEEE 128-bit floating point.
1764 (rs6000_expand_float128_convert): Likewise.
1765 (convert_float128_to_int): Likewise.
1766 (convert_int_to_float128): Likewise.
1768 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
1769 ISA 3.0 hardware IEEE 128-bit floating point.
1770 (UNSPEC_IEEE128_MOVE): Likewise.
1771 (UNSPEC_IEEE128_CONVERT): Likewise.
1772 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
1773 (Ff): Add support for DImode.
1775 (any_fix code iterator): New and updated iterators for IEEE
1776 128-bit floating point hardware support.
1777 (any_float code iterator): Likewise.
1778 (s code attribute): Likewise.
1779 (su code attribute): Likewise.
1780 (az code attribute): Likewise.
1781 (uns code attribute): Likewise.
1782 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
1783 floating point hardware support.
1784 (abs<mode>2, FLOAT128 iterator): Likewise.
1785 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
1786 floating point hardware.
1787 (sub<mode>3, IEEE128 iterator): Likewise.
1788 (mul<mode>3, IEEE128 iterator): Likewise.
1789 (div<mode>3, IEEE128 iterator): Likewise.
1790 (copysign<mode>3, IEEE128 iterator): Likewise.
1791 (sqrt<mode>2, IEEE128 iterator): Likewise.
1792 (neg<mode>2, IEEE128 iterator): Likewise.
1793 (abs<mode>2, IEEE128 iterator): Likewise.
1794 (nabs<mode>2, IEEE128 iterator): Likewise.
1795 (fma<mode>4_hw, IEEE128 iterator): Likewise.
1796 (fms<mode>4_hw, IEEE128 iterator): Likewise.
1797 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
1798 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
1799 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
1800 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
1801 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
1802 (fix_fixuns code attribute): Likewise.
1803 (float_floatuns code attribute): Likewise.
1804 (fix<uns>_<mode>si2_hw): Likewise.
1805 (fix<uns>_<mode>di2_hw): Likewise.
1806 (float<uns>_<mode>si2_hw): Likewise.
1807 (float<uns>_<mode>di2_hw): Likewise.
1808 (xscvqp<su>wz_<mode>): Likewise.
1809 (xscvqp<su>dz_<mode>): Likewise.
1810 (xscv<su>dqp_<mode): Likewise.
1811 (ieee128_mfvsrd): Likewise.
1812 (ieee128_mfvsrwz): Likewise.
1813 (ieee128_mtvsrw): Likewise.
1814 (ieee128_mtvsrd): Likewise.
1815 (trunc<mode>df2_odd): Likewise.
1816 (cmp<mode>_h): Likewise.
1817 (128-bit GPR splitters): Don't split a 128-bit move that is a
1818 direct move between GPR and vector registers using ISA 3.0 direct
1820 (maddld4): Add support for the ISA 3.0 integer multiply-add
1823 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
1825 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
1826 constraint. Disable the VSX<->GPR direct move helpers if we have
1827 the MFVSRLD and MTVSRDD instructions.
1828 (rs6000_secondary_reload_simple_move): Add support for doing
1829 vector direct moves directly without additional scratch registers
1830 if we have ISA 3.0 instructions.
1831 (rs6000_secondary_reload_direct_move): Update comments.
1832 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
1835 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
1836 direct move instructions.
1837 (vsx_movti_64bit): Likewise.
1838 (vsx_extract_<mode>): Likewise.
1840 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
1841 macros for ISA 3.0 direct move instructions.
1842 (TARGET_DIRECT_MOVE_128): Likewise.
1843 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
1846 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
1847 constraints. Update wa documentation to say not to use %x<n> on
1848 instructions that only take Altivec registers.
1850 2015-11-13 David Malcolm <dmalcolm@redhat.com>
1852 * Makefile.in (OBJS): Add gcc-rich-location.o.
1853 * diagnostic.c (diagnostic_append_note): Pass line_table to
1855 (emit_diagnostic): Likewise.
1857 (inform_n): Likewise.
1858 (warning): Likewise.
1859 (warning_at): Likewise.
1860 (warning_n): Likewise.
1861 (pedwarn): Likewise.
1862 (permerror): Likewise.
1864 (error_n): Likewise.
1865 (error_at): Likewise.
1867 (fatal_error): Likewise.
1868 (internal_error): Likewise.
1869 (internal_error_no_backtrace): Likewise.
1870 (source_range::debug): Likewise.
1871 * gcc-rich-location.c: New file.
1872 * gcc-rich-location.h: New file.
1873 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
1874 (warning_at): Likewise.
1875 * gimple.h (gimple_set_block): Use set_block function.
1876 * input.c (dump_line_table_statistics): Dump stats on how many
1877 ranges were optimized vs how many needed ad-hoc table.
1878 (write_digit_row): Add "map" param; use its range_bits
1879 to calculate the per-character offset.
1880 (dump_location_info): Print the range and column bits for each
1881 ordinary map. Use the range bits to calculate the per-character
1882 offset. Pass the map as a new param to the various calls to
1883 write_digit_row. Eliminate uses of
1884 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
1885 * print-tree.c (print_node): Print any source range information.
1886 * rtl-error.c (diagnostic_for_asm): Likewise.
1887 * toplev.c (general_init): Initialize line_table's
1889 * tree-cfg.c (move_block_to_fn): Likewise.
1890 (move_block_to_fn): Likewise.
1891 * tree-inline.c (copy_phis_for_bb): Likewise.
1892 * tree.c (tree_set_block): Likewise.
1893 (get_pure_location): New function.
1894 (set_source_range): New functions.
1895 (set_block): New function.
1896 (set_source_range): New functions.
1897 * tree.h (CAN_HAVE_RANGE_P): New.
1898 (EXPR_LOCATION_RANGE): New.
1899 (EXPR_HAS_RANGE): New.
1900 (get_expr_source_range): New inline function.
1901 (DECL_LOCATION_RANGE): New.
1902 (set_source_range): New decls.
1903 (get_decl_source_range): New inline function.
1905 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
1907 PR tree-optimization/67682
1908 * tree-vect-slp.c (vect_split_slp_store_group): New.
1909 (vect_analyze_slp_instance): During basic block SLP, recurse on
1910 subgroups if vect_build_slp_tree fails after 1st vector.
1912 2015-11-13 Christian Bruel <christian.bruel@st.com>
1915 * config/arm/arm.c (arm_option_override): Move NEON check...
1916 (arm_option_check_internal): here
1917 (arm_file_start): Move .fpu print...
1918 (arm_declare_function_name): here
1919 (arm_option_print): Dump current fpu name.
1920 * config/arm/arm.opt (arm_fpu_index): Mark Save.
1922 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
1923 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1925 * combine.c (subst): Don't substitute or simplify when
1926 handling register-wise widening multiply.
1927 (force_to_mode): Likewise.
1929 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
1931 PR tree-optimization/68264
1932 * tree-call-cdce.c (gen_one_condition): Update commentary.
1933 (gen_conditions_for_pow_int_base): Invert the sense of the tests
1934 passed to gen_one_condition.
1935 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
1936 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
1937 using EDGE_FALSE_VALUE for edges to the call block and
1938 EDGE_TRUE_VALUE for the others.
1940 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1942 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
1945 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1947 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
1949 2015-11-13 Tom de Vries <tom@codesourcery.com>
1951 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
1954 2015-11-13 Tom de Vries <tom@codesourcery.com>
1956 * gen-pass-instances.awk (handle_line): Add args_str variable.
1958 2015-11-13 Martin Liska <mliska@suse.cz>
1960 * graphite-poly.c (free_scop): Release scop->drs vector.
1961 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
1963 (try_generate_gimple_bb): Use vNULL as a default initialization
1966 2015-11-13 Martin Liska <mliska@suse.cz>
1969 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
1970 Replace array initialization (using a variable post-increment)
1971 that possible triggers multiple unsequenced modifications
1972 with a pair of pushes to a vector.
1974 2015-11-13 Richard Biener <rguenther@suse.de>
1976 PR tree-optimization/68306
1977 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
1978 loop related checks ...
1979 (vect_verify_datarefs_alignment): ... here.
1980 (vect_slp_analyze_and_verify_node_alignment): Compute and
1981 verify alignment of the single DR that it matters.
1982 * tree-vect-stmts.c (vectorizable_store): Add an assert.
1983 (vectorizable_load): Add a comment.
1984 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
1985 for determining load cost.
1987 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
1989 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
1990 mix of boolean and integer vectors in a single statement.
1991 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
1992 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
1993 determine constant type.
1994 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
1995 for loop invariants.
1997 2015-11-13 Alan Hayward <alan.hayward@arm.com>
1999 PR tree-optimization/66558
2000 * tree-vect-loop.c (is_integer_induction):Add.
2001 (vectorizable_reduction): Add integer induction checks.
2003 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
2005 Revert [ARM] Remove neon-testgen.ml and generated tests.
2007 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
2009 [ARM] Remove neon-testgen.ml and generated tests.
2011 * config/arm/neon-testgen.ml: Remove.
2013 2015-11-13 Richard Biener <rguenther@suse.de>
2015 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
2016 Signal fatal failure if early checks fail.
2017 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
2018 do not bother testing further vector sizes.
2020 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
2022 * config/i386/predicates.md (misaligned_operand): Return true if
2023 operand is aligned to less than its natural alignmnet.
2025 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2027 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
2028 (vec_cmpu@var{m}@var{n}): New item.
2029 (vcond@var{m}@var{n}): Specify comparison is signed.
2030 (vcondu@var{m}@var{n}): New item.
2031 (vcond_mask_@var{m}@var{n}): New item.
2032 (maskload@var{m}@var{n}): New item.
2033 (maskstore@var{m}@var{n}): New item.
2035 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2037 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
2038 types of stored value and storage are compatible.
2040 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
2042 * gcc.c (POST_LINK_SPEC): Define if not already defined.
2043 (LINK_COMMAND_SPEC): Use post_link.
2044 (post_link_spec): New, initialize to POST_LINK_SPEC.
2045 (post_link): Initialize new static spec.
2046 * doc/tm.texi.in (POST_LINK_SPEC): Document.
2047 * doc/tm.texi: Regenerated.
2049 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2052 * Makefile.in (GCC_OBJS): Add spellcheck.o.
2053 (OBJS): Add spellcheck-tree.o.
2054 * gcc.c: Include "spellcheck.h".
2055 (suggest_option): New function.
2056 (driver::handle_unrecognized_options): Call suggest_option to
2057 provide a hint about misspelled options.
2058 * spellcheck.c: Update file comment.
2059 (levenshtein_distance): Convert 4-param implementation from static
2060 to extern scope. Remove note about unit tests from leading
2061 comment for const char * implementation. Move tree
2062 implementation to...
2063 * spellcheck-tree.c: New file.
2064 * spellcheck.h (levenshtein_distance): Add 4-param decl.
2066 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2068 * Makefile.in (OBJS): Add spellcheck.o.
2069 * spellcheck.c: New file.
2070 * spellcheck.h: New file.
2072 2015-11-13 James Bowman <james.bowman@ftdichip.com>
2074 * config/ft32/ft32.md (*sne): New insn pattern.
2076 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
2078 * gcc/cprop.c (is_too_expensive): Remove.
2080 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
2082 * gcc/gcse.h (gcse_or_cprop_is_too_expensive): Declare.
2083 * gcc/gcse.c (is_too_expensive): Rename to ...
2084 (gcse_or_cprop_is_too_expensive): ... this.
2085 Expand warning to add required size of max-gcse-memory.
2086 (one_pre_gcse_pass): Use it.
2087 (one_code_hoisting_pass): Use it.
2088 * gcc/params.def (max-gcse-memory): Increase from 50MB to 128MB.
2090 2015-11-12 James Norris <jnorris@codesourcery.com>
2091 Joseph Myers <joseph@codesourcery.com>
2093 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
2094 GF_OMP_TARGET_KIND_OACC_DECLARE.
2095 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
2096 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2097 * gimplify.c (oacc_declare_returns): New.
2098 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
2099 (device_resident_p): New function.
2100 (oacc_default_clause): Handle device_resident clause.
2101 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
2102 (gimplify_expr): Handle OACC_DECLARE.
2103 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
2104 * omp-low.c (expand_omp_target): Handle
2105 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
2106 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
2107 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
2108 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
2109 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2110 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
2111 GOMP_MAP_DEVICE_RESIDENT.
2113 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
2115 [ARM] Remove neon-testgen.ml and generated tests.
2117 * config/arm/neon-testgen.ml: Remove.
2119 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
2121 * config/aarch64/aarch64-cores.def (qdf24xx): New.
2122 * config/aarch64/aarch64-tune.md: Regenerated.
2123 * config/arm/arm-cores.def (qdf24xx): New.
2124 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
2125 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
2126 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
2127 (ARM Options/-mtune): Likewise.
2129 2015-11-12 Martin Liska <mliska@suse.cz>
2131 * config/i386/i386.c (ix86_valid_target_attribute_p):
2132 Finalize options at the of the function.
2133 * gcc.c (driver_get_configure_time_options): Call newly
2134 introduced init_opts_obstack.
2135 * lto-wrapper.c (main): Likewise.
2136 * opts.c (init_opts_obstack): New function.
2137 (init_options_struct): Call newly introduced init_opts_obstack.
2138 * opts.h (init_options_struct): Declare.
2140 2015-11-12 Martin Liska <mliska@suse.cz>
2143 * ipa-icf.c (void sem_item::set_hash): New function.
2144 (sem_function::get_hash): Use renamed m_hash member variable.
2145 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
2146 (sem_item::update_hash_by_local_refs): Likewise.
2147 (sem_variable::get_hash): Use renamed m_hash member variable.
2148 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
2149 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
2150 (sem_item_optimizer::build_graph): As the hash value of an item
2151 is lazy initialized, force the calculation.
2152 * ipa-icf.h (set_hash): Declare new function and rename hash member
2155 2015-11-12 Richard Biener <rguenther@suse.de>
2157 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
2158 Rename to vect_slp_analyze_instance_dependence.
2159 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2160 Remove WAR special-case.
2161 (vect_slp_analyze_node_dependences): Instead add more specific
2162 code here, not relying on other instances being vectorized.
2163 (vect_slp_analyze_instance_dependence): Adjust accordingly.
2164 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
2165 vertical space in dump files.
2166 (vect_print_slp_tree): Likewise.
2167 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
2168 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
2169 not vectorized stmts until after dependence analysis removed
2170 instances. Merge alignment and dependence checks.
2171 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
2174 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
2176 * config/aarch64/aarch64-protos.h (tune_params): Add new members
2177 "max_case_values" and "cache_line_size".
2178 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
2180 (aarch64_override_options_internal): Tune heuristics based on new
2181 members in "tune_params".
2182 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2184 2015-11-12 Richard Biener <rguenther@suse.de>
2186 PR tree-optimization/68306
2187 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
2188 relevant and vectorizable checks here.
2189 (vect_verify_datarefs_alignment): Add relevant check here.
2191 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
2193 * gimplify.c (oacc_default_clause): New.
2194 (omp_notice_variable): Call it.
2196 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
2198 PR tree-optimization/68305
2199 * tree-vect-slp.c (vect_get_constant_vectors): Support
2200 COND_EXPR with SSA_NAME as a condition.
2202 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
2204 * config/visium/visium-protos.h (notice_update_cc): Delete.
2205 (print_operand): Likewise.
2206 (print_operand_address): Likewise.
2208 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2210 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
2211 FUNCTION_VALUE_REGNO_P): Remove.
2212 * config/alpha/alpha-protos.h (function_value): Remove.
2213 * config/alpha/alpha.c (function_value): Rename to...
2214 (alpha_function_value_1): ... this. Make static.
2215 (alpha_function_value, alpha_libcall_value,
2216 alpha_function_value_regno_p): New functions.
2217 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2218 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2220 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2222 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2223 * config/alpha/alpha.c (alpha_memory_latency): Make static.
2224 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
2225 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2227 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
2230 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
2231 assertion on the CFA register.
2233 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
2235 * expr.c (do_store_flag): Expand vector comparison as
2236 VEC_COND_EXPR if vector comparison is not supported by target.
2238 2015-11-12 Renlin Li <renlin.li@arm.com>
2240 * config/arm/arm.md (addsi3_compare_op2): Make the order of
2241 assembly pattern consistent with constraint order.
2243 2015-11-12 Tom de Vries <tom@codesourcery.com>
2245 * gen-pass-instances.awk (handle_line): Simplify match regexp.
2247 2015-11-12 Tom de Vries <tom@codesourcery.com>
2249 * gen-pass-instances.awk (handle_line): Simplify init of
2252 2015-11-12 Tom de Vries <tom@codesourcery.com>
2254 * gen-pass-instances.awk (handle_line): Rename var where to
2257 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
2259 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
2260 do not expand to rtl.
2262 2015-11-12 Richard Biener <rguenther@suse.de>
2264 PR tree-optimization/58497
2265 * tree-vect-generic.c: Include gimplify.h.
2266 (tree_vec_extract): Lookup constant/constructor DEFs.
2267 (do_cond): Unshare cond.
2269 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2271 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
2272 combined insn if the alignment of vector mode memory operand
2273 is less than ssememalign.
2275 2015-11-12 Tom de Vries <tom@codesourcery.com>
2277 * gen-pass-instances.awk (handle_line): Print parentheses and
2278 pass_name explicitly.
2280 2015-11-12 Tom de Vries <tom@codesourcery.com>
2282 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
2285 2015-11-12 Tom de Vries <tom@codesourcery.com>
2287 * gen-pass-instances.awk (handle_line): Add comments.
2289 2015-11-12 Tom de Vries <tom@codesourcery.com>
2291 * gen-pass-instances.awk (handle_line): Rename len_of_end to
2294 2015-11-12 Tom de Vries <tom@codesourcery.com>
2296 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
2298 2015-11-12 Tom de Vries <tom@codesourcery.com>
2300 * gen-pass-instances.awk (handle_line): Restructure using early-out.
2302 2015-11-12 Tom de Vries <tom@codesourcery.com>
2304 * gen-pass-instances.awk (handle_line): Unify semicolon use.
2306 2015-11-12 Tom de Vries <tom@codesourcery.com>
2308 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
2310 2015-11-12 Tom de Vries <tom@codesourcery.com>
2312 * gen-pass-instances.awk: Add emacs indent setting.
2314 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2316 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
2318 Move Convert A/(B/C) to (A/B)*C to match.pd.
2319 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
2320 Move Optimize (X & (-A)) / A where A is a power of 2, to
2321 X >> log2(A) to match.pd.
2323 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
2324 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
2325 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
2327 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
2329 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
2331 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
2333 (neon_vst2_lane<mode>): Likewise.
2334 (neon_vld3_lane<mode>): Likewise.
2335 (neon_vst3_lane<mode>): Likewise.
2336 (neon_vld4_lane<mode>): Likewise.
2337 (neon_vst4_lane<mode>): Likewise.
2339 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
2340 Sebastian Pop <s.pop@samsung.com>
2342 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2343 New member codegen_error
2344 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
2346 (translate_isl_ast_node_user): Early return in case of error.
2347 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2348 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
2349 (add_parameters_to_ivs_params): Remove macro.
2350 (graphite_regenerate_ast_isl): Add if_region pointer to region.
2351 * graphite-poly.c (new_poly_dr): Remove macro.
2353 (new_gimple_poly_bb): Same.
2354 (free_gimple_poly_bb): Same.
2355 (print_scop_params): Same.
2356 * graphite-poly.h (struct poly_dr): Same.
2357 (struct poly_bb): Add new_bb.
2358 (gbb_from_bb): Remove dead code.
2359 (pbb_from_bb): Same.
2360 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
2361 (parameter_index_in_region): Same.
2362 (find_scop_parameters): Same.
2363 (build_cross_bb_scalars_def): New.
2364 (build_cross_bb_scalars_use): New.
2365 (graphite_find_cross_bb_scalar_vars): New
2366 (try_generate_gimple_bb): Reads and Writes.
2367 (build_alias_set): Move.
2368 (gather_bbs::before_dom_children): Gather bbs visited.
2369 (build_scops): call build_alias_set.
2370 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
2371 (remove_simple_copy_phi): Delete.
2372 (remove_invariant_phi): Delete.
2373 (simple_copy_phi_p): Delete.
2374 (reduction_phi_p): Delete.
2375 (isl_id_for_dr): Remove unused param.
2376 (parameter_index_in_region_1): Remove macro usage.
2377 (set_scop_parameter_dim): Same.
2378 (add_param_constraints): Same.
2379 (add_conditions_to_constraints): Same
2380 (build_scop_iteration_domain): Same.
2381 (pdr_add_alias_set): Comment.
2382 (add_scalar_version_numbers): New.
2383 (build_poly_dr): ISL id.
2384 (build_scop_drs): Move.
2385 (build_poly_sr_1): Same.
2386 (insert_stmts): Remove.
2387 (build_poly_sr): New.
2388 (new_pbb_from_pbb): Delete.
2389 (insert_out_of_ssa_copy_on_edge): Delete.
2390 (create_zero_dim_array): Delete.
2391 (scalar_close_phi_node_p): Delete.
2392 (propagate_expr_outside_region): Delete.
2393 (rewrite_close_phi_out_of_ssa): Delete.
2394 (rewrite_phi_out_of_ssa): Delete.
2395 (rewrite_degenerate_phi): Delete.
2396 (rewrite_reductions_out_of_ssa): Delete.
2397 (rewrite_cross_bb_scalar_dependence): Delete.
2398 (handle_scalar_deps_crossing_scop_limits):
2399 (rewrite_cross_bb_scalar_deps): Delete.
2400 (build_poly_scop): Remove calls to out-of-ssa functions.
2401 * graphite.c (graphite_transform_loops): Early return in case of
2403 * sese.c (debug_rename_map_1): Delete.
2404 (debug_rename_map): Delete.
2405 (sese_record_loop): Remove macro.
2406 (build_sese_loop_nests): Same.
2407 (new_sese_info): Same.
2408 (free_sese_info): Same.
2409 (sese_insert_phis_for_liveouts):
2410 (is_loop_closed_ssa_use): New.
2411 (number_of_phi_nodes): New.
2412 (bb_contains_loop_close_phi_nodes): New.
2413 (bb_contains_loop_phi_nodes): New.
2414 (phi_uses_name): New.
2416 (get_rename): Add old_bb and loop_phi for more precise matching of
2418 (set_rename): Pass region.
2419 (later_of_the_two): New.
2420 (gsi_insert_earliest): New.
2421 (collect_all_ssa_names): New.
2422 (substitute_ssa_name): New.
2423 (rename_all_uses): New.
2424 (get_rename_from_scev): New.
2425 (rename_uses): Pass old_bb for more precise matching of exprs.
2426 (get_def_bb_for_const): New.
2427 (get_new_name): New.
2430 (copy_loop_phi_args): New.
2431 (copy_loop_phi_nodes): New.
2432 (get_loop_init_value): New.
2433 (find_init_value): New.
2434 (find_init_value_close_phi): New.
2435 (copy_loop_close_phi_args): New.
2436 (copy_loop_close_phi_nodes): New.
2437 (add_phi_arg_for_new_expr): New.
2438 (copy_cond_phi_args): New.
2439 (copy_cond_phi_nodes): New.
2440 (copy_phi_nodes): New.
2441 (should_copy_to_new_region): New.
2442 (set_rename_for_each_def): New.
2443 (graphite_copy_stmts_from_block): Early return in case of error.
2444 (copy_bb_and_scalar_dependences): Same.
2445 * sese.h (vec_find): New.
2446 (SESE_PARAMS): Delete.
2447 (SESE_LOOPS): Delete.
2448 (SESE_LOOP_NEST): Delete.
2449 (sese_contains_loop): Remove macro usage.
2450 (sese_nb_params): Same.
2451 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
2453 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
2455 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
2456 isl_union_map_add_map on every pbb->schedule.
2458 2015-11-11 Tom de Vries <tom@codesourcery.com>
2460 * tree-parloops.c (create_parallel_loop): Return void.
2462 2015-11-11 Tom de Vries <tom@codesourcery.com>
2464 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
2465 block only when needed.
2467 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
2469 * config/alpha/alpha-protos.h (print_operand): Remove.
2470 (print_operand_address): Remove.
2471 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
2472 (PRINT_OPERAND_ADDRESS): Remove.
2473 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
2474 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
2475 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
2476 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
2477 (print_operand_address): Rename to...
2478 (alpha_print_operand_address): ...this and make static.
2479 (print_operand): Rename to...
2480 (alpha_print_operand): ...this and make static.
2481 (alpha_print_operand_punct_valid_p): New static function.
2483 2015-11-11 Richard Biener <rguenther@suse.de>
2485 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
2487 (vect_analyze_data_refs_alignment): Make loop vect specific.
2488 (vect_verify_datarefs_alignment): Likewise.
2489 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
2490 Add missing continue.
2491 (vect_compute_data_ref_alignment): Export.
2492 (vect_compute_data_refs_alignment): Merge into...
2493 (vect_analyze_data_refs_alignment): ... this.
2494 (verify_data_ref_alignment): Split out from ...
2495 (vect_verify_datarefs_alignment): ... here.
2496 (vect_slp_analyze_and_verify_node_alignment): New function.
2497 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
2498 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
2499 misplaced checks on alignment.
2500 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
2501 alignment analysis after SLP discovery and do it per instance.
2502 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
2503 bother to re-try using different vector sizes.
2505 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
2506 Cesar Philippidis <cesar@codesourcery.com>
2508 * gimplify.c (enum omp_region_type): Add ORT_ACC,
2509 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
2510 (gimple_add_tmp_var): Add ORT_ACC checks.
2511 (gimplify_var_or_parm_decl): Likewise.
2512 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
2513 (omp_add_variable): Look in outer contexts for openacc and allow
2514 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
2515 (omp_notice_variable, omp_is_private, omp_check_private): Add
2517 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
2518 Permit private openacc reductions.
2519 (gimplify_oacc_cache): Specify ORT_ACC.
2520 (gimplify_omp_workshare): Adjust OpenACC region types.
2521 (gimplify_omp_target_update): Likewise.
2522 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
2523 (lower-rec_input_clauses): Don't handle openacc firstprivate
2525 (lower_omp_target): Emit initializers for openacc firstprivate vars.
2527 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
2530 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
2531 frame pointer for stack checking if non-call exceptions aren't used.
2532 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
2534 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
2536 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
2539 2015-11-11 Martin Liska <mliska@suse.cz>
2540 Richard Biener <rguenther@suse.de>
2542 PR rtl-optimization/68287
2543 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
2546 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
2548 * config/mips/mips.c (mips_breakable_sequence_p): New function.
2549 (mips_break_sequence): New function.
2550 (mips_reorg_process_insns): Use them. Use compact branches in selected
2553 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
2555 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
2557 2015-11-11 Jiong Wang <jiong.wang@arm.com>
2558 Jim Wilson <wilson@gcc.gnu.org>
2561 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
2562 be true and eliminable registers mentioned.
2564 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
2566 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
2568 * config/arc/arc-opts.h: Add ARCv2 CPUs.
2569 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
2570 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
2571 situation, and store instructions with large offsets.
2572 (arc_secondary_reload_conv): New function.
2573 (arc_init): Add ARCv2 options.
2574 (arc_conditional_register_usage): Select the proper register usage
2575 for ARCv2 processors.
2576 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
2578 (arc_compute_function_type): Likewise.
2579 (arc_print_operand): Handle new ARCv2 punctuation characters.
2580 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
2581 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
2583 (arc_reorg, arc_hazard): Use it.
2584 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
2585 (ASM_SPEC): Add ARCv2 options.
2586 (TARGET_NORM): ARC HS has norm instructions by default.
2587 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
2588 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
2589 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
2590 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
2592 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
2593 (TARGET_LP_WR_INTERLOCK): Likewise.
2595 (commutative_binary_mult_comparison_result_used, movsicc_insn)
2596 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
2597 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
2598 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
2600 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
2601 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
2602 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
2603 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
2604 (extzvsi): New pattern.
2605 * config/arc/arc.opt: New ARCv2 options.
2606 * config/arc/arcEM.md: New file.
2607 * config/arc/arcHS.md: Likewise.
2608 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
2610 (Cm2): A signed 9-bit integer constant constraint.
2611 (C62): An unsigned 6-bit integer constant constraint.
2612 (C16): A signed 16-bit integer constant constraint.
2613 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
2614 (short_const_int_operand): New predicate.
2615 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
2616 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
2617 -mcode-density and -mdiv-rem.
2619 2015-11-11 Julia Koval <julia.koval@intel.com>
2621 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
2623 2015-11-11 Julia Koval <julia.koval@intel.com>
2625 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
2627 2015-11-11 Martin Liska <mliska@suse.cz>
2629 * gimple-ssa-strength-reduction.c (create_phi_basis):
2631 * passes.c (release_dump_file_name): New function.
2632 (pass_init_dump_file): Used from this function.
2633 (pass_fini_dump_file): Likewise.
2634 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
2635 * var-tracking.c (vt_initialize): Use pool_allocator.
2637 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
2638 Jiong Wang <jiong.wang@arm.com>
2640 PR tree-optimization/68234
2641 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
2642 node which estimiated to be VR_VARYING initially.
2644 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
2646 * regname.c (scan_rtx_reg): Check the matching number of consecutive
2647 registers when tying chains.
2648 (build_def_use): Move terminated_this_insn earlier in the function.
2650 2015-11-10 Mike Frysinger <vapier@gentoo.org>
2652 * configure.ac: Use = with test and not ==.
2653 * configure: Regenerated.
2655 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
2657 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
2658 machine asserts. Update defines for 64 bit.
2660 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
2663 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
2665 (neon_vst1_lane<mode>): Likewise.
2666 (neon_vld2_lane<mode>): Likewise.
2667 (neon_vst2_lane<mode>): Likewise.
2668 (neon_vld3_lane<mode>): Likewise.
2669 (neon_vst3_lane<mode>): Likewise.
2670 (neon_vld4_lane<mode>): Likewise.
2671 (neon_vst4_lane<mode>): Likewise.
2673 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
2676 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
2677 qualifier_struct_load_store_lane_index.
2678 (arm_storestruct_lane_qualifiers) Likewise.
2679 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
2681 (neon_vst1_lane<mode>) Likewise.
2682 (neon_vld2_lane<mode>) Likewise.
2683 (neon_vst2_lane<mode>) Likewise.
2684 (neon_vld3_lane<mode>) Likewise.
2685 (neon_vst3_lane<mode>) Likewise.
2686 (neon_vld4_lane<mode>) Likewise.
2687 (neon_vst4_lane<mode>) Likewise.
2689 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
2692 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
2693 qualifier_struct_load_store_lane_index.
2694 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2695 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
2696 argument qualifiers.
2697 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
2698 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
2700 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
2702 * config/nvptx/nvptx.opt (moptimize): New flag.
2703 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
2705 (nvptx_optimize_inner): New.
2706 (nvptx_process_pars): Call it when optimizing.
2707 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
2709 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2711 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
2712 Remove redundant code.
2714 2015-11-10 Jeff Law <law@redhat.com>
2716 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
2717 call to output_address.
2718 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
2719 Add unnamed machine_mode argument.
2721 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2723 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
2726 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
2728 * config/i386/i386.md (*movabs<mode>_1): Add explicit
2729 size directives for -masm=intel.
2730 (*movabs<mode>_2): Ditto.
2732 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
2734 * config/i386/i386.c (ix86_print_operand): Remove dead code that
2735 tried to avoid (%rip) for call operands.
2737 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
2739 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
2740 argument. Do not use RIP relative addressing when no_rip is set.
2741 (ix86_print_operand): Update call to ix86_print_operand_address_as.
2742 (ix86_print_operand_address): Ditto.
2743 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
2744 absolute movabs operand 0. Add square braces for -masm=intel.
2745 (*movabs<mode>_2): Ditto for operand 1.
2747 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2749 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
2750 combine_vcvtf2i pattern.
2752 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2754 * config/arm/arm.c (neon_valid_immediate): Remove integer
2755 CONST_DOUBLE handling. It should never occur.
2757 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
2759 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
2760 (ATOMIC_LDOP): Likewise.
2761 (atomic_ldop): Likewise.
2762 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
2763 (ATOMIC_LDOP): Likewise.
2764 (atomic_ldop): Likewise.
2766 2015-11-10 Martin Liska <mliska@suse.cz>
2768 * alloc-pool.h (allocate_raw): New function.
2769 (operator new (size_t, object_allocator<T> &a)): Use the
2770 function instead of object_allocator::allocate).
2772 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2774 * config/i386/sse.md (HALFMASKMODE): New attribute.
2775 (DOUBLEMASKMODE): New attribute.
2776 (vec_pack_trunc_qi): New.
2777 (vec_pack_trunc_<mode>): New.
2778 (vec_unpacks_lo_hi): New.
2779 (vec_unpacks_lo_si): New.
2780 (vec_unpacks_lo_di): New.
2781 (vec_unpacks_hi_hi): New.
2782 (vec_unpacks_hi_<mode>): New.
2784 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2786 * optabs.c (expand_binop_directly): Allow scalar mode for
2787 vec_pack_trunc_optab.
2788 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2789 boolean vector producers from pattern sequence when computing VF.
2790 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
2791 vect_recog_mask_conversion_pattern.
2792 (search_type_for_mask): Choose the smallest
2793 type if different size types are mixed.
2794 (build_mask_conversion): New.
2795 (vect_recog_mask_conversion_pattern): New.
2796 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
2797 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
2799 (vectorizable_conversion): Support boolean vectors.
2800 (free_stmt_vec_info): Allow patterns for statements with no lhs.
2801 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
2803 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2805 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
2806 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
2807 Cast mask to FP mode if required.
2808 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
2809 (vcond_mask_<mode><avx512fmaskmodelower>): New.
2810 (vcond_mask_<mode><sseintvecmodelower>): New.
2811 (vcond_mask_<mode><sseintvecmodelower>): New.
2812 (vcond_mask_v2div2di): New.
2813 (vcond_mask_<mode><sseintvecmodelower>): New.
2814 (vcond_mask_<mode><sseintvecmodelower>): New.
2816 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2818 * optabs-query.h (get_vcond_mask_icode): New.
2819 * optabs-tree.c (expand_vec_cond_expr_p): Use
2820 get_vcond_mask_icode for VEC_COND_EXPR with mask.
2821 * optabs.c (expand_vec_cond_mask_expr): New.
2822 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
2823 * optabs.def (vcond_mask_optab): New.
2824 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
2825 generate redundant comparison for COND_EXPR.
2826 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
2828 (vectorizable_condition): Likewise.
2829 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
2830 cond_exp with no embedded comparison.
2831 (vect_build_slp_tree_1): Likewise.
2833 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2835 * config/i386/sse.md (maskload<mode>): Rename to ...
2836 (maskload<mode><sseintvecmodelower>): ... this.
2837 (maskstore<mode>): Rename to ...
2838 (maskstore<mode><sseintvecmodelower>): ... this.
2839 (maskload<mode><avx512fmaskmodelower>): New.
2840 (maskstore<mode><avx512fmaskmodelower>): New.
2842 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2844 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
2845 (expand_MASK_STORE): Adjust to maskstore optab changes.
2846 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
2847 Adjust to maskload, maskstore optab changes.
2848 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
2849 * optabs.def (maskload_optab): Transform into convert optab.
2850 (maskstore_optab): Likewise.
2851 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
2852 can_vec_mask_load_store_p signature change.
2853 (predicate_mem_writes): Use boolean mask.
2854 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
2855 can_vec_mask_load_store_p signature change. Allow invariant masks.
2856 (vectorizable_operation): Ignore type precision for boolean vectors.
2858 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2860 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
2861 (const_vector_mask_from_tree): New.
2862 (const_vector_from_tree): Use const_vector_mask_from_tree
2863 for boolean vectors.
2864 * optabs-query.h (get_vec_cmp_icode): New.
2865 * optabs-tree.c (expand_vec_cmp_expr_p): New.
2866 * optabs-tree.h (expand_vec_cmp_expr_p): New.
2867 * optabs.c (vector_compare_rtx): Add OPNO arg.
2868 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
2869 (expand_vec_cmp_expr): New.
2870 * optabs.def (vec_cmp_optab): New.
2871 (vec_cmpu_optab): New.
2872 * optabs.h (expand_vec_cmp_expr): New.
2873 * tree-vect-generic.c (expand_vector_comparison): Add vector
2874 comparison optabs check.
2875 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
2876 operations for VF. Add mask type computation.
2877 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
2878 (vectorizable_comparison): New.
2879 (vect_analyze_stmt): Add vectorizable_comparison.
2880 (vect_transform_stmt): Likewise.
2881 (vect_init_vector): Support boolean vector invariants.
2882 (vect_get_vec_def_for_operand): Add VECTYPE arg.
2883 (vectorizable_condition): Directly provide vectype for invariants
2885 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
2886 (enum vect_var_kind): Add vect_mask_var.
2887 (enum stmt_vec_info_type): Add comparison_vec_info_type.
2888 (vectorizable_comparison): New.
2889 (vect_get_vec_def_for_operand): Add VECTYPE arg.
2890 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
2891 (vect_create_destination_var): Likewise.
2892 * tree-vect-patterns.c (check_bool_pattern): Check fails
2893 if we can vectorize comparison directly.
2894 (search_type_for_mask): New.
2895 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
2896 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
2897 comparison statements.
2898 (vect_get_constant_vectors): Support boolean vector constants.
2899 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
2900 (ix86_expand_int_vec_cmp): New.
2901 (ix86_expand_fp_vec_cmp): New.
2902 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
2903 op_true and op_false.
2904 (ix86_int_cmp_code_to_pcmp_immediate): New.
2905 (ix86_fp_cmp_code_to_pcmp_immediate): New.
2906 (ix86_cmp_code_to_pcmp_immediate): New.
2907 (ix86_expand_mask_vec_cmp): New.
2908 (ix86_expand_fp_vec_cmp): New.
2909 (ix86_expand_int_sse_cmp): New.
2910 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
2911 (ix86_expand_int_vec_cmp): New.
2912 (ix86_get_mask_mode): New.
2913 (TARGET_VECTORIZE_GET_MASK_MODE): New.
2914 * config/i386/sse.md (avx512fmaskmodelower): New.
2915 (vec_cmp<mode><avx512fmaskmodelower>): New.
2916 (vec_cmp<mode><sseintvecmodelower>): New.
2917 (vec_cmpv2div2di): New.
2918 (vec_cmpu<mode><avx512fmaskmodelower>): New.
2919 (vec_cmpu<mode><sseintvecmodelower>): New.
2920 (vec_cmpuv2div2di): New.
2922 2015-11-10 Richard Biener <rguenther@suse.de>
2924 PR tree-optimization/68240
2925 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
2927 (visit_phi): For PHIs with just a single executable edge
2928 take its value directly.
2929 (expressions_equal_p): Handle VN_TOP properly.
2931 2015-11-10 Richard Biener <rguenther@suse.de>
2933 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
2934 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
2937 2015-11-10 Richard Biener <rguenther@suse.de>
2939 PR tree-optimization/56118
2940 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
2941 cost favor vectorized version.
2943 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2945 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
2946 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
2947 (neg_not_op): New code attribute.
2949 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2951 * ifcvt.c (noce_try_inverse_constants): New function.
2952 (noce_process_if_block): Call it.
2953 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
2954 * optabs.def (negcc_optab, notcc_optab): Declare.
2955 * optabs.c (emit_conditional_neg_or_complement): New function.
2956 * doc/tm.texi (Standard Names): Document negcc, notcc names.
2958 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2960 PR rtl-optimization/68236
2961 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
2962 if insn_queue doesn't exist.
2963 (haifa_sched_finish): Reset insn_queue to NULL.
2965 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
2967 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
2968 (build_def_use): Initialize terminated_this_insn.
2969 (find_best_rename_reg): Pick and check register from the tied chain.
2970 (regrename_do_replace): Mark head as renamed.
2971 (struct du_head *terminated_this_insn). New static variable.
2972 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
2973 * regrename.h (struct du_head): Add tied_chain, renamed members.
2975 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2978 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
2981 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2984 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
2985 not promote the mode for aggregate types.
2987 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
2989 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
2990 * omp-low.c (build_oacc_routine_dims): New.
2992 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2994 * config/rs6000/constraints.md (wF constraint): New constraints
2995 for power9/toc fusion.
2996 (wG constraint): Likewise.
2998 * config/rs6000/predicates.md (u6bit_cint_operand): New
2999 predicate, recognize 0..63.
3000 (upper16_cint_operand): New predicate for power9 and toc fusion.
3001 (fpr_reg_operand): Likewise.
3002 (toc_fusion_or_p9_reg_operand): Likewise.
3003 (toc_fusion_mem_raw): Likewise.
3004 (toc_fusion_mem_wrapped): Likewise.
3005 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
3007 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
3009 (fusion_addis_mem_combo_load): Add support for power9 fusion of
3010 floating point loads, floating point stores, and gpr stores.
3011 (fusion_addis_mem_combo_store): Likewise.
3012 (fusion_offsettable_mem_operand): Likewise.
3014 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
3015 (emit_fusion_load_store): Likewise.
3016 (fusion_p9_p): Likewise.
3017 (expand_fusion_p9_load): Likewise.
3018 (expand_fusion_p9_store): Likewise.
3019 (emit_fusion_p9_load): Likewise.
3020 (emit_fusion_p9_store): Likewise.
3021 (fusion_wrap_memory_address): Likewise.
3023 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
3024 elements for power9 fusion.
3025 (rs6000_debug_print_mode): Rework debug information to print more
3026 information about fusion.
3027 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
3028 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
3029 offsettable memory address.
3030 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
3031 (emit_fusion_gpr_load): Move most of the code from
3032 emit_fusion_gpr_load into emit_fusion-addis that handles both
3033 power8 and power9 fusion.
3034 (emit_fusion_addis): Likewise.
3035 (emit_fusion_load_store): Likewise.
3036 (fusion_wrap_memory_address): Add support for TOC fusion.
3037 (fusion_split_address): Likewise.
3038 (fusion_p9_p): Add support for power9 fusion.
3039 (expand_fusion_p9_load): Likewise.
3040 (expand_fusion_p9_store): Likewise.
3041 (emit_fusion_p9_load): Likewise.
3042 (emit_fusion_p9_store): Likewise.
3044 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
3045 new instructions in ISA 3.0.
3046 (TARGET_CTZ): Likewise.
3047 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
3048 (TARGET_TOC_FUSION_FP): Likewise.
3050 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
3052 (UNSPEC_FUSION_ADDIS): Likewise.
3053 (QHSI mode iterator): New iterator for power9 fusion.
3054 (GPR_FUSION): Likewise.
3055 (FPR_FUSION): Likewise.
3056 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
3057 (umod<mode>3): Likewise.
3058 (divmod peephole): Likewise.
3059 (udivmod peephole): Likewise.
3060 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
3062 (ctz<mode>2_h): Likewise.
3063 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
3064 (ashdi3_extswsli_dot): Likewise.
3065 (ashdi3_extswsli_dot2): Likewise.
3066 (power9 fusion splitter): New power9/toc fusion support.
3067 (toc_fusionload_<mode>): Likewise.
3068 (toc_fusionload_di): Likewise.
3069 (fusion_gpr_load_<mode>): Update predicate function.
3070 (power9 fusion peephole2s): New power9/toc fusion support.
3071 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
3072 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
3073 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
3074 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3075 (fusion_p9_<mode>_constant): Likewise.
3077 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
3079 * optabs.c (prepare_libcall_arg): New function.
3080 (expand_fixed_convert): Add call to prepare_libcall_arg.
3082 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
3084 * sched-int.h (dump_rgn_dependencies_dot): Declare
3085 * sched-rgn.c (dump_rgn_dependencies_dot): New function
3086 * print-rtl.h (print_insn): Add prototype
3088 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
3089 * common.opt (-fsched-verbose): Set default value to 1.
3090 * invoke.texi (-fsched-verbose): Update the option's description.
3092 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3094 * config/visium/visium.h (PRINT_OPERAND): Delete.
3095 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3096 (PRINT_OPERAND_ADDRESS): Likewise.
3097 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
3099 (visium_print_operand_punct_valid_p): ...this. New function.
3100 (TARGET_PRINT_OPERAND): Define to...
3101 (print_operand): Rename to...
3102 (visium_print_operand): ...this.
3103 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
3104 (visium_output_address): Rename to...
3105 (visium_print_operand_address): ...this.
3106 (print_operand_address): Delete.
3108 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3111 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
3112 Check that the type of the first operand is an aggregate type.
3114 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3116 * omp-low.c: Fix some OpenACC comment typos.
3117 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
3118 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
3119 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
3121 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
3123 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
3125 2015-11-09 Jeff Law <law@redhat.com>
3127 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
3128 being in gimple/ssa form. Remove redundant check for SSA_NAME.
3131 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3132 Peter Bergner <bergner@vnet.ibm.com>
3134 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
3136 (-mpower9-vector): Likewise.
3137 (-mpower9-dform): Likewise.
3138 (-mpower9-minmax): Likewise.
3139 (-mtoc-fusion): Likewise.
3140 (-mmodulo): Likewise.
3141 (-mfloat128-hardware): Likewise.
3143 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
3144 mask for ISA 3.0 (power9).
3145 (POWERPC_MASKS): Add new ISA 3.0 switches.
3146 (power9 cpu): Add power9 cpu.
3148 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
3149 (ASM_CPU_SPEC): Likewise.
3150 (EXTRA_SPECS): Likewise.
3152 * config/rs6000/rs6000-opts.h (enum processor_type): Add
3155 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
3156 (rs6000_debug_reg_global): Add support for power9 fusion.
3157 (rs6000_setup_reg_addr_masks): Cache mode size.
3158 (rs6000_option_override_internal): Until real power9 tuning is
3159 added, use -mtune=power8 for -mcpu=power9.
3160 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
3161 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
3162 of Altivec registers.
3163 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
3164 (rs6000_loop_align): Add support for power9 cpu.
3165 (rs6000_file_start): Likewise.
3166 (rs6000_adjust_cost): Likewise.
3167 (rs6000_issue_rate): Likewise.
3168 (insn_must_be_first_in_group): Likewise.
3169 (insn_must_be_last_in_group): Likewise.
3170 (force_new_group): Likewise.
3171 (rs6000_register_move_cost): Likewise.
3172 (rs6000_opt_masks): Likewise.
3174 * config/rs6000/rs6000.md (cpu attribute): Add power9.
3175 * config/rs6000/rs6000-tables.opt: Regenerate.
3177 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3178 _ARCH_PWR9 if power9 support is available.
3180 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
3181 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
3183 * configure.ac: Determine if the assembler supports the ISA 3.0
3185 * config.in (HAVE_AS_POWER9): Likewise.
3186 * configure: Regenerate.
3188 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
3191 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3193 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
3194 Remove integer CONST_DOUBLE handling. It should never occur.
3196 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3199 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
3200 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
3201 Delete VOIDmode case. Assert that mode is not VOIDmode.
3202 * config/aarch64/predicates.md (const0_operand): Remove const_double
3205 2015-11-09 Martin Liska <mliska@suse.cz>
3207 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
3208 body_info release function.
3209 * ipa-prop.c (ipa_release_body_info): New function.
3210 (ipa_analyze_node): Call the function.
3211 (ipa_node_params::~ipa_node_params): Release known_csts.
3212 * ipa-prop.h (ipa_release_body_info): Declare.
3214 2015-11-09 Martin Liska <mliska@suse.cz>
3216 * gcc.c (record_temp_file): Release name string.
3217 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
3218 * lra-lives.c (free_live_range_list): Utilize
3219 lra_live_range_pool for allocation and deallocation.
3220 (create_live_range): Likewise.
3221 (copy_live_range): Likewise.
3222 (lra_merge_live_ranges): Likewise.
3223 (remove_some_program_points_and_update_live_ranges): Likewise.
3224 (lra_create_live_ranges_1): Release point_freq_vec that can
3225 be not freed from previous iteration of the function.
3226 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
3227 * tree-sra.c (sra_deinitialize): Release all vectors in
3229 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
3230 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
3231 Release edge_info for a removed edge.
3232 (thread_through_all_blocks): Free region vector.
3233 * tree-ssa.h (free_dom_edge_info): Declare function extern.
3235 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
3237 * optabs.c (expand_vec_cond_expr): Always get sign from type.
3238 * tree.c (wide_int_to_tree): Support negative values for boolean.
3239 (build_nonstandard_boolean_type): Use signed type for booleans.
3241 2015-11-09 Richard Biener <rguenther@suse.de>
3243 PR tree-optimization/68248
3244 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
3246 2015-11-09 Richard Biener <rguenther@suse.de>
3248 PR tree-optimization/56118
3249 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
3250 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
3251 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
3253 (vect_slp_analyze_data_ref_dependences): Instead of computing
3254 all dependences of the region DRs just analyze the code motions
3255 SLP vectorization will perform. Remove SLP instances that
3256 cannot have their store/load motions applied.
3257 (vect_analyze_data_refs): Allow DRs without a vectype
3258 in BB vectorization.
3260 2015-11-09 Julian Brown <julian@codesourcery.com>
3262 * final.c (output_asm_insn): Pass VOIDmode to output_address.
3263 (output_address): Add MODE argument. Pass to print_operand_address
3265 * targhooks.c (default_print_operand_address): Add MODE argument.
3266 * targhooks.h (default_print_operand_address): Update prototype.
3267 * output.h (output_address): Update prototype.
3268 * target.def (print_operand_address): Add MODE argument.
3269 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
3271 (print_operand): Pass access mode to output_address.
3272 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
3274 (mcore_print_operand): Update calls to mcore_print_operand_address.
3275 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
3277 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
3279 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
3281 (tilegx_print_operand): Don't set above global. Update calls to
3283 (tilegx_print_operand_address): Add MODE argument. Use instead of
3284 output_memory_reference_mode global.
3285 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
3286 (frv_print_operand): Pass mode to frv_print_operand_address calls.
3287 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
3289 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
3290 (cris_print_operand): Pass mode to output_address calls.
3291 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
3292 * config/aarch64/aarch64.h (aarch64_print_operand)
3293 (aarch64_print_operand_address): Remove prototypes.
3294 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
3296 (aarch64_print_operand): Make static. Update calls to output_address.
3297 (aarch64_print_operand_address): Add MODE argument. Use instead of
3298 aarch64_memory_reference_mode global.
3299 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
3301 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
3302 Delete macro definitions.
3303 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
3304 * config/xtensa/xtensa.c (print_operand): Pass mode in
3305 output_address calls.
3306 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
3308 (h83000_print_operand): Update calls to h8300_print_operand_address
3310 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
3311 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
3313 (tilepro_print_operand): Pass mode to output_address.
3314 (tilepro_print_operand_address): Add MODE argument. Use instead of
3315 output_memory_reference_mode.
3316 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
3317 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
3318 to output_address calls.
3319 (nvptx_print_operand_address): Add MODE argument.
3320 * config/alpha/alpha.c (print_operand): Pass mode argument in
3321 output_address calls.
3322 * config/m68k/m68k.c (print_operand): Pass mode argument in
3323 output_address call.
3324 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
3325 (avr_print_operand): Update calls to avr_print_operand_address.
3326 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
3327 argument. Update calls to output_address.
3328 (sparc_print_operand): Pass mode to output_address.
3329 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
3331 (iq2000_print_operand): Pass mode in output_address calls.
3332 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
3334 (xstormy16_print_operand): Pass mode to
3335 xstormy16_print_operand_address calls.
3336 * config/mips/mips.c (mips_print_operand): Update calls to
3338 (mips_print_operand_address): Add MODE argument.
3339 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
3341 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
3342 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
3344 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
3345 (rx_print_operand): Update calls to output_address,
3346 rx_print_operand_address.
3347 * config/nds32/nds32.c (nds32_print_operand): Update calls to
3349 (nds32_print_operand_address): Add MODE argument.
3350 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
3351 output_address calls.
3352 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
3353 output_address call.
3354 (c6x_print_address_operand): Update calls to output_address.
3355 (c6x_print_operand_address): Pass mode to above.
3356 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
3357 (v850_print_operand): Pass mode to v850_print_operand_address,
3359 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
3360 (mmix_print_operand): Pass mode in output_address calls.
3361 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
3362 (sh_print_operand): Pass mem mode to output_address,
3363 sh_print_operand_address.
3364 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
3365 (cr16_print_operand): Pass mode to output_address,
3366 cr16_print_operand_address.
3367 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
3369 * config/microblaze/microblaze.c (print_operand): Pass mode to
3371 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
3373 (nios2_print_operand_address): Add MODE argument. Update call to
3374 nios2_print_operand_address.
3375 * config/s390/s390.c (print_operand): Pass mode to output_address.
3376 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
3377 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
3379 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
3380 Use instead of output_memory_reference_mode.
3381 (output_memory_reference_mode): Delete global.
3382 (arm_print_operand): Pass mem mode to output_address.
3383 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
3384 (m32r_print_operand): Pass mode to output_address.
3385 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
3387 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
3388 * config/i386/i386.c (ix86_print_operand): Pass mode to
3389 output_address calls.
3390 (ix86_print_operand_address): Add MODE argument.
3392 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3395 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
3396 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
3397 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
3398 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3400 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3402 PR rtl-optimization/67749
3403 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
3404 case before emitting the two blocks. Instead modify the register
3405 in the corresponding final insn of the basic block.
3407 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3409 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
3412 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
3414 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
3415 HAVE_INITFINI_ARRAY_SUPPORT.
3416 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
3418 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
3419 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
3420 Don't check HAVE_AS_SPARC_NOBITS.
3421 Heed SECTION_NOTYPE.
3423 * configure: Regenerate.
3424 * config.in: Regenerate.
3426 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3429 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
3431 2015-11-09 Richard Henderson <rth@redhat.com>
3433 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
3434 __SEG_GS, __SEG_TLS.
3435 (ix86_register_pragmas): Register address spaces __seg_fs,
3436 __seg_gs, __seg_tls.
3437 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
3438 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
3439 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
3440 * config/i386/i386.c (ix86_decompose_address): Likewise.
3441 (ix86_legitimate_address_p): Likewise.
3442 (memory_address_length): Likewise. Check mem address space too.
3443 (ix86_print_operand): Use ix86_print_operand_address_as.
3444 (ix86_print_operand_address_as): Rename from
3445 ix86_print_operand_address, add new addr_space_t parameter.
3446 Validate that either the parameter or the ix86_address segment
3447 is default address space. Handle ADDR_SPACE_SEG_TLS.
3448 (ix86_print_operand_address): New.
3449 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
3450 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
3451 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
3452 (ix86_addr_space_zero_address_valid): New.
3453 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3454 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
3455 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
3456 * config/i386/predicates.md (address_no_seg_operand): Likewise.
3457 (vsib_address_operand): Likewise.
3458 (address_mpx_no_base_operand): Likewise.
3459 (address_mpx_no_index_operand): Likewise.
3460 * doc/extend.texi (x86 Named Address Spaces): New section.
3462 * config/i386/i386.c (ix86_check_no_addr_space): New.
3463 (decide_alg): Add have_as parameter.
3464 (alg_usable_p): Likewise; disable rep algorithms if set.
3465 (ix86_expand_set_or_movmem): Notice if either MEM has a
3466 non-default address space.
3467 (ix86_expand_strlen): Likewise.
3468 * config/i386/i386.md (strmov, strset): Likewise.
3469 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
3470 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
3471 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
3472 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
3473 *cmpstrnqi_1, *strlenqi_1): Likewise.
3475 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
3476 (*movabs<mode>_2): Likewise.
3478 * dwarf2out.c (modified_type_die): Pass the address space number
3479 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
3480 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
3481 * targhooks.c (default_addr_space_debug): New.
3482 * targhooks.h (default_addr_space_debug): Declare.
3483 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
3484 * doc/tm.texi: Rebuild.
3486 * gimple.c (check_loadstore): Return false when 0 is a valid address.
3487 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
3488 null when 0 is valid in the source address space.
3489 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3490 * targhooks.c (default_addr_space_zero_address_valid): New.
3491 * targhooks.h (default_addr_space_zero_address_valid): Declare.
3492 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
3493 * doc/tm.texi: Rebuild.
3495 * cselib.c (add_mem_for_addr): Compare address spaces when
3497 (cselib_lookup_mem): Likewise.
3498 * fold-const.c (operand_equal_p): Check address spaces of
3499 pointer types before checking integer constants.
3502 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
3503 the correct type for the base.
3505 2015-11-09 Jeff Law <law@redhat.com>
3507 * tree-into-ssa.c (names_to_release): No longer static.
3508 * tree-into-ssa.h (names_to_release): Declare.
3509 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
3510 (release_free_names_and_compact_live_names): New function extracted
3511 from pass_release_ssa_names::execute.
3512 (pass_release_ssa_names::execute): Use it.
3514 2015-11-09 Alan Modra <amodra@gmail.com>
3516 * gensupport.c (add_mnemonic_string): Make len param a size_t.
3517 (gen_mnemonic_setattr): Make "size" var a size_t. Use
3518 obstack_blank_fast to shrink obstack. Cast obstack_next_free
3521 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
3523 PR rtl-optimization/68182
3524 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
3525 branch with only one successor just like unconditional branches.
3527 2015-11-08 Jeff Law <law@redhat.com>
3529 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
3530 non-FSM path has no edges marked with EDGE_DFS_BACK.
3531 (ssa_redirect_edges): No longer call mark_loop_for_removal.
3532 (thread_single_edge, def_split_header_continue_p): Remove.
3533 (bb_ends_with_multiway_branch): Likewise.
3534 (thread_through_loop_header): Remove cases of threading from
3535 latch through the header. Simplify knowing we won't thread
3537 (thread_through_all_blocks): Simplify knowing that only the FSM
3538 threader needs to handle backedges.
3540 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
3542 * doc/extend.texi (type attributes): Document scalar_storage_order.
3543 (Structure-Packing Pragmas): Rename into...
3544 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
3545 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
3546 (Warnings): Document -Wno-scalar-storage-order.
3547 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
3548 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
3549 extract_bit_field and store_bit_field.
3550 (initialize_argument_information): Adjust call to store_expr.
3551 (load_register_parameters): Adjust call to extract_bit_field.
3552 * expmed.c (check_reverse_storage_order_support): New function.
3553 (check_reverse_float_storage_order_support): Likewise.
3554 (flip_storage_order): Likewise.
3555 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
3556 of the value if it is true. Pass REVERSE to recursive call after
3557 adjusting the target offset.
3558 Do not use extraction or movstrict instruction if REVERSE is true.
3559 Pass REVERSE to store_fixed_bit_field.
3560 (store_bit_field): Add REVERSE parameter and pass to it to above.
3561 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
3562 store_split_bit_field and store_fixed_bit_field_1.
3563 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
3564 order of the value if it is true and adjust the target offset.
3565 (store_split_bit_field): Add REVERSE parameter and pass it to
3566 store_fixed_bit_field. Adjust the target offset if it is true.
3567 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
3568 of the value if it is true. Pass REVERSE to recursive call after
3569 adjusting the target offset.
3570 Do not use extraction or subreg instruction if REVERSE is true.
3571 Pass REVERSE to extract_fixed_bit_field.
3572 (extract_bit_field): Add REVERSE parameter and pass to it to above.
3573 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
3574 extract_split_bit_field and extract_fixed_bit_field_1.
3575 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
3576 order of the value if it is true and adjust the target offset.
3577 (extract_split_bit_field): Add REVERSE parameter and pass it to
3578 extract_fixed_bit_field. Adjust the target offset if it is true.
3579 * expmed.h (flip_storage_order): Declare.
3580 (store_bit_field): Adjust prototype.
3581 (extract_bit_field): Likewise.
3582 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
3583 (emit_group_store): Adjust call to store_bit_field.
3584 (copy_blkmode_from_reg): Likewise.
3585 (copy_blkmode_to_reg): Likewise.
3586 (write_complex_part): Likewise.
3587 (read_complex_part): Likewise.
3588 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
3589 that it isn't true if the target is a register.
3590 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
3591 and flip the storage order of the value.
3592 <BIT_IOR_EXPR>: Flip the storage order of the value.
3593 (get_bit_range): Adjust call to get_inner_reference.
3594 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
3595 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
3596 with reverse storage order.
3597 (store_expr_with_bounds): Add REVERSE parameter and pass it to
3598 recursive calls and call to store_bit_field. Force the value into a
3599 register if it is true and then flip the storage order of the value.
3600 (store_expr): Add REVERSE parameter and pass it to above.
3601 (categorize_ctor_elements_1): Adjust call to
3602 initializer_constant_valid_p.
3603 (store_constructor_field): Add REVERSE parameter and pass it to
3604 recursive calls and call to store_field.
3605 (store_constructor): Add REVERSE parameter and pass it to calls to
3606 store_constructor_field and store_expr. Set it to true for an
3607 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
3608 (store_field): Add REVERSE parameter and pass it to recursive calls
3609 and calls to store_expr and store_bit_field. Temporarily flip the
3610 storage order of the value with record type and integral mode and
3611 adjust the shift if it is true.
3612 (get_inner_reference): Add PREVERSEP parameter and set it to true
3613 upon encoutering a reference with reverse storage order.
3614 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
3615 (expand_constructor): Adjust call to store_constructor.
3616 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
3617 of the union type to store_expr in the MEM case and assert that it
3618 isn't set in the REG case. Adjust call to store_field.
3619 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
3620 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
3621 get_inner_reference and extract_bit_field. Temporarily flip the
3622 storage order of the value with record type and integral mode and
3623 adjust the shift if it is true. Flip the storage order of the value
3624 at the end if it is true.
3625 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
3626 get_inner_reference. Do not fetch an inner reference if it is true.
3627 * expr.h (store_expr_with_bounds): Ajust prototype.
3628 (store_expr): Likewise.
3629 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
3630 REF_REVERSE_STORAGE_ORDER on the reference according to it.
3631 (optimize_bit_field_compare): Deal with reverse storage order.
3632 Adjust calls to get_inner_reference and make_bit_field_ref.
3633 (decode_field_reference): Add PREVERSEP parameter and adjust call to
3634 get_inner_reference.
3635 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
3636 to decode_field_reference and make_bit_field_ref.
3637 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
3638 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
3639 (fold_comparison): Adjust call to get_inner_reference.
3640 (split_address_to_core_and_offset): Adjust call to
3641 get_inner_reference.
3642 * gimple-expr.c (useless_type_conversion_p): Return false for array
3643 types with different TYPE_REVERSE_STORAGE_ORDER flag.
3644 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
3645 REF_REVERSE_STORAGE_ORDER flag.
3646 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
3647 * output.h (assemble_real): Adjust prototype.
3648 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
3649 * stor-layout.c (finish_record_layout): Propagate the
3650 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
3651 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
3652 (TYPE_SATURATING): Adjust.
3653 (REF_REVERSE_STORAGE_ORDER): Document.
3654 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
3655 set it to true upon encoutering a reference with reverse storage order.
3656 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
3657 * tree-inline.c (remap_gimple_op_r): Propagate the
3658 REF_REVERSE_STORAGE_ORDER flag.
3659 (copy_tree_body_r): Likewise.
3660 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
3662 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
3663 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
3664 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3665 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
3666 REF_REVERSE_STORAGE_ORDER flag.
3667 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
3668 (gimple_canonical_types_compatible_p): Likewise.
3669 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
3670 (TYPE_SATURATING): Adjust.
3671 (REF_REVERSE_STORAGE_ORDER): New flag.
3672 (reverse_storage_order_for_component_p): New inline predicate.
3673 (storage_order_barrier_p): Likewise.
3674 (get_inner_reference): Adjust prototype.
3675 * varasm.c: Include expmed.h.
3676 (assemble_variable_contents): Adjust call to output_constant.
3677 (assemble_real): Add REVERSE parameter. Flip the storage
3678 order of the value if REVERSE is true.
3679 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
3680 (assemble_constant_contents): Adjust call to output_constant.
3681 (output_constant_pool_2): Adjust call to assemble_real.
3682 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
3683 TYPE_REVERSE_STORAGE_ORDER.
3684 (initializer_constant_valid_p): Add REVERSE parameter.
3685 (output_constant): Add REVERSE parameter.
3686 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
3687 <REAL_TYPE>: Adjust call to assemble_real.
3688 <COMPLEX_TYPE>: Pass it to recursive calls.
3689 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
3690 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
3691 (struct oc_local_state): Add REVERSE field.
3692 (output_constructor_array_range): Adjust calls to output_constant.
3693 (output_constructor_regular_field): Likewise.
3694 (output_constructor_bitfield): Adjust call to output_constructor.
3695 Flip the storage order of the value if REVERSE is true.
3696 (output_constructor): Add REVERSE parameter. Set it to true for an
3697 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
3698 output_constructor_bitfield.
3699 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
3700 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
3701 * builtins.c (get_object_alignment_2): Likewise.
3702 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
3703 and get_ref_base_and_extent.
3704 * dbxout.c (dbxout_expand_expr): Likewise.
3705 * dwarf2out.c (add_var_loc_to_decl): Likewise.
3706 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
3707 (loc_list_from_tree): Likewise.
3708 (fortran_common): Likewise.
3709 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
3710 get_ref_base_and_extent.
3711 (get_base_constructor): Likewise.
3712 (fold_const_aggregate_ref_1): Likewise.
3713 * gimple-laddress.c (pass_laddress::execute): Adjust call to
3714 get_inner_reference.
3715 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
3716 get_inner_reference and bail out on reverse storage order.
3717 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
3718 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
3719 build_ref_for_offset.
3720 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
3721 get_ref_base_and_extent.
3722 (ipa_polymorphic_call_context): Likewise.
3723 (extr_type_from_vtbl_ptr_store): Likewise.
3724 (check_stmt_for_type_change): Likewise.
3725 (get_dynamic_type): Likewise.
3726 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
3727 get_ref_base_and_extent.
3728 (compute_complex_assign_jump_func): Likewise.
3729 (get_ancestor_addr_info): Likewise.
3730 (compute_known_type_jump_func): Likewise.
3731 (determine_known_aggregate_parts): Likewise.
3732 (ipa_get_adjustment_candidate): Likewise.
3733 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
3734 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
3735 (build_ref_for_offset): Adjust prototype.
3736 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
3737 get_inner_reference.
3738 * tree-affine.c (tree_to_aff_combination): Adjust call to
3739 get_inner_reference.
3740 (get_inner_reference_aff): Likewise.
3741 * tree-data-ref.c (split_constant_offset_1): Likewise.
3742 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
3743 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
3744 get_inner_reference.
3745 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
3746 (dump_access): Print new fields.
3747 (create_access): Adjust call to get_ref_base_and_extent and set the
3748 REVERSE flag according to the result.
3749 (completely_scalarize_record): Set the REVERSE flag.
3750 (scalarize_elem): Add REVERSE parameter.
3751 (build_access_from_expr_1): Preserve storage order barriers.
3752 (build_accesses_from_assign): Likewise.
3753 (build_ref_for_offset): Add REVERSE parameter and set the
3754 REF_REVERSE_STORAGE_ORDER flag accordingly.
3755 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
3756 the REF_REVERSE_STORAGE_ORDER flag if there are components.
3757 (analyze_access_subtree): Likewise.
3758 (create_artificial_child_access): Set the REVERSE flag.
3759 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
3760 (turn_representatives_into_adjustments): Propagate REVERSE flag.
3761 (ipa_sra_check_caller): Adjust call to get_inner_reference.
3762 * tree-ssa-alias.c (ao_ref_base): Adjust call to
3763 get_ref_base_and_extent.
3764 (aliasing_component_refs_p): Likewise.
3765 (stmt_kills_ref_p_1): Likewise.
3766 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3767 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
3768 Return true if reverse storage order.
3769 <BIT_FIELD_REF>: Likewise.
3770 <COMPONENT_REF>: Likewise.
3771 <ARRAY_REF>: Likewise.
3772 <ARRAY_RANGE_REF>: Likewise.
3773 (split_address_cost): Likewise. Bail out if reverse storage order.
3774 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
3775 get_inner_reference. Bail out if reverse storage order.
3776 (bswap_replace): Adjust call to get_inner_reference.
3777 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
3778 the REF_REVERSE_STORAGE_ORDER flag.
3779 <BIT_FIELD_REF>: Likewise.
3780 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
3782 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
3783 to the REF_REVERSE_STORAGE_ORDER flag.
3784 <BIT_FIELD_REF>: Likewise.
3785 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
3786 (contains_storage_order_barrier_p): New predicate.
3787 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
3788 Punt on storage order barriers if necessary.
3789 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
3790 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
3791 call to get_ref_base_and_extent.
3792 (do_structure_copy): Likewise.
3793 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
3794 get_inner_reference.
3795 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
3796 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
3797 * ubsan.c (instrument_bool_enum_load): Likewise.
3798 (instrument_object_size): Likewise.
3799 * var-tracking.c (track_expr_p): Adjust call to
3800 get_ref_base_and_extent.
3801 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
3802 get_inner_reference.
3803 * config/s390/s390.c (s390_expand_atomic): Adjust call to
3805 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
3807 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
3809 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
3811 * config/sparc/sparc.opt (mfix-at697f): Add final period.
3813 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3815 PR rtl-optimization/67864
3816 * common/config/i386/i386-common.c (ix86_option_optimization_table)
3817 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
3820 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3822 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
3825 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3827 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
3828 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
3830 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3832 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
3833 * internal-fn.c: Don't undef it here.
3834 * tree-core.h: Likewise.
3836 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3838 * builtins.c (fold_builtin_nan): Delete.
3839 (fold_builtin_memcmp): Remove case where both arguments are constant.
3840 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
3841 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
3842 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
3843 * fold-const-call.c: Include fold-const.h.
3844 (host_size_t_cst_p): New function.
3845 (build_cmp_result, fold_const_builtin_nan): Likewise.
3846 (fold_const_call_1): New function, split out from...
3847 (fold_const_call): ...here (for all three interfaces). Handle
3848 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
3850 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3852 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
3853 (fold_builtin_1): Don't call them.
3854 * fold-const-call.c: Include tm.h.
3855 (fold_const_call_ss): New variant for integer-to-integer folds.
3856 (fold_const_call): Call it.
3858 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3860 * builtins.c (fold_builtin_classify): Move constant cases to...
3861 * fold-const-call.c (fold_const_call_ss): ...here.
3863 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3865 * builtins.h (c_getstr): Move to...
3866 * fold-const.h (c_getstr): ...here.
3867 * builtins.c (c_getstr): Move to...
3868 * fold-const.c (c_getstr): ...here.
3870 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3872 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
3873 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
3875 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3877 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
3878 the dominance info; free it if we can't.
3879 (pass_call_cdce::execute): Don't free the dominance info here.
3881 2015-11-06 Jeff Law <law@redhat.com>
3883 * tree-ssa-threadedge.c (dummy_simplify): Remove.
3884 (thread_around_empty_blocks): Remove backedge_seen_p argument.
3885 If we thread to a backedge, then return false. Update recursive
3886 call to eliminate backedge_seen_p argument.
3887 (thread_through_normal_block): Remove backedge_seen_p argument.
3888 Remove backedge_seen_p argument from calls to
3889 thread_around_empty_blocks. Remove checks on backedge_seen_p.
3890 If we thread to a backedge, then return 0.
3891 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
3892 pass it to thread_through_normal_block or thread_through_empty_blocks.
3893 For joiner handling, if we see a backedge, do not try normal
3896 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3898 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
3899 * graphite-poly.c (new_scop): Initialize original_schedule.
3900 (free_scop): Free original_schedule.
3901 * graphite-poly.h (struct scop): Add field original_schedule.
3902 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
3903 (build_poly_scop): Call build_scop_original_schedule.
3905 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3907 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
3908 (build_pbb_minimal_scattering_polyhedrons): New.
3909 (build_scop_scattering): Remove.
3910 (build_scop_minimal_scattering): New.
3911 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
3912 (build_poly_scop): Call build_scop_minimal_scattering.
3914 2015-11-06 Jeff Law <law@redhat.com>
3916 * cfg-flags.def (IGNORE): New edge flag.
3917 * tree-vrp.c (identify_jump_threads): Mark and clear edges
3918 scheduled for removal with EDGE_IGNORE around call into
3919 jump threader. Do no thread across edges with EDGE_IGNORE,
3920 but do allow threading across those with EDGE_DFS_BACK.
3922 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
3924 * doc/md.texi (multi-alternative constraints): Don't document
3925 alternatives inherently tied to reload for the user documentation.
3927 2015-11-06 Michael Collison <michael.collison@linaro.org>
3928 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3931 2015-08-01 Michael Collison <michael.collison@linaro.org
3932 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3934 * config/arm/arm.md (*arm_smin_cmp): New pattern.
3935 (*arm_umin_cmp): Likewise.
3937 2015-11-06 Jakub Jelinek <jakub@redhat.com>
3939 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
3940 * omp-low.c (check_omp_nesting_restrictions): Update for the
3941 various new OpenMP 4.5 nesting restrictions, clarified
3942 nesting glossary, closely nested region relationship clarified
3943 to mean explicit or implicit parallel regions (target/teams),
3944 use %</%> or %qs where appropriate.
3946 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3947 Sebastian Pop <s.pop@samsung.com>
3949 * graphite-scop-detection.c (loop_is_valid_scop): Call
3950 optimize_loop_nest_for_speed_p.
3952 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3953 Sebastian Pop <s.pop@samsung.com>
3955 * graphite-optimize-isl.c (optimize_isl): Call
3956 isl_options_set_schedule_maximize_band_depth.
3958 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3959 Sebastian Pop <s.pop@samsung.com>
3961 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
3962 and exit edges should not be a part of irreducible loop.
3963 (scop_detection::can_represent_loop_1): Loops should not be
3965 (scop_detection::harmful_stmt_in_region): All the basic block
3966 should belong to reducible loops.
3968 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
3970 * config/aarch64/aarch64-simd-builtins.def: Update builtins
3971 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
3972 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
3973 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
3974 (aarch64_tbx4v8qi): Rename to...
3975 aarch64_tbx4<mode>): ... this.
3976 (aarch64_qtbl3<mode>): New pattern.
3977 (aarch64_qtbx3<mode>): New pattern.
3978 (aarch64_qtbl4<mode>): New pattern.
3979 (aarch64_qtbx4<mode>): New pattern.
3980 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
3981 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
3982 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
3983 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
3984 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
3985 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
3986 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
3987 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
3990 2015-11-06 Mike Stump <mikestump@comcast.net>
3993 * dwarf2out.c (get_full_len): Return a value based upon the actual
3994 precision needed for the value.
3995 (add_const_value_attribute): Use a maximal wide-int for
3996 CONST_WIDE_INTs, not VOIDmode.
3997 (output_die): Don't ever output NULL with printf.
3999 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
4000 BLKmode nor VOIDmode values.
4002 2015-11-06 David Malcolm <dmalcolm@redhat.com>
4004 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
4006 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
4007 * diagnostic-core.h (warning_at_rich_loc): New declaration.
4008 (error_at_rich_loc): New declaration.
4009 (permerror_at_rich_loc): New declaration.
4010 (inform_at_rich_loc): New declaration.
4011 * diagnostic-show-locus.c (adjust_line): Delete.
4012 (struct point_state): New struct.
4013 (class colorizer): New class.
4014 (class layout_point): New class.
4015 (class layout_range): New class.
4016 (struct line_bounds): New.
4017 (class layout): New class.
4018 (colorizer::colorizer): New ctor.
4019 (colorizer::~colorizer): New dtor.
4020 (layout::layout): New ctor.
4021 (layout::print_source_line): New method.
4022 (layout::print_annotation_line): New method.
4023 (layout::get_state_at_point): New method.
4024 (layout::get_x_bound_for_row): New method.
4025 (diagnostic_show_locus): Reimplement in terms of class layout.
4026 (diagnostic_print_caret_line): Delete.
4027 * diagnostic.c (diagnostic_initialize): Replace
4028 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
4029 (diagnostic_set_info_translated): Convert param from location_t
4030 to rich_location *. Eliminate calls to set_location on the
4031 message in favor of storing the rich_location ptr there.
4032 (diagnostic_set_info): Convert param from location_t to
4034 (diagnostic_build_prefix): Break out array into...
4035 (diagnostic_kind_color): New variable.
4036 (diagnostic_get_color_for_kind): New function.
4037 (diagnostic_report_diagnostic): Colorize the option_text
4038 using the color for the severity.
4039 (diagnostic_append_note): Update for change in signature of
4040 diagnostic_set_info.
4041 (diagnostic_append_note_at_rich_loc): New function.
4042 (emit_diagnostic): Update for change in signature of
4043 diagnostic_set_info.
4045 (inform_at_rich_loc): New function.
4046 (inform_n): Update for change in signature of diagnostic_set_info.
4047 (warning): Likewise.
4048 (warning_at): Likewise.
4049 (warning_at_rich_loc): New function.
4050 (warning_n): Update for change in signature of diagnostic_set_info.
4051 (pedwarn): Likewise.
4052 (permerror): Likewise.
4053 (permerror_at_rich_loc): New function.
4054 (error): Update for change in signature of diagnostic_set_info.
4055 (error_n): Likewise.
4056 (error_at): Likewise.
4057 (error_at_rich_loc): New function.
4058 (sorry): Update for change in signature of diagnostic_set_info.
4059 (fatal_error): Likewise.
4060 (internal_error): Likewise.
4061 (internal_error_no_backtrace): Likewise.
4062 (source_range::debug): New function.
4063 * diagnostic.h (struct diagnostic_info): Eliminate field
4064 "override_column". Add field "richloc".
4065 (struct diagnostic_context): Add field "colorize_source_p".
4066 (diagnostic_override_column): Delete.
4067 (diagnostic_set_info): Convert param from location_t to
4069 (diagnostic_set_info_translated): Likewise.
4070 (diagnostic_append_note_at_rich_loc): New function.
4071 (diagnostic_num_locations): New function.
4072 (diagnostic_expand_location): Get the location from the
4074 (diagnostic_print_caret_line): Delete.
4075 (diagnostic_get_color_for_kind): New declaration.
4076 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
4077 (error_cb): Update for change in signature of "error" callback.
4078 (fatal_at): Likewise.
4079 (warning_at): Likewise.
4080 * input.c (linemap_client_expand_location_to_spelling_point): New.
4081 * pretty-print.c (text_info::set_range): New method.
4082 (text_info::get_location): New method.
4083 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
4084 (struct text_info): Eliminate "locations" array in favor of
4085 "m_richloc", a rich_location *.
4086 (textinfo::set_location): Add a "caret_p" param, and reimplement
4087 in terms of a call to set_range.
4088 (textinfo::get_location): Eliminate inline implementation in favor of
4089 an out-of-line reimplementation.
4090 (textinfo::set_range): New method.
4091 * rtl-error.c (diagnostic_for_asm): Update for change in signature
4092 of diagnostic_set_info.
4093 * tree-diagnostic.c (default_tree_printer): Update for new
4094 "caret_p" param for textinfo::set_location.
4095 * tree-pretty-print.c (percent_K_format): Likewise.
4097 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4100 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4101 * config/aarch64/aarch64.c
4102 (aarch64_can_use_per_function_literal_pools_p): New.
4103 (aarch64_use_blocks_for_constant_p): Adjust declaration
4104 and use aarch64_can_use_function_literal_pools_p.
4105 (aarch64_select_rtx_section): Update.
4107 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4109 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
4110 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
4111 (arm_output_multireg_pop): Likewise.
4112 (output_move_double): Likewise.
4113 (output_move_quad): Likewise.
4114 (output_return_instruction): Likewise.
4115 (arm_print_operand): Remove support for %( and %. print modifiers.
4116 (arm_output_shift): Make unified asm.
4117 (arm_declare_function_name): Likewise.
4118 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
4119 (ASM_APP_OFF): Adjust.
4120 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
4121 (ASM_OUTPUT_REG_POP): Likewise.
4122 * config/arm/arm.md: Adjust uses of %., %(, %)
4123 * config/arm/sync.md: Likewise.
4124 * config/arm/thumb2.md: Likewise.
4125 * config/arm/ldmstm.md: Regenerate.
4126 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
4127 * doc/invoke.texi (masm-unified-syntax): Update documentation.
4129 2015-11-06 David Malcolm <dmalcolm@redhat.com>
4131 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
4133 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4135 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
4136 add OEP_MATCH_SIDE_EFFECTS.
4137 * fold-const.c (operand_equal_p): Update documentation; handle
4138 OEP_MATCH_SIDE_EFFECTS.
4139 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
4140 OEP_MATCH_SIDE_EFFECTS.
4142 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
4143 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4145 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
4146 * config/aarch64/aarch64-protos.h: Declare.
4147 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
4149 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
4150 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
4151 code when applicable.
4152 * config/aarch64/aarch64.md: Added enum entries.
4153 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
4155 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4159 * ipa-polymorphic-call.c
4160 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
4161 issue when offset is out of range.
4162 (contains_type_p): Fix out of range check, clear dynamic flag.
4164 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
4166 * config.gcc (e6500): Fix cpu_is_64bit typo.
4168 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
4170 * tree-sra.c (completely_scalarize): Properly handle negative array
4171 indices using offset_int.
4173 2015-11-06 Richard Biener <rguenther@suse.de>
4175 * alloc-pool.h (object_allocator::allocate): Default-initialize
4178 2015-11-06 Richard Biener <rguenther@suse.de>
4180 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
4181 * lra.c (init_reg_info): Truncate copy_vec instead of
4182 re-allocating a new one and leaking the old.
4183 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
4185 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
4186 * postreload-gcse.c (free_mem): Free modify_mem_list and
4187 canon_modify_mem_list.
4189 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
4191 PR tree-optimization/68145
4192 * tree-vect-stmts.c (vectorizable_operation): Fix
4193 determination for booleans.
4195 2015-11-06 Tom de Vries <tom@codesourcery.com>
4197 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
4198 cond_jump, instead of split after last nondebug insn before cond_jump.
4199 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
4202 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4205 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
4206 subregs from accumulator and make sure it's a register.
4208 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
4210 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
4212 (reduc_uplus_<mode>): Remove.
4213 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
4214 loongson_extract_lo_<mode>.
4215 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
4216 reduc_smax_<mode>, reduc_smax_<mode>, use vec
4217 loongson_extract_lo_<mode>.
4218 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
4220 2015-11-06 Richard Biener <rguenther@suse.de>
4222 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
4224 (vect_stmt_in_region_p): Declare.
4225 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
4226 (destroy_bb_vec_info): Likewise.
4227 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
4228 (vect_get_and_check_slp_defs): Likewise.
4229 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
4230 (vect_slp_bb): Likewise.
4231 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
4232 in terms of vect_stmt_in_region_p.
4233 (vect_pattern_recog): Iterate over the BB region.
4234 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
4235 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
4236 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
4237 * config/i386/i386.c: Include gimple-iterator.h.
4238 * config/aarch64/aarch64.c: Likewise.
4240 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
4242 PR rtl-optimization/67753
4243 PR rtl-optimization/64164
4244 * function.c (assign_parm_setup_block): Avoid allocating a
4245 stack slot if we don't have an ABI-reserved one. Emit the
4246 copy to target_reg in the conversion seq if the copy from
4247 entry_parm is in it too. Don't use the conversion seq to copy
4248 a PARALLEL to a REG or a CONCAT.
4250 2015-11-06 Richard Biener <rguenther@suse.de>
4252 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
4255 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
4256 Thomas Schwinge <thomas@codesourcery.com>
4257 James Norris <jnorris@codesourcery.com>
4260 * gimplify.c (gimplify_scan_omp_clauses): Add support for
4261 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
4262 (gimplify_adjust_omp_clauses): Likewise.
4263 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
4264 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
4265 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
4266 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
4267 (omp_clause_code_name): Likewise.
4268 (walk_tree_1): Handle OMP_CLAUSE_TILE.
4269 * tree.h (OMP_TILE_LIST): New macro.
4271 2015-11-05 Martin Sebor <msebor@redhat.com>
4274 * doc/invoke.texi (-Wplacement-new): Document new option.
4276 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
4278 PR tree-optimization/65963
4279 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
4280 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
4282 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
4284 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
4285 (noce_convert_multiple_sets): Likewise.
4286 (noce_process_if_block): Call them.
4288 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
4290 * gimple-fold.c: Include omp-low.h.
4291 (fold_internal_goacc_dim): New.
4292 (gimple_fold_call): Call it.
4294 2015-11-05 Jakub Jelinek <jakub@redhat.com>
4295 Ilya Verbin <ilya.verbin@intel.com>
4298 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
4299 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
4300 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
4301 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
4302 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
4303 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
4304 (struct cgraph_simd_clone_arg): Adjust comment.
4305 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
4306 to GOMP_target_ext. Add num_teams and thread_limit arguments.
4307 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
4308 to GOMP_target_data_ext.
4309 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
4310 to GOMP_target_update_ext.
4311 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
4312 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
4313 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
4314 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
4315 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
4316 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
4317 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
4318 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
4319 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
4320 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
4321 * tree-core.h (enum omp_clause_schedule_kind): Add
4322 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
4323 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
4324 OMP_CLAUSE_SCHEDULE_LAST value.
4325 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
4326 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
4327 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
4328 OMP_FOR_CHECK. Remove comment.
4329 * tree-pretty-print.c (dump_omp_clause): Handle
4330 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
4331 Simplify. Print schedule clause modifiers.
4332 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
4333 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
4335 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
4336 (omp_default_clause): Tweak for
4337 private/firstprivate/is_device_ptr variables on target
4338 construct and use_device_ptr on target data.
4339 (omp_check_private): Likewise.
4340 (omp_notice_variable): For references check whether what it refers
4341 to has mappable type, rather than the reference itself.
4342 (omp_is_private): Diagnose linear iteration variables on non-simd
4344 (omp_no_lastprivate): Return true only for Fortran.
4345 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
4346 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
4347 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
4348 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
4349 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
4350 lastprivate and linear when combined with distribute. Gimplify
4351 variable low-bound for array reduction. Look through
4352 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
4354 (gimplify_adjust_omp_clauses_1): For implicit references to
4355 variables with reference type and when not ref to scalar or
4356 ref to pointer, map what they refer to using tofrom and
4357 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
4358 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
4359 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
4360 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
4361 Diagnose the same var on both firstprivate and lastprivate on
4362 distribute construct.
4363 (gimplify_omp_for): Fix up handling of predetermined
4364 lastprivate or linear iter vars when combined with distribute.
4365 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
4367 (gimplify_omp_workshare): Call optimize_target_teams.
4368 * omp-low.c (struct omp_region): Add sched_modifiers field.
4369 (struct omp_for_data): Likewise.
4370 (omp_any_child_fn_dumped): New variable.
4371 (extract_omp_for_data): Fill in sched_modifiers, and mask out
4372 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
4374 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
4375 bits of OMP_CLAUSE_SCHED_KIND.
4376 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
4377 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
4378 for array section reductions.
4379 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
4380 for distribute parallel for, if there are lastprivate clauses on the
4382 (lower_rec_input_clauses): Handle non-zero low-bound on array
4384 (lower_reduction_clauses): Likewise.
4385 (lower_send_clauses): Look through POINTER_PLUS_EXPR
4386 for array section reductions.
4387 (expand_parallel_call): Use nonmonotonic entrypoints for
4388 nonmonotonic: dynamic/guided.
4389 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
4390 child_fn if current_function_decl has assembler name set, but child_fn
4391 does not. Dump the header and IL of the child function when not in SSA
4393 (expand_omp_target): Likewise. Pass num_teams and thread_limit
4394 arguments to BUILT_IN_GOMP_TARGET.
4395 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4396 Initialize the extra _looptemp_ clause to fd->loop.n2.
4397 (expand_omp_for): Use nonmonotonic entrypoints for
4398 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
4399 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
4400 again if we have dumped any child functions.
4401 (lower_omp_for_lastprivate): Determine the right count variable
4402 for distribute simd, or distribute parallel for{, simd}.
4403 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
4404 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
4406 (simd_clone_clauses_extract): Handle variable step
4407 for references and arguments passed by reference.
4408 (simd_clone_mangle): Mangle ref/uval/val variable steps.
4409 (simd_clone_adjust_argument_types): Handle
4410 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
4411 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
4412 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
4413 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
4414 (simd_clone_linear_addend): New function.
4415 (simd_clone_adjust): Handle variable step like similarly
4416 to constant step, use simd_clone_linear_addend to determine
4417 the actual step at runtime.
4419 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
4421 * target.def (goacc.dim_limit): New hook.
4422 * targhooks.h (default_goacc_dim_limit): Declare.
4423 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
4424 * doc/tm.texi: Rebuilt.
4425 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
4426 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
4427 (default_goacc_dim_limit): New.
4428 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4429 (nvptx_goacc_dim_limit) New.
4430 (TARGET_GOACC_DIM_LIMIT): Override.
4431 * tree-vrp.c: Include omp-low.h, target.h.
4432 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
4435 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
4437 * tree-vect-generic.c (do_compare): Use -1 for true
4438 result instead of 1.
4440 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4442 * config/aarch64/aarch64.c
4443 (aarch64_can_use_per_function_literal_pools_p): New.
4444 (aarch64_use_blocks_for_constant_p): Adjust declaration
4445 and use aarch64_can_use_function_literal_pools_p.
4446 (aarch64_select_rtx_section): Update.
4448 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
4450 * targhooks.c (default_get_mask_mode): Use BLKmode in
4451 case target doesn't support required vector mode.
4452 * stor-layout.c (layout_type); Check for BLKmode.
4454 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
4455 Sebastian Pop <s.pop@samsung.com>
4457 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
4458 Remove use of parameter_rename_map.
4460 (copy_internal_parameters): Remove.
4461 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
4462 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
4463 (free_sese_info): Do not free parameter_rename_map.
4464 (set_rename): Do not use parameter_rename_map.
4465 (rename_uses): Update call to set_rename.
4466 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
4467 * sese.h (parameter_rename_map_t): Remove.
4468 (struct sese_info_t): Remove field parameter_rename_map.
4470 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
4471 Sebastian Pop <s.pop@samsung.com>
4473 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
4474 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
4475 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
4476 anonymous namespace.
4477 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
4478 (isl_id_for_pbb): Use a buffer of size 10.
4479 (isl_id_for_ssa_name): Same.
4480 * sese.c (set_rename): Add more dumps.
4482 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4484 * omp-low.c (struct omp_context): Remove reduction_map field.
4485 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
4486 (new_omp_context, delete_omp_context, scan_omp_target): Remove
4487 reduction_map handling.
4488 (lower_omp_target): Remove obsolete openacc reduction handling.
4490 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4492 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
4494 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4495 Cesar Philippidis <cesar@codesourcery.com>
4497 * config/nvptx/nvptx.c: Include gimple headers.
4498 (worker_red_size, worker_red_align, worker_red_name,
4499 worker_red_sym): New.
4500 (nvptx_option_override): Initialize worker reduction buffer.
4501 (nvptx_file_end): Write out worker reduction buffer var.
4502 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
4503 nvptx_expand_cmp_swap): New builtin expanders.
4504 (enum nvptx_builtins): New.
4505 (nvptx_builtin_decls): New.
4506 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
4507 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4508 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
4509 nvptx_lockless_update): New helpers.
4510 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
4511 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
4512 (nvptx_goacc_reduction): New.
4513 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
4514 TARGET_BUILTIN_DECL): Override.
4515 (TARGET_GOACC_REDUCTION): Override.
4517 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4518 Cesar Philippidis <cesar@codesourcery.com>
4520 * internal-fn.def (GOACC_REDUCTION): New.
4521 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
4522 * internal-fn.c (expand_GOACC_REDUCTION): New.
4523 * target.def (goacc.reduction): New OpenACC hook.
4524 * targhooks.h (default_goacc_reduction): Declare.
4525 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
4526 * doc/tm.texi: Rebuilt.
4527 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
4528 scan_sharing_clauses): Remove oacc reduction handling here.
4529 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
4530 (oacc_lower_reduction_var_helper): Delete.
4531 (lower_oacc_reductions): New.
4532 (lower_reduction_clauses): Don't handle OpenACC reductions here.
4533 (lower_oacc_head_tail): Call lower_oacc_reductions.
4534 (oacc_gimple_assign, oacc_init_reduction_array,
4535 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
4536 oacc_process_reduction_data): Delete.
4537 (lower_omp_target): Remove old OpenACC reduction handling. Insert
4538 dummy OpenACC gang reduction for reductions at outer level.
4539 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
4540 (default_goacc_reduction): New.
4541 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
4543 2015-11-04 Martin Liska <mliska@suse.cz>
4545 * cgraphunit.c (cgraph_node::expand_thunk): Call
4546 allocate_struct_function before init_function_start.
4547 (cgraph_node::expand): Use push_cfun and pop_cfun.
4548 * config/i386/i386.c (ix86_code_end): Call
4549 allocate_struct_function before init_function_start.
4550 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
4551 * function.c (init_function_start): Move preamble to all
4553 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
4554 (execute_one_pass): Handle newly added TODO_discard_function.
4555 (execute_pass_list_1): Terminate if cfun equals to NULL.
4556 (execute_pass_list): Do not push and pop cfun, expect that
4558 * tree-pass.h (TODO_discard_function): Define.
4560 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
4562 * cfganal.c (inverted_post_order_compute): Remove conditional
4563 compilation, use flag_checking.
4564 * config.in: Regenerate.
4565 * configure: Regenerate.
4566 * configure.ac: Remove ENABLE_CHECKING.
4567 * genconditions.c: Do not #undef ENABLE_CHECKING.
4568 * sese.h (bb_in_region): Comment out broken check.
4569 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
4570 conditional compilation, use flag_checking.
4572 2015-11-04 Tom de Vries <tom@codesourcery.com>
4574 PR tree-optimization/67742
4575 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
4577 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
4578 (create_variable_info_for_1): Add and handle handle_param parameter.
4579 Add restrict handling.
4580 (create_variable_info_for): Call create_variable_info_for_1 with extra
4582 (make_param_constraints): Drop restrict_name parameter. Ignore
4583 vi->only_restrict_pointers.
4584 (intra_create_variable_infos): Call create_variable_info_for_1 with
4585 extra arg. Remove restrict handling. Call make_param_constraints with
4588 2015-11-04 Tom de Vries <tom@codesourcery.com>
4590 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
4593 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4595 * config/arm/coff.h: Remove.
4597 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
4599 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
4600 check for aggregate types and beef up comment for mode check.
4602 2015-11-03 Richard Biener <rguenther@suse.de>
4604 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
4605 data references here.
4606 * tree-vect-loop.c: Include cgraph.h.
4607 (vect_analyze_loop_2): Collect data references here.
4608 * tree-vect-slp.c (find_bb_location): Inline ...
4609 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
4610 Factor in vect_slp_transform_bb.
4611 (vect_slp_transform_bb): Removed.
4612 (vect_slp_analyze_bb_1): Collect data references here.
4613 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
4615 * tree-vectorizer.h (vect_slp_bb): Declare.
4616 (vect_slp_analyze_bb): Remove.
4617 (vect_slp_transform_bb): Remove.
4618 (find_bb_location): Remove.
4619 (vect_analyze_data_refs): Remove stmt count reference parameter.
4621 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
4623 * multiple_target.c (create_dispatcher_calls): Add target check
4625 (create_target_clone): Change assembler name for versioned declarations.
4627 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
4628 Chung-Lin Tang <cltang@codesourcery.com>
4630 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
4631 * omp-low.c (check_omp_nesting_restrictions): Allow
4632 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
4635 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
4637 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
4638 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
4639 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
4641 (vmulxq_f32): Likewise.
4643 (vmulxq_f64): Rewrite to call fmulx builtin.
4644 (vmulxs_f32): Likewise.
4645 (vmulxd_f64): Likewise.
4646 (vmulx_lane_f32): Remove.
4647 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
4649 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
4651 * config/aarch64/aarch64.md (*movhf_aarch64): Use
4652 aarch64_reg_or_fp_zero for second operand.
4654 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
4656 * gimple-expr.c: Include hash-set.h and rtl.h.
4657 (mark_addressable_queue): New var.
4658 (mark_addressable): Factor actual marking into...
4659 (mark_addressable_1): ... this. Queue it up during expand.
4660 (mark_addressable_2): New.
4661 (flush_mark_addressable_queue): New.
4662 * gimple-expr.h (flush_mark_addressable_queue): Declare.
4663 * cfgexpand.c: Include gimple-expr.h.
4664 (pass_expand::execute): Flush mark_addressable queue.
4666 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
4668 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
4669 bb_no_side_effects_p tests...
4670 (tree_ssa_ifcombine_bb): ... here.
4672 PR tree-optimization/68083
4673 * tree-ssa-ifcombine.c: Include tree-ssa.h.
4674 (bb_no_side_effects_p): Test for undefined uses too.
4675 * tree-ssa.c (gimple_uses_undefined_value_p): New.
4676 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
4678 2015-11-02 Jeff Law <law@redhat.com>
4680 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
4681 cases where the loop latch edge is in the middle of an FSM path.
4683 2015-11-03 Tom de Vries <tom@codesourcery.com>
4685 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
4686 (make_param_constraints): ... this. Add and handle restrict_name
4687 parameter. Handle is_full_var case.
4688 (intra_create_variable_infos): Use make_param_constraints.
4690 2015-11-03 Tom de Vries <tom@codesourcery.com>
4692 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
4693 make_copy_constraint call with make_constraint_from call.
4695 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
4697 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
4700 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
4702 * builtins.h (fold_fma): Move to fold-const-call.h.
4703 * builtins.c: Include fold-const-call.h.
4704 (mathfn_built_in_2): New function, split out from...
4705 (mathfn_built_in_1): ...here.
4706 (do_real_to_int_conversion, fold_const_builtin_pow)
4707 (fold_const_builtin_logb, fold_const_builtin_significand)
4708 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
4709 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
4710 (fold_builtin_sincos): Use fold_const_call to handle constants.
4711 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
4712 checks for ERROR_MARK. Use fold_const_call to handle constant
4713 folds for math functions.
4714 (fold_fma): Move to fold-const-call.c.
4715 * fold-const.c: Include fold-const-call.h.
4716 * Makefile.in (OBJS): Add fold-const-call.o.
4717 (PLUGIN_HEADERS): Add fold-const-call.h.
4718 * realmpfr.h (real_from_mpfr): Allow the format to be specified
4720 * realmpfr.c (real_from_mpfr): Likewise.
4721 * fold-const-call.h, fold-const-call.c: New files.
4723 2015-11-02 Julian Brown <julian@codesourcery.com>
4725 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
4726 brackets and semicolon.
4728 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
4731 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
4733 PR tree-optimization/65963
4734 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
4735 LSHIFT_EXPRs as equivalent MULT_EXPRs.
4737 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
4740 * fold-const.c: Include "md5.h".
4742 2015-11-01 Jeff Law <law@redhat.com>
4744 * vmsdbgout.c: Revert unused header file reduction patch.
4746 * config/mcore/mcore.c: Include regs.h.
4748 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
4750 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
4752 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
4754 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
4755 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
4756 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
4758 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
4760 * ggc-common.c: Restore needed header for checking=release.
4762 2015-10-31 Tom de Vries <tom@codesourcery.com>
4764 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
4766 2015-10-31 Tom de Vries <tom@codesourcery.com>
4768 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
4769 existing varinfo for arguments.
4771 2015-10-31 Tom de Vries <tom@codesourcery.com>
4773 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
4774 create_function_info_for. Dump constraints generated during
4775 create_function_info_for. Move intra_create_variable_infos call and
4776 function-return-values-escape bit to ...
4777 (create_function_info_for): ... here, and merge
4778 intra_create_variable_infos call with argument loop. Add and handle
4779 nonlocal_p parameter.
4781 2015-10-31 Tom de Vries <tom@codesourcery.com>
4783 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
4784 updating is alap, and seperated from preceding code. Make sure
4785 insert_vi_for_tree is seperated from surrounding code.
4787 2015-10-31 Tom de Vries <tom@codesourcery.com>
4789 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
4791 2015-10-30 Jeff Law <law@redhat.com>
4792 Nathan Sidwell <nathan@acm.org>
4794 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
4796 (MOVE_MAX): Set to 8.
4798 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
4800 * cgraph.c: Include context.h for offloading.
4801 * varpool.c: Include context.h and omp-low.h.
4803 2015-10-30 Anatoly Sokolov <aesok@post.ru>
4805 * rtl.h (contains_symbol_ref_p): Declare.
4806 (SYMBOL_REF_P): Define.
4807 * rtlanal.c (contains_symbol_ref_p: New function.
4808 * lra-constraints.c (contains_symbol_ref_p): Remove.
4809 * var-tracking.c (contains_symbol_ref): Remove.
4810 (track_expr_p): Use contains_symbol_ref_p instead of
4811 contains_symbol_ref.
4813 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
4815 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
4816 * fold-const.c (get_array_ctor_element_at_index): New.
4817 (fold): Remove binary-search through CONSTRUCTOR, call previous.
4819 * fold-const.h (get_array_ctor_element_at_index): New.
4821 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
4823 * Makefile.in (OBJS): Add multiple_target.o.
4824 * attrib.c (make_attribute): Moved from config/i386/i386.c
4825 * config/i386/i386.c (make_attribute): Deleted.
4826 * multiple_target.c (create_dispatcher_calls): New.
4827 (get_attr_len): Ditto.
4828 (get_attr_str): Ditto.
4829 (separate_attrs): Ditto.
4830 (is_valid_asm_symbol): Ditto.
4831 (create_new_asm_name): Ditto.
4832 (create_target_clone): Ditto.
4833 (expand_target_clones): Ditto.
4834 (ipa_target_clone): Ditto.
4835 (ipa_dispatcher_calls): Ditto.
4836 * passes.def (pass_target_clone): Two new ipa passes.
4837 * tree-pass.h (make_pass_target_clone): Ditto.
4838 * doc/extend.texi (target_clones): New attribute description.
4840 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
4842 PR rtl-optimization/68106
4843 * lra-remat.c (input_regno_present_p): Process hard regs
4844 explicitly present in machine description insns.
4845 (call_used_input_regno_present_p): Ditto.
4846 (calculate_gen_cands): Ditto.
4849 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
4851 * config/arm/neon-testgen.ml: Fix comment typo.
4853 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4855 * rtlanal.c (reg_set_p): Expand function comment.
4857 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
4859 * alias.c: Remove unused headers.
4861 * attribs.c: Likewise.
4862 * auto-inc-dec.c: Likewise.
4863 * auto-profile.c: Likewise.
4864 * bb-reorder.c: Likewise.
4865 * bitmap.c: Likewise.
4866 * bt-load.c: Likewise.
4867 * builtins.c: Likewise.
4868 * caller-save.c: Likewise.
4869 * calls.c: Likewise.
4872 * cfganal.c: Likewise.
4873 * cfgbuild.c: Likewise.
4874 * cfgcleanup.c: Likewise.
4875 * cfgexpand.c: Likewise.
4876 * cfghooks.c: Likewise.
4877 * cfgloop.c: Likewise.
4878 * cfgloopanal.c: Likewise.
4879 * cfgloopmanip.c: Likewise.
4880 * cfgrtl.c: Likewise.
4881 * cgraph.c: Likewise.
4882 * cgraphbuild.c: Likewise.
4883 * cgraphclones.c: Likewise.
4884 * cgraphunit.c: Likewise.
4885 * cilk-common.c: Likewise.
4886 * combine-stack-adj.c: Likewise.
4887 * combine.c: Likewise.
4888 * compare-elim.c: Likewise.
4889 * convert.c: Likewise.
4890 * coverage.c: Likewise.
4891 * cppbuiltin.c: Likewise.
4892 * cprop.c: Likewise.
4894 * cselib.c: Likewise.
4895 * data-streamer-in.c: Likewise.
4896 * data-streamer-out.c: Likewise.
4897 * data-streamer.c: Likewise.
4898 * dbxout.c: Likewise.
4901 * debug.c: Likewise.
4902 * df-core.c: Likewise.
4903 * df-problems.c: Likewise.
4904 * df-scan.c: Likewise.
4906 * dojump.c: Likewise.
4907 * dominance.c: Likewise.
4908 * domwalk.c: Likewise.
4909 * double-int.c: Likewise.
4911 * dumpfile.c: Likewise.
4912 * dwarf2asm.c: Likewise.
4913 * dwarf2cfi.c: Likewise.
4914 * dwarf2out.c: Likewise.
4915 * emit-rtl.c: Likewise.
4916 * except.c: Likewise.
4917 * explow.c: Likewise.
4918 * expmed.c: Likewise.
4920 * final.c: Likewise.
4921 * fixed-value.c: Likewise.
4922 * fold-const.c: Likewise.
4923 * function.c: Likewise.
4924 * fwprop.c: Likewise.
4926 * generic-match-head.c: Likewise.
4927 * ggc-common.c: Likewise.
4928 * gimple-builder.c: Likewise.
4929 * gimple-expr.c: Likewise.
4930 * gimple-fold.c: Likewise.
4931 * gimple-iterator.c: Likewise.
4932 * gimple-low.c: Likewise.
4933 * gimple-match-head.c: Likewise.
4934 * gimple-pretty-print.c: Likewise.
4935 * gimple-ssa-isolate-paths.c: Likewise.
4936 * gimple-ssa-strength-reduction.c: Likewise.
4937 * gimple-streamer-in.c: Likewise.
4938 * gimple-streamer-out.c: Likewise.
4939 * gimple-walk.c: Likewise.
4940 * gimple.c: Likewise.
4941 * gimplify-me.c: Likewise.
4942 * gimplify.c: Likewise.
4943 * godump.c: Likewise.
4944 * graph.c: Likewise.
4945 * graphds.c: Likewise.
4946 * haifa-sched.c: Likewise.
4947 * hw-doloop.c: Likewise.
4948 * ifcvt.c: Likewise.
4949 * init-regs.c: Likewise.
4950 * internal-fn.c: Likewise.
4951 * ipa-chkp.c: Likewise.
4952 * ipa-comdats.c: Likewise.
4953 * ipa-cp.c: Likewise.
4954 * ipa-devirt.c: Likewise.
4955 * ipa-icf-gimple.c: Likewise.
4956 * ipa-icf.c: Likewise.
4957 * ipa-inline-analysis.c: Likewise.
4958 * ipa-inline-transform.c: Likewise.
4959 * ipa-inline.c: Likewise.
4960 * ipa-polymorphic-call.c: Likewise.
4961 * ipa-profile.c: Likewise.
4962 * ipa-prop.c: Likewise.
4963 * ipa-pure-const.c: Likewise.
4964 * ipa-ref.c: Likewise.
4965 * ipa-reference.c: Likewise.
4966 * ipa-split.c: Likewise.
4967 * ipa-utils.c: Likewise.
4968 * ipa-visibility.c: Likewise.
4970 * ira-build.c: Likewise.
4971 * ira-color.c: Likewise.
4972 * ira-conflicts.c: Likewise.
4973 * ira-costs.c: Likewise.
4974 * ira-emit.c: Likewise.
4975 * ira-lives.c: Likewise.
4978 * langhooks.c: Likewise.
4980 * lists.c: Likewise.
4981 * loop-doloop.c: Likewise.
4982 * loop-init.c: Likewise.
4983 * loop-invariant.c: Likewise.
4984 * loop-iv.c: Likewise.
4985 * loop-unroll.c: Likewise.
4986 * lower-subreg.c: Likewise.
4987 * lra-assigns.c: Likewise.
4988 * lra-coalesce.c: Likewise.
4989 * lra-constraints.c: Likewise.
4990 * lra-eliminations.c: Likewise.
4991 * lra-lives.c: Likewise.
4992 * lra-remat.c: Likewise.
4993 * lra-spills.c: Likewise.
4995 * lto-cgraph.c: Likewise.
4996 * lto-compress.c: Likewise.
4997 * lto-opts.c: Likewise.
4998 * lto-section-in.c: Likewise.
4999 * lto-section-out.c: Likewise.
5000 * lto-streamer-in.c: Likewise.
5001 * lto-streamer-out.c: Likewise.
5002 * lto-streamer.c: Likewise.
5004 * mode-switching.c: Likewise.
5005 * modulo-sched.c: Likewise.
5006 * optabs.c: Likewise.
5007 * opts-global.c: Likewise.
5008 * passes.c: Likewise.
5009 * plugin.c: Likewise.
5010 * postreload-gcse.c: Likewise.
5011 * postreload.c: Likewise.
5012 * predict.c: Likewise.
5013 * print-tree.c: Likewise.
5014 * profile.c: Likewise.
5016 * realmpfr.c: Likewise.
5017 * recog.c: Likewise.
5019 * reg-stack.c: Likewise.
5020 * regcprop.c: Likewise.
5021 * reginfo.c: Likewise.
5022 * regrename.c: Likewise.
5023 * regstat.c: Likewise.
5024 * reload.c: Likewise.
5025 * reload1.c: Likewise.
5026 * reorg.c: Likewise.
5027 * resource.c: Likewise.
5028 * rtl-chkp.c: Likewise.
5029 * rtl-error.c: Likewise.
5030 * rtlanal.c: Likewise.
5031 * rtlhooks.c: Likewise.
5032 * sanopt.c: Likewise.
5033 * sched-deps.c: Likewise.
5034 * sched-ebb.c: Likewise.
5035 * sched-rgn.c: Likewise.
5036 * sdbout.c: Likewise.
5037 * sel-sched-dump.c: Likewise.
5038 * sel-sched-ir.c: Likewise.
5039 * sel-sched.c: Likewise.
5041 * shrink-wrap.c: Likewise.
5042 * simplify-rtx.c: Likewise.
5043 * stack-ptr-mod.c: Likewise.
5044 * statistics.c: Likewise.
5046 * stor-layout.c: Likewise.
5047 * store-motion.c: Likewise.
5048 * stringpool.c: Likewise.
5049 * symtab.c: Likewise.
5050 * target-globals.c: Likewise.
5051 * targhooks.c: Likewise.
5052 * toplev.c: Likewise.
5053 * tracer.c: Likewise.
5054 * trans-mem.c: Likewise.
5055 * tree-affine.c: Likewise.
5056 * tree-call-cdce.c: Likewise.
5057 * tree-cfg.c: Likewise.
5058 * tree-cfgcleanup.c: Likewise.
5059 * tree-chkp-opt.c: Likewise.
5060 * tree-chkp.c: Likewise.
5061 * tree-chrec.c: Likewise.
5062 * tree-complex.c: Likewise.
5063 * tree-data-ref.c: Likewise.
5064 * tree-dfa.c: Likewise.
5065 * tree-diagnostic.c: Likewise.
5066 * tree-dump.c: Likewise.
5067 * tree-eh.c: Likewise.
5068 * tree-emutls.c: Likewise.
5069 * tree-if-conv.c: Likewise.
5070 * tree-inline.c: Likewise.
5071 * tree-into-ssa.c: Likewise.
5072 * tree-iterator.c: Likewise.
5073 * tree-loop-distribution.c: Likewise.
5074 * tree-nested.c: Likewise.
5075 * tree-nrv.c: Likewise.
5076 * tree-object-size.c: Likewise.
5077 * tree-outof-ssa.c: Likewise.
5078 * tree-parloops.c: Likewise.
5079 * tree-phinodes.c: Likewise.
5080 * tree-predcom.c: Likewise.
5081 * tree-pretty-print.c: Likewise.
5082 * tree-profile.c: Likewise.
5083 * tree-scalar-evolution.c: Likewise.
5084 * tree-sra.c: Likewise.
5085 * tree-ssa-address.c: Likewise.
5086 * tree-ssa-alias.c: Likewise.
5087 * tree-ssa-ccp.c: Likewise.
5088 * tree-ssa-coalesce.c: Likewise.
5089 * tree-ssa-copy.c: Likewise.
5090 * tree-ssa-dce.c: Likewise.
5091 * tree-ssa-dse.c: Likewise.
5092 * tree-ssa-forwprop.c: Likewise.
5093 * tree-ssa-ifcombine.c: Likewise.
5094 * tree-ssa-live.c: Likewise.
5095 * tree-ssa-loop-ch.c: Likewise.
5096 * tree-ssa-loop-im.c: Likewise.
5097 * tree-ssa-loop-ivcanon.c: Likewise.
5098 * tree-ssa-loop-ivopts.c: Likewise.
5099 * tree-ssa-loop-manip.c: Likewise.
5100 * tree-ssa-loop-niter.c: Likewise.
5101 * tree-ssa-loop-prefetch.c: Likewise.
5102 * tree-ssa-loop-unswitch.c: Likewise.
5103 * tree-ssa-loop.c: Likewise.
5104 * tree-ssa-math-opts.c: Likewise.
5105 * tree-ssa-operands.c: Likewise.
5106 * tree-ssa-phiopt.c: Likewise.
5107 * tree-ssa-phiprop.c: Likewise.
5108 * tree-ssa-pre.c: Likewise.
5109 * tree-ssa-propagate.c: Likewise.
5110 * tree-ssa-reassoc.c: Likewise.
5111 * tree-ssa-scopedtables.c: Likewise.
5112 * tree-ssa-sink.c: Likewise.
5113 * tree-ssa-strlen.c: Likewise.
5114 * tree-ssa-structalias.c: Likewise.
5115 * tree-ssa-tail-merge.c: Likewise.
5116 * tree-ssa-ter.c: Likewise.
5117 * tree-ssa-threadupdate.c: Likewise.
5118 * tree-ssa-uncprop.c: Likewise.
5119 * tree-ssa-uninit.c: Likewise.
5120 * tree-ssa.c: Likewise.
5121 * tree-ssanames.c: Likewise.
5122 * tree-stdarg.c: Likewise.
5123 * tree-streamer-in.c: Likewise.
5124 * tree-streamer-out.c: Likewise.
5125 * tree-streamer.c: Likewise.
5126 * tree-switch-conversion.c: Likewise.
5127 * tree-tailcall.c: Likewise.
5128 * tree-vect-data-refs.c: Likewise.
5129 * tree-vect-generic.c: Likewise.
5130 * tree-vect-loop-manip.c: Likewise.
5131 * tree-vect-loop.c: Likewise.
5132 * tree-vect-patterns.c: Likewise.
5133 * tree-vect-slp.c: Likewise.
5134 * tree-vect-stmts.c: Likewise.
5135 * tree-vectorizer.c: Likewise.
5136 * tree-vrp.c: Likewise.
5139 * ubsan.c: Likewise.
5140 * value-prof.c: Likewise.
5141 * var-tracking.c: Likewise.
5142 * varasm.c: Likewise.
5143 * varpool.c: Likewise.
5144 * vmsdbgout.c: Likewise.
5145 * vtable-verify.c: Likewise.
5147 * wide-int-print.cc: Likewise.
5148 * wide-int.cc: Likewise.
5149 * xcoffout.c: Likewise.
5151 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
5153 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
5154 between pass numbering and execution order.
5156 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5158 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
5159 check for dependencies.
5161 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5163 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
5166 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5168 * real.h (format_helper): New.
5169 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
5170 (real_from_target, real_nan, real_2expN, real_value_truncate)
5171 (significand_size, real_from_string2, exact_real_inverse)
5172 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
5173 (real_round, real_isinteger, real_from_integer): Replace
5174 machine_mode arguments with format_helper arguments.
5175 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
5176 (real_from_integer, real_nan, real_2expN, real_convert)
5177 (real_value_truncate, exact_real_truncate, real_to_target)
5178 (real_from_target, significand_size, real_powi, real_trunc)
5179 (real_floor, real_ceil, real_round, real_isinteger): Replace
5180 machine_mode arguments with format_helper arguments.
5181 (real_to_target_fmt, real_from_target_fmt): Delete.
5182 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
5183 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
5184 argument with real_format.
5185 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
5187 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5189 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
5190 (fixed_to_decimal, fixed_convert_from_real)
5191 (real_convert_from_fixed): Fix mode arguments to real_2expN.
5193 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5195 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
5196 SCALAR_FLOAT_MODE_P.
5198 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
5200 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
5201 (completely_scalarize): Comment zero-length arrays.
5202 (get_access_replacement): Correct comment re. precondition.
5204 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5206 * config/i386/i386.c (get_builtin_code_for_version): Set priority
5207 for PROCESSOR_ZNVER1.
5208 (enum processor_model): Add M_AMDFAM17H_znver1.
5209 (struct arch_names_table): Likewise.
5210 * doc/extend.texi: ADD znver1.
5212 2015-10-30 Richard Biener <rguenther@suse.de>
5214 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
5215 fold () on single RHSs. Allow CONSTRUCTORS with trailing
5216 zeros to be folded to VECTOR_CSTs.
5217 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
5218 * fold-const.c (fold): Use build_vector_from_ctor.
5220 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
5222 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
5223 "mov %0.h[0], %1.h[0] to "neon_move".
5224 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
5225 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
5227 (*cmovsi_insn_uxtw): Likewise.
5229 2015-10-30 Tom de Vries <tom@codesourcery.com>
5231 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
5232 unsigned, and initialize, and use initial value instead of hardcoded
5233 constant. Add generic constraints dumping section. Don't dump global
5234 initializers constraints dumping section if empty. Don't update
5235 variable from if unused.
5237 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
5239 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
5240 flag_checking and/or CHECKING_P to eliminate conditional compilation
5242 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
5243 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5244 * config/i386/i386.c (ix86_print_operand_address): Likewise.
5245 (output_387_binary_op): Likewise.
5246 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
5247 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
5248 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
5250 * config/rs6000/rs6000.h: Likewise.
5251 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
5253 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
5255 * config/sh/sh.opt (mfdpic): Add missing period.
5257 2015-08-29 Anatoly Sokolov <aesok@post.ru>
5259 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5260 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
5261 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5262 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
5263 mcore_base_register_rtx_p, mcore_legitimate_index_p,
5264 mcore_legitimate_address_p): New functions.
5265 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5267 2015-10-29 Jeff Law <law@redhat.com>
5269 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
5271 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
5272 * tree-ssa-threadedge.c
5273 (record_temporary_equivalences_from_stmts_at_dest): Remove
5274 backedge_seen argument and associated code which invalidated
5275 equivalences based on the value of that argument.
5276 (thread_through_normal_block): Corresponding changes.
5278 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
5280 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
5281 function earlier in the file.
5282 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
5283 df_regs_ever_live_p.
5285 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
5287 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
5290 2015-10-29 Richard Henderson <rth@redhat.com>
5294 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
5295 sse check to the exact conditions of PR 67609.
5297 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
5299 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
5300 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
5301 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
5302 of the traditional names that TFmode uses for handling IEEE
5303 extended double. If -mfloat128, add KFmode functions for all of
5304 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
5305 make TFmode use the same emulation functions as KFmode.
5306 (init_float128_ibm): Likewise.
5307 (init_float128_ieee): Likewise.
5308 (rs6000_generate_compare): For IEEE 128-bit floating point
5309 comparisons, call the unordered comparison function instead of the
5310 ordered comparison function.
5311 (rs6000_expand_float128_convert): Deal with operands that are
5312 memory operands. Restructure the code to use a switch statement on
5313 the mode. Add support for TFmode defaulting to either IBM extended
5314 double or IEEE 128-bit floating point. If the underlying types are
5315 the same, use a move instead of a conversion function.
5316 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
5317 use for IEEE 128-bit floating point constants with -mfloat128.
5318 (rs6000_c_mode_for_suffix): Likewise.
5319 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
5320 128-bit floating point with IBM extended double floating point.
5321 (rs6000_invalid_binary_op): Likewise.
5322 (rs6000_gen_le_vsx_permute): On little endian systems generate a
5323 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
5324 types that can go in vector registers.
5325 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
5326 point types that can go in vector registers on little endian
5328 (mark_swaps_for_removal): Likewise.
5329 (rs6000_analyze_swaps): Likewise.
5330 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
5332 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
5333 rework IEEE 128-bit floating point insns to deal with TFmode being
5334 either IBM extended double or IEEE 128-bit floating point.
5336 (IBM128): Update iterator to add condition that the mode is IBM
5338 (IEEE128): New iterator for IEEE 128-bit floating point.
5339 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
5340 (FLOAT128): Likewise.
5341 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
5343 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
5344 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
5345 instead of hard coding TFmode or KFmode.
5346 (negtf2_internal): Likewise.
5347 (neg<mode>2_internal): Likewise.
5348 (abs<mode>2): Likewise.
5349 (abstf2_internal): Likewise.
5350 (abs<mode>2_internal): Likewise.
5351 (ieee_128bit_neg<mode>2): Likewise.
5352 (ieee_128bit_neg<mode>2_internal): Likewise.
5353 (ieee_128bit_abs<mode>2): Likewise.
5354 (ieee_128bit_abs<mode>2_internal): Likewise.
5355 (ieee_128bit_nabs<mode>2): Likewise.
5356 (ieee_128bit_nabs<mode>2_internal): Likewise.
5357 (extendiftf2): Add explicit conversions between 128-bit floating
5358 point types. Drop the old conversions that had become unwieldy.
5359 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
5360 (extendifkf2): Likewise.
5361 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
5362 (extendtfkf2): Likewise.
5363 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
5364 (trunciftf2): Likewise.
5365 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
5366 (truncifkf2): Likewise.
5367 (float<SDI:mode><IFKF:mode>2): Likewise.
5368 (trunckftf2): Likewise.
5369 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
5370 (trunctfif2): Likewise.
5371 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
5372 (extenddftf2): Rework 128-bit floating point conversions to
5373 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
5374 KFmode expanders into one function.
5375 (extenddf<mode>2): Likewise.
5376 (extenddftf2_fprs): Likewise.
5377 (extenddf<mode>2_fprs): Likewise.
5378 (extenddftf2_vsx): Likewise.
5379 (extenddf<mode>2_vsx): Likewise.
5380 (extendsftf2): Likewise.
5381 (extendsf<mode>2): Likewise.
5382 (trunctfdf2): Likewise.
5383 (trunc<mode>df2): Likewise.
5384 (trunctfdf2_internal1): Likewise.
5385 (trunc<mode>df2_internal1): Likewise.
5386 (trunctfdf2_internal2): Likewise.
5387 (trunc<mode>df2_internal2): Likewise.
5388 (trunctfsf2): Likewise.
5389 (trunc<mode>sf2): Likewise.
5390 (trunctfsf2_fprs): Likewise.
5391 (trunc<mode>sf2_fprs): Likewise.
5392 (floatsit2f): Likewise.
5393 (floatsi<mode>2): Likewise.
5394 (fix_trunc_helper): Likewise.
5395 (fix_trunc_helper<mode>): Likewise.
5396 (fix_trunctfsi2): Likewise.
5397 (fix_trunc<mode>si2): Likewise.
5398 (fix_trunctfsi2_fprs): Likewise.
5399 (fix_trunc<mode>si2_fprs): Likewise.
5400 (fix_trunctfsi2_internal): Likewise.
5401 (fix_trunc<mode>si2_internal): Likewise.
5402 (fix_trunctfdi2): Likewise.
5403 (fix_trunc<mode>di2): Likewise.
5404 (fixuns_trunctf<mode>2): Likewise.
5405 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
5406 (floatditf2): Likewise.
5407 (floatdi<mode>2): Likewise.
5408 (floatuns<mode>tf2): Likewise.
5409 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
5410 (cmptf_internal1): Use a mode iterator to add support for both
5411 types (IFmode, TFmode) that support IBM extended double.
5412 (cmp<mode>_internal1): Likewise.
5413 (cmptf_internal2): Likewise.
5414 (cmp<mode>_internal2): Likewise.
5416 * doc/extend.texi (Floating Types): Document __ibm128 and
5417 __float128 on PowerPC.
5419 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5420 -mfloat128 and -mno-float128.
5422 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
5424 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
5425 floating point modes that can go in vector registers.
5426 (MODES_TIEABLE_P): Move tests for vector modes before tests for
5427 scalar floating point, so that IEEE 128-bit floating point that
5428 can go in vector registers bind with vectors and not FP.
5429 (struct rs6000_args): Add libcall field.
5431 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
5432 and -mfloat128-software switches. Replace them with a binary
5434 (-mfloat128): Likewise.
5436 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
5437 128-bit floating point types in GPRs, even if the appropriate
5438 option enabling the type was not used.
5439 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
5441 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
5442 pre-decrement on IEEE 128-bit floating point values.
5443 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
5444 is IEEE 128-bit floating point.
5445 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
5446 128-bit floating point types that can go in vector registers.
5447 (rs6000_option_override_internal): Change -mfloat128-none and
5448 -mfloat128-software to -mfloat128, and move code to be near other
5449 VSX option handling.
5450 (rs6000_option_override_internal): Disable -mfloat128 if we don't
5451 have the Altivec ABI.
5452 (rs6000_init_builtins): Don't make TFmode use either IFmode or
5453 KFmode floating point nodes. Instead, have three separate nodes.
5454 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
5455 eventually moving the long double default to IEEE 128-bit floating
5457 (rs6000_opt_masks): Add -mfloat128.
5458 (struct rs6000_opt_var): Fix typo in comment.
5459 (init_cumulative_args): Initialize libcall field in
5461 (rs6000_function_arg): Treat library functions as if they had
5462 prototypes to prevent IEEE 128-bit support functions from passing
5463 arguments in both GPRs and vector registers.
5464 (rs6000_arg_partial_bytes): Likewise.
5466 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
5467 an option that can be turned on via -mcpu=<xxx>.
5469 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
5472 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5473 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
5474 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
5475 double is IBM extended double.
5477 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
5480 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
5482 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
5483 * genconditions.c: Define CHECKING_P in the generated code.
5484 * genextract.c: Use flag_checking in insn_extract.
5485 * gengtype.c (main): Remove conditional compilation.
5486 * gengtype.h: Likewise.
5488 2015-10-29 Jeff Law <law@redhat.com>
5490 PR tree-optimization/67892
5491 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
5493 (thread_through_normal_block): If we have seen a backedge, then
5494 do nothing. No longer call find_jump_threads_backwards here.
5495 (thread_across_edge): Use find_jump_threads_backwards to find
5496 jump threads if the old style threader was not successful.
5497 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
5498 gsi_last_nondebug_bb. Return NULL if the block does not end
5499 with a control statement.
5500 (find_jump_threads_backwards): Setup code moved here from
5501 tree-ssa-threadedge.c::thread_through_normal_block. Accept
5502 single edge argument instead of name & block.
5503 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
5506 2015-10-29 Tom de Vries <tom@codesourcery.com>
5508 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
5511 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
5513 * omp-low.c (lower_omp_target): Remove unreachable code & merge
5516 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
5518 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
5520 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
5522 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
5523 guard_bb0 and use guard_bb throughout.
5525 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
5527 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
5530 2015-10-29 Richard Biener <rguenther@suse.de>
5533 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
5536 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
5538 * alias.c: Reorder #include statements and remove duplicates.
5540 * attribs.c: Likewise.
5541 * auto-inc-dec.c: Likewise.
5542 * auto-profile.c: Likewise.
5543 * bb-reorder.c: Likewise.
5544 * bt-load.c: Likewise.
5545 * builtins.c: Likewise.
5546 * caller-save.c: Likewise.
5547 * calls.c: Likewise.
5550 * cfganal.c: Likewise.
5551 * cfgbuild.c: Likewise.
5552 * cfgcleanup.c: Likewise.
5553 * cfgexpand.c: Likewise.
5554 * cfghooks.c: Likewise.
5555 * cfgloop.c: Likewise.
5556 * cfgloopanal.c: Likewise.
5557 * cfgloopmanip.c: Likewise.
5558 * cfgrtl.c: Likewise.
5559 * cgraph.c: Likewise.
5560 * cgraphbuild.c: Likewise.
5561 * cgraphclones.c: Likewise.
5562 * cgraphunit.c: Likewise.
5563 * cilk-common.c: Likewise.
5564 * combine-stack-adj.c: Likewise.
5565 * combine.c: Likewise.
5566 * compare-elim.c: Likewise.
5567 * convert.c: Likewise.
5568 * coverage.c: Likewise.
5569 * cppbuiltin.c: Likewise.
5570 * cprop.c: Likewise.
5572 * cselib.c: Likewise.
5573 * data-streamer-in.c: Likewise.
5574 * data-streamer-out.c: Likewise.
5575 * data-streamer.c: Likewise.
5576 * dbxout.c: Likewise.
5579 * debug.c: Likewise.
5580 * df-core.c: Likewise.
5581 * df-problems.c: Likewise.
5582 * df-scan.c: Likewise.
5584 * dojump.c: Likewise.
5585 * dominance.c: Likewise.
5586 * double-int.c: Likewise.
5588 * dumpfile.c: Likewise.
5589 * dwarf2asm.c: Likewise.
5590 * dwarf2cfi.c: Likewise.
5591 * dwarf2out.c: Likewise.
5592 * emit-rtl.c: Likewise.
5593 * except.c: Likewise.
5594 * explow.c: Likewise.
5595 * expmed.c: Likewise.
5597 * final.c: Likewise.
5598 * fixed-value.c: Likewise.
5599 * fold-const.c: Likewise.
5600 * function.c: Likewise.
5601 * fwprop.c: Likewise.
5603 * generic-match-head.c: Likewise.
5604 * ggc-common.c: Likewise.
5605 * gimple-builder.c: Likewise.
5606 * gimple-expr.c: Likewise.
5607 * gimple-fold.c: Likewise.
5608 * gimple-iterator.c: Likewise.
5609 * gimple-low.c: Likewise.
5610 * gimple-match-head.c: Likewise.
5611 * gimple-pretty-print.c: Likewise.
5612 * gimple-ssa-isolate-paths.c: Likewise.
5613 * gimple-ssa-strength-reduction.c: Likewise.
5614 * gimple-streamer-in.c: Likewise.
5615 * gimple-streamer-out.c: Likewise.
5616 * gimple-walk.c: Likewise.
5617 * gimple.c: Likewise.
5618 * gimplify-me.c: Likewise.
5619 * gimplify.c: Likewise.
5620 * godump.c: Likewise.
5621 * graph.c: Likewise.
5622 * graphite-poly.c: Likewise.
5623 * haifa-sched.c: Likewise.
5624 * hw-doloop.c: Likewise.
5625 * ifcvt.c: Likewise.
5626 * incpath.c: Likewise.
5627 * init-regs.c: Likewise.
5628 * internal-fn.c: Likewise.
5629 * ipa-chkp.c: Likewise.
5630 * ipa-comdats.c: Likewise.
5631 * ipa-cp.c: Likewise.
5632 * ipa-devirt.c: Likewise.
5633 * ipa-icf-gimple.c: Likewise.
5634 * ipa-icf.c: Likewise.
5635 * ipa-inline-analysis.c: Likewise.
5636 * ipa-inline-transform.c: Likewise.
5637 * ipa-inline.c: Likewise.
5638 * ipa-polymorphic-call.c: Likewise.
5639 * ipa-profile.c: Likewise.
5640 * ipa-prop.c: Likewise.
5641 * ipa-pure-const.c: Likewise.
5642 * ipa-ref.c: Likewise.
5643 * ipa-reference.c: Likewise.
5644 * ipa-split.c: Likewise.
5645 * ipa-utils.c: Likewise.
5646 * ipa-visibility.c: Likewise.
5648 * ira-build.c: Likewise.
5649 * ira-color.c: Likewise.
5650 * ira-conflicts.c: Likewise.
5651 * ira-costs.c: Likewise.
5652 * ira-emit.c: Likewise.
5653 * ira-lives.c: Likewise.
5656 * langhooks.c: Likewise.
5658 * lists.c: Likewise.
5659 * loop-doloop.c: Likewise.
5660 * loop-init.c: Likewise.
5661 * loop-invariant.c: Likewise.
5662 * loop-iv.c: Likewise.
5663 * loop-unroll.c: Likewise.
5664 * lower-subreg.c: Likewise.
5665 * lra-assigns.c: Likewise.
5666 * lra-coalesce.c: Likewise.
5667 * lra-constraints.c: Likewise.
5668 * lra-eliminations.c: Likewise.
5669 * lra-lives.c: Likewise.
5670 * lra-remat.c: Likewise.
5671 * lra-spills.c: Likewise.
5673 * lto-cgraph.c: Likewise.
5674 * lto-compress.c: Likewise.
5675 * lto-opts.c: Likewise.
5676 * lto-section-in.c: Likewise.
5677 * lto-section-out.c: Likewise.
5678 * lto-streamer-in.c: Likewise.
5679 * lto-streamer-out.c: Likewise.
5680 * lto-streamer.c: Likewise.
5681 * mode-switching.c: Likewise.
5682 * modulo-sched.c: Likewise.
5683 * omp-low.c: Likewise.
5684 * optabs.c: Likewise.
5685 * opts-global.c: Likewise.
5686 * passes.c: Likewise.
5687 * plugin.c: Likewise.
5688 * postreload-gcse.c: Likewise.
5689 * postreload.c: Likewise.
5690 * predict.c: Likewise.
5691 * print-tree.c: Likewise.
5692 * profile.c: Likewise.
5694 * realmpfr.c: Likewise.
5695 * recog.c: Likewise.
5697 * reg-stack.c: Likewise.
5698 * regcprop.c: Likewise.
5699 * reginfo.c: Likewise.
5700 * regrename.c: Likewise.
5701 * regstat.c: Likewise.
5702 * reload.c: Likewise.
5703 * reload1.c: Likewise.
5704 * reorg.c: Likewise.
5705 * resource.c: Likewise.
5706 * rtl-chkp.c: Likewise.
5707 * rtl-error.c: Likewise.
5708 * rtlanal.c: Likewise.
5709 * rtlhooks.c: Likewise.
5710 * sanopt.c: Likewise.
5711 * sched-deps.c: Likewise.
5712 * sched-ebb.c: Likewise.
5713 * sched-rgn.c: Likewise.
5715 * shrink-wrap.c: Likewise.
5716 * simplify-rtx.c: Likewise.
5717 * stack-ptr-mod.c: Likewise.
5718 * statistics.c: Likewise.
5720 * stor-layout.c: Likewise.
5721 * store-motion.c: Likewise.
5722 * stringpool.c: Likewise.
5723 * symtab.c: Likewise.
5724 * target-globals.c: Likewise.
5725 * targhooks.c: Likewise.
5726 * toplev.c: Likewise.
5727 * tracer.c: Likewise.
5728 * trans-mem.c: Likewise.
5729 * tree-affine.c: Likewise.
5730 * tree-call-cdce.c: Likewise.
5731 * tree-cfg.c: Likewise.
5732 * tree-cfgcleanup.c: Likewise.
5733 * tree-chkp-opt.c: Likewise.
5734 * tree-chkp.c: Likewise.
5735 * tree-chrec.c: Likewise.
5736 * tree-complex.c: Likewise.
5737 * tree-data-ref.c: Likewise.
5738 * tree-dfa.c: Likewise.
5739 * tree-diagnostic.c: Likewise.
5740 * tree-dump.c: Likewise.
5741 * tree-eh.c: Likewise.
5742 * tree-emutls.c: Likewise.
5743 * tree-if-conv.c: Likewise.
5744 * tree-inline.c: Likewise.
5745 * tree-into-ssa.c: Likewise.
5746 * tree-iterator.c: Likewise.
5747 * tree-loop-distribution.c: Likewise.
5748 * tree-nested.c: Likewise.
5749 * tree-nrv.c: Likewise.
5750 * tree-object-size.c: Likewise.
5751 * tree-outof-ssa.c: Likewise.
5752 * tree-parloops.c: Likewise.
5753 * tree-phinodes.c: Likewise.
5754 * tree-predcom.c: Likewise.
5755 * tree-pretty-print.c: Likewise.
5756 * tree-profile.c: Likewise.
5757 * tree-scalar-evolution.c: Likewise.
5758 * tree-sra.c: Likewise.
5759 * tree-ssa-address.c: Likewise.
5760 * tree-ssa-alias.c: Likewise.
5761 * tree-ssa-ccp.c: Likewise.
5762 * tree-ssa-coalesce.c: Likewise.
5763 * tree-ssa-copy.c: Likewise.
5764 * tree-ssa-dce.c: Likewise.
5765 * tree-ssa-dom.c: Likewise.
5766 * tree-ssa-dse.c: Likewise.
5767 * tree-ssa-forwprop.c: Likewise.
5768 * tree-ssa-ifcombine.c: Likewise.
5769 * tree-ssa-live.c: Likewise.
5770 * tree-ssa-loop-ch.c: Likewise.
5771 * tree-ssa-loop-im.c: Likewise.
5772 * tree-ssa-loop-ivcanon.c: Likewise.
5773 * tree-ssa-loop-ivopts.c: Likewise.
5774 * tree-ssa-loop-manip.c: Likewise.
5775 * tree-ssa-loop-niter.c: Likewise.
5776 * tree-ssa-loop-prefetch.c: Likewise.
5777 * tree-ssa-loop-unswitch.c: Likewise.
5778 * tree-ssa-loop.c: Likewise.
5779 * tree-ssa-math-opts.c: Likewise.
5780 * tree-ssa-operands.c: Likewise.
5781 * tree-ssa-phiopt.c: Likewise.
5782 * tree-ssa-phiprop.c: Likewise.
5783 * tree-ssa-pre.c: Likewise.
5784 * tree-ssa-propagate.c: Likewise.
5785 * tree-ssa-reassoc.c: Likewise.
5786 * tree-ssa-sccvn.c: Likewise.
5787 * tree-ssa-scopedtables.c: Likewise.
5788 * tree-ssa-sink.c: Likewise.
5789 * tree-ssa-strlen.c: Likewise.
5790 * tree-ssa-structalias.c: Likewise.
5791 * tree-ssa-tail-merge.c: Likewise.
5792 * tree-ssa-ter.c: Likewise.
5793 * tree-ssa-threadedge.c: Likewise.
5794 * tree-ssa-threadupdate.c: Likewise.
5795 * tree-ssa-uncprop.c: Likewise.
5796 * tree-ssa-uninit.c: Likewise.
5797 * tree-ssa.c: Likewise.
5798 * tree-ssanames.c: Likewise.
5799 * tree-stdarg.c: Likewise.
5800 * tree-streamer-in.c: Likewise.
5801 * tree-streamer-out.c: Likewise.
5802 * tree-streamer.c: Likewise.
5803 * tree-switch-conversion.c: Likewise.
5804 * tree-tailcall.c: Likewise.
5805 * tree-vect-data-refs.c: Likewise.
5806 * tree-vect-generic.c: Likewise.
5807 * tree-vect-loop-manip.c: Likewise.
5808 * tree-vect-loop.c: Likewise.
5809 * tree-vect-patterns.c: Likewise.
5810 * tree-vect-slp.c: Likewise.
5811 * tree-vect-stmts.c: Likewise.
5812 * tree-vectorizer.c: Likewise.
5813 * tree-vrp.c: Likewise.
5816 * ubsan.c: Likewise.
5817 * value-prof.c: Likewise.
5818 * var-tracking.c: Likewise.
5819 * varasm.c: Likewise.
5820 * varpool.c: Likewise.
5821 * vtable-verify.c: Likewise.
5823 * wide-int-print.cc: Likewise.
5824 * wide-int.cc: Likewise.
5825 * xcoffout.c: Likewise.
5827 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
5829 * Makefile.in (NO_PIE_CFLAGS): New.
5830 (NO_PIE_FLAG): Likewise.
5831 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5832 (NO_PIE_FLAG_FOR_BUILD): Likewise.
5833 (BUILD_NO_PIE_CFLAGS): Likewise.
5834 (BUILD_NO_PIE_FLAG): Likewise.
5835 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
5836 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
5837 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
5838 $(BUILD_NO_PIE_CFLAGS).
5839 (BUILD_CXXFLAGS): Likewise.
5840 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
5841 $(BUILD_NO_PIE_FLAG).
5842 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
5843 (BUILD_NO_PIE_FLAG): Likewise.
5844 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5845 (NO_PIE_FLAG_FOR_BUILD): Likewise.
5846 * configure: Regenerated.
5848 2015-10-29 Richard Biener <rguenther@suse.de>
5851 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
5852 unsigned conditonal negation to ABS_EXPR.
5854 2015-10-29 Richard Biener <rguenther@suse.de>
5856 * gimple-match-head.c (gimple_simplify): Remove premature checking
5857 of builtin_decl_implicit of function calls we simplify.
5859 2015-10-29 Bin Cheng <bin.cheng@arm.com>
5861 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
5862 (get_computation_cost_at): Ditto.
5863 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
5866 2015-10-28 Tom de Vries <tom@codesourcery.com>
5868 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
5871 2015-10-28 Jason Merrill <jason@redhat.com>
5873 * Makefile.in (TAGS): Include libcpp and libiberty.
5875 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
5877 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
5878 (extract_omp_for_data): Remove OpenACC special handling of
5881 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
5882 (struct parallel): Update comment.
5883 (nvptx_reorg): Likewise.
5884 (nvptx_neuter): Cleanup whitespace.
5886 2015-10-28 Richard Henderson <rth@redhat.com>
5888 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
5890 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5893 * config/avr/predicates.md (low_io_address_operand): Don't
5894 consider MODE when computing upper bound.
5895 (io_address_operand): Likewise.
5897 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
5899 * fold-const.c (operand_equal_p): Do not verify that types are
5900 compatible for MEM_REFs.
5902 2015-10-28 Richard Biener <rguenther@suse.de>
5904 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
5905 in simplifying VEC_COND_EXPR conditions.
5907 2015-10-28 Tom de Vries <tom@codesourcery.com>
5909 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
5910 into vi_next of a full_var.
5912 2015-10-28 Tom de Vries <tom@codesourcery.com>
5914 * tree-ssa-structalias.c (new_var_info, make_heapvar)
5915 (make_constraint_from_restrict, make_constraint_from_global_restrict)
5916 (create_function_info_for, create_variable_info_for_1)
5917 (create_variable_info_for): Add and handle add_id parameter.
5918 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
5919 (init_base_vars): Add extra argument to calls to new_var_info.
5920 (get_vi_for_tree): Add extra argument to call to
5921 create_variable_info_for.
5922 (process_constraint, do_deref, process_all_all_constraints): Add extra
5923 argument to calls to new_scalar_tmp_constraint_exp.
5924 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
5925 argument to calls to make_heapvar.
5926 (make_restrict_var_constraints): Add extra argument to call to
5927 make_constraint_from_global_restrict.
5928 (intra_create_variable_infos): Add extra argument to call to
5929 create_variable_info_for_1.
5930 (ipa_pta_execute): Add extra argument to call to
5931 create_function_info_for.
5933 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5935 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
5936 (sibcall_value): Likewise.
5938 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
5940 * config/nvptx/nvptx.h (struct machine_function): Add
5942 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
5943 nvptx_expand_oacc_join): Declare.
5944 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
5945 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
5946 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
5947 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
5948 UNSPECV_JOINING, UNSPECV_JOIN): New.
5949 (BITS, BITD): New mode iterators.
5950 (br_true_uni, br_false_uni): New.
5951 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
5952 (oacc_dim_size, oacc_dim_pos): New.
5953 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
5954 (oacc_fork, oacc_join): New.
5955 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
5956 (worker_load<mode>, worker_store<mode>): New.
5957 (nvptx_barsync): New.
5958 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
5959 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
5960 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
5961 worker_bcast_sym): New.
5962 (nvptx_option_override): Initialize worker broadcast buffer.
5963 (nvptx_emit_forking, nvptx_emit_joining): New.
5964 (nvptx_init_axis_predicate): New.
5965 (nvptx_declare_function_name): Init axis predicates.
5966 (nvptx_expand_call): Add fork/join markers around routine call.
5967 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
5968 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
5969 (nvptx_gen_vcast): New.
5970 (struct wcast_data_t): New.
5971 (enum propagate_mask): New.
5972 (nvptx_gen_wcast): New.
5973 (nvptx_print_operand): Add 'S' case.
5974 (struct parallel): New.
5975 (parallel::parallel, parallel::~parallel): New.
5976 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
5977 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
5978 nvptx_find_par, nvptx_discover_pars): New.
5979 (nvptx_propagate): New.
5980 (vprop_gen, nvptx_vpropagate): New.
5981 (wprop_gen, nvptx_wpropagate): New.
5983 (nvptx_single, nvptx_skip_par): New.
5984 (nvptx_process_pars, nvptx_neuter_pars): New.
5985 (ntptx_reorg): Split blocks, generate parallel structure, apply
5987 (nvptx_cannot_copy_insn_p): New.
5988 (nvptx_file_end): Emit worker broadcast decl.
5989 (nvptx_goacc_fork_join): New.
5990 (TARGET_CANNOT_COPY_INSN_P): Override.
5991 (TARGET_GOACC_FORK_JOIN): Override.
5993 2015-10-28 Richard Biener <rguenther@suse.de>
5995 * fold-const.c (negate_expr_p): Adjust the division case to
5996 properly avoid introducing undefined overflow.
5997 (fold_negate_expr): Likewise.
5999 2015-10-28 Richard Biener <rguenther@suse.de>
6001 PR tree-optimization/65962
6002 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6003 Avoid creating loop carried dependences also for outer loops
6004 of the loop a use to replace is in.
6006 2015-10-28 Richard Biener <rguenther@suse.de>
6008 * common.opt (fchecking): New flag controlling flag_checking.
6009 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
6010 * timevar.c (timer::print): Adjust output.
6011 * doc/invoke.texi (fchecking): Document.
6013 2015-10-28 Richard Biener <rguenther@suse.de>
6016 * fold-const.c (negate_expr_p): We cannot negate plus or minus
6017 if overflow is not wrapping. Likewise multiplication unless
6018 one operand is constant and not power of two.
6019 (fold_negate_expr): Adjust accordingly.
6021 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6023 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
6025 (is_oacc_parallel, is_oacc_kernels): New.
6026 (enclosing_target_ctx): May return NULL.
6027 (ctx_in_oacc_kernels_region): New.
6028 (check_oacc_kernel_gwv): New.
6029 (oacc_loop_or_target_p): Delete.
6030 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
6031 operands. Strip reductions fro kernels.
6032 (scan_omp_target): Don't calculate gwv mask.
6033 (lower_oacc_head_mark, lower_oacc_loop_marker,
6034 lower_oacc_head_tail): New.
6035 (struct oacc_collapse): New.
6036 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
6037 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6038 Remove OpenACC handling.
6039 (expand_oacc_for): New.
6040 (expand_omp_for): Call expand_oacc_for.
6041 (lower_omp_for): Call lower_oacc_head_tail.
6043 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
6045 * attribs.c (check_attribute_tables): New function, broken out from...
6046 (init_attributes): Use it.
6047 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
6048 gcc_checking_assert and checking_* functions to eliminate
6049 ENABLE_CHECKING conditionals.
6050 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
6051 (pass_expand::execute): Likewise.
6052 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
6053 * cgraphunit.c (mark_functions_to_output): Likewise.
6054 (cgraph_node::expand_thunk): Likewise.
6055 (symbol_table::compile): Likewise.
6056 * ddg.c (add_cross_iteration_register_deps): Likewise.
6057 (create_ddg_all_sccs): Likewise.
6058 * df-core.c (df_finish_pass, df_analyze): Likewise.
6059 * diagnostic-core.h: Likewise.
6060 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
6061 * dominance.c (calculate_dominance_info): Likewise.
6062 * dwarf2out.c (add_AT_die_ref): Likewise.
6063 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
6064 (loc_list_from_tree, gen_lexical_block_die): Likewise.
6065 gen_type_die_with_usage, gen_type_die): Likewise.
6066 (dwarf2out_decl): Likewise.
6067 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
6068 * except.c (duplicate_eh_regions): Likewise.
6069 * fwprop.c (register_active_defs, update_df_init): Likewise.
6070 (fwprop_init, fwprop_done): Likewise.
6071 (update_uses): Likewise.
6072 * ggc-page.c (ggc_grow): Likewise.
6073 * gimplify.c (gimplify_body): Likewise.
6074 (gimplify_hasher::equal): Likewise.
6075 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
6076 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
6078 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
6079 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
6080 * hash-table.h (::find_empty_slot_for_expand): Likewise.
6081 * ifcvt.c (if_convert): Likewise.
6082 * ipa-cp.c (ipcp_propagate_stage): Likewise.
6083 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
6084 (odr_type_p, odr_types_equivalent_p): Likewise.
6085 (add_type_duplicate, get_odr_type): Likewise.
6086 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
6087 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
6088 (sem_item_optimizer::verify_classes): Likewise.
6089 (sem_item_optimizer::traverse_congruence_split): Likewise.
6090 (sem_item_optimizer::checking_verify_classes): New.
6091 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
6093 * cfgrtl.c (commit_edge_insertions): Likewise.
6094 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
6095 (rtl_flow_call_edges_add): Likewise.
6096 * cgraph.c (symbol_table::create_edge): Likewise.
6097 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
6098 * cgraph.h (symtab_node): Likewise.
6099 (symtab_node::checking_verify_symtab_nodes): Define.
6100 (cgraph_node::checking_verify_cgraph_nodes): Define.
6101 * cfghooks.h (checking_verify_flow_info): Define.
6102 * cfgloop.h (checking_verify_loop_structure): Define.
6103 * dominance.h (checking_verify_dominators): Define.
6104 * et-forest.c: Fix comment.
6105 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
6106 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6107 ENABLE_CHECKING conditionals.
6108 * ipa-inline-transform.c (save_inline_function_body): Likewise.
6109 * ipa-inline.c (inline_small_functions): Likewise.
6110 (early_inliner): Likewise.
6111 * ipa-inline.h (estimate_edge_growth): Likewise.
6112 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6113 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6114 (ipa_single_use): Likewise.
6115 * ira-int.h: Likewise.
6116 * ira.c (ira): Likewise.
6117 * loop-doloop.c (doloop_optimize_loops): Likewise.
6118 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
6119 * loop-invariant.c (move_loop_invariants): Likewise.
6120 * lra-assigns.c (lra_assign): Likewise.
6121 * lra-constraints.c (lra_constraints): Likewise.
6122 * lra-eliminations.c (lra_eliminate): Likewise.
6123 * lra-int.h (struct lra_reg): Likewise.
6124 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
6125 (lra_create_live_ranges_1): Likewise.
6126 * lra-remat.c (create_remat_bb_data): Likewise.
6127 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
6129 (check_rtl): Always define. Remove incorrect guard around
6130 extract_constrain_insn call.
6131 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
6132 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6133 ENABLE_CHECKING conditionals.
6134 * lto-streamer-out.c (DFS::DFS): Likewise.
6135 (lto_output): Likewise.
6136 * lto-streamer.c (lto_streamer_init): Likewise.
6137 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
6138 expand_omp_target, execute_expand_omp): Likewise.
6139 (lower_omp_target): Likewise.
6140 * passes.c (execute_function_todo): Likewise.
6141 (execute_todo, execute_one_pass): Likewise.
6142 (verify_curr_properties): Always define.
6143 * predict.c (tree_estimate_probability: Use flag_checking,
6144 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6145 ENABLE_CHECKING conditionals.
6146 (propagate_freq): Likewise.
6147 * pretty-print.c (pp_format): Likewise.
6148 * real.c (real_to_decimal_for_mode): Likewise.
6149 * recog.c (split_all_insns): Likewise.
6150 * regcprop.c (kill_value_one_regno): Likewise.
6151 (copy_value): Likewise.
6152 (validate_value_data): Define unconditionally.
6153 * reload.c: Fix comment.
6154 * timevar.c: Include options.h
6155 * tree-ssa.h (checking_verify_ssa): Define.
6156 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
6157 * sched-deps.c (CHECK): Remove unused macro.
6158 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
6159 gcc_checking_assert and checking_* functions to eliminate
6160 ENABLE_CHECKING conditionals.
6161 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
6162 * sel-sched.c (struct moveop_static_params): Likewise.
6163 (find_best_reg_for_expr, move_cond_jump): Likewise.
6164 (move_op_orig_expr_not_found): Likewise.
6165 (code_motion_process_successors, move_op): Likewise.
6166 * ssa-iterators.h (first_readonly_imm_use): Likewise.
6167 (next_readonly_imm_use): Likewise.
6168 * store-motion.c (compute_store_table): Likewise.
6169 * symbol-summary.h (function_summary::function_summary): Likewise.
6170 * target.h (cumulative_args_t): Likewise.
6171 (get_cumulative_args, pack_cumulative_args): Likewise.
6172 * timevar.c: (timer::print): Likewise.
6173 * trans-mem.c (ipa_tm_execute): Likewise.
6174 * tree-cfg.c (move_stmt_op): Likewise.
6175 (move_sese_region_to_fn): Likewise.
6176 (gimple_flow_call_edges_add): Likewise.
6177 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
6179 * tree-eh.c (remove_unreachable_handlers): Likewise.
6180 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
6181 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
6182 * tree-into-ssa.c (update_ssa): Likewise.
6183 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
6184 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
6185 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
6186 * tree-predcom.c (suitable_component_p): Likewise.
6187 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
6188 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
6189 * tree-ssa-live.c (verify_live_on_entry): Likewise.
6190 * tree-ssa-live.h (register_ssa_partition): Likewise.
6191 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
6192 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
6193 (tree_transform_and_unroll_loop): Likewise.
6194 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6195 * tree-ssa-operands.c (get_expr_operands): Likewise.
6196 * tree-ssa-propagate.c (replace_exp_1): Likewise.
6197 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
6198 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
6199 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
6200 * tree-ssanames.c (release_ssa_name_fn): Likewise.
6201 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
6202 * tree-vect-loop-manip.c
6203 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
6204 (slpeel_checking_verify_cfg_after_peeling): Likewise.
6205 (vect_do_peeling_for_loop_bound): Likewise.
6206 (vect_do_peeling_for_alignment): Likewise.
6207 * tree-vrp.c (supports_overflow_infinity): Likewise.
6208 (set_value_range): Likewise.
6209 * tree.c (free_lang_data_in_cgraph): Likewise.
6210 * value-prof.c (gimple_remove_histogram_value): Likewise.
6211 (free_hist): Likewise.
6212 * var-tracking.c (canonicalize_values_star): Likewise.
6213 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
6215 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6217 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
6218 IFN_GOACC_LOOP): New.
6219 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
6220 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
6221 IFN_UNIQUE_OACC_TAIL_MARK.
6222 (enum ifn_goacc_loop_kind): New.
6223 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
6224 IFN_UNIQUE_OACC_JOIN cases.
6225 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
6226 (expand_GOACC_LOOP): New.
6227 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
6228 * omp-low.c: Include gimple-pretty-print.h.
6229 (struct oacc_loop): New.
6230 (enum oacc_loop_flags): New.
6231 (oacc_thread_numbers): New.
6232 (oacc_xform_loop): New.
6233 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
6234 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
6235 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
6236 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
6237 oacc_loop_discovery): New.
6238 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
6239 oacc_loop_process): New.
6240 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
6241 (execute_oacc_device_lower): Discover & process loops. Process
6243 * target.def (goacc.fork_join): Change sense of hook, clarify
6245 * doc/tm.texi: Regenerated.
6247 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6249 * target-insns.def (oacc_fork, oacc_join): Define.
6250 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
6251 (goacc.fork_join): New GOACC hook.
6252 * targhooks.h (default_goacc_fork_join): Declare.
6253 * omp-low.c (default_goacc_forkjoin): New.
6254 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
6255 * doc/tm.texi: Regenerate.
6257 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6259 * omp-low.c (oacc_init_rediction_array): New.
6260 (oacc_initialize_reduction_data): Initialize array.
6262 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6264 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
6266 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6268 * internal-fn.c (expand_UNIQUE): New.
6269 * internal-fn.h (enum ifn_unique_kind): New.
6270 * internal-fn.def (IFN_UNIQUE): New.
6271 * target-insns.def (unique): Define.
6272 * gimple.h (gimple_call_internal_unique_p): New.
6273 * gimple.c (gimple_call_same_target_p): Check internal fn
6275 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
6276 * tree-ssa-threadedge.c
6277 (record_temporary_equivalences_from_stmts): Likewise.
6278 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
6280 2015-10-27 Richard Henderson <rth@redhat.com>
6283 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
6284 narrowing subregs on SSE and MMX registers.
6285 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
6286 appear to be sub-words of multi-register pseudos must be rejected.
6287 * doc/tm.texi: Regenerate.
6289 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6292 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
6293 operands[0] is a reg before taking its REGNO in split condition.
6294 (*movdi_aarch64): Likewise.
6296 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6298 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
6299 Handle floating point inner modes properly.
6301 2015-10-27 Alan Hayward <alan.hayward@arm.com>
6304 (vectorizable_live_operation): Change iterator.
6306 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6307 Aditya Kumar <aditya.k7@samsung.com>
6309 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
6310 function to schedule based on isl_schedule_node.
6311 (get_schedule_map_st): New schedule optimizer based on
6313 (scop_get_domains): New. Return the isl_union_set containing the
6314 domains of all the pbbs.
6315 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
6317 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
6320 * calls.c (prepare_call_address): Don't handle -fno-plt here.
6321 * config/i386/i386.c (ix86_expand_call): Generate indirect call
6322 via GOT for -fno-plt. Support indirect call via GOT for x32.
6323 * config/i386/predicates.md (sibcall_memory_operand): Allow
6326 2015-10-27 Richard Biener <rguenther@suse.de>
6328 PR tree-optimization/68104
6329 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
6330 strided access check ...
6331 (vect_compute_data_refs_alignment): ... here.
6333 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
6334 Joseph Myers <joseph@codesourcery.com>
6335 Mark Shinwell <shinwell@codesourcery.com>
6336 Andrew Stubbs <ams@codesourcery.com>
6337 Rich Felker <dalias@libc.org>
6339 * config.gcc: Handle --enable-fdpic.
6340 * config/sh/constraints.md (Ccl): New constraint.
6341 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
6342 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
6344 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
6346 * config/sh/sh-protos.h (function_symbol_result): New struct.
6347 (function_symbol): Return function_symbol_result.
6348 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
6350 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
6352 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
6353 (sh_option_override): Force -fPIC if FDPIC is in effect.
6354 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
6355 UNSPEC_GOTOFFFUNCDESC cases.
6356 (prepare_move_operands): Use FDPIC initial GOT register for
6357 TLS-related GOT access; inhibit cross-section address offset constants
6359 (sh_assemble_integer): New function.
6360 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
6361 PC-relative call sites.
6362 (expand_ashiftrt): Adapt invocation of function_symbol.
6363 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
6364 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
6365 UNSPEC_GOTOFFFUNCDESC.
6366 (legitimize_pic_address): Resolve function symbols to function
6367 descriptors for FDPIC. Do not use GOT-relative addressing for local
6368 data that may be read-only on FDPIC.
6369 (sh_emit_storesi, sh_emit_storehi): New functions.
6370 (sh_trampoline_init): Generate FDPIC trampolines.
6371 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
6372 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
6373 (sh_output_mi_thunk): Generate FDPIC call.
6374 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
6375 FDPIC, generate call site labels to use PC-relative addressing rather
6376 than GOT-relative addressing.
6377 (sh_conditional_register_usage): Make PIC register fixed and call used
6378 when FDPIC is in effect.
6379 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
6380 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
6381 sh_get_fdpic_reg_initial_val): New functions.
6382 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
6384 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
6385 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
6386 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
6387 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
6389 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
6390 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
6391 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
6392 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
6394 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
6395 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
6396 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
6397 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
6398 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
6399 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
6400 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
6401 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
6402 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
6403 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
6404 block_move_real, block_lump_real, block_move_real_i4,
6405 block_lump_real_i4): Add support for FDPIC calls.
6406 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
6407 call_value_pop): Adjust for new function_symbol signature.
6408 * config/sh/sh.opt (-mfdpic): New option.
6409 * doc/install.texi (Options specification): Document --enable-fdpic.
6410 * doc/invoke.texi (SH Options): Document -mfdpic.
6413 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
6415 PR tree-optimization/65963
6416 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6417 LSHIFT_EXPRs as equivalent MULT_EXPRs.
6419 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6422 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
6423 * config/arm/constraints.md (Dp): Update callsite.
6424 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
6426 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6428 * builtins.c (fold_builtin_load_exponent): Rename to...
6429 (fold_const_builtin_load_exponent): ...this and only handle
6431 (fold_builtin_2): Update accordingly.
6432 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
6434 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6436 * builtins.c (fold_builtin_logb): Rename to...
6437 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
6438 (fold_builtin_significand): Rename to...
6439 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
6440 (fold_builtin_1): Update accordingly.
6442 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6444 * builtins.c (fold_builtin_fmin_fmax): Delete.
6445 (fold_builtin_2): Handle constant fmin and fmax arguments here.
6446 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
6448 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
6450 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
6451 for register extension into sign and zero register extension.
6452 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
6453 for sign and zero register extension.
6454 (cortexa57_addrcost_table): Likewise.
6455 (xgene1_addrcost_table): Likewise.
6457 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6459 * fold-const.c (fold_minmax): Delete.
6460 (fold_binary_loc): Don't call it.
6461 * match.pd: Add rules previously handled by fold_minmax.
6463 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6465 * builtins.c (fold_builtin_fma): Remove constant handling.
6466 (fold_builtin_3): Handle constant fma arguments here.
6468 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6470 * builtins.c (fold_builtin_fabs): Remove constant handling.
6471 (fold_builtin_abs): Likewise.
6473 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6475 * builtins.c (fold_builtin_copysign): Delete.
6476 (fold_builtin_2): Handle constant copysign arguments here.
6477 * match.pd: Add rules previously handled by fold_builtin_copysign.
6479 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6481 * builtins.c (fold_builtin_signbit): Delete.
6482 (fold_builtin_2): Handle constant signbit arguments here.
6483 * match.pd: Add rules previously handled by fold_builtin_signbit.
6485 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6487 * match.pd: Handle sqrt(x) cmp 0 specially.
6489 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
6491 * tree-vect-generic.c (expand_vector_operations_1): Check
6492 optab type before using it.
6494 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6496 * config/aarch64/aarch64-protos.h
6497 (struct tune_params): Add autoprefetcher_model field.
6498 * config/aarch64/aarch64.c: Include params.h
6499 (generic_tunings): Specify autoprefetcher_model value.
6500 (cortexa53_tunings): Likewise.
6501 (cortexa57_tunings): Likewise.
6502 (cortexa72_tunings): Likewise.
6503 (thunderx_tunings): Likewise.
6504 (xgene1_tunings): Likewise.
6505 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
6506 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
6507 (aarch64_override_options_internal): Set
6508 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
6510 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6512 * builtins.c (fold_builtin_exponent): Delete.
6513 (fold_builtin_2): Handle constant expN arguments here.
6514 * match.pd: Fold expN(logN(x)) -> x.
6516 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6518 * builtins.c (fold_builtin_powi): Delete.
6519 (fold_builtin_2): Handle constant powi arguments here.
6520 * match.pd: Add rules previously handled by fold_builtin_powi.
6522 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6524 * builtins.c (fold_builtin_pow): Delete in favor of...
6525 (fold_const_builtin_pow): ...this new function. Only handle constant
6527 (fold_builtin_2): Update accordingly.
6528 * match.pd: Add rules previously handled by fold_builtin_pow.
6530 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6532 * builtins.c (fold_builtin_hypot): Delete.
6533 (fold_builtin_2): Handle constant hypot arguments here.
6534 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
6535 hypot(x, x) to fabs(x)*sqrt(2).
6537 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6539 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
6540 instead of make_ssa_name if not yet in SSA form.
6542 2015-10-27 Richard Biener <rguenther@suse.de>
6544 * cfg.c (free_edge): Add function argument and use it instead of cfun.
6545 (clear_edges): Likewise.
6546 * cfg.h (clear_edges): Adjust prototype.
6547 * cfgexpand.c (pass_expand::execute): Adjust.
6548 * cfgloop.c (release_recorded_exits): Add function argument and use
6550 * cfgloop.h (release_recorded_exits): Adjust prototype.
6551 (loops_state_satisfies_p): Add overload with function argument.
6552 (loops_state_set): Likewise.
6553 (loops_state_clear): Likewise.
6554 (struct loop_iterator): Add function argument to constructor
6555 and iterator and use it instead of cfun.
6556 (FOR_EACH_LOOP_FN): New macro.
6557 (loop_optimizer_finalize): Add overload with function argument.
6558 * loop-init.c (loop_optimizer_init): Adjust.
6559 (fix_loop_structure): Likewise.
6560 (loop_optimizer_finaliz): Add function argument and use it
6562 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
6563 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
6564 * cgraph.c (release_function_body): Do not push/pop cfun.
6565 * final.c (rest_of_clean_state): Adjust.
6566 * graphite.c (graphite_finalize): Likewise.
6567 * tree-ssa-copy.c (fini_copy_prop): Likewise.
6568 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
6569 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
6570 (tree_unroll_loops_completely): Likewise.
6571 (pass_complete_unrolli::execute): Likewise.
6572 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
6573 Add function argument and use it instead of cfun.
6574 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
6576 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
6577 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
6579 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
6580 * tree-ssanames.c (fini_ssanames): Add function argument and use it
6582 * tree-ssanames.c (fini_ssanames): Adjust prototype.
6583 * tree-vrp.c (execute_vrp): Adjust.
6584 * value-prof.c (free_histograms): Add function argument and use it
6586 * value-prof.h (free_histograms): Adjust prototype.
6588 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6590 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
6591 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
6592 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
6594 2015-10-27 Tom de Vries <tom@codesourcery.com>
6596 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
6599 2015-10-27 Bin Cheng <bin.cheng@arm.com>
6601 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
6602 (inv_can_prop_to_addr_use): New function.
6603 (record_use): Call can_prop_to_addr_uses, set the new field.
6604 (get_inv_cost): Count cost if inv can't be propagated into its
6607 2015-10-26 Doug Evans <dje@google.com>
6609 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
6611 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
6613 * match.pd (fold_widened_comparison): Apply simplifications to all
6616 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
6618 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
6619 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
6620 * doc/tm.texi: Regenerated.
6621 * reorg.c (dbr_schedule): Use new hook.
6622 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
6624 2015-10-26 Jeff Law <law@redhat.com>
6626 PR tree-optimization/68013
6627 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6628 Make sure the first block in the path is in VISITED_BBs.
6630 2015-10-26 Richard Biener <rguenther@suse.de>
6631 Dominik Vogt <vogt@linux.vnet.ibm.com>
6634 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
6635 Properly prune ref->ref for accesses outside of ref.
6637 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
6639 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
6640 new statements to be inserted if inplace. Allow calls to have
6643 2015-10-26 Richard Biener <rguenther@suse.de>
6645 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
6646 (do_valueize): New function.
6647 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
6649 * tree-ssa-threadedge.c: Remove builtins.h include, include
6651 (fold_assignment_stmt): Remove.
6652 (threadedge_valueize): New function.
6653 (record_temporary_equivalences_from_stmts): Use
6654 gimple_fold_stmt_to_constant_1, note additional cleanup
6657 2015-10-26 Richard Biener <rguenther@suse.de>
6659 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
6660 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
6662 2015-10-26 Alan Hayward <alan.hayward@arm.com>
6664 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
6665 VEC_COND_EXPR types.
6667 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6669 * auto-inc-dec.c (insert_move_insn_before): Delete.
6670 (attempt_change): Remember to cost the simple move in the
6671 FORM_PRE_ADD and FORM_POST_ADD cases.
6673 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
6676 * config/sh/sh.c (sh_vector_mode_supported_p): Use
6677 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
6679 2015-10-26 Tom de Vries <tom@codesourcery.com>
6681 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
6683 (intra_create_variable_infos): ... here.
6685 2015-10-26 Tom de Vries <tom@codesourcery.com>
6687 * tree-ssa-structalias.c (intra_create_variable_infos): Add
6688 restrict_pointer_p and recursive_restrict_p variables.
6690 2015-10-26 Tom de Vries <tom@codesourcery.com>
6692 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
6693 get_vi_for_tree call.
6695 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6698 * optabs.c (expand_atomic_compare_and_swap): Handle case when
6699 ptarget_oval or ptarget_bool are const0_rtx.
6701 2015-10-26 Christian Bruel <christian.bruel@st.com>
6703 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
6704 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
6705 * cp/method.c (implicitly_declare_fn): Likewise.
6706 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
6707 * java/class.c (add_method_1): Likewise.
6709 2015-10-26 Richard Biener <rguenther@suse.de>
6711 * alloc-pool.h (base_pool_allocator): Use placement new.
6712 (base_pool_allocator::remove): Likewise. Compute size outside of
6715 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
6717 * builtins.c (do_real_to_int_conversion): New function.
6718 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
6719 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
6721 * match.pd: Add rules previously handled by fold_fixed_mathfn
6722 and fold_builtin_int_roundingfn.
6724 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
6726 * match.pd: Use macros to define built-in operator lists.
6728 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
6729 Richard Biener <rguenther@suse.de>
6731 * genmatch.c (dt_simplify::gen): Skip captures that are
6733 (parser::parse_expr): Allow captures in results too.
6734 * builtins.c (fold_builtin_cexp): Delete.
6735 (fold_builtin_1): Handle constant cexp arguments here.
6736 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
6738 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
6740 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
6741 conditional compilation.
6742 (base_pool_allocator::remove): Use flag_checking.
6744 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
6746 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
6749 * dojump.c (do_compare_and_jump): Canonicalize both function and
6752 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
6755 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
6758 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6761 * ipa-polymorphic-call.c
6762 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
6763 instance offset with offset of outer type.
6765 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6767 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
6769 2015-10-23 Caroline Tice <cmtice@google.com>
6771 (from Richard Biener
6772 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
6773 call to iterative_hash_host_wide_int.
6775 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
6777 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
6780 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
6782 * tree-vect-generic.c (expand_vector_operations_1): Check
6783 optab exists before use it.
6785 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
6787 * tree-vect-generic.c (expand_vector_condition): Avoid
6788 uninitialized variable warning.
6790 2015-10-23 Jeff Law <law@redhat.com>
6792 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
6794 (execute_todo): Call it here.
6795 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
6797 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
6799 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
6800 Szabolcs Nagy <szabolcs.nagy@arm.com>
6802 * config.gcc (enable_secureplt): Add *-linux*-musl*.
6804 2015-10-23 Jeff Law <law@redhat.com>
6806 PR tree-optimization/67830
6807 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
6808 Explicitly verify the mask has no bits outside the type of
6809 the innermost operands.
6811 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
6812 Szabolcs Nagy <szabolcs.nagy@arm.com>
6814 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
6815 (MUSL_DYNAMIC_LINKER64): Define.
6816 (GNU_USER_DYNAMIC_LINKER32): Update.
6817 (GNU_USER_DYNAMIC_LINKER64): Update.
6818 (CHOOSE_DYNAMIC_LINKER): Update.
6820 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
6821 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
6822 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
6823 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
6824 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
6825 (CHOOSE_DYNAMIC_LINKER): Update.
6826 (INCLUDE_DEFAULTS): Redefine.
6828 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
6830 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6832 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
6833 comparing addresses.
6835 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6837 * fold-const.c (operand_equal_p): Handle matching of vector
6840 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
6842 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
6844 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
6845 Andrew Pinski <apinski@cavium.com>
6847 PR rtl-optimization/67736
6848 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
6851 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
6854 * tree.c (build_truth_vector_type): Support BLK mode
6855 returned for boolean vector.
6857 2015-10-23 Alan Hayward <alan.hayward@arm.com>
6859 PR tree-optimization/65947
6861 (vect_is_simple_reduction_1): Find condition reductions.
6862 (vect_model_reduction_cost): Add condition reduction costs.
6863 (get_initial_def_for_reduction): Add condition reduction initial var.
6864 (vect_create_epilog_for_reduction): Add condition reduction epilog.
6865 (vectorizable_reduction): Condition reduction support.
6866 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
6867 * doc/sourcebuild.texi (Vector-specific attributes): Document
6870 2015-10-23 Richard Biener <rguenther@suse.de>
6872 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
6875 2015-10-23 Richard Biener <rguenther@suse.de>
6876 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6878 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
6879 into (A ^ B) - B to match.pd
6880 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
6882 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
6884 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
6886 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
6888 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
6890 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
6891 INTEGER_CST@1)): New simplifier.
6893 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
6895 * builtins.c (integer_valued_real_p): Move to fold-const.c.
6896 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
6897 (fold_builtin_ceil, fold_builtin_round): Delete.
6898 (fold_builtin_1): Handle constant trunc, floor, ceil and round
6900 * convert.c (convert_to_real): Remove narrowing of rounding
6902 * fold-const.h (integer_valued_real_unary_p)
6903 (integer_valued_real_binary_p, integer_valued_real_call_p)
6904 (integer_valued_real_single_p, integer_valued_real_p): Declare.
6905 * fold-const.c (tree_single_nonnegative_warnv_p): Move
6906 name_registered_for_update_p check to SSA_NAME case statement.
6907 Don't call tree_simple_nonnegative_warnv_p for SSA names.
6908 (integer_valued_real_unary_p, integer_valued_real_binary_p)
6909 (integer_valued_real_call_p, integer_valued_real_single_p)
6910 (integer_valued_real_invalid_p): New functions.
6911 (integer_valued_real_p): Move from fold-const.c and rework
6912 to call the functions above. Handle SSA names.
6913 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
6914 * gimple-fold.c (gimple_assign_integer_valued_real_p)
6915 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
6916 (gimple_stmt_integer_valued_real_p): New functions.
6917 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
6918 Fold f(x)->x for the same f if x is known to be integer-valued.
6919 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
6920 the result. Canonicalize floor(x) as trunc(x) if x is
6923 2015-10-23 Tom de Vries <tom@codesourcery.com>
6925 * tree-ssa-structalias.c (intra_create_variable_infos): Use
6926 make_constraint_from.
6928 2015-10-23 Tom de Vries <tom@codesourcery.com>
6930 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
6931 setting of is_full_var in case of a single field.
6933 2015-10-22 Martin Sebor <msebor@redhat.com>
6936 * config/i386/i386.opt: Add missing periods to the ends of sentences.
6937 * config/msp430/msp430.opt: Same.
6939 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
6941 * doc/extend.exp (Global Register Variables): Rewrite.
6943 2015-10-22 Jeff Law <law@redhat.com>
6945 * genattrtab.c (main): If we do not have any annul-true or annul-false
6946 slots, then write out a dummy eligible_for_annul_true or
6947 eligible_for_annul_false as needed.
6949 2015-10-22 Nick Clifton <nickc@redhat.com>
6951 * config/msp430/msp430.opt: Add -msilicon-errata and
6952 -msilicon-errata-warn.
6953 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
6955 * doc/invoke.texi: Document new options.
6957 2015-10-22 Richard Biener <rguenther@suse.de>
6959 PR tree-optimization/58497
6960 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
6961 (expand_vector_operations_1): Use it. Lower operations on
6962 all uniform vectors to scalar operations if the HW supports it.
6964 2015-10-22 Richard Biener <rguenther@suse.de>
6966 PR tree-optimization/19049
6967 PR tree-optimization/65962
6968 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
6969 to strided accesses if single-element interleaving doesn't work.
6971 2015-10-22 Richard Biener <rguenther@suse.de>
6975 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
6976 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
6977 (expand_unop): Likewise.
6979 2015-10-22 Richard Biener <rguenther@suse.de>
6981 * fold-const.c (fold_addr_of_array_ref_difference): Properly
6982 convert operands before folding a MINUS_EXPR.
6983 (fold_binary_loc): Move simplification of MINUS_EXPR on
6984 converted POINTER_PLUS_EXPRs ...
6985 * match.pd: ... here.
6987 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
6989 * builtins.c (fold_builtin_tan): Delete.
6990 (fold_builtin_1): Handle constant tan arguments here.
6991 * match.pd: Simplify (tan (atan x)) to x.
6993 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
6995 * builtins.c (fold_builtin_cproj): Delete.
6996 (fold_builtin_1): Handle constant arguments here.
6997 (build_complex_cproj): Move and rename to...
6998 * tree.c: (build_complex_inf): ...this.
6999 * tree.h (build_complex_inf): Declare.
7000 * match.pd: Fold cproj(x)->x if x has no infinity.
7001 Use build_complex_inf for existing cproj rules.
7003 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7006 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
7007 already have a comparison result.
7009 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7012 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
7013 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
7014 (aarch64_classify_address): Likewise.
7015 (aarch64_secondary_reload): Likewise.
7016 (aarch64_override_options_after_change_1): Adjust.
7017 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7018 Use aarch64_nopcrelative_literal_loads.
7019 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7020 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
7023 2015-10-21 Martin Sebor <msebor@redhat.com>
7026 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
7027 (print_filtered_help): Reference aliased option's name and encourage
7028 readers to use it in preference to the alias if the former is not
7029 documented. Mention when using an option is diagnosed.
7030 * gcc.c (display_help): End each sentence with a period.
7032 * common.opt: End each sentence that describes an option with
7034 * config/aarch64/aarch64.opt: Same.
7035 * config/alpha/alpha.opt: Same.
7036 * config/arc/arc.opt: Same.
7037 * config/arm/arm.opt: Same.
7038 * config/avr/avr.opt: Same.
7039 * config/bfin/bfin.opt: Same.
7040 * config/c6x/c6x.opt: Same.
7041 * config/cr16/cr16.opt: Same.
7042 * config/cris/cris.opt: Same.
7043 * config/cris/linux.opt: Same.
7044 * config/darwin.opt: Same.
7045 * config/epiphany/epiphany.opt: Same.
7046 * config/fr30/fr30.opt: Same.
7047 * config/frv/frv.opt: Same.
7048 * config/ft32/ft32.opt: Same.
7049 * config/g.opt: Same.
7050 * config/h8300/h8300.opt: Same.
7051 * config/i386/cygming.opt: Same.
7052 * config/i386/djgpp.opt: Same.
7053 * config/i386/i386.opt: Same.
7054 * config/i386/interix.opt: Same.
7055 * config/i386/mingw-w64.opt: Same.
7056 * config/i386/mingw.opt: Same.
7057 * config/ia64/ia64.opt: Same.
7058 * config/ia64/ilp32.opt: Same.
7059 * config/iq2000/iq2000.opt: Same.
7060 * config/linux.opt: Same.
7061 * config/lm32/lm32.opt: Same.
7062 * config/lynx.opt: Same.
7063 * config/m32c/m32c.opt: Same.
7064 * config/m32r/m32r.opt: Same.
7065 * config/m68k/ieee.opt: Same.
7066 * config/m68k/m68k.opt: Same.
7067 * config/mcore/mcore.opt: Same.
7068 * config/mep/mep.opt: Same.
7069 * config/microblaze/microblaze.opt: Same.
7070 * config/mips/mips.opt: Same.
7071 * config/mmix/mmix.opt: Same.
7072 * config/mn10300/mn10300.opt: Same.
7073 * config/moxie/moxie.opt: Same.
7074 * config/msp430/msp430.opt: Same.
7075 * config/nios2/elf.opt: Same.
7076 * config/nios2/nios2.opt: Same.
7077 * config/nvptx/nvptx.opt: Same.
7078 * config/pa/pa-hpux.opt: Same.
7079 * config/pa/pa-hpux1010.opt: Same.
7080 * config/pa/pa-hpux1111.opt: Same.
7081 * config/pa/pa-hpux1131.opt: Same.
7082 * config/pa/pa.opt: Same.
7083 * config/pa/pa64-hpux.opt: Same.
7084 * config/pdp11/pdp11.opt: Same.
7085 * config/rl78/rl78.opt: Same.
7086 * config/rs6000/476.opt: Same.
7087 * config/rs6000/aix64.opt: Same.
7088 * config/rs6000/darwin.opt: Same.
7089 * config/rs6000/linux64.opt: Same.
7090 * config/rs6000/rs6000.opt: Same.
7091 * config/rs6000/sysv4.opt: Same.
7092 * config/s390/s390.opt: Same.
7093 * config/s390/tpf.opt: Same.
7094 * config/sh/sh.opt: Same.
7095 * config/sol2.opt: Same.
7096 * config/sparc/long-double-switch.opt: Same.
7097 * config/sparc/sparc.opt: Same.
7098 * config/spu/spu.opt: Same.
7099 * config/stormy16/stormy16.opt: Same.
7100 * config/tilegx/tilegx.opt: Same.
7101 * config/tilepro/tilepro.opt: Same.
7102 * config/v850/v850.opt: Same.
7103 * config/vax/vax.opt: Same.
7104 * config/visium/visium.opt: Same.
7105 * config/vms/vms.opt: Same.
7106 * config/vxworks.opt: Same.
7107 * config/xtensa/xtensa.opt: Same.
7109 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7110 Sebastian Pop <s.pop@samsung.com>
7112 * graphite-scop-detection.c (parameter_index_in_region): Update call to
7113 invariant_in_sese_p_rec.
7114 * graphite-sese-to-poly.c (extract_affine): Same.
7115 * sese.c (invariant_in_sese_p_rec): Pass in an extra
7116 parameter has_vdefs.
7117 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
7118 variable depends on virtual definitions in the current region.
7119 * sese.h (invariant_in_sese_p_rec): Update declaration.
7121 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7122 Sebastian Pop <s.pop@samsung.com>
7124 * graphite-scop-detection.c (build_scops): Do not handle scops
7125 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
7126 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
7128 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
7130 * config.in: Regenerate.
7131 * configure: Regenerate.
7132 * configure.ac (CHECKING_P): Define.
7133 * system.h: Use CHECKING_P.
7135 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7138 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
7139 is negative we don't know the type.
7140 (check_stmt_for_type_change): Skip constructors of non-polymorphic
7141 types as those won't help devirutalization.
7143 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7145 * fold-const.c (operand_equal_p): Add code matching empty constructors.
7147 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
7149 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
7151 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
7152 Add comments on sign of the result.
7153 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
7154 Recurse on operand #1 instead of operand #0.
7155 <CEIL_MOD_EXPR>: Do not recurse.
7156 <ROUND_MOD_EXPR>: Likewise.
7158 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7160 * cfgrtl.c (pass_free_cfg::execute): Adjust.
7161 * final.c (dbr_sequence_length): Always define.
7162 (shorten_branches): Adjust.
7163 * genattr-common.c (main): Always define DELAY_SLOTS.
7164 * genattr.c (main): Unconditionally declare functions and define
7165 macros related to delay slots.
7166 * genattrtab.c (write_eligible_delay): Adjust.
7167 (main): Always write out delay slot functions.
7168 * opts.c (default_options_table): Adjust.
7169 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
7170 (redirect_with_delay_list_safe_p): Likewise.
7171 (fill_simple_delay_slots): Likewise.
7172 (fill_slots_from_thread): Likewise.
7173 (make_return_insns): Likewise.
7174 (dbr_schedule): Likewise.
7175 (rest_of_handle_delay_slots): Likewise.
7176 (pass_delay_slots::gate): Likewise.
7177 * toplev.c (process_options): Likewise.
7179 2015-10-21 Richard Henderson <rth@redhat.com>
7181 * targhooks.c (default_addr_space_pointer_mode): Remove check
7182 for generic address space.
7183 (default_addr_space_address_mode): Likewise.
7184 (default_addr_space_valid_pointer_mode): Likewise.
7185 (default_addr_space_legitimate_address_p): Likewise.
7186 (default_addr_space_legitimize_address): Likewise.
7187 * target.def (addr_space.pointer_mode): Update documentation
7188 of default behavior.
7189 (addr_space.address_mode): Likewise.
7192 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
7195 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7197 * builtins.c (fold_builtin_cabs): Delete.
7198 (fold_builtin_1): Update accordingly. Handle constant arguments here.
7199 * match.pd: Add rules previously handled by fold_builtin_cabs.
7201 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7203 * fold-const.h (fold_strip_sign_ops): Delete.
7204 * fold-const.c (fold_strip_sign_ops): Likewise.
7205 (fold_unary_loc, fold_binary_loc): Remove calls to it.
7206 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
7207 (fold_builtin_ccos): Delete.
7208 (fold_builtin_pow): Don't call fold_strip_sign_ops.
7209 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
7210 Remove fndecl argument.
7211 (fold_builtin_1): Update calls accordingly. Handle constant
7212 cos, cosh, ccos and ccosh here.
7214 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7216 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
7217 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
7218 * common.opt (fssa-backprop): New option.
7219 * fold-const.h (negate_mathfn_p): Declare.
7220 * fold-const.c (negate_mathfn_p): Make public.
7221 * timevar.def (TV_TREE_BACKPROP): New.
7222 * tree-pass.h (make_pass_backprop): Declare.
7223 * passes.def (pass_backprop): Add.
7224 * gimple-ssa-backprop.c: New file.
7226 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7227 Sebastian Pop <s.pop@samsung.com>
7229 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
7230 Do not call create_empty_if_region_on_edge when cond_expr is true.
7231 (translate_isl_ast_node_for): Check whether a guard has been generated.
7233 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7235 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
7236 (operator=): Removed.
7237 (dr_info): Make alias_set number the last argument with default
7238 value of invalid_alias_set.
7239 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
7241 (rewrite_reductions_out_of_ssa): Iterate only through the
7242 basic blocks which are inside region.
7243 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
7244 * sese.h (struct sese_l): Removed assignment operator.
7245 (split_region_for_bb): Removed dead code.
7247 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7249 * graphite-poly.h (struct dr_info): Removed conversion constructor.
7250 (struct scop): Renamed scop::region to scop::scop_info
7251 (scop_set_region): Same.
7252 (SCOP_REGION): Removed
7253 (SCOP_CONTEXT): Removed.
7254 (POLY_SCOP_P): Removed.
7255 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
7256 Rename scop->region to scop->scop_info.
7257 (add_parameters_to_ivs_params): Same.
7258 (graphite_regenerate_ast_isl): Same.
7259 * graphite-poly.c (new_scop): Same.
7261 (print_scop_params): Same.
7262 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
7263 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
7264 (dot_all_scops_1): Rename scop->region to scop->scop_info.
7265 (scop_detection::nb_pbbs_in_loops): Same.
7266 (find_scop_parameters): Same.
7267 (try_generate_gimple_bb): Same.
7268 (gather_bbs::before_dom_children): Same.
7269 (gather_bbs::after_dom_children): Same.
7270 (build_scops): Same.
7271 * graphite-sese-to-poly.c (build_scop_scattering): Same.
7272 (extract_affine_chrec): Same.
7273 (extract_affine): Same.
7274 (set_scop_parameter_dim): Same.
7275 (build_loop_iteration_domains): Same.
7276 (create_pw_aff_from_tree): Same.
7277 (add_param_constraints): Same.
7278 (build_scop_iteration_domain): Same.
7279 (build_scop_drs): Same.
7280 (analyze_drs_in_stmts): Same.
7281 (insert_out_of_ssa_copy_on_edge): Same.
7282 (rewrite_close_phi_out_of_ssa):Same.
7283 (rewrite_reductions_out_of_ssa):Same.
7284 (handle_scalar_deps_crossing_scop_limits):Same.
7285 (rewrite_cross_bb_scalar_deps):Same.
7286 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
7287 (build_poly_scop):Same.
7288 (build_alias_set): Use pointer to dr_info.
7289 * graphite.c (print_graphite_scop_statistics):
7290 (graphite_transform_loops):
7291 * sese.h (struct sese_l): Remove conversion constructor.
7293 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7296 * tree.c (verify_type): Verify that TYPE_MODE match
7297 between TYPE_CANONICAL and type.
7298 * expr.c (store_expr_with_bounds): Revert my previous change.
7299 * expmed.c (store_bit_field_1): Revert prevoius change.
7300 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
7301 to match for all types.
7303 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
7305 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
7308 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
7310 * doc/tm.texi: Regenerated.
7311 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
7312 * stor-layout.c (layout_type): Use mode to get vector mask size.
7313 * target.def (get_mask_mode): New.
7314 * targhooks.c (default_get_mask_mode): New.
7315 * targhooks.h (default_get_mask_mode): New.
7316 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
7318 * tree.c (MAX_BOOL_CACHED_PREC): New.
7319 (nonstandard_boolean_type_cache): New.
7320 (build_nonstandard_boolean_type): New.
7321 (make_vector_type): Vector mask has no canonical type.
7322 (build_truth_vector_type): New.
7323 (build_same_sized_truth_vector_type): New.
7324 (truth_type_for): Support vector masks.
7325 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
7326 (build_truth_vector_type): New.
7327 (build_same_sized_truth_vector_type): New.
7328 (build_nonstandard_boolean_type): New.
7329 * tree-cfg.c (verify_gimple_comparison) Require boolean
7330 vector type for vector comparison.
7331 (verify_gimple_assign_ternary): Likewise.
7332 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
7334 * tree-vect-stmts.c (vectorizable_condition): Use boolean
7335 vector type for vector comparison.
7336 * tree-vect-generic.c (elem_op_func): Add new operand to hold
7338 (do_unop): Adjust to modified function type.
7339 (do_binop): Likewise.
7340 (do_plus_minus): Likewise.
7341 (do_negate); Likewise.
7342 (expand_vector_piecewise): Likewise.
7343 (do_cond): Likewise.
7344 (do_compare): Use comparison instead of condition.
7345 (expand_vector_divmod): Use boolean vector type for comparison.
7346 (expand_vector_operations_1): Skip scalar mask operations.
7348 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
7350 * omp-low.c (simd_clone_create): Set in_other_partition
7353 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
7355 * doc/extend.exp (Local Register Variables): Rewrite.
7357 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7359 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
7360 and x*x in cases where the operands are sign ops. Extend these
7361 rules to handle copysign as a sign op (including for cos, cosh
7362 and pow, which already treated negate and abs as sign ops).
7364 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
7367 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
7368 for 64-bit MS_ABI targets also when default incoming stack boundary
7371 2015-10-21 Richard Biener <rguenther@suse.de>
7373 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
7374 cond stmts, enhanced and split out from ...
7375 (vn_phi_eq): ... here.
7377 2015-10-21 Richard Biener <rguenther@suse.de>
7380 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
7381 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
7382 (tree_single_nonnegative_warnv_p): ... here. For SSA names
7383 make sure they are not registered for update.
7385 2015-10-21 Richard Biener <rguenther@suse.de>
7387 PR tree-optimization/68026
7388 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
7389 unsigned VARYING values.
7391 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
7393 * asan.c (asan_emit_stack_protection): Don't pass local stack to
7394 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
7395 NULL and use local stack than.
7396 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
7397 in addition to __asan_init.
7398 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
7399 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
7400 * asan.h (asan_intercepted_p): Handle new string builtins.
7401 * ubsan.c (ubsan_use_new_style_p): New function.
7402 (ubsan_instrument_float_cast): If location is unknown, assign
7403 input_location to loc. Propagate loc to ubsan_create_data if
7404 ubsan_use_new_style_p returned true.
7406 2015-10-21 Jeff Law <law@redhat.com>
7408 * Makefile.in (OBJS): Remove sched-vis.c
7409 * sched-vis.c: Removed. Code moved into...
7410 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
7411 * rtl.h: Remove prototypes for functions now living in print-rtl.c
7412 * print-rtl.h Add prototypes for new functions in print-rtl.c.
7413 * auto-inc-dec.c: Include print-rtl.h
7414 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
7415 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
7417 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
7420 2015-10-21 Richard Biener <rguenther@suse.de>
7421 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7423 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
7425 Move (a * (1 << b)) is (a << b) to match.pd.
7426 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
7427 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
7428 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
7430 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
7432 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
7433 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
7434 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
7436 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
7438 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
7440 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
7441 Szabolcs Nagy <szabolcs.nagy@arm.com>
7442 Alan Modra <amodra@gmail.com>
7444 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
7445 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
7446 (LINK_SPEC): Add %(link_secure_plt).
7447 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
7448 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
7450 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
7451 Szabolcs Nagy <szabolcs.nagy@arm.com>
7453 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
7454 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
7456 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7458 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
7460 (fusion_load_store): Use it.
7461 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
7462 ldp and stp in VD modes.
7463 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
7464 (store_pair<mode>, VD): Likewise.
7466 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
7468 PR rtl-optimization/67609
7469 * lra-splill.c (lra_final_code_change): Don't remove all
7472 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7474 * simplify-rtx.c (simplify_binary_operation): If either operand was
7475 a constant pool reference use them if all other simplifications failed.
7477 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7479 * config/aarch64/aarch64.md
7480 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
7481 * config/aarch64/aarch64-simd.md
7482 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
7483 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
7484 (aarch64_fpconst_pow_of_2): New function.
7485 (aarch64_vec_fpconst_pow_of_2): Likewise.
7486 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
7488 (aarch64_vec_fpconst_pow_of_2): Likewise.
7489 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
7490 (aarch64_fp_vec_pow2): Likewise.
7492 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
7494 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
7495 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
7496 * config/alpha/alpha.c (alpha_function_arg_advance): Update
7497 ALPHA_ARG_SIZE usage.
7498 (alpha_arg_partial_bytes): Ditto.
7500 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
7503 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
7504 error_mark_node decls.
7506 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
7510 * common/config/i386/i386-common.c (ix86_handle_option): Remove
7511 OPT_miamcu handling.
7512 * config/i386/i386.c (PTA_NO_80387): New macro.
7513 (processor_alias_table): Add PTA_NO_80387 to lakemont.
7514 (ix86_option_override_internal): Update MASK_80387 from
7515 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
7516 SSE math only if 80387 is supported. Don't change
7518 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
7520 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
7521 if TARGET_80387 is true and TARGET_IAMCU is false.
7522 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
7523 is true and TARGET_IAMCU_P is false.
7525 2015-10-20 Richard Biener <rguenther@suse.de>
7527 PR tree-optimization/68017
7528 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
7530 2015-10-20 Martin Liska <mliska@suse.cz>
7532 * cgraphclones.c (cgraph_node::create_virtual_clone):
7533 Verify cgraph_node.local.versionable instead of calling
7534 tree_versionable_function_p.
7535 * ipa-cp.c (determine_versionability): Save the information
7536 to ipa_node_params summary.
7537 (ipcp_versionable_function_p): Use it.
7538 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
7539 (ipcp_generate_summary): Do not compute cgraph_node
7541 * ipa-inline-analysis.c (inline_generate_summary): Compute
7542 versionability for all cgraph nodes.
7543 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
7544 ipa_node_params::versionability.
7545 * ipa-prop.h (struct ipa_node_params): Declare it.
7547 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7550 * varasm.c (assemble_variable): Move special vtv handling to..
7551 (handle_vtv_comdat_sections): .. here. New function.
7552 (output_object_block): Handle vtv sections.
7554 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
7557 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
7559 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
7561 * doc/extend.texi: Update documentation WRT inline functions.
7563 2015-10-20 Alan Modra <amodra@gmail.com>
7566 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
7567 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
7568 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
7570 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
7572 PR rtl-optimization/66790
7573 * df.h (DF_MIR): New macro.
7574 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
7575 (DF_MIR_INFO_BB): New macro.
7576 (DF_MIR_IN, DF_MIR_OUT): New macros.
7577 (struct df_mir_bb_info): New.
7578 (df_mir): New macro.
7579 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
7581 (df_mir_get_bb_info): New.
7582 * df-problems.c (struct df_mir_problem_data): New.
7583 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
7584 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
7585 df_mir_confluence_0, df_mir_confluence_n,
7586 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
7587 df_mir_bottom_dump, df_mir_verify_solution_start,
7588 df_mir_verify_solution_end): New.
7590 (df_mir_add_problem, df_mir_simulate_one_insn): New.
7591 * timevar.def (TV_DF_MIR): New.
7592 * ree.c: Include bitmap.h
7593 (add_removable_extension): Add an INIT_REGS parameter. Use it
7594 to skip zero-extensions that may get an uninitialized register.
7595 (find_removable_extensions): Compute must-initialized registers
7596 using the MIR dataflow problem. Update the call to
7597 add_removable_extension.
7598 (find_and_remove_re): Call df_mir_add_problem.
7600 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
7602 * common/config/mn10300/mn10300-common.c
7603 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
7604 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
7606 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
7608 * doc/extend.texi (Explicit Register Variables): Simplify and
7609 avoid unnecessary and confusion abbreviations. Update cross
7611 doc/implement-c.tex: Update cross reference.
7613 2015-10-19 Jeff Law <law@redhat.com>
7615 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
7616 that create irreducible loops unless the path elimiantes a multiway
7619 2015-10-19 Richard Biener <rguenther@suse.de>
7621 PR tree-optimization/67975
7622 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
7623 * tree-cfg.c (extract_true_false_controlled_edges): Split out
7624 core worker from ...
7625 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
7626 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
7627 instead of block number for PHIs with two or one args.
7628 (vn_phi_eq): Compare edge predicates of PHIs that are in different
7631 2015-10-19 Richard Biener <rguenther@suse.de>
7633 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
7634 (gimple_stmt_nonnegative_warnv_p): Use it.
7635 * match.pd (CPROJ): New operator list.
7636 (cproj (complex ...)): Move simplifications from ...
7637 * builtins.c (fold_builtin_cproj): ... here.
7639 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
7641 * config/i386/i386.c (ix86_expand_vector_move): Use
7642 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
7645 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
7647 * doc/invoke.texi: Replace @optindex with @opindex.
7649 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
7652 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
7653 arch= is set, clear all bits in x_ix86_isa_flags, except for
7654 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
7656 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
7659 * common.opt (fkeep-static-functions): New option.
7660 * doc/invoke.texi: Document it.
7661 * cgraphunit.c (cgraph_node::finalize_function): Use it.
7663 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7665 * sched-int.h (struct autopref_multipass_data_): Remove offset
7666 field. Add min_offset, max_offset, multi_mem_insn_p fields.
7667 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
7668 (autopref_multipass_init): Use it. Handle PARALLEL sets.
7669 (autopref_rank_data): New function.
7670 (autopref_rank_for_schedule): Use it.
7671 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
7673 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
7676 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
7678 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7680 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
7681 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
7682 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
7683 (STANDARD_STARTFILE_PREFIX_1): New.
7684 (STANDARD_STARTFILE_PREFIX_2): New.
7686 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7688 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
7689 (darwin_driver_init): Note a version-min when provided on the c/l.
7690 * config/darwin.h (%darwin_minversion): Remove.
7691 * config/i386/darwin.h: Likewise.
7692 * config/rs6000/darwin.h: Likewise.
7693 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
7694 rather than an arbitrary constant.
7696 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7698 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
7699 PPC, detect conflicts between -arch and multilib settings. Detect
7700 and warn about conflicts between multiple -arch definitions.
7702 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7704 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
7706 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7708 * lra-constraints.c (add_next_usage_insn): Change argument type
7709 from rtx to rtx_insn *.
7711 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
7713 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
7716 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
7718 * config/tilepro/gen-mul-tables.cc: Adjust include files.
7719 * config/tilegx/mul-tables.c: Regenerate.
7720 * config/tilepro/mul-tables.c: Regenerate.
7722 * config/tilegx/tilegx-c.c: Adjust include files.
7723 * config/tilegx/tilegx.c: Likewise.
7724 * config/tilepro/tilepro-c.c: Likewise.
7725 * config/tilepro/tilepro.c: Likewise.
7726 * config/aarch64/aarch64-builtins.c: Likewise.
7727 * config/aarch64/aarch64.c: Likewise.
7728 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7729 * config/alpha/alpha.c: Likewise.
7730 * config/arc/arc.c: Likewise.
7731 * config/arm/aarch-common.c: Likewise.
7732 * config/arm/arm-builtins.c: Likewise.
7733 * config/arm/arm-c.c: Likewise.
7734 * config/arm/arm.c: Likewise.
7735 * config/avr/avr-c.c: Likewise.
7736 * config/avr/avr-devices.c: Likewise.
7737 * config/avr/avr-log.c: Likewise.
7738 * config/avr/avr.c: Likewise.
7739 * config/bfin/bfin.c: Likewise.
7740 * config/c6x/c6x.c: Likewise.
7741 * config/cr16/cr16.c: Likewise.
7742 * config/cris/cris.c: Likewise.
7743 * config/darwin-c.c: Likewise.
7744 * config/darwin-driver.c: Likewise.
7745 * config/darwin.c: Likewise.
7746 * config/default-c.c: Likewise.
7747 * config/epiphany/epiphany.c: Likewise.
7748 * config/epiphany/mode-switch-use.c: Likewise.
7749 * config/epiphany/resolve-sw-modes.c: Likewise.
7750 * config/fr30/fr30.c: Likewise.
7751 * config/frv/frv.c: Likewise.
7752 * config/ft32/ft32.c: Likewise.
7753 * config/glibc-c.c: Likewise.
7754 * config/h8300/h8300.c: Likewise.
7755 * config/i386/host-cygwin.c: Likewise.
7756 * config/i386/host-mingw32.c: Likewise.
7757 * config/i386/i386-c.c: Likewise.
7758 * config/i386/i386.c: Likewise.
7759 * config/i386/msformat-c.c: Likewise.
7760 * config/i386/winnt-cxx.c: Likewise.
7761 * config/i386/winnt-stubs.c: Likewise.
7762 * config/i386/winnt.c: Likewise.
7763 * config/ia64/ia64-c.c: Likewise.
7764 * config/ia64/ia64.c: Likewise.
7765 * config/iq2000/iq2000.c: Likewise.
7766 * config/lm32/lm32.c: Likewise.
7767 * config/m32c/m32c-pragma.c: Likewise.
7768 * config/m32c/m32c.c: Likewise.
7769 * config/m32r/m32r.c: Likewise.
7770 * config/mcore/mcore.c: Likewise.
7771 * config/mep/mep-pragma.c: Likewise.
7772 * config/mep/mep.c: Likewise.
7773 * config/microblaze/microblaze-c.c: Likewise.
7774 * config/microblaze/microblaze.c: Likewise.
7775 * config/mips/mips-tables.opt
7776 * config/mips/mips.c: Likewise.
7777 * config/mmix/mmix.c: Likewise.
7778 * config/mn10300/mn10300.c: Likewise.
7779 * config/moxie/moxie.c: Likewise.
7780 * config/msp430/msp430-c.c: Likewise.
7781 * config/msp430/msp430.c: Likewise.
7782 * config/nds32/nds32-cost.c: Likewise.
7783 * config/nds32/nds32-fp-as-gp.c: Likewise.
7784 * config/nds32/nds32-intrinsic.c: Likewise.
7785 * config/nds32/nds32-isr.c: Likewise.
7786 * config/nds32/nds32-md-auxiliary.c: Likewise.
7787 * config/nds32/nds32-memory-manipulation.c: Likewise.
7788 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7789 * config/nds32/nds32-predicates.c: Likewise.
7790 * config/nds32/nds32.c: Likewise.
7791 * config/nios2/nios2.c: Likewise.
7792 * config/nvptx/mkoffload.c: Likewise.
7793 * config/nvptx/nvptx.c: Likewise.
7794 * config/pa/pa.c: Likewise.
7795 * config/pdp11/pdp11.c: Likewise.
7796 * config/rl78/rl78-c.c: Likewise.
7797 * config/rl78/rl78.c: Likewise.
7798 * config/rs6000/host-darwin.c: Likewise.
7799 * config/rs6000/rs6000-c.c: Likewise.
7800 * config/rs6000/rs6000-linux.c: Likewise.
7801 * config/rs6000/rs6000.c: Likewise.
7802 * config/rx/rx.c: Likewise.
7803 * config/s390/s390-c.c: Likewise.
7804 * config/s390/s390.c: Likewise.
7805 * config/sh/sh-c.c: Likewise.
7806 * config/sh/sh-mem.cc: Likewise.
7807 * config/sh/sh.c: Likewise.
7808 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7809 * config/sh/sh_treg_combine.cc: Likewise.
7810 * config/sol2-c.c: Likewise.
7811 * config/sol2-cxx.c: Likewise.
7812 * config/sol2-stubs.c: Likewise.
7813 * config/sol2.c: Likewise.
7814 * config/sparc/sparc-c.c: Likewise.
7815 * config/sparc/sparc.c: Likewise.
7816 * config/spu/spu-c.c: Likewise.
7817 * config/spu/spu.c: Likewise.
7818 * config/stormy16/stormy16.c: Likewise.
7819 * config/v850/v850-c.c: Likewise.
7820 * config/v850/v850.c: Likewise.
7821 * config/vax/vax.c: Likewise.
7822 * config/visium/visium.c: Likewise.
7823 * config/vms/vms-c.c: Likewise.
7824 * config/vms/vms.c: Likewise.
7825 * config/vxworks.c: Likewise.
7826 * config/winnt-c.c: Likewise.
7827 * config/xtensa/xtensa.c: Likewise.
7829 2015-10-16 Christian Bruel <christian.bruel@st.com>
7832 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
7833 (FUNCTION_BOUNDARY_P): New macro:
7834 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
7836 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
7837 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
7838 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
7839 * function.c (allocate_struct_function): Call
7840 relayout_function hook.
7841 * passes.c (rest_of_decl_compilation): Likewise.
7843 2015-10-16 Christian Bruel <christian.bruel@st.com>
7846 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
7847 * config/arm/arm.c (arm_option_override_internal): Call
7848 arm_override_options_after_change_1.
7849 (arm_override_options_after_change): New function.
7850 (arm_override_options_after_change_1): Likewise.
7851 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
7853 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7856 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
7859 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
7861 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
7862 argument is an ADDR_EXPR.
7864 2015-10-16 Richard Biener <rguenther@suse.de>
7866 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
7867 and get rid of force_gimple_operand_gsi.
7868 (gimple_fold_builtin_memory_chk): Likewise.
7869 (gimple_fold_builtin_stxcpy_chk): Likewise.
7870 (rewrite_to_defined_overflow): Likewise.
7871 (gimple_convert_to_ptrofftype): New function.
7872 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
7874 2015-10-16 Richard Biener <rguenther@suse.de>
7876 * tree-nested.h (build_addr): Adjust prototype.
7877 * tree-nested.c (build_addr): Remove context argument and use
7879 (get_static_chain): Adjust calls to build_addr.
7880 (convert_nl_goto_reference): Likewise.
7881 (convert_tramp_reference_op): Likewise.
7882 (finalize_nesting_tree_1): Likewise.
7883 * value-prof.c (gimple_ic): Likewise.
7884 * gimple-low.c (lower_builtin_setjmp): Likewise.
7885 * tree-parloops.c (take_address_of): Likewise.
7886 (create_call_for_reduction_1): Likewise.
7887 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
7888 (gimple_gen_ic_func_profiler): Likewise.
7890 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7892 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
7895 2015-10-16 Michael Collison <michael.collison@linaro.org>
7896 Andrew Pinski <andrew.pinski@caviumnetworks.com>
7898 * match.pd ((x < y) && (x < z) -> x < min (y,z),
7899 (x > y) and (x > z) -> x > max (y,z))
7901 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
7902 Szabolcs Nagy <szabolcs.nagy@arm.com>
7904 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
7905 (DYNAMIC_LINKER): Renamed to ...
7906 (GLIBC_DYNAMIC_LINKER): This.
7907 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
7909 2015-10-15 Marek Polacek <polacek@redhat.com>
7911 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
7912 gimple_call_builtin instead of is_gimple_call.
7914 2015-10-15 Richard Biener <rguenther@suse.de>
7916 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
7918 2015-10-15 Richard Biener <rguenther@suse.de>
7920 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
7921 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
7922 * tree-vect-loop.c (get_initial_def_for_induction): Drop
7923 use of force_gimple_operand in favor of gimple_build.
7924 Use vect_get_new_ssa_name.
7925 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
7926 (vectorizable_mask_load_store): Likewise.
7927 (vectorizable_call): Likewise.
7928 (vectorizable_store): Likewise.
7929 (vectorizable_load): Likewise.
7930 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
7932 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
7934 PR tree-optimization/67945
7935 * tree-pass.h (PROP_gimple_opt_math): New property flag.
7936 * generic-match-head.c (canonicalize_math_p): New function.
7937 * gimple-match-head.c: Include tree-pass.h.
7938 (canonicalize_math_p): New function.
7939 * match.pd: Group math built-in rules into simplifications
7940 and canonicalizations. Guard the latter with canonicalize_math_p.
7941 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
7942 PROP_gimple_opt_math property.
7944 2015-10-15 Marek Polacek <polacek@redhat.com>
7946 PR tree-optimization/67953
7947 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
7949 2015-10-15 Jiong Wang <jiong.wang@arm.com>
7951 * config.gcc: Recognize "." in architecture base name for AArch64.
7953 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
7955 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
7957 * config/mips/mips.c (mips_setup_incoming_varargs): Use
7958 ROUND_DOWN to calculate off.
7959 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
7960 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
7963 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
7965 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
7967 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
7968 Torvald Riegel <triegel@redhat.com>
7971 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
7972 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
7973 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
7974 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
7975 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
7976 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
7977 trechkpt, treclaim, tsr, ttest): New define_expands.
7978 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
7979 __TM_FENCE__ for htm.
7980 * doc/extend.texi: Update documentation for htm builtins.
7982 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
7985 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
7986 REG_CFA_EXPRESSION to aligned SSE stores.
7988 2015-10-14 Jeff Law <law@redhat.com>
7990 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
7991 num_threaded_edges for successful FSM threads too.
7993 2015-10-14 Richard Biener <rguenther@suse.de>
7995 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
7996 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
7997 (vect_get_vec_def_for_operand): Remove unused parameter.
7998 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
7999 (vect_create_epilog_for_reduction): Likewise.
8000 (vectorizable_reduction): Likewise.
8001 (vectorizable_live_operation): Likewise.
8002 * tree-vect-patterns.c (type_conversion_p): Likewise.
8003 (vect_recog_vector_vector_shift_pattern): Likewise.
8004 (check_bool_pattern): Likewise.
8005 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8006 (vect_analyze_slp_cost_1): Likewise.
8007 * tree-vect-stmts.c (process_use): Likewise.
8008 (vect_get_vec_def_for_operand): Do not handle reductions.
8009 (vect_get_vec_defs): Adjust.
8010 (vectorizable_mask_load_store): Likewise.
8011 (vectorizable_call): Likewise.
8012 (vectorizable_simd_clone_call): Likewise.
8013 (vect_get_loop_based_defs): Likewise.
8014 (vectorizable_conversion): Likewise.
8015 (vectorizable_assignment): Likewise.
8016 (vectorizable_shift): Likewise.
8017 (vectorizable_operation): Likewise.
8018 (vectorizable_store): Likewise.
8019 (vectorizable_load): Likewise.
8020 (vect_is_simple_cond): Likewise.
8021 (vectorizable_condition): Likewise.
8022 (vect_is_simple_use): Remove unused parameters.
8023 (vect_is_simple_use_1): Adjust and rename.
8025 2015-10-14 Richard Biener <rguenther@suse.de>
8027 PR tree-optimization/67915
8028 * match.pd: Handle comparisons of addresses of STRING_CSTs.
8029 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
8030 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
8031 stmt folding in favor of GIMPLE one.
8033 2015-10-14 Marek Polacek <polacek@redhat.com>
8035 PR tree-optimization/67815
8036 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
8037 (reassociate_bb): Call it.
8039 2015-10-14 Richard Biener <rguenther@suse.de>
8041 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8042 Reset info at start.
8043 (vect_analyze_group_access_1): Add debug print.
8044 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
8045 (vect_compute_single_scalar_iteration_cost): ... to this.
8046 (vect_analyze_loop_2): Adjust.
8047 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
8048 * tree-vectorizer.h: ... here.
8049 (add_stmt_info_to_vec): Remove.
8050 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
8052 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
8054 * targhooks.c (default_target_option_pragma_parse): Do not warn if
8055 called on behalf of "#pragma GCC pop_options".
8057 2015-10-14 Tom de Vries <tom@codesourcery.com>
8059 * cfganal.c (verify_no_unreachable_blocks): New function.
8060 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
8061 verify_no_unreachable_blocks.
8062 cfganal.h (verify_no_unreachable_blocks): Declare.
8064 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
8066 * common.opt: Add flag_checking.
8067 * system.h (CHECKING_P): Define.
8069 2015-10-13 Jakub Jelinek <jakub@redhat.com>
8070 Aldy Hernandez <aldyh@redhat.com>
8071 Ilya Verbin <ilya.verbin@intel.com>
8073 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
8074 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
8075 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
8076 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
8077 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
8078 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
8079 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
8080 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
8081 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
8082 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
8083 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
8084 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
8085 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
8086 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
8087 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
8088 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8089 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8090 (struct cgraph_simd_clone_arg): Adjust comment.
8091 * coretypes.h (struct gomp_ordered): New forward decl.
8092 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
8093 set critical clauses to it.
8094 (gimple_build_omp_ordered): Return gomp_ordered * instead of
8095 gimple *. Add CLAUSES argument, set ordered clauses to it.
8096 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
8098 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
8099 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
8100 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
8101 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
8102 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
8103 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
8104 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
8105 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
8107 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
8108 (gomp_critical): Add clauses field.
8109 (gomp_ordered): New struct.
8110 (is_a_helper <gomp_ordered *>::test): New inline.
8111 (gimple_build_omp_critical): Add CLAUSES argument.
8112 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
8113 instead of gimple *.
8114 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
8115 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
8116 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
8117 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
8119 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
8120 (dump_gimple_omp_target): Handle enter data and exit data.
8121 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
8122 (dump_gimple_omp_critical): Print clauses.
8123 (dump_gimple_omp_ordered): New function.
8124 (dump_gimple_omp_task): Handle taskloop.
8125 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
8127 * gimple-walk.c (walk_gimple_op): Walk clauses on
8128 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
8129 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
8130 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
8131 (struct gimplify_omp_ctx): Add loop_iter_var,
8132 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
8133 and target_firstprivatize_array_bases fields.
8134 (delete_omp_context): Release loop_iter_var.
8135 (gimplify_bind_expr): Handle ORT_NONE.
8136 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
8137 ORT_COMBINED_TARGET.
8138 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
8139 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
8140 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
8141 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
8142 ctx->target_map_scalars_firstprivate.
8143 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
8144 data sharing clauses. For data sharing clause with VLA decl
8145 on omp target/target data don't add firstprivate for the pointer.
8146 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
8147 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
8148 the addition of ORT_COMBINED_TARGET.
8149 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
8150 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
8151 pointers as zero length array sections and
8152 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
8154 (omp_check_private): Handle omp_member_access_dummy_var vars.
8155 (find_decl_expr): New function.
8156 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
8157 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
8158 Handle OMP_CLAUSE_GANG separately. Handle
8159 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8160 clauses. Diagnose linear clause on combined
8161 distribute {, parallel for} simd construct, unless it is the loop
8162 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
8163 Handle map clauses with COMPONENT_REF. Initialize
8164 ctx->target_map_scalars_firstprivate,
8165 ctx->target_firstprivatize_array_bases and
8166 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
8167 linear clause even to target region if combined. Remove
8168 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
8169 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
8170 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
8171 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
8172 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
8173 For linear clause on worksharing loop combined with parallel add
8174 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
8175 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
8176 omp_member_access_dummy_var vars. Add lastprivate clause to outer
8178 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
8179 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
8180 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
8182 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
8183 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
8184 in target body. Handle removal of struct mapping if struct is not
8185 seen in target body. Remove GOMP_MAP_STRUCT map clause on
8186 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
8187 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
8188 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
8189 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
8190 clause appear together. Handle
8191 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
8192 clause if it has map-type-modifier always. Handle
8193 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8195 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
8196 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
8198 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
8199 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
8200 iterators in doacross loops.
8201 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
8202 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
8203 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
8204 for the addition of ORT_COMBINED_TARGET.
8205 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
8206 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
8207 and OMP_TARGET_EXIT_DATA.
8208 (gimplify_omp_ordered): New function.
8209 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
8210 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
8211 Gimplify clauses on OMP_CRITICAL.
8212 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
8213 expand_GOMP_SIMD_ORDERED_END): New functions.
8214 * internal-fn.def (GOMP_SIMD_ORDERED_START,
8215 GOMP_SIMD_ORDERED_END): New internal functions.
8216 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
8217 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
8218 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
8219 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
8220 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
8221 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
8222 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
8223 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
8224 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
8225 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
8226 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
8227 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
8228 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
8229 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
8231 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
8232 GOMP_target_data_41, adjust type.
8233 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
8234 GOMP_target_update_41, adjust type.
8235 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
8237 (struct omp_for_data): Add ordered and simd_schedule fields.
8238 (omp_member_access_dummy_var, unshare_and_remap_1,
8239 unshare_and_remap, is_taskloop_ctx): New functions.
8240 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
8241 (extract_omp_for_data): Handle taskloops and doacross loops
8242 and simd schedule modifier.
8243 (omp_adjust_chunk_size): New function.
8244 (get_ws_args_for): Use it.
8245 (lookup_sfield): Change first argument to splay_tree_key,
8246 add overload with first argument tree.
8247 (maybe_lookup_field): Likewise.
8248 (use_pointer_for_field): Handle omp_member_access_dummy_var.
8249 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
8250 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
8251 (build_outer_var_ref): Add LASTPRIVATE argument, handle
8252 taskloops and omp_member_access_dummy_var vars.
8253 (build_sender_ref): Change first argument to splay_tree_key,
8254 add overload with first argument tree.
8255 (install_var_field): For mask & 8 use &DECL_UID as key instead
8257 (fixup_child_record_type): Const qualify *.omp_data_i.
8258 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
8259 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
8260 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
8261 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
8262 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
8263 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
8264 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
8266 (add_taskreg_looptemp_clauses): New function.
8267 (scan_omp_parallel): Use it.
8268 (scan_omp_task): Likewise.
8269 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8270 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
8271 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8272 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
8273 sandwiched taskloop constructs. Type check
8274 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
8275 region. Diagnose depend(source) or depend(sink:...) on
8276 target constructs or task/taskloop.
8277 (handle_simd_reference): Use get_name.
8278 (lower_rec_input_clauses): Likewise. Ignore all
8279 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
8280 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
8281 before passing it to omp_clause_{default,copy}_ctor. Handle
8282 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
8283 lastprivate_firstprivate flag for linear that needs copyin and
8284 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
8285 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
8286 on taskloop lookup decl in outer context. Pass true to
8287 build_outer_var_ref lastprivate argument. Handle
8288 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
8289 outside of outer taskloop for.
8290 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
8292 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
8293 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
8294 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
8295 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
8296 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
8297 abstract origin. Handle omp_member_access_dummy_var vars.
8298 (expand_parallel_call): Use expand_omp_build_assign.
8299 (expand_task_call): Handle taskloop construct expansion. Add
8300 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
8301 integers. Add priority argument to GOMP_task* calls. Or in
8302 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
8304 (expand_omp_build_assign): Add prototype. Add AFTER
8305 argument, if true emit statements after *GSI_P and continue linking.
8306 (expand_omp_taskreg): Adjust expand_task_call caller.
8307 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
8308 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
8309 zero_iter2_bb and first_zero_iter2 arguments, handle computation
8310 of counts even for ordered loops.
8311 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
8312 (expand_omp_ordered_source, expand_omp_ordered_sink,
8313 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
8315 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
8316 clauses on worksharing loop. Handle DOACROSS loop expansion.
8317 (expand_omp_for_static_nochunk): Handle linear clauses on
8318 worksharing loop. Adjust expand_omp_for_init_counts
8320 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
8321 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
8322 expand_omp_for_init_counts callers.
8323 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
8325 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
8326 Handle doacross loops.
8327 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8328 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
8329 GOMP_target_{41,update_41,enter_exit_data} libcalls.
8330 (expand_omp): Don't expand ordered depend constructs here, record
8331 ord_stmt instead for later expand_omp_for_generic.
8332 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8333 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
8334 clause as stand-alone directive.
8335 (lower_omp_ordered_clauses): New function.
8336 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
8337 don't lower anything.
8338 (lower_omp_for_lastprivate): Use last _looptemp_ clause
8339 on taskloop for comparison.
8340 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
8341 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
8342 expansion for linear adjustments.
8343 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8344 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
8345 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
8346 to tree * pointing to the stmt's clauses.
8347 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
8348 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8349 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
8350 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
8351 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
8352 clauses. Always use short kind and 8-bit align shift.
8353 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
8354 (struct lower_omp_regimplify_operands_data): New type.
8355 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
8357 (lower_omp_1): Use lower_omp_regimplify_operands instead of
8358 gimple_regimplify_operands.
8359 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8360 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
8361 clause as stand-alone directive.
8362 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
8363 (simd_clone_mangle): Mangle the various linear kinds
8365 (simd_clone_adjust_argument_types): Handle
8366 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
8367 (simd_clone_init_simd_arrays): Don't do anything for uval.
8368 (simd_clone_adjust): Handle
8369 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
8370 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
8371 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
8372 * omp-low.h (omp_member_access_dummy_var): New prototype.
8373 * passes.def (pass_simduid_cleanup): Schedule another copy of the
8374 pass after all optimizations.
8375 * tree.c (omp_clause_code_name): Add entries for
8376 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8377 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8378 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
8379 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
8380 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
8381 OMP_CLAUSE_REDUCTION 5 arguments. Handle
8382 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8383 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
8385 * tree-core.h (enum omp_clause_linear_kind): New.
8386 (struct tree_omp_clause): Change type of map_kind
8387 from unsigned char to unsigned int. Add subcode.if_modifier
8388 and subcode.linear_kind fields.
8389 (enum omp_clause_code): Add
8390 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8391 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8392 (OMP_CLAUSE_REDUCTION): Document
8393 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8394 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
8395 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
8396 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
8398 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
8400 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
8402 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
8403 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
8405 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
8406 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
8407 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
8408 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
8409 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
8410 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
8411 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
8412 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
8413 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
8414 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
8415 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
8416 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
8417 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
8418 * tree-inline.c (remap_gimple_stmt): Handle clauses on
8419 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
8420 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
8421 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
8422 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8423 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8424 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8425 (convert_local_omp_clauses): Likewise.
8426 * tree-pretty-print.c (dump_omp_clause): Handle
8427 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8428 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8429 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
8430 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
8431 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
8432 GOMP_MAP_FORCE_DEALLOC. Handle
8433 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
8434 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
8435 and clauses on OMP_ORDERED and OMP_CRITICAL.
8436 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
8437 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
8438 (vectorize_loops): Adjust comments.
8439 (pass_simduid_cleanup::execute): Likewise.
8440 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
8441 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
8442 * wide-int.h (wi::gcd): New.
8444 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
8446 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
8447 (ix86_function_arg_advance): Ditto.
8448 (ix86_function_arg): Ditto.
8449 (ix86_gimplify_va_arg): Ditto.
8450 (ix86_class_max_nregs): Ditto.
8451 (inline_memory_move_cost): Ditto.
8452 (ix86_set_reg_reg_cost): Ditto.
8453 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
8455 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
8458 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
8460 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
8462 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
8463 ROUND_UP macro and UNITS_PER_WORD * 2.
8464 * config/sparc/sparc.c (sparc_compute_frame_size):
8465 Use ROUND_UP and ROUND_DOWN macros where applicable.
8466 (function_arg_record_value, function_arg_record_value_1)
8467 (function_arg_record_value_1): Ditto.
8468 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
8469 alignment to double-word.
8470 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
8471 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
8474 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
8476 * rtl.h (print_insn): Fix prototype.
8478 2015-10-13 Tom de Vries <tom@codesourcery.com>
8480 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
8481 -1. Add assert that returned entry matches phi argument.
8482 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
8483 free_stmt_vec_info_vec ...
8484 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
8487 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
8489 PR tree-optimization/67909, 67947
8490 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
8491 really skip the inner loop.
8493 2015-10-13 Jeff Law <law@redhat.com>
8495 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8496 Allow single block jump threading paths.
8498 2015-10-13 Tom de Vries <tom@codesourcery.com>
8500 PR tree-optimization/67476
8501 * doc/invoke.texi (@item parloops-schedule): New item.
8502 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
8503 * tree-parloops.c: Include params-enum.h.
8504 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
8506 2015-10-13 Tom de Vries <tom@codesourcery.com>
8508 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
8509 * params-enum.h: New file.
8510 * opts.c (handle_param): Handle case that param arg is a string.
8511 * params-list.h: Handle DEFPARAMENUM5 in params.def.
8512 * params.c (find_param): New function, factored out of ...
8513 (set_param_value): ... here.
8514 (param_string_value_p): New function.
8515 * params.h (struct param_info): Add value_names field.
8516 (find_param, param_string_value_p): Declare.
8518 2015-10-13 Tom de Vries <tom@codesourcery.com>
8520 PR tree-optimization/67476
8521 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
8523 2015-10-13 Richard Biener <rguenther@suse.de>
8525 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
8526 the data dependence vector.
8527 (vect_peeling_hash_insert): Get the peeling hash table as argument.
8528 (vect_peeling_hash_get_lowest_cost): Likewise.
8529 (vect_enhance_data_refs_alignment): Adjust.
8530 (struct _vect_peel_info, struct _vect_peel_extended_info,
8531 struct peel_info_hasher): Move from ...
8532 * tree-vectorizer.h: ... here.
8533 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
8534 (LOOP_VINFO_PEELING_HTAB): Likewise.
8535 (struct _loop_vec_info): Remove min_profitable_iters and
8536 peeling_htab members.
8537 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
8539 (destroy_loop_vec_info): Adjust.
8540 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
8541 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
8542 to estimate alias versioning cost.
8543 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
8545 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
8547 * real.h (real_isinteger): Declare.
8548 * real.c (real_isinteger): New function.
8549 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
8550 if y is an even integer.
8552 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8555 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8556 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
8557 counts when these are more informative.
8559 2015-10-12 Jeff Law <law@redhat.com>
8561 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
8562 (fsm_find_control_stmt_paths): Change name of first argument to
8563 more accurately relfect what it really is. Handle simplification
8564 of GIMPLE_COND after finding a thread path for NAME.
8565 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
8566 nontrivial conditions to be handled by FSM threader.
8567 (thread_through_normal_block): Extract the name to looup via
8568 FSM threader from COND_EXPR.
8570 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
8571 restriction that traced SSA_NAME is a user variable.
8573 2015-10-12 Tom de Vries <tom@codesourcery.com>
8575 PR tree-optimization/67476
8576 * omp-low.c (expand_omp_for_generic): Add missing phis.
8578 2015-10-12 Tom de Vries <tom@codesourcery.com>
8580 PR tree-optimization/67476
8581 * omp-low.c (expand_omp_for_generic): Handle simple latch.
8583 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
8585 * config/aarch64/aarch64-simd-builtins.def: Update builtins
8586 tables: add tbl3 and tbx4.
8587 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
8588 (aarch64_tbx4v8qi): New.
8589 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
8590 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
8591 Rewrite using builtin functions.
8592 * config/aarch64/iterators.md (UNSPEC_TBX): New.
8594 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
8596 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
8598 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
8599 Use ROUND_UP and ROUND_DOWN macros where applicable.
8600 (rs6000_darwin64_record_arg_flush): Ditto.
8601 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
8602 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
8605 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
8607 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
8608 (AARCH64_ROUND_DOWN): Ditto.
8609 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
8611 2015-10-12 Richard Biener <rguenther@suse.de>
8614 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
8615 code that analyzes IVs on each stmt but in a cheaper way avoiding
8618 2015-10-12 Nick Clifton <nickc@redhat.com>
8620 * config/msp430/msp430.c (msp430_mcu_names): Rename to
8621 msp430_mcu_data, add fields for ISA and hardware multiply
8622 support. Import latest data from the devices.csv file.
8623 (msp430_override_option): Use the data from the new array.
8624 (msp430_use_f5_series_hwmult): Likewise.
8625 (use_32bit_hwmult): Likewise.
8626 (msp430_no_hwmult): Likewise.
8627 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
8629 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
8630 not recognised then no hardware multiply support is assumed and
8631 that only the MSP430 ISA is allowed.
8633 2015-10-12 Richard Biener <rguenther@suse.de>
8635 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
8637 (vect_analyze_loop_2): ... here.
8639 2015-10-11 Jason Merrill <jason@redhat.com>
8642 * expr.c (store_field): Call store_constructor directly when
8643 storing a CONSTRUCTOR into a target smaller than its type.
8644 Guard against unsafe bitwise copy.
8646 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8648 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
8649 counts when these are more informative.
8651 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8653 * tree-profile.c (tree_profiling): Do not clear
8654 pure/const when not instrumenting.
8655 (pass tree_profile): Add dump of symtab.
8657 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8659 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
8661 (fold_addr_of_array_ref_difference): Likewise.
8663 2015-10-11 Jeff Law <law@redhat.com>
8665 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
8666 tree-ssa-threadbackward.c.
8667 (fsm_find_control_statement_thread_paths): Likewise.
8668 (thread_through_normal_block): Break out FSM bits and move them
8669 into a new function in tree-ssa-threadbackward.c. Call new function
8671 Minimize header file usage.
8672 * tree-ssa-threadbackward.h: New file.
8673 * tree-ssa-threadbackward.c: Likewise.
8674 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
8676 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
8678 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
8680 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
8682 PR rtl-optimization/67864
8683 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
8684 fallthrough edges for conditional jumps. Don't sort candidate
8685 edges if not optimizing for speed.
8687 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8689 * defaults.h (REVERSE_CONDITION): New default definition.
8690 * jump.c (reversed_comparison_code_parts): Adjust.
8692 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8694 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
8695 check HARD_FRAME_POINTER_IS_ARG_POINTER.
8697 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8699 * defaults.h (FRAME_ADDR_RTX): New default definition.
8700 * builtins.c (expand_builtin_return_addr): Adjust.
8702 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8704 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
8705 * builtins.c (expand_builtin_return_addr): Adjust.
8707 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8709 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
8710 * builtins.c (expand_builtin_return_addr): Adjust.
8711 * doc/tm.texi: Likewise.
8712 * doc/tm.texi.in: Likewise.
8713 * except.c (expand_builtin_unwind_init): Likewise.
8715 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8717 * builtins.c (expand_builtin_return_addr): Adjust.
8718 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
8720 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
8722 * tree.c (type_with_interoperable_signedness): New.
8723 (gimple_canonical_types_compatible_p): Use it.
8724 * tree.h (type_with_interoperable_signedness): Declare
8726 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
8728 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
8729 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
8730 when OEP_ADDRESS_OF is se.
8732 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
8733 Sebastian Pop <s.pop@samsung.com>
8735 * graphite-dependences.c (scop_get_dependences): Add dump of the
8736 data dependence graph.
8737 * graphite-poly.c (print_isl_union_map): New.
8738 (debug_isl_union_map): New.
8739 * graphite-poly.h (print_isl_union_map): Declare.
8740 (debug_isl_union_map): Declare.
8742 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
8743 Sebastian Pop <s.pop@samsung.com>
8745 * graphite-poly.c (print_iteration_domain): Remove verbosity.
8746 Remove OpenScop formatting.
8747 (print_iteration_domains): Same.
8748 (debug_iteration_domain): Same.
8749 (debug_iteration_domains): Same.
8752 (dump_gbb_cases): Same.
8753 (dump_gbb_conditions): Same.
8756 (print_pbb_body): Same.
8758 (print_scop_params): Same.
8759 (print_scop_context): Same.
8761 (debug_pbb_domain): Same.
8763 (debug_scop_context): Same.
8765 (debug_scop_params): Same.
8766 * graphite-poly.h: Same.
8767 * graphite.c (graphite_transform_loops): Same.
8769 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8771 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
8772 call that isn't needed.
8774 2015-10-09 Jeff Law <law@redhat.com>
8776 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
8777 rather than moving each name to the freelist individually.
8779 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
8781 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
8782 * frame-header-opt.c: New file.
8783 * config/mips/mips-proto.h (mips_register_frame_header_opt):
8785 * config/mips/mips.c (mips_compute_frame_info): Check
8786 optimize_call_stack flag.
8787 (mips_option_override): Register new frame_header_opt pass.
8788 (mips_frame_info, mips_int_mask, mips_shadow_set,
8789 machine_function): Move these types to...
8790 * config/mips/mips.h: here.
8791 (machine_function): Add does_not_use_frame_header and
8792 optimize_call_stack fields.
8793 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
8794 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
8796 * config/mips/mips.opt (mframe-header-opt): Add new option.
8798 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
8800 * config/i386/i386.c
8801 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
8802 ROUND_DOWN where applicable.
8804 2015-10-09 Jeff Law <law@redhat.com>
8806 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
8809 2015-10-09 Renlin Li <renlin.li@arm.com>
8811 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
8812 operands[0] and operands[2].
8813 (neon_vtrn<mode>_insn): Likewise.
8814 (neon_vzip<mode>_insn): Likewise.
8816 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
8818 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
8819 ((X & C2) << C1): Expand to...
8820 (X {&,^,|} C2 << C1): ...This.
8821 ((X & C2) >> C1): Expand to...
8822 (X {&,^,|} C2 >> C1): ...This.
8824 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
8827 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
8828 Adjust embedded rounding/SAE specifier position.
8829 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
8830 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
8831 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
8832 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
8833 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
8835 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
8837 2015-10-09 Martin Jambor <mjambor@suse.cz>
8839 tree-optimization/67794
8840 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
8841 between types of state,ents but accept original definitions as a
8843 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
8844 iterate over definitions.
8846 2015-10-09 James Norris <jnorris@codesourcery.com>
8848 * config/rs6000/rs6000.c (rs6000_offload_options): New.
8849 (TARGET_OFFLOAD_OPTIONS): New.
8851 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
8854 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
8857 * function.c (expand_function_end): Move return value
8858 promotion past the handling of PARALLELs and CONCATs.
8860 PR rtl-optimization/67828
8861 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
8862 (tree_may_unswitch_on): Don't unswitch on expressions
8863 involving undefined values.
8865 2015-10-09 Richard Biener <rguenther@suse.de>
8867 * genmatch.c (print_operand): Fix formatting.
8868 (dt_node::append_simplify): Warn for multiple simplifiers
8869 that match the same pattern.
8870 * match.pd (log (exp @0)): Remove duplicates.
8872 2015-10-09 Richard Biener <rguenth@suse.de>
8875 * gimple-fold.c (optabs-query.h): Include
8876 (gimple_fold_builtin_memory_op): Allow unaligned stores
8877 when movmisalign_optabs are available.
8879 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8882 * config/arm/arm.md (movmisalign<mode>): New.
8883 * config/arm/iterators.md (HSI): New.
8885 2015-10-09 Richard Biener <rguenther@suse.de>
8887 PR tree-optimization/67891
8888 * gimple-match.h (gimple_simplified_result_is_gimple_val):
8890 (gimple_resimplify1): Declare.
8891 (gimple_resimplify2): Likewise.
8892 (gimple_resimplify3): Likewise.
8893 * gimple-match-head.c (gimple_resimplify1): Export.
8894 (gimple_resimplify2): Likewise.
8895 (gimple_resimplify3): Likewise.
8896 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
8897 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8898 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
8899 to avoid creating stmts without VN info.
8901 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
8903 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
8906 2015-10-08 Jeff Law <law@redhat.com>
8908 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
8909 and release_ssa_name in two places.
8910 (gimple_stringop_fixed_value): Similarly.
8912 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
8915 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
8916 unlink_stmt_vdef and release_ssa_name_fn.
8918 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
8921 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
8923 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
8924 SSE register save area to 16 bytes only if the incoming stack
8925 boundary is no less than 16 bytes.
8927 2015-10-08 Jeff Law <law@redhat.com>
8929 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
8930 release_ssa_name. Fix typo in comment.
8932 2015-10-08 Nathan Sidwell <nathan@acm.org>
8934 * config/nvptx/nvptx.h (struct machine_function): Add comment.
8935 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
8936 may return pointer as well as in memory.
8937 (nvptx_output_return): Likewise.
8939 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
8941 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
8942 (fold_builtin_1): Update accordingly. Handle constant arguments here.
8943 * match.pd: Add rules previously handled by fold_builtin_sqrt
8944 and fold_builtin_cbrt.
8946 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
8948 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
8949 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
8950 * fold-const.h (tree_unary_nonnegative_warnv_p)
8951 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8952 (tree_expr_nonnegative_warnv_p): Add depth parameters.
8953 * fold-const.c: Include gimple-fold.h and params.h.
8954 (tree_ssa_name_nonnegative_warnv_p): New function.
8955 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
8956 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8957 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
8958 Add a depth parameter and increment it for recursive calls to
8959 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
8960 to handle SSA names.
8961 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
8962 (gimple_stmt_nonnegative_warnv_p): Declare.
8963 * tree-vrp.c (remove_range_assertions): Remove assert that condition
8964 cannot be proven false.
8965 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
8966 (gimple_stmt_nonnegative_warnv_p): Move to...
8967 * gimple-fold.c: ...here. Add depth parameters and pass them
8968 down to the tree routines. Accept statements that aren't
8969 assignments or calls but just return false for them.
8970 (gimple_val_nonnegative_real_p): Delete.
8971 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
8972 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
8973 Check HONOR_NANs first.
8975 2015-10-08 Martin Jambor <mjambor@suse.cz>
8977 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
8980 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
8982 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
8983 in the tail of outer-loop.
8985 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
8987 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
8990 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
8992 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
8993 "cfghooks.h", add prototypes for introduced new functions.
8994 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
8995 checks on ability of loop unswitching to tree_unswitch_single_loop;
8996 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
8997 on innermost loop check.
8998 (tree_unswitch_single_loop): Add all required checks on ability of
8999 loop unswitching under zero recursive level guard.
9000 (tree_unswitch_outer_loop): New function.
9001 (find_loop_guard): Likewise.
9002 (empty_bb_without_guard_p): Likewise.
9003 (used_outside_loop_p): Likewise.
9004 (get_vop_from_header): Likewise.
9005 (hoist_guard): Likewise.
9006 (check_exit_phi): Likewise.
9008 2015-10-08 Marek Polacek <polacek@redhat.com>
9010 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
9013 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9016 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
9017 create_tmp_var_raw instead of create_tmp_var.
9019 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
9021 * expr.c (store_expr_with_bounds): Handle aggregate moves from
9023 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
9024 to define gimple type system; compare aggregates only by size.
9026 2015-10-07 Jeff Law <law@redhat.com>
9028 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
9029 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
9030 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
9033 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9034 Sebastian Pop <s.pop@samsung.com>
9036 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
9037 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
9038 (generate_isl_schedule): Same.
9039 * graphite-optimize-isl.c (scop_get_domains): Same.
9040 (apply_schedule_map_to_scop): Same.
9041 * graphite-poly.c (print_iteration_domains): Same.
9042 (remove_gbbs_in_scop): Same.
9046 * graphite-poly.h (struct scop): Rename bbs to pbbs.
9048 * graphite-scop-detection.c (compare_bb_depths): Remove.
9049 (graphite_sort_dominated_info): Remove.
9050 (try_generate_gimple_bb): Move out of scop_detection.
9051 (all_non_dominated_preds_marked_p): Remove.
9052 (build_scop_bbs_1): Remove.
9053 (build_scop_bbs): Remove.
9054 (nb_pbbs_in_loops): Do not use SCOP_BBS.
9055 (find_scop_parameters): Same.
9056 (sese_dom_walker): Rename gather_bbs.
9057 (before_dom_children): Call try_generate_gimple_bb and collect gbb
9059 (build_scops): Call gather_bbs.
9060 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
9061 (add_conditions_to_constraints): Same.
9062 (build_scop_iteration_domain): Same.
9063 (build_scop_drs): Same.
9064 (new_pbb_from_pbb): Same.
9065 * sese.c (new_sese_info): Create bbs.
9066 * sese.h (struct sese_info_t): Add bbs.
9068 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
9070 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
9071 encoding in 64-bit mode.
9073 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
9076 * config/i386/i386.c (ix86_option_override_internal): Always use
9077 8-byte minimum stack boundary in 64-bit mode.
9078 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
9079 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
9080 Add a REG_CFA_EXPRESSION note if needed.
9081 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
9082 (ix86_handle_force_align_arg_pointer_attribute): New.
9083 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
9084 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
9085 with ix86_handle_force_align_arg_pointer_attribute.
9086 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
9088 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9089 Sebastian Pop <s.pop@samsung.com>
9091 * graphite-scop-detection.c (parameter_index_in_region): Remove
9092 use of SESE_ADD_PARAMS.
9093 (find_scop_parameters): Same.
9094 * sese.c (new_sese_info): Same.
9095 * sese.h (struct sese_info_t): Remove add_params.
9096 (SESE_ADD_PARAMS): Remove.
9098 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9099 Sebastian Pop <s.pop@samsung.com>
9101 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
9104 (copy_internal_parameters): Same.
9105 (translate_isl_ast_to_gimple): Use an sese_l.
9106 (build_iv_mapping): Same.
9107 * graphite-poly.c (new_sese): Rename new_sese_info.
9108 (free_sese): Rename free_sese_info.
9109 * graphite-poly.h (struct scop): Use an sese_info_p.
9110 (scop_set_region): Same.
9111 * graphite-scop-detection.c (struct sese_l): Moved...
9112 (get_entry_bb): Moved...
9113 (get_exit_bb): Moved...
9114 (parameter_index_in_region_1): Use an sese_info_p.
9115 (parameter_index_in_region): Same.
9116 (scan_tree_for_params): Same.
9117 (find_params_in_bb): Same.
9118 (sese_dom_walker): Use an sese_l.
9119 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
9120 (reduction_phi_p): Same.
9121 (parameter_index_in_region_1): Use an sese_info_p.
9122 (propagate_expr_outside_region): Use an sese_l.
9123 * graphite.c: Replace uses of SCOP_REGION.
9124 * sese.c (sese_record_loop): Use an sese_info_p.
9125 (build_sese_loop_nests): Same.
9126 (sese_build_liveouts_use): Same.
9127 (sese_build_liveouts_bb): Same.
9128 (sese_build_liveouts_bb): Same.
9129 (sese_bad_liveouts_use): Same.
9130 (sese_reset_debug_liveouts_bb): Same.
9131 (sese_build_liveouts): Same.
9132 (new_sese): Renamed new_sese_info.
9133 (free_sese): Renamed free_sese_info.
9134 (set_rename): Use an sese_info_p.
9135 (graphite_copy_stmts_from_block): Same.
9136 (copy_bb_and_scalar_dependences): Same.
9137 (outermost_loop_in_sese_1): Use an sese_l.
9138 (outermost_loop_in_sese): Same.
9139 (if_region_set_false_region): Use an sese_info_p.
9140 (move_sese_in_condition): Same.
9141 (scalar_evolution_in_region): Use an sese_l.
9142 * sese.h (struct sese_l): ... here.
9143 (SESE_ENTRY): Remove.
9144 (SESE_ENTRY_BB): Remove.
9145 (SESE_EXIT): Remove.
9146 (SESE_EXIT_BB): Remove.
9147 (sese_contains_loop): Use an sese_info_p.
9148 (sese_nb_params): Same.
9149 (bb_in_sese_p): Use an sese_l.
9150 (stmt_in_sese_p): Same.
9151 (defined_in_sese_p): Same.
9152 (loop_in_sese_p): Same.
9153 (sese_loop_depth): Same.
9154 (struct ifsese_s): Use an sese_info_p.
9155 (gbb_loop_at_index): Use an sese_l.
9156 (nb_common_loops): Same.
9157 (scev_analyzable_p): Same.
9159 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9161 * config/i386/i386.c (ix86_conditional_register_usage): Use
9162 CALL_USED_REGISTERS_MASK.
9163 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
9165 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9168 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
9169 * configure: Regenerated.
9171 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9174 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
9175 (ix86_set_current_function): This.
9176 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
9178 2015-10-07 Richard Biener <rguenther@suse.de>
9180 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
9181 (vinfo_for_stmt): Adjust.
9182 (set_vinfo_for_stmt): Likewise.
9183 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
9184 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
9185 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
9187 (vect_analyze_loop_1): Remove.
9188 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
9189 inner loop when vectorizing an outer loop by splitting out from ...
9190 (vect_analyze_loop_form): ... here.
9192 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9195 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
9196 Use create_tmp_var_raw instead of create_tmp_var.
9198 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
9200 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
9201 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
9202 * real.c (CACHED_FRACTION): New helper macro.
9203 (dconst_third_ptr): Use it.
9204 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
9205 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
9207 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
9209 2015-10-06 Jeff Law <law@redhat.com>
9211 PR tree-optimization/67816
9212 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
9213 from remove_jump_threads_starting_at. Accept an edge rather than
9215 * tree-ssa-threadupdate.c (removed_edges): New hash table.
9216 (remove_jump_threads_including): Note edges that get removed from
9217 the CFG for later pruning of jump threading paths including them.
9218 (thread_through_all_blocks): Remove paths which include edges that
9220 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
9221 on each outgoing edges when optimizing away a control statement.
9223 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9225 * reorg.c (emit_delay_sequence): Store list of delay slot insns
9226 in a vector instead of rtx_insn_list.
9227 (add_to_delay_list): Likewise.
9228 (delete_from_delay_slot): Likewise.
9229 (optimize_skip): Likewise.
9230 (redirect_with_delay_list_safe_p): Likewise.
9231 (check_annul_list_true_false): Likewise.
9232 (steal_delay_list_from_target): Likewise.
9233 (steal_delay_list_from_fallthrough): Likewise.
9234 (redundant_insn): Likewise.
9235 (fill_simple_delay_slots): Likewise.
9236 (fill_slots_from_thread): Likewise.
9237 (fill_eager_delay_slots): Likewise.
9238 (relax_delay_slots): Likewise.
9240 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
9242 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
9243 For -mgpopt=local, also exclude unintialized common symbols.
9244 * doc/invoke.texi (Nios II Options): Document the change.
9246 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
9248 * config/aarch64/iterators.md (vwcore): Add missing cases for
9251 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9252 Sebastian Pop <s.pop@samsung.com>
9254 * graphite-poly.c (new_scop): Initialize drs.
9255 * graphite-poly.h (struct dr_info): New.
9256 (struct scop): Add drs.
9257 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
9258 (pdr_add_memory_accesses): Same.
9259 (build_poly_dr): Same.
9260 (build_alias_set): Same.
9261 (build_scop_drs): Same.
9262 (build_pbb_drs): Remove.
9263 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
9264 * tree-data-ref.h (data_reference): Remove alias_set.
9266 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9267 Sebastian Pop <s.pop@samsung.com>
9269 * graphite-poly.c (free_data_refs_aux): Remove.
9270 (free_gimple_poly_bb): Do not call free_data_refs_aux.
9271 * graphite-poly.h (struct base_alias_pair): Remove.
9272 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
9273 base_alias_pair and dr->aux.
9274 (build_alias_set): Same.
9275 * tree-data-ref.c (create_data_ref): Initialize alias_set.
9276 * tree-data-ref.h (data_reference): Add alias_set.
9278 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9279 Sebastian Pop <s.pop@samsung.com>
9281 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
9282 Do not set PDR_BASE_OBJECT_SET.
9283 * graphite-poly.h (poly_dr): Same.
9284 (PDR_BASE_OBJECT_SET): Remove.
9285 (new_poly_dr): Update decl.
9286 * graphite-sese-to-poly.c (build_poly_dr): Update call to
9288 (write_alias_graph_to_ascii_dimacs): Remove.
9289 (write_alias_graph_to_ascii_dot): Remove.
9290 (write_alias_graph_to_ascii_ecc): Remove.
9291 (dr_same_base_object_p): Remove.
9292 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
9294 (build_base_obj_set_for_drs): Remove.
9295 (dump_alias_graphs): Remove.
9296 (build_scop_drs): Remove dead code.
9298 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9299 Peter Bergner <bergner@vnet.ibm.com>
9302 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
9303 allow registers, but provide insns for the combiner to create for
9304 loads from memory. Separate VSX code from non-VSX code. For
9305 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
9306 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
9307 so that registers come before memory operations. Drop support from
9308 converting DFmode to TFmode, if the DFmode value is in a GPR
9310 (extenddftf2_fprs): Likewise.
9311 (extenddftf2_internal): Likewise.
9312 (extenddftf2_vsx): Likewise.
9313 (extendsftf2): In the expander, only allow registers, but provide
9314 insns for the combiner to create for stores and loads.
9316 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9318 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
9319 from the decl parameter.
9321 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
9324 * gimple-fold.c (gimple_fold_builtin): Add break after
9325 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
9327 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
9329 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
9330 to scop->isl_context.
9332 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
9334 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
9335 (output_probe_stack_range): Rotate the loop and simplify.
9336 (thumb1_expand_prologue): Tweak sorry message.
9337 * config/arm/arm.md (probe_stack): Use bare string.
9339 2015-10-06 Nick Clifton <nickc@redhat.com>
9341 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
9343 2015-10-06 Nick Clifton <nickc@redhat.com>
9345 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
9346 (ATTR_PERSIST): New constant.
9347 (msp430_data_attr): New function - verifies an attribute that only
9348 applies to variables.
9349 (msp430_attributes): Add noinit and persistent attributes.
9350 (noinit_section): New variable.
9351 (presis_section): New variable.
9352 (TARGET_ASM_INIT_SECTIONS): Define.
9353 (msp430_init_sections): New function - initialises the noinit and
9354 persist section variables.
9355 (msp430_select_section): Add support for noinit and persist
9357 (msp430_section_type_flags): Likewise.
9358 * doc/extend.texi: Document the reent, critical, wakeup, noinit
9359 and persistent attributes.
9361 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9362 Sebastian Pop <s.pop@samsung.com>
9364 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
9365 (no_violations): Remove.
9366 (subtract_commutative_associative_deps): Remove.
9367 (compute_deps): Do not call subtract_commutative_associative_deps.
9368 (transform_is_safe): Remove.
9369 (graphite_legal_transform): Remove.
9370 * graphite-poly.h (graphite_legal_transform): Remove.
9372 2015-10-05 Aditya Kumar <hiraditya@msn.com>
9374 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
9375 which are in this region are passed so gcc_assert and remove redundant
9377 * sese.c (sese_build_liveouts): Pass only those bbs which are not
9379 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
9380 gcc_assert on that and remove unnecessary computation.
9381 (sese_build_liveouts_use): Same.
9383 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9385 * graphite-dependences.c (scop_get_reads): Renamed scop->context
9386 to scop->param_context.
9387 (scop_get_must_writes): Same.
9388 (scop_get_may_writes): Same.
9389 (scop_get_original_schedule): Same.
9390 (scop_get_transformed_schedule): Same.
9391 (subtract_commutative_associative_deps): Same.
9392 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
9393 (generate_isl_context): Same.
9394 (generate_isl_schedule): Same.
9395 (scop_to_isl_ast): Same.
9396 (graphite_regenerate_ast_isl): Same.
9397 * graphite-optimize-isl.c (scop_get_domains): Same.
9398 (optimize_isl): Renamed scop->context to scop->param_context.
9399 * graphite-poly.c (new_poly_bb): Change the type of argument to
9401 (new_scop): Renamed scop->context to scop->param_context.
9403 (print_scop_context): Same.
9404 * graphite-poly.h (new_poly_dr): Change the type of argument from
9405 void* to data_reference_p.
9406 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
9407 (new_poly_bb): Change the type of argument from void* to
9409 (pbb_set_black_box): Same.
9410 (struct scop): Rename context to param_context, ctx to isl_context.
9411 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
9412 Move declarations closer to assignment.
9413 (find_params_in_bb): Same.
9414 (find_scop_parameters): Same.
9415 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
9416 Global to be used for statement IDs.
9417 (isl_id_for_pbb): Use ssa_name_version_typesize.
9418 (simple_copy_phi_p): Move declarations closer to assignment.
9419 (build_pbb_scattering_polyhedrons): Same.
9420 (build_scop_scattering): Same.
9421 (isl_id_for_ssa_name): Same.
9422 (extract_affine_name): Same.
9423 (extract_affine_int): Same.
9424 (extract_affine): Same.
9425 (set_scop_parameter_dim): Use renamed member.
9426 (build_loop_iteration_domains): Same.
9427 (add_param_constraints): Same.
9428 (build_scop_iteration_domain): Same.
9429 (pdr_add_data_dimensions): Same.
9430 (build_poly_dr): Same.
9431 (build_scop_drs): Move declarations closer to assignment.
9432 (analyze_drs_in_stmts): Same.
9433 (insert_out_of_ssa_copy): Same.
9434 (insert_out_of_ssa_copy_on_edge): Same.
9435 (propagate_expr_outside_region): Same.
9436 (rewrite_phi_out_of_ssa): Same.
9437 (rewrite_degenerate_phi): Same.
9438 (rewrite_reductions_out_of_ssa): Same.
9439 (rewrite_cross_bb_scalar_dependence): Same.
9440 (handle_scalar_deps_crossing_scop_limits): Same.
9441 (rewrite_cross_bb_scalar_deps): Same.
9442 * graphite.c (graphite_transform_loops): Use renamed member.
9444 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
9447 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
9448 create_tmp_var_raw instead of create_tmp_var.
9450 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9453 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
9454 Use create_tmp_var_raw instead of create_tmp_var.
9456 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
9459 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
9460 split for upper-bank registers when target does not support
9462 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
9463 split when target does not support AVX512VL.
9465 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
9468 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
9469 Adjust to use create_tmp_var_raw instead of create_tmp_var.
9471 2015-10-06 Nick Clifton <nickc@redhat.com>
9473 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
9476 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9478 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
9479 (case ${target}): Add znver1.
9480 * config/i386/cpuid.h(bit_CLZERO): Define.
9481 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
9482 -march=native recognize znver1 processors.
9483 * config/i386/i386-c.c (ix86_target_macros_internal): Add
9484 znver1, clzero def_and_undef.
9485 * config/i386/i386.c (struct processor_costs znver1_cost): New.
9486 (m_znver1): New definition.
9487 (m_AMD_MULTIPLE): Includes m_znver1.
9488 (processor_target_table): Add znver1 entry.
9489 (ix86_target_string) : Add clzero entry.
9490 (static const char *const cpu_names): Add znver1 entry.
9491 (ix86_option_override_internal): Add znver1 instruction sets.
9492 (PTA_CLZERO) : New definition.
9493 (ix86_option_override_internal): Handle new clzerooption.
9494 (ix86_issue_rate): Add znver1.
9495 (ix86_adjust_cost): Add znver1.
9496 (ia32_multipass_dfa_lookahead): Add znver1.
9497 (has_dispatch): Add znver1.
9498 * config/i386/i386.h (TARGET_znver1): New definition.
9499 (TARGET_CLZERO): Define.
9500 (TARGET_CLZERO_P): Define.
9501 (struct ix86_size_cost): Add TARGET_ZNVER1.
9502 (enum processor_type): Add PROCESSOR_znver1.
9503 * config/i386/i386.md (define_attr "cpu"): Add znver1.
9504 (set_attr znver1_decode): New definitions for znver1.
9505 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
9507 * config/i386/mmx.md (set_attr znver1_decode): New definitions
9509 * config/i386/sse.md (set_attr znver1_decode): Likewise.
9510 * config/i386/x86-tune.def: Add znver1 tunings.
9511 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
9512 * doc/invoke.texi: Add details about znver1
9514 2015-10-06 Richard Biener <rguenther@suse.de>
9516 PR tree-optimization/67859
9517 * tree-ssa-pre.c (create_expression_by_pieces): Properly
9518 discard not inserted stmts.
9520 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
9522 * doc/extend.texi (Template Instantiation): Reorder options and
9523 de-emphasize -frepo.
9524 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
9525 example instead of -frepo.
9527 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
9530 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
9531 use create_tmp_var_raw rather than create_tmp_var.
9533 2015-10-06 Richard Biener <rguenther@suse.de>
9535 * tree-vectorizer.h (vec_info): New base class for...
9536 (_loop_vec_info): ... this and ...
9537 (_bb_vec_info): ... this.
9538 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
9539 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
9540 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
9541 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
9542 vect_destroy_datarefs): Adjust interface to take a vec_info *
9543 rather than both a loop_vec_info and a bb_vec_info argument.
9544 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
9545 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
9546 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
9547 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
9549 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
9550 (destroy_loop_vec_info, vect_analyze_loop_2,
9551 vect_is_simple_reduction_1, get_initial_def_for_induction,
9552 vect_create_epilog_for_reduction, vectorizable_reduction,
9553 vectorizable_live_operation, vect_transform_loop): Adjust.
9554 * tree-vect-patterns.c (type_conversion_p,
9555 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
9556 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
9557 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
9558 check_bool_pattern, vect_recog_bool_pattern,
9559 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
9560 * tree-vect-slp.c (vect_get_and_check_slp_defs,
9561 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
9562 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
9563 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
9564 (new_bb_vec_info): Initialize base classs.
9565 * tree-vect-stmts.c (record_stmt_cost, process_use,
9566 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
9567 vectorizable_mask_load_store, vectorizable_call,
9568 vectorizable_simd_clone_call, vectorizable_conversion,
9569 vectorizable_assignment, vectorizable_shift,
9570 vectorizable_operation, vectorizable_store,
9571 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
9572 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
9573 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
9575 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
9578 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
9579 create_tmp_var_raw rather than create_tmp_var.
9581 2015-10-05 Marek Polacek <polacek@redhat.com>
9583 * tree-ssa-loop-im.c
9584 (move_computations_dom_walker::before_dom_children): Don't set
9585 SSA_NAME_ANTI_RANGE_P.
9586 * tree-ssa-phiopt.c (value_replacement): Likewise.
9588 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9589 Sebastian Pop <s.pop@samsung.com>
9591 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
9593 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9594 Sebastian Pop <s.pop@samsung.com>
9596 * graphite-poly.c (new_gimple_poly_bb): ... here.
9597 (free_data_refs_aux): ... here.
9598 (free_gimple_poly_bb): ... here.
9599 (remove_gbbs_in_scop): ... here.
9600 (new_scop): Call new_sese.
9601 (free_scop): Call remove_gbbs_in_scop and free_sese.
9602 * graphite-poly.h (base_alias_pair): ... here.
9603 (new_gimple_poly_bb): Declare.
9604 (free_gimple_poly_bb): Declare.
9605 * graphite-scop-detection.c (parameter_index_in_region_1):
9606 (parameter_index_in_region): ... here.
9607 (scan_tree_for_params): ... here.
9608 (find_params_in_bb): ... here.
9609 (find_scop_parameters): ... here.
9610 (build_scops): Call find_scop_parameters.
9611 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
9612 (free_scops): Move...
9613 (single_pred_cond_non_loop_exit): Move...
9614 (sese_dom_walker::before_dom_children): Move...
9615 (sese_dom_walker::after_dom_children): Move...
9616 (build_poly_scop): Move...
9617 * graphite-sese-to-poly.h (base_alias_pair): Move...
9618 * graphite.c (free_scops): ... here.
9620 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9621 Sebastian Pop <s.pop@samsung.com>
9623 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
9624 (trivially_empty_bb_p): Move...
9625 (same_close_phi_node): Move...
9626 (new_gimple_poly_bb): Move...
9627 (compare_bb_depths): Move...
9628 (graphite_sort_dominated_info): Move...
9629 (remove_duplicate_close_phi): Move...
9630 (make_close_phi_nodes_unique): Move...
9631 (canonicalize_loop_closed_ssa): Move...
9632 (canonicalize_loop_closed_ssa_form): Move...
9633 (loop_ivs_can_be_represented): Move...
9634 (single_pred_cond_non_loop_exit): Move...
9635 (graphite_can_represent_init): Move...
9636 (graphite_can_represent_scev): Move...
9637 (stmt_has_simple_data_refs_p): Move...
9638 (stmt_has_side_effects): Move...
9639 (graphite_can_represent_stmt): Move...
9640 (scop_detection): ... here.
9641 (sese_dom_walker): ... and here.
9642 (build_scops): Call all moved functions.
9643 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
9644 (all_non_dominated_preds_marked_p): Move...
9645 (build_scop_bbs_1): Move...
9646 (build_scop_bbs): Move...
9647 (set_scop_parameter_dim): Move...
9648 (nb_pbbs_in_loops): Move...
9649 (build_poly_scop): Do not call all the moved functions.
9651 2015-10-05 Martin Jambor <mjambor@suse.cz>
9652 Jan Hubicka <hubicka@ucw.cz>
9654 * ipa-cp.c (ipcp_alignment_lattice): New type.
9655 (ipcp_param_lattices): Use the above to represent alignment.
9656 (ipcp_alignment_lattice::print): New function.
9657 (print_all_lattices): Use it to print alignment information.
9658 (ipcp_alignment_lattice::top_p): New function.
9659 (ipcp_alignment_lattice::bottom_p): Likewise.
9660 (ipcp_alignment_lattice::set_to_bottom): Likewise.
9661 (ipcp_alignment_lattice::meet_with_1): Likewise.
9662 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
9663 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
9664 (initialize_node_lattices): Likewise.
9665 (propagate_alignment_accross_jump_function): Work with the new class
9666 for alignment lattices.
9667 (propagate_constants_accross_call): Pass only the alignment lattice to
9668 propagate_alignment_accross_jump_function.
9669 (ipcp_store_alignment_results): Work with the new class for alignment
9672 2015-10-05 Marek Polacek <polacek@redhat.com>
9674 PR tree-optimization/67821
9675 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
9677 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
9680 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
9682 (mkoffload_cleanup): ... this. Adjust all users.
9683 (maybe_unlink): Look at save_temps and verbose flags instead of
9685 (main): Parse "-save-temps" flag.
9686 (generate_target_descr_file, generate_target_offloadend_file)
9687 (generate_host_descr_file, prepare_target_image): Pass it on.
9688 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
9689 (mkoffload_cleanup): New function.
9690 (maybe_unlink): Look at save_temps and verbose flags instead of
9692 (main): Instead of calling utils_cleanup, register atexit handler
9693 for mkoffload_cleanup.
9694 (main): Parse "-save-temps" flag.
9695 (compile_native, main): Pass it on.
9696 * lto-wrapper.c (compile_offload_image): Likewise.
9698 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9700 * gimple.h (gimple_op_ptr): Require a non const gimple *.
9701 (gimple_assign_lhs_ptr): Likewise.
9702 (gimple_assign_rhs1_ptr): Likewise.
9703 (gimple_assign_rhs2_ptr): Likewise.
9704 (gimple_assign_rhs3_ptr): Likewise.
9705 (gimple_call_lhs_ptr): Likewise.
9706 (gimple_call_fn_ptr): Likewise.
9707 (gimple_call_chain_ptr): Likewise.
9708 (gimple_call_arg_ptr): Likewise.
9709 (gimple_cond_lhs_ptr): Likewise.
9710 (gimple_cond_rhs_ptr): Likewise.
9711 (gimple_switch_index_ptr): Likewise.
9712 (gimple_return_retval_ptr): Likewise.
9714 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9716 * gimple.h (gimple_asm_input_op_ptr): Remove.
9717 (gimple_asm_output_op_ptr): Likewise.
9719 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9721 * gimple.h (gimple_location_ptr): Remove.
9722 * tree-vrp.c (check_all_array_refs): Adjust.
9724 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9726 * tree-ssa-operands.c (build_uses): store tree * instead of
9728 (finalize_ssa_uses): Adjust.
9729 (append_use): Likewise.
9730 (verify_ssa_operands): Likewise.
9732 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9734 * real.h (build_real_truncate): Declare.
9735 * tree.c (build_real_truncate): New function.
9736 (strip_float_extensions): Use it.
9737 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
9738 (fold_builtin_hypot, fold_builtin_pow): Likewise.
9739 * match.pd: Likewise.
9741 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
9742 Jiong Wang <jiong.wang@arm.com>
9744 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
9746 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9748 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
9749 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
9750 (aarch64_print_operand, aarch64_float_const_representable_p)
9751 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
9752 instead of REAL_VALUE_FROM_CONST_DOUBLE.
9753 * config/arc/arc.c (arc_print_operand): Likewise.
9754 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
9755 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
9756 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
9758 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
9759 (consttable_16): Likewise.
9760 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
9761 * config/avr/avr.c (avr_print_operand): Likewise.
9762 * config/bfin/bfin.md: Likewise (in a define_split).
9763 * config/c6x/c6x.md: Likewise (in a define_split).
9764 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
9765 (cr16_print_operand): Likewise.
9766 * config/cris/cris.c (cris_print_operand): Likewise.
9767 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
9768 * config/fr30/fr30.c (fr30_print_operand): Likewise.
9769 (fr30_const_double_is_zero): Likewise.
9770 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
9771 * config/frv/frv.md: Likewise (in a define_split).
9772 * config/frv/predicates.md (int_2word_operand): Likewise.
9773 * config/h8300/h8300.c (h8300_print_operand): Likewise.
9774 * config/i386/i386.c (standard_80387_constant_p): Likewise.
9775 (ix86_print_operand, ix86_split_to_parts): Likewise.
9776 * config/i386/i386.md: Likewise (in a define_split).
9777 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
9778 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
9779 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
9780 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
9781 (print_operand): Likewise.
9782 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
9783 * config/mep/mep.md: Likewise (in define_split).
9784 * config/microblaze/microblaze.c (microblaze_const_double_ok)
9785 (print_operand): Likewise.
9786 * config/mips/mips.md (consttable_float): Likewise.
9787 * config/mmix/mmix.c (mmix_intval): Likewise.
9788 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
9789 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
9790 * config/pa/pa.c (pa_singlemove_string): Likewise.
9791 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
9792 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
9793 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
9794 (output_toc): Likewise.
9795 * config/rs6000/rs6000.md: Likewise (in define_splits).
9796 * config/rx/rx.c (rx_print_operand): Likewise.
9797 * config/s390/s390.c (s390_output_pool_entry): Likewise.
9798 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9799 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
9800 (and also in define_splits).
9801 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
9802 (fp_high_losum_p): Likewise.
9803 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
9804 (*movsf_high): Likewise.
9805 * config/spu/spu.c (const_double_to_hwint): Likewise.
9806 * config/v850/v850.c (const_double_split): Likewise.
9807 * config/vax/vax.c (vax_float_literal): Likewise.
9808 * config/visium/visium.c (visium_expand_copysign): Likewise.
9809 * config/visium/visium.md: Likewise (in define_split).
9810 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9811 * config/xtensa/xtensa.c (print_operand): Likewise.
9812 (xtensa_output_literal): Likewise.
9813 * cprop.c (implicit_set_cond_p): Likewise.
9814 * dwarf2out.c (insert_float): Likewise.
9815 * expmed.c (expand_mult, make_tree): Likewise.
9816 * expr.c (compress_float_constant): Likewise.
9817 * rtlanal.c (split_double): Likewise.
9818 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9819 (simplify_const_unary_operation, simplify_binary_operation_1)
9820 (simplify_const_binary_operation): Likewise.
9821 (simplify_const_relational_operation): Likewise.
9822 * varasm.c (output_constant_pool_2): Likewise.
9824 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9826 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
9827 instead of CONST_DOUBLE_FROM_REAL_VALUE.
9828 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
9829 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
9830 instead of CONST_DOUBLE_FROM_REAL_VALUE.
9831 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
9832 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
9833 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
9834 (ix86_emit_swsqrtsf): Likewise.
9835 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
9836 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
9837 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
9838 * config/pa/pa.c (pa_expand_builtin): Likewise.
9839 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
9840 (rs6000_scale_v2df): Likewise.
9841 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
9842 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
9843 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
9844 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
9845 (vec_ctul): Likewise.
9846 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
9847 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
9848 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
9849 * cse.c (fold_rtx): Likewise.
9850 * emit-rtl.c (immed_double_const): Likewise (in comments).
9851 (init_emit_once): Likewise.
9852 * expr.c (compress_float_constant, expand_expr_real_1)
9853 (const_vector_from_tree): Likewise.
9854 * optabs.c (expand_float, expand_fix): Likewise.
9855 * reg-stack.c (reg_to_stack): Likewise.
9856 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9857 (simplify_const_unary_operation, simplify_binary_operation_1)
9858 (simplify_const_binary_operation, simplify_relational_operation)
9859 (simplify_immed_subreg): Likewise.
9861 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9863 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
9864 * doc/tm.texi: Regenerate.
9865 * real.h (REAL_ARITHMETIC): Delete.
9866 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
9867 (ix86_expand_round_sse4): Use real_arithmetic instead of
9869 * config/i386/sse.md (round<mode>2): Likewise.
9870 * rtl.h (rtx_to_tree_code): Likewise (in comment).
9871 * explow.c (rtx_to_tree_code): Likewise (in comment).
9872 * match.pd: Likewise.
9873 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9874 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9875 (expand_pow_as_sqrts): Likewise.
9876 * tree-pretty-print.c (dump_generic_node): Remove code that
9877 was conditional on REAL_ARITHMETIC being undefined.
9879 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9881 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
9882 * doc/tm.texi: Regenerate.
9883 * real.h (real_less): Declare.
9884 (REAL_VALUES_LESS): Delete.
9885 * real.c (real_less): New function.
9886 (real_compare): Use it.
9887 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
9888 of REAL_VALUES_LESS.
9889 * config/microblaze/microblaze.c (microblaze_const_double_ok):
9891 * fold-const.c (fold_convert_const_int_from_real): Likewise.
9892 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9893 (simplify_const_relational_operation): Likewise.
9894 * tree-call-cdce.c (check_pow): Likewise.
9895 (gen_conditions_for_pow_cst_base): Likewise.
9897 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9899 * real.h (REAL_VALUES_IDENTICAL): Delete.
9900 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
9901 instead of REAL_VALUES_IDENTICAL.
9902 * fold-const.c (operand_equal_p): Likewise.
9903 * ipa-icf.c (sem_variable::equals): Likewise.
9904 * tree-complex.c (some_nonzerop): Likewise.
9905 (expand_complex_multiplication): Likewise.
9906 * tree.c (simple_cst_equal): Likewise.
9907 * varasm.c (compare_constant): Likewise.
9909 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9911 * real.h (real_equal): Declare.
9912 (REAL_VALUES_EQUAL): Delete.
9913 * real.c (real_equal): New function.
9914 (real_compare): Use it.
9915 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
9916 * doc/tm.texi: Regenerate.
9917 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
9918 real_equal instead of REAL_VALUES_EQUAL.
9919 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
9920 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
9921 (fp_const_from_val): Likewise.
9922 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
9923 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
9924 (floating_exact_log2): Likewise.
9925 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9926 * config/vax/vax.c (vax_float_literal): Likewise.
9927 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9928 * cprop.c (implicit_set_cond_p): Likewise.
9929 * expmed.c (expand_mult): Likewise.
9930 * fold-const.c (const_binop): Likewise.
9931 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9932 (simplify_const_binary_operation): Likewise.
9933 (simplify_const_relational_operation): Likewise.
9934 * tree-call-cdce.c (check_pow): Likewise.
9935 (gen_conditions_for_pow_cst_base): Likewise.
9936 * tree-inline.c (estimate_num_insns): Likewise.
9937 * tree-ssa-dom.c (record_equality): Likewise.
9938 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9939 (gimple_expand_builtin_pow): Likewise.
9940 (pass_optimize_widening_mul::execute): Likewise.
9941 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
9942 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
9943 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
9945 2015-10-05 Richard Biener <rguenther@suse.de>
9948 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
9949 consider loop header PHI defs as IVs.
9951 2015-10-05 Richard Biener <rguenther@suse.de>
9953 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
9955 (create_expression_by_pieces): ... here and build GIMPLE
9956 calls directly. Use gimple_build API and avoid force_gimple_operand.
9957 (insert_into_preds_of_block): Simplify.
9958 (do_regular_insertion): Add comment.
9960 2015-10-04 Jason Merrill <jason@redhat.com>
9962 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
9964 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
9966 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
9967 check for general register.
9968 (ix86_emit_save_regs): Ditto.
9969 (ix86_emit_save_regs_using_mov): Ditto.
9970 (ix86_emit_restore_regs_using_pop): Ditto.
9971 (ix86_emit_restore_regs_using_mov): Ditto.
9973 2015-10-03 Marek Polacek <polacek@redhat.com>
9975 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
9976 (insn-dfatab.o): Likewise.
9978 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
9980 * config.gcc (xtensa*-*-uclinux*): New configuration.
9981 * config/xtensa/uclinux.h: New file.
9982 * config/xtensa/uclinux.opt: New file.
9984 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
9986 * doc/cpp.texi (Standard Predefined Macros): Document value of
9987 __cplusplus for C++14.
9989 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
9991 * gcc.c (process_command): Use spec_machine rather than
9992 spec_host_machine to build tooldir_prefix2.
9994 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
9995 Bernd Schmidt <bernds@codesourcery.com>
9997 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
9998 (Token, Stmt): Remove structs.
9999 (decls, vars, fns): Remove variables.
10000 (alloc_comment, append_stmt, is_keyword): Remove macros.
10001 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
10002 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
10003 (parse_init, parse_file): Remove functions.
10004 (read_file): Accept a pointer to a length and store into it.
10005 (process): Don't try to parse the input file, just write it out as
10006 a string, but looking for maps. Also write out the length.
10007 (main): Don't use "-S" to compile PTX code.
10009 2015-10-02 Jeff Law <law@redhat.com>
10011 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
10014 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10017 * config/nvptx/mkoffload.c (main): Scan the argument vector for
10018 -fopenmp, and skip generating an offloading image if specified.
10020 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
10022 * system.h (ROUND_UP): New macro definition.
10023 (ROUND_DOWN): Ditto.
10024 * ggc-page.c (ROUND_UP): Remove local macro definition.
10025 (PAGE_ALIGN): Implement using ROUND_UP macro.
10027 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
10028 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
10030 (ix86_compute_frame_layout): Ditto.
10031 (ix86_expand_prologue): Ditto.
10032 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
10033 to round down values.
10034 (expand_set_or_movmem_via_rep): Ditto.
10036 2015-10-02 Marek Polacek <polacek@redhat.com>
10038 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
10040 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
10042 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
10043 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
10044 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
10045 (free_gimple_bb): Renamed free_gimple_poly_bb.
10046 (try_generate_gimple_bb): Hoist loop invariant code.
10047 (analyze_drs_in_stmts): Same.
10048 (build_scop_drs): Call renamed functions.
10049 (new_pbb_from_pbb): Same.
10050 (scop_ivs_can_be_represented): Delete as functionality now moved to
10051 graphite-scop-detection.c
10052 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
10054 2015-10-02 Aditya Kumar <hiraditya@msn.com>
10056 * graphite-scop-detection.c (stmt_has_side_effects): New function
10057 outlined from stmt_simple_for_scop_p.
10058 (graphite_can_represent_stmt): Same.
10059 (stmt_simple_for_scop_p): Moved code out of this function for better
10062 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10064 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
10066 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
10068 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10070 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
10072 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
10074 PR rtl-optimization/67756
10075 * lra-constraints.c (match_reload): Add a new parameter. Use it
10076 for creating a pseudo with the same value.
10077 (curr_insn_transform): Pass a new argument to match_reload.
10079 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10081 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
10082 (expand_vec_perm_even_odd_1): Handle V64QImode.
10083 (ix86_expand_vec_perm_const_1): Try expansion with
10084 expand_vec_perm_even_odd_trunc as well.
10085 * config/i386/sse.md (VI124_AVX512F): Rename to ...
10086 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
10088 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
10089 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
10090 to V32HI and V16SI.
10091 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
10092 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
10093 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
10094 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
10095 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
10096 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
10098 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10100 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
10101 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
10103 2015-10-02 Jason Merrill <jason@redhat.com>
10106 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
10107 (diagnose_tm_1_op): Also diagnose volatile accesses in
10108 transaction_safe function.
10110 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
10112 * system.h (malloc.h): Don't include obsolete header.
10114 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10116 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
10117 (TLS_SECTION_ASM_FLAG): Delete.
10119 2015-10-02 Marek Polacek <polacek@redhat.com>
10122 * doc/invoke.texi: Document -Wduplicated-cond.
10123 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
10124 (insn-dfatab.o): Likewise.
10125 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
10128 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
10130 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
10133 2015-10-02 Renlin Li <renlin.li@arm.com>
10135 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
10137 2015-10-02 Renlin Li <renlin.li@arm.com>
10140 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
10142 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10144 PR rtl-optimization/67786
10145 PR rtl-optimization/67787
10146 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
10147 it modifies a reg used in the condition calculation.
10149 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
10151 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
10152 alternatives for reads from memory and moves from general-purpose
10154 (*aarch64_combinez_be<mode>): Likewise.
10156 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
10159 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
10160 selectany within this function without need to keep attribute.
10161 (i386_pe_encode_section_info): Remove selectany-code.
10163 2015-10-02 Richard Biener <rguenther@suse.de>
10165 * tree-ssa-sccvn.c (has_VN_INFO): New function.
10166 (free_scc_vn): Use it.
10167 (visit_use): Remove dead code and refactor to use gassign
10168 and use less indentation.
10170 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10174 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
10175 (rs6000_cannot_copy_insn_p): New function.
10176 * config/rs6000/rs6000.md (cannot_copy): New attribute.
10177 (load_toc_v4_PIC_1_normal): Set cannot_copy.
10178 (load_toc_v4_PIC_1_476): Ditto.
10180 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
10182 * graphite-scop-detection.c (struct sese_l): New conversion constructor
10183 so that this type can be pushed into a vec.
10184 (class scop_builder): use sese_l to collect scops.
10185 (get_scops): New getter function.
10186 (remove_intersecting_scops): Use sese_l instead of scops_p.
10187 (intersects): Same.
10190 (remove_subscops): Same.
10191 (build_scops): Add scops to vec<scops_p> once all the scops have been
10194 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
10196 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
10197 Renamed type from gimple_bb_p to gimple_poly_bb_p.
10198 (translate_isl_ast_node_user): Same.
10199 * graphite-poly.c (new_poly_bb): Same.
10200 * graphite-poly.h (gbb_from_bb): Same.
10202 * graphite-sese-to-poly.c (new_gimple_bb):
10203 gimple_bb_p -> gimple_poly_bb_p
10204 (build_scop_scattering): Same.
10205 (find_params_in_bb): Same.
10206 (add_conditions_to_domain): Same.
10207 (sese_dom_walker::before_dom_children): Same.
10208 (analyze_drs_in_stmts): Same.
10209 (new_pbb_from_pbb): Same.
10210 (free_data_refs_aux): New pointer to type base_alias_pair.
10211 * graphite-sese-to-poly.h: Same.
10212 * sese.c (if_region_set_false_region): Fixed Indentation.
10213 (move_sese_in_condition): Same.
10215 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10216 Aditya Kumar <aditya.k7@samsung.com>
10218 PR tree-optimization/66980
10219 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
10220 when data reference analysis has failed.
10222 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10223 Aditya Kumar <aditya.k7@samsung.com>
10225 PR tree-optimization/67754
10226 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
10227 scev analysis on the same loop nest as analyze_drs_in_stmts.
10228 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
10230 (try_generate_gimple_bb): Call outermost_loop_in_sese.
10231 (analyze_drs_in_stmts): Same.
10232 * sese.c (outermost_loop_in_sese): ...here.
10234 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10235 Aditya Kumar <aditya.k7@samsung.com>
10237 PR tree-optimization/67754
10238 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
10239 recursion on the inner loops.
10241 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10243 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
10244 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
10245 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
10246 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
10247 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
10249 2015-10-01 Marek Polacek <polacek@redhat.com>
10252 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
10253 create_tmp_var_raw rather than create_tmp_var.
10255 2015-10-01 Marek Polacek <polacek@redhat.com>
10257 PR tree-optimization/67769
10258 * tree-ssa-phiopt.c (conditional_replacement): Call
10259 reset_flow_sensitive_info_in_bb.
10260 (minmax_replacement): Likewise.
10261 (abs_replacement): Likewise.
10263 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
10265 * builtins.c: Don't include gomp-constants.h.
10266 (fold_builtin_1): Don't fold acc_on_device here.
10267 * gimple-fold.c: Include gomp-constants.h.
10268 (gimple_fold_builtin_acc_on_device): New.
10269 (gimple_fold_builtin): Call it.
10271 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
10273 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
10274 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
10276 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
10278 * config/arm/aarch-common-protos.h
10279 (aarch_accumulator_forwarding): New.
10280 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10281 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
10282 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10283 * config/arm/cortex-a53.md: Rewrite.
10285 2015-10-01 Richard Biener <rguenther@suse.de>
10287 * gimple-match.h (mprts_hook): Declare.
10288 * gimple-match.head.c (mprts_hook): Define.
10289 (maybe_push_res_to_seq): Use new hook.
10290 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10291 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
10292 (vn_ssa_aux::has_constants): Remove.
10293 * tree-ssa-sccvn.c: Include gimple-match.h.
10294 (VN_INFO_GET): Assert we don't re-use SSA names.
10295 (vn_get_expr_for): Remove.
10296 (expr_has_constants): Likewise.
10297 (stmt_has_constants): Likewise.
10298 (simplify_binary_expression): Likewise.
10299 (simplify_unary_expression): Likewise.
10300 (vn_lookup_simplify_result): New hook.
10301 (visit_copy): Adjust.
10302 (visit_reference_op_call): Likewise.
10303 (visit_phi): Likewise.
10304 (visit_use): Likewise.
10305 (process_scc): Likewise.
10306 (init_scc_vn): Likewise.
10307 (visit_reference_op_load): Likewise. Use match-and-simplify and
10308 a gimple seq for inserted expressions.
10309 (try_to_simplify): Remove GENERIC stmt combining code.
10310 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
10311 * tree-ssa-pre.c (eliminate_insert): Adjust.
10312 (eliminate_dom_walker::before_dom_children): Likewise.
10314 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10316 * doc/invoke.texi (Optimization Options): Add
10317 -freorder-blocks-algorithm=.
10318 (Optimize Options) <-O>: Add -freorder-blocks.
10319 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
10320 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
10321 <-freorder-blocks>: Also enabled at levels -O and -Os.
10322 <-freorder-blocks-algorithm=>: Document new option.
10324 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10326 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
10327 with flag_reorder_blocks_algorithm.
10328 * common.opt (freorder-blocks-algorithm=): New flag.
10329 (reorder_blocks_algorithm): New enum.
10330 * flag-types.h (reorder_blocks_algorithm): New enum.
10331 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
10332 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
10334 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10336 * bb-reorder.c: Add intro comment.
10337 (reorder_basic_blocks_software_trace_cache): Print a header to
10339 (edge_order): New function.
10340 (reorder_basic_blocks_simple): New function.
10341 (reorder_basic_blocks): Choose between the STC and the simple
10342 algorithms (always choose the former).
10344 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10346 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
10347 function, factored out from ...
10348 (reorder_basic_blocks): ... here.
10350 2015-10-01 Tom de Vries <tom@codesourcery.com>
10352 * tree-cfg.c (dump_function_to_file): Dump function attributes using
10353 __attribute__(()) string. Move dumping of function attributes to before
10356 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
10359 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
10360 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
10361 based on gold linker version.
10362 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
10363 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
10364 * configure, config.in: Regenerate.
10366 2015-10-01 Alan Modra <amodra@gmail.com>
10368 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
10369 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
10370 (rs6000_output_mi_thunk): Likewise.
10372 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
10374 * config/nvptx/mkoffload.c (process): Change offload data format.
10376 2015-09-30 Jeff Law <law@redhat.com>
10378 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
10379 with constant conditions.
10380 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
10381 (remove_ctrl_stmt_and_useless_edges): No longer static.
10382 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
10383 (remove_ctrl_stmt_and_useless_edges): Likewise.
10385 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
10386 Cesar Philippidis <cesar@codesourcery.com>
10388 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
10389 (TARGET_GOACC_VALIDATE_DIMS): Override.
10390 * target.def (TARGET_GOACC): New target hook prefix.
10391 (validate_dims): New hook.
10392 * targhooks.h (default_goacc_validate_dims): New.
10393 * omp-low.c (oacc_validate_dims): New.
10394 (execute_oacc_device_lower): New.
10395 (default_goacc_validate_dims): New.
10396 (pass_data_oacc_device_lower): New.
10397 (pass_oacc_device_lower): New pass.
10398 (make_pass_oacc_device_lower): New.
10399 * tree-pass.h (make_pass_oacc_device_lower): Declare.
10400 * passes.def (pass_oacc_device_lower): Add it.
10401 * doc/tm.texi: Rebuilt.
10402 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
10403 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
10405 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
10407 PR rtl-optimization/67037
10408 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
10410 2015-09-30 Bernd Schmidt <bernds@redhat.com>
10412 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
10413 * passes.c: Include tree-ssanames.h.
10414 (execute_function_todo): Flush the pending free SSA_NAMEs after
10415 eliminating unreachable basic blocks.
10416 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
10417 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
10418 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
10419 (flush_ssanames_freelist): New function.
10420 (release_ssaname_fn): Put released names on the queue.
10421 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
10422 * tree-ssanames.h (flush_ssanames_freelist): Declare.
10424 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10426 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
10427 (generate_target_descr_file, generate_target_offloadend_file)
10428 (generate_host_descr_file, prepare_target_image): Pass it on.
10429 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
10430 (compile_native, main): Pass it on.
10431 * lto-wrapper.c (compile_offload_image): Likewise.
10433 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10434 Ilya Verbin <ilya.verbin@intel.com>
10435 Andrey Turetskiy <andrey.turetskiy@intel.com>
10437 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
10438 (prepare_target_image, main): Refactor argv building to use
10441 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10443 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
10444 * config/spu/spu.c (spu_expand_atomic_op): New function.
10445 * config/spu/spu.md (AINT): New mode iterator.
10446 (ATOMIC): New code iterator.
10447 (atomic_name, atomic_pred): New code predicates.
10448 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
10449 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
10450 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
10451 "atomic_<atomic_name>_fetch<mode>"): Likewise.
10453 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
10455 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
10457 (scalar_chain::convert_reg): Likewise.
10459 2015-09-30 Richard Biener <rguenther@suse.de>
10461 * builtins.c: Add comment that no new simplifications should
10464 2015-09-30 Marek Polacek <polacek@redhat.com>
10466 PR tree-optimization/67690
10467 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
10468 reset_flow_sensitive_info_in_bb.
10469 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
10470 * tree-ssanames.c: Include "gimple-iterator.h".
10471 (reset_flow_sensitive_info_in_bb): New function.
10472 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
10474 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10476 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
10477 variable, replacing it with...
10478 (offload_abi): ... this new variable. Adjust all users.
10479 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
10481 2015-09-30 Matthias Klose <doko@ubuntu.com>
10483 * configure.ac: Remove extraneous ;;.
10484 * configure: Regenerate.
10486 2015-09-29 James Bowman <james.bowman@ftdichip.com>
10488 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
10489 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
10490 predicate, disallow register for operand 2.
10492 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
10494 * graphite-dependences.c (scop_get_dependences): Moved in down
10495 in order to be visible to its caller.
10496 * graphite-poly.h: Removed compute_deps, and extend_schedule.
10498 2015-09-29 Sebastian Pop <s.pop@samsung.com>
10499 Aditya Kumar <aditya.k7@samsung.com>
10501 PR tree-optimization/67754
10502 * graphite-optimize-isl.c (optimize_isl): Call
10503 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
10505 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
10507 * builtins.c (expand_builtin_acc_on_device): Delete.
10508 (expand_builtin): Don't call it.
10509 (fold_builtin_1): Fold acc_on_device.
10511 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
10513 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
10514 (ix86_nsaved_sseregs): Likewise.
10516 2015-09-29 Jeff Law <law@redhat.com>
10518 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
10519 computation of unused value.
10521 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
10522 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
10523 inline macro expansion.
10525 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
10527 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
10528 (gen_shl_sext): Likewise.
10529 * config/sh/sh.md (divsi3): Likewise.
10530 (imm->ext_dest_operand splitter): Likewise.
10532 2015-09-29 Sebastian Pop <s.pop@samsung.com>
10533 Aditya Kumar <aditya.k7@samsung.com>
10535 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
10536 (nb_data_writes_in_bb): Remove.
10537 (split_pbb): Remove.
10538 (split_reduction_stmt): Remove.
10539 (is_reduction_operation_p): Remove.
10540 (phi_contains_arg): Remove.
10541 (follow_ssa_with_commutative_ops): Remove.
10542 (detect_commutative_reduction_arg): Remove.
10543 (detect_commutative_reduction_assign): Remove.
10544 (follow_inital_value_to_phi): Remove.
10545 (edge_initial_value_for_loop_phi): Remove.
10546 (initial_value_for_loop_phi): Remove.
10547 (used_outside_reduction): Remove.
10548 (detect_commutative_reduction): Remove.
10549 (translate_scalar_reduction_to_array_for_stmt): Remove.
10550 (remove_phi): Remove.
10551 (dr_indices_valid_in_loop): Remove.
10552 (close_phi_written_to_memory): Remove.
10553 (translate_scalar_reduction_to_array): Remove.
10554 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
10555 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
10556 (rewrite_commutative_reductions_out_of_ssa): Remove.
10557 (build_poly_scop): Remove call to
10558 rewrite_commutative_reductions_out_of_ssa.
10560 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
10562 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
10563 Add new insn types for vector load and store pairs.
10564 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
10565 types "neon_ldp{,_q}".
10566 * config/arm/cortex-a57.md (neon_load_c): Add insn types
10568 (neon_store_complex): Add insn types "neon_stp{,_q}".
10569 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
10570 "neon_{ldp,stp}_q".
10572 2015-09-29 Jeff Law <law@redhat.com>
10574 * config/rx/constraints.md (Int08): Fix undefined left shift
10576 (Sint08, Sint16, Sint24): Likewise.
10577 * config/rx/rx.c (rx_get_stack_layout): Likewise.
10579 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
10582 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
10583 left shift behaviour.
10584 * config/msp430/constraints.md ('L' constraint): Similarly.
10585 ('Ys' constraint): Similarly.
10587 2015-09-29 Richard Biener <rguenther@suse.de>
10589 PR tree-optimization/67170
10590 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
10591 the translate function pointer parameter to get the
10592 bool whether to disambiguate only by reference.
10593 (walk_non_aliased_vuses): Likewise.
10594 * tree-ssa-alias.c (maybe_skip_until): Adjust.
10595 (get_continuation_for_phi_1): Likewise.
10596 (get_continuation_for_phi): Likewise.
10597 (walk_non_aliased_vuses): Likewise.
10598 * tree-ssa-sccvn.c (const_parms): New bitmap.
10599 (vn_reference_lookup_3): Adjust for interface change.
10600 Disambiguate parameters pointing to readonly memory.
10601 (free_scc_vn): Free const_parms.
10602 (run_scc_vn): Initialize const_parms from a fn spec attribute.
10604 2015-09-29 Richard Biener <rguenther@suse.de>
10606 PR tree-optimization/67741
10607 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
10608 builtin calls with correct signature.
10610 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
10613 * config/i386/i386.c: Include dbgcnt.h.
10614 (has_non_address_hard_reg): New.
10615 (convertible_comparison_p): New.
10616 (scalar_to_vector_candidate_p): New.
10617 (remove_non_convertible_regs): New.
10618 (scalar_chain): New.
10619 (scalar_chain::scalar_chain): New.
10620 (scalar_chain::~scalar_chain): New.
10621 (scalar_chain::add_to_queue): New.
10622 (scalar_chain::mark_dual_mode_def): New.
10623 (scalar_chain::analyze_register_chain): New.
10624 (scalar_chain::add_insn): New.
10625 (scalar_chain::build): New.
10626 (scalar_chain::compute_convert_gain): New.
10627 (scalar_chain::replace_with_subreg): New.
10628 (scalar_chain::replace_with_subreg_in_insn): New.
10629 (scalar_chain::emit_conversion_insns): New.
10630 (scalar_chain::make_vector_copies): New.
10631 (scalar_chain::convert_reg): New.
10632 (scalar_chain::convert_op): New.
10633 (scalar_chain::convert_insn): New.
10634 (scalar_chain::convert): New.
10635 (convert_scalars_to_vector): New.
10636 (pass_data_stv): New.
10638 (make_pass_stv): New.
10639 (ix86_option_override): Created and register stv pass.
10640 (flag_opts): Add -mstv.
10641 (ix86_option_override_internal): Likewise.
10642 * config/i386/i386.md (SWIM1248x): New.
10643 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
10644 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
10645 (*anddi3_doubleword): New.
10646 (*zext<mode>_doubleword): New.
10647 (*zextsi_doubleword): New.
10648 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
10649 (*<code>di3_doubleword): New.
10650 * config/i386/i386.opt (mstv): New.
10651 * dbgcnt.def (stv_conversion): New.
10653 2015-09-29 Tom de Vries <tom@codesourcery.com>
10655 * tree-cfg.c (dump_function_to_file): Dump function attributes.
10657 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
10660 * config/sh/sh.c (sh_override_options_after_change): New.
10661 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
10662 (sh_option_override): Move align_loops, align_jumps and
10663 align_functions handling into sh_override_options_after_change.
10665 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
10667 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
10668 (nvptx_record_offload_symbol): Record function execution geometry.
10669 * config/nvptx/mkoffload.c (process): Include launch geometry in
10671 * omp-low.c (oacc_launch_pack): New.
10672 (replace_oacc_fn_attrib): New.
10673 (set_oacc_fn_attrib): New.
10674 (get_oacc_fn_attrib): New.
10675 (expand_omp_target): Create keyed varargs for GOACC_parallel call
10677 * omp-low.h (get_oacc_fn_attrib): Declare.
10678 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
10679 (DEF_FUNCTION_TYPE_VAR_11): Delete.
10680 * tree.h (OMP_CLAUSE_EXPR): New.
10681 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
10683 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
10684 Sebastian Pop <s.pop@samsung.com>
10686 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
10688 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
10689 Sebastian Pop <s.pop@samsung.com>
10691 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
10692 * graphite-scop-detection.c (struct sese_l): New type.
10693 (get_entry_bb): API for getting entry bb of SESE.
10694 (get_exit_bb): API for getting exit bb of SESE.
10695 (class debug_printer): New type. Simple printer in debug mode.
10696 (trivially_empty_bb_p): New. Return true when BB is empty or
10697 contains only debug instructions.
10698 (graphite_can_represent_expr): Call scalar_evoution_in_region
10699 instead of analyze_scalar_evolution. Pass in scop instead of only
10701 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
10703 (stmt_simple_for_scop_p): Same.
10704 (harmful_stmt_in_bb): Same.
10705 (graphite_can_represent_loop): Deleted.
10706 (struct scopdet_info): Deleted.
10707 (scopdet_basic_block_info): Deleted.
10708 (build_scops_1): Deleted.
10709 (bb_in_sd_region): Deleted.
10710 (find_single_entry_edge): Deleted.
10711 (find_single_exit_edge): Deleted.
10712 (create_single_entry_edge): Deleted.
10713 (sd_region_without_exit): Deleted.
10714 (create_single_exit_edge): Deleted.
10715 (unmark_exit_edges): Deleted.
10716 (mark_exit_edges): Deleted.
10717 (create_sese_edges): Deleted.
10718 (build_graphite_scops): Deleted.
10719 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
10720 (build_scops): Use the new scop_builder to build scops.
10721 (dot_all_scops_1): Use the new pretty printer. Print loop father
10723 (loop_body_is_valid_scop): New. Return true if loop body is a
10725 (class scop_builder): New. Builds SCoPs for polyhedral
10727 (scop_builder): New constructor.
10728 (static sese_l invalid_sese): sese_l with invalid edges.
10729 (get_sese): Get an sese (from a loop) if possible, invalid_sese
10731 (get_nearest_dom_with_single_entry): Get nearest dominator of a
10732 basic_block with single entry. Return NULL if we get to the
10733 beginning of a function.
10734 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
10735 a basic_block with single exit. Return NULL if we get to the
10736 beginning of a function.
10737 (print_sese): Pretty-print SESE.
10738 (merge_sese): Merge two SESEs if possible and return the new SESE.
10739 (build_scop_depth): Start building the SCoP within a loop nest.
10740 (build_scop_breadth): Start building the SCoP at a single loop
10741 depth. Merge adjacent SESEs if valid.
10742 (can_represent_loop_1): Returns true if Graphite can represent
10743 loop inside SCoP. Helper for can_represent_loop.
10744 (can_represent_loop): Returns true if Graphite can represent LOOP
10745 and all its nested loops in SCoP.
10746 (loop_is_valid_scop): Returns true if LOOP and all its nests
10747 constitute a valid SCoP.
10748 (region_has_one_loop): Returns true of a region has only one loop.
10749 (add_scop): Add SCoP to the list of valid scops. Removes an
10750 already existing scop if it intersects with or subsumed by this one.
10751 (harmful_stmt_in_region): Returns true if SCoP has any statment
10752 which cannot be represented by Graphite.
10753 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
10754 (remove_subscops): Remove any SCoP from the list of already found
10755 SCoPs, if subsumed by S1.
10756 (intersects): Return true if region bounded by SCoPs S1 and S2
10758 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
10759 * graphite.c (print_graphite_scop_statistics):
10760 (print_graphite_statistics): Print SCoP info while debugging.
10761 (graphite_initialize): Early exit in case number of loops in a
10762 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
10763 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
10764 (graphite_finalize):
10765 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
10766 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
10767 (recompute_all_dominators): Recalculate POST_DOMINATORS.
10768 * tree-cfg.c (print_loops): Print the function name while printing
10771 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
10772 Sebastian Pop <s.pop@samsung.com>
10774 PR tree-optimization/67700
10775 * graphite-sese-to-poly.c (parameter_index_in_region): Call
10776 invariant_in_sese_p_rec.
10777 (extract_affine): Same.
10778 (rewrite_cross_bb_scalar_deps): Call update_ssa.
10779 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
10780 * sese.h (invariant_in_sese_p_rec): Declare.
10782 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
10784 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
10786 2015-09-28 Jiong Wang <jiong.wang@arm.com>
10789 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10790 Jiong Wang <jiong.wang@arm.com>
10792 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
10793 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
10794 (REG_CLASS_NAMES): Likewise.
10795 (REG_CLASS_CONTENTS): Likewise.
10796 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
10797 (aarch64_register_move_cost): Likewise.
10798 (aarch64_load_symref_appropriately): Invoke the new added pattern if
10800 * config/aarch64/constraints.md (Uc0): New constraint.
10802 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
10804 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
10806 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
10808 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
10809 SECTION_EXCLUDE in XO mapping class.
10811 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10814 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
10815 and handle ne and eq codes.
10816 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
10817 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
10818 CONST_INT_P. Use reverse_condition.
10819 (sh_split_treg_set_expr): Likewise.
10821 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
10823 * config/arm/types.md (type): Add rotate_imm.
10824 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
10825 ROR immediate case.
10826 (*rorsi3_insn_uxtw): Likewise.
10827 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
10828 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
10829 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
10831 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10833 PR rtl-optimization/67481
10834 * ifcvt.c (contains_ccmode_rtx_p): New function.
10835 (insn_valid_noce_process_p): Use it.
10837 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10839 PR rtl-optimization/67456
10840 PR rtl-optimization/67464
10841 PR rtl-optimization/67465
10842 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
10843 move in the mode of x. Handle combination of complex and simple
10844 block pairs as well as the case when one is empty.
10846 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10848 * doc/gimple.texi: Update references to gimple_statement_base.
10849 * gdbhooks.py: Likewise.
10850 * gimple.h: Likewise.
10852 2015-09-28 Daniel Cederman <cederman@gaisler.com>
10854 * config/sparc/driver-sparc.c: map LEON to leon3
10856 2015-09-28 Daniel Cederman <cederman@gaisler.com>
10858 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
10859 and make it inverse to change default
10860 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
10862 * doc/invoke.texi: Document change of default
10864 2015-09-28 Daniel Cederman <cederman@gaisler.com>
10866 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
10867 true on %f0 for a target without FPU.
10868 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
10870 (untyped_return): Do not load %f0 for a target without FPU.
10872 2015-09-28 Andrew Pinski <apinski@cavium.com>
10874 * config/aarch64/aarch64.md (prefetch):
10875 Change the predicate of operand 0 to register_operand.
10877 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
10879 * config/i386/predicates.md (register_sse4nonimm_operand): New
10881 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
10882 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
10883 Use register_sse4nonimm_operand as operand 0 predicate.
10884 (*vec_extractv8hi_sse2): Remove insn pattern.
10885 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
10886 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
10888 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
10889 Kaz Kojima <kkojima@gcc.gnu.org>
10892 * config/sh/sh-protos.h (sh_lra_p): Declare.
10893 * config/sh/sh.c (sh_lra_p): Make non-static.
10894 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
10895 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
10896 Expand into addsi3_scr if operands[2] if needed.
10897 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
10898 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
10899 (addsi3_scr, *addsi3): New insn_and_split patterns.
10901 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
10903 PR rtl-optimization/64164
10904 PR tree-optimization/67312
10905 PR middle-end/67340
10906 PR middle-end/67490
10908 * cfgexpand.c (parm_in_stack_slot_p): Remove.
10909 (ssa_default_def_partition): Remove.
10910 (get_rtl_for_parm_ssa_default_def): Remove.
10911 (set_rtl): Check that RTL assignments match expectations.
10912 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
10913 default def location for params and results. Record SSA names
10914 or types in REG and MEM attrs, respectively.
10915 (set_parm_rtl): New.
10916 (expand_one_ssa_partition): Drop logic that assigned MEMs with
10917 unassigned addresses.
10918 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
10919 deferred stack alloc vars.
10920 (expand_used_vars): Skip partitions holding parm default defs.
10921 Move adjust_one_expanded_partition_var loop...
10922 (pass_expand::execute): ... here. Drop redundant assert.
10923 Adjust comments before the final loop over all ssa names.
10924 Require assigned rtl of parms and results to match exactly.
10925 Reset its attributes to match them, not any other variables in
10926 the same partition.
10927 (expand_debug_expr): Use entry value for PARM's default defs
10928 only iff they have zero nondebug uses.
10929 * cfgexpand.h (parm_in_stack_slot_p): Remove.
10930 (get_rtl_for_parm_ssa_default_def): Remove.
10931 (set_parm_rtl): Declare.
10932 * doc/invoke.texi: Improve wording.
10933 * explow.c (promote_decl_mode): Fix promote_function_mode for
10934 result decls not by reference.
10935 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
10936 bypass TYPE_MODE to get the actual vector mode.
10937 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
10938 2015-08-19's changes as follows. Drop include of
10939 basic-block.h and df.h.
10940 (rtl_for_parm): Remove.
10941 (maybe_reset_rtl_for_parm): Remove.
10942 (parm_in_unassigned_mem_p): Remove.
10943 (use_register_for_decl): Add logic for RESULT_DECLs matching
10944 assign_parms' behavior.
10945 (split_complex_args): Revert.
10946 (assign_parms_augmented_arg_list): Revert. Add comment
10947 referencing the logic above.
10948 (assign_parm_adjust_stack_rtl): Revert.
10949 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
10950 of SET_DECL_RTL. Set up a REG if the parm demands so.
10951 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
10952 calls into a single set_parm_rtl. Set up a temporary RTL
10953 temporarily for expand_assignment.
10954 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
10955 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
10956 (assign_bounds): Revert.
10957 (assign_parms): Revert. Use set_parm_rtl.
10958 (allocate_struct_function): Relayout result and parms of
10959 non-abstruct functions.
10960 (expand_function_start): Revert. Use set_parm_rtl. If the
10961 result is not a hard reg, create a pseudo from the promoted
10962 mode of the default def. Promote static chain mode.
10963 * tree-outof-ssa.c (remove_ssa_form): Drop unused
10964 partition_has_default_def. Set up
10965 partitions_for_parm_default_defs.
10966 (finish_out_of_ssa): Remove partition_has_default_def.
10967 Release partitions_for_parm_default_defs.
10968 * tree-outof-ssa.h (struct ssaexpand): Remove
10969 partition_has_default_def. Add
10970 partitions_for_parm_default_defs.
10971 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
10973 (build_ssa_conflict_graph): Fix conflict-detection of default
10974 defs of even unused default defs of params and results.
10975 (for_all_parms): New.
10976 (create_default_def): New.
10977 (register_default_def): New.
10978 (coalesce_with_default): New.
10979 (create_outofssa_var_map): Create default defs for all parms
10980 and results, and register their partitions. Add GIMPLE_RETURN
10981 operands as coalesce candidates with results. Add default
10982 defs of each parm or result as coalesce candidates with its
10983 other defs. Mark each result def, and each default def of
10984 parms, as used_in_copy.
10985 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
10986 with the ssa names, even anonymous ones. Drop
10987 parm_in_stack_slot_p calls. Require same signedness and
10989 (coalesce_ssa_name): Add coalesce candidates for all defs of
10990 each parm and result, even unused ones.
10991 (parm_default_def_partition_arg): New type.
10992 (set_parm_default_def_partition): New.
10993 (get_parm_default_def_partitions): New.
10994 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
10995 * tree-ssa-live.c (partition_view_init): Regard unused defs of
10996 parms and results as used.
10997 (verify_live_on_entry): Don't error out just because they're
11000 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
11002 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11003 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
11004 (output_fde): Don't output length for debug_frame on AIX.
11005 (output_call_frame_info): Don't output length for debug_frame on AIX.
11006 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
11007 HAVE_XCOFF_DWARF_EXTRAS.
11008 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
11009 HAVE_XCOFF_DWARF_EXTRAS.
11010 (output_compilation_unit_header): Don't output length on AIX.
11011 (output_pubnames): Don't output length on AIX.
11012 (output_aranges): Delete argument. Compute length locally. Don't
11013 output length on AIX.
11014 (output_line_info): Don't output length on AIX.
11015 (dwarf2out_finish): Don't compute aranges_length.
11016 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11017 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
11018 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
11019 symbol decoration for AIX.
11020 (rs6000_xcoff_debug_unwind_info): New.
11021 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
11023 (rs6000_xcoff_declare_function_name): Emit different
11024 .function pseudo-op when DWARF2_DEBUG. Don't call
11025 xcoffout_declare_function for DWARF2_DEBUG.
11026 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
11028 * config/rs6000/aix71.h: New.
11029 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
11031 * configure: Regenerate.
11032 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
11035 2015-09-26 Jeff Law <law@redhat.com>
11037 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
11039 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
11042 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
11045 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
11046 undefined behaviour.
11048 * config/cris/cris.md (asrandb): Fix left shift undefined
11050 (asrandw): Likewise.
11052 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
11055 * lra-constarints.c (match_reload): Check presence of the input pseudo
11056 in the output operand.
11058 2015-09-25 Tobias Burnus <burnus@net-b.de>
11060 * doc/invoke.texi (-fsanitize): Minor wording tweak.
11062 2015-09-25 Tobias Burnus <burnus@net-b.de>
11064 * doc/invoke.texi (-fsanitize): Update URLs.
11066 2015-09-25 Teresa Johnson <tejohnson@google.com>
11068 * opts.c (finish_options): Unset -freorder-blocks-and-partition
11069 if not using profile.
11071 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
11073 PR pretty-print/67567
11074 * pretty-print.c (pp_string): Add gcc_checking_assert.
11075 * pretty-print.h (output_buffer_append_r): Likewise.
11077 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11080 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
11081 addr2 individually. Don't emit logical or insn if one is known to
11082 be aligned approriately.
11083 (sh_expand_cmpnstr): Likewise.
11085 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
11087 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
11088 __builtin_aarch64_fp[sc]r arguments into a register.
11090 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
11092 * config.gcc (x86_archs): Replace lakemount with lakemont.
11093 (with_cpu): Likewise.
11094 (with_arch): Likewise.
11095 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11096 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
11097 __tune_lakemount__ with __tune_lakemont__.
11098 * config/i386/i386.c (lakemount_cost): Renamed to ...
11099 (lakemont_cost): This.
11100 (m_LAKEMOUNT): Renamed to ...
11101 (m_LAKEMONT): This.
11102 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
11103 (processor_target_table): Replace "lakemount" with "lakemont".
11104 (processor_alias_table): Likewise.
11105 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
11106 PROCESSOR_LAKEMONT.
11107 (ix86_adjust_cost): Likewise.
11108 (ia32_multipass_dfa_lookahead): Likewise.
11109 * config/i386/i386.h (processor_type): Likewise.
11110 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
11111 * doc/invoke.texi: Replace lakemount with lakemont. Replace
11112 Lakemount with Lakemont.
11114 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
11116 * config.gcc (x86_archs): Replace iamcu with lakemount.
11117 (with_cpu): Likewise.
11118 (with_arch): Likewise.
11119 * doc/invoke.texi: Likewise.
11120 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11121 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
11122 __tune_iamcu__ with __tune_lakemount__.
11123 * config/i386/i386.c (iamcu_cost): Renamed to ...
11124 (lakemount_cost): This.
11125 (m_IAMCU): Renamed to ...
11126 (m_LAKEMOUNT): This.
11127 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
11128 (processor_target_table): Replace "iamcu" with "lakemount".
11129 (processor_alias_table): Likewise.
11130 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
11131 PROCESSOR_LAKEMOUNT.
11132 (ix86_adjust_cost): Likewise.
11133 (ia32_multipass_dfa_lookahead): Likewise.
11134 * config/i386/i386.h (processor_type): Likewise.
11135 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
11137 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
11139 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
11140 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
11142 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
11143 (pa_expand_compare_and_swap_loop): New.
11144 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
11145 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
11146 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
11147 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
11148 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
11151 2015-09-24 Michael Collison <michael.collison@linaro.org>
11154 * read-md.c (read_name): Allow mode iterators inside angle
11155 brackets in rtl expressions.
11157 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
11160 * ira-color.c (update_allocno_cost): Add parameter.
11161 (update_costs_from_allocno): Decrease conflict cost. Pass the new
11164 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11167 * opts-common.c (prune_options): Discard all -fdiagnostics-color
11168 but the last one, which is moved to the front to be processed
11170 * opts.c (enable_warning_as_error): Reject options that do not
11173 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11175 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
11177 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11179 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
11180 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
11181 (aarch64_cannot_force_const_mem): Likewise.
11182 (aarch64_classify_address): Likewise.
11183 (aarch64_classify_symbolic_expression): Likewise.
11184 (aarch64_print_operand): Likewise.
11185 (aarch64_classify_symbol): Likewise.
11186 (aarch64_mov_operand_p): Likewise.
11187 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
11188 (aarch64_mov_operand): Likewise.
11190 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
11192 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
11193 for info->spe_gp_size.
11195 2015-09-24 Richard Biener <rguenther@suse.de>
11198 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
11201 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
11203 * tree-object-size.c (plus_stmt_object_size)
11204 (cond_expr_object_size): Change the formal parameters from gimple
11206 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
11207 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
11208 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
11210 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11212 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
11213 Check for ld -type pie on Solaris 11.x and 12.
11214 * configure: Regenerate.
11215 * config.in: Regenerate.
11217 * gcc.c (LD_PIE_SPEC): Allow redefinition.
11219 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
11220 (STARTFILE_SPEC): Use it.
11221 (ENDFILE_CRTEND_SPEC): Define.
11222 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
11223 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
11224 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
11225 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
11226 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
11227 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
11228 (ENDFILE_ARCH_SPEC): Define.
11229 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
11231 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11233 * configure.ac (gcc_cv_solaris_crts): New test.
11234 * configure. Regenerate.
11235 * config.in: Regenerate.
11236 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
11237 HAVE_SOLARIS_CRTS variant.
11239 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11241 * tree-inline.h (count_insns_seq): Delete prototype.
11242 (estimate_num_insns_seq): Define prototype.
11243 * tree-inline.c (count_insns_seq): Delete.
11244 (estimate_num_insns_seq): Remove static qualifier.
11245 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
11246 with estimate_num_insns_seq.
11248 2015-09-24 Richard Biener <rguenther@suse.de>
11250 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
11252 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
11253 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
11255 (ao_ref_init_from_vn_reference): Record clique and base in the
11257 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
11259 2015-09-24 Richard Biener <rguenther@suse.de>
11261 PR tree-optimization/48885
11262 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
11263 as not including any restrict tags from other pointers.
11265 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
11267 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
11268 character when appending to offload_targets.
11270 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
11271 offload targets by commas, not colons.
11272 * config.in: Regenerate.
11273 * configure: Likewise.
11274 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
11275 instead of setting up the default offload targets here...
11276 (process_command): ..., do it here.
11278 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
11279 targets are separated by commas.
11280 * config.h.in: Regenerate.
11282 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
11283 Nathan Sidwell <nathan@codesourcery.com>
11285 * omp-low.h (omp_reduction_init_op): Declare.
11286 * omp-low.c (omp_reduction_init_op): New, broken out of ...
11287 (omp_reduction_init): ... here. Call it.
11288 * tree-parloops.c (initialize_reductions): Use
11289 omp_reduction_init_op.
11291 2015-09-23 Richard Biener <rguenther@suse.de>
11293 PR middle-end/67662
11294 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
11295 undefined overflow unless they will cancel out.
11297 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
11299 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
11302 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
11305 * opts.h (write_langs): Declare.
11306 * opts-global.c (write_langs): Make it extern.
11308 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
11311 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
11312 overlapping regs when matching the pattern.
11314 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
11316 * config/aarch64/aarch64-simd.md
11317 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
11318 (aarch64_float_truncate_hi_v4sf_le): New.
11319 (aarch64_float_truncate_hi_v4sf_be): Likewise.
11321 2015-09-23 Richard Biener <rguenther@suse.de>
11323 * tree-ssa-structalias.c (intra_create_variable_infos): Build
11324 representatives for all restrict qualified pointer destinations.
11326 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
11328 * config/i386/i386.md (define_code_attr mshift): New.
11329 (define_mode_iterator SWI1248_AVX512BW): Rename ...
11330 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
11332 (define_insn "*k<logic><mode>"): Use new iterator name.
11333 (define_insn "*<mshift><mode>3"): New.
11335 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
11337 PR middle-end/67649
11338 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
11339 mark the block as accessible.
11341 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
11343 * function.c (thread_prologue_and_epilogue_insns): Delete
11344 orig_entry_edge argument to try_shrink_wrapping.
11345 * shrink-wrap.c (can_get_prologue): New function.
11346 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
11347 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
11348 can_get_prologue where needed. Remove code that finds a single
11349 edge for the prologue. Remove code that tests if any reg clobbered
11350 by the prologue is live on the prologue edge. Remove code that finds
11351 the new prologue edge after duplicating blocks. Make a new prologue
11353 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
11355 2015-09-22 Jeff Law <law@redhat.com>
11357 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
11360 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
11362 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
11363 -Wtemplates, -Wnamespaces): Document.
11365 2015-09-22 Tom de Vries <tom@codesourcery.com>
11367 PR tree-optimization/67671
11368 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
11369 pointer references as restrict.
11371 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
11373 * config/nios2/nios2.c (nios2_legitimize_address): When handling
11374 'reg + reloc' cases, allow first operand to be non-REG, and use
11375 force_reg() to enforce address pattern.
11377 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
11380 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
11381 (define_mode_iterator VI12_AVX_AVX512F): New.
11382 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
11383 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
11384 (define_insn "*<code><mode>3"): ... Into new pattern using
11385 VI12_AVX_AVX512F iterators without masking.
11387 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
11389 * config.gcc: Support "skylake-avx512".
11390 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11391 PROCESSOR_SKYLAKE_AVX512.
11392 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
11393 (processor_target_table): Add "skylake-avx512".
11394 (PTA_SKYLAKE_AVX512): Define.
11395 (ix86_option_override_internal): Add "skylake_avx512".
11396 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
11397 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
11398 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
11399 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
11400 * doc/invoke.texi (skylake-avx512): New.
11402 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
11404 * config/i386/i386.md (define_insn "kunpckhi"): Fix
11405 operand in pattern.
11406 (define_insn "kunpcksi"): Ditto.
11407 (define_insn "kunpckdi"): Ditto.
11409 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
11411 * config/i386/i386.md (define_split not/xor SWI1248x): Use
11412 iterator instead of fixed modes.
11414 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11416 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11417 Adjust declaration.
11418 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
11419 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
11420 out_result. Update to support update-fetch operations.
11421 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
11422 Adjust for change to aarch64_gen_atomic_ldop.
11423 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
11424 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
11425 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
11426 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
11427 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
11429 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11431 * config/aarch64/aarch64-protos.h
11432 (aarch64_atomic_ldop_supported_p): Declare.
11433 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
11434 (enum aarch64_atomic_load_op_code): New.
11435 (aarch64_emit_atomic_load_op): New.
11436 (aarch64_gen_atomic_ldop): Update to support load-operate
11438 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
11440 (aarch64_atomic_<atomic_optab><mode>): New.
11441 (aarch64_atomic_<atomic_optab><mode>_lse): New.
11442 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
11443 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
11444 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
11446 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11448 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
11449 (UNSPECV_ATOMIC_LDOP_OR): New.
11450 (UNSPECV_ATOMIC_LDOP_BIC): New.
11451 (UNSPECV_ATOMIC_LDOP_XOR): New.
11452 (UNSPECV_ATOMIC_LDOP_PLUS): New.
11453 (ATOMIC_LDOP): New.
11454 (atomic_ldop): New.
11455 (aarch64_atomic_load<atomic_ldop><mode>): New.
11457 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11459 * config/aarch64/aarch64.md
11460 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
11463 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11465 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11467 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
11468 (aarch64_gen_atomic_ldop): New.
11469 (aarch64_split_atomic_op): Fix whitespace and add a comment.
11470 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
11471 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
11472 (atomic_exchange<mode>): Replace with an expander.
11473 (aarch64_atomic_exchange<mode>): New.
11474 (aarch64_atomic_exchange<mode>_lse): New.
11475 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
11476 (aarch64_atomic_swp<mode>): New.
11478 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
11480 * tree-inline.c (expand_call_inline): Use inform for extra note.
11481 Do not give a note with UNKNOWN_LOCATION.
11482 Replace input_location with gimple_location (stmt).
11483 Use true/false instead of TRUE/FALSE.
11485 2015-09-22 Tom de Vries <tom@codesourcery.com>
11487 PR tree-optimization/67666
11488 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
11489 with single field non-conservative.
11491 2015-09-21 David S. Miller <davem@davemloft.net>
11495 2015-09-11 David S. Miller <davem@davemloft.net>
11497 * config/sparc/constraints.md: Make "U" constraint a real register
11499 * config/sparc/sparc.c (TARGET_LRA_P): Define.
11500 (D_MODES, DF_MODES): Add missing cast.
11501 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
11502 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
11503 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
11505 * config/sparc/sparc.h (PROMOTE_MODE): Define.
11506 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
11507 provide these insn when flag_pic.
11509 2015-09-17 David S. Miller <davem@davemloft.net>
11511 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
11513 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
11515 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11516 (HARD_REGNO_CALLER_SAVE_MODE): Define.
11517 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
11518 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
11519 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
11520 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
11521 provide when flag_pic.
11523 2015-09-21 Jeff Law <law@redhat.com>
11525 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
11528 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11530 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
11532 2015-09-21 Richard Biener <rguenther@suse.de>
11534 * passes.c (rest_of_decl_compilation): Do not call
11535 dwarf2out_early_global_decl for aliases.
11537 2015-09-21 Richard Biener <rguenther@suse.de>
11540 * dwarf2out.c (add_location_or_const_value_attribute): Remove
11541 attribute parameter. Early exit if either DW_AT_const_value
11542 or DW_AT_location are present already.
11543 (gen_variable_die): Adjust caller.
11544 (dwarf2out_late_global_decl): Likewise.
11546 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
11549 * config/sh/sh.c (sh_remove_overlapping_post_inc,
11550 sh_peephole_emit_move_insn): Add new functions.
11551 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
11552 sh_peephole_emit_move_insn): Declere them.
11553 * config/sh/sh.md: Use them in various peephole2 patterns.
11555 2015-09-21 Richard Biener <rguenther@suse.de>
11557 PR middle-end/67651
11558 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
11559 address with -fno-delete-null-pointer-checks.
11561 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
11563 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
11564 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
11565 (reduc_uplus_v16qi): Remove.
11567 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
11568 (reduc_<VEC_reduc_name>_v2df): Remove.
11569 (reduc_<VEC_reduc_name>_v4sf): Remove.
11570 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
11572 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
11573 gen_ function by removing * prefix.
11574 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
11576 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
11578 PR middle-end/60832
11579 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
11580 Print i_bound without converting it to a tree.
11582 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
11584 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
11585 operands[4] operands[5] swap with std::swap, removed tmp variable.
11586 (arm_evpc_neon_vzip): Replaced in0/in1 and
11587 out0/out1 swaps with std::swap, removed x variable.
11588 (arm_evpc_neon_vtrn): Replaced in0/int1 and
11589 out0/out1 swaos with std::swap, removed x variable.
11590 (arm_expand_vec_perm_const_1): Replaced
11591 d->op0/d->op1 swap with std::swap, removed x variable.
11592 (arm_evpc_neon_vuzp): Replaced in0/in1 and
11593 out0/out1 swaps with std::swap, removed x variable.
11595 2015-09-21 Jonathan Yong <10walls@gmail.com>
11597 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
11598 sysroot/usr/lib/32api for additional win32 libraries,
11599 fixes failing Cygwin bootstrapping.
11601 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
11603 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
11605 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
11608 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
11609 (*mov_t_msb_neg): Rewrite negc pattern.
11611 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11613 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
11614 immediate generation code.
11616 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11618 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
11619 redundant immediate generation code.
11621 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11623 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
11624 (AARCH64_NUM_BITMASKS): Remove.
11625 (aarch64_bitmasks_cmp): Remove.
11626 (aarch64_build_bitmask_table): Remove.
11628 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11630 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
11631 slow immediate matching loops with a faster algorithm.
11633 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11635 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
11638 2015-09-20 Jeff Law <law@redhat.com>
11640 PR tree-optimization/47679
11641 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
11642 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
11643 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
11644 (thread_through_normal_block): Use record_temporary_equivalences.
11646 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
11648 * coretypes.h (gimple): Change typedef to be a forward declaration.
11649 * gimple.h (gimple_statement_base): rename to gimple.
11650 * (all functions and types using gimple): Adjust.
11651 * *.[ch]: Likewise.
11653 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
11654 David Edelsohn <dje.gcc@gmail.com>
11656 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
11657 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11658 (EH_FRAME_THROUGH_COLLECT2): Define.
11659 (EH_TABLES_CAN_BE_READ_ONLY): Define.
11660 (ASM_OUTPUT_DWARF_PCREL): Define.
11661 (ASM_OUTPUT_DWARF_DATAREL): Define.
11663 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
11665 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
11668 2015-09-18 Jeff Law <law@redhat.com>
11670 PR tree-optimization/47679
11671 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
11673 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
11674 object. Update constructor.
11675 (pass_dominator::execute): Corresponding chagnes to declaration
11676 and initialization of avail_exprs_stack. Update constructor call
11677 for dom_opt_dom_walker object.
11678 (lookup_avail_expr, record_cond): Accept additional argument. Pass
11679 it down to children as needed.
11680 (record_equivalences_from_incoming_edge): Likewise.
11681 (eliminate_redundant_computations): Likewise.
11682 (record_equivalences_from_stmt): Likewise.
11683 (simplify_stmt_for_jump_threading): Likewise.
11684 (record_temporary_equivalences): Likewise.
11685 (optimize_stmt): Likewise.
11686 (dom_opt_dom_walker::thread_across_edge): Update access to
11687 avail_exprs_stack object and pass it to children as needed.
11688 (dom_opt_dom_walker::before_dom_children): Similarly.
11689 (dom_opt_dom_walker::after_dom_children): Similarly.
11690 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
11691 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
11692 Add avail_expr_stack argument. Pass it to children as needed.
11693 (dummy_simplify): Likewise.
11694 (simplify_control_stmt_condition): Likewise.
11695 (thread_around_empty_blocks): Likewise.
11696 (thread_through_normal_block): Likewise.
11697 (thread_across_edge): Likewise.
11698 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11699 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
11701 PR tree-optimization/47679
11702 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
11704 (dom_opt_dom_walker): New private member holding the const_and_copies
11705 object. Update constructor.
11706 (pass_dominator::execute): Corresponding changes to declaration
11707 and initialization of const_and_copies. Update constructor call
11708 for the dom_opt_dom_walker object.
11709 (record_temporary_equivalences): Accept const_and_copies argument
11710 pass it down to children as needed.
11711 (record_equality): Likewise.
11712 (record_equivalences_from_incoming_edge): Likewise.
11713 (cprop_into_successor_phis, optimize_stmt): Likewise.
11714 (eliminate_redundant_computations): Likewise.
11715 (dom_opt_dom_walker::thread_across_edge): Update access to
11716 const_and_copies object and pass it to children as needed.
11717 (dom_opt_dom_walker::before_dom_children): Similarly.
11718 (dom_opt_dom_walker::after_dom_children): Similarly.
11720 PR tree-optimization/47679
11721 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
11722 it into the avail_exprs_stack class.
11723 (pass_dominator::execute): Corresponding changes to declaration
11724 and initialization of avail_exprs. Pass avail_exprs to
11725 dump_dominator_optimization_stats.
11726 (record_cond): Extract avail_exprs from avail_exprs_stack.
11727 (lookup_avail_expr): Similarly.
11728 (htab_staticstics): Remove unnecessary prototype. Move to earlier
11730 (dump_dominator_optimization_stats): Make static and prototype.
11731 Add argument for the hash table to dump.
11732 (debug_dominator_optimization_stats): Remove.
11733 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
11735 (debug_dominator_optimization_stats): Similarly.
11736 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
11737 "void" in prototype for pop_to_marker method. Add accessor method
11738 for the underlying avail_exprs table.
11740 * tree-ssa-threadedge.c: Remove trailing whitespace.
11742 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
11744 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
11746 (pa_ldil_cint_p): Likewise.
11747 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
11748 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
11750 * config/pa/pa.md: Likewise.
11752 2015-09-18 David Malcolm <dmalcolm@redhat.com>
11754 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
11755 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
11756 (diagnostic_show_locus): Likewise.
11757 (diagnostic_print_caret_line): Likewise.
11758 * diagnostic-show-locus.c: New file.
11760 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
11762 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
11763 "back" parameter. Declare label in #if block.
11765 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
11767 PR middle-end/67619
11768 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
11769 the address to a register.
11771 2015-09-18 Jeff Law <law@redhat.com>
11773 PR tree-optimization/47679
11774 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
11775 * tree-ssa-dom.c: Remove unnecessary header includes.
11776 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
11777 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
11778 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
11779 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
11780 (pass_phi_only_cprop::execute): Likewise.
11781 (make_pass_phi_only_cprop): Likewise.
11782 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
11783 uses of file scoped statics by passing the required objects
11784 as parameters wherever needed.
11786 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
11787 David Edelsohn <dje.gcc@gmail.com>
11789 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
11790 EH_FRAME_THROUGH_COLLECT2.
11791 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
11793 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
11794 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
11795 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
11796 * except.c (switch_to_exception_section): Use a read-only section
11797 even if EH_FRAME_SECTION_NAME is undefined.
11798 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
11799 * collect2.c (write_c_file_stat): Provide dbase on AIX.
11800 (scan_prog_file): Don't export __dso_handle nor
11801 __gcc_unwind_dbase.
11802 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11803 (EH_TABLES_CAN_BE_READ_ONLY): Define.
11804 (ASM_OUTPUT_DWARF_PCREL): Define.
11805 (ASM_OUTPUT_DWARF_DATAREL): Define.
11806 (EH_FRAME_THROUGH_COLLECT2): Define.
11807 (EH_FRAME_IN_DATA_SECTION): Delete.
11808 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
11809 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
11811 (rs6000_asm_output_dwarf_datarel): Declare.
11812 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
11813 (rs6000_aix_asm_output_dwarf_datarel): New.
11814 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
11815 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
11816 (EH_FRAME_THROUGH_COLLECT2): Define.
11817 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
11818 (EH_FRAME_THROUGH_COLLECT2): Define.
11819 (EH_TABLES_CAN_BE_READ_ONLY): Define.
11820 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
11821 (EH_FRAME_THROUGH_COLLECT2): New.
11822 (ASM_OUTPUT_DWARF_DATAREL): New.
11823 * doc/tm.texi: Regenerate.
11825 2015-09-18 Richard Biener <rguenther@suse.de>
11827 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
11828 we're in early phase.
11829 (schedule_generic_params_dies_gen): Likewise.
11830 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
11831 work as possible, retaining unhandled cases.
11832 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
11833 clear out generic_type_instances at the end.
11834 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
11835 (dwarf2out_early_finish): ... here. Do most of
11836 gen_remaining_tmpl_value_param_die_attribute here.
11838 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
11840 PR tree-optimization/67283
11841 * tree-sra.c (type_consists_of_records_p): Rename to...
11842 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11843 (completely_scalarize_record): Rename to...
11844 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
11845 (scalarize_elem): New.
11846 (analyze_all_variable_accesses): Follow renamings.
11848 2015-09-18 Richard Biener <rguenther@suse.de>
11850 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
11853 2015-09-18 Richard Biener <rguenther@suse.de>
11855 PR tree-optimization/66142
11856 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
11857 treat MEM[&x] and x the same.
11858 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
11859 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
11860 when we simplified sth.
11861 (vn_reference_maybe_forwprop_address): Likewise.
11862 (valueize_refs_1): When we simplified through
11863 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
11864 set valueized_anything to true.
11865 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
11866 one ref kills the other instead of just a offset-based test.
11867 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
11868 for the operand_equal_p test to compare bases and also compare
11871 2015-09-17 Christian Bruel <christian.bruel@st.com>
11873 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
11875 2015-09-17 Richard Henderson <rth@redhat.com>
11878 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
11879 pointers that encode the alignment of the object.
11881 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
11883 PR rtl-optimization/66790
11884 * df-problems.c (LIVE): Amend documentation.
11886 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
11888 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
11890 (GTFILES): Replace optabs.c with optabs-libfunc.c.
11891 * genopinit.c (main): Add an include guard to insn-opinit.h.
11892 Protect the rtx_code parts with NUM_RTX_CODE.
11893 * optabs.h: Split parts out to...
11894 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
11895 * optabs.c: Split parts out to...
11896 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
11897 * cilk-common.c: Include optabs-query.h rather than optabs.h.
11898 * fold-const.c: Likewise.
11899 * target-globals.c: Likewise.
11900 * tree-if-conv.c: Likewise.
11901 * tree-ssa-forwprop.c: Likewise.
11902 * tree-ssa-loop-prefetch.c: Likewise.
11903 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
11904 Remove unncessary include files.
11905 * tree-ssa-phiopt.c: Likewise.
11906 * tree-ssa-reassoc.c: Likewise.
11907 * tree-switch-conversion.c: Likewise.
11908 * tree-vect-data-refs.c: Likewise.
11909 * tree-vect-generic.c: Likewise.
11910 * tree-vect-loop.c: Likewise.
11911 * tree-vect-patterns.c: Likewise.
11912 * tree-vect-slp.c: Likewise.
11913 * tree-vect-stmts.c: Likewise.
11914 * tree-vrp.c: Likewise.
11915 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
11916 rather than optabs.h.
11917 * expr.c: Include optabs-tree.h.
11918 * function.c: Likewise.
11920 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
11922 PR middle-end/65958
11923 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
11924 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
11925 * config/arm/arm.c: Include common/common-target.h.
11926 (use_return_insn): Return 0 if the static chain register was saved
11927 above a non-APCS frame.
11928 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
11929 (struct scratch_reg): New.
11930 (get_scratch_register_on_entry): New function.
11931 (release_scratch_register_on_entry): Likewise.
11932 (arm_emit_probe_stack_range): Likewise.
11933 (output_probe_stack_range): Likewise.
11934 (arm_expand_prologue): Factor out code dealing with the IP register
11935 for nested function and adjust it for stack checking.
11936 Invoke arm_emit_probe_stack_range if static builtin stack checking
11938 (thumb1_expand_prologue): Sorry out if static builtin stack checking
11940 (arm_expand_epilogue): Add the saved static chain register, if any, to
11941 the amount of pre-pushed registers to pop.
11942 (arm_frame_pointer_required): Return true if static stack checking is
11943 enabled and we want to catch the exception with the EABI unwinder.
11944 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
11945 (UNSPEC_PROBE_STACK_RANGE): Likewise.
11946 * config/arm/arm.md (probe_stack): New insn.
11947 (probe_stack_range): Likewise.
11949 2015-09-17 Richard Biener <rguenther@suse.de>
11951 * genmatch.c (parser::parse_expr): Improve error message
11952 for mis-placed flags.
11954 2015-09-17 Richard Biener <rguenther@suse.de>
11956 * passes.c (rest_of_decl_compilation): Always call early_global_decl
11957 debug hook when we created a varpool node.
11958 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
11959 dwarf2out_early_global_decl, when not just add location or
11960 value attributes to existing DIEs.
11962 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
11964 * config/aarch64/aarch64.md (copysigndf3): New.
11965 (copysignsf3): Likewise.
11967 2015-09-17 David S. Miller <davem@davemloft.net>
11969 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
11970 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
11971 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11972 (HARD_REGNO_CALLER_SAVE_MODE): Define.
11973 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
11974 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
11975 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
11976 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
11977 provide when flag_pic.
11979 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
11981 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
11982 object_allocator change.
11984 2015-09-17 Bin Cheng <bin.cheng@arm.com>
11986 PR tree-optimization/66388
11987 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
11988 (dump_iv): Dump no_overflow information.
11989 (alloc_iv): Initialize new field for struct iv.
11990 (mark_bivs): Count number of no_overflow bivs.
11991 (find_deriving_biv_for_expr, record_biv_for_address_use): New
11993 (idx_find_step): Call new functions above.
11994 (add_candidate_1, add_candidate): New paramter.
11995 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
11996 (get_computation_aff): Simplify convertion of cand for BIV.
11997 (get_computation_cost_at): Step cand's base if necessary.
11999 2015-09-17 Bin Cheng <bin.cheng@arm.com>
12001 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
12003 (tree_simplify_using_condition): Ditto.
12004 (simplify_using_initial_conditions): Ditto.
12005 (loop_exits_before_overflow): Pass new argument to function
12006 simplify_using_initial_conditions. Remove case for type conversions
12008 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
12010 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
12011 in iv base using loop initial conditions.
12013 2015-09-16 Jeff Law <law@redhat.com>
12015 PR tree-optimization/47679
12016 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
12017 (free_all_edge_infos): Use it.
12018 (allocate_edge_info): Free preexisting edge info data.
12019 (pass_dominator::execute): Set up initial edge info structures.
12020 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
12021 thread_across_edge.
12022 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
12023 If non-null, then push/pop markers appropriately.
12024 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12025 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
12026 thread-across_edge.
12028 2015-09-16 James Bowman <james.bowman@ftdichip.com>
12030 * config/ft32/ft32.c: Fix the memory address space predicate.
12032 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
12035 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
12036 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12038 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
12040 * toplev.h (check_global_declaration): Remove declaration.
12041 * toplev.c (check_global_declaration): Move to ...
12042 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
12043 (analyze_functions): Update call.
12045 2015-09-16 David S. Miller <davem@davemloft.net>
12047 * lra-constraints.c (simplify_operand_subreg): Do not assume that
12048 lowpart of a SUBREG has offset zero.
12050 2015-09-16 Jeff Law <law@redhat.com>
12052 PR tree-optimization/47679
12053 * tree-ssa-dom.c (enum expr_kind): Moved from here to
12054 tree-ssa-scopedtables.h.
12055 (struct hashable_expr, class expr_hash_elt): Likewise.
12056 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
12057 Move associated methods into tree-ssa-scopedtables.c.
12058 (avail_expr_hash, initialize_expr_from_cond): Similarly.
12059 (hashable_expr_equal_p, add_expr_commutative): Likewise.
12060 (add_hashable_expr): Likewise.
12061 (record_cond): Delete element directly.
12062 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
12063 private copy ctor and assignment operator methods.
12064 (expr_elt_hasher): Inline trivial methods.
12065 (initialize_expr_from_cond): Prototype.
12066 * tree-ssa-scopedtables.c: Add necessary includes, functions and
12067 methods that were previously in tree-ssa-dom.c. Improve various
12070 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
12072 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
12074 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
12077 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12080 2015-09-16 Richard Biener <rguenther@suse.de>
12082 PR middle-end/67253
12083 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
12084 location of possibly shared trees.
12086 2015-09-16 Richard Biener <rguenther@suse.de>
12088 PR middle-end/67271
12089 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
12091 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
12093 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
12094 offset and size computations instead of HOST_WIDE_INT.
12096 2015-09-16 Richard Biener <rguenther@suse.de>
12098 PR middle-end/67442
12099 * fold-const.c (extract_muldiv_1): Properly extend multiplication
12100 result before builting a tree via wide_int_to_tree.
12102 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
12104 * Makefile.in: Add memory-block.cc
12105 (pool_allocator::initialize): Use fixed block size.
12106 (pool_allocator::release): Use memory_block_pool.
12107 (pool_allocator::allocate): Likewise.
12108 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
12110 * cfg.c (initialize_original_copy_tables): Likewise.
12111 * cselib.c (elt_list_pool, elt_loc_list_pool,
12112 cselib_val_pool): Likewise.
12113 * df-problems.c (df_chain_alloc): Likewise.
12114 * df-scan.c (df_scan_alloc): Likewise.
12115 * dse.c (cse_store_info_pool, rtx_store_info_pool,
12116 read_info_type_pool, insn_info_type_pool, bb_info_pool,
12117 group_info_pool, deferred_change_pool): Likewise.
12118 * et-forest.c (et_nodes, et_occurrences): Likewise.
12119 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
12120 ipcp_agg_lattice_pool): Likewise.
12121 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
12122 * ipa-profile.c (histogram_pool): Likewise.
12123 * ipa-prop.c (ipa_refdesc_pool): Likewise.
12124 * ira-build.c (live_range_pool, allocno_pool, object_pool,
12125 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
12126 * ira-color.c (update_cost_record_pool): Likewise.
12127 * lra-lives.c (lra_live_range_pool): Likewise.
12128 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
12129 * memory-block.cc: New file.
12130 * memory-block.h: New file.
12131 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
12132 * sched-deps.c (sched_deps_init): Likewise.
12133 * sel-sched-ir.c (sched_lists_pool): Likewise.
12134 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
12135 * tree-sra.c (access_pool): Likewise.
12136 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
12137 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
12138 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
12139 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12140 * tree-ssa-strlen.c (strinfo_pool): Likewise.
12141 * tree-ssa-structalias.c (variable_info_pool): Likewise.
12142 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
12143 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
12145 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
12147 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
12149 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
12152 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
12154 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
12155 to pass TLS call argument, according to current ABI.
12156 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
12157 callx0 for TLS call, according to current ABI.
12159 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
12161 * tree-eh.c (lower_try_finally_dup_block): Clear location information
12162 on stack restore statements.
12163 (decide_copy_try_finally): Do not consider a stack restore statement as
12164 coming from sources.
12166 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
12168 * config/alpha/alpha.c (alpha_expand_block_clear): Use
12169 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
12171 2015-09-15 Jeff Law <law@redhat.com>
12173 PR tree-optimization/47679
12174 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
12175 methods and private members.
12176 (avail_exprs_stack): Similarly. Change type of global
12177 from a pair of expr_hash_elt_t to the new class.
12178 (expr_elt_hasher::hash): Corresponding changes.
12179 (expr_elt_hasher::equal): Similarly.
12180 (avail_expr_hash): Similarly.
12181 (pass_dominator::execute): Similarly.
12182 (dom_opt_dom_walker::thread_across_edge): Similarly.
12183 (record_cond): Similarly.
12184 (dom_opt_dom_walker::before_dom_children): Similarly.
12185 (dom_opt_dom_walker::after_dom_children): Similarly.
12186 (lookup_avail_expr): Likewise.
12187 (initialize_hash_element): Now a expr_hash_elt constructor.
12188 (initialize_hash_element_from_expr): Similarly.
12189 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
12190 (free_expr_hash_elt): Call dtor for the element.
12191 (remove_local_expressions_from_table): Now the "pop_to_marker"
12192 method in the available_exprs_stack class.
12193 (avail_expr_stack::record_expr): Method factored out.
12194 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
12196 (hashable_expr_equal_p): Fix formatting.
12198 2015-09-15 David Malcolm <dmalcolm@redhat.com>
12200 * input.h (location_get_source_line): Drop "expanded_location"
12201 param in favor of a file and line number.
12202 * input.c (location_get_source_line): Likewise.
12203 (dump_location_info): Update for change in signature of
12204 location_get_source_line.
12205 * diagnostic.c (diagnostic_print_caret_line): Likewise.
12207 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
12209 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
12210 Bump to 4KB for SJLJ exceptions.
12211 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
12212 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
12213 * doc/tm.texi: Regenerate.
12215 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12217 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
12218 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
12221 2015-09-15 Richard Biener <rguenther@suse.de>
12223 PR tree-optimization/67470
12224 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
12225 structure for PHI hoisting by inserting a forwarder block
12228 2015-09-15 Christian Bruel <christian.bruel@st.com>
12230 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
12231 (arm_option_print): New function.
12233 2015-09-15 Christian Bruel <christian.bruel@st.com>
12236 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
12237 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
12238 Remove flags parameter.
12239 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
12240 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
12241 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
12242 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
12243 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
12244 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
12245 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
12246 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
12248 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12250 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
12252 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
12253 AARCH64_VALID_SIMD_DREG_MODE.
12255 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12257 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
12258 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
12259 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
12260 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
12261 aarch64_ld4_lane<mode>): Combine together, making...
12262 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12263 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12264 aarch64_st4_lane<mode>): Combine together, making...
12265 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12266 * config/aarch64/iterators.md (nregs): Add comment.
12268 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12270 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
12271 Change operand mode from <V_TWO_ELEM> to BLK.
12272 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
12273 (aarch64_vec_store_lanesoi_lane<mode): Likewise
12274 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12275 (aarch64_ld2_lane<mode>): Likewise.
12276 (aarch64_st2_lane<VQ:mode>): Likewise.
12277 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
12279 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12281 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
12282 Change operand mode from <V_FOUR_ELEM> to BLK.
12283 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
12284 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
12285 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12286 (aarch64_ld4_lane<mode>): Likewise.
12287 (aarch64_st4_lane<mode>): Likewise.
12288 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
12290 2015-09-15 Richard Biener <rguenther@suse.de>
12292 PR middle-end/67563
12293 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
12294 transfer EH info from old to new stmt.
12295 (replace_call_with_value): Likewise.
12296 (replace_call_with_call_and_fold): Likewise.
12297 (gimple_fold_builtin_memory_op): Likewise.
12298 (gimple_fold_builtin_memset): Likewise.
12299 (gimple_fold_builtin_stpcpy): Likewise.
12300 (gimple_fold_call): Likewise.
12302 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12304 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
12306 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
12307 (aarch64_simd_intEI_type_node): Likewise.
12308 (aarch64_simd_builtin_std_type): Remove EImode case.
12309 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
12310 * config/aarch64/aarch64-modes.def: Remove EImode.
12312 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12314 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
12315 Change operand mode from <V_THREE_ELEM> to BLK.
12316 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
12317 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
12318 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12319 (aarch64_ld3_lane<mode>): Likewise.
12320 (aarch64_st3_lane<mode>): Likewise.
12321 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
12323 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12325 * config/aarch64/aarch64-simd.md
12326 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
12327 Change all TImode operands to BLKmode.
12328 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
12329 Change all EImode operands to BLKmode.
12330 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
12331 Change all OImode operands to BLKmode.
12333 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
12334 and call set_mem_size.
12335 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
12337 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
12339 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12341 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
12343 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
12345 (vec_store_lanesci_lane<mode>): Rename to...
12346 (aarch64_vec_store_lanesci_lane<mode>): ...this.
12348 (vec_store_lanesxi_lane<mode>): Rename to...
12349 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
12351 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12352 aarch64_st4_lane<mode>): Follow renaming.
12354 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12356 * config/s390/s390.c (s390_const_operand_ok): Add missing
12359 2015-09-15 Richard Biener <rguenther@suse.de>
12362 * lto-streamer.h (lto_location_cache::current_sysp): Properly
12364 * lto-streamer-out.c (clear_line_info): Likewise.
12366 2015-09-15 Richard Biener <rguenther@suse.de>
12368 * doc/match-and-simplify.texi: Fix wording.
12370 2015-09-15 Bin Cheng <bin.cheng@arm.com>
12372 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
12373 unnecessary type conversion in op1.
12375 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12377 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
12378 (dup_block_and_redirect): Delete function.
12379 (can_dup_for_shrink_wrapping): New function.
12380 (fix_fake_fallthrough_edge): New function.
12381 (try_shrink_wrapping): Rewrite function.
12382 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
12384 2015-09-14 Rich Felker <dalias@libc.org>
12386 * configure.ac: Change target pattern for sh TLS support
12387 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
12388 * configure: Regenerate.
12390 2015-09-14 Jeff Law <law@redhat.com>
12392 PR tree-optimization/47679
12393 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
12394 type rather than void *.
12396 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
12399 * diagnostic.c (diagnostic_initialize): Do not set
12400 some_warnings_are_errors.
12401 (diagnostic_finish): Use DK_WERROR count instead.
12402 (diagnostic_report_diagnostic): Do not set
12403 some_warnings_are_errors.
12404 * diagnostic.h (struct diagnostic_context): Remove
12405 some_warnings_are_errors.
12407 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
12409 * config/sparc/predicates.md (const_all_ones_operand): Use
12410 CONSTM1_RTX to simplify definition.
12412 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
12415 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
12418 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
12420 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
12421 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
12422 OPT_fshow_column to handled saved option cases.
12423 (append_compiler_options): Do not skip the above added options.
12425 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12428 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
12429 nopcrelative_literal_loads.
12430 (aarch64_classify_address): Likewise.
12431 (aarch64_constant_pool_reload_icode): Define.
12432 (aarch64_secondary_reload): Handle secondary reloads for
12434 (aarch64_override_options): Handle nopcrelative_literal_loads.
12435 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
12436 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
12438 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
12439 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
12440 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
12442 * doc/invoke.texi (mpc-relative-literal-loads): Document.
12444 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
12446 PR middle-end/67401
12447 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
12448 sync_compare_and_swap_optab libcall to target_oval.
12450 2015-09-14 Marek Polacek <polacek@redhat.com>
12452 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
12454 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
12456 2015-09-11 Mark Wielaard <mjw@redhat.com>
12459 * toplev.c (check_global_declaration): Check and use
12460 warn_unused_const_variable.
12461 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
12462 (-Wunused-variable): Remove non-constant. For C implies
12463 -Wunused-const-variable.
12464 (-Wunused-const-variable): New.
12466 2015-09-14 Richard Biener <rguenther@suse.de>
12468 * doc/match-and-simplify.texi: Update for changed syntax
12469 of inner ifs and the new switch expression.
12471 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
12473 * config/i386/haswell.md: New file describing Haswell pipeline.
12474 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
12475 haswell-like processors.
12476 (ix86_reassociation_width): Increase reassociation width for 64-bit
12477 Haswell processor family.
12478 * config/i386/i386.md: Introduce haswell cpu and include new md file.
12480 2015-09-14 Richard Biener <rguenther@suse.de>
12482 * doc/match-and-simplify.texi: Fixup some formatting issues
12483 and document the 's' flag.
12485 2015-09-13 Olivier Hainque <hainque@adacore.com>
12486 Eric Botcazou <ebotcazou@adacore.com>
12488 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
12489 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
12490 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
12491 (TARGET_CPU_gr5): Likewise.
12492 (TARGET_CPU_gr6): Likewise.
12493 (MULTILIB_DEFAULTS): Likewise.
12494 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
12495 for mcpu=gr5 and mcpu=gr6.
12496 (MULTILIB_DIRNAMES): Adjust accordingly.
12498 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12500 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
12501 (mem_ref_p): Likewise.
12502 (outermost_indep_loop): Adjust.
12503 (mem_ref_in_stmt): Likewise.
12504 (determine_max_movement): Likewise.
12505 (mem_ref_alloc): Likewise.
12506 (record_mem_ref_loc): Likewise.
12507 (set_ref_stored_in_loop): Likewise.
12508 (mark_ref_stored): Likewise.
12509 (gather_mem_refs_stmt): Likewise.
12510 (mem_refs_may_alias_p): Likewise.
12511 (for_all_locs_in_loop): Likewise.
12512 (struct rewrite_mem_ref_loc): Likewise.
12513 (rewrite_mem_refs): Likewise.
12514 (struct first_mem_ref_loc_1): Likewise.
12515 (first_mem_ref_loc): Likewise.
12516 (struct sm_set_flag_if_changed): Likewise.
12517 (execute_sm_if_changed_flag_set): Likewise.
12518 (execute_sm): Likewise.
12519 (hoist_memory_references):
12520 (struct ref_always_accessed): Likewise.
12521 (ref_always_accessed_p): Likewise.
12522 (refs_independent_p): Likewise.
12523 (record_dep_loop): Likewise.
12524 (ref_indep_loop_p_1): Likewise.
12525 (ref_indep_loop_p_2): Likewise.
12526 (ref_indep_loop_p): Likewise.
12527 (can_sm_ref_p): Likewise.
12528 (find_refs_for_sm): Likewise.
12529 (tree_ssa_lim_finalize): Likewise.
12531 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12533 * dwarf2out.c (dw_attr_ref): Remove typedef.
12534 (dw_line_info_ref): Likewise.
12535 (pubname_ref): Likewise.
12536 (dw_ranges_ref): Likewise.
12537 (dw_ranges_by_label_ref): Likewise.
12538 (comdat_type_node_ref): Likewise.
12540 (get_AT_low_pc): Likewise.
12541 (get_AT_hi_pc): Likewise.
12542 (get_AT_string): Likewise.
12543 (get_AT_flag): Likewise.
12544 (get_AT_unsigned): Likewise.
12545 (get_AT_ref): Likewise.
12546 (get_AT_file): Likewise.
12547 (remove_AT): Likewise.
12548 (print_die): Likewise.
12549 (check_die): Likewise.
12550 (die_checksum): Likewise.
12551 (attr_checksum_ordered): Likewise.
12552 (struct checksum_attributes): Likewise.
12553 (collect_checksum_attributes): Likewise.
12554 (die_checksum_ordered): Likewise.
12555 (same_die_p): Likewise.
12556 (is_declaration_die): Likewise.
12557 (clone_die): Likewise.
12558 (clone_as_declaration): Likewise.
12559 (copy_declaration_context): Likewise.
12560 (break_out_comdat_types): Likewise.
12561 (copy_decls_walk): Likewise.
12562 (output_location_lists): Likewise.
12563 (external_ref_hasher::hash): Likewise.
12564 (optimize_external_refs_1): Likewise.
12565 (build_abbrev_table): Likewise.
12566 (size_of_die): Likewise.
12567 (unmark_all_dies): Likewise.
12568 (size_of_pubnames): Likewise.
12569 (output_die_abbrevs): Likewise.
12570 (output_die): Likewise.
12571 (output_pubnames): Likewise.
12572 (add_ranges_num): Likewise.
12573 (add_ranges_by_labels): Likewise.
12574 (add_high_low_attributes): Likewise.
12575 (gen_producer_string): Likewise.
12576 (dwarf2out_set_name): Likewise.
12577 (new_line_info_table): Likewise.
12578 (prune_unused_types_walk_attribs): Likewise.
12579 (prune_unused_types_update_strings): Likewise.
12580 (prune_unused_types): Likewise.
12581 (resolve_addr): Likewise.
12582 (optimize_location_lists_1): Likewise.
12583 (index_location_lists): Likewise.
12584 (dwarf2out_finish): Likewise.
12586 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12588 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
12590 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12592 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
12593 (dump_asserts_for): Adjust.
12594 (register_new_assert_for): Likewise.
12595 (process_assert_insertions): Likewise.
12596 (insert_range_assertions): Likewise.
12598 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12600 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
12601 and remove typedef.
12602 (new_temp_expr_table): Adjust.
12603 (free_temp_expr_table): Likewise.
12604 (version_to_be_replaced_p): Likewise.
12605 (make_dependent_on_partition): Likewise.
12606 (add_to_partition_kill_list): Likewise.
12607 (remove_from_partition_kill_list): Likewise.
12608 (add_dependence): Likewise.
12609 (finished_with_expr): Likewise.
12610 (process_replaceable): Likewise.
12611 (kill_expr): Likewise.
12612 (kill_virtual_exprs): Likewise.
12613 (mark_replaceable): Likewise.
12614 (find_replaceable_in_bb): Likewise.
12615 (find_replaceable_exprs): Likewise.
12616 (debug_ter): Likewise.
12618 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12620 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
12621 (struct btr_user): Rename from btr_user_s.
12622 (struct btr_def): Rename from btr_def_s.
12623 (find_btr_def_group): Adjust.
12624 (add_btr_def): Likewise.
12625 (new_btr_user): Likewise.
12626 (note_other_use_this_block): Likewise.
12627 (compute_defs_uses_and_gen): Likewise.
12628 (link_btr_uses): Likewise.
12629 (build_btr_def_use_webs): Likewise.
12630 (block_at_edge_of_live_range_p): Likewise.
12631 (btr_def_live_range): Likewise.
12632 (combine_btr_defs): Likewise.
12633 (move_btr_def): Likewise.
12634 (migrate_btr_def): Likewise.
12635 (migrate_btr_defs): Likewise.
12637 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12639 * var-tracking.c (shared_hash_def): Rename to shared_hash.
12640 (shared_hash): Remove typedef.
12641 (struct dataflow_set): Adjust.
12642 (shared_hash_unshare): Likewise.
12643 (dataflow_set_merge): Likewise.
12644 (vt_initialize): Likewise.
12645 (vt_finalize): Likewise.
12647 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12649 * var-tracking.c (struct location_chain): Rename from
12650 location_chain_def.
12651 (struct variable_part): Adjust.
12652 (variable_htab_free): Likewise.
12653 (unshare_variable): Likewise.
12654 (get_init_value): Likewise.
12655 (get_addr_from_local_cache): Likewise.
12656 (drop_overlapping_mem_locs): Likewise.
12657 (val_reset): Likewise.
12658 (struct variable_union_info): Likewise.
12659 (variable_union): Likewise.
12660 (find_loc_in_1pdv): Likewise.
12661 (insert_into_intersection): Likewise.
12662 (intersect_loc_chains): Likewise.
12663 (canonicalize_loc_order_check): Likewise.
12664 (canonicalize_values_mark): Likewise.
12665 (canonicalize_values_star): Likewise.
12666 (canonicalize_vars_star): Likewise.
12667 (variable_merge_over_cur): Likewise.
12668 (remove_duplicate_values): Likewise.
12669 (variable_post_merge_new_vals): Likewise.
12670 (variable_post_merge_perm_vals): Likewise.
12671 (find_mem_expr_in_1pdv): Likewise.
12672 (dataflow_set_preserve_mem_locs): Likewise.
12673 (dataflow_set_remove_mem_locs): Likewise.
12674 (variable_part_different_p): Likewise.
12675 (onepart_variable_different_p): Likewise.
12676 (find_src_set_src): Likewise.
12677 (dump_var): Likewise.
12678 (set_slot_part): Likewise.
12679 (clobber_slot_part): Likewise.
12680 (delete_slot_part): Likewise.
12681 (vt_expand_var_loc_chain): Likewise.
12682 (emit_note_insn_var_location): Likewise.
12683 (vt_finalize): Likewise.
12685 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12687 * dse.c (store_info_t): Remove typedef.
12688 (group_info_t): Likewise.
12689 (const_group_info_t): Likewise.
12690 (deferred_change_t): Likewise.
12691 (get_group_info): Adjust.
12692 (free_store_info): Likewise.
12693 (canon_address): Likewise.
12694 (clear_rhs_from_active_local_stores): Likewise.
12695 (record_store): Likewise.
12696 (replace_read): Likewise.
12697 (check_mem_read_rtx): Likewise.
12698 (scan_insn): Likewise.
12699 (remove_useless_values): Likewise.
12700 (dse_step1): Likewise.
12701 (dse_step2_init): Likewise.
12702 (dse_step2_nospill): Likewise.
12703 (scan_stores_nospill): Likewise.
12704 (scan_reads_nospill): Likewise.
12705 (dse_step3_exit_block_scan): Likewise.
12706 (dse_step3): Likewise.
12707 (dse_step5_nospill): Likewise.
12708 (dse_step6): Likewise.
12710 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12712 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
12713 (alias_set_entry): Remove typedef.
12714 (alias_set_subset_of): Adjust.
12715 (alias_sets_conflict_p): Likewise.
12716 (init_alias_set_entry): Likewise.
12717 (get_alias_set): Likewise.
12718 (new_alias_set): Likewise.
12719 (record_alias_subset): Likewise.
12721 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
12723 * doc/install.texi (Downloading the source): Mark up
12724 contrib/download_prerequisites properly and drop leading "./".
12726 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12728 * config/arc/arc.h: Remove define of STRUCT_VALUE.
12729 * config/lm32/lm32.h: Likewise.
12730 * config/mep/mep.h: Likewise.
12731 * config/visium/visium.h: Likewise.
12732 * system.h: Poison STRUCT_VALUE macro.
12734 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
12736 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
12737 CONSTANT_P operands.
12739 2015-09-11 David S. Miller <davem@davemloft.net>
12741 * config/sparc/constraints.md: Make "U" constraint a real register
12743 * config/sparc/sparc.c (TARGET_LRA_P): Define.
12744 (D_MODES, DF_MODES): Add missing cast.
12745 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12746 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12747 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12749 * config/sparc/sparc.h (PROMOTE_MODE): Define.
12750 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12751 provide these insn when flag_pic.
12753 2015-09-11 Jeff Law <law@redhat.com>
12755 PR tree-optimization/47679
12756 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
12757 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
12758 member with m_. Update inline member functions as necessary. Add
12760 * tree-ssa-scopedtables.c: Update const_and_copies's member
12761 functions to use m_ prefix to access the stack.
12763 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
12765 * graphite-optimize-isl.c (disable_tiling): Remove.
12766 (get_schedule_for_band): Do not use disable_tiling.
12767 (get_prevector_map): Delete function.
12768 (enable_polly_vector): Remove.
12769 (get_schedule_for_band_list): Remove dead code.
12771 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
12773 * graphite-optimize-isl.c (get_tile_map): Refactor.
12774 (get_schedule_for_band): Same.
12775 (getScheduleForBand): Same.
12776 (get_prevector_map): Same.
12777 (get_schedule_for_band_list): Same.
12778 (get_schedule_map): Same.
12779 (get_single_map): Same.
12780 (apply_schedule_map_to_scop): Same.
12781 (optimize_isl): Same.
12783 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12786 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
12788 * config/aarch64/iterators.md (GPF_TF_F16): New.
12791 2015-09-10 Nathan Sidwell <nathan@acm.org>
12793 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
12794 (nvptx_reorg): Adjust comments.
12796 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
12799 * configure.ac: Check if setenv and unsetenv are declared.
12800 * configure: Rebuild.
12801 * config.in: Rebuild.
12802 * system.h: Declare setenv and unsetenv if not declared.
12804 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12806 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
12807 commentary to simplify permute mask adjustment equation.
12808 (special_handling_values): Add SH_VPERM.
12809 (const_load_sequence_p): New function.
12810 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
12811 the mask loaded from the constant pool.
12812 (adjust_vperm): New function.
12813 (handle_special_swappables): Call adjust_vperm.
12814 (dump_swap_insn_table): Handle SH_VPERM.
12816 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
12818 * shrink-wrap.c (requires_stack_frame_p): Remove static.
12819 * shrink-wrap.h (requires_stack_frame_p): Put back.
12821 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
12823 * reload1.c (elimination_costs_in_insn): Locally turn
12824 -Wmaybe-uninitialized into a warning.
12826 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
12828 * shrink-wrap.c (requires_stack_frame_p): Make static.
12829 (prepare_shrink_wrap): Likewise.
12830 (dup_block_and_redirect): Likewise.
12831 * shrink-wrap.h: Remove declarations of those functions.
12833 2015-09-10 Mark Wielaard <mjw@redhat.com>
12835 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
12837 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
12840 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
12841 missing simplify_gen_subreg.
12843 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12845 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
12846 the vector element is bigger than 64 bit.
12848 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12850 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
12851 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
12853 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12855 * config/s390/s390.c: Add V1TImode to constant pool modes.
12857 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12860 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
12861 predicate. Set predicable_short_it attr to "no".
12863 2015-09-10 Jiong Wang <jiong.wang@arm.com>
12865 PR rtl-optimization/67421
12866 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
12867 left wide shift tranformation.
12869 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
12871 * common/config/arc/arc-common.c: Remove references to A5.
12872 * config/arc/arc-opts.h: Likewise.
12873 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
12874 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
12875 * config/arc/t-arc-newlib: Likewise.
12877 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
12879 * config/arc/arc.md (length): Fix attribute length for conditional
12880 executed instructions with long immediate.
12882 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12884 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
12885 type for second alternative.
12887 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
12889 * doc/invoke.texi (Downloading GCC): Mention
12890 contrib/download_prerequisites script.
12892 2015-09-10 Jakub Jelinek <jakub@redhat.com>
12895 * gimplify.c (gimplify_omp_for): If inner stmt is not found
12896 for combined loop, assert seen_error () and return GS_ERROR.
12898 PR middle-end/67521
12899 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
12900 if decl is already in outer->variables.
12902 PR middle-end/67517
12903 * gimplify.c (gimplify_scan_omp_clauses): Instead of
12904 asserting that decl is not specified in octx->variables,
12905 break out of the loop if it is.
12908 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
12909 iterator is not explicitly determined, but is defined inside
12910 of the combined workshare region, handle it like if it has
12911 DECL_EXPR in OMP_FOR_PRE_BODY.
12913 2015-09-09 Nathan Sidwell <nathan@acm.org>
12915 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
12916 (*cmp<mode>): Add assembler spacing.
12917 (setcc_int<mode>, set_cc_float<mode>): Likewise.
12918 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
12920 (write_func_decl_from_insn): Refactor argument loops & comma emission.
12921 (nvptx_expand_call): Likewise.
12922 (nvptx_output_call_insn): Likewise.
12923 (nvptx_reorg_subreg): Add spacing.
12925 2015-09-09 Marek Polacek <polacek@redhat.com>
12927 PR middle-end/67512
12928 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
12931 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
12934 * doc/invoke.texi ([Wsubobject-linkage]): Document.
12936 2015-09-09 Tom de Vries <tom@codesourcery.com>
12938 * params-list.h: Add missing copyright notice.
12940 2015-09-09 Nathan Sidwell <nathan@acm.org>
12942 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
12943 sel_truesi, not andsi.
12945 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12947 * config/arm/arm.md (*subsi3_compare0): Rename to...
12948 (subsi3_compare0): ... This.
12949 (modsi3): New define_expand.
12950 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
12951 when operand is power of 2.
12953 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12955 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
12956 (*neg<mode>2_compare0): Rename to...
12957 (neg<mode>2_compare0): ... This.
12958 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
12959 Move check for speed inside the if-then-elses. Reflect
12960 CSNEG sequence in MOD by power of 2 case.
12962 2015-09-09 Alan Modra <amodra@gmail.com>
12965 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
12966 reload replacement for PRE_MODIFY address reg.
12968 2015-09-09 Sebastian Pop <s.pop@samsung.com>
12970 PR tree-optimization/53852
12971 * config.in: Regenerate.
12972 * configure: Regenerate.
12973 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
12974 * graphite-optimize-isl.c (optimize_isl): Stop computation when
12975 PARAM_MAX_ISL_OPERATIONS is reached.
12976 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
12977 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
12978 result equal to isl_stat_ok as the status now can be isl_error_quota.
12979 (subtract_commutative_associative_deps): Same.
12980 (compute_deps): Same.
12982 2015-09-08 Aditya Kumar <hiraditya@msn.com>
12983 Sebastian Pop <s.pop@samsung.com>
12985 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
12986 Return the parameter if it was saved in corresponding
12987 parameter_rename_map of the region.
12988 (copy_def): Copy def from sese region to the newly created region.
12989 (copy_internal_parameters): Copy all the internal parameters defined
12990 within a region to the newly created region.
12991 (graphite_regenerate_ast_isl): Copy parameters to the new region before
12992 translating isl to gimple.
12993 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
12994 the loop-nest does not have any data-references.
12995 (build_graphite_scops): Create a scop only when there is at least one
12997 (contains_only_close_phi_nodes): Deleted.
12998 (print_graphite_scop_statistics): Deleted
12999 (print_graphite_statistics): Deleted
13000 (limit_scops): Deleted.
13001 (build_scops): Removed call to limit_scops.
13002 * sese.c (new_sese): Construct.
13003 (free_sese): Destruct.
13004 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
13006 (set_rename): Pass sese region so that parameters inside the region can
13007 be added to its parameter_rename_map.
13008 (rename_uses): Pass sese region.
13009 (graphite_copy_stmts_from_block): Do not copy parameters that have been
13010 generated in the header of the scop. For each SSA_NAME in the
13011 parameter_rename_map rename its usage.
13012 (invariant_in_sese_p_rec): Return false if tree t is defined outside
13014 (scalar_evolution_in_region): If the tree t is invariant just return t.
13015 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
13016 struct sese to keep track of all the parameters which need renaming.
13017 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
13019 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
13021 2015-09-08 Tom de Vries <tom@codesourcery.com>
13023 * Makefile.in (generated_files): Add params.list.
13024 (params.list, s-params.list): Add rule.
13025 * params.h (enum compiler_param): Include params-list.h. Move define
13026 DEFPARAM, include params.def and undef DEFPARAM ...
13027 * params-list.h: ... here. New file.
13029 2015-09-08 David Malcolm <dmalcolm@redhat.com>
13031 * pretty-print.h (printer_fn): Fix typo in comment.
13033 2015-09-07 Jeff Law <law@redhat.com>
13035 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
13037 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13039 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
13040 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
13041 (arm_neon_fp16_hw): New.
13043 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13045 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
13046 UNITS_PER_WORD >= 4.
13048 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13050 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
13051 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
13052 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
13053 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
13054 (aarch64_float_extend_lo_v2df): Rename to...
13055 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
13057 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
13058 (float_extend_lo): Add v4sf.
13060 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
13061 * config/aarch64/iterators.md (VQ_HSF): New iterator.
13062 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
13063 (Vwide): New mode_attr.
13065 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13067 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
13068 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
13069 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
13070 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
13071 V4HF and V8HF variants to iterator.
13073 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
13075 * config/aarch64/iterators.md (VDQF_F16): New.
13076 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
13078 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13080 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
13081 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13082 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
13083 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
13084 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
13085 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13086 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
13087 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
13088 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
13089 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
13090 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
13091 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13092 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
13093 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
13094 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
13095 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
13096 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
13097 vld1q_dup_f16): New.
13099 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13101 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
13102 Reparameterize to...
13103 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
13104 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
13105 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
13107 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
13109 (float_truncate_lo_): Use BUILTIN_VDF iterator.
13111 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
13113 * config/aarch64/iterators.md (VDF, Vdtype): New.
13114 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
13116 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13118 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
13119 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
13120 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
13121 Add __builtin_aarch64_simd_hf.
13122 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
13123 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
13124 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
13125 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
13126 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
13127 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
13128 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
13129 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
13130 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
13132 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
13133 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
13134 (VDC, Vdbl): Add V4HF.
13136 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13138 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
13139 V4HFmode and V8HFmode.
13140 (aarch64_split_simd_move): Add case for V8HFmode.
13141 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
13142 (aarch64_simd_builtin_std_type): Handle HFmode.
13143 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
13145 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
13146 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
13147 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
13149 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
13152 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
13153 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
13155 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
13156 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
13157 vst1q_lane_f16): New.
13158 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
13159 (VALLDI_F16, VALL_F16): New.
13160 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
13161 Add cases for V4HF and V8HF.
13162 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
13164 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13166 * config/arm/arm-builtins.c (VAR11, VAR12): New.
13167 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
13168 vld4_dup): Add v4hf variant.
13169 (vget_high, vget_low): Add v8hf variant.
13170 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
13171 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
13172 v4hf and v8hf variants.
13174 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
13176 (V_DOUBLE): Add case for V4HF.
13178 (V_HALF): Add case for V8HF.
13179 (VDQX): Add V4HF, V8HF.
13180 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
13181 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
13183 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
13184 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
13185 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
13186 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
13187 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
13188 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
13189 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
13190 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
13191 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
13193 (neon_vcreate, neon_vreinterpretv8qi<mode>,
13194 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
13195 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
13196 Change VDX to VD_RE.
13198 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
13199 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
13200 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
13202 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
13203 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
13204 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
13205 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
13206 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
13207 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
13208 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
13209 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
13210 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
13212 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13214 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
13215 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
13216 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
13217 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
13218 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13219 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
13220 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
13221 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
13222 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
13223 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
13226 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13228 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
13230 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
13232 * config/arm/arm-builtins.c (v8hf_UP): New.
13233 (arm_init_simd_builtin_types): Initialise Float16x8_t.
13235 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
13237 * config/arm/arm_neon.h (float16x8_t): New typedef.
13239 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13241 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
13242 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
13243 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
13244 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
13245 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13246 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
13247 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
13248 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
13249 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13250 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
13252 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
13254 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
13255 non-alphanumeric characters in the symbol name.
13257 2015-09-07 Marek Polacek <polacek@redhat.com>
13259 PR inline-asm/67448
13260 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
13263 2015-09-07 Marek Polacek <polacek@redhat.com>
13265 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
13267 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
13269 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
13272 2015-09-04 Jakub Jelinek <jakub@redhat.com>
13274 PR middle-end/67452
13275 * tree-ssa-live.c: Include cfgloop.h.
13276 (remove_unused_locals): Clear loop->simduid if simduid is about
13277 to be removed from cfun->local_decls.
13279 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13282 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
13285 2015-09-04 Tom de Vries <tom@codesourcery.com>
13287 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
13289 2015-09-04 Jeff Law <law@redhat.com>
13291 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
13292 unnecessary constructor. It's now trivial and implemented inside...
13293 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
13294 constructor. Add comments to various methods. Remove unused
13296 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
13297 * tree-vrp.c (identify_jump_threads): Likewise.
13298 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
13299 indentation issues.
13300 (thread_across_edge): Similarly.
13301 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
13302 arguments in constructor call.
13304 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
13306 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
13307 temp path contains a '-'.
13309 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
13310 Petr Murzin <petr.murzin@intel.com>
13311 Kirill Yukhin <kirill.yukhin@intel.com>
13313 * config/i386/i386-builtin-types.def
13314 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
13315 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
13316 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
13317 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
13318 * config/i386/i386.c
13319 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
13320 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13321 IX86_BUILTIN_SCATTERALTDIV16SI.
13322 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
13323 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
13324 __builtin_ia32_scatteraltdiv8si.
13325 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
13326 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13327 IX86_BUILTIN_SCATTERALTDIV16SI.
13328 (ix86_vectorize_builtin_scatter): New.
13329 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
13330 ix86_vectorize_builtin_scatter.
13332 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
13333 Petr Murzin <petr.murzin@intel.com>
13334 Kirill Yukhin <kirill.yukhin@intel.com>
13336 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
13337 * doc/tm.texi: Regenerate.
13338 * target.def: Add scatter builtin.
13339 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
13340 for loads/stores in case of gather/scatter accordingly.
13341 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13342 STMT_VINFO_GATHER_P(S).
13343 (vect_check_gather): Rename to ...
13344 (vect_check_gather_scatter): this.
13345 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
13346 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
13347 (vect_check_gather_scatter): Use it instead of vect_check_gather.
13348 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
13349 variable and new checkings for it accordingly.
13350 * tree-vect-stmts.c
13351 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13352 STMT_VINFO_GATHER_P(S).
13353 (vect_check_gather_scatter): Use it instead of vect_check_gather.
13354 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
13356 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
13358 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
13360 (mulv16qi3): New define_expand.
13362 2015-09-03 Martin Sebor <msebor@redhat.com>
13365 * doc/extend.texi (Other Builtins): Document when the address
13366 of a built-in function can be taken.
13368 2015-09-03 Richard Biener <rguenther@suse.de>
13370 * dwarf2out.c (flush_limbo_die_list): Split out from ...
13371 (dwarf2out_early_finish): ... here.
13372 (dwarf2out_finish): Do not call dwarf2out_early_finish but
13373 flush_limbo_die_list. Assert we have no deferred asm names.
13375 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13377 * optabs.c (expand_binop): Don't create a broadcast vector with a
13378 source element wider than the inner mode.
13380 2015-09-03 Richard Biener <rguenther@suse.de>
13382 * varasm.c (output_constant): Use fold_convert instead of
13385 2015-09-03 Tom de Vries <tom@codesourcery.com>
13387 PR tree-optimization/65637
13388 * omp-low.c (expand_omp_for_static_chunk): Handle case that
13389 fin_bb has 2 predecessors.
13391 2015-09-03 Tom de Vries <tom@codesourcery.com>
13393 PR tree-optimization/65637
13394 * omp-low.c (find_phi_with_arg_on_edge): New function.
13395 (expand_omp_for_static_chunk): Fix inner loop phi.
13397 2015-09-03 Tom de Vries <tom@codesourcery.com>
13399 PR tree-optimization/65637
13400 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
13403 2015-09-03 Tom de Vries <tom@codesourcery.com>
13405 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
13407 2015-09-03 Tom de Vries <tom@codesourcery.com>
13409 * doc/invoke.texi (parloops-chunk-size): Add item.
13410 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
13411 * tree-parloops.c: Include params.h.
13412 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
13413 param parloops-chunk-size is used.
13415 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13417 PR middle-end/67351
13418 * fold-const.c (fold_binary_loc) : Move
13419 Transform (x >> c) << c into x & (-1<<c) or
13420 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
13421 types using simplify and match.
13422 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
13423 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
13425 2015-09-03 Richard Biener <rguenther@suse.de>
13428 * tree-ssa-structalias.c (ctor_for_analysis): New function.
13429 (create_variable_info_for_1): Use ctor_for_analysis instead
13430 of get_constructor.
13431 (create_variable_info_for): Likewise.
13433 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
13436 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
13437 in new callgraph edge.
13439 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
13444 * config/aarch64/aarch64-simd.md
13445 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
13446 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
13447 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
13448 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
13450 2015-09-02 Alan Modra <amodra@gmail.com>
13452 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
13453 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
13454 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
13456 2015-09-02 Alan Modra <amodra@gmail.com>
13459 * config/rs6000/predicates.md (current_file_function_operand): Don't
13460 return true for weak symbols.
13461 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
13463 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
13464 Andrew Bennett <andrew.bennett@imgtec.com>
13466 * config/mips/mips-opts.h (mips_cb_setting): New enum.
13467 * config/mips/mips-protos.h: Add definitions for
13468 mips_output_jump and mips_output_equal_conditional_branch
13469 * config/mips/mips.c (MIPS_JR): Change to support the
13471 (mips_emit_compare): Add support for the MIPS R6 conditional
13473 (mips_process_sync_loop): Likewise.
13474 (mips_output_order_conditional_branch): Likewise.
13475 (mips16_build_call_stub): Change MIPS_CALL to
13477 (mips_print_operand_punctuation): Update 's' case to only
13478 apply to micromips r2.
13479 (mips_adjust_insn_length): Add support for forbidden slot
13481 (mips_avoid_hazard): Likewise.
13482 (mips_reorg_process_insns): Likewise.
13483 (mips_output_jump): New function.
13484 (mips_output_equal_conditional_branch): Likewise.
13485 (mips_output_conditional_branch): Use jrc/bc if compact
13486 branch support is enabled. Ensure the forbidden slots
13487 between the two branch instructions is filled with a nop.
13488 (mips_option_override): Add support to process the compact
13489 branch option and set the correct defaults. Prevent
13490 non-explict relocs being using for MIPS R6.
13491 (mips_trampoline_init): Add compact branch support.
13492 (mips_mult_zero_zero_cost): Allow zero initialisation of
13493 accumulators with TARGET_DSP.
13494 * config/mips/mips.h (TARGET_CB_NEVER): New define.
13495 (TARGET_CB_MAYBE): New define.
13496 (TARGET_CB_ALWAYS): New define.
13497 (ISA_HAS_DELAY_SLOTS): New define.
13498 (ISA_HAS_COMPACT_BRANCHES): New define.
13499 (ISA_HAS_JRC): New define.
13500 (MIPS_BRANCH_C): New define.
13501 (MIPS_CALL): Removed.
13502 (MICROMIPS_J): Removed.
13503 * config/mips/mips.md (compact_form): New attr.
13504 (hazard): Add support for forbidden slots.
13505 (define_delay): Add support for compact branches.
13506 (*branch_order<mode>): Likewise.
13507 (*branch_order<mode>_inverted): Likewise.
13508 (*branch_equality<mode>): Likewise.
13509 (*branch_equality<mode>_inverted): Likewise.
13510 (*jump_absolute): Likewise.
13511 (*jump_pic): Likewise.
13512 (indirect_jump): Use mips_output_jump to produce assembly output.
13513 (tablejump_<mode>"): Likewise.
13514 (*<optab>"): Likewise.
13515 (<optab>_internal): Likewise.
13516 (sibcall_internal): Likewise.
13517 (sibcall_value_internal): Likewise.
13518 (sibcall_value_multiple_internal): Likewise.
13519 (call_internal): Likewise.
13520 (call_split): Likewise.
13521 (call_internal_direct): Likewise.
13522 (call_direct_split): Likewise.
13523 (call_value_internal): Likewise.
13524 (call_value_split): Likewise.
13525 (call_value_internal_direct): Likewise.
13526 (call_value_direct_split): Likewise.
13527 (call_value_multiple_internal): Likewise.
13528 (call_value_multiple_split): Likewise.
13529 (mips_get_fcsr_mips16_<mode>): Likewise.
13530 (mips_set_fcsr_mips16_<mode>): Likewise.
13531 (tls_get_tp_mips16_<mode>): Likewise.
13532 * config/mips/mips.opt: Add -mcompact-branches option.
13533 * config/mips/predicates.md (order_operator): Ensure the
13534 conditional compact branches are only used if the ISA them.
13535 * doc/invoke.texi: Document -mcompact-branches option.
13537 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
13540 * lra-lives.c (process_bb_lives): Process move pseudos with the
13541 same value for copies and preferences
13542 * lra-constraints.c (match_reload): Create match reload pseudo
13543 with the same value from single dying input pseudo.
13545 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
13548 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
13550 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
13552 * trans-mem.c: Add contributed-by.
13553 * trans-mem.h: Same.
13555 2015-09-01 Richard Biener <rguenther@suse.de>
13557 * expr.c (expand_expr_real_1): For expanding TERed defs
13558 set the current location to that of the def if not UNKNOWN.
13560 2015-09-01 David Sherwood <david.sherwood@arm.com>
13562 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
13564 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13566 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
13567 then_cost, else_cost fields. Change branch_cost field to unsigned int.
13568 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
13569 Include rtl-iter.h.
13570 (noce_simple_bbs): New function.
13571 (noce_try_move): Bail if basic blocks are not simple.
13572 (noce_try_store_flag): Likewise.
13573 (noce_try_store_flag_constants): Likewise.
13574 (noce_try_addcc): Likewise.
13575 (noce_try_store_flag_mask): Likewise.
13576 (noce_try_cmove): Likewise.
13577 (noce_try_minmax): Likewise.
13578 (noce_try_abs): Likewise.
13579 (noce_try_sign_mask): Likewise.
13580 (noce_try_bitop): Likewise.
13581 (bbs_ok_for_cmove_arith): New function.
13582 (noce_emit_all_but_last): Likewise.
13583 (noce_emit_insn): Likewise.
13584 (noce_emit_bb): Likewise.
13585 (noce_try_cmove_arith): Handle non-simple basic blocks.
13586 (insn_valid_noce_process_p): New function.
13587 (contains_mem_rtx_p): Likewise.
13588 (bb_valid_for_noce_process_p): Likewise.
13589 (noce_process_if_block): Allow non-simple basic blocks
13592 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
13594 * tree-ssa-dom.c (record_equivalences_from_phis,
13595 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
13596 (lookup_avail_expr): Likewise, and remove comment and unused temp.
13598 2015-09-01 Nick Clifton <nickc@redhat.com>
13600 * config/msp430/msp430.opt (mcpu): Fix typo.
13602 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13604 * config/aarch64/aarch64.c (aarch64_set_current_function):
13605 Re-layout any vector parameters have non-simd layout.
13606 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
13608 (aarch64_simd_expand_args): Delete call to the above.
13610 2015-08-31 Mike Frysinger <vapier@gentoo.org>
13612 * doc/invoke.texi (asan-stack): Add space before option.
13614 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
13616 * tree.h (zerop): New function.
13617 * tree.c (zerop): Likewise.
13618 (element_precision): Handle expressions.
13619 * match.pd (define_predicates): Add zerop.
13620 (x <= +Inf): Fix comment.
13621 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
13622 * fold-const.c (fold_binary_loc): ... here. Remove.
13624 2015-08-31 Richard Biener <rguenther@suse.de>
13626 PR middle-end/67381
13627 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
13629 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
13631 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
13632 (CEXPI): New operator list.
13633 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
13634 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
13636 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
13638 2015-08-31 Tom de Vries <tom@codesourcery.com>
13640 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
13641 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
13643 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
13644 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
13645 (rewrite_into_loop_closed_ssa): ... here.
13646 (replace_uses_in_dominated_bbs): Remove function.
13647 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
13648 rewrite_into_loop_closed_ssa_1.
13650 2015-08-31 Michael Matz <matz@suse.de>
13652 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
13653 enter entry and exit blocks for reverse post order.
13655 2015-08-31 Richard Biener <rguenther@suse.de>
13657 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
13658 (lto_location_cache::current_sysp): Likewise.
13659 (output_block::current_sysp): Likewise.
13660 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
13661 (lto_location_cache::apply_location_cache): Properly record
13662 system header locations.
13663 (lto_location_cache::input_location): Input whether a file
13664 is a system header.
13665 * lto-streamer-out.c (lto_output_location): Stream whether a file
13666 is a system header.
13668 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13671 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
13673 2015-08-31 Tom de Vries <tom@codesourcery.com>
13675 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
13676 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
13677 Improve function header comments.
13679 2015-08-30 Michael Collison <michael.collison@linaro.org>
13682 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
13685 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13687 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
13688 special_handling bitfield.
13689 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
13690 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
13691 that represents a general xxpermdi.
13692 (insn_is_swappable_p): Add handling for vec_concat of two
13693 doublewords, which maps to a specific xxpermdi.
13694 (adjust_xxpermdi): New function.
13695 (adjust_concat): Likewise.
13696 (handle_special_swappables): Call adjust_xxpermdi and
13698 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
13700 2015-08-30 Rich Felker <dalias@libc.org>
13702 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
13703 case instead of sh[123456ble]-*-*.
13705 2015-08-29 Anatoly Sokolov <aesok@post.ru>
13707 * ira.c (print_unform_and_important_classes,
13708 print_translated_classes): Remove reg_class_names static array.
13709 (print_unform_and_important_classes): Rename to ...
13710 (print_uniform_and_important_classes): ... this.
13711 (ira_debug_allocno_classes): Update accordingly.
13713 2015-08-29 Tom de Vries <tom@codesourcery.com>
13715 PR tree-optimization/46193
13716 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
13719 2015-08-28 Jeff Law <law@redhat.com>
13722 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13723 unable to find X NE 0 in the tables, return X as the simplified
13725 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13726 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
13728 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13729 after removing the control flow statement and unnecessary edges.
13731 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
13734 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
13736 PR tree-optimization/67283
13737 * tree-sra.c (type_consists_of_records_p): Rename to...
13738 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13740 (completely_scalarize_record): Rename to...
13741 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
13743 (scalarize_elem): New.
13745 2015-08-28 Jiong Wang <jiong.wang@arm.com>
13747 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
13748 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
13749 (aarch64_symbol_type): Likewise.
13750 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13752 (aarch64_expand_mov_immediate): Likewise.
13753 (aarch64_print_operand): Likewise.
13754 (aarch64_classify_tls_symbol): Likewise.
13756 2015-08-28 Richard Biener <rguenther@suse.de>
13758 * cgraphunit.c (symbol_table::compile): Move early debug generation
13760 (symbol_table::finalize_compilation_unit): ... back here and
13761 add a !seen_error () guard.
13763 2015-08-27 Sebastian Pop <s.pop@samsung.com>
13765 * toplev.c (process_options): Do not use flag_loop_block,
13766 flag_loop_interchange, and flag_loop_strip_mine. Add check for
13767 flag_loop_optimize_isl.
13769 2015-08-27 Sebastian Pop <s.pop@samsung.com>
13771 * Makefile.in (OBJS): Remove graphite-blocking.o and
13772 graphite-interchange.o.
13773 * common.opt (floop-strip-mine, floop-interchange, floop-block):
13774 Alias of floop-nest-optimize.
13775 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
13776 Document as alias of -floop-nest-optimize.
13777 * graphite-blocking.c: Remove.
13778 * graphite-interchange.c: Remove.
13779 * graphite-optimize-isl.c: Include dumpfile.h.
13780 (getScheduleForBand): Add dump for tiled loops. Use
13781 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
13782 * graphite-poly.c (scop_max_loop_depth): Remove.
13783 (print_scattering_function_1): Remove.
13784 (print_scattering_function): Remove.
13785 (print_scattering_functions): Remove.
13786 (debug_scattering_function): Remove.
13787 (debug_scattering_functions): Remove.
13788 (apply_poly_transforms): Remove use of flag_loop_block,
13789 flag_loop_strip_mine, and flag_loop_interchange.
13790 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
13792 (print_pdr_access_layout): Remove.
13793 (print_pdr): Print ISL representation.
13794 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
13795 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
13797 (openscop_print_pbb_domain): Remove.
13798 (print_pbb): Remove call to print_scattering_function.
13799 (openscop_print_scop_context): Remove.
13800 (print_scop_context): Do not print matrices anymore.
13801 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
13802 SCOP_TRANSFORMED_SCHEDULE.
13803 (print_isl_set): Add printing of a new line.
13804 (print_isl_map): Same.
13805 (print_isl_aff): Same.
13806 (print_isl_constraint): Same.
13807 (loop_to_lst): Remove.
13808 (scop_to_lst): Remove.
13809 (lst_indent_to): Remove.
13810 (print_lst): Remove.
13811 (debug_lst): Remove.
13812 (dot_lst_1): Remove.
13814 (reverse_loop_at_level): Remove.
13815 (reverse_loop_for_pbbs): Remove.
13816 * graphite-poly.h (pdr_dim_iter_domain): Remove.
13817 (pdr_nb_params): Remove.
13818 (pdr_alias_set_dim): Remove.
13819 (pdr_subscript_dim): Remove.
13820 (pdr_iterator_dim): Remove.
13821 (pdr_parameter_dim): Remove.
13822 (same_pdr_p): Remove.
13823 (struct poly_scattering): Remove.
13824 (struct poly_bb): Remove _original, _transformed, _saved.
13825 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
13826 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
13827 (PBB_NB_LOCAL_VARIABLES): Remove.
13828 (PBB_NB_SCATTERING_TRANSFORM): Remove.
13829 (schedule_to_scattering): Remove.
13830 (number_of_write_pdrs): Remove.
13831 (pbb_dim_iter_domain): Remove.
13832 (pbb_nb_params): Remove.
13833 (pbb_nb_scattering_orig): Remove.
13834 (pbb_nb_scattering_transform): Remove.
13835 (pbb_nb_dynamic_scattering_transform): Remove.
13836 (pbb_nb_local_vars): Remove.
13837 (pbb_iterator_dim): Remove.
13838 (pbb_parameter_dim): Remove.
13839 (psco_scattering_dim): Remove.
13840 (psct_scattering_dim): Remove.
13841 (psct_local_var_dim): Remove.
13842 (psco_iterator_dim): Remove.
13843 (psct_iterator_dim): Remove.
13844 (psco_parameter_dim): Remove.
13845 (psct_parameter_dim): Remove.
13846 (psct_dynamic_dim): Remove.
13847 (psct_static_dim): Remove.
13848 (psct_add_local_variable): Remove.
13849 (new_lst_loop): Remove.
13850 (new_lst_stmt): Remove.
13851 (free_lst): Remove.
13852 (copy_lst): Remove.
13853 (lst_add_loop_under_loop): Remove.
13854 (lst_depth): Remove.
13855 (lst_dewey_number): Remove.
13856 (lst_dewey_number_at_depth): Remove.
13857 (lst_pred): Remove.
13858 (lst_succ): Remove.
13859 (lst_find_pbb): Remove.
13860 (find_lst_loop): Remove.
13861 (lst_find_first_pbb): Remove.
13862 (lst_empty_p): Remove.
13863 (lst_find_last_pbb): Remove.
13864 (lst_contains_p): Remove.
13865 (lst_contains_pbb): Remove.
13866 (lst_create_nest): Remove.
13867 (lst_remove_from_sequence): Remove.
13868 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
13869 (lst_niter_for_loop): Remove.
13870 (pbb_update_scattering): Remove.
13871 (lst_update_scattering_under): Remove.
13872 (lst_update_scattering): Remove.
13873 (lst_insert_in_sequence): Remove.
13874 (lst_replace): Remove.
13875 (lst_substitute_3): Remove.
13876 (lst_distribute_lst): Remove.
13877 (lst_remove_all_before_including_pbb): Remove.
13878 (lst_remove_all_before_excluding_pbb): Remove.
13879 (struct scop): Remove original_schedule, transformed_schedule, and
13881 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
13882 (SCOP_SAVED_SCHEDULE): Remove.
13883 (poly_scattering_new): Remove.
13884 (poly_scattering_free): Remove.
13885 (poly_scattering_copy): Remove.
13886 (store_scattering_pbb): Remove.
13887 (store_lst_schedule): Remove.
13888 (restore_lst_schedule): Remove.
13889 (store_scattering): Remove.
13890 (restore_scattering_pbb): Remove.
13891 (restore_scattering): Remove.
13892 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
13893 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
13894 compute the scattering polyhedron dimension from the dimension of
13896 (build_scop_scattering): Update call to
13897 build_pbb_scattering_polyhedrons.
13898 (build_poly_scop): Remove call to scop_to_lst.
13899 * graphite.c (graphite_transform_loops): Add call to print_scop.
13900 (gate_graphite_transforms): Remove use of flag_loop_block,
13901 flag_loop_interchange, and flag_loop_strip_mine.
13903 2015-08-27 Sebastian Pop <s.pop@samsung.com>
13905 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
13906 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
13907 -floop-nest-optimize.
13908 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
13909 (generate_luj_sepclass): Remove.
13910 (generate_luj_options): Remove.
13911 (set_options): Remove opt_luj.
13912 (scop_to_isl_ast): Remove opt_luj.
13913 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
13914 flag_loop_unroll_jam.
13915 (getPrevectorMap_full): Remove.
13916 (getScheduleForBandList): Remove map_sepcl.
13917 (getScheduleMap): Same.
13918 (apply_schedule_map_to_scop): Remove sepcl.
13919 (optimize_isl): Same.
13920 * graphite-poly.c (apply_poly_transforms): Remove check for
13921 flag_loop_unroll_jam.
13922 (new_poly_bb): Remove map_sepclass.
13923 * graphite-poly.h (struct poly_bb): Same.
13924 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
13925 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
13926 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
13927 * toplev.c (process_options): Remove flag_loop_unroll_jam.
13929 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
13932 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
13933 (addqi3_cc): Ditto.
13934 (UNSPEC_ADD_CARRY): Remove.
13935 (addqi3_cconly_overflow): New expander.
13936 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
13937 Adjust for changed add<mode>3_carry.
13938 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
13939 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
13940 (<plusminus_insn><mode>3_carry): Remove expander.
13941 (*<plusminus_insn><mode>3_carry): Split insn pattern to
13942 add<mode>3_carry and sub<mode>3_carry.
13943 (plusminus_carry_mnemonic): Remove code attribute.
13944 (add<mode>3_carry): Canonicalize insn pattern.
13945 (*addsi3_carry_zext): Ditto.
13946 (sub<mode>3_carry): Ditto.
13947 (*subsi3_carry_zext): Ditto.
13948 (adcx<mode>3): Remove insn pattern.
13949 (addcarry<mode>): New insn pattern.
13950 (subborrow<mode>): Ditto.
13951 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
13952 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
13953 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
13954 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
13955 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
13956 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
13957 Rewrite expander to not clobber carry flag chains.
13959 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
13961 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
13962 instead of a rotate.
13964 2015-08-27 Marek Polacek <polacek@redhat.com>
13966 PR middle-end/67005
13967 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
13968 an entry into an irreducible region.
13970 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13972 * configure: Regenerate.
13974 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
13976 PR tree-optimization/67283
13977 * tree-sra.c (type_consists_of_records_p): Rename to...
13978 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13980 (completely_scalarize_record): Rename to...
13981 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13982 (scalarize_elem): New.
13984 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
13986 * tree-sra.c (completely_scalarize_var): Rename to...
13987 (create_total_scalarization_access): ... Here. Drop call to
13988 completely_scalarize_record.
13990 (analyze_all_variable_accesses): Replace completely_scalarize_var
13991 with create_total_scalarization_access and completely_scalarize_record.
13993 2015-08-27 Alan Modra <amodra@gmail.com>
13996 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
13999 2015-08-27 Richard Biener <rguenther@suse.de>
14001 * passes.c (rest_of_decl_compilation): Guard early_global_decl
14002 call with !seen_error ().
14003 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
14004 early debug generation and finish...
14005 (symbol_table::compile): ... here to put it after a !seen_error ()
14008 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14010 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
14013 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14014 Andre Vieira <andre.simoesdiasvieira@arm.com>
14016 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
14017 (*cb<optab><mode>1): Likewise.
14018 (*tb<optab><mode>1): Likewise.
14019 (*cb<optab><mode>1): Likewise.
14020 * config/aarch64/iterators.md (inv_cb): New code attribute.
14021 (inv_tb): Likewise.
14022 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
14023 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
14025 2015-08-27 Richard Biener <rguenther@suse.de>
14027 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
14029 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
14031 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
14034 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14036 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
14039 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
14041 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
14042 floating point in VSX registers.
14043 (rs6000_output_move_128bit): Always print out the set insn if we
14044 can't generate an appropriate 128-bit move.
14045 (rs6000_generate_compare): Add support for IEEE 128-bit floating
14046 point in VSX registers comparisons.
14047 (rs6000_expand_float128_convert): Likewise.
14049 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
14050 predicate for only GPR hard registers.
14052 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
14053 modes to iterators. Add new iterators for moving 128-bit values in
14054 scalar FPR registers and VSX registers.
14055 (FMOVE128): Likewise.
14056 (FMOVE128_FPR): Likewise.
14057 (FMOVE128_GPR): Likewise.
14058 (FMOVE128_VSX): Likewise.
14059 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
14062 (IBM128): Likewise.
14063 (TFIFKF): Likewise.
14064 (RELOAD): Add IEEE 128-bit floating point modes.
14065 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
14066 floating point in VSX registers modes.
14067 (signbit<mode>2, IBM128 iterator): Likewise.
14068 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
14069 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
14070 (negtf2): Likewise.
14071 (neg<mode>2, TFIFKF iterator): Likewise.
14072 (negtf2_internal): Likewise.
14073 (abstf2): Likewise.
14074 (abs<mode>2, TFIFKF iterator): Likewise.
14075 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
14076 VSX insn support for negate, absolute value, and negative absolute
14078 (ieee_128bit_vsx_neg<mode>2): Likewise.
14079 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
14080 (ieee_128bit_vsx_abs<mode>2): Likewise.
14081 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
14082 (ieee_128bit_vsx_nabs<mode>2): Likewise.
14083 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
14084 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
14085 floating point in VSX registers.
14086 (unpack<mode>_dm): Likewise.
14087 (unpack<mode>_nodm): Likewise.
14088 (pack<mode>): Likewise.
14089 (unpackv1ti): Likewise.
14090 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
14091 (packv1ti): Likewise.
14092 (pack<mode>, FMOVE128_VSX iterator): Likewise.
14093 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
14095 (extenddftf2_internal): Likewise.
14096 (trunctfdf2): Likewise.
14097 (trunctfdf2_internal2): Likewise.
14098 (fix_trunc_helper): Likewise.
14099 (fix_trunctfdi2"): Likewise.
14100 (floatditf2): Likewise.
14101 (floatuns<mode>tf2): Likewise.
14102 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
14103 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
14104 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
14105 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
14106 (float<SDI:mode><IFKF:mode>2): Likewise.
14107 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
14109 2015-08-26 Renlin Li <renlin.li@arm.com>
14111 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
14113 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
14114 Jiong Wang <jiong.wang@arm.com>
14116 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
14117 (tlsie_tiny_<mode>): New define_insn.
14118 (tlsie_tiny_sidi): Likewise.
14119 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
14121 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
14122 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14124 (aarch64_expand_mov_immediate): Likewise.
14125 (aarch64_print_operand): Likewise.
14126 (arch64_classify_tls_symbol): Likewise.
14128 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14130 * config/arm/arm-arches.def: Replace single value flags with
14131 an initializer built from ARM_FSET_MAKE_CPU1.
14132 * config/arm/arm-cores.def: Likewise.
14133 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
14134 derivation from the ARM_CORE macro definition, use the given value
14136 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
14137 ARM_ARCH macro definition, use the given value instead.
14139 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14141 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
14143 (struct builtin_description): Replace field mask with field
14145 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
14146 (IWMMXT2_BUILTIN): Likewise.
14147 (IWMMXT2_BUILTIN2): Likewise.
14148 (FP_BUILTIN): Likewise.
14149 (CRC32_BUILTIN): Likewise.
14150 (CRYPTO_BUILTIN): Likewise.
14151 (iwmmx_mbuiltin): Likewise.
14152 (iwmmx2_mbuiltin): Likewise.
14153 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
14154 struct builtin_description.
14156 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14158 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
14159 (struct builtin_description): Change type of mask to unsigned
14161 * config/arm/arm-protos.h (insn_flags): Declare as type
14163 (tune_flags): Likewise.
14164 * config/arm/arm.c (feature_count): New.
14165 (insn_flags): Define as type arm_feature_set.
14166 (tune_flags): Likewise.
14167 (struct processors): Define field flags as type arm_feature_set.
14168 (all_cores): Update for change to struct processors.
14169 (all_architectures): Likewise.
14170 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
14172 (arm_option_override_internal): Likewise.
14173 (arm_option_override): Likewise.
14175 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
14176 Jiong Wang <jiong.wang@arm.com>
14178 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
14179 tls size for tiny, small, large memory model.
14180 (aarch64_load_symref_appropriately): Support new symbol types.
14181 (aarch64_expand_mov_immediate): Likewise.
14182 (aarch64_print_operand): Likewise.
14183 (aarch64_classify_tls_symbol): Likewise.
14184 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
14185 (aarch64_symbol_type): Likewise.
14186 * config/aarch64/aarch64.md (tlsle): Deleted.
14187 (tlsle12_<mode>): New define_insn.
14188 (tlsle24_<mode>): Likewise.
14189 (tlsle32_<mode>): Likewise.
14190 (tlsle48_<mode>): Likewise.
14191 * doc/sourcebuild.texi (AArch64-specific attributes): Document
14194 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14196 * config/arm/arm-protos.h (FL_NONE): New.
14198 (arm_feature_set): New.
14199 (ARM_FSET_MAKE): New.
14200 (ARM_FSET_MAKE_CPU1): New.
14201 (ARM_FSET_MAKE_CPU2): New.
14202 (ARM_FSET_CPU1): New.
14203 (ARM_FSET_CPU2): New.
14204 (ARM_FSET_EMPTY): New.
14205 (ARM_FSET_ANY): New.
14206 (ARM_FSET_HAS_CPU1): New.
14207 (ARM_FSET_HAS_CPU2): New.
14208 (ARM_FSET_HAS_CPU): New.
14209 (ARM_FSET_ADD_CPU1): New.
14210 (ARM_FSET_ADD_CPU2): New.
14211 (ARM_FSET_DEL_CPU1): New.
14212 (ARM_FSET_DEL_CPU2): New.
14213 (ARM_FSET_UNION): New.
14214 (ARM_FSET_INTER): New.
14215 (ARM_FSET_XOR): New.
14216 (ARM_FSET_EXCLUDE): New.
14217 (AFM_FSET_IS_EMPTY): New.
14218 (ARM_FSET_CPU_SUBSET): New.
14220 2015-08-26 Jiong Wang <jiong.wang@arm.com>
14222 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14223 SYMBOL_TLSLE to SYMBOL_TLSLE24.
14224 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14226 (aarch64_expand_mov_immediate): Likewise.
14227 (aarch64_print_operand): Likewise.
14228 (aarch64_classify_symbol): Likewise.
14230 2015-08-26 Jiong Wang <jiong.wang@arm.com>
14232 * config/aarch64/aarch64.opt (mtls-size): New entry.
14233 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
14234 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
14235 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
14237 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14239 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
14240 ARM_CORE entry. Fix some white-space.
14241 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
14242 ARM_CORE definition.
14244 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14246 * fold-const.c (fold_binary_loc) : Move Optimize
14247 root(x)*root(y) as root(x*y) to match.pd.
14248 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
14249 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
14250 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
14251 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
14252 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
14253 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
14254 (mult (exps:s @0) (exps:s @1)) : New simplifier.
14255 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
14256 (rdiv @0 (exps:s @1)) : New simplifier.
14258 2015-08-25 Joseph Myers <joseph@codesourcery.com>
14260 * gcc.c (driver::finalize): Only assign to extra_specs if
14263 2015-08-25 Marek Polacek <polacek@redhat.com>
14265 PR middle-end/67330
14266 * varasm.c (declare_weak): Return after giving an error.
14268 2015-08-25 David Malcolm <dmalcolm@redhat.com>
14270 * gcc-main.c (main): Add params to driver ctor.
14271 * gcc.c (class env_manager): New.
14273 (env_manager::init): New.
14274 (env_manager::get): New.
14275 (env_manager::xput): New.
14276 (env_manager::restore): New.
14277 Poison getenv and putenv.
14278 (DEFAULT_TARGET_SYSTEM_ROOT): New.
14279 (target_system_root): Update initialization to use
14280 DEFAULT_TARGET_SYSTEM_ROOT.
14281 (struct spec_list): Add field "default_ptr".
14282 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
14283 (init_spec): Likewise.
14284 (set_spec): Clear field "default_ptr".
14285 (read_specs): Free "spec" and "buffer".
14286 (xputenv): Reimplement in terms of env_manager.
14287 (process_command): Replace ::getenv calls with calls to the
14288 env_manager singleton.
14289 (process_brace_body): Free string in three places.
14290 (driver::driver): New.
14291 (driver::~driver): New.
14292 (used_arg): Convert from a function to...
14293 (class used_arg_t): ...this class, and...
14294 (used_arg): ...this new global instance.
14295 (used_arg_t::finalize): New function.
14296 (getenv_spec_function): Add "const" to local "value". Replace
14297 ::getenv call with call to the env_manager singleton.
14298 (path_prefix_reset): New function.
14299 (driver::finalize): New function.
14300 * gcc.h (driver::driver): New.
14301 (driver::~driver): New.
14302 (driver::finalize): New.
14304 2015-08-25 Nathan Sidwell <nathan@acm.org>
14306 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
14307 target doesn't have one.
14309 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
14312 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
14314 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
14317 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
14318 a define_insn, remove second alternative.
14320 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
14321 Joseph Myers <joseph@codesourcery.com>
14323 * gcc.c (struct switchstr): Expand comment.
14325 2015-08-25 Nathan Sidwell <nathan@acm.org>
14327 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
14328 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
14330 2015-08-25 Richard Biener <rguenther@suse.de>
14332 PR middle-end/67306
14333 * genmatch.c (expr::gen_transform): Verify the result of
14334 builtin_decl_implicit.
14335 (dt_simplify::gen_1): Likewise.
14337 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
14339 * config/arm/constraints.md: Also list Cs and US ARM-specific
14340 constraints as used.
14342 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
14345 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
14347 (nonpic_symbol_mentioned_p): Likewise.
14348 (sh_delegitimize_address): Likewise.
14349 (sh_function_ok_for_sibcall): Take into account weak symbols.
14350 (sh_expand_sym_label2reg): New.
14351 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
14352 * config/sh/sh.md (UNSPEC_PCREL): New enum.
14353 (call_pcrel): Use sh_expand_sym_label2reg.
14354 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14355 (symPCREL_label2reg) New expand.
14357 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
14359 * graphite-poly.c: Change type of region from void* to sese.
14360 * graphite-poly.h (struct scop): Changing the type of scop::region
14361 from void* to sese. Change accessor macro accordingly.
14362 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
14364 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
14366 * graphite-scop-detection.c (stmt_simple_for_scop_p):
14367 Constrain only on INTEGER_TYPE.
14369 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14372 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
14373 -mefficient-unaligned-vsx on ISA 2.7.
14375 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
14376 option to a masked option.
14378 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
14379 logic for -mefficient-unaligned-vsx so that it is set via an arch
14380 ISA option, instead of being set if -mtune=power8 is set. Move
14381 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
14382 near other default option handling.
14384 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14386 * genflags.c (gen_macro): Delete.
14387 (gen_proto): Don't create GEN.*CALL.* macros.
14388 * gensupport.h (get_file_location): Declare.
14389 * gensupport.c (rtx_locs): New variable.
14390 (read_md_rtx): Record rtx locations.
14391 (get_file_location): New function.
14392 * target-insns.def (call, call_pop, call_value, call_value_pop)
14393 (sibcall, sibcall_value): New patterns.
14394 * gentarget-def.c (parse_argument): New function.
14395 (def_target_insn): Use it. Handle optional operands. Raise an
14396 error if an .md pattern has the wrong number of operands for the
14397 pattern name. Remove the names of unused operands from the prototype.
14398 * builtins.c (expand_builtin_apply): Use targetm functions
14399 instead of HAVE_call_value and GEN_CALL_VALUE.
14400 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
14401 and sibcall_value_pop.
14402 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
14404 * config/alpha/alpha.md (untyped_call): Likewise.
14405 * config/iq2000/iq2000.md (untyped_call): Likewise.
14406 * config/m68k/m68k.md (untyped_call): Likewise.
14407 * config/mips/mips.md (untyped_call): Likewise.
14408 * config/pa/pa.md (untyped_call): Likewise.
14409 * config/rs6000/rs6000.md (untyped_call): Likewise.
14410 * config/sparc/sparc.md (untyped_call): Likewise.
14411 * config/tilegx/tilegx.md (untyped_call): Likewise.
14412 * config/tilepro/tilepro.md (untyped_call): Likewise.
14413 * config/visium/visium.md (untyped_call): Likewise.
14414 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
14415 gen_call_value instead of GEN_CALL_VALUE.
14416 * config/arm/arm.md (untyped_call): Likewise.
14417 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
14420 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14422 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
14423 (have_cbranchcc4): New variable.
14424 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
14425 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
14426 (if_convert): Initialize have_cbranchcc4.
14428 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14430 * builtins.c (expand_cmpstrn): Rename to...
14431 (expand_cmpstrn_or_cmpmem): ...this.
14432 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
14433 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
14434 Remove mode argument.
14435 (expand_builtin): Update accordingly.
14437 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14439 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
14440 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
14441 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
14442 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
14443 Add predicates for operands 0 and 3.
14444 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
14446 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
14447 immediate_operand to nonmemory_operand.
14449 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14451 * df-scan.c (df_insn_info_init_fields): New function, split out
14453 (df_insn_create_insn_record): ...here.
14454 (df_insn_info_free_fields): New function, split out from...
14455 (df_insn_info_delete): ...here.
14456 (df_insn_rescan): Use the new functions instead of freeing and
14457 reallocating the df_insn_info.
14459 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14461 * doc/install.texi (Binaries): Remove links no longer valid.
14463 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14465 * config/nvptx/mkoffload.c (process): Replace
14466 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
14468 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
14471 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
14473 2015-08-24 Renlin Li <renlin.li@arm.com>
14475 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
14476 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
14477 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
14478 * config/arm/constraints.md ("j"): Add check for high code.
14480 2015-08-24 Tom de Vries <tom@codesourcery.com>
14482 PR tree-optimization/65468
14483 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
14486 2015-08-24 Nathan Sidwell <nathan@acm.org>
14488 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
14489 change to nvptx_type_from_mode call. Use arg_promotion for both
14490 split and non-split args.
14492 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14494 * target-insns.def (movstr): New pattern.
14495 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
14496 (expand_movstr): Use targetm rather than HAVE_movstr/
14499 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14501 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
14504 2015-08-24 Andrew Pinski <apinski@cavium.com>
14506 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
14507 AARCH64_EXTRA_TUNING_OPTION.
14508 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
14510 (aarch64_extra_tuning_flags): Base the shifted value on the index
14511 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
14512 * config/aarch64/aarch64.c: Remove the last argument to
14513 AARCH64_EXTRA_TUNING_OPTION.
14515 2015-08-23 Nathan Sidwell <nathan@acm.org>
14517 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
14519 (nvptx_declare_function_name): Insert formatting tabs for
14522 2015-08-23 Tom de Vries <tom@codesourcery.com>
14524 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
14525 parm_decl, rather than generating a dummy default def in cfun.
14526 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
14527 ssa_name from cfun and child_fn do not share a stmt as def stmt.
14528 (move_stmt_op): Handle PARM_DECl.
14529 (gather_ssa_name_hash_map_from): New function.
14530 (move_sese_region_to_fn): Add default defs for function params, and add
14531 them to vars_map. Release copied ssa names.
14532 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
14534 2015-08-23 Tom de Vries <tom@codesourcery.com>
14536 * doc/sourcebuild.texi: Rename vect_no_int_max with
14537 vect_no_int_min_max. Update description.
14539 2015-08-22 Andrew Pinski <apinski@cavium.com>
14541 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
14542 * config/aarch64/aarch64-protos.h
14543 (aarch64_fusion_pairs_index): New enum.
14544 (aarch64_fusion_pairs): Base the shifted value on the index instead
14545 Rewrite AARCH64_FUSE_ALL to be based on the end index.
14546 of the argument to AARCH64_FUSION_PAIR.
14547 * config/aarch64/aarch64.c: Remove the last argument to
14548 AARCH64_FUSION_PAIR.
14550 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
14552 * dominance.c (new_zero_array): Define.
14553 (dom_info): Redefine as class with proper encapsulation.
14554 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
14556 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
14557 allocations/deallocations. Pass function as parameter (instead of
14559 (dom_info::get_idom): Define accessor method.
14560 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
14561 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
14562 (calculate_dominance_info): Adjust to use dom_info class.
14563 (verify_dominators): Likewise.
14565 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
14567 * print-rtl.c (print_rtx): Check the correct range for
14568 flag_dump_unnumbered_links to behave as documented.
14570 PR rtl-optimization/67227
14571 PR rtl-optimization/64164
14572 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
14573 (nonoverlapping_memrefs_p): Test offsets and sizes when given
14574 identical gimple_reg exprs.
14576 2015-08-21 Nathan Sidwell <nathan@acm.org>
14578 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
14580 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
14581 crtl->stack_alignment_needed to determine alignment.
14582 (nvptx_get_drap_rtx): New.
14583 (TARGET_GET_DRAP_RTX): Override.
14584 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
14586 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14588 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
14590 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14592 * configure.ac: Remove uwin* cases.
14593 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
14594 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
14595 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
14596 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
14597 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
14598 i[34567]86-*-uwin*, powerpc-*-beos*.
14600 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
14602 * gencodes.c (gencodes): Print the comma for the preceding
14603 enum value rather than the current one. Use aliased enum values
14604 rather than #defines for compiled-out patterns.
14605 (main): Update accordingly. Replace LAST_INSN_CODE with
14607 * lra.c (insn_code_data): Update accordingly.
14608 (finish_insn_code_data_once, get_static_insn_data): Likewise.
14609 * recog.h (target_recog): Likewise.
14610 (preprocess_insn_constraints): Change parameter to unsigned int.
14611 * recog.c (preprocess_insn_constraints): Likewise.
14612 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
14613 * tree-vect-stmts.c (vectorizable_operation): Simplify.
14615 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
14617 PR rtl-optimization/61657
14618 * loop-iv.c (iv_number_of_iterations): Declare up and down as
14619 unsigned. Remove superflous uint64_t cast.
14621 2014-08-21 Felix Yang <felix.yang@huawei.com>
14622 Jiji Jiang <jiangjiji@huawei.com>
14624 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
14625 argument and get builtin function code directly from CALL.
14626 (gimple_stringop_fixed_value): Modified accordingly.
14627 (gimple_stringops_transform, gimple_stringops_values_to_profile):
14628 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
14630 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
14632 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
14634 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14636 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
14638 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
14639 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
14640 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
14641 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
14642 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
14643 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
14644 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
14645 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
14646 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
14647 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
14649 * match.pd (SIN ) : New Operator.
14650 (TAN) : New Operator.
14651 (mult (SQRT@1 @0) @1) : New simplifier.
14652 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
14653 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
14654 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
14655 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
14656 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
14657 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
14658 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
14659 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
14660 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
14661 (rdiv @0 (POW:s @1 @2)) : New simplifier.
14663 2015-08-21 Bin Cheng <bin.cheng@arm.com>
14665 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
14666 loop if EXPR is simplified to const value.
14668 2015-08-21 Yury Gribov <y.gribov@samsung.com>
14670 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
14671 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
14673 2015-08-21 Richard Biener <rguenther@suse.de>
14675 PR middle-end/67285
14676 * gimple-fold.c (replace_stmt_with_simplification): Assert
14677 seq is empty when replacing a call with itself but different
14679 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
14680 a call require that it is const.
14682 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14684 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
14685 * builtins.c (get_object_alignment_2): Adjust.
14686 * varasm.c (align_variable): Likewise.
14687 (get_variable_align): Likewise.
14688 (build_constant_desc): Likewise.
14689 (force_const_mem): Likewise.
14690 * doc/tm.texi.in: Likewise.
14691 * doc/tm.texi: Regenerate.
14693 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14695 * genconfig.c (main): Always define HAVE_cc0.
14696 * recog.c (rest_of_handle_peephole2): Adjust.
14698 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14700 * reorg.c (relax_delay_slots): Don't use #if to check value of
14703 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14705 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
14706 * targhooks.c (default_have_conditional_execution): Adjust.
14708 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
14710 * rtl.h (rtvec_all_equal_p): Declare.
14711 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
14712 * rtl.c (rtvec_all_equal_p): New function.
14713 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
14714 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
14715 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
14716 * config/arm/arm.c (neon_vdup_constant): Likewise.
14717 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
14718 * config/tilegx/constraints.md (W, Y): Likewise.
14719 * config/tilepro/constraints.md (W, Y): Likewise.
14720 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
14721 (classify_immediate): Use unwrap_const_vec_duplicate.
14722 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
14723 (reg_or_v2s8bit_operand): Likewise.
14724 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
14725 (reg_or_v4s8bit_operand): Likewise.
14727 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14729 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
14730 (vec_shasigma_be): New #define.
14731 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
14732 (VPMSUMH): Likewise.
14733 (VPMSUMW): Likewise.
14734 (VPMSUMD): Likewise.
14735 (VPMSUM): New BU_P8V_OVERLOAD_2.
14736 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
14737 entries for VEC_MADD and VEC_VPMSUM.
14739 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
14741 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
14742 Multiply argument avr_n_flash by 64 to match unit of "KiB".
14743 (avr_pgm_check_var_decl): Same.
14745 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
14747 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
14748 initialization of HFmode scalar type (float16_t) to...
14749 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
14752 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
14754 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
14755 having an -mfp16-format.
14757 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
14759 * config/i386/predicates.md (vector_all_ones_operand): Use
14760 CONSTM1_RTX to simplify definition.
14762 2015-08-20 Richard Biener <rguenther@suse.de>
14764 * toplev.c (compile_file): Remove loop calling late_global_decl
14766 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
14767 on decls we assembled.
14769 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
14771 * common/config/aarch64/aarch64-common.c
14772 (AARCH64_CPU_NAME_LENGTH): Delete.
14773 (aarch64_option_extension): New.
14774 (all_extensions): Likewise.
14775 (processor_name_to_arch): Likewise.
14776 (arch_to_arch_name): Likewise.
14778 (all_architectures): Likewise.
14779 (aarch64_get_extension_string_for_isa_flags): Likewise.
14780 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
14781 architecture names.
14782 * config/aarch64/aarch64-protos.h
14783 (aarch64_get_extension_string_for_isa_flags): New.
14784 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
14785 (aarch64_option_print): Get the string to print from
14786 aarch64_get_extension_string_for_isa_flags.
14787 (aarch64_declare_function_name): Likewise.
14788 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
14789 (MCPU_TO_MARCH_SPEC): This.
14790 (ASM_CPU_SPEC): Use it.
14791 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
14792 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
14793 (EXTRA_SPEC_FUNCTIONS): Use it.
14795 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
14797 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
14798 expansion when !ISA_HAS_LWL_LWR.
14799 (mips_block_move_straight): Update the size of elements copied to
14800 account for alignment when !ISA_HAS_LWL_LWR.
14801 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
14803 2015-08-19 Jiong Wang <jiong.wang@arm.com>
14805 * expr.c (expand_expr_real_2): Check gimple statement during
14806 LSHIFT_EXPR expand.
14808 2015-08-19 Magnus Granberg <zorry@gentoo.org>
14810 * common.opt (fstack-protector): Initialize to -1.
14811 (fstack-protector-all): Likewise.
14812 (fstack-protector-strong): Likewise.
14813 (fstack-protector-explicit): Likewise.
14814 * configure.ac: Add --enable-default-ssp.
14815 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
14816 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
14818 * doc/install.texi: Document --enable-default-ssp.
14819 * config.in: Regenerated.
14820 * configure: Likewise.
14822 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
14824 PR rtl-optimization/64164
14825 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
14826 (parm_in_stack_slot_p): ... this. Disregard mode, what
14827 matters is whether the parm will live in a pseudo or a stack
14829 (expand_one_ssa_partition): Deal with params without a default
14830 def. Disregard mode.
14831 * cfgexpand.h: Renamed function declaration.
14832 * tree-ssa-coalesce.c: Adjust.
14833 * function.c (split_complex_args): Allocate stack slot for
14834 unassigned parms before splitting.
14835 (parm_in_unassigned_mem_p): New. Use it instead of
14836 parm_maybe_byref_p throughout this file.
14837 (assign_parm_setup_block): Use it. Accept pseudos in the
14838 expand-assigned rtl.
14839 (assign_parm_setup_reg): Drop BLKmode requirement.
14840 (assign_parm_setup_stack): Allocate and fill in the address of
14841 unassigned MEM parms.
14843 2015-08-19 David Sherwood <david.sherwood@arm.com>
14845 * genmodes.c (emit_mode_unit_size_inline): New function.
14846 (emit_mode_unit_precision_inline): New function.
14847 (emit_insn_modes_h): Emit new #define. Emit new functions.
14848 (emit_mode_unit_size): New function.
14849 (emit_mode_unit_precision): New function.
14850 (emit_mode_adjustments): Add mode_unit_size adjustments.
14851 (emit_insn_modes_c): Emit new arrays.
14852 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
14853 use new inline methods.
14855 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14857 * config/aarch64/aarch64.c (bit_count): Delete prototype
14859 (aarch64_print_operand): Use popcount_hwi instead of the above.
14861 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14863 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
14866 2015-08-19 Marek Polacek <polacek@redhat.com>
14868 PR middle-end/67133
14869 * gimple-ssa-isolate-paths.c
14870 (insert_trap_and_remove_trailing_statements): Rename to ...
14871 (insert_trap): ... this. Don't remove trailing statements; split
14873 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
14875 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
14878 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
14879 conditionalize the whole on __GNUC__. Add fallback code
14880 depending neither on undefined nor implementation-defined behaviour.
14882 2015-08-19 Jiong Wang <jiong.wang@arm.com>
14884 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
14885 whitespaces with tab.
14887 2015-08-19 Florian Weimer <fweimer@redhat.com>
14889 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
14890 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
14891 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
14892 Move Name_Ids instantiation to the Prj.Proc package, to avoid
14895 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14897 * config/arm/arm.c (bounds_check): Use %wd print format
14898 for HOST_WIDE_INT arguments.
14900 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
14902 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
14903 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
14904 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
14905 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
14906 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
14907 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
14908 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
14909 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
14910 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
14913 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
14915 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
14916 function.c, graphite-scop-detection.c, haifa-sched.c,
14917 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
14918 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
14919 varasm.c: Remove typedefs of structs.
14921 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
14923 * config/rs6000/altivec.h (vec_adde): New define.
14924 (vec_addec): Likewise.
14925 (vec_double): Likewise.
14926 (vec_bperm): Likewise.
14927 (vec_gb): Likewise.
14928 * config/rs6000/rs6000-builtin.def (ADDE): New
14929 BU_ALTIVEC_OVERLOAD_3.
14931 (DOUBLE): New BU_VSX_OVERLOAD_1.
14932 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
14933 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
14934 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
14935 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
14936 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
14937 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
14938 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
14939 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
14940 and P8V_BUILTIN_VEC_VBPERMQ.
14942 2015-08-18 Jason Merrill <jason@redhat.com>
14944 * print-tree.c (print_node): Handle TREE_BINFO.
14946 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14948 PR middle-end/36757
14949 * builtins.c (expand_builtin_signbit): Add asserts to make sure
14950 we can expand BUILT_IN_SIGNBIT inline.
14951 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
14952 * doc/extend.texi: Document the type-generic __builtin_signbit.
14954 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
14956 PR rtl-optimization/67218
14957 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
14958 (simplify_unary_operation_1): Use it.
14960 2015-08-18 Marek Polacek <polacek@redhat.com>
14962 PR middle-end/67222
14963 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
14964 if the call isn't valid.
14965 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
14966 gimple_call_builtin_p.
14967 (call_may_clobber_ref_p_1): Likewise.
14968 (stmt_kills_ref_p): Likewise.
14970 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
14972 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
14973 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
14974 (mips_hard_regno_scratch_ok): Likewise.
14975 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
14976 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
14978 2015-08-18 Bin Cheng <bin.cheng@arm.com>
14980 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
14981 (determine_value_range): Call refine_value_range_using_guard for
14982 each loop initial condition to improve value range.
14984 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
14986 * config/i386/i386.c: Remove include of fibheap.h.
14988 2015-08-17 Richard Biener <rguenther@suse.de>
14990 PR tree-optimization/67221
14991 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
14992 (sccvn_dom_walker::before_dom_children): Mark backedges of
14993 non-executable blocks as not executable.
14995 2015-08-17 David Sherwood <david.sherwood@arm.com>
14997 * config/arm/arm.c (neon_element_bits): Replace call to
14998 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
14999 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
15000 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
15001 (neon_vdup_lane<mode>): Likewise.
15002 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
15003 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
15004 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
15005 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
15006 * config/spu/spu.c (arith_immediate_p): Likewise.
15007 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
15008 * expr.c (expand_expr_real_2): Likewise.
15009 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
15010 * simplify-rtx.c (simplify_immed_subreg): Likewise.
15011 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
15012 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
15014 * fold-const.c (fold_binary_loc): Replace call to
15015 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
15016 GET_MODE_UNIT_PRECISION (m).
15018 2015-08-17 Mike Stump <mikestump@comcast.net>
15020 * config/arm/arm.c (arm_block_move_unaligned_straight):
15021 Emit normal move instead of unaligned load when source or destination
15022 are appropriately aligned.
15024 2015-08-17 Richard Biener <rguenther@suse.de>
15025 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15027 PR middle-end/16107
15028 * match.pd (div (coss (op @0) : New simplifier.
15030 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
15032 PR rtl-optimization/64164
15034 PR middle-end/66983
15035 PR rtl-optimization/67000
15036 PR middle-end/67034
15037 PR middle-end/67035
15038 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15039 * tree-ssa-copyrename.c: Removed.
15040 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15041 -ftree-coalesce-vars.
15042 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15043 * common.opt (ftree-copyrename): Ignore.
15044 (ftree-coalesce-inlined-vars): Likewise.
15045 * doc/invoke.texi: Remove the ignored options above.
15046 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15047 * tree-ssa-coalesce.h: ... here.
15048 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15049 headers required by it.
15050 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15051 across variables when flag_tree_coalesce_vars. Check register
15052 use and promoted modes to allow coalescing. Do not coalesce
15053 maybe-byref parms with SSA_NAMEs of other variables, or
15054 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
15055 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15056 with its member functions to tree-ssa-coalesce.c.
15057 (var_map_base_init): Likewise. Renamed to
15058 compute_samebase_partition_bases.
15059 (partition_view_normal): Drop want_bases parameter.
15060 (partition_view_bitmap): Likewise.
15061 * tree-ssa-live.h: Adjust declarations.
15062 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
15063 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15064 default defs at the entry point.
15065 (dump_part_var_map): New.
15066 (compute_optimized_partition_bases): New, called by...
15067 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15068 of compute_samebase_partition_bases. Adjust.
15069 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15070 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
15071 (ssa_default_def_partition): New.
15072 (get_rtl_for_parm_ssa_default_def): New.
15073 (align_local_variable, add_stack_var): Support anonymous SSA
15075 (defer_stack_allocation): Likewise. Declare earlier.
15076 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15077 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15078 Do no record deferred-allocation marker in
15079 SA.partition_to_pseudo.
15080 (expand_stack_vars): Adjust check for the marker in it.
15081 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15082 redundant MEM attr setting.
15083 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15085 (expand_one_stack_var): ... this. New wrapper to check and
15086 skip already expanded SSA partitions.
15087 (record_alignment_for_reg_var): New, factored out of...
15088 (expand_one_var): ... this.
15089 (expand_one_ssa_partition): New.
15090 (adjust_one_expanded_partition_var): New.
15091 (expand_one_register_var): Check and skip already expanded SSA
15093 (expand_used_vars): Don't create DECLs for anonymous SSA
15094 names. Expand all SSA partitions, then adjust all SSA names.
15095 (pass::execute): Replace the loops that set
15096 SA.partition_to_pseudo from partition leaders and cleared
15097 DECL_RTL for multi-location variables, and that which used to
15098 rename vars and set attrs, with one that clears DECL_RTL and
15099 checks that PARMs and RESULTs default_defs match DECL_RTL.
15100 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15101 * emit-rtl.c: Include stor-layout.h.
15102 (set_reg_attrs_for_parm): Handle NULL decl.
15103 (set_reg_attrs_for_decl_rtl): Take mode from expression if
15105 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
15106 rather than its possibly-NULL DECL.
15107 * explow.c (promote_ssa_mode): New.
15108 * explow.h (promote_ssa_mode): Declare.
15109 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15110 (read_complex_part): Export.
15111 * expr.h (read_complex_part): Declare.
15112 * cfgexpand.h (parm_maybe_byref_p): Declare.
15113 * function.c: Include cfgexpand.h.
15114 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15115 (use_register_for_parm_decl): Wrapper for the above to
15116 special-case the result_ptr.
15117 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15118 (split_complex_args): Take assign_parm_data_all argument.
15119 Pass it to rtl_for_parm. Set up rtl and context for split
15120 args. Reset complex parm before fetching its default decl
15122 (assign_parms_unsplit_complex): Use the default-def complex
15123 parm rtl if it matches the components.
15124 (assign_parms_augmented_arg_list): Adjust.
15125 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15126 multiple locations. Recognize split complex args.
15127 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15128 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15129 (assign_parm_setup_block): Prefer SSA-assigned location, and
15130 fill in its address if the memory location of a maybe-byref
15131 parm was not assigned by cfgexpand.
15132 (assign_parm_setup_reg): Likewise. Adjust its mode as
15133 needed. Use entry_parm for equiv if stack_parm is NULL. Make
15134 sure passed_pointer parms don't need conversion. Copy address
15135 or value as needed.
15136 (assign_parm_setup_stack): Prefer SSA-assigned location.
15137 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15138 rtl before testing for pointer bounds. Special-case result_ptr.
15139 (expand_function_start): Maybe reset DECL_RTL of result.
15140 Prefer SSA-assigned location for result and static chain.
15141 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
15142 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
15143 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15144 anonymous SSA names. Use promote_ssa_mode.
15145 (get_temp_reg): Likewise.
15146 (remove_ssa_form): Adjust.
15147 * stor-layout.c (layout_decl): Don't set mem attributes of
15149 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15150 and get its reg_usage for reg invalidation.
15151 (compute_bb_dataflow): Pass it insn.
15152 (emit_notes_in_bb): Likewise.
15154 2015-08-14 Marek Polacek <polacek@redhat.com>
15156 * tree-core.h (tree_base): Fix typo.
15158 2015-08-14 Marek Polacek <polacek@redhat.com>
15160 PR middle-end/67133
15161 * gimple.c (infer_nonnull_range_by_attribute): Check that the
15162 nonnull argument position is not outside function arguments.
15164 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
15167 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
15168 'lconst_atomic' with 'const_atomic'.
15169 (atomic_fetch_<optab><mode>): Likewise.
15170 (atomic_<optab>_fetch<mode>): Likewise.
15171 * config/aarch64/iterators.md (lconst-atomic): Move below
15173 (const_atomic): New.
15175 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
15176 Bernd Schmidt <bernds@codesourcery.com>
15178 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
15180 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
15181 (DWARF2_DEBUGGING_INFO): Don't define.
15182 * debug.h (dwarf2_lineno_debug_hooks): Declare.
15183 * toplev.c (process_options): Add a case for it.
15184 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
15185 (dwarf2out_init): Skip most initializations if
15186 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
15188 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
15189 DWARF2_LINENO_DEBUGGING_INFO.
15190 * opts.c (set_debug_level): Likewise.
15192 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
15194 * config/arm/types.md (is_neon_type): Add missing types.
15196 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
15198 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
15200 * config/i386/i386.c (PTA_SKYLAKE): New macros.
15201 (processor_alias_table): Add skylake description.
15202 (enum processor_model): Add skylake processor.
15203 (arch_names_table): Add skylake record.
15204 * doc/invoke.texi: Add skylake item.
15206 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
15208 * ira-int.h: Include recog.h.
15209 * ira-build.c: Don't include recog.h.
15210 * ira-color.c: Likewise.
15211 * ira-conflicts.c: Likewise.
15212 * ira-costs.c: Likewise.
15213 * ira-emit.c: Likewise.
15214 * ira-lives.c: Likewise.
15216 * sched-deps.c: Likewise.
15217 * sel-sched.c: Likewise.
15218 * target-globals.c: Likewise.
15220 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
15223 * reload1.c (elimination_costs_in_insn): Make it obvious to the
15224 compiler that the n_dups and n_operands loop bounds are invariant.
15226 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15228 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
15229 expressions in A and B.
15231 2015-08-13 Richard Biener <rguenther@suse.de>
15233 * tree.c (nonnull_arg_p): Move from ...
15234 * tree-vrp.c (nonnull_arg_p): ... here.
15235 * tree.h (nonnull_arg_p): Declare.
15236 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
15237 here, register ptr != 0 for nonnull_arg_p pointer arguments.
15238 Properly initialize static chain and by-reference result pointer.
15239 (run_scc_vn): Adjust.
15241 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
15243 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
15246 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
15248 * config/aarch64/aarch64-protos.h
15249 (aarch64_gen_atomic_cas): Declare.
15250 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
15251 Choose appropriate instruction pattern for the target.
15252 (aarch64_gen_atomic_cas): New.
15253 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
15254 (atomic_compare_and_swap<mode>_1): Rename to
15255 aarch64_compare_and_swap<mode>. Fix some indentation.
15256 (aarch64_compare_and_swap<mode>_lse): New.
15257 (aarch64_atomic_cas<mode>): New.
15259 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
15261 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
15264 2015-08-13 Richard Biener <rguenther@suse.de>
15266 PR tree-optimization/67191
15267 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
15268 assert we value-numbered last stmts operand because it can validly
15269 trigger for unreachable code.
15271 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15273 PR rtl-optimization/67103
15274 * ifcvt.c (noce_try_store_flag_constants): Move
15275 x = (-(test != 0) & (b - a)) + a transformation to...
15276 (noce_try_cmove): ... Here. Try it if normal conditional
15279 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
15281 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
15283 * config/mips/mips.md (processor): Remove w32 and w64.
15285 2015-08-13 Richard Biener <rguenther@suse.de>
15287 PR tree-optimization/66502
15288 PR tree-optimization/67167
15289 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
15290 backedge arguments.
15291 (vn_phi_lookup): Adjust.
15292 (vn_phi_insert): Likewise.
15293 (visit_phi): Prefer to value-number to another PHI node
15294 over value-numbering to a PHI argument.
15295 (init_scc_vn): Mark DFS back edges.
15297 2015-08-13 Richard Biener <rguenther@suse.de>
15299 * gimple.h (gcall::code_): New constant static member.
15300 (gcond::code_): Likewise.
15301 * gimple.c (gcall::code_): Define.
15302 (gcond::code_): Likewise.
15303 (is_a_helper <const gcond *>): Add.
15304 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
15305 and forward to a new gcall overload with less checking and a
15306 cheaper way to access the operand.
15307 (gimple_call_lhs_ptr): Likewise.
15308 (gimple_call_set_lhs): Likewise.
15309 (gimple_call_internal_p): Likewise.
15310 (gimple_call_with_bounds_p): Likewise.
15311 (gimple_call_set_with_bounds): Likewise.
15312 (gimple_call_internal_fn): Likewise.
15313 (gimple_call_set_ctrl_altering): Likewise.
15314 (gimple_call_ctrl_altering_p): Likewise.
15315 (gimple_call_fntype): Likewise.
15316 (gimple_call_fn): Likewise.
15317 (gimple_call_fn_ptr): Likewise.
15318 (gimple_call_set_fndecl): Likewise.
15319 (gimple_call_fndecl): Likewise.
15320 (gimple_call_chain): Likewise.
15321 (gimple_call_num_args): Likewise.
15322 (gimple_call_arg): Likewise.
15323 (gimple_call_arg_ptr): Likewise.
15324 (gimple_call_set_arg): Likewise.
15325 (gimple_call_noreturn_p): Likewise.
15326 (gimple_cond_code): Likewise.
15327 (gimple_cond_lhs): Likewise.
15328 (gimple_cond_rhs): Likewise.
15329 (gimple_has_lhs): Reduce checking.
15331 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15333 PR middle-end/25529
15334 * match.pd (div (mult @0 @1) @1) : New simplifier.
15336 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15339 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
15340 predicate to allow construction of vector constants using the
15341 VSLDOI vector shift instruction.
15343 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
15346 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
15347 the number of bytes to be shifted left and filled in with either
15348 all zero or all one bits.
15349 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
15351 (output_vec_const_move): On power8, generate XXLORC to generate
15352 a vector constant with all 1's. Do a split if we need to use a
15353 VSLDOI instruction.
15355 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
15356 properly test for the MSB.
15358 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
15359 vector constants that can be created with VSLDOI.
15361 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
15364 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15365 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15366 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15367 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15368 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15369 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15370 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15371 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15372 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15374 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
15376 * config/xtensa/constraints.md (define_constraint "Y"): New
15378 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
15379 * config/xtensa/linux.h (ASM_SPEC): Likewise.
15380 * config/xtensa/predicates.md (move_operand): Match constants
15381 and symbols in the presence of TARGET_AUTO_LITPOOLS.
15382 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
15383 immediate references to TLS data.
15384 (xtensa_emit_move_sequence): Don't force constants to memory in
15385 the presence of TARGET_AUTO_LITPOOLS.
15386 (print_operand): Add 'y' format, same as default, but capable of
15387 printing SF mode constants as well.
15388 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
15389 (movsf_internal): Add movi pattern that loads literal.
15390 (movsf, movdf): Don't force constants to memory in the presence
15391 of TARGET_AUTO_LITPOOLS.
15392 (movdf_internal): Add 'Y' constraint.
15393 * config/xtensa/xtensa.opt (mauto-litpools): New option.
15394 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
15396 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
15398 * config/arm/arm-fpus.def: Replace booleans with feature flags.
15400 * config/arm/arm.c (ARM_FPU): Update macro.
15401 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
15402 (TARGET_FP16): Likewise.
15403 (TARGET_CRYPTO): Likewise.
15404 (TARGET_NEON): Likewise.
15405 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
15408 2015-08-12 Tom de Vries <tom@codesourcery.com>
15412 * doc/install.texi: Remove --with_host_libstdcxx item. Update
15413 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
15414 accordingly. Mention default for --with-stage1-ldflags.
15416 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
15418 * config/arm/arm.h (arm_fpu_feature_set): New.
15419 (ARM_FPU_FSET_HAS): New.
15420 (FPU_FL_NONE): New.
15421 (FPU_FL_NEON): New.
15422 (FPU_FL_FP16): New.
15423 (FPU_FL_CRYPTO): New.
15425 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15427 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
15428 after -mcmodel=large -fPIC sorry.
15430 2015-08-12 Richard Biener <rguenther@suse.de>
15432 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
15433 comparison operand order and commutative ternary op operand order.
15434 (sccvn_dom_walker::cond_stack): New state to track temporary
15436 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
15438 (sccvn_dom_walker::record_cond): Add a single temporary conditional
15440 (sccvn_dom_walker::record_conds): Add a temporary conditional
15441 expressions and all related expressions also true/false.
15442 (sccvn_dom_walker::before_dom_children): Record temporary
15443 expressions based on the controlling condition of a single
15444 predecessor. When trying to simplify a conditional statement
15445 lookup expressions we might have inserted earlier.
15447 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
15450 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
15451 to ARM core registers.
15453 2015-08-12 Nathan Sidwell <nathan@acm.org>
15455 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
15456 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
15458 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
15460 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
15461 line with comments.
15462 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
15464 2015-08-12 Richard Biener <rguenther@suse.de>
15466 * gimple.h (remove_pointer): New trait.
15467 (GIMPLE_CHECK2): New inline template function.
15468 (gassign::code_): New constant static member.
15469 (is_a_helper<const gassign *>): Add.
15470 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
15471 and forward to a new gassign overload with less checking and a
15472 cheaper way to access the operand.
15473 (gimple_assign_lhs_ptr): Likewise.
15474 (gimple_assign_set_lhs): Likewise.
15475 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
15477 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
15479 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
15481 (gimple_assign_rhs_code): Likewise.
15482 * gimple.c (gassign::code_): Define.
15484 2015-08-12 Richard Biener <rguenther@suse.de>
15486 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15487 Eliminate edges marked as not executable by SCCVN.
15488 * tree-ssa-sccvn.c: Include gimple-iterator.h.
15489 (cond_dom_walker): Rename to sccvn_dom_walker.
15490 (sccvn_dom_walker::before_dom_children): Value-number defs
15492 (run_scc_vn): Remove loop value-numbering all SSA names.
15493 Drop not visited SSA names to varying.
15495 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
15497 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15498 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15499 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15500 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15501 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15502 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15503 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15504 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15505 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15507 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
15510 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
15511 to enum feature_priority and feature_list.
15512 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
15513 and isa_names_table.
15515 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
15517 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
15518 vect_induction_def.
15520 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
15524 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
15525 account when deciding what was the command-line status.
15527 2015-08-11 Nathan Sidwell <nathan@acm.org>
15529 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
15531 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
15532 we're not the only contributor to target phi.
15534 2015-08-11 Jiong Wang <jiong.wang@arm.com>
15536 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
15539 2015-08-11 Tom de Vries <tom@codesourcery.com>
15541 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
15543 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
15545 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
15547 * config/i386/i386.md (cpu): Remove knl.
15549 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15552 PR middle-end/66332
15553 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
15554 open-coded sequence.
15555 * omp-low.c (oacc_process_reduction_data): Remove handline of
15556 GOMP_DEVICE_HOST_NONSHM.
15558 * lto-streamer-in.c (lto_input_mode_table): Adjust to
15559 GET_MODE_INNER changes.
15561 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15562 Ilya Verbin <ilya.verbin@intel.com>
15564 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
15566 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
15568 * doc/options.texi (EnabledBy): Document that the argument must be
15570 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
15571 Not enabled by -Wall.
15572 * optc-gen.awk: Give nicer error messages. Detect if the argument
15573 of EnabledBy is not a Common option.
15574 * common.opt (Wnull-dereference): Not enabled by -Wall.
15575 * opt-functions.awk (lang_enabled_by): Nicer error messages.
15577 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
15579 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
15580 model == 0x4f as Broadwell.
15582 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
15584 PR rtl-optimization/67028
15585 * combine.c (simplify_comparison): Fix comment. Rearrange code.
15586 Add test to see if a const_int fits in the new mode.
15588 2015-08-07 DJ Delorie <dj@redhat.com>
15590 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
15592 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
15594 PR rtl-optimization/67029
15595 * ira-color.c: Include "recog.h" before including "ira-int.h".
15596 * target-globals.c: Likewise.
15597 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
15598 adds an alternative_mask argument and use it instead of
15599 preferred_alternatives.
15600 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
15601 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
15602 * sched-deps.c: Include "ira-int.h" after including "ira.h".
15603 (sched_analyze_insn): Update call to
15604 ira_implicitly_set_insn_hard_regs.
15605 * sel-sched.c: Include "ira-int.h" after including "ira.h".
15606 (implicit_clobber_conflict_p): Update call to
15607 ira_implicitly_set_insn_hard_regs.
15609 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
15611 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
15613 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
15616 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
15617 currently_expanding_to_rtl is set.
15619 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
15621 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
15622 * configure: Regenerate.
15624 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15625 Jiong Wang <jiong.wang@arm.com>
15627 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
15628 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
15629 (REG_CLASS_NAMES): Likewise.
15630 (REG_CLASS_CONTENTS): Likewise.
15631 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
15632 (aarch64_register_move_cost): Likewise.
15633 (aarch64_load_symref_appropriately): Invoke the new added pattern if
15635 * config/aarch64/constraints.md (Uc0): New constraint.
15637 2015-08-06 Jiong Wang <jiong.wang@arm.com>
15639 * config/aarch64/constraints.md (Usf): Add the test of
15640 aarch64_is_noplt_call_p.
15642 2015-08-06 Jiong Wang <jiong.wang@arm.com>
15644 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
15646 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
15647 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
15648 (call_symbol): Likewise.
15650 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
15652 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
15653 for vectorizing multiplication patterns.
15654 * tree-vectorizer.h: Adjust the number of patterns.
15656 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
15658 * config/i386/sse.md (*vec_concatv2df): Declare added
15659 alternatives as sselog type.
15661 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15663 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
15666 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15668 * config/s390/s390.c (s390_expand_tbegin): Expand either
15669 tbegin_1_z13 or tbegin_1 depending on VX flag.
15670 * config/s390/s390.md ("tbegin_1_z13"): New expander.
15672 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15674 * config/s390/s390.opt: Clarify description for -mzvector
15675 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
15678 2015-08-06 Richard Biener <rguenther@suse.de>
15680 * gimple.h (gimple_call_set_fn): Access op member directly.
15681 (gimple_call_chain_ptr): Likewise.
15682 (gimple_call_set_chain): Likewise.
15683 (gimple_cond_lhs_ptr): Likewise.
15684 (gimple_cond_set_lhs): Likewise.
15685 (gimple_cond_rhs_ptr): Likewise.
15686 (gimple_cond_set_rhs): Likewise.
15687 (gimple_cond_true_label): Likewise.
15688 (gimple_cond_set_true_label): Likewise.
15689 (gimple_cond_set_false_label): Likewise.
15690 (gimple_cond_false_label): Likewise.
15691 (gimple_label_label): Likewise.
15692 (gimple_label_set_label): Likewise.
15693 (gimple_goto_set_dest): Likewise.
15694 (gimple_asm_input_op): Likewise.
15695 (gimple_asm_input_op_ptr): Likewise.
15696 (gimple_asm_set_input_op): Likewise.
15697 (gimple_asm_output_op): Likewise.
15698 (gimple_asm_output_op_ptr): Likewise.
15699 (gimple_asm_set_output_op): Likewise.
15700 (gimple_asm_clobber_op): Likewise.
15701 (gimple_asm_set_clobber_op): Likewise.
15702 (gimple_asm_label_op): Likewise.
15703 (gimple_asm_set_label_op): Likewise.
15704 (gimple_switch_index): Likewise.
15705 (gimple_switch_index_ptr): Likewise.
15706 (gimple_return_retval_ptr): Likewise.
15707 (gimple_return_retval): Likewise.
15708 (gimple_return_set_retval): Likewise.
15709 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
15710 (gimple_switch_label): Likewise.
15711 (gimple_switch_set_label): Likewise.
15713 2015-08-06 Richard Biener <rguenther@suse.de>
15715 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
15716 bool comparison canonicalization and restrict to integers.
15718 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
15720 * coretypes.h (enum symbol_visibility): Relocate here.
15721 * flag-types.h (enum symbol_visibility): Remove.
15722 * tree-core.h (enum symbol_visibility): Remove.
15724 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
15727 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
15728 for no_split_stack function attribute along with
15730 (rs6000_expand_split_stack_prologue): Likewise.
15732 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
15733 Jeff Law <law@redhat.com>
15736 * doc/invoke.texi (Wnull-dereference): New.
15737 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
15738 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
15739 Warn for potential NULL dereferences.
15740 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
15741 * ubsan.c (instrument_nonnull_arg): Call
15742 infer_nonnull_range_by_attribute.
15743 (instrument_nonnull_return): Likewise.
15744 * common.opt (Wnull-dereference); New.
15745 * gimple.c (infer_nonnull_range): Remove bool arguments.
15746 (infer_nonnull_range_by_dereference): New.
15747 (infer_nonnull_range_by_attribute): New.
15748 * gimple.h: Update declarations.
15750 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15752 * gensupport.c (sequence_num): Replace with...
15753 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
15754 ...these new variables.
15755 (init_rtx_reader_args_cb): Update accordingly.
15756 (get_num_code_insns): Likewise.
15757 (read_md_rtx): Rework to use a while loop and get_c_test.
15758 Use the new counters. Remove redundant DEFINE_SUBST case.
15759 * genoutput.c (gen_split): Delete.
15760 (main): Don't call it.
15762 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15764 * gensupport.h (get_c_test): Declare.
15765 * gensupport.c (get_c_test): New function.
15766 * genconditions.c (main): Use it.
15767 * genrecog.c (validate_pattern): Likewise.
15768 (match_pattern_1): Likewise. Remove c_test argument.
15769 (match_pattern): Update accordingly and remove c_test argument.
15770 (main): Update accordingly.
15772 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15774 * gensupport.h (get_num_insn_codes): Declare.
15775 * gensupport.c (get_num_insn_codes): New function.
15776 * genattrtab.c (optimize_attrs): Rename max_insn_code to
15778 (main): Likewise. Use get_num_insn_codes.
15779 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
15781 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15783 PR middle-end/66311
15784 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
15785 is zero- rather than sign-extended.
15787 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15789 * target-insns.def (can_extend): Delete.
15791 2015-08-05 Richard Biener <rguenther@suse.de>
15793 PR tree-optimization/67121
15794 * tree-if-conv.c (combine_blocks): Clear range-info produced
15795 by stmts no longer executed conditionally.
15797 2015-08-05 Nick Clifton <nickc@redhat.com>
15799 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
15800 to allow identical far pointers to remain.
15802 2015-08-05 Richard Biener <rguenther@suse.de>
15804 PR middle-end/67120
15805 * match.pd: Compare address bases with == if they are decls
15806 or SSA names, not operand_equal_p. Otherwise fail.
15808 2015-08-05 Richard Biener <rguenther@suse.de>
15810 PR tree-optimization/67055
15811 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
15814 * g++.dg/torture/pr67055.C: New testcase.
15816 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
15818 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
15820 (define_attr "enabled"): Handle avx521vl and noavx512vl.
15821 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
15822 AVX-512 alternative out of SSE.
15823 (define_insn "*vec_concatv2df"): Ditto.
15825 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
15827 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
15828 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
15829 CODE_FOR_avx_ptestv4di.
15830 * config/i386/sse.md (define_mode_iterator V_AVX): New.
15831 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
15832 (define_insn "avx_ptest256"): Merge this ...
15833 (define_insn "sse4_1_ptest"): And this ...
15834 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
15836 2015-08-05 Richard Biener <rguenther@suse.de>
15838 PR tree-optimization/67109
15839 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
15840 against too big groups. Print whether this is a load or store
15841 group. Rename from ...
15842 (vect_analyze_group_access): ... this which is now a wrapper
15843 dissolving an invalid group.
15844 (vect_analyze_data_ref_accesses): Print whether this is a load
15847 2015-08-05 Richard Biener <rguenther@suse.de>
15849 PR middle-end/67107
15850 * match.pd: Guard const_binop result checking against NULL_TREE
15853 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
15855 * cse.c (cse_insn): Restoring old behaviour for src_eqv
15856 when dest and value in the REG_EQUAL are same and dest
15857 is STRICT_LOW_PART.
15859 2015-08-04 Anatoly Sokolov <aesok@post.ru>
15861 * config/moxie/moxie.h (PRINT_OPERAND,
15862 PRINT_OPERAND_ADDRESS): Remove macros.
15863 * config/moxie/moxie-protos.h (moxie_print_operand,
15864 moxie_print_operand_address): Remove declaration.
15865 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
15866 TARGET_PRINT_OPERAND_ADDRESS): Define.
15867 (moxie_print_operand, moxie_print_operand_address): Make static.
15869 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
15872 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
15873 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
15875 2015-08-04 Richard Biener <rguenther@suse.de>
15877 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
15879 (dt_operand::gen_gimple_expr): Adjust.
15881 2015-08-04 Richard Biener <rguenther@suse.de>
15883 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
15884 bool compares on RHS.
15885 * match.pd: Add X ==/!= !X is false/true pattern.
15887 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
15889 * config/aarch64/aarch64.c: Change inner loop statement cost
15890 to be consistent with other targets.
15892 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
15894 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
15897 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
15899 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
15900 (machine_function): Remove pseudos field.
15902 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15904 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15905 Exit early and use target_option_current_node if processing current
15908 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15910 * doc/extend.texi (AArch64 Function Attributes): New node.
15911 (AArch64 Pragmas): Likewise.
15913 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15915 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15916 Initialize simd builtins if TARGET_SIMD.
15917 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
15918 Make sure that the builtins are initialized only once no matter how
15919 many times the function is called.
15920 (aarch64_init_builtins): Unconditionally initialize crc builtins.
15921 (aarch64_relayout_simd_param): New function.
15922 (aarch64_simd_expand_args): Use above during argument expansion.
15923 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
15924 simd builtins if TARGET_SIMD.
15925 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
15927 (aarch64_relayout_simd_types): Likewise.
15929 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15931 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
15932 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
15933 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
15934 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
15936 (aarch64_reset_previous_fndecl): New function.
15937 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
15939 * config/aarch64/aarch64-c.c: New file.
15940 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
15941 Push and pop options at beginning and end. Remove ifdef
15942 __ARM_FEATURE_CRC32.
15943 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
15944 Add pragma +nothing+simd and +nothing+crypto where appropriate.
15945 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
15946 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
15948 (aarch64_register_pragmas): Likewise.
15949 (aarch64_reset_previous_fndecl): Likewise.
15950 (aarch64_process_target_attr): Likewise.
15951 (aarch64_override_options_internal): Likewise.
15953 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15955 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
15957 (aarch64_can_inline_p): Likewise.
15958 (TARGET_CAN_INLINE_P): Define.
15960 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15962 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
15963 Remove static. Handle OPT_mgeneral_regs_only,
15964 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
15965 OPT_momit_leaf_frame_pointer.
15966 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
15967 (aarch64_attr_opt_type): New enum.
15968 (aarch64_attribute_info): New struct.
15969 (aarch64_handle_attr_arch): New function.
15970 (aarch64_handle_attr_cpu): Likewise.
15971 (aarch64_handle_attr_tune): Likewise.
15972 (aarch64_handle_attr_isa_flags): Likewise.
15973 (aarch64_attributes): New table.
15974 (aarch64_process_one_target_attr): New function.
15975 (num_occurences_in_str): Likewise.
15976 (aarch64_process_target_attr): Likewise.
15977 (aarch64_option_valid_attribute_p): Likewise.
15978 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
15979 * config/aarch64/aarch64-protos.h: Include input.h
15980 (aarch64_handle_option): Declare prototype.
15982 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15984 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
15985 * config/aarch64/aarch64.c: Include target-globals.h
15986 (aarch64_previous_fndecl): New variable.
15987 (aarch64_set_current_function): New function.
15988 (TARGET_SET_CURRENT_FUNCTION): Define.
15990 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15992 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
15993 (explicit_arch): Likewise.
15994 (x_aarch64_isa_flags): Likewise.
15995 (mgeneral-regs-only): Mark as Save.
15996 (mfix-cortex-a53-835769): Likewise.
15997 (mcmodel=): Likewise.
15998 (mstrict-align): Likewise.
15999 (momit-leaf-frame-pointer): Likewise.
16000 (mtls-dialect): Likewise.
16001 (master=): Likewise.
16002 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
16003 (aarch64_isa_flags): Remove extern declaration.
16004 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
16005 to indicate success or failure.
16006 (aarch64_validate_march): Likewise.
16007 (aarch64_validate_mtune): Likewise.
16008 (aarch64_isa_flags): Delete.
16009 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
16010 instead of aarch64_isa_flags.
16011 (aarch64_get_tune_cpu): New function.
16012 (aarch64_get_arch): Likewise.
16013 (aarch64_override_options): Use above and set up explicit_tune_core
16015 (aarch64_print_extension): Move earlier in file. Add isa_flags
16016 argument and use that instead of the global aarch64_isa_flags.
16017 (aarch64_option_save): New function.
16018 (aarch64_option_restore): Likewise.
16019 (aarch64_option_print): Likewise.
16020 (aarch64_declare_function_name): Likewise.
16021 (aarch64_start_file): Delete.
16022 (TARGET_ASM_FILE_START): Do not define.
16023 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
16024 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
16027 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16029 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
16030 flag_omit_leaf_frame_pointer to 2.
16032 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16034 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
16036 (TARGET_FIX_ERR_A53_835769): New macro.
16037 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16038 handling of opts->x_aarch64_fix_a53_err835769.
16039 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
16040 than aarch64_fix_a53_err835769.
16041 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
16042 * config/aarch64/aarch64-linux.h: Likewise.
16044 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
16046 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
16047 ix86_expand_int_movcc as boolean.
16049 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16051 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
16052 (aarch64_cpu_string): Likewise.
16053 (aarch64_tune_string): Likewise.
16054 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
16055 (aarch64_parse_extension): Return aarch64_parse_opt_result.
16056 Add extra argument to put result into.
16057 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
16058 (aarch64_parse_cpu): Add arguments to put results into. Return
16059 aarch64_parse_opt_result.
16060 (aarch64_parse_tune): Likewise.
16061 (aarch64_override_options_after_change_1): New function.
16062 (aarch64_override_options_internal): New function.
16063 (aarch64_validate_mcpu): Likewise.
16064 (aarch64_validate_march): Likewise.
16065 (aarch64_validate_mtune): Likewise.
16066 (aarch64_override_options): Update to reflect above changes.
16067 Move some logic into aarch64_override_options_internal.
16068 Initialize target_option_default_node and target_option_current_node.
16069 (aarch64_override_options_after_change): Move logic into
16070 aarch64_override_options_after_change_1 and call it with global_options.
16071 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
16072 flag values from that.
16074 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16076 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16077 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
16078 * config/aarch64/aarch64.c (struct processor): Add arch field.
16079 (all_architectures): Handle above, move above all_cores.
16080 (all_cores): Handle above.
16081 (aarch64_parse_arch): Handle above changes.
16082 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
16083 above. Update comments.
16084 (armv8.1-a): Likewise.
16085 * config/aarch64/aarch64-cores.def: Update according to above.
16086 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
16087 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
16088 aarch64_arch_driver_info.
16090 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16092 * config/aarch64/aarch64.c (struct processor): Add ident field.
16093 Rename core sched_core.
16094 (all_cores): Handle above changes.
16095 (all_architectures): Likewise.
16096 (aarch64_parse_arch): Likewise.
16097 (aarch64_override_options): Likewise.
16099 2015-08-04 Richard Biener <rguenther@suse.de>
16101 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16102 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
16103 comparisons embedded in [VEC_]COND_EXPRs.
16105 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
16107 * tree-if-conv.c: Fix various typos in comments.
16108 * tree-vect-stmts.c: Likewise.
16110 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
16112 PR tree-optimization/67043
16113 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
16114 preheader after hoisting invariant in it.
16115 (find_defs): Force recomputation of all luids.
16117 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
16119 * config/rs6000/htm.md (tabort.): Restrict the source operand to
16120 using a base register.
16122 2015-08-03 David Malcolm <dmalcolm@redhat.com>
16124 * main.c (main): Pass in NULL for toplev's external_timer.
16125 * timevar.c: Include coretypes.h.
16126 (class timer::named_items): New.
16127 (timer::named_items::named_items): New.
16128 (timer::named_items::~named_items): New.
16129 (timer::named_items::push): New.
16130 (timer::named_items::pop): New.
16131 (timer::named_items::print): New.
16132 (timer::timer): Initialize field "m_jit_client_items".
16133 (timer::~timer): New.
16134 (timer::push): Move bulk of implementation to...
16135 (timer::push_internal): ...here. New function.
16136 (timer::pop): Move bulk of implementation to...
16137 (timer::pop_internal): ...here. New function.
16138 (timer::push_client_item): New.
16139 (timer::pop_client_item): New.
16140 (timer::print_row): New function, taken from timer::print.
16141 (timer::print): Print "GCC items" header if we also have client
16142 items. Move row-printing to timer::print_row. Print any client
16144 (timer::get_topmost_item_name): New method.
16145 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
16146 (TV_JIT_CLIENT_CODE): New.
16147 * timevar.h (timer::push_client_item): New declaration.
16148 (timer::pop_client_item): New declaration.
16149 (timer::get_topmost_item_name): New method.
16150 (timer::push_internal): New declaration.
16151 (timer::pop_internal): New declaration.
16152 (timer::print_row): New declaration.
16153 (timer::named_items): New declaration.
16154 (timer::m_jit_client_items): New field.
16155 (timer): Add friend class named_items.
16156 (auto_timevar::auto_timevar): Add timer param.
16157 (auto_timevar::~auto_timevar): Use field "m_timer".
16158 (auto_timevar::m_timer): New field.
16159 * toplev.c (initialize_rtl): Add g_timer as param when
16160 constructing auto_timevar instance.
16161 (toplev::toplev): Add "external_timer" param, and use it to
16162 initialize the "g_timer" global if non-NULL.
16163 (toplev::~toplev): If this created "g_timer", delete it.
16164 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
16165 with "external_timer" timer *.
16167 2015-08-03 Alexander Basov <coohpt@gmail.com>
16169 PR middle-end/64744
16170 PR middle-end/48470
16171 PR middle-end/43404
16172 * cfgexpand.c (expand_one_var): Add check if stack is going to
16173 be used in naked function.
16174 * expr.c (expand_expr_addr_expr_1): Remove excess checking
16175 whether expression should not reside in MEM.
16176 * function.c (use_register_for_decl): Do not use registers for
16177 non-register things (volatile, float, BLKMode) in naked functions.
16179 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
16182 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
16183 Adjust splits to match new pattern.
16185 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16187 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
16190 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
16191 point in VSX registers.
16193 * config/rs6000/constraints.md (wb constraint): Document unused
16195 (we constraint): Likewise.
16196 (wo constraint): Likewise.
16197 (wp constraint): New constraint for IEEE 128-bit floating point in
16199 (wq constraint): Likewise.
16201 * config/rs6000/predicates.md (easy_fp_constant): Add support for
16202 IEEE 128-bit floating point in VSX registers.
16203 (easy_scalar_constant): Likewise.
16205 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
16206 constraints (wp, wq) for IEEE 128-bit floating point in VSX
16208 (rs6000_init_hard_regno_mode_ok): Likewise.
16210 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
16211 floating point in VSX registers.
16214 (VSX_M2): Likewise.
16220 (vsx_le_permute_<mode>): Add support to properly swap bytes for
16221 IEEE 128-bit floating point in VSX registers on little endian.
16222 (vsx_le_undo_permute_<mode>): Likewise.
16223 (vsx_le_perm_load_<mode>): Likewise.
16224 (vsx_le_perm_store_<mode>): Likewise.
16225 (splitters for IEEE 128-bit fp moves): Likewise.
16227 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
16230 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
16231 floating point in VSX registers.
16234 * doc/md.text (Machine Constraints): Document wp and wq
16235 constraints on PowerPC.
16237 2015-08-03 Jeff Law <law@redhat.com>
16239 PR middle-end/66314
16240 PR gcov-profile/66899
16241 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
16242 iterate over the jump threading paths when an element in the
16243 jump threading paths array is eliminated.
16245 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
16247 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
16249 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
16251 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
16252 is_use_properly_guarded the variable def_preds. Free its
16253 contents before returning.
16254 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
16255 (is_use_properly_guarded): Replace local variable def_preds with
16256 a parameter. Adjust accordingly. Only update *def_preds if it's
16259 2015-08-03 Richard Biener <rguenther@suse.de>
16261 * genmatch.c (simplify::for_subst_vec): New member.
16262 (binary_ok): New helper for for lowering.
16263 (lower_for): Delay substituting operators into result expressions
16264 if we can merge the results eventually again.
16265 (capture_info::walk_result): Adjust for user_id appearing as
16266 result expression operator.
16267 (expr::gen_transform): Likewise.
16268 (dt_simplify::gen_1): Likewise.
16269 (dt_simplify::gen): Pass not substituted operators to tail
16270 functions or initialize local variable with it.
16271 (decision_tree::gen): Adjust function signature.
16272 * match.pd: Fix tests against global code and add default
16273 cases to switch stmts.
16275 2015-08-03 Richard Biener <rguenther@suse.de>
16277 * genmatch.c (dt_simplify::gen): Create captures array
16278 with an initializer.
16280 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16282 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
16283 the host compiler is affected by placement new aliasing bug.
16284 * configure: Regenerate.
16285 * Makefile.in (ALIASING_FLAGS): New variable.
16286 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
16288 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16291 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
16292 (negmulsf3_vfp): Likewise.
16293 (muldf3negdf_vfp): Disable for -frounding-math.
16294 (mulsf3negsf_vfp): Likewise.
16295 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
16296 fix MULT cost with -frounding-math.
16298 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16300 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
16301 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
16302 explicit. Prefer to add the flag whenever possible.
16303 (noce_process_if_block): Try noce_try_store_flag_constants before
16306 2015-08-03 Richard Biener <rguenther@suse.de>
16308 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
16309 New hash-map to record equivalent transforms.
16310 (dt_node::analyze): Populate the equivalent transforms hash-map.
16311 (dt_simplify::info): Add reference to hash-map entry.
16312 (dt_simplify::gen): If we have split out a function for the
16313 transform, generate a call to it.
16314 (sinfo_hashmap_traits::hash): New function.
16315 (compare_op): New helper function for ...
16316 (sinfo_hashmap_traits::equal_keys): ... this new function.
16317 (decision_tree::gen): Split out common equivalent transforms
16320 2015-08-03 Richard Biener <rguenther@suse.de>
16322 * gimple-fold.c (fold_gimple_assign): Remove folding of
16323 the comparison in COND_EXPRs.
16325 2015-08-03 Richard Biener <rguenther@suse.de>
16327 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
16328 on the rhs of assignments first simplify the embedded
16331 2015-08-03 Richard Biener <rguenther@suse.de>
16333 PR tree-optimization/66917
16334 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
16336 (DR_VECT_AUX): New macro.
16337 (set_dr_misalignment): Adjust.
16338 (dr_misalignment): Likewise.
16339 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16340 Compute whether the base is at least element aligned.
16341 * tree-vect-stmts.c (ensure_base_align): Adjust.
16342 (vectorizable_store): If the base is not element aligned
16343 preserve alignment of the original access if misalignment is unknown.
16344 (vectorizable_load): Likewise.
16346 2015-08-02 Martin Sebor <msebor@redhat.com>
16348 * c-family/c.opt (-Wframe-address): New warning option.
16349 * doc/invoke.texi (Wframe-address): Document it.
16350 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
16351 Clarify possible effects of calling the functions with non-zero
16352 arguments and mention -Wframe-address.
16353 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
16355 2015-08-01 Michael Collison <michael.collison@linaro.org
16356 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16358 * config/arm/arm.md (*arm_smin_cmp): New pattern.
16359 (*arm_umin_cmp): Likewise.
16361 2015-08-01 Caroline Tice <cmtice@google.com>
16364 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
16366 (vtbl_find_mangled_name): New function.
16367 (vtbl_register_mangled_name): New function.
16368 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
16369 mangled name in mangled name vectors.
16370 (find_or_create_vtbl_map_node): Ditto.
16371 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
16372 update recursion_depth on function entry; pass it to every recursive
16373 call; automatically exit if depth > 25 (give up looking at that point).
16374 (verify_bb_vtables): Initialize recursion_depth and pass it to
16375 var_is_used_for_virtual_call_p.
16376 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
16377 global variable decls.
16378 (vtbl_register_mangled_name): New extern function decl.
16380 2015-08-01 Tom de Vries <tom@codesourcery.com>
16382 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
16384 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
16386 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
16387 operation_no_trapping_overflow. Allow non-overflow operations.
16388 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
16391 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
16394 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
16396 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16398 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
16399 Enable for TARGET_32BIT.
16400 (*if_move_neg): Likewise.
16402 2015-07-31 Nick Clifton <nickc@redhat.com>
16404 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
16405 Returns true for __model__.
16406 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
16408 2015-07-31 Alan Modra <amodra@gmail.com>
16411 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
16412 (rs6000_emit_prologue): Set it.
16413 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
16415 2015-07-31 Richard Biener <rguenther@suse.de>
16417 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
16418 -> X == (C1 ^ C2) which is already implemented in match.pd.
16419 Remove redundant dispatching to fold_relational_const.
16420 Move unordered self and NaN compares ...
16421 * match.pd: ... as patterns here. Remove some stray captures
16424 2015-07-31 Petr Murzin <petr.murzin@intel.com>
16426 * config/i386/i386.c
16427 (bdesc_special_args): Convert mask type from signed to unsigned for
16429 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
16430 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
16431 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
16432 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
16433 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
16434 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
16435 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
16436 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
16437 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
16438 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
16439 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
16440 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
16441 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
16442 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
16443 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
16444 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
16445 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
16446 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
16447 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
16448 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
16449 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
16450 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
16451 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
16452 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
16453 * config/i386/i386-builtin-types.def
16454 (V16QI_FTYPE_V16SI): Remove.
16455 (V8DF_FTYPE_V8SI): Ditto.
16456 (V8HI_FTYPE_V8DI): Ditto.
16457 (V8SI_FTYPE_V8DI): Ditto.
16458 (V8SF_FTYPE_V8DF): Ditto.
16459 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
16460 (V16HI_FTYPE_V16SI): Ditto.
16461 (V16SF_FTYPE_V16HI): Ditto.
16462 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
16463 (V16SF_FTYPE_V16SI): Ditto.
16464 (V4DI_FTYPE_V4DI): Ditto.
16465 (V16SI_FTYPE_V16SF): Ditto.
16466 (V16SF_FTYPE_FLOAT): Ditto.
16467 (V8DF_FTYPE_DOUBLE): Ditto.
16468 (V8DI_FTYPE_INT64): Ditto.
16469 (V8DI_FTYPE_V4DI): Ditto.
16470 (V16QI_FTYPE_V8DI): Ditto.
16471 (UINT_FTYPE_V4SF): Ditto.
16472 (UINT64_FTYPE_V4SF): Ditto.
16473 (UINT_FTYPE_V2DF): Ditto.
16474 (UINT64_FTYPE_V2DF): Ditto.
16475 (V16SI_FTYPE_V16SI): Ditto.
16476 (V8DI_FTYPE_V8DI): Ditto.
16477 (V16SI_FTYPE_PV4SI): Ditto.
16478 (V16SF_FTYPE_PV4SF): Ditto.
16479 (V8DI_FTYPE_PV2DI): Ditto.
16480 (V8DF_FTYPE_PV2DF): Ditto.
16481 (V4DI_FTYPE_PV2DI): Ditto.
16482 (V4DF_FTYPE_PV2DF): Ditto.
16483 (V16SI_FTYPE_PV2SI): Ditto.
16484 (V16SF_FTYPE_PV2SF): Ditto.
16485 (V8DI_FTYPE_PV4DI): Ditto.
16486 (V8DF_FTYPE_PV4DF): Ditto.
16487 (V8SF_FTYPE_FLOAT): Ditto.
16488 (V4SF_FTYPE_FLOAT): Ditto.
16489 (V4DF_FTYPE_DOUBLE): Ditto.
16490 (V8SF_FTYPE_PV4SF): Ditto.
16491 (V8SI_FTYPE_PV4SI): Ditto.
16492 (V4SI_FTYPE_PV2SI): Ditto.
16493 (V8SF_FTYPE_PV2SF): Ditto.
16494 (V8SI_FTYPE_PV2SI): Ditto.
16495 (V16SF_FTYPE_PV8SF): Ditto.
16496 (V16SI_FTYPE_PV8SI): Ditto.
16497 (V8DI_FTYPE_V8SF): Ditto.
16498 (V4DI_FTYPE_V4SF): Ditto.
16499 (V2DI_FTYPE_V4SF): Ditto.
16500 (V64QI_FTYPE_QI): Ditto.
16501 (V32HI_FTYPE_HI): Ditto.
16502 (V8UHI_FTYPE_V8UHI): Ditto.
16503 (V16UHI_FTYPE_V16UHI): Ditto.
16504 (V32UHI_FTYPE_V32UHI): Ditto.
16505 (V2UDI_FTYPE_V2UDI): Ditto.
16506 (V4UDI_FTYPE_V4UDI): Ditto.
16507 (V8UDI_FTYPE_V8UDI): Ditto.
16508 (V4USI_FTYPE_V4USI): Ditto.
16509 (V8USI_FTYPE_V8USI): Ditto.
16510 (V16USI_FTYPE_V16USI): Ditto.
16511 (V2DF_FTYPE_V2DF_UINT64): Ditto.
16512 (V2DI_FTYPE_V2DF_V2DF): Ditto.
16513 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
16514 (V8DF_FTYPE_V8DF_V8DI): Ditto.
16515 (V4SF_FTYPE_V4SF_UINT64): Ditto.
16516 (V4SI_FTYPE_V4SF_V4SF): Ditto.
16517 (V16SF_FTYPE_V16SF_V16SI): Ditto.
16518 (V64QI_FTYPE_V32HI_V32HI): Ditto.
16519 (V32HI_FTYPE_V16SI_V16SI): Ditto.
16520 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
16521 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
16522 (V32HI_FTYPE_V64QI_V64QI): Ditto.
16523 (V32HI_FTYPE_V32HI_V32HI): Ditto.
16524 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
16525 (V16SI_FTYPE_V16SI_V4SI): Ditto.
16526 (V16SI_FTYPE_V16SI_V16SI): Ditto.
16527 (V16SI_FTYPE_V32HI_V32HI): Ditto.
16528 (V16SI_FTYPE_V16SI_SI): Ditto.
16529 (V8DI_FTYPE_V8DI_V8DI): Ditto.
16530 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
16531 (V8DI_FTYPE_V16SI_V16SI): Ditto.
16532 (V8DI_FTYPE_V8DI_V2DI): Ditto.
16533 (QI_FTYPE_QI): Ditto.
16534 (SI_FTYPE_SI): Ditto.
16535 (DI_FTYPE_DI): Ditto.
16536 (QI_FTYPE_QI_QI): Ditto.
16537 (QI_FTYPE_QI_INT): Ditto.
16538 (HI_FTYPE_HI_INT): Ditto.
16539 (SI_FTYPE_SI_INT): Ditto.
16540 (DI_FTYPE_DI_INT): Ditto.
16541 (HI_FTYPE_V16QI_V16QI): Ditto.
16542 (SI_FTYPE_V32QI_V32QI): Ditto.
16543 (DI_FTYPE_V64QI_V64QI): Ditto.
16544 (QI_FTYPE_V8HI_V8HI): Ditto.
16545 (HI_FTYPE_V16HI_V16HI): Ditto.
16546 (SI_FTYPE_V32HI_V32HI): Ditto.
16547 (QI_FTYPE_V4SI_V4SI): Ditto.
16548 (QI_FTYPE_V8SI_V8SI): Ditto.
16549 (QI_FTYPE_V2DI_V2DI): Ditto.
16550 (QI_FTYPE_V4DI_V4DI): Ditto.
16551 (QI_FTYPE_V8DI_V8DI): Ditto.
16552 (HI_FTYPE_V16SI_V16SI): Ditto.
16553 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
16554 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
16555 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
16556 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
16557 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
16558 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
16559 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
16560 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
16561 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
16562 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
16563 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
16564 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
16565 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
16566 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
16567 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
16568 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
16569 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
16570 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
16571 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
16572 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
16573 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
16574 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
16575 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
16576 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
16577 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
16578 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
16579 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
16580 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
16581 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
16582 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
16583 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
16584 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
16585 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
16586 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
16587 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
16588 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
16589 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
16590 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
16591 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
16592 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
16593 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
16594 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
16595 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
16596 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
16597 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
16598 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
16599 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
16600 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
16601 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
16602 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
16603 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
16604 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
16605 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
16606 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
16607 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
16608 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
16609 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
16610 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
16611 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
16612 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
16613 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
16614 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
16615 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
16616 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
16617 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
16618 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
16619 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
16620 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
16621 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
16622 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
16623 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
16624 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
16625 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
16626 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
16627 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
16628 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
16629 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
16630 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
16631 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
16632 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
16633 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
16634 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
16635 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
16636 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
16637 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
16638 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
16639 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
16640 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
16641 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
16642 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
16643 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
16644 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
16645 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
16646 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
16647 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
16648 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
16649 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
16650 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
16651 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
16652 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
16653 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
16654 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
16655 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
16656 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
16657 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
16658 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
16659 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
16660 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
16661 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
16662 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
16663 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
16664 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
16665 (HI_FTYPE_HI): Ditto.
16666 (HI_FTYPE_V16QI): Ditto.
16667 (SI_FTYPE_V32QI): Ditto.
16668 (DI_FTYPE_V64QI): Ditto.
16669 (QI_FTYPE_V8HI): Ditto.
16670 (HI_FTYPE_V16HI): Ditto.
16671 (SI_FTYPE_V32HI): Ditto.
16672 (QI_FTYPE_V4SI): Ditto.
16673 (QI_FTYPE_V8SI): Ditto.
16674 (HI_FTYPE_V16SI): Ditto.
16675 (QI_FTYPE_V2DI): Ditto.
16676 (QI_FTYPE_V4DI): Ditto.
16677 (QI_FTYPE_V8DI): Ditto.
16678 (V16QI_FTYPE_HI): Ditto.
16679 (V32QI_FTYPE_SI): Ditto.
16680 (V64QI_FTYPE_DI): Ditto.
16681 (V8HI_FTYPE_QI): Ditto.
16682 (V16HI_FTYPE_HI): Ditto.
16683 (V32HI_FTYPE_SI): Ditto.
16684 (V4SI_FTYPE_QI): Ditto.
16685 (V4SI_FTYPE_HI): Ditto.
16686 (V8SI_FTYPE_QI): Ditto.
16687 (V8SI_FTYPE_HI): Ditto.
16688 (V2DI_FTYPE_QI): Ditto.
16689 (V4DI_FTYPE_QI): Ditto.
16690 (HI_FTYPE_HI_HI): Ditto.
16691 (SI_FTYPE_SI_SI): Ditto.
16692 (DI_FTYPE_DI_DI): Ditto.
16693 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
16694 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
16695 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
16696 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
16697 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
16698 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
16699 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
16700 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
16701 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
16702 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
16703 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
16704 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
16705 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
16706 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
16707 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
16708 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
16709 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
16710 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
16711 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
16712 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
16713 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
16714 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
16715 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
16716 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
16717 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
16718 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
16719 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
16720 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
16721 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
16722 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
16723 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
16724 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
16725 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
16726 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
16727 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
16728 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
16729 (V16SI_FTYPE_HI): Ditto.
16730 (V8DI_FTYPE_QI): Ditto.
16731 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
16732 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
16733 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
16734 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
16735 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
16736 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
16737 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
16738 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
16739 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
16740 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
16741 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
16742 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
16743 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
16744 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
16745 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
16746 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
16747 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
16748 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
16749 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
16750 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
16751 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
16752 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
16753 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
16754 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
16755 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
16756 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
16757 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
16758 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
16759 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
16760 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
16761 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
16762 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
16763 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
16764 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
16765 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
16766 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
16767 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
16768 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
16769 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
16770 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
16771 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
16772 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
16773 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
16774 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
16775 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
16776 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
16777 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
16778 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
16779 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
16780 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
16781 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
16782 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
16783 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
16784 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
16785 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
16786 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
16787 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
16788 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
16789 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
16790 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
16791 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
16792 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
16793 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
16794 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
16795 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
16796 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
16797 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
16798 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
16799 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
16800 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
16801 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
16802 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
16803 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
16804 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
16805 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
16806 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
16807 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
16808 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
16809 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
16810 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
16811 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
16812 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
16813 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
16814 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
16815 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
16816 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
16817 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
16818 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
16819 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
16820 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
16821 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
16822 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
16823 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
16824 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
16825 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
16826 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
16827 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
16828 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
16829 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
16830 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
16831 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
16832 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
16833 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
16834 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
16835 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
16836 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
16837 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
16838 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
16839 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
16840 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
16841 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
16842 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
16843 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
16844 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
16845 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
16846 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
16847 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
16848 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
16849 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
16850 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
16851 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
16852 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
16853 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
16854 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
16855 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
16856 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
16857 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
16858 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
16859 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
16860 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
16861 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
16862 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
16863 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
16864 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
16865 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
16866 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
16867 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
16868 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
16869 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
16870 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
16871 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
16872 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
16873 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
16874 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
16875 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
16876 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
16877 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
16878 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
16879 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
16880 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
16881 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
16882 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
16883 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
16884 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
16885 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
16886 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
16887 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
16888 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
16889 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
16890 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
16891 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
16892 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
16893 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
16894 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
16895 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
16896 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
16897 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
16898 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
16899 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
16900 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
16901 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
16902 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
16903 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
16904 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
16905 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
16906 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
16907 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
16908 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
16909 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
16910 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
16911 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
16912 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
16913 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
16914 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
16915 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
16916 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
16917 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
16918 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
16919 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
16920 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
16921 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
16922 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
16923 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
16924 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
16925 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
16926 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
16927 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
16928 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
16929 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
16930 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
16931 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
16932 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
16933 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
16934 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
16935 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
16936 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
16937 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
16938 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
16939 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
16940 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
16941 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
16942 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
16943 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
16944 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
16945 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
16946 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
16947 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
16948 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
16949 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
16950 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
16951 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
16952 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
16953 (QI_FTYPE_V8DF_INT_QI): Ditto.
16954 (QI_FTYPE_V4DF_INT_QI): Ditto.
16955 (QI_FTYPE_V2DF_INT_QI): Ditto.
16956 (HI_FTYPE_V16SF_INT_HI): Ditto.
16957 (QI_FTYPE_V8SF_INT_QI): Ditto.
16958 (QI_FTYPE_V4SF_INT_QI): Ditto.
16959 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
16961 2015-07-31 Richard Biener <rguenther@suse.de>
16963 * gimple-fold.c (fold_gimple_assign): Remove folding of
16966 2015-07-31 Tom de Vries <tom@codesourcery.com>
16968 PR tree-optimization/66846
16969 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
16970 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
16971 (expand_omp_target) [ENABLE_CHECKING]: Same.
16972 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
16973 cfun if !LOOPS_NEED_FIXUP.
16974 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
16975 that omp_for already has its own loop struct.
16976 * tree-parloops.c (create_phi_for_local_result)
16977 (create_call_for_reduction): Handle simple latch bb.
16978 (create_parallel_loop): Add simple latch bb to preserve
16979 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
16980 (gen_parallel_loop): Remove call to cancel_loop_tree.
16981 (parallelize_loops): Skip loops that are inner loops of parallelized
16983 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
16984 verify_loop_structure.
16986 2015-07-30 Anatoly Sokolov <aesok@post.ru>
16988 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
16989 * config/v850/v850.md (RV_REGNUM): New constants.
16990 * config/v850/v850.c (v850_libcall_value): New functions.
16991 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
16992 (TARGET_LIBCALL_VALUE): Define.
16994 2015-07-30 Anatoly Sokolov <aesok@post.ru>
16996 * rtl.h (lowpart_subreg): Move in file.
16997 * loop-iv.c (lowpart_subreg): Move to...
16998 * simplify-rtx.c (lowpart_subreg): ...here.
16999 (simplify_binary_operation_1): Use lowpart_subreg instead of
17000 simplify_gen_subreg.
17001 * expr.c (expand_expr_real_2): Ditto.
17002 * emit-rtl.c (gen_lowpart_common): Ditto.
17003 * combine.c (gen_lowpart_for_combine): Ditto.
17004 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
17005 expand_debug_source_expr): Ditto.
17007 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
17009 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
17010 (expand_builtin_atomic_clear): Remove support for atomic_clear
17013 2015-07-30 Richard Biener <rguenther@suse.de>
17015 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
17016 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
17017 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
17018 redundant operand canonicalization.
17020 2015-07-30 David Sherwood <david.sherwood@arm.com>
17022 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
17023 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
17024 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
17025 * config/arm/arm.c (neon_valid_immediate): Likewise.
17026 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
17027 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
17028 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
17029 (expand_vec_perm_vpshufb2_vpermq): Likewise.
17030 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
17031 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
17032 * config/i386/sse.md
17033 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
17034 (*ssse3_palignr<mode>_perm): Likewise.
17035 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
17036 * config/spu/spu.c (arith_immediate_p): Likewise.
17037 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17038 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
17040 2015-07-30 Richard Biener <rguenther@suse.de>
17042 * genmatch.c (decision_tree::gen_gimple): Merge with ...
17043 (decision_tree::gen_generic): ... this into ...
17044 (decision_tree::gen): ... this.
17045 (main): Adjust callers.
17047 2015-07-30 Richard Biener <rguenther@suse.de>
17049 * genmatch.c (verbose): New global.
17050 (warning_at): Add overload with source_location.
17051 (capture_info::capture_info): Add bool whether generating gimple
17052 or generic. Add gimple member.
17053 (capture_info::cinfo): Add capture member.
17054 (capture_info::walk_match): Record capture. Warn on
17055 non-captured leafs.
17056 (capture_info::walk_c_expr): Add more fragments captures cannot
17057 escape through. Warn on escaped captures.
17058 (dt_simplify::gen_1): Warn on operands we force to have no
17060 (main): Initialize verbose.
17061 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
17063 2015-07-30 Richard Biener <rguenther@suse.de>
17065 PR middle-end/67053
17066 * match.pd: Allow both operands to independently have conversion
17067 when simplifying compares of addresses.
17069 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
17073 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
17074 around those cases that need one.
17076 2015-07-29 Aditya Kumar <hiraditya@msn.com>
17078 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
17080 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
17082 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
17083 New. Copied from config/i386/gnu-user.h.
17084 (ASM_COMMENT_START): Likewise.
17085 (DBX_REGISTER_NUMBER): Likewise.
17087 2015-07-29 Richard Biener <rguenther@suse.de>
17089 * gimple-fold.c (fold_gimple_cond): Remove.
17090 (fold_stmt_1): Do not call it.
17092 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
17094 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
17095 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
17097 * config/aarch64/aarch64-modes.def: Add HFmode.
17099 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17100 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
17102 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
17103 aarch64_promoted_type): New.
17105 (aarch64_float_const_representable_p): Disable HFmode.
17106 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
17107 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
17108 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
17110 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
17111 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
17113 * config/aarch64/iterators.md (GPF_F16): New.
17115 2015-07-29 Richard Biener <rguenther@suse.de>
17117 * match.pd: Merge address comparison patterns and make them
17118 handle some more cases.
17120 2015-07-29 Richard Biener <rguenther@suse.de>
17122 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
17123 (parser::parse_capture): Add bool argument on whether to reject
17125 (parser::parse_expr): Adjust.
17126 (parser::parse_op): Likewise.
17127 (parser::parse_pattern): Likewise.
17129 2015-07-29 Richard Biener <rguenther@suse.de>
17131 * gimple-fold.c (has_use_on_stmt): New function.
17132 (replace_stmt_with_simplification): Use it to allow
17133 abnormals originally referenced in the stmt.
17134 (fold_stmt_1): Canonicalize operand order.
17136 2015-07-28 David Sherwood <david.sherwood@arm.com>
17138 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
17139 GET_MODE_INNER unconditionally.
17140 * config/spu/spu.c (arith_immediate_p): Likewise.
17141 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
17142 * expmed.c (synth_mult): Remove check for VOIDmode result from
17144 (expand_mult_const): Likewise.
17145 * fold-const.c (fold_binary_loc): Replace call to element_precision
17146 with call to GET_MODE_PRECISION.
17147 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
17149 (emit_mode_inner): Likewise.
17150 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
17152 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
17153 (GET_MODE_UNIT_PRECISION): Likewise.
17154 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
17155 * simplify-rtx.c (simplify_immed_subreg): Likewise.
17156 * stor-layout.c (bitwise_type_for_mode): Update assert.
17157 (element_precision): Remove.
17159 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17161 * target-insns.def (reload_load_address): New targetm instruction
17163 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
17165 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17167 * target-insns.def (atomic_test_and_set): New targetm instruction
17169 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
17170 HAVE_*/gen_* interface.
17172 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17174 * target-insns.def (can_extend, ptr_extend): New targetm instruction
17176 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
17177 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
17178 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
17179 * rtlanal.c (nonzero_bits1): Likewise.
17180 (num_sign_bit_copies1): Likewise.
17182 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17184 * target-insns.def (eh_return): New targetm instruction pattern.
17185 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
17187 * function.c (thread_prologue_and_epilogue_insns): Remove
17188 preprocessor condition.
17190 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17192 * target-insns.def (indirect_jump): New targetm instruction pattern.
17193 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
17196 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17198 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
17199 instead of nonimmediate_operand. Remove C condiition.
17201 2015-07-28 Richard Biener <rguenther@suse.de>
17203 * match.pd: Add more simplification of address comparisons.
17205 2015-07-28 Richard Biener <rguenther@suse.de>
17207 * match.pd: Re-order two cases in comparison with max/min
17208 value simplification to make it apply for bools.
17210 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17212 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
17213 Handle simple SIGN_EXTEND or ZERO_EXTEND.
17214 (aarch64_rtx_costs): Properly strip extend or extract before
17215 passing down to rtx costs again.
17217 2015-07-28 Nick Clifton <nickc@redhat.com>
17219 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
17220 Optimizes the case where -mes0 is active and a constant symbolic
17222 * config/rl78/rl78-protos.h: Prototype the new function.
17223 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
17225 2015-07-28 Tom de Vries <tom@codesourcery.com>
17227 * tree-parloops.c (reduc_stmt_res): New function.
17228 (initialize_reductions, add_field_for_reduction)
17229 (create_phi_for_local_result, create_loads_for_reductions)
17230 (create_stores_for_reduction, build_new_reduction): Handle case that
17231 reduc_stmt is a phi.
17232 (gather_scalar_reductions): Allow double_reduc reductions.
17234 2015-07-28 Richard Biener <rguenther@suse.de>
17236 * fold-const.c (fold_comparison): Remove equality folding
17237 of decl addresses ...
17238 * match.pd: ... here and merge with existing pattern.
17240 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
17242 PR tree-optimization/66828
17243 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
17244 from int64_t to uint64_t.
17246 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
17248 * opts-common.c (read_cmdline_option): List DriverOnly enum values
17249 as valid only in the error message of the driver, not in the
17250 messages of the language compilers.
17252 2015-07-27 Tom de Vries <tom@codesourcery.com>
17254 * tree-parloops.c (gather_scalar_reductions): Simplify function
17257 2015-07-27 Marek Polacek <polacek@redhat.com>
17259 * ipa-devirt.c (types_same_for_odr): Fix typo.
17261 2015-07-27 Jason Merrill <jason@redhat.com>
17264 * dwarf2out.c (gen_inlined_subroutine_die): Check
17265 cgraph_function_possibly_inlined_p.
17267 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
17269 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
17270 Place integer variant first.
17271 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17273 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
17276 * config/arm/arm-builtins.c (enum arm_builtins):
17277 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
17278 (ARM_BUILTIN_NEON_BASE): Rename macro to....
17279 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
17280 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
17281 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
17283 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
17286 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
17287 Add qualifier_lane_index.
17288 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
17289 (arm_getlane_qualifiers): Use qualifier_lane_index.
17290 (arm_lanemac_qualifiers): Rename to...
17291 (arm_mac_n_qualifiers): ...this.
17292 (LANEMAC_QUALIFIERS): Rename to...
17293 (MAC_N_QUALIFIERS): ...this.
17294 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
17295 (arm_setlane_qualifiers): Use qualifier_lane_index.
17296 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
17297 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
17298 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
17299 (arm_expand_neon_builtin): Handle qualifier_lane_index.
17301 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
17302 * config/arm/arm.c (bounds_check): Likewise, improve error message.
17303 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
17304 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
17305 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
17306 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
17307 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
17308 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
17309 qualifiers to TERNOP_IMM.
17310 (vdup_lane): Change qualifiers to GETLANE.
17311 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
17312 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
17313 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
17314 vqdmlsl_n): Change qualifiers to MAC_N.
17316 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
17317 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
17318 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
17319 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
17320 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
17321 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
17322 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
17323 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
17324 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
17325 Remove call to neon_lane_bounds.
17327 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
17329 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
17330 Place integer variant first.
17332 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
17334 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
17335 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
17336 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
17337 for armv6kz targets.
17338 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
17339 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
17340 (FL_FOR_ARCH6ZK): Remove.
17341 (FL_FOR_ARCH6KZ): New.
17342 (arm_arch6zk): New declaration.
17343 * config/arm/arm-tables.opt: Regenerate.
17344 * config/arm/arm.c (arm_arch6kz): New.
17345 (arm_option_override): Set arm_arch6kz.
17346 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
17347 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
17348 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
17350 2015-07-27 Marek Polacek <polacek@redhat.com>
17354 * doc/invoke.texi: Document -Wtautological-compare.
17356 2015-07-27 Richard Biener <rguenther@suse.de>
17358 * genmatch.c (decision_tree::gen_gimple): Split out large
17359 subtrees into separate functions.
17360 (decision_tree::gen_generic): Likewise.
17362 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
17364 * config/alpha/alpha.c: Use SUBREG_P predicate.
17365 * config/alpha/predicates.md: Ditto.
17367 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
17369 * config.host (s390*-*-*): Include driver-native.c only when
17370 building with s390* as host *and* target.
17372 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
17375 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
17376 T bit register modified_between_p check.
17378 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17380 * config/i386/i386.c: Use SUBREG_P predicate.
17381 * config/i386/i386.md: Ditto.
17382 * config/i386/sse.md: Ditto.
17383 * config/i386/predicates.md: Ditto.
17385 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17388 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
17389 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
17391 2015-07-25 Sebastian Pop <s.pop@samsung.com>
17393 * Makefile.in: Remove use of TREEBROWSER.
17394 * config.in: Regenerated.
17395 * configure: Regenerated.
17396 * configure.ac: Remove definition of TREEBROWSER.
17397 * tree-browser.c: Removed.
17398 * tree-browser.def: Removed.
17400 2015-07-25 Sebastian Pop <s.pop@samsung.com>
17402 * graphite-scop-detection.c: Include gimple-pretty-print.h.
17403 (stmt_simple_for_scop_p): Print when a stmt is not handled in
17405 (scopdet_basic_block_info): Print when a loop or bb cannot be
17406 represented in Graphite.
17408 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17411 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
17412 execution guard when min_size is less than size_needed.
17414 2015-07-25 Sebastian Pop <s.pop@samsung.com>
17416 * doc/install.texi: Document supported versions of ISL.
17418 2015-07-25 Jeff Law <law@redhat.com>
17422 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17423 unable to find X NE 0 in the tables, return X as the simplified
17425 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17426 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17427 to VISISTED_BBS. */
17428 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17429 after removing the control flow statement and unnecessary edges.
17431 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
17434 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
17436 PR rtl-optimization/64164
17437 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17438 * tree-ssa-copyrename.c: Removed.
17439 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17440 -ftree-coalesce-vars.
17441 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17442 * common.opt (ftree-copyrename): Ignore.
17443 (ftree-coalesce-inlined-vars): Likewise.
17444 * doc/invoke.texi: Remove the ignored options above.
17445 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17446 * tree-ssa-coalesce.h: ... here.
17447 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17448 headers required by it.
17449 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17450 across variables when flag_tree_coalesce_vars. Check register
17451 use and promoted modes to allow coalescing. Moved to
17452 tree-ssa-coalesce.c.
17453 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17454 with its member functions to tree-ssa-coalesce.c.
17455 (var_map_base_init): Likewise. Renamed to
17456 compute_samebase_partition_bases.
17457 (partition_view_normal): Drop want_bases parameter.
17458 (partition_view_bitmap): Likewise.
17459 * tree-ssa-live.h: Adjust declarations.
17460 * tree-ssa-coalesce.c: Include explow.h.
17461 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17462 default defs at the entry point.
17463 (dump_part_var_map): New.
17464 (compute_optimized_partition_bases): New, called by...
17465 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17466 of compute_samebase_partition_bases. Adjust.
17467 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17468 * cfgexpand.c (leader_merge): New.
17469 (get_rtl_for_parm_ssa_default_def): New.
17470 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17471 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17472 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17473 redundant MEM attr setting.
17474 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17476 (expand_one_stack_var): ... this. New wrapper to check and
17477 skip already expanded SSA partitions.
17478 (record_alignment_for_reg_var): New, factored out of...
17479 (expand_one_var): ... this.
17480 (expand_one_ssa_partition): New.
17481 (adjust_one_expanded_partition_var): New.
17482 (expand_one_register_var): Check and skip already expanded SSA
17484 (expand_used_vars): Don't create DECLs for anonymous SSA
17485 names. Expand all SSA partitions, then adjust all SSA names.
17486 (pass::execute): Replace the loops that set
17487 SA.partition_to_pseudo from partition leaders and cleared
17488 DECL_RTL for multi-location variables, and that which used to
17489 rename vars and set attrs, with one that clears DECL_RTL and
17490 checks that PARMs and RESULTs default_defs match DECL_RTL.
17491 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17492 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17493 * explow.c (promote_ssa_mode): New.
17494 * explow.h (promote_ssa_mode): Declare.
17495 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17496 * function.c: Include cfgexpand.h.
17497 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17498 (use_register_for_parm_decl): Wrapper for the above to
17499 special-case the result_ptr.
17500 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17501 (split_complex_args): Take assign_parm_data_all argument.
17502 Pass it to rtl_for_parm. Set up rtl and context for split
17504 (assign_parms_augmented_arg_list): Adjust.
17505 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17506 multiple locations. Recognize split complex args.
17507 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17508 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17509 (assign_parm_setup_block): Prefer SSA-assigned location.
17510 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
17511 if stack_parm is NULL.
17512 (assign_parm_setup_stack): Prefer SSA-assigned location.
17513 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17514 rtl before testing for pointer bounds. Special-case result_ptr.
17515 (expand_function_start): Maybe reset DECL_RTL of result.
17516 Prefer SSA-assigned location for result and static chain.
17517 Factor out DECL_RESULT and SET_DECL_RTL.
17518 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17519 anonymous SSA names. Use promote_ssa_mode.
17520 (get_temp_reg): Likewise.
17521 (remove_ssa_form): Adjust.
17522 * stor-layout.c (layout_decl): Don't set mem attributes of
17524 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17525 and get its reg_usage for reg invalidation.
17526 (compute_bb_dataflow): Pass it insn.
17527 (emit_notes_in_bb): Likewise.
17529 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17531 * config/i386/i386.c (ix86_va_start): Remove
17532 unneeded !TARGET_64BIT check.
17533 (ix86_gimplify_va_arg): Ditto.
17535 2015-07-24 Tom de Vries <tom@codesourcery.com>
17537 * graphite-sese-to-poly.c (build_poly_scop): Always call
17538 rewrite_commutative_reductions_out_of_ssa.
17540 2015-07-24 Tom de Vries <tom@codesourcery.com>
17542 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
17543 flag_associative_math to FLOAT_TYPE_P. Honour
17544 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
17546 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
17549 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
17550 and "%qD" in warning_at instead of "%q+D" in warning.
17552 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
17554 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
17555 (ix86_function_abi): Cleanup.
17557 2015-07-24 Michael Darling <darlingm@gmail.com>
17560 * acinclude.m4: Reflects renaming of configure.in to configure.ac
17561 * configure: Likewise
17562 * configure.ac: Likewise
17563 * doc/install.texi: Likewise
17564 * doc/tm.texi: Likewise
17565 * doc/tm.texi.in: Likewise
17567 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17569 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
17570 manually swapping values.
17571 * cse.c (fold_rtx): Likewise.
17572 * lra-eliminations.c (form_sum): Likewise.
17574 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
17577 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
17578 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
17579 (*jcc_1, *jcc_2, jump, simple_return_internal)
17580 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
17581 Set length_nobnd attribute instead of length attribute.
17582 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
17583 (length_nobnd): Remove attribute.
17584 (length): Remove length_nobnd processing.
17586 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
17588 * gimplify.c (omp_default_clause): New function. Reorganize flow
17589 for clarity. Broken out of ...
17590 (omp_notice_variable): ... here.
17592 2015-07-24 Gary Funck <gary@intrepid.com>
17594 PR middle-end/66984
17595 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
17596 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
17598 2015-07-24 Tom de Vries <tom@codesourcery.com>
17600 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
17601 exit-first loop transform.
17603 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
17606 * tree-cfg.c (struct replace_decls_d): New struct.
17607 (replace_block_vars_by_duplicates_1): New function.
17608 (replace_block_vars_by_duplicates): Use it to replace the decls
17609 in the value exprs by duplicates.
17611 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17613 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
17614 -shared, -symbolic, -rdynamic.
17616 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17619 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
17620 -dynamic-linker within %{!static %{!shared, and -rdynamic within
17623 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
17626 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
17627 edge summary is available.
17629 2015-07-24 Richard Biener <rguenther@suse.de>
17631 * genmatch.c (struct dt_node): Add statistic fields.
17632 (dt_node::analyze): New method.
17633 (decision_tree::gen_gimple): Call analyze on the root node
17634 and print statistics to stderr.
17635 (decision_tree::gen_generic): Likewise.
17637 2015-07-24 Richard Biener <rguenther@suse.de>
17639 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
17640 against the highest or lowest possible integer ...
17641 * match.pd: ... as patterns here.
17643 2015-07-24 Richard Biener <rguenther@suse.de>
17645 * genmatch.c (struct capture_info): Add same_as field.
17646 (capture_info::capture_info): Initialize same_as.
17647 (capture_info::walk_match): Compute same_as.
17648 (capture_info::walk_result): Compute stuff for the leader.
17649 (capture_info::walk_c_expr): Likewise.
17650 (dt_simplify::gen_1): Only look at leaders when deciding
17651 to force no side-effects or emit side-effects of omitted operands.
17653 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17655 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
17656 reg note to the GPR -> FPR save instructions.
17658 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17660 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
17662 (s390_expand_insv): Don't generate risbg pattern for constant zero
17664 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
17665 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
17668 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17670 * config/s390/s390.c (s390_reorg): Clean up handling of processors
17673 (s390_issue_rate): Likewise.
17674 (s390_sched_reorder): Likewise.
17675 (s390_sched_variable_issue): Likewise.
17676 (s390_loop_unroll_adjust): Likewise.
17677 (s390_option_override): Likewise.
17679 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17681 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
17682 processor capabilities with -march=native.
17683 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
17684 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
17685 (S390_TARGET_BITS_STRING): Macro to simplify specs.
17687 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17689 * config/s390/s390.c (s390_issue_rate): Handle
17690 PROCESSOR_2094_Z9_EC.
17691 (s390_option_override): Likewise.
17692 (s390_adjust_priority): Likewise.
17694 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17696 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
17697 when cross compiling.
17699 2015-07-24 Richard Biener <rguenther@suse.de>
17701 * fold-const.c (maybe_canonicalize_comparison_1): Move
17702 A code CST canonicalization ...
17703 * match.pd: ... to a pattern here.
17705 2015-07-24 Jiong Wang <jiong.wang@arm.com>
17708 2015-07-22 Jiong Wang <jiong.wang@arm.com>
17710 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
17711 (HONOR_REG_ALLOC_ORDER): Define.
17713 2015-07-24 Richard Biener <rguenther@suse.de>
17715 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
17716 * fold-const.c (fold_comparison): Move parameter does not
17717 alias &local simplification ...
17718 * match.pd: ... as a pattern here.
17720 2015-07-24 Richard Biener <rguenther@suse.de>
17722 * gimple-fold.c (replace_stmt_with_simplification): Special-case
17723 valueizing call operands.
17724 * gimple-match-head.c (maybe_push_res_to_seq): Take
17725 number of call arguments from ops array.
17726 (do_valueize): New function.
17727 (gimple_simplify): Return true if valueization changed
17728 any operand even if the result didn't simplify further.
17730 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17732 PR middle-end/25530
17733 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
17735 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17737 PR middle-end/25529
17738 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
17740 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17742 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
17745 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17747 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
17750 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
17752 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
17753 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
17755 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
17756 ms_va_list_type_node initialization.
17758 2015-07-23 Jeff Law <law@redhat.com>
17761 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17762 unable to find X NE 0 in the tables, return X as the simplified
17764 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17765 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17766 to VISISTED_BBS. */
17767 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17768 after removing the control flow statement and unnecessary edges.
17770 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
17772 * tree-pass.h (get_current_pass_name): Removed.
17774 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
17776 PR rtl-optimization/64164
17777 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17778 * tree-ssa-copyrename.c: Removed.
17779 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17780 -ftree-coalesce-vars.
17781 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17782 * common.opt (ftree-copyrename): Ignore.
17783 (ftree-coalesce-inlined-vars): Likewise.
17784 * doc/invoke.texi: Remove the ignored options above.
17785 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17786 * tree-ssa-coalesce.h: ... here.
17787 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17788 headers required by it.
17789 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17790 across variables when flag_tree_coalesce_vars. Check register
17791 use and promoted modes to allow coalescing. Moved to
17792 tree-ssa-coalesce.c.
17793 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17794 with its member functions to tree-ssa-coalesce.c.
17795 (var_map_base_init): Likewise. Renamed to
17796 compute_samebase_partition_bases.
17797 (partition_view_normal): Drop want_bases parameter.
17798 (partition_view_bitmap): Likewise.
17799 * tree-ssa-live.h: Adjust declarations.
17800 * tree-ssa-coalesce.c: Include explow.h.
17801 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17802 default defs at the entry point.
17803 (dump_part_var_map): New.
17804 (compute_optimized_partition_bases): New, called by...
17805 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17806 of compute_samebase_partition_bases. Adjust.
17807 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17808 * cfgexpand.c (leader_merge): New.
17809 (get_rtl_for_parm_ssa_default_def): New.
17810 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17811 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17812 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17813 redundant MEM attr setting.
17814 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17816 (expand_one_stack_var): ... this. New wrapper to check and
17817 skip already expanded SSA partitions.
17818 (record_alignment_for_reg_var): New, factored out of...
17819 (expand_one_var): ... this.
17820 (expand_one_ssa_partition): New.
17821 (adjust_one_expanded_partition_var): New.
17822 (expand_one_register_var): Check and skip already expanded SSA
17824 (expand_used_vars): Don't create DECLs for anonymous SSA
17825 names. Expand all SSA partitions, then adjust all SSA names.
17826 (pass::execute): Replace the loops that set
17827 SA.partition_to_pseudo from partition leaders and cleared
17828 DECL_RTL for multi-location variables, and that which used to
17829 rename vars and set attrs, with one that clears DECL_RTL and
17830 checks that PARMs and RESULTs default_defs match DECL_RTL.
17831 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17832 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17833 * explow.c (promote_ssa_mode): New.
17834 * explow.h (promote_ssa_mode): Declare.
17835 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17836 * function.c: Include cfgexpand.h.
17837 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17838 (use_register_for_parm_decl): Wrapper for the above to
17839 special-case the result_ptr.
17840 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17841 (split_complex_args): Take assign_parm_data_all argument.
17842 Pass it to rtl_for_parm. Set up rtl and context for split
17844 (assign_parms_augmented_arg_list): Adjust.
17845 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17846 multiple locations. Recognize split complex args.
17847 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17848 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17849 (assign_parm_setup_block): Prefer SSA-assigned location.
17850 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
17851 if stack_parm is NULL.
17852 (assign_parm_setup_stack): Prefer SSA-assigned location.
17853 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17854 rtl before testing for pointer bounds. Special-case result_ptr.
17855 (expand_function_start): Maybe reset DECL_RTL of result.
17856 Prefer SSA-assigned location for result and static chain.
17857 Factor out DECL_RESULT and SET_DECL_RTL.
17858 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17859 anonymous SSA names. Use promote_ssa_mode.
17860 (get_temp_reg): Likewise.
17861 (remove_ssa_form): Adjust.
17862 * stor-layout.c (layout_decl): Don't set mem attributes of
17864 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17865 and get its reg_usage for reg invalidation.
17866 (compute_bb_dataflow): Pass it insn.
17867 (emit_notes_in_bb): Likewise.
17869 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
17872 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
17874 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
17875 (rs6000_emit_2insn_and): Handle dot forms.
17876 * config/rs6000/rs6000.md (and<mode>3): Adjust.
17877 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
17878 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
17880 2015-07-23 Richard Biener <rguenther@suse.de>
17882 * generic-match-head.c: Include cgraph.h.
17883 * gimple-match-head.c: Likewise.
17884 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
17886 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
17887 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
17890 2015-07-23 Richard Biener <rguenther@suse.de>
17892 * gimple-fold.c (fold_gimple_cond): Do not require folding
17893 results to pass valid_gimple_rhs_p.
17894 * tree-cfg.h (fold_cond_expr_cond): Remove.
17895 * tree-cfg.c (fold_cond_expr_cond): Likewise.
17896 (make_edges): Do not call it.
17897 * tree-inline.c (tree_function_versioning): Likewise.
17899 2015-07-23 Tom de Vries <tom@codesourcery.com>
17901 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
17902 vect_force_simple_reduction.
17903 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
17904 (vect_is_simple_reduction_1): Add and handle
17905 need_wrapping_integral_overflow parameter.
17906 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
17907 need_wrapping_integral_overflow parameter.
17908 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
17909 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
17912 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
17914 PR tree-optimization/66926,66951
17915 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
17916 INNER_LOOP and fix up condition for renaming virtual operands.
17918 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17920 * combine.c (try_combine): Use std::swap instead of manually
17923 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
17925 * config/mips/i6400.md: New file.
17926 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
17927 (mips64r6): Likewise.
17929 * config/mips/mips-tables.opt: Regenerate.
17930 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
17931 (mips_issue_rate): Add support for i6400.
17932 (mips_multipass_dfa_lookahead): Likewise.
17933 * config/mips/mips.h (TUNE_I6400): Define.
17934 * config/mips/mips.md: Include i6400.md.
17935 (processor): Add i6400.
17936 * doc/invoke.texi (-march=@var{arch}): Add i6400.
17938 2015-07-23 Richard Biener <rguenther@suse.de>
17940 PR middle-end/66916
17941 * match.pd: Guard widen and sign-change comparison simplification
17944 2015-07-23 Richard Biener <rguenther@suse.de>
17946 PR tree-optimization/66945
17947 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
17948 ::before_dom_children): Force the propagators idea of
17949 non-executable edges to materialize, not what the folder
17952 2015-07-23 Richard Biener <rguenther@suse.de>
17954 * gimple.h (gimple_cond_make_false): Use 0 != 0.
17955 (gimple_cond_make_true): Use 1 != 0.
17957 2015-07-22 DJ Delorie <dj@redhat.com>
17959 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
17962 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
17963 (ashrhi3): Likewise.
17964 (lshrhi3): Likewise.
17965 (movhi): Take advantage of zero-extend to load small constants.
17966 (movpsi): Likewise.
17967 (and<mode>3): Likewise.
17968 (zero_extendqihi2): Likewise.
17969 (zero_extendqisi2): New.
17970 * config/msp430/constraints.md (N,O): New.
17971 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
17973 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
17976 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
17977 to enum feature_priority and feature_list.
17978 (fold_builtin_cpu): Add F_AES to enum processor_features
17979 and isa_names_table.
17981 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
17984 * config/i386/linux-common.h (MPX_SPEC): Use linker option
17985 for 64bit target only.
17987 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
17989 * config/nvptx/nvptx.c: Expand some comments.
17991 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
17993 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
17994 (cortex_a53_advsimd): ...This.
17996 2015-07-22 Richard Biener <rguenther@suse.de>
17998 * genmatch.c (expr::gen_transform): Clarify error message
17999 and display location.
18001 2015-07-22 Richard Biener <rguenther@suse.de>
18003 * genmatch.c (struct operand): Add location member.
18004 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
18006 (struct simplify): Remove match_location and result_location
18008 (elsehwere): Adjust.
18010 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
18012 * config/mips/m5100.md: New file.
18013 * config/mips/mips-cpus.def (m5100, m5101): Define.
18014 * config/mips/mips-tables.opt: Regenerate.
18015 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
18016 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
18017 -march=m5101 to -mips32r5.
18018 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
18019 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
18021 * config/mips/mips.md: Include m5100.md.
18022 (processor): Add m5100.
18023 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
18025 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
18027 * config/mips/mips-cpus.def (interaptiv): Define.
18028 * config/mips/mips-tables.opt: Regenerate.
18029 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
18031 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
18032 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
18034 2015-07-22 Jiong Wang <jiong.wang@arm.com>
18037 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18038 (HONOR_REG_ALLOC_ORDER): Define.
18040 2015-07-22 Richard Biener <rguenther@suse.de>
18042 PR tree-optimization/66952
18043 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
18044 blocks we end up executing unconditionally reset all SSA
18045 info such as range and alignment.
18046 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
18047 * tree-ssanames.c (reset_flow_sensitive_info): New function.
18049 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
18051 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
18054 2015-07-22 Richard Biener <rguenther@suse.de>
18056 * genmatch.c (parser::parse_result): Properly handle
18057 match with result operands and conditions.
18059 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
18062 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18063 Add qualifier_struct_load_store_lane_index.
18064 (aarch64_types_loadstruct_lane_qualifiers): Use
18065 qualifier_struct_load_store_lane_index for lane index argument for
18067 (aarch64_types_storestruct_lane_qualifiers): Ditto.
18068 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18069 (aarch64_simd_expand_args): Add new argument describing mode of
18070 builtin. Check lane bounds for arguments with
18071 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18072 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
18073 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18074 (aarch64_simd_expand_builtin): Handle arguments with
18075 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
18076 aarch64_simd_expand_args.
18077 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
18078 vst[234]_lane with BUILTIN_VALLDIF.
18079 * config/aarch64/aarch64-simd.md:
18080 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
18081 endianness reversal on lane index.
18082 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
18083 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
18084 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
18085 (vec_store_lanesci_lane<mode>): Ditto.
18086 (vec_store_lanesxi_lane<mode>): Ditto.
18087 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
18088 reversal of lane index.
18089 (aarch64_ld3_lane<mode>): Ditto.
18090 (aarch64_ld4_lane<mode>): Ditto.
18091 (aarch64_st2_lane<mode>): Ditto.
18092 (aarch64_st3_lane<mode>): Ditto.
18093 (aarch64_st4_lane<mode>): Ditto.
18094 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
18095 to qmode. Add new mode parameter. Update uses.
18096 (__LD3_LANE_FUNC): Ditto.
18097 (__LD4_LANE_FUNC): Ditto.
18098 (__ST2_LANE_FUNC): Ditto.
18099 (__ST3_LANE_FUNC): Ditto.
18100 (__ST4_LANE_FUNC): Ditto.
18102 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
18104 * doc/invoke.texi (Language Independent Options): Rename node to
18105 Diagnostic Message Formatting Options.
18107 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
18110 * lra-remat.c (operand_to_remat): Prevent using insns with input
18111 subregs processed separately by IRA.
18113 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
18115 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
18117 (single_imm_use): Check for iterator node.
18118 (num_imm_uses): Likewise.
18119 * tree-ssa-operands.c (has_zero_uses_1): Delete.
18120 (single_imm_use_1): Check for iterator node.
18122 2015-07-21 Mike Frysinger <vapier@gentoo.org>
18123 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18125 * configure.ac: Add check for new options in isl-0.15.
18126 * config.in, configure: Rebuilt.
18127 * graphite-blocking.c: Include <isl/constraint.h>
18128 * graphite-interchange.c, graphite-poly.c: Likewise.
18129 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
18130 * graphite.c: Likewise.
18131 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
18133 * graphite-dependences.c: Include <isl/constraint.h>.
18134 (max_number_of_out_dimensions): Returns isl_stat.
18135 (extend_schedule_1): Likewise
18136 (extend_schedule): Corresponding changes.
18137 * graphite-optimize-isl.c: Include <isl/constraint.h> and
18139 (getSingleMap): Change return type of isl_stat.
18140 (optimize_isl): Conditionally use
18141 isl_options_set_schedule_serialize_sccs.
18142 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
18143 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
18145 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
18148 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
18149 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
18151 2015-07-21 Richard Biener <rguenther@suse.de>
18153 PR tree-optimization/66948
18154 * genmatch.c (capture_info::walk_match): Also recurse to
18155 captures. Properly compute expr state from captures of
18157 * match.pd: Add single-use guards to
18158 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
18160 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
18162 * config/nvptx/mkoffload.c (process): Add static destructor call.
18164 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18166 PR middle-end/66915
18167 * match.pd (A - B -> A + (-B)): Don't allow folding
18168 when type if a fixed-point type.
18170 2015-07-20 DJ Delorie <dj@redhat.com>
18172 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
18173 (iorqi3_real): Likewise for set1.
18175 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
18177 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
18180 2015-07-20 Aditya Kumar <hiraditya@msn.com>
18182 * graphite-isl-ast-to-gimple.c:
18183 Refactor so that each function can access 'region'. This will help
18184 maintain a parameter rename_map within a region.
18186 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18188 * config/rs6000/rs6000.md (*lt0_disi): New.
18190 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18193 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
18194 "available letters" comment.
18195 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
18196 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
18197 and_2rld_operand): Delete.
18198 (and_operand): Adjust.
18199 (rotate_mask_operator): New.
18200 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
18201 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
18202 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
18203 extract_ME): Delete.
18204 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18205 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
18206 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
18207 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18208 rs6000_emit_2insn_and): New.
18209 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
18210 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
18211 includes_rldic_lshift_p, includes_rldicr_lshift_p,
18212 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
18213 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18214 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
18215 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
18216 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18217 rs6000_emit_2insn_and): New.
18218 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
18219 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
18221 <NOT>: Don't fall through to next case.
18222 <AND>: Handle the various rotate-and-mask cases directly.
18223 <IOR>: Always cost as one insn.
18224 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
18225 (and<mode>3): Adjust expander for the new patterns.
18226 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
18227 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
18228 (*and<mode>3_imm_dot_shifted): New.
18229 (*and<mode>3_mask): Delete, rewrite as ...
18230 (and<mode>3_mask): ... New.
18231 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
18232 (andsi3_internal0_nomc): Delete.
18233 (*andsi3_internal6): Delete.
18234 (*and<mode>3_2insn): New.
18235 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18236 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18237 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
18238 *insvdi_internal3): Delete.
18239 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
18240 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
18241 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
18242 *ior<mode>_mask): New.
18243 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
18244 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18245 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18246 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18248 (ashr<mode>3): Delete expander.
18249 (*ashr<mode>3): Rename to ...
18250 (ashr<mode>3): ... This.
18251 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
18252 (*rotldi3_internal4, *rotldi3_internal5 and split,
18253 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
18254 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
18255 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
18256 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
18257 (splitter for loading a mask): Adjust.
18258 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
18260 2015-07-20 Marek Polacek <polacek@redhat.com>
18262 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
18263 output_add_clobbers, output_added_clobbers_hard_reg_p,
18264 gen_rtx_scratch): Remove declarations.
18266 2015-07-20 Marek Polacek <polacek@redhat.com>
18269 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
18271 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18273 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
18274 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
18276 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18278 * combine.c (combine_simplify_rtx): Move simplification step
18279 before various transformations/substitutions.
18281 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
18283 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
18284 (struct int_traits): Likewise.
18286 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18288 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
18289 function to vmsdbgout_function_decl.
18291 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
18294 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
18295 from misaligned positions.
18296 (ix86_expand_pinsr): Reject insertions to misaligned positions.
18298 2015-07-18 Sebastian Pop <s.pop@samsung.com>
18300 PR middle-end/46851
18301 PR middle-end/60340
18302 * Makefile.in: Removed omega.o.
18303 * common.opt: Document flag fcheck-data-deps as deprecated.
18304 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
18305 its associated params: omega-max-vars, omega-max-geqs,
18306 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
18307 omega-max-keys, omega-eliminate-redundant-constraints.
18308 * doc/loop.texi: Remove all the section on Omega.
18309 * graphite-blocking.c: Include missing params.h: it used to be
18310 included through tree-data-ref.h and omega.h.
18311 * graphite-isl-ast-to-gimple.c: Same.
18312 * graphite-optimize-isl.c: Same.
18313 * graphite-sese-to-poly.c: Same.
18314 * graphite.c: Same.
18317 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
18318 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
18319 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
18320 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
18321 * passes.def: Remove pass_check_data_deps.
18322 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
18323 (dump_conflict_function): Same.
18324 (dump_subscript): Same.
18325 (print_direction_vector): Same.
18326 (print_dir_vectors): Same.
18327 (print_lambda_vector): Same.
18328 (print_dist_vectors): Same.
18329 (dump_data_dependence_relation): Same.
18330 (dump_data_dependence_relations): Same.
18331 (dump_dist_dir_vectors): Same.
18333 (init_omega_eq_with_af): Removed.
18334 (omega_extract_distance_vectors): Removed.
18335 (omega_setup_subscript): Removed.
18336 (init_omega_for_ddr_1): Removed.
18337 (init_omega_for_ddr): Removed.
18338 (ddr_consistent_p): Removed.
18339 (compute_affine_dependence): Do not use omega to check data
18341 (compute_data_dependences_for_bb): Removed.
18342 (analyze_all_data_dependences): Removed.
18343 (tree_check_data_deps): Removed.
18344 * tree-data-ref.h: Do not include omega.h.
18345 (compute_data_dependences_for_bb): Removed.
18346 (tree_check_data_deps): Removed.
18347 * tree-ssa-loop.c (pass_check_data_deps): Removed.
18348 (make_pass_check_data_deps): Removed.
18349 * tree-ssa-phiopt.c: Include params.h.
18350 * tree-vect-data-refs.c: Same.
18351 * tree-vect-slp.c: Same.
18353 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
18355 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
18356 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
18357 (mem->fpreg splitters): Ditto.
18358 (general_operand->nonimmediate_operand splitter): Use explicit modes.
18359 Disable DFmode for TARGET_64BIT.
18361 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
18364 * config/i386/i386.c (ix86_expand_prologue): Replicate static
18365 chain on the stack.
18367 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
18369 * config/nvptx/mkoffload.c (process): Constify host data.
18370 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18371 Constify host data.
18372 (generate_host_descr_file): Likewise.
18374 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
18375 Sebastian Pop <s.pop@samsung.com>
18377 PR middle-end/61929
18378 * graphite-dependences.c (add_pdr_constraints): Renamed
18379 pdr->extent to pdr->subscript_sizes.
18380 * graphite-interchange.c (build_linearized_memory_access): Add
18381 back all gcc_assert's that the "isl_int to isl_val conversion"
18382 patch has removed. Refactored.
18383 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
18384 * graphite-poly.c (new_poly_dr): Same.
18385 (free_poly_dr): Same.
18386 * graphite-poly.h (struct poly_dr): Same.
18387 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
18388 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
18389 * graphite-scop-detection.h: Fix space.
18390 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
18391 back all gcc_assert's removed by a previous patch.
18392 (wrap): Remove the_isl_ctx global variable that the same patch has
18394 (build_loop_iteration_domains): Same.
18395 (add_param_constraints): Same.
18396 (pdr_add_data_dimensions): Same. Refactored.
18397 (build_poly_dr): Renamed extent to subscript_sizes.
18399 2015-07-17 Marek Polacek <polacek@redhat.com>
18401 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
18402 * match.pd: ... here.
18404 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
18406 * config/nvptx/mkoffload.c (process): Constify target data.
18407 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18408 Constify target data.
18409 (generate_target_offloadend_file): Likewise.
18411 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
18413 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
18414 to allow renaming of PHI arguments on edges incoming from outer
18415 loop header, add corresponding check before start PHI iterator.
18416 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
18417 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
18418 with true force_vectorize. Set-up dominator for outer loop too.
18419 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
18420 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
18421 was marked with force_vectorize and has restricted cfg.
18422 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
18424 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
18425 do peeling for outer loops.
18427 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
18428 Matthias Klose <doko@ubuntu.com>
18430 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
18431 build-sysroot, sysroot from the `Miscenalleous configure options' to
18432 the `Directories' section and strip trailing `/' from with_sysroot.
18433 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
18434 * configure: Regenerated.
18436 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
18439 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
18440 (TARGET_HARD_DF_REGS): Ditto.
18441 (TARGET_HARD_XF_REGS): Ditto.
18442 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
18443 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
18444 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
18445 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
18446 (*movsf_internal): Add alternatives 16 and 17. Enable
18447 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
18449 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
18451 PR rtl-optimization/66891
18452 * calls.c (expand_call): Wrap precompute_register_parameters with
18453 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
18455 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
18457 * config/nvptx/mkoffload.c (process): Constify mapping variables.
18458 Define target data struct and initialize it.
18460 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
18462 PR rtl-optimization/66626
18463 * ira.h (emit-rtl.h): Include.
18464 (non_spilled_static_chain_regno_p): New.
18465 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
18466 unless it is non spilled static chain pseudo.
18467 (assign_hard_rego): Spill memory profitable allocno unless it is
18468 non spilled static chain pseudo.
18469 (allocno_spill_priority_compare): Put non spilled static chain
18470 pseudo at the end of sorted array.
18471 (improve_allocation): Do nothing if we have static chain and
18473 (allocno__priority_compare_func): Put non spilled static chain
18474 pseudo at the beginning of sorted array.
18475 (move_spill_restore): Ignore non spilled static chain pseudo.
18476 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
18477 to non spilled static chain pseudo.
18478 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
18479 pseudo at the beginning of sorted array.
18480 (spill_for): Spill non spilled static chain pseudo last.
18481 * lra-constraints.c (lra_constraints): Remove static chain pseudo
18482 check for equivalence.
18484 2015-07-16 Martin Liska <mliska@suse.cz>
18487 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
18488 dst_ctx if it does not exist.
18490 2015-07-16 Martin Liska <mliska@suse.cz>
18492 * hash-set.h (remove): New function.
18493 (iterator): New iteration class for hash_set.
18495 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18497 * genattrtab.c (make_canonical): Add a file_location parameter.
18498 Use fatal_at rather than fatal.
18499 (get_attr_value): Likewise. Update call to make_canonical.
18500 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
18501 (make_internal_attr): Update calls accordingly.
18503 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18505 * read-md.h (message_with_line, error_with_line): Delete.
18506 * read-md.c (message_with_line, error_with_line): Delete.
18507 * gensupport.h: Include read-md.h.
18508 (md_rtx_info): New structure.
18509 (read_md_rtx): Use it. Return a bool success value.
18510 * gensupport.c (read_md_rtx): Likewise.
18511 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
18512 (main): Update after interface changes.
18513 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
18514 (main): Update after interface changes.
18515 * genattrtab.c (insn_code_number): Delete.
18516 (optimize_attrs): Add a max_insn_code parameter and use it instead
18517 of insn_code_number.
18518 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
18519 Use *_at rather than *_with_line functions.
18520 (gen_insn): Likewise.
18521 (gen_delay): Likewise.
18522 (gen_insn_reserv): Likewise.
18523 (gen_bypass): Take an md_rtx_info rather than an rtx.
18524 (main): Update after interface changes. Use a local max_insn_code
18525 variable instead of insn_code_number.
18526 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
18527 an rtx. Use fatal_at rather than fatal.
18528 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
18529 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
18530 (gen_absence_set, gen_final_absence_set, gen_automaton)
18531 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
18532 (main): Update after interface changes.
18533 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
18535 (main): Update after interface changes.
18536 * genconditions.c (main): Use new read_md_rtx interface.
18537 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
18538 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
18539 (main): Update after interface changes.
18540 * genemit.c (insn_code_number, insn_index_number): Delete.
18541 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18542 Use fatal_at rather than fatal.
18543 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
18545 (gen_split): Likewise.
18546 (main): Update after interface changes.
18547 * genextract.c (line_no): Delete.
18548 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18549 Update call to walk_rtx.
18550 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
18551 rather than message_with_line.
18552 (walk_rtx): Add an md_rtx_info argument. Update call to
18553 VEC_safe_set_locstr.
18554 (main): Update after interface changes.
18555 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
18556 and lineno. Use error_at rather than separate message_with_line
18557 calls and have_error assignments.
18558 (main): Update after interface changes.
18559 * genmddump.c (main): Use new read_md_rtx interface.
18560 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
18561 (main): Update after interface changes.
18562 * genoutput.c (next_code_number): Delete.
18563 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18564 (gen_peephole, gen_expand, gen_split): Likewise.
18565 (note_constraint): Likewise. Use *_at rather than *_with_line
18567 (main): Update after interface changes.
18568 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
18570 (main): Update after interface changes.
18571 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
18572 than an rtx and lineno.
18573 (process_define_constraint): Likewise.
18574 (process_define_register_constraint): Likewise.
18575 (main): Update after interface changes.
18576 * genrecog.c (next_insn_code, pattern_lineno): Delete.
18577 (validate_pattern): Replace top-level rtx with an md_rtx_info.
18578 Use *_at rather than *_with_line functions.
18579 (match_pattern_2): Likewise.
18580 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
18581 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
18582 Use *_at rather than *_with_line functions.
18583 * gentarget-def.c (add_insn): New function.
18584 (main): Use it. Use new read_md_rtx interface.
18586 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18588 * gensupport.h (compute_test_codes): Take a file_location rather
18589 than a line number.
18590 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
18591 rather than *_with_line functions.
18592 (process_define_predicate): Update call to compute_test_codes.
18593 * genpreds.c (validate_exp): Take a file_location rather than a
18594 line number. Use *_at functions rather than *_with_line functions.
18595 (process_define_predicate): Update call to validate_exp.
18596 (constraint_data): Replace lineno field with a file_location.
18597 (add_constraint): Take a file_location rather than a line number.
18598 Use *_at functions rather than *_with_line functions. Fix error
18599 message for address constraints. Update after changes to
18600 validate_exp, constraint_data and compute_test_codes.
18601 (process_define_constraint): Update accordingly.
18602 (process_define_register_constraint): Likewise.
18604 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18606 * genoutput.c (data): Use a file_location to record the source
18609 (idata, idata_end): Remove initialization.
18610 (constraint_data): Replace lineno with a file_location.
18611 (output_insn_data): Update after changes to data.
18612 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
18613 (scan_operands): Likewise, using *_at rather than *_with_line
18615 (process_template): Likewise.
18616 (validate_insn_alternatives): Likewise.
18617 (validate_insn_operands): Likewise.
18618 (validate_optab_operands): Likewise.
18619 (init_insn_for_nothing): Initialize idata and idata_end.
18620 (note_constraint): Update after changes to constraint_data,
18621 using at rather than with_line functions.
18622 (mdep_constraint_len): Take a file_location rather than a
18623 line number. Use at rather than with_line functions.
18625 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18627 * read-md.h (fatal_at): Declare.
18628 * read-md.c (fatal_at): New function.
18629 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
18630 to record the source position.
18631 (check_attr_test): Take a file_location instead of a line number.
18632 Use fatal_at instead of fatal.
18633 (check_attr_value): Update after above changes, using "at"
18634 rather than "with_line" reporting functions.
18635 (convert_set_attr_alternative): Likewise.
18636 (gen_attr): Likewise.
18637 (check_defs): Likewise. Don't assign to read_md_filename.
18638 (gen_insn): Update initialization after above changes.
18639 (gen_delay): Likewise.
18640 (write_insn_cases): Print the filename for a define_peephole.
18641 (gen_insn_reserv): Take a line number as argument and update
18642 the call to check_attr_test.
18643 (main): Pass a line number to gen_insn_reserv.
18645 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18647 * read-md.h (file_location): New structure.
18648 (directive_handler_t): Take a file_location rather than a line number.
18649 (message_at, error_at): Declare.
18650 (read_skip_construct): Delete.
18651 * read-md.c (message_with_line_1): Replace with...
18652 (message_at_1): ...this new function.
18653 (message_at, error_at): New functions.
18654 (message_with_line, error_with_line): Update to use message_at_1.
18655 (handle_enum): Take a file_location rather than a line number
18656 and use error_at for error reporting.
18657 (handle_include): Likewise.
18658 (read_skip_construct): Likewise. Make static.
18659 (handle_file): Update after above changes. Pass a file_location
18660 rather than a line number to handle_directive.
18661 * gensupport.c (queue_elem): Replace separate filename and lineno
18662 with a file_location.
18663 (queue_pattern): Replace filename and lineno arguments with a
18664 file_location. Update after change to queue_elem.
18665 (process_define_predicate): Replace lineno argument with a
18666 file_location and use error_at for error reporting. Update
18667 after above changes.
18668 (process_rtx): Likewise.
18669 (subst_pattern_match): Likewise.
18670 (get_alternatives_number): Likewise.
18671 (alter_predicate_for_insn): Likewise.
18672 (rtx_handle_directive): Likewise.
18673 (is_predicable): Update after above changes, using error_at rather
18674 than error_with_line.
18675 (has_subst_attribute): Likewise.
18676 (identify_predicable_attribute): Likewise.
18677 (alter_attrs_for_subst_insn): Likewise.
18678 (process_one_cond_exec): Likewise.
18679 (process_substs_on_one_elem): Likewise.
18680 (process_define_subst): Likewise.
18681 (check_define_attr_duplicates): Likewise.
18682 (read_md_rtx): Update after change to queue_elem.
18684 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18686 * genoutput.c (next_index_number): Delete.
18687 (data): Remove index_number.
18688 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
18689 (main): Remove manipulation of next_index_number.
18691 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18693 * genattrtab.c (check_attr_value): Remove handling of null attrs.
18694 (make_canonical): Likewise.
18696 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
18698 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
18699 instead of adjust_address_nv.
18700 (restore_stack_nonlocal): Likewise.
18701 (nonlocal_goto): Likewise.
18703 2015-07-16 Tom de Vries <tom@codesourcery.com>
18705 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
18706 not have a corresponding loop header phi.
18708 2015-07-16 Tom de Vries <tom@codesourcery.com>
18710 * tree-parloops.c (create_loads_for_reductions): Handle case that
18711 reduction is unused.
18713 2015-07-16 Richard Biener <rguenther@suse.de>
18715 PR tree-optimization/66894
18716 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
18717 about deriving NE_EXPR from truncated values.
18719 2015-07-16 Martin Liska <mliska@suse.cz>
18722 (object_allocator): Add new class.
18723 (pool_allocator::initialize): Use the underlying class.
18724 (pool_allocator::allocate): Likewise.
18725 (pool_allocator::remove): Likewise.
18726 (operator new): A new generic allocator.
18727 * asan.c (struct asan_mem_ref): Remove unused members.
18728 (asan_mem_ref_new): Replace new operator with
18729 object_allocator::allocate.
18730 (free_mem_ref_resources): Change deallocation.
18731 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
18732 with object_allocator.
18733 * config/sh/sh.c (add_constant): Replace new operator with
18734 object_allocator::allocate.
18735 (sh_reorg): Change call to a release method.
18736 * cselib.c (struct elt_list): Remove unused members.
18737 (new_elt_list): Replace new operator with
18738 object_allocator::allocate.
18739 (new_elt_loc_list): Likewise.
18740 (new_cselib_val): Likewise.
18741 (unchain_one_elt_list): Change delete operator with remove method.
18742 (unchain_one_elt_loc_list): Likewise.
18743 (unchain_one_value): Likewise.
18744 (cselib_finish): Release newly added static allocators.
18745 * cselib.h (struct cselib_val): Remove unused members.
18746 (struct elt_loc_list): Likewise.
18747 * df-problems.c (df_chain_alloc): Replace pool_allocator with
18749 * df-scan.c (struct df_scan_problem_data): Likewise.
18750 (df_scan_alloc): Likewise.
18751 * df.h (struct dataflow): Likewise.
18752 * dse.c (struct read_info_type): Likewise.
18753 (struct insn_info_type): Likewise.
18754 (struct dse_bb_info_type): Likewise.
18755 (struct group_info): Likewise.
18756 (struct deferred_change): Likewise.
18757 (get_group_info): Likewise.
18758 (delete_dead_store_insn): Likewise.
18759 (free_read_records): Likewise.
18760 (replace_read): Likewise.
18761 (check_mem_read_rtx): Likewise.
18762 (scan_insn): Likewise.
18763 (dse_step1): Likewise.
18764 (dse_step7): Likewise.
18765 * et-forest.c (struct et_occ): Remove unused members.
18766 (et_new_occ): Use allocate instead of new operator.
18767 (et_new_tree): Likewise.
18768 (et_free_tree): Call release method explicitly.
18769 (et_free_tree_force): Likewise.
18770 (et_free_pools): Likewise.
18771 (et_split): Use remove instead of delete operator.
18772 * et-forest.h (struct et_node): Remove unused members.
18773 * ipa-cp.c: Change pool_allocator to object_allocator.
18774 * ipa-inline-analysis.c: Likewise.
18775 * ipa-profile.c: Likewise.
18776 * ipa-prop.c: Likewise.
18777 * ipa-prop.h: Likewise.
18778 * ira-build.c (initiate_cost_vectors): Cast return value.
18779 (ira_allocate_cost_vector): Likewise.
18780 * ira-color.c (struct update_cost_record): Remove unused members.
18781 * lra-int.h (struct lra_live_range): Likewise.
18782 (struct lra_copy): Likewise.
18783 (struct lra_insn_reg): Likewise.
18784 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
18785 * lra.c (new_insn_reg): Replace new operator with allocate method.
18786 (free_insn_regs): Same for operator delete.
18787 (finish_insn_regs): Release new static allocator.
18788 (finish_insn_recog_data): Likewise.
18789 (lra_free_copies): Replace delete operator with remove method.
18790 (lra_create_copy): Replace operator new with allocate method.
18791 (invalidate_insn_data_regno_info): Same for remove method.
18792 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
18793 (free_debug_insn_changes): Replace delete operator with remove method.
18794 (replace_oldest_value_reg): Replace operator new with allocate method.
18795 (pass_cprop_hardreg::execute): Release new static variable.
18796 * sched-deps.c (sched_deps_init): Change pool_allocator to
18798 * sel-sched-ir.c: Likewise.
18799 * sel-sched-ir.h: Likewise.
18800 * stmt.c (expand_case): Likewise.
18801 (expand_sjlj_dispatch_table): Likewise.
18802 * tree-sra.c (struct access): Remove unused members.
18803 (struct assign_link): Likewise.
18804 (sra_deinitialize): Release newly added static pools.
18805 (create_access_1):Replace operator new with allocate method.
18806 (build_accesses_from_assign): Likewise.
18807 (create_artificial_child_access): Likewise.
18808 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
18809 pool_allocator to object_allocator.
18810 * tree-ssa-pre.c: Likewise.
18811 * tree-ssa-reassoc.c: Likewise.
18812 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
18813 * tree-ssa-strlen.c: Likewise.
18814 * tree-ssa-structalias.c: Likewise.
18815 * var-tracking.c (onepart_pool_allocate): New function.
18816 (unshare_variable): Use the newly added function.
18817 (variable_merge_over_cur): Likewise.
18818 (variable_from_dropped): Likewise.
18819 (variable_was_changed): Likewise.
18820 (set_slot_part): Likewise.
18821 (emit_notes_for_differences_1): Likewise.
18822 (vt_finalize): Release newly added static pools.
18824 2015-07-16 Martin Jambor <mjambor@suse.cz>
18826 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
18827 all uses. Fix two typos in its general comment.
18828 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
18830 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
18832 * config/i386/linux-common.h (LINK_MPX): New.
18833 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
18834 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
18835 indicating '-z bndplt' support by linker.
18836 * configure: Regenerate.
18837 * config.in: Regenerate.
18839 2015-07-16 Richard Biener <rguenther@suse.de>
18841 * fold-const.c (fold_widened_comparison): Remove.
18842 (fold_sign_changed_comparison): Likewise.
18843 (fold_comparison): Move widened and sign-changed comparison
18845 * match.pd: ... to patterns here.
18846 * generic-match-head.c: Include target.h.
18847 * gimple-match-head.c: Likewise.
18849 2015-07-16 Richard Biener <rguenther@suse.de>
18851 * tree-ssa-dom.c (dom_valueize): New function.
18852 (record_temporary_equivalences): Also record equivalences
18853 for dominating stmts that have uses of equivalences we are
18856 2015-07-16 Bin Cheng <bin.cheng@arm.com>
18858 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
18859 add_autoinc_candidates.
18860 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
18861 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
18862 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
18863 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
18865 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
18866 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
18867 Remove parameter struct iv*. Call add_autoinc_candidates here.
18868 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
18869 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
18871 (find_iv_candidates): Call new functions.
18873 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
18875 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
18876 uninitialized-variable warning.
18878 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
18881 * config/sh/sh.md (movdi): Split simple reg move to two movsi
18882 when the destination is R0.
18884 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
18887 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
18888 * config/i386/i386.c (ix86_expand_pextr): New function.
18889 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
18890 for non-lowpart subregs.
18891 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
18892 (insv<mode>): Use SWI248 mode iterator.
18893 (insv<mode>_1): Ditto.
18895 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18896 Sebastian Pop <s.pop@samsung.com>
18898 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
18899 iterator to use_stmt.
18901 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18902 Sebastian Pop <s.pop@samsung.com>
18904 * graphite-scop-detection.c (build_scops_1): Discard scops for
18907 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18908 Sebastian Pop <s.pop@samsung.com>
18910 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
18911 case of a return statement in scop.
18913 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18914 Sebastian Pop <s.pop@samsung.com>
18916 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
18917 INTEGER_TYPE parameters.
18918 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
18919 VECTOR_CST in scan_tree_for_params.
18920 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
18922 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
18924 * gimple-pretty-print.h: Don't include pretty-print.h.
18925 * tree-streamer.h: Don't include lto-streamer.h.
18926 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
18927 * gimple-streamer-in.c: Remove redundant includes.
18928 * gimple-streamer-out.c: Likewise.
18929 * ipa-devirt.c: Likewise.
18930 * ipa-icf.c: Likewise.
18931 * ipa-inline-analysis.c: Likewise.
18932 * ipa-polymorphic-call.c: Likewise.
18933 * ipa-profile.c: Likewise.
18934 * ipa-prop.c: Likewise.
18935 * ipa-pure-const.c: Likewise.
18936 * lto-cgraph.c: Likewise.
18937 * lto-streamer-in.c: Likewise.
18938 * lto-streamer-out.c: Likewise.
18939 * lto-streamer.c: Likewise.
18940 * tree-streamer-in.c: Likewise.
18941 * tree-streamer-out.c: Likewise.
18942 * tree-streamer.c: Likewise.
18944 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
18946 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
18948 * opts.c: Remove multiline #include comment.
18950 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
18952 * config/nvptx/mkoffload.c (process): Add C++ protection to
18955 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18958 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
18959 null before IEEE 128-bit floating point support patch.
18961 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18963 * simplify-rtx.c (simplify_ternary_operation): Add simplification
18964 for (!c) != {0,...,0} ? a : b for vector modes.
18966 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
18967 Martin Jambor <mjambor@suse.cz>
18969 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
18970 struct func_body_info* instead of struct ipa_node_params*, expecting
18971 fbi->info to be filled in. Replace throughout. Adjust call to
18972 ipa_load_from_parm_agg.
18973 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
18974 instead of struct ipa_node_params*. Adjust calls to other functions
18975 so that they pass either fbi or fbi->info.
18976 (set_switch_stmt_execution_predicate): Likewise.
18977 (will_be_nonconstant_predicate): Likewise.
18978 (compute_bb_predicates): Likewise.
18979 (estimate_function_body_sizes): Move asserts earlier. Fill in
18980 struct func_body_info, replace parms_info with fbi.info. Adjust
18981 calls to functions that now accept struct func_body_info.
18982 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
18983 (struct func_body_info): Likewise.
18984 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
18985 remove static. Adjust callers.
18986 (ipa_load_from_parm_agg): Remove.
18987 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
18988 (func_body_info): Likewise.
18989 (ipa_load_from_parm_agg): Adjust prototype.
18991 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18993 * gensupport.c (rtx_handle_directive): Adjust.
18994 * read-rtl.c (apply_iterators): Take vector to add rtxs to
18995 instead of expr list rtx.
18996 (add_define_attr_for_define_subst): Likewise.
18997 (add_define_subst_attr): Likewise.
18998 (read_subst_mapping): Likewise.
18999 (read_rtx): Likewise.
19000 * rtl.h (read_rtx): Adjust.
19002 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19004 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
19006 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19009 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
19010 (*tls_local_dynamic_base_64_<mode>): Ditto.
19011 (*tls_local_dynamic_base_64_largepic): Ditto.
19012 (tls_global_dynamic_64_<mode>): Update expander pattern.
19013 (tls_local_dynamic_base_64_<mode>): Ditto.
19015 2015-07-15 Richard Biener <rguenther@suse.de>
19017 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
19018 and bool_var == 1 -> bool_var simplifications ...
19019 * match.pd: ... to patterns here. Factor out negate_expr_p
19020 cases from the A - B -> A + (-B) patterns as negate_expr_p
19021 predicate and add a -(A + B) -> (-B) - A pattern.
19023 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
19025 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
19027 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
19028 Robert Suchanek <robert.suchanek@imgtec.com>
19030 * config/mips/mips.c (mips_int_mask): New enum.
19031 (mips_shadow_set): Likewise.
19032 (int_mask): New variable.
19033 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
19034 (machine_function): Add int_mask and use_shadow_register_set.
19035 (mips_attribute_table): Add attribute handlers for interrupt and
19036 use_shadow_register_set.
19037 (mips_interrupt_mask): New static function.
19038 (mips_handle_interrupt_attr): Likewise.
19039 (mips_handle_use_shadow_register_set_attr): Likewise.
19040 (mips_use_shadow_register_set): Change return type to enum
19041 mips_shadow_set. Add argument handling for use_shadow_register_set
19043 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
19044 compare with mips_shadow_set enum.
19045 (mips_compute_frame_info): Add interrupt mask and
19046 use_shadow_register_set to per-function information structure.
19047 Add a stack slot for EPC unconditionally.
19048 (mips_expand_prologue): Compare use_shadow_register_set value
19049 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
19050 masked interrupt register but in EIC mode use K0 and save Cause in K0.
19051 EPC saved and restored unconditionally. Use PMODE_INSN macro when
19052 copying the stack pointer from the shadow register set.
19053 * config/mips/mips.h (SR_IM0): New define.
19054 * config/mips/mips.md (mips_rdpgpr): Rename to...
19055 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
19056 * doc/extend.texi (Declaring Attributes of Functions): Document
19057 optional arguments for interrupt and use_shadow_register_set
19060 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
19062 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
19063 interrupt attribute.
19064 (mips_expand_prologue): Disable the floating point unit in an ISR.
19065 * config/mips/mips.h (SR_COP1): New define.
19067 2015-07-15 Richard Biener <rguenther@suse.de>
19069 * genmatch.c (parser::peek, parser::peek_ident): Add argument
19070 to tell how many tokens to peek ahead (default 1).
19071 (parser::eat_token, parser::eat_ident): Return token consumed.
19072 (parser::parse_result): Parse new switch statement.
19073 * match.pd: Use case statements where appropriate.
19075 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19077 PR rtl-optimization/58066
19078 * calls.c (expand_call): Precompute register parameters before stack
19079 alignment is performed.
19081 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19083 PR rtl-optimization/66838
19084 * postreload.c (reload_cse_move2add): Also process
19085 CALL_INSN_FUNCTION_USAGE when resetting information of
19086 call-clobbered registers.
19088 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19089 Cesar Philippidis <cesar@codesourcery.com>
19090 Chung-Lin Tang <cltang@codesourcery.com>
19092 * config/nios2/constraints.md (U, v): New constraints.
19093 * config/nios2/predicates.md (rdprs_dcache_operand): New.
19094 (ldstex_memory_operand): New.
19095 * config/nios2/sync.md: New file.
19096 * config/nios2/nios2.md (unspecv): Add new builtin function
19098 (rdprs, flushd, flushda, wrpie, eni): New patterns.
19099 (top-level): Include sync.md.
19100 * config/nios2/nios2.c (N2_FTYPES): Add function types for
19102 (N2_BUILTINS): Add arch field setting, add new builtins.
19103 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
19105 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
19106 Also handle ldex/stex/ldsex/stsex builtins.
19107 (nios2_expand_rdprs_builtin): New function.
19108 (nios2_expand_cache_builtin): New function.
19109 (nios2_expand_wrpie_builtin): New function.
19110 (nios2_expand_eni_builtin): New function.
19111 (nios2_expand_builtin): Add arch field handling and new builtin
19113 * doc/extend.texi (Altera Nios II Built-in Functions): Document
19115 * doc/md.texi (Machine Constraints): Document U and v constraints.
19117 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19118 Cesar Philippidis <cesar@codesourcery.com>
19119 Chung-Lin Tang <cltang@codesourcery.com>
19121 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
19122 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
19123 callee_save_reg_size and uses_anonymous_args fields.
19124 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
19125 (nios2_create_cfa_notes): New function.
19126 (nios2_adjust_stack): New function for adjusting stack.
19127 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
19128 Use nios2_adjust_stack.
19129 (nios2_expand_epilogue): Likewise.
19130 (nios2_expand_return): New function.
19131 (nios2_can_use_return_insn): Update for CDX pop.n usage.
19132 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
19133 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
19134 * config/nios2/nios2.md (return): Use nios2_expand_return.
19136 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19137 Cesar Philippidis <cesar@codesourcery.com>
19138 Chung-Lin Tang <cltang@codesourcery.com>
19140 * config/nios2/predicates.md (pop_operation): New.
19141 (ldwm_operation, stwm_operation): New.
19142 (nios2_hard_register_operand): New.
19143 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
19144 (ldstwm_operation_p): Declare.
19145 (gen_ldstwm_peep): Declare.
19146 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
19147 (base_reg_adjustment_p): New.
19148 (pop_operation_p): New.
19149 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
19150 (nios2_ldstwm_regset_p): New.
19151 (ldstwm_operation_p): New.
19153 (nios2_ldst_parallel): New.
19154 (struct ldswm_operand): Declare.
19155 (compare_ldstwm_operands): New.
19156 (can_use_cdx_ldstw): New.
19157 (gen_ldstwm_peep): New.
19158 * config/nios2/nios2-ldstwm.sml: New.
19159 * config/nios2/nios2.md: Include ldstwm.md.
19160 * config/nios2/ldstwm.md: Generated.
19162 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19163 Cesar Philippidis <cesar@codesourcery.com>
19164 Chung-Lin Tang <cltang@codesourcery.com>
19166 * config/nios2/nios2.h (LABEL_ALIGN): Define.
19167 (REG_ALLOC_ORDER): Define.
19168 (ADJUST_REG_ALLOC_ORDER): Define.
19169 (HONOR_REG_ALLOC_ORDER): Define.
19170 (CDX_REG_P): Define.
19171 (ANDCLEAR_INT): Define.
19172 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
19173 (nios2_label_align): Declare.
19174 (nios2_cdx_narrow_form_p): Declare.
19175 (nios2_adjust_reg_alloc_order): Declare.
19176 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
19178 (nios2_large_unspec_reloc_p): New function, split from...
19179 (nios2_legitimate_pic_operand_p): ...here.
19180 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
19181 (nios2_print_operand_punct_valid_p): New.
19182 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
19183 (split_mem_address): New.
19184 (split_alu_insn): New.
19186 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
19187 (enum nios2_add_insn_kind): New.
19188 (nios2_add_insn_names, nios2_add_insn_narrow): New.
19189 (nios2_add_insn_classify): New.
19190 (nios2_add_insn_asm): New.
19191 (nios2_cdx_narrow_form_p): New.
19192 (label_align, min_labelno, max_labelno): New.
19193 (nios2_reorg): New.
19194 (nios2_label_align): New.
19195 (nios2_adjust_reg_alloc_order): New.
19196 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19197 (TARGET_MACHINE_DEPENDENT_REORG): Define.
19198 * config/nios2/constraints.md (P): New constraint.
19199 * config/nios2/predicates.md (const_and_operand): New.
19200 (and_operand): New.
19201 (stack_memory_operand): New.
19202 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
19203 (length): Update to use nios2_cdx_narrow_form_p().
19204 (type): Add new insn type values.
19205 (control, alu, st, ld, shift): Update insn reservations with
19206 new insn type values.
19207 (*high, *lo_sum): Define new insn patterns for constant generation.
19208 (movqi_internal, movhi_internal, movsi_internal): Reduce
19209 alternatives, update asm template to handle CDX variants, update
19211 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
19212 template, update type attributes.
19213 (extendhisi2, extendqi<mode>2): Likewise.
19214 (addsi3): Change to use function for asm string.
19215 (subsi3): Add CDX notation to asm template, update type attributes.
19216 (negsi3, one_cmplsi3): Likewise.
19217 (andsi3): New pattern, specialized from logical patterns.
19218 (<code>si3): Remove and case, combine alternatives, update asm
19220 (<shift_op>si3): Add CDX notation, update type attributes.
19221 (rotrsi3): Update type attribute.
19222 (*merge, extzv, insv): New insn patterns.
19223 (return): Change to define_expand.
19224 (simple_return): Add CDX notation, update type attributes.
19225 (indirect_jump): Add CDX notation.
19226 (jump): Update asm cases, update length attribute expression.
19227 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
19228 (nios2_cbranch): Update asm cases and length attribute expression
19229 to handle CDX variants.
19230 (nios2_cmp<code>): Update asm template.
19231 (nop): Add CDX notation, update type attributes.
19232 (trap): Add CDX notation.
19233 (ctrapsi4): Update asm cases and length attribute expression to
19234 handle CDX variant.
19235 * doc/md.texi (Machine Constraints): Document P constraint.
19237 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19238 Cesar Philippidis <cesar@codesourcery.com>
19239 Chung-Lin Tang <cltang@codesourcery.com>
19241 * config/nios2/nios2.h (SMALL_INT12): New macro.
19242 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
19243 (nios2_valid_addr_expr_p): Use it.
19244 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
19245 with implicit "io" instructions on R2.
19246 * config/nios2/constraints.md (w): New constraint.
19247 * config/nios2/predicates.md (ldstio_memory_operand): New.
19248 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
19249 operand predicate and constraint.
19250 (ld<bh>io_signed, st<bhw>io>): Likewise.
19251 * doc/md.texi (Machine Constraints): Document w constraint.
19253 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19254 Cesar Philippidis <cesar@codesourcery.com>
19255 Chung-Lin Tang <cltang@codesourcery.com>
19257 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
19258 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
19259 Nios II architecture level.
19260 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
19261 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
19262 (OPTION_DEFAULT_SPECS): Define.
19263 (ASM_SPEC): Add -march= spec strings.
19264 * config/nios2/nios2.c (nios2_option_override): Check for
19265 conflicts involving new options.
19266 * config.gcc (nios2*-*-*): Support --with-arch=.
19267 * doc/invoke.texi (Option Summary, Nios II Options): Document
19268 -march=, -mbmx, and -mcdx.
19270 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
19272 PR rtl-optimization/66626
19273 * lra-constraints.c (lra_constraints): Prevent equivalence
19274 substitution for static chain pseudo in functions with nonlocal
19277 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19279 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
19280 (nios2_emit_stack_limit_check): Add size parameter. Handle
19281 -fstack-limit-symbol as well as -fstack-limit-register.
19282 (nios2_expand_prologue): Emit only a single stack limit check,
19283 even if multiple stack adjustments are required.
19284 (nios2_option_override): Diagnose unsupported combination of -fpic
19285 and -stack-limit-symbol.
19287 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
19289 * Makefile.in (top_srcdir): New.
19290 * configure.ac: Use AM_ZLIB.
19291 * configure: Regeneated.
19293 2015-07-14 Matthias Klose <doko@ubuntu.com>
19296 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
19298 2015-07-14 Richard Biener <rguenther@suse.de>
19300 PR tree-optimization/66863
19301 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
19302 what we record for conversion use stmt lhs inequalities.
19304 2015-07-14 Richard Biener <rguenther@suse.de>
19306 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
19307 (decision_tree::gen_gimple): Likewise.
19309 2015-07-14 Tom de Vries <tom@codesourcery.com>
19311 * gcc.c (greater_than_spec_func): Declare forward.
19312 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
19313 -ftree-parallelize-loops={0,1}.
19314 (static_spec_functions): Add greater_than_spec_func function with name
19316 (greater_than_spec_func): New function.
19318 2015-07-14 Richard Biener <rguenther@suse.de>
19320 * tree-ssa-dom.c (record_temporary_equivalences): Merge
19321 wideing type conversion case from record_equivalences_from_incoming_edge
19322 and use record_equality to record equivalences.
19323 (record_equivalences_from_incoming_edge): Call
19324 record_temporary_equivalences.
19326 2015-07-14 Richard Biener <rguenther@suse.de>
19328 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
19329 (struct if_expr): New.
19330 (struct with_expr): Likewise.
19331 (is_a_helper): Add helpers for if_expr and with_expr.
19332 (struct simplify): Add simplify_kind enum and member. Remove
19334 (simplify::simplify): Adjust.
19335 (lower_commutative): Adjust.
19336 (lower_opt_convert): Likewise.
19337 (lower_cond): Likewise.
19338 (replace_id): Handle with_expr and if_expr.
19339 (lower_for): Adjust.
19340 (dt_simplify::gen_1): New recursive worker, split out from ...
19341 (dt_simplify::gen): ... here. Deal with if and with expansion
19343 (capture_info::capture_info): Take context argument
19344 (capture_info::walk_result): Only analyze specific result.
19345 (parser::parse_result): New function.
19346 (parser::parse_simplify): Adjust to parse ifs with then end
19348 (parser::parse_if): Simplify.
19349 (parser::parse_pattern): Pass down simplify kind.
19350 * match.pd: Convert if structure to new syntax.
19352 2015-07-13 Marek Polacek <polacek@redhat.com>
19354 * rtl.c (rtx_equal_p_cb): Fix typo.
19356 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
19358 * omega.h: Don't include config.h, don't include params.h again if
19359 omega.h has already been included.
19360 * graphite-poly.h: Include sese.h.
19361 * graphite.c: Don't include sese.h, remove needless includes and
19362 minimize includes outside #ifdef HAVE_isl block.
19363 * graphite-blocking.c: Don't include sese.h, remove needless includes,
19364 and wrap entire file in #ifdef HAVE_isl
19365 * graphite-dependences.c: Likewise.
19366 * graphite-interchange.c: Likewise.
19367 * graphite-isl-ast-to-gimple.c: Likewise.
19368 * graphite-optimize-isl.c: Likewise.
19369 * graphite-poly.c: Likewise.
19370 * graphite-scop-detection.c: Likewise.
19371 * graphite-sese-to-poly.c: Likewise.
19373 2015-07-13 Tom de Vries <tom@codesourcery.com>
19375 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
19377 2015-07-13 Renlin Li <renlin.li@arm.com>
19380 * simplify-rtx.c (simplify_const_relational_operation): Add
19381 side_effects_p checks.
19383 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
19385 * bitmap.h: Fix double word typos.
19386 * builtins.c: Same.
19388 * cfgloopmanip.c: Same.
19391 * cgraphclones.c: Same.
19393 * config/aarch64/aarch64-protos.h: Same.
19394 * config/aarch64/aarch64.c: Same.
19395 * config/aarch64/aarch64.md: Same.
19396 * config/arm/arm.md: Same.
19397 * config/arm/arm1020e.md: Same.
19398 * config/arm/arm1026ejs.md: Same.
19399 * config/arm/arm926ejs.md: Same.
19400 * config/arm/fa526.md: Same.
19401 * config/arm/fa606te.md: Same.
19402 * config/arm/fa626te.md: Same.
19403 * config/arm/fa726te.md: Same.
19404 * config/arm/fmp626.md: Same.
19405 * config/darwin.c: Same.
19406 * config/epiphany/epiphany.c: Same.
19407 * config/frv/frv.c: Same.
19408 * config/ft32/ft32.c: Same.
19409 * config/gnu-user.h: Same.
19410 * config/h8300/constraints.md: Same.
19411 * config/i386/i386.c: Same.
19412 * config/i386/i386.md: Same.
19413 * config/iq2000/iq2000.md: Same.
19414 * config/mips/mips.c: Same.
19415 * config/mmix/mmix.md: Same.
19416 * config/moxie/moxie.c: Same.
19417 * config/nds32/nds32.md: Same.
19418 * config/pa/pa.h: Same.
19419 * config/rs6000/aix.h: Same.
19420 * config/rs6000/rs6000.h: Same.
19421 * config/sh/sh.c: Same.
19422 * config/tilegx/tilegx.md: Same.
19423 * config/tilepro/gen-mul-tables.cc: Same.
19426 * doc/invoke.texi: Same.
19428 * dwarf2out.c: Same.
19431 * genmatch.c: Same.
19432 * gimplify.c: Same.
19433 * hash-table.h: Same.
19434 * internal-fn.c: Same.
19436 * ipa-devirt.c: Same.
19439 * ipa-profile.c: Same.
19440 * ipa-prop.c: Same.
19441 * ipa-prop.h: Same.
19444 * reg-stack.c: Same.
19445 * regcprop.c: Same.
19450 * tree-inline.c: Same.
19451 * tree-sra.c: Same.
19452 * tree-ssa-dom.c: Same.
19453 * tree-ssa-loop-ivopts.c: Same.
19454 * tree-ssa-structalias.c: Same.
19455 * tree-ssa-tail-merge.c: Same.
19456 * tree-ssa-ter.c: Same.
19457 * tree-ssa-threadupdate.c: Same.
19458 * tree-ssa-uninit.c: Same.
19459 * tree-ssanames.c: Same.
19460 * tree-vect-loop-manip.c: Same.
19461 * tree-vrp.c: Same.
19463 * valtrack.c: Same.
19466 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
19468 PR middle-end/66726
19469 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
19470 tree_ssa_phiopt_worker): Call it.
19472 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
19474 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
19475 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
19478 2015-07-11 Marek Polacek <polacek@redhat.com>
19480 PR middle-end/66353
19481 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
19482 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
19483 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
19484 rather than bb_has_abnormal_call_pred.
19485 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
19486 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
19487 rather than bb_has_abnormal_call_pred.
19489 2015-07-10 Anatoly Sokolov <aesok@post.ru>
19491 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
19492 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
19493 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19494 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
19495 v850_legitimate_address_p): New functions.
19496 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
19498 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
19501 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
19502 indirect sibcall with register arguments if register available
19503 for argument passing.
19504 (init_cumulative_args): Set cfun->machine->arg_reg_available
19505 to (cum->nregs > 0) or to true if function has a variable
19507 (function_arg_advance_32): Set cfun->machine->arg_reg_available
19508 to false if cum->nregs <= 0.
19509 * config/i386/i386.h (machine_function): Add arg_reg_available.
19511 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
19513 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
19514 and gen_higpart instead of gen_rtx_SUBREG.
19515 * config/i386/i386.md
19516 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
19517 (read-modify peephole2): Use gen_lowpart instead of
19518 gen_rtx_SUBREG for operand 5.
19520 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
19522 * config/tilepro/gen-mul-tables.cc (main): Change include list for
19524 * config/tilepro/mul-tables.c: Regenerate.
19525 * config/tilegx/mul-tables.c: Regenerate.
19527 2015-07-10 Richard Biener <rguenther@suse.de>
19529 * fold-const.c (distribute_bit_expr): Remove.
19530 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
19531 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
19532 to A & (B | C) and simplifying A << C1 << C2 to ...
19533 * match.pd: ... patterns here.
19535 2015-07-10 Jiong Wang <jiong.wang@arm.com>
19537 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19538 Mark mem as READONLY and NOTRAP for PIC symbol.
19540 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
19542 * gimple-predict.h: New file.
19543 (gimple_predict_predictor, gimple_predict_set_predictor,
19544 gimple_predict_outcome, gimple_predict_set_outcome,
19545 gimple_build_predict): Relocate here.
19546 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
19547 gimple_predict_outcome, gimple_predict_set_outcome): Move to
19549 * gimple.c (gimple_build_predict): Move to gimple-predict.h
19550 * basic-block.h: Don't include cfghooks.h.
19551 * backend.h: Don't include predict.h.
19552 * cfghooks.h: Include predict.h.
19553 * gimple-pretty-print.c: Include gimple-predict.h.
19554 * gimplify.c: Likwise.
19555 * predict.c: Adjust includes.
19556 * tree-inline.c: Likewise.
19557 * asan.c: Likewise.
19558 * auto-inc-dec.c: Likewise.
19559 * auto-profile.c: Likewise.
19560 * bb-reorder.c: Likewise.
19561 * builtins.c: Likewise.
19562 * caller-save.c: Likewise.
19563 * calls.c: Likewise.
19564 * cfganal.c: Likewise.
19565 * cfgbuild.c: Likewise.
19567 * cfgcleanup.c: Likewise.
19568 * cfgexpand.c: Likewise.
19569 * cfghooks.c: Likewise.
19570 * cfgloopanal.c: Likewise.
19571 * cfgloop.c: Likewise.
19572 * cfgloopmanip.c: Likewise.
19573 * cfgrtl.c: Likewise.
19574 * cgraph.c: Likewise.
19575 * cgraphunit.c: Likewise.
19576 * combine.c: Likewise.
19577 * cprop.c: Likewise.
19580 * dojump.c: Likewise.
19582 * except.c: Likewise.
19583 * expmed.c: Likewise.
19584 * expr.c: Likewise.
19585 * final.c: Likewise.
19586 * fold-const.c: Likewise.
19587 * function.c: Likewise.
19588 * fwprop.c: Likewise.
19589 * gcc-plugin.h: Likewise.
19590 * gcse.c: Likewise.
19591 * genattrtab.c: Likewise.
19592 * genemit.c: Likewise.
19593 * gengtype.c: Likewise.
19594 * genopinit.c: Likewise.
19595 * genoutput.c: Likewise.
19596 * genpreds.c: Likewise.
19597 * genrecog.c: Likewise.
19598 * gimple-fold.c: Likewise.
19599 * gimple-iterator.c: Likewise.
19600 * gimple-ssa-isolate-paths.c: Likewise.
19601 * gimple-ssa-strength-reduction.c: Likewise.
19602 * graph.c: Likewise.
19603 * graphite-blocking.c: Likewise.
19604 * graphite.c: Likewise.
19605 * graphite-dependences.c: Likewise.
19606 * graphite-interchange.c: Likewise.
19607 * graphite-isl-ast-to-gimple.c: Likewise.
19608 * graphite-optimize-isl.c: Likewise.
19609 * graphite-poly.c: Likewise.
19610 * graphite-scop-detection.c: Likewise.
19611 * graphite-sese-to-poly.c: Likewise.
19612 * haifa-sched.c: Likewise.
19613 * ifcvt.c: Likewise.
19614 * internal-fn.c: Likewise.
19615 * ipa-cp.c: Likewise.
19616 * ipa-profile.c: Likewise.
19617 * ipa-split.c: Likewise.
19618 * ipa-utils.c: Likewise.
19619 * ira-build.c: Likewise.
19620 * ira-color.c: Likewise.
19621 * ira-conflicts.c: Likewise.
19622 * ira-costs.c: Likewise.
19623 * ira-emit.c: Likewise.
19624 * ira-lives.c: Likewise.
19625 * jump.c: Likewise.
19626 * loop-doloop.c: Likewise.
19627 * loop-init.c: Likewise.
19628 * loop-invariant.c: Likewise.
19629 * loop-unroll.c: Likewise.
19630 * lower-subreg.c: Likewise.
19631 * lra-assigns.c: Likewise.
19633 * lra-coalesce.c: Likewise.
19634 * lra-constraints.c: Likewise.
19635 * lra-lives.c: Likewise.
19636 * lto-cgraph.c: Likewise.
19637 * lto-streamer-in.c: Likewise.
19638 * mode-switching.c: Likewise.
19639 * modulo-sched.c: Likewise.
19640 * omp-low.c: Likewise.
19641 * optabs.c: Likewise.
19642 * passes.c: Likewise.
19643 * postreload.c: Likewise.
19644 * postreload-gcse.c: Likewise.
19645 * profile.c: Likewise.
19646 * recog.c: Likewise.
19647 * regstat.c: Likewise.
19648 * reload1.c: Likewise.
19649 * reorg.c: Likewise.
19650 * rtlanal.c: Likewise.
19651 * sched-ebb.c: Likewise.
19652 * sel-sched-ir.c: Likewise.
19653 * sese.c: Likewise.
19654 * shrink-wrap.c: Likewise.
19655 * simplify-rtx.c: Likewise.
19656 * stmt.c: Likewise.
19657 * store-motion.c: Likewise.
19658 * tracer.c: Likewise.
19659 * trans-mem.c: Likewise.
19660 * tree-call-cdce.c: Likewise.
19661 * tree-cfg.c: Likewise.
19662 * tree-cfgcleanup.c: Likewise.
19663 * tree-chkp.c: Likewise.
19664 * tree-complex.c: Likewise.
19665 * tree-eh.c: Likewise.
19666 * tree-if-conv.c: Likewise.
19667 * tree-loop-distribution.c: Likewise.
19668 * tree-outof-ssa.c: Likewise.
19669 * tree-parloops.c: Likewise.
19670 * tree-predcom.c: Likewise.
19671 * tree-pretty-print.c: Likewise.
19672 * tree-profile.c: Likewise.
19673 * tree-sra.c: Likewise.
19674 * tree-ssa.c: Likewise.
19675 * tree-ssa-coalesce.c: Likewise.
19676 * tree-ssa-dce.c: Likewise.
19677 * tree-ssa-dom.c: Likewise.
19678 * tree-ssa-forwprop.c: Likewise.
19679 * tree-ssa-ifcombine.c: Likewise.
19680 * tree-ssa-loop-ch.c: Likewise.
19681 * tree-ssa-loop-im.c: Likewise.
19682 * tree-ssa-loop-ivcanon.c: Likewise.
19683 * tree-ssa-loop-ivopts.c: Likewise.
19684 * tree-ssa-loop-manip.c: Likewise.
19685 * tree-ssa-loop-prefetch.c: Likewise.
19686 * tree-ssa-loop-unswitch.c: Likewise.
19687 * tree-ssa-math-opts.c: Likewise.
19688 * tree-ssa-phiopt.c: Likewise.
19689 * tree-ssa-pre.c: Likewise.
19690 * tree-ssa-reassoc.c: Likewise.
19691 * tree-ssa-sink.c: Likewise.
19692 * tree-ssa-tail-merge.c: Likewise.
19693 * tree-ssa-threadedge.c: Likewise.
19694 * tree-ssa-threadupdate.c: Likewise.
19695 * tree-switch-conversion.c: Likewise.
19696 * tree-tailcall.c: Likewise.
19697 * tree-vect-data-refs.c: Likewise.
19698 * tree-vect-loop.c: Likewise.
19699 * tree-vect-loop-manip.c: Likewise.
19700 * tree-vectorizer.c: Likewise.
19701 * tree-vrp.c: Likewise.
19702 * ubsan.c: Likewise.
19703 * value-prof.c: Likewise.
19704 * varasm.c: Likewise.
19705 * var-tracking.c: Likewise.
19706 * config/aarch64/aarch64-builtins.c: Likewise.
19707 * config/aarch64/aarch64.c: Likewise.
19708 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19709 * config/alpha/alpha.c: Likewise.
19710 * config/arc/arc.c: Likewise.
19711 * config/arm/arm.c: Likewise.
19712 * config/avr/avr.c: Likewise.
19713 * config/bfin/bfin.c: Likewise.
19714 * config/c6x/c6x.c: Likewise.
19715 * config/cr16/cr16.c: Likewise.
19716 * config/cris/cris.c: Likewise.
19717 * config/darwin.c: Likewise.
19718 * config/darwin-c.c: Likewise.
19719 * config/epiphany/epiphany.c: Likewise.
19720 * config/epiphany/mode-switch-use.c: Likewise.
19721 * config/epiphany/resolve-sw-modes.c: Likewise.
19722 * config/fr30/fr30.c: Likewise.
19723 * config/frv/frv.c: Likewise.
19724 * config/ft32/ft32.c: Likewise.
19725 * config/h8300/h8300.c: Likewise.
19726 * config/i386/i386.c: Likewise.
19727 * config/i386/winnt.c: Likewise.
19728 * config/ia64/ia64.c: Likewise.
19729 * config/iq2000/iq2000.c: Likewise.
19730 * config/lm32/lm32.c: Likewise.
19731 * config/m32c/m32c.c: Likewise.
19732 * config/m32r/m32r.c: Likewise.
19733 * config/m68k/m68k.c: Likewise.
19734 * config/mcore/mcore.c: Likewise.
19735 * config/mep/mep.c: Likewise.
19736 * config/microblaze/microblaze.c: Likewise.
19737 * config/mips/mips.c: Likewise.
19738 * config/mmix/mmix.c: Likewise.
19739 * config/mn10300/mn10300.c: Likewise.
19740 * config/moxie/moxie.c: Likewise.
19741 * config/msp430/msp430.c: Likewise.
19742 * config/nds32/nds32.c: Likewise.
19743 * config/nds32/nds32-cost.c: Likewise.
19744 * config/nds32/nds32-fp-as-gp.c: Likewise.
19745 * config/nds32/nds32-intrinsic.c: Likewise.
19746 * config/nds32/nds32-isr.c: Likewise.
19747 * config/nds32/nds32-md-auxiliary.c: Likewise.
19748 * config/nds32/nds32-memory-manipulation.c: Likewise.
19749 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19750 * config/nds32/nds32-predicates.c: Likewise.
19751 * config/nios2/nios2.c: Likewise.
19752 * config/nvptx/nvptx.c: Likewise.
19753 * config/pa/pa.c: Likewise.
19754 * config/pdp11/pdp11.c: Likewise.
19755 * config/rl78/rl78.c: Likewise.
19756 * config/rs6000/rs6000.c: Likewise.
19757 * config/rx/rx.c: Likewise.
19758 * config/s390/s390.c: Likewise.
19759 * config/sh/sh.c: Likewise.
19760 * config/sh/sh-mem.cc: Likewise.
19761 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19762 * config/sh/sh_treg_combine.cc: Likewise.
19763 * config/sparc/sparc.c: Likewise.
19764 * config/spu/spu.c: Likewise.
19765 * config/stormy16/stormy16.c: Likewise.
19766 * config/tilegx/tilegx.c: Likewise.
19767 * config/tilepro/tilepro.c: Likewise.
19768 * config/v850/v850.c: Likewise.
19769 * config/vax/vax.c: Likewise.
19770 * config/visium/visium.c: Likewise.
19771 * config/xtensa/xtensa.c: Likewise.
19773 2015-07-10 Richard Biener <rguenther@suse.de>
19775 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
19776 (decision_tree::gen_gimple): Likewise.
19777 (decision_tree::gen_generic): Likewise.
19779 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
19782 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
19783 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
19785 2015-07-10 Jakub Jelinek <jakub@redhat.com>
19787 PR middle-end/66820
19788 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
19789 or ORT_TASK contexts.
19790 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
19793 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19795 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
19798 2015-07-10 Tom de Vries <tom@codesourcery.com>
19800 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
19801 insert nit + 1 bound.
19803 2015-07-10 Richard Biener <rguenther@suse.de>
19805 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
19806 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
19807 (if_convertible_loop_p_1): For this always compute bb predicates.
19808 (if_convertible_loop_p): And free them.
19810 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19812 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
19815 2015-07-10 Richard Biener <rguenther@suse.de>
19817 PR tree-optimization/66823
19818 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
19819 inverted predicate.
19821 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
19823 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
19824 to handle mips[32|64]r3 and mips[32|64]r5.
19826 2015-07-09 Jakub Jelinek <jakub@redhat.com>
19828 PR middle-end/66633
19829 * tree-nested.c (get_static_chain): Or in a flag into
19830 info->static_chain_added.
19831 (get_frame_field, get_nonlocal_debug_decl): Likewise.
19832 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
19833 2015-07-01 changes.
19834 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
19835 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
19838 PR tree-optimization/66718
19839 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
19841 (vect_simd_lane_linear): New function.
19842 (vectorizable_simd_clone_call): Support using linear arguments for
19843 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
19845 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19848 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
19850 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
19852 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
19853 Use machine mode, not enum machine_mode in the prototype.
19855 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
19856 classify 128-bit floating point support.
19857 (FLOAT128_IBM_P): Likewise.
19858 (FLOAT128_VECTOR_P): Likewise.
19859 (FLOAT128_2REG_P): Likewise.
19860 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
19861 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
19862 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
19863 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
19865 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
19866 tests against TFmode/TDmode, since those modes do not use VSX
19868 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
19870 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
19871 tests against TFmode, etc.
19872 (invalid_e500_subreg): Add tests against IFmode/KFmode.
19873 (reg_offset_addressing_ok_p): Likewise.
19874 (rs6000_legitimate_offset_address_p): Likewise.
19875 (rs6000_legitimize_address): Likewise.
19876 (rs6000_legitimize_reload_address): Likewise.
19877 (rs6000_legitimate_address_p): Clean up tests against TFmode and
19878 TDmode to use the new helper macros, which will include IFmode and
19880 (rs6000_emit_move): Likewise.
19881 (rs6000_darwin64_record_arg_recurse): Likewise.
19882 (print_operand): Likewise.
19883 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
19884 that uses a single vector register as a vector and not as a
19885 floating point register in terms of the calling sequence.
19886 (rs6000_discover_homogeneous_aggregate): Likewise.
19887 (rs6000_return_in_memory): Likewise.
19888 (init_cumulative_args): Likewise.
19889 (rs6000_function_arg_boundary): Likewise.
19890 (rs6000_function_arg_advance_1): Likewise.
19891 (rs6000_function_arg): Likewise.
19892 (rs6000_pass_by_reference): Likewise.
19893 (rs6000_gimplify_va_arg): Likewise.
19894 (rs6000_secondary_reload_memory): Use machine_mode not enum
19896 (rs6000_split_multireg_move): Use new helper macros.
19897 (spe_func_has_64bit_regs_p): Likewise.
19898 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
19899 (output_toc): Use new helper macros.
19900 (rs6000_register_move_cost): Likewise.
19901 (rs6000_function_value): Add IEEE 128-bit floating point calling
19903 (rs6000_libcall_value): Likewise.
19904 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
19905 floating point support.
19906 (rs6000_vector_mode_supported_p): Likewise.
19908 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
19910 PR rtl-optimization/66782
19911 * lra-int.h (struct lra_insn_recog_data): Add comment about
19912 clobbered hard regs for arg_hard_regs.
19913 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
19914 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
19915 Add condition for processing used hard regs.
19916 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
19917 Process clobbered hard regs.
19919 2015-07-09 Michael Matz <matz@suse.de>
19921 * genmatch.c (fprintf_indent): New function.
19922 (operand::gen_transform): Add indent parameter.
19923 (expr::gen_transform, c_expr::gen_transform,
19924 capture::gen_transform): Ditto and use fprintf_indent.
19925 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
19926 (dt_operand::gen, dt_operand::gen_predicate,
19927 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
19928 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
19929 (decision_tree::gen_gimple): Adjust calls and indent generated
19931 (decision_tree::gen_generic): Ditto.
19932 (write_predicate): Ditto.
19934 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
19937 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
19938 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
19939 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
19940 {GENERAL,SSE,MMX}_REG_P where appropriate.
19942 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
19944 * lto-streamer.h: Don't include target.h and alloc-pool.h.
19945 * builtins.c: Adjust includes.
19946 * gimple.c: Likewise.
19947 * ipa-icf.c: Likewise.
19948 * lto-opts.c: Likewise.
19949 * ipa-reference.c: Likewise.
19950 * lto-section-out.c: Likewise.
19951 * lto-streamer-in.c: Likewise.
19952 * lto-streamer-out.c: Likewise.
19953 * opts-global.c: Likewise.
19954 * symtab.c: Likewise.
19955 * tree-chkp.c: Likewise.
19956 * tree-ssa-live.c: Likewise.
19957 * tree-streamer-in.c: Likewise.
19958 * tree-streamer-out.c: Likewise.
19959 * config/darwin.c: Likewise.
19960 * config/i386/winnt.c: Likewise.
19962 2015-07-09 Richard Biener <rguenther@suse.de>
19964 * genmatch.c (struct expr): Add force_single_use flag.
19965 (expr::expr): Add copy constructor.
19966 (capture_info::walk_match): Gather force_single_use captures.
19967 (expr::gen_transform): Use possibly NULLified sequence.
19968 (dt_simplify::gen): Apply single-use restrictions by NULLifying
19969 seq if any constrained expr is not single-use.
19970 (parser::parse_expr): Refactor to allow multiple flags. Handle
19971 's' flag to force an expression have a single-use if the pattern
19972 simplifies to more than one statement.
19973 * match.pd: Convert most single_use conditionals to :s flags.
19975 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19977 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
19978 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19979 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
19981 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
19983 * flags.h: Don't include flag-types.h or options.h.
19984 * opts-common.c: Adjust includes.
19985 * opts-global.c: Likewise.
19986 * common/config/epiphany/epiphany-common.c: Likewise.
19988 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19991 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
19994 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19997 * config/i386/i386.c (ix86_return_in_memory): Return true
19998 if int_size_in_bytes returns negative for IA MCU.
20000 2015-07-09 Marek Polacek <polacek@redhat.com>
20002 PR tree-optimization/66718
20003 * Makefile.in (OBJS): Add gimple-laddress.o.
20004 * passes.def: Schedule pass_laddress.
20005 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
20006 * tree-pass.h (make_pass_laddress): Declare.
20007 * gimple-laddress.c: New file.
20009 2015-07-09 Richard Biener <rguenther@suse.de>
20011 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
20013 2015-07-09 Richard Biener <rguenther@suse.de>
20015 PR tree-optimization/66807
20016 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
20018 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
20020 * function.c (stack_protect_epilogue): Use if rather than switch for
20021 check targetm.have_stack_protect_test.
20023 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20025 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
20026 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
20027 * config/arc/arc.h: Likewise.
20028 * config/arm/arm.h: Likewise.
20029 * config/bfin/bfin.h: Likewise.
20030 * config/epiphany/epiphany.h: Likewise.
20031 * config/frv/frv.h: Likewise.
20032 * config/ia64/ia64.h: Likewise.
20033 * config/iq2000/iq2000.h: Likewise.
20034 * config/lm32/lm32.h: Likewise.
20035 * config/m32r/m32r.h: Likewise.
20036 * config/mcore/mcore.h: Likewise.
20037 * config/mep/mep.h: Likewise.
20038 * config/microblaze/microblaze.h: Likewise.
20039 * config/mips/mips.h: Likewise.
20040 * config/mmix/mmix.h: Likewise.
20041 * config/mn10300/mn10300.h: Likewise.
20042 * config/nds32/nds32.h: Likewise.
20043 * config/nios2/nios2.h: Likewise.
20044 * config/pa/pa.h: Likewise.
20045 * config/rl78/rl78.h: Likewise.
20046 * config/sh/sh.h: Likewise.
20047 * config/sparc/sparc.h: Likewise.
20048 * config/stormy16/stormy16.h: Likewise.
20049 * config/tilegx/tilegx.h: Likewise.
20050 * config/tilepro/tilepro.h: Likewise.
20051 * config/v850/v850.h: Likewise.
20052 * config/xtensa/xtensa.h: Likewise.
20053 * doc/tm.texi: Regenerate.
20054 * doc/tm.texi.in: Adjust.
20055 * combine.c (simplify_set): Likewise.
20056 (simplify_comparison): Likewise.
20057 * expr.c (store_constructor): Likewise.
20058 * internal-fn.c (expand_arith_overflow): Likewise.
20059 * reload.c (push_reload): Likewise.
20060 (find_reloads): Likewise.
20061 (find_reloads_subreg_address): Likewise.
20062 * reload1.c (eliminate_regs_1): Likewise.
20063 * rtlanal.c (nonzero_bits1): Likewise.
20064 (num_sign_bit_copies1): Likewise.
20065 * simplify-rtx.c (simplify_truncation): Likewise.
20067 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20069 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
20070 of AUTO_INC_DEC with the preprocessor.
20071 * combine.c (combine_instructions): Likewise.
20072 (can_combine_p): Likewise.
20073 (try_combine): Likewise.
20074 * emit-rtl.c (try_split): Likewise.
20075 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20076 * lower-subreg.c (resolve_simple_move): Likewise.
20077 * lra.c (update_inc_notes): Likewise.
20078 * recog.c (asm_operand_ok): Likewise.
20079 (constrain_operands): Likewise.
20080 * regrename.c (scan_rtx_address): Likewise.
20081 * reload.c (update_auto_inc_notes): Likewise.
20082 (reg_inc_found_and_valid_p): Likewise.
20083 * reload1.c (reload): Likewise.
20084 (emit_input_reload_insns): Likewise.
20085 (delete_output_reload): Likewise.
20086 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20087 * valtrack.c (cleanup_auto_inc_dec): Likewise.
20089 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20091 * rtl.h: Always define AUTO_INC_DEC.
20092 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
20093 * combine.c (combine_instructions): Likewise.
20094 (can_combine_p): Likewise.
20095 (try_combine): Likewise.
20096 * emit-rtl.c (try_split): Likewise.
20097 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20098 * lower-subreg.c (resolve_simple_move): Likewise.
20099 * lra.c (update_inc_notes): Likewise.
20100 * recog.c (asm_operand_ok): Likewise.
20101 (constrain_operands): Likewise.
20102 * regrename.c (scan_rtx_address): Likewise.
20103 * reload.c (update_auto_inc_notes): Likewise.
20104 (find_equiv_reg): Likewise.
20105 * reload1.c (reload): Likewise.
20106 (reload_as_needed): Likewise.
20107 (choose_reload_regs): Likewise.
20108 (emit_input_reload_insns): Likewise.
20109 (delete_output_reload): Likewise.
20110 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20111 * valtrack.c (cleanup_auto_inc_dec): Likewise.
20113 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20115 * combine.c (can_combine_def_p): Don't check the value of
20116 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
20117 (combinable_i3pat): Likewise.
20118 (mark_used_regs_combine): Likewise.
20119 * regrename.c (rename_chains): Likewise.
20120 * reload.c (find_reloads_address): Likewise.
20121 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20123 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20125 * combine.c (update_rsp_from_reg_equal): Don't check if
20126 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
20127 (reg_nonzero_bits_for_combine): Likewise.
20128 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
20130 * config/frv/frv.h: Likewise.
20131 * config/lm32/lm32.h: Likewise.
20132 * config/mep/mep.h: Likewise.
20133 * config/mips/mips.h: Likewise.
20134 * config/rs6000/rs6000.h: Likewise.
20135 * config/sh/sh.h: Likewise.
20136 * config/tilegx/tilegx.h (enum reg_class): Likewise.
20137 * config/tilepro/tilepro.h: Likewise.
20138 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
20139 * doc/tm.texi: Regenerate.
20140 * doc/tm.texi.in: Adjust.
20141 * rtlanal.c (nonzero_bits1): Likewise.
20143 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20145 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
20146 with the preprocessor.
20147 (combine_instructions): Likewise.
20148 (try_combine): Likewise.
20150 (distribute_notes): Likewise.
20152 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20154 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
20156 (simplify_set): Likewise.
20157 * cse.c (cse_insn): Likewise.
20158 * fold-const.c (fold_single_bit_test): Likewise.
20159 (fold_unary_loc): Likewise.
20160 * postreload.c (reload_cse_simplify_set): Likewise.
20161 (reload_cse_simplify_operands): Likewise.
20163 2015-07-08 Jiong Wang <jiong.wang@arm.com>
20165 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
20166 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
20168 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20171 * config/i386/x86intrin.h: Include <adxintrin.h> even if
20172 __iamcu__ is defined.
20174 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20176 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
20178 2015-07-08 Iain Sandoe <iain@codesourcery.com>
20181 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
20182 names from preservation.
20184 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20187 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
20189 (function_arg_advance_32): Don't pass vectors in registers for
20191 (function_arg_32): Likewise.
20192 (ix86_return_in_memory): Don't return vectors in registers for
20195 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
20197 PR middle-end/66334
20198 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
20199 hard regno live at the start of BB with incoming abnormal edges.
20200 * lra-lives.c (process_bb_lives): Ditto.
20202 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
20205 * config/nvptx/mkoffload.c (main): Create an offload image only in
20206 64-bit configurations.
20208 2015-07-08 Martin Liska <mliska@suse.cz>
20211 * tree-sra.c (create_access_1): Call ctor without brackets.
20212 (create_artificial_child_access): Likewise.
20214 2015-07-08 Richard Biener <rguenther@suse.de>
20216 PR tree-optimization/66793
20217 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
20218 Properly split the block after stmts ending it.
20220 2015-07-08 Richard Biener <rguenther@suse.de>
20222 PR tree-optimization/66794
20223 * passes.c (execute_function_todo): Assert that post-dominators
20225 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
20226 Free post-dominators.
20228 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20230 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
20233 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20235 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
20236 more than or equal 8 and less than 32 when optimizing for size.
20238 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20240 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
20241 COSTS_N_INSNS (1) and increment it appropriately throughout the
20244 2015-07-08 Richard Biener <rguenther@suse.de>
20246 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
20248 2015-07-08 Alan Modra <amodra@gmail.com>
20250 * target.def (rtx_costs): Remove "code" param, add "mode".
20251 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
20252 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
20253 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
20254 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
20255 call. Track mode when given in rtx.
20256 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
20257 (default_address_cost): Pass Pmode to rtx_cost.
20258 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
20259 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
20261 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
20262 (notreg_cost): Add mode param. Use it.
20263 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
20264 mode param and pass to set_src_cost. Update all calls.
20265 (hash_scan_set): Formatting.
20266 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
20267 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
20269 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
20270 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
20271 emit_store_flag): Update set_src_cost and rtx_cost calls.
20272 * auto-inc-dec.c (attempt_change): Likewise.
20273 * calls.c (precompute_register_parameters): Likewise.
20274 * combine.c (expand_compound_operation, make_extraction,
20275 force_to_mode, distribute_and_simplify_rtx): Likewise.
20276 * dojump.c (prefer_and_bit_test): Likewise.
20277 * dse.c (find_shift_sequence): Likewise.
20278 * expr.c (compress_float_constant): Likewise.
20279 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
20280 * ifcvt.c (noce_try_sign_mask): Likewise.
20281 * loop-doloop.c (doloop_optimize): Likewise.
20282 * loop-invariant.c (create_new_invariant): Likewise.
20283 * lower-subreg.c (shift_cost, compute_costs): Likewise.
20284 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
20285 lshift_cheap_p): Likewise.
20286 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
20287 try_replace_in_use, reload_cse_move2add): Likewise.
20288 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
20290 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
20291 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20292 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
20293 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
20294 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
20295 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
20297 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
20298 * config/arc/arc.c (arc_rtx_costs): Likewise.
20299 * config/arm/arm.c (arm_rtx_costs): Likewise.
20300 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
20301 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
20302 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
20303 * config/cris/cris.c (cris_rtx_costs): Likewise.
20304 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
20305 * config/frv/frv.c (frv_rtx_costs): Likewise.
20306 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
20307 * config/i386/i386.c (ix86_rtx_costs): Likewise.
20308 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
20309 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
20310 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
20311 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
20312 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
20313 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
20314 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
20315 * config/mep/mep.c (mep_rtx_cost): Likewise.
20316 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
20317 * config/mips/mips.c (mips_rtx_costs): Likewise.
20318 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
20319 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
20320 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
20321 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
20322 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
20323 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
20324 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
20325 * config/pa/pa.c (hppa_rtx_costs): Likewise.
20326 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
20327 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
20328 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
20329 * config/s390/s390.c (s390_rtx_costs): Likewise.
20330 * config/sh/sh.c (sh_rtx_costs): Likewise.
20331 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
20332 * config/spu/spu.c (spu_rtx_costs): Likewise.
20333 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
20334 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
20335 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
20336 * config/v850/v850.c (v850_rtx_costs): Likewise.
20337 * config/vax/vax.c (vax_rtx_costs): Likewise.
20338 * config/visium/visium.c (visium_rtx_costs): Likewise.
20339 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
20340 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
20341 "code" param, and pass as outer_code to first rtx_cost call. Pass
20342 mode to rtx_cost calls.
20343 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
20345 (aarch64_rtx_costs_wrapper): Update.
20346 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
20347 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
20349 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
20350 and rtx_cost calls.
20351 (avr_operand_rtx_cost): Similarly.
20352 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
20353 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
20354 * config/mips/mips.c (mips_stack_address_p): Comment typo.
20355 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
20356 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
20357 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
20359 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
20360 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
20361 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
20362 * doc/tm.texi: Regenerate.
20364 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
20366 * tree-core.h: Include symtab.h.
20367 * rtl.h: Include hard-reg-set.h but not flags.h.
20368 (HARD_CONST): Remove condition compilation involving HARD_CONST since
20369 hard-reg-set.h is always included.
20370 * regs.h: Don't include hard-reg-set.h or rtl.h.
20371 * cfg.h: Include dominance.h.
20372 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
20373 * backend.h: New. Aggregate commonly used backend header files.
20374 * gimple-ssa.h: Don't include tree-hasher.h.
20375 * ssa.h: New. Aggregate commonly used SSA header files.
20376 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
20377 * sel-sched-ir.h: Flatten includes.
20378 * lra-int.h: Flatten completely.
20379 * sel-sched-dump.h: Flatten includes.
20380 * ira-int.h: Flatten includes.
20381 * gimple-streamer.h: Remove all includes.
20382 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
20383 * resource.h: Flatten hard-reg-set.h and df.h.
20384 * sched-int.h: Flatten insn-arrt.h and df.h.
20385 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
20386 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
20387 * genattrtab.c (write_header): Adjust generated includes.
20388 * genautomata.c (main): Likewise.
20389 * genconditions.c (write-header): Likewise.
20390 * genemit.c (main): Likewise.
20391 * gengtype.c (open_base_files): Likewise.
20392 * genopinit.c (main): Likewise.
20393 * genoutput.c (output_prologue): Likewise.
20394 * genpeep.c (main): Likewise.
20395 * genpreds.c (write_insn_preds_c): Likewise.
20396 * genrecog.c (write_header): Likewise.
20397 * alias.c: Adjust includes.
20398 * asan.c: Likewise.
20399 * attribs.c: Likewise.
20400 * auto-inc-dec.c: Likewise.
20401 * auto-profile.c: Likewise.
20402 * bb-reorder.c: Likewise.
20403 * bt-load.c: Likewise.
20404 * builtins.c: Likewise.
20405 * caller-save.c: Likewise.
20406 * calls.c: Likewise.
20407 * ccmp.c: Likewise.
20409 * cfganal.c: Likewise.
20410 * cfgbuild.c: Likewise.
20411 * cfgcleanup.c: Likewise.
20412 * cfgexpand.c: Likewise.
20413 * cfghooks.c: Likewise.
20414 * cfgloop.c: Likewise.
20415 * cfgloopanal.c: Likewise.
20416 * cfgloopmanip.c: Likewise.
20417 * cfgrtl.c: Likewise.
20418 * cgraph.c: Likewise.
20419 * cgraphbuild.c: Likewise.
20420 * cgraphclones.c: Likewise.
20421 * cgraphunit.c: Likewise.
20422 * cilk-common.c: Likewise.
20423 * combine-stack-adj.c: Likewise.
20424 * combine.c: Likewise.
20425 * compare-elim.c: Likewise.
20426 * convert.c: Likewise.
20427 * coverage.c: Likewise.
20428 * cppbuiltin.c: Likewise.
20429 * cprop.c: Likewise.
20431 * cselib.c: Likewise.
20432 * data-streamer-in.c: Likewise.
20433 * data-streamer-out.c: Likewise.
20434 * data-streamer.c: Likewise.
20435 * dbxout.c: Likewise.
20438 * debug.c: Likewise.
20439 * df-core.c: Likewise.
20440 * df-problems.c: Likewise.
20441 * df-scan.c: Likewise.
20443 * dojump.c: Likewise.
20444 * dominance.c: Likewise.
20445 * domwalk.c: Likewise.
20446 * double-int.c: Likewise.
20448 * dumpfile.c: Likewise.
20449 * dwarf2asm.c: Likewise.
20450 * dwarf2cfi.c: Likewise.
20451 * dwarf2out.c: Likewise.
20452 * emit-rtl.c: Likewise.
20453 * et-forest.c: Likewise.
20454 * except.c: Likewise.
20455 * explow.c: Likewise.
20456 * expmed.c: Likewise.
20457 * expr.c: Likewise.
20458 * final.c: Likewise.
20459 * fixed-value.c: Likewise.
20460 * fold-const.c: Likewise.
20461 * function.c: Likewise.
20462 * fwprop.c: Likewise.
20463 * gcc-plugin.h: Likewise.
20464 * gcse-common.c: Likewise.
20465 * gcse.c: Likewise.
20466 * generic-match-head.c: Likewise.
20467 * ggc-page.c: Likewise.
20468 * gimple-builder.c: Likewise.
20469 * gimple-expr.c: Likewise.
20470 * gimple-fold.c: Likewise.
20471 * gimple-iterator.c: Likewise.
20472 * gimple-low.c: Likewise.
20473 * gimple-match-head.c: Likewise.
20474 * gimple-pretty-print.c: Likewise.
20475 * gimple-ssa-isolate-paths.c: Likewise.
20476 * gimple-ssa-strength-reduction.c: Likewise.
20477 * gimple-streamer-in.c: Likewise.
20478 * gimple-streamer-out.c: Likewise.
20479 * gimple-walk.c: Likewise.
20480 * gimple.c: Likewise.
20481 * gimplify-me.c: Likewise.
20482 * gimplify.c: Likewise.
20483 * godump.c: Likewise.
20484 * graph.c: Likewise.
20485 * graphite-blocking.c: Likewise.
20486 * graphite-dependences.c: Likewise.
20487 * graphite-interchange.c: Likewise.
20488 * graphite-isl-ast-to-gimple.c: Likewise.
20489 * graphite-optimize-isl.c: Likewise.
20490 * graphite-poly.c: Likewise.
20491 * graphite-scop-detection.c: Likewise.
20492 * graphite-sese-to-poly.c: Likewise.
20493 * graphite.c: Likewise.
20494 * haifa-sched.c: Likewise.
20495 * hw-doloop.c: Likewise.
20496 * ifcvt.c: Likewise.
20497 * init-regs.c: Likewise.
20498 * internal-fn.c: Likewise.
20499 * ipa-chkp.c: Likewise.
20500 * ipa-comdats.c: Likewise.
20501 * ipa-cp.c: Likewise.
20502 * ipa-devirt.c: Likewise.
20503 * ipa-icf-gimple.c: Likewise.
20504 * ipa-icf.c: Likewise.
20505 * ipa-inline-analysis.c: Likewise.
20506 * ipa-inline-transform.c: Likewise.
20507 * ipa-inline.c: Likewise.
20508 * ipa-polymorphic-call.c: Likewise.
20509 * ipa-profile.c: Likewise.
20510 * ipa-prop.c: Likewise.
20511 * ipa-pure-const.c: Likewise.
20512 * ipa-ref.c: Likewise.
20513 * ipa-reference.c: Likewise.
20514 * ipa-split.c: Likewise.
20515 * ipa-utils.c: Likewise.
20516 * ipa-visibility.c: Likewise.
20518 * ira-build.c: Likewise.
20519 * ira-color.c: Likewise.
20520 * ira-conflicts.c: Likewise.
20521 * ira-costs.c: Likewise.
20522 * ira-emit.c: Likewise.
20523 * ira-lives.c: Likewise.
20525 * jump.c: Likewise.
20526 * langhooks.c: Likewise.
20528 * loop-doloop.c: Likewise.
20529 * loop-init.c: Likewise.
20530 * loop-invariant.c: Likewise.
20531 * loop-iv.c: Likewise.
20532 * loop-unroll.c: Likewise.
20533 * lower-subreg.c: Likewise.
20534 * lra-assigns.c: Likewise.
20535 * lra-coalesce.c: Likewise.
20536 * lra-constraints.c: Likewise.
20537 * lra-eliminations.c: Likewise.
20538 * lra-lives.c: Likewise.
20539 * lra-remat.c: Likewise.
20540 * lra-spills.c: Likewise.
20542 * lto-cgraph.c: Likewise.
20543 * lto-compress.c: Likewise.
20544 * lto-opts.c: Likewise.
20545 * lto-section-in.c: Likewise.
20546 * lto-section-out.c: Likewise.
20547 * lto-streamer-in.c: Likewise.
20548 * lto-streamer-out.c: Likewise.
20549 * lto-streamer.c: Likewise.
20551 * mode-switching.c: Likewise.
20552 * modulo-sched.c: Likewise.
20553 * omega.c: Likewise.
20554 * omp-low.c: Likewise.
20555 * optabs.c: Likewise.
20556 * opts-global.c: Likewise.
20557 * passes.c: Likewise.
20558 * plugin.c: Likewise.
20559 * postreload-gcse.c: Likewise.
20560 * postreload.c: Likewise.
20561 * predict.c: Likewise.
20562 * print-rtl.c: Likewise.
20563 * print-tree.c: Likewise.
20564 * profile.c: Likewise.
20565 * real.c: Likewise.
20566 * realmpfr.c: Likewise.
20567 * recog.c: Likewise.
20569 * reg-stack.c: Likewise.
20570 * regcprop.c: Likewise.
20571 * reginfo.c: Likewise.
20572 * regrename.c: Likewise.
20573 * regstat.c: Likewise.
20574 * reload.c: Likewise.
20575 * reload1.c: Likewise.
20576 * reorg.c: Likewise.
20577 * resource.c: Likewise.
20578 * rtl-chkp.c: Likewise.
20579 * rtlanal.c: Likewise.
20580 * rtlhooks.c: Likewise.
20581 * sanopt.c: Likewise.
20582 * sched-deps.c: Likewise.
20583 * sched-ebb.c: Likewise.
20584 * sched-rgn.c: Likewise.
20585 * sched-vis.c: Likewise.
20586 * sdbout.c: Likewise.
20587 * sel-sched-dump.c: Likewise.
20588 * sel-sched-ir.c: Likewise.
20589 * sel-sched.c: Likewise.
20590 * sese.c: Likewise.
20591 * shrink-wrap.c: Likewise.
20592 * simplify-rtx.c: Likewise.
20593 * stack-ptr-mod.c: Likewise.
20594 * stmt.c: Likewise.
20595 * stor-layout.c: Likewise.
20596 * store-motion.c: Likewise.
20597 * stringpool.c: Likewise.
20598 * symtab.c: Likewise.
20599 * target-globals.c: Likewise.
20600 * targhooks.c: Likewise.
20601 * toplev.c: Likewise.
20602 * tracer.c: Likewise.
20603 * trans-mem.c: Likewise.
20604 * tree-affine.c: Likewise.
20605 * tree-browser.c: Likewise.
20606 * tree-call-cdce.c: Likewise.
20607 * tree-cfg.c: Likewise.
20608 * tree-cfgcleanup.c: Likewise.
20609 * tree-chkp-opt.c: Likewise.
20610 * tree-chkp.c: Likewise.
20611 * tree-chrec.c: Likewise.
20612 * tree-complex.c: Likewise.
20613 * tree-data-ref.c: Likewise.
20614 * tree-dfa.c: Likewise.
20615 * tree-diagnostic.c: Likewise.
20616 * tree-dump.c: Likewise.
20617 * tree-eh.c: Likewise.
20618 * tree-emutls.c: Likewise.
20619 * tree-if-conv.c: Likewise.
20620 * tree-inline.c: Likewise.
20621 * tree-into-ssa.c: Likewise.
20622 * tree-iterator.c: Likewise.
20623 * tree-loop-distribution.c: Likewise.
20624 * tree-nested.c: Likewise.
20625 * tree-nrv.c: Likewise.
20626 * tree-object-size.c: Likewise.
20627 * tree-outof-ssa.c: Likewise.
20628 * tree-parloops.c: Likewise.
20629 * tree-phinodes.c: Likewise.
20630 * tree-predcom.c: Likewise.
20631 * tree-pretty-print.c: Likewise.
20632 * tree-profile.c: Likewise.
20633 * tree-scalar-evolution.c: Likewise.
20634 * tree-sra.c: Likewise.
20635 * tree-ssa-address.c: Likewise.
20636 * tree-ssa-alias.c: Likewise.
20637 * tree-ssa-ccp.c: Likewise.
20638 * tree-ssa-coalesce.c: Likewise.
20639 * tree-ssa-copy.c: Likewise.
20640 * tree-ssa-copyrename.c: Likewise.
20641 * tree-ssa-dce.c: Likewise.
20642 * tree-ssa-dom.c: Likewise.
20643 * tree-ssa-dse.c: Likewise.
20644 * tree-ssa-forwprop.c: Likewise.
20645 * tree-ssa-ifcombine.c: Likewise.
20646 * tree-ssa-live.c: Likewise.
20647 * tree-ssa-loop-ch.c: Likewise.
20648 * tree-ssa-loop-im.c: Likewise.
20649 * tree-ssa-loop-ivcanon.c: Likewise.
20650 * tree-ssa-loop-ivopts.c: Likewise.
20651 * tree-ssa-loop-manip.c: Likewise.
20652 * tree-ssa-loop-niter.c: Likewise.
20653 * tree-ssa-loop-prefetch.c: Likewise.
20654 * tree-ssa-loop-unswitch.c: Likewise.
20655 * tree-ssa-loop.c: Likewise.
20656 * tree-ssa-math-opts.c: Likewise.
20657 * tree-ssa-operands.c: Likewise.
20658 * tree-ssa-phiopt.c: Likewise.
20659 * tree-ssa-phiprop.c: Likewise.
20660 * tree-ssa-pre.c: Likewise.
20661 * tree-ssa-propagate.c: Likewise.
20662 * tree-ssa-reassoc.c: Likewise.
20663 * tree-ssa-sccvn.c: Likewise.
20664 * tree-ssa-scopedtables.c: Likewise.
20665 * tree-ssa-sink.c: Likewise.
20666 * tree-ssa-strlen.c: Likewise.
20667 * tree-ssa-structalias.c: Likewise.
20668 * tree-ssa-tail-merge.c: Likewise.
20669 * tree-ssa-ter.c: Likewise.
20670 * tree-ssa-threadedge.c: Likewise.
20671 * tree-ssa-threadupdate.c: Likewise.
20672 * tree-ssa-uncprop.c: Likewise.
20673 * tree-ssa-uninit.c: Likewise.
20674 * tree-ssa.c: Likewise.
20675 * tree-ssanames.c: Likewise.
20676 * tree-stdarg.c: Likewise.
20677 * tree-streamer-in.c: Likewise.
20678 * tree-streamer-out.c: Likewise.
20679 * tree-streamer.c: Likewise.
20680 * tree-switch-conversion.c: Likewise.
20681 * tree-tailcall.c: Likewise.
20682 * tree-vect-data-refs.c: Likewise.
20683 * tree-vect-generic.c: Likewise.
20684 * tree-vect-loop-manip.c: Likewise.
20685 * tree-vect-loop.c: Likewise.
20686 * tree-vect-patterns.c: Likewise.
20687 * tree-vect-slp.c: Likewise.
20688 * tree-vect-stmts.c: Likewise.
20689 * tree-vectorizer.c: Likewise.
20690 * tree-vrp.c: Likewise.
20691 * tree.c: Likewise.
20692 * tsan.c: Likewise.
20693 * ubsan.c: Likewise.
20694 * valtrack.c: Likewise.
20695 * value-prof.c: Likewise.
20696 * var-tracking.c: Likewise.
20697 * varasm.c: Likewise.
20698 * varpool.c: Likewise.
20699 * vmsdbgout.c: Likewise.
20700 * vtable-verify.c: Likewise.
20702 * wide-int.cc: Likewise.
20703 * xcoffout.c: Likewise.
20704 * config/aarch64/aarch64-builtins.c: Likewise.
20705 * config/aarch64/aarch64.c: Likewise.
20706 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20707 * config/alpha/alpha.c: Likewise.
20708 * config/arc/arc.c: Likewise.
20709 * config/arm/aarch-common.c: Likewise.
20710 * config/arm/arm-builtins.c: Likewise.
20711 * config/arm/arm-c.c: Likewise.
20712 * config/arm/arm.c: Likewise.
20713 * config/avr/avr-c.c: Likewise.
20714 * config/avr/avr-log.c: Likewise.
20715 * config/avr/avr.c: Likewise.
20716 * config/bfin/bfin.c: Likewise.
20717 * config/c6x/c6x.c: Likewise.
20718 * config/cr16/cr16.c: Likewise.
20719 * config/cris/cris.c: Likewise.
20720 * config/darwin-c.c: Likewise.
20721 * config/darwin.c: Likewise.
20722 * config/epiphany/epiphany.c: Likewise.
20723 * config/epiphany/mode-switch-use.c: Likewise.
20724 * config/epiphany/resolve-sw-modes.c: Likewise.
20725 * config/fr30/fr30.c: Likewise.
20726 * config/frv/frv.c: Likewise.
20727 * config/ft32/ft32.c: Likewise.
20728 * config/h8300/h8300.c: Likewise.
20729 * config/i386/i386-c.c: Likewise.
20730 * config/i386/i386.c: Likewise.
20731 * config/i386/msformat-c.c: Likewise.
20732 * config/i386/winnt-cxx.c: Likewise.
20733 * config/i386/winnt-stubs.c: Likewise.
20734 * config/i386/winnt.c: Likewise.
20735 * config/ia64/ia64-c.c: Likewise.
20736 * config/ia64/ia64.c: Likewise.
20737 * config/iq2000/iq2000.c: Likewise.
20738 * config/lm32/lm32.c: Likewise.
20739 * config/m32c/m32c-pragma.c: Likewise.
20740 * config/m32c/m32c.c: Likewise.
20741 * config/m32r/m32r.c: Likewise.
20742 * config/m68k/m68k.c: Likewise.
20743 * config/mcore/mcore.c: Likewise.
20744 * config/mep/mep-pragma.c: Likewise.
20745 * config/mep/mep.c: Likewise.
20746 * config/microblaze/microblaze-c.c: Likewise.
20747 * config/microblaze/microblaze.c: Likewise.
20748 * config/mips/mips.c: Likewise.
20749 * config/mmix/mmix.c: Likewise.
20750 * config/mn10300/mn10300.c: Likewise.
20751 * config/moxie/moxie.c: Likewise.
20752 * config/msp430/msp430-c.c: Likewise.
20753 * config/msp430/msp430.c: Likewise.
20754 * config/nds32/nds32-cost.c: Likewise.
20755 * config/nds32/nds32-fp-as-gp.c: Likewise.
20756 * config/nds32/nds32-intrinsic.c: Likewise.
20757 * config/nds32/nds32-isr.c: Likewise.
20758 * config/nds32/nds32-md-auxiliary.c: Likewise.
20759 * config/nds32/nds32-memory-manipulation.c: Likewise.
20760 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20761 * config/nds32/nds32-predicates.c: Likewise.
20762 * config/nds32/nds32.c: Likewise.
20763 * config/nios2/nios2.c: Likewise.
20764 * config/nvptx/nvptx.c: Likewise.
20765 * config/pa/pa.c: Likewise.
20766 * config/pdp11/pdp11.c: Likewise.
20767 * config/rl78/rl78-c.c: Likewise.
20768 * config/rl78/rl78.c: Likewise.
20769 * config/rs6000/rs6000-c.c: Likewise.
20770 * config/rs6000/rs6000.c: Likewise.
20771 * config/rx/rx.c: Likewise.
20772 * config/s390/s390-c.c: Likewise.
20773 * config/s390/s390.c: Likewise.
20774 * config/sh/sh-c.c: Likewise.
20775 * config/sh/sh-mem.cc: Likewise.
20776 * config/sh/sh.c: Likewise.
20777 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20778 * config/sh/sh_treg_combine.cc: Likewise.
20779 * config/sol2-c.c: Likewise.
20780 * config/sol2-cxx.c: Likewise.
20781 * config/sol2-stubs.c: Likewise.
20782 * config/sol2.c: Likewise.
20783 * config/sparc/sparc-c.c: Likewise.
20784 * config/sparc/sparc.c: Likewise.
20785 * config/spu/spu-c.c: Likewise.
20786 * config/spu/spu.c: Likewise.
20787 * config/stormy16/stormy16.c: Likewise.
20788 * config/tilegx/mul-tables.c: Likewise.
20789 * config/tilegx/tilegx-c.c: Likewise.
20790 * config/tilegx/tilegx.c: Likewise.
20791 * config/tilepro/mul-tables.c: Likewise.
20792 * config/tilepro/tilepro-c.c: Likewise.
20793 * config/tilepro/tilepro.c: Likewise.
20794 * config/v850/v850-c.c: Likewise.
20795 * config/v850/v850.c: Likewise.
20796 * config/vax/vax.c: Likewise.
20797 * config/visium/visium.c: Likewise.
20798 * config/vms/vms-c.c: Likewise.
20799 * config/vms/vms.c: Likewise.
20800 * config/vxworks.c: Likewise.
20801 * config/xtensa/xtensa.c: Likewise.
20803 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
20805 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
20806 Remove operand constraints. Change operand 2 predicate to
20807 nonmemory operand. Limit const_int values to mode bitsize. Only
20808 allow const_int values less than 32 when optimizing for size.
20809 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
20810 Remove operand constraints.
20811 (*bt<mode>): Use SImode for const_int values less than 32.
20812 (regmode): Remove mode attribute.
20814 2015-07-07 Anatoly Sokolov <aesok@post.ru>
20816 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20817 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
20818 moxie_legitimate_address_p): New functions.
20819 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20821 2015-07-07 Tom de Vries <tom@codesourcery.com>
20823 PR tree-optimization/66642
20824 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
20825 header comment. Rename split_edge variable to edge_at_split. Split
20826 exit edge to create new loop exit bb. Insert loop exit phis in new
20829 2015-07-07 Tom de Vries <tom@codesourcery.com>
20831 * tree-cfg.c (get_virtual_phi): New function.
20832 * tree-cfg.h (get_virtual_phi): Declare.
20833 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
20834 (rewrite_virtuals_into_loop_closed_ssa): New function.
20835 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
20837 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
20838 (transform_to_exit_first_loop_alt): Use
20839 rewrite_virtuals_into_loop_closed_ssa.
20841 2015-07-07 Richard Biener <rguenther@suse.de>
20843 * fold-const.c (fold_binary_loc): Move
20844 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
20845 * match.pd: ... here.
20846 Add (X * C1) % C2 -> 0 simplification pattern derived from
20849 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
20852 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
20853 change for target/65249.
20855 2015-07-07 Paulo Matos <pmatos@broadcom.com>
20857 * symtab.c (address_matters_1): Fix typo in comment above.
20858 (can_increase_alignment_p): Likewise.
20860 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20862 * function.c (free_after_compilation): Clear PROP_cfg in
20863 f->curr_properties.
20865 2015-07-07 Richard Biener <rguenther@suse.de>
20867 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
20869 (add_control_edge): Remove excessive vertical space in dumping.
20870 (process_ssa_edge_worklist): Simulate at most one statement and
20871 return whether we did. Do not simulate PHIs if they are in a
20872 BB not yet simulated.
20873 (ssa_propagate): Adjust to always drain the BB worklist whenever
20874 a BB is available there, likewise the VARYING edges list before
20875 the interesting edge list.
20877 2015-07-07 Christian Bruel <christian.bruel@st.com>
20880 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
20882 2015-07-07 Richard Biener <rguenther@suse.de>
20884 PR middle-end/66739
20885 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
20888 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
20890 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
20891 modes for operands 0 and 3. Use SImode for operands 2 and 3.
20892 Copy operand 0 to a temporary if !ext_register_operand. Remove
20893 ancient extract_bit_field workaround.
20894 (insv<mode>_1): Rename from mov<mode>_insv_1.
20895 (*insvqi): Rename from *movqi_insv_2.
20896 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
20897 for renamed insvsi_1.
20898 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
20900 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
20902 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
20903 call to nvptx_reorg_subreg.
20905 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
20907 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
20908 * graphite-dependencies.c, graphite-interchange.c,
20909 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
20910 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
20913 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
20915 * match.pd: Remove element_mode inside HONOR_*.
20916 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
20917 (~X | X -> -1, ~X ^ X -> -1): Merge.
20918 * tree.c (build_each_one_cst): New function.
20919 * tree.h (build_each_one_cst): Likewise.
20921 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
20923 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20926 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
20928 * config.gcc <mips*-*-*>: Add fused-madd.opt.
20929 * config/mips/mips.opt (mfused-madd): Remove.
20930 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
20931 * config/mips/mips.h (TARGET_MIPS8000): New.
20932 (ISA_HAS_FP_MADD4_MSUB4): Remove.
20933 (ISA_HAS_FP_MADDF_MSUBF): Remove.
20934 (ISA_HAS_FP_MADD3_MSUB3): Remove.
20935 (ISA_HAS_NMADD4_NMSUB4): Remove.
20936 (ISA_HAS_NMADD3_NMSUB3): Remove.
20937 (ISA_HAS_FUSED_MADD4): New.
20938 (ISA_HAS_UNFUSED_MADD4): New.
20939 (ISA_HAS_FUSED_MADDF): New.
20940 (ISA_HAS_FUSED_MADD3): New.
20941 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
20942 (*fma<mode>4_madd3) New.
20943 (*fma<mode>4_madd4) New.
20944 (*fma<mode>4_maddf) New.
20946 (*fms<mode>4_msub3) New.
20947 (*fms<mode>4_msub4) New.
20949 (*fnma<mode>4_nmadd3) New.
20950 (*fnma<mode>4_nmadd4) New.
20952 (*fnms<mode>4_nmsub3) New.
20953 (*fnms<mode>4_nmsub4) New.
20954 (*madd4<mode>) Modify to be unfused only.
20955 (*msub4<mode>) Modify to be unfused only.
20956 (*nmadd4<mode>) Modify to be unfused only.
20957 (*nmsub4<mode>) Modify to be unfused only.
20958 (*madd3<mode>) Remove.
20959 (*msub3<mode>) Remove.
20960 (*nmadd3<mode>) Remove.
20961 (*nmsub3<mode>) Remove.
20962 (*nmadd3<mode>_fastmath) Remove.
20963 (*nmsub3<mode>_fastmath) Remove.
20964 (*nmadd4<mode>_fastmath) Update condition.
20965 (*nmsub4<mode>_fastmath) Update condition.
20967 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
20970 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
20971 alignment attribute, exploring one level down for records and arrays.
20973 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
20975 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
20976 modes for operands 0 and 1. Use SImode for operands 2 and 3.
20977 Copy operand 1 to a temporary if !ext_register_operand. Remove
20978 ancient extract_bit_field workaround.
20979 (*extv<mode>): Rename from *mov<mode>_extv_1.
20980 (*extvqi): Rename from *movqi_extv_1.
20981 (extzv<mode>): Rename from extzv. Use SWI248 modes for
20982 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
20983 to a temporary if !ext_register_operand. Remove ancient
20984 extract_bit_field workaround.
20985 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
20986 (*extzvqi): Rename from *movqi_extzv_2.
20987 (*testqi_ext_3): Remove modes from const_int_operand predicated
20988 operands. Add "n" constraint.
20989 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
20990 operand. Add "J" constraint.
20991 (*btsq, *btrq, *btcq peephole2s): Remove mode from
20992 const_0_to_63 predicated operand.
20993 (regmode): New insn attribute.
20994 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
20995 to nonmemory_operand. Use regmode insn attribute.
20996 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
20997 (*jcc_bt<mode>_mask): Remove mode from operand 3.
20998 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
20999 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
21000 operands. Use "N" constraint instead of "n".
21002 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
21004 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
21006 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21009 * config/i386/i386.c (iamcu_cost): New.
21010 (m_IAMCU): Likewise.
21011 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
21012 (processor_target_table): Add an entry for "iamcu".
21013 (processor_alias_table): Likewise.
21014 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
21015 (ix86_adjust_cost): Likewise.
21016 (ia32_multipass_dfa_lookahead): Likewise.
21017 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
21018 * config/i386/x86-tune.def: Updated for m_IAMCU.
21020 2015-07-06 Richard Biener <rguenther@suse.de>
21022 PR tree-optimization/66772
21023 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
21024 values are available in the PHI node BB when there are
21025 still unexecutable edges.
21027 2015-07-06 Richard Biener <rguenther@suse.de>
21029 PR tree-optimization/66767
21030 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
21031 Make sure to build the alignment test on a SSA name without
21032 final alignment info valid only if the alignment test
21035 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
21038 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
21039 loop start when inserting LSETUP.
21041 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21044 * config/i386/i386.c (ix86_option_override_internal): Allow
21045 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
21047 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21049 * read-md.c (decimal_string): Rename to ...
21050 (md_decimal_string): ... this.
21051 (handle_enum): Reflect this.
21053 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
21056 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
21058 2015-07-06 Richard Biener <rguenther@suse.de>
21060 PR middle-end/66759
21061 * match.pd: Add missing constraint of y to REAL_CST in
21062 REAL_CST - x CMP y to y - CST CMP x simplification.
21064 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
21066 PR tree-optimization/66757
21067 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
21069 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
21070 Sandra Loosemore <sandra@codesourcery.com>
21072 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
21073 Delete extern declaration.
21074 (gprel_constant_p): Add extern declaration.
21075 * config/nios2/constraints.md ("S"): Use gprel_constant_p
21076 instead of nios2_symbol_ref_in_small_data_p.
21077 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
21078 (nios2_symbol_ref_in_small_data_p): Make static.
21079 (gprel_constant_p): Make non-static.
21081 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
21083 * doc/fragments.texi (Target Fragment): Convert debian.org
21085 * doc/install.texi (Configuration): Ditto.
21087 2015-07-05 Jakub Jelinek <jakub@redhat.com>
21089 PR tree-optimization/66718
21090 * tree-vect-stmts.c (vectorizable_call): Replace uses of
21091 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
21093 PR tree-optimization/66718
21094 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
21095 vectorizable_load, vectorizable_condition): Move vectype,
21096 nunits, ncopies computation after checking what kind of statement
21099 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21101 * target-insns.def (extv, extzv, insv): New targetm instruction
21103 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
21105 * recog.c (simplify_while_replacing): Likewise.
21107 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21109 * target-insns.def (doloop_begin, doloop_end): New targetm
21110 instruction patterns.
21111 * loop-init.c: Include target.h.
21112 (pass_loop2::gate): Use the new targetm patterns instead of
21113 HAVE_*/gen_* interface.
21114 (pass_rtl_doloop::gate): Likewise.
21115 (pass_rtl_doloop::execute): Remove preprocessor condition.
21116 * hw-doloop.c: Build unconditionally.
21117 * loop-doloop.c: Likewise.
21118 (doloop_optimize): Use the new targetm patterns instead of
21119 HAVE_*/gen_* interface.
21120 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
21121 * modulo-sched.c (doloop_register_get): Likewise.
21123 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21125 * target-insns.def (clear_cache): New targetm instruction pattern.
21126 * builtins.c (expand_builtin___clear_cache): Use it instead of
21127 HAVE_*/gen_* interface.
21129 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21131 * target-insns.def (allocate_stack, check_stack, probe_stack)
21132 (probe_stack_address, split_stack_prologue, split_stack_space_check):
21133 New targetm instruction patterns.
21134 * explow.c (allocate_dynamic_stack_space): Use them instead of
21135 HAVE_*/gen_* interface.
21136 (emit_stack_probe): Likewise.
21137 (probe_stack_range): Likewise.
21138 * function.c (thread_prologue_and_epilogue_insns): Likewise.
21140 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21142 * target-insns.def (stack_protect_set, stack_protect_test): New
21143 targetm instruction patterns.
21144 * cfgexpand.c (stack_protect_prologue): Use them instead of
21145 HAVE_*/gen_* interface.
21146 * function.c (stack_protect_epilogue): Likewise.
21148 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21150 * expr.h (gen_move_insn_uncast): Delete.
21151 * expr.c (gen_move_insn_uncast): Delete.
21153 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21155 * target-insns.def (restore_stack_block, restore_stack_function)
21156 (restore_stack_nonlocal, save_stack_block, save_stack_function)
21157 (save_stack_nonlocal): New targetm instruction patterns.
21158 * builtins.c (expand_builtin_apply): Use them instead of
21159 HAVE_*/gen_* interface.
21160 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
21162 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21164 * target-insns.def (trap): New targetm instruction pattern.
21165 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
21167 * explow.c (allocate_dynamic_stack_space): Likewise.
21168 * ifcvt.c (find_if_header): Likewise.
21170 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21172 * target-insns.def (prefetch): New targetm instruction pattern.
21173 * tree-ssa-loop-prefetch.c: Include targeth.
21174 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
21175 of HAVE_*/gen_* interface.
21176 * builtins.c (expand_builtin_prefetch): Likewise.
21177 * toplev.c (process_options): Likewise.
21179 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21181 * target-insns.def (untyped_call, untyped_return): New targetm
21182 instruction patterns.
21183 * builtins.c (expand_builtin_apply): Use them instead of
21184 HAVE_*/gen_* interface.
21185 (result_vector): Define unconditionally.
21187 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21189 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
21190 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
21191 (nonlocal_goto_receiver): New targetm instruction patterns.
21192 * builtins.c (expand_builtin_setjmp_setup): Use them instead
21193 of HAVE_*/gen_* interface.
21194 (expand_builtin_setjmp_receiver): Likewise.
21195 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
21196 * except.c (expand_dw2_landing_pad_for_region): Likewise.
21198 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21200 * target.def: Add code_for_* hooks.
21201 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
21202 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
21203 * target-insns.def (casesi, tablejump): New targetm instruction
21205 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
21206 (do_tablejump): Likewise.
21207 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
21208 (expand_sjlj_dispatch_table): Likewise.
21209 * targhooks.c (default_case_values_threshold): Likewise.
21211 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
21213 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
21214 Use rtx_insn * instead of rtx.
21215 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
21216 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
21217 (nios2_call_tls_get_addr): Likewise.
21218 (nios2_emit_expensive_div): Likewise.
21219 (nios2_emit_move_sequence): Change return type to bool.
21220 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
21221 Change return type to bool.
21223 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
21226 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
21228 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
21231 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
21232 of register_operand. Remove constraint.
21234 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
21236 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
21237 the first argument.
21239 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
21241 * attribs.c (decl_attributes): Guard inform with the return value
21242 of the preceding warning.
21244 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
21246 * doc/invoke.texi (moverride): Move to correct section.
21248 2015-07-03 Richard Biener <rguenther@suse.de>
21250 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
21252 (dt_operand::gen_gimple_expr): After valueizing operands
21253 re-canonicalize operand order for commutative tree codes.
21255 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
21258 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
21260 (__crc32w): Likewise.
21261 (__crc32d): Likewise.
21262 (__rdpmc): Likewise.
21263 (__rdtscp): Likewise.
21264 (_rdpmc): Likewise.
21265 (_rdtscp): Likewise.
21266 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
21269 2015-07-03 Richard Biener <rguenther@suse.de>
21271 * fold-const.c (fold_mathfn_compare): Remove.
21272 (fold_inf_compare): Likewise.
21273 (fold_comparison): Move floating point comparison simplifications...
21274 * match.pd: ... to patterns here. Introduce simple_comparisons
21275 operator list and use it for patterns formerly in fold_comparison.
21277 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
21279 PR tree-optimization/66119
21280 * toplev.c (process_options): Don't set up default values for
21281 the sra_max_scalarization_size_{speed,size} parameters.
21282 * tree-sra (analyze_all_variable_accesses): If no values
21283 have been set for the sra_max_scalarization_size_{speed,size}
21284 parameters, call get_move_ratio to get target defaults.
21286 2015-07-03 Richard Biener <rguenther@suse.de>
21288 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
21289 * match.pd: ... here.
21291 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
21294 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
21295 is not actually the default on FreeBSD.
21297 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21299 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
21301 (CMPGE_8HI): Likewise.
21302 (CMPGE_4SI): Likewise.
21303 (CMPGE_2DI): Likewise.
21304 (CMPGE_U16QI): Likewise.
21305 (CMPGE_U8HI): Likewise.
21306 (CMPGE_U4SI): Likewise.
21307 (CMPGE_U2DI): Likewise.
21308 (CMPLE_16QI): Likewise.
21309 (CMPLE_8HI): Likewise.
21310 (CMPLE_4SI): Likewise.
21311 (CMPLE_2DI): Likewise.
21312 (CMPLE_U16QI): Likewise.
21313 (CMPLE_U8HI): Likewise.
21314 (CMPLE_U4SI): Likewise.
21315 (CMPLE_U2DI): Likewise.
21316 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21317 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
21318 ALTIVEC_BUILTIN_VEC_CMPLE.
21319 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
21320 floating-point vector modes.
21321 (vector_nlt<mode>): New define_expand.
21322 (vector_nltu<mode>): Likewise.
21323 (vector_ngt<mode>): Likewise.
21324 (vector_ngtu<mode>): Likewise.
21326 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
21328 PR rtl-optimization/66706
21329 * combine.c (make_compound_operation): If an AND of SUBREG of
21330 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
21332 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
21334 * tree-pass.h (make_pass_ch_vect): New.
21335 * passes.def: Add pass_ch_vect just before pass_if_conversion.
21337 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
21338 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
21339 make_pass_ch_vect): New.
21340 (pass_ch): Extend ch_base.
21342 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
21343 (ch_base::copy_headers): ...here.
21345 2015-07-02 Richard Biener <rguenther@suse.de>
21347 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
21348 * fold-const.c (get_pointer_modulus_and_residue): Remove.
21349 (fold_binary_loc): Implement (T)ptr & CST in terms of
21350 get_pointer_alignment_1.
21351 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
21352 Make sure to build the alignment test on a SSA name without
21353 final alignment info valid only after the prologue.
21355 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
21357 * config/cris/cris.md ("epilogue"): Remove condition.
21358 ("prologue"): Ditto.
21360 2015-07-02 Richard Biener <rguenther@suse.de>
21362 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
21363 parameter to record a condition that is false.
21364 (record_conditions): When recording an extra NE_EXPR that is
21365 true also record a EQ_EXPR that is false.
21367 2015-07-02 Bin Cheng <bin.cheng@arm.com>
21369 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
21370 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
21371 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
21372 (set_iv, find_interesting_uses_address, add_candidate_1): New
21373 argument to alloc_iv.
21374 (find_interesting_uses_op, find_interesting_uses_cond): Don't
21375 duplicate struct iv.
21376 (free_loop_data): Don't free struct iv explicitly.
21377 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
21379 2015-07-01 DJ Delorie <dj@redhat.com>
21381 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
21383 (SUPPORTS_DISCRIMINATOR): Define.
21385 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
21388 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
21389 there are no CALLs in the same pattern.
21391 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
21393 PR rtl-optimization/61047
21394 * rtlanal.c (get_initial_register_offset): New function.
21395 (rtx_addr_can_trap_p_1): Check offsets of stack references.
21397 2015-07-01 Richard Biener <rguenther@suse.de>
21399 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
21400 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
21401 ~X CMP C -> X CMP' ~C to ...
21402 * match.pd: ... patterns here.
21404 2015-07-01 Nick Clifton <nickc@redhat.com>
21406 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
21407 a 16-bit value into a 20-bit memory slot.
21409 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21411 * doc/sourcebuild.texi (AArch64-specific attributes): Document
21412 "aarch64_tiny", "aarch64_small", "aarch64_large",
21413 "aarch64_little_endian", "aarch64_big_endian".
21415 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21417 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
21418 Document "aarch64_small_fpic".
21420 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21422 * configure.ac: Add check for aarch64 assembler -fpic relocation
21424 * configure: Regenerate.
21425 * config.in: Regenerate.
21426 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
21427 to -fPIC if not support of -fpic relocation modifier in assembler.
21429 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
21432 * rtl.c (classify_insn): Handle returns in PARALLELs.
21434 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
21436 PR middle-end/66633
21437 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
21438 to true if the function is nested and if not optimizing.
21439 (convert_local_omp_clauses): Initialize need_frame to true if the
21440 function contains nested functions and if not optimizing.
21442 2015-07-01 Richard Biener <rguenther@suse.de>
21444 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
21445 (X & Y) ^ Y -> ~X & Y transforms to ...
21446 * match.pd: ... here.
21448 2015-07-01 Richard Biener <rguenther@suse.de>
21450 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
21451 of converts to avoid uninteresting noise from the conversion
21452 simplifying patterns.
21454 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
21456 * config/c6x/c6x.c (try_rename_operands): Do not depend on
21457 gcc_assert evaluating its argument for side-effect.
21459 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
21462 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
21465 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
21467 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
21468 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
21469 (hash_scc): Add this_ref_p and ref_p parameters and pass them
21470 to the inner DFS walk.
21472 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21474 * target-insns.def (jump): New targetm instruction pattern.
21475 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
21476 instead of gen_jump.
21477 (fix_up_crossing_landing_pad): Likewise.
21478 (add_labels_and_missing_jumps): Likewise.
21479 (fix_crossing_conditional_branches): Likewise.
21480 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
21481 (force_nonfallthru_and_redirect): Likewise.
21482 * cse.c (cse_insn): Likewise.
21483 * expmed.c (expand_divmod): Likewise.
21484 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
21485 * haifa-sched.c (init_before_recovery): Likewise.
21486 (sched_create_recovery_edges): Likewise.
21487 * ifcvt.c (find_cond_trap): Likewise.
21488 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
21489 (expand_float, expand_fix): Likewise.
21490 * stmt.c (emit_jump): Likewise.
21492 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21494 * defaults.h (HAVE_load_multiple, gen_load_multiple)
21495 (HAVE_store_multiple, gen_store_multiple): Delete.
21496 * target-insns.def (load_multiple, store_multiple): New targetm
21497 instruction patterns.
21498 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
21499 of HAVE_*/gen_* interface.
21501 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21503 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
21504 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
21505 (gen_mem_signal_fence): Delete.
21506 * target-insns.def (mem_signal_fence, mem_thread_fence)
21507 (memory_barrier): New targetm instruction patterns.
21508 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
21510 (expand_mem_signal_fence): Likewise.
21512 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21514 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
21515 * target-insns.def (epilogue, prologue, sibcall_prologue): New
21516 targetm instruction patterns.
21517 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
21519 * calls.c (expand_call): Likewise.
21520 * cfgrtl.c (cfg_layout_finalize): Likewise.
21521 * df-scan.c (df_get_entry_block_def_set): Likewise.
21522 (df_get_exit_block_use_set): Likewise.
21523 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
21524 * final.c (final_start_function): Likewise.
21525 * function.c (thread_prologue_and_epilogue_insns): Likewise.
21526 (reposition_prologue_and_epilogue_notes): Likewise.
21527 * reorg.c (find_end_label): Likewise.
21528 * toplev.c (process_options): Likewise.
21530 2015-06-30 David Malcolm <dmalcolm@redhat.com>
21532 * typed-splay-tree.h: New file.
21534 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
21537 * lra-int.h (lra_substitute_pseudo): Add a parameter.
21538 (lra_substitute_pseudo_within_insn): Ditto.
21539 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
21541 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
21542 to lra_substitute_pseudo.
21543 * lra-lives.c (process_bb_lives): Add an argument to
21544 lra_substitute_pseudo_within_insn call.
21545 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
21546 argument to lra_substitute_pseudo and
21547 lra_substitute_pseudo_within_insn calls.
21548 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
21550 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
21552 * configure: Regenerated.
21554 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
21556 * config.gcc: Support i[34567]86-*-elfiamcu target.
21557 * config/i386/iamcu.h: New.
21558 * config/i386/i386.opt: Add -miamcu.
21559 * doc/invoke.texi: Document -miamcu.
21560 * common/config/i386/i386-common.c (ix86_handle_option): Turn
21561 off x87/MMX/SSE/AVX codegen for -miamcu.
21562 * config/i386/i386-c.c (ix86_target_macros_internal): Define
21563 __iamcu/__iamcu__ for -miamcu.
21564 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
21565 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
21566 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
21567 * config/i386/i386.c (ix86_option_override_internal): Ignore and
21568 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
21569 MCU by default. Default long double to 64-bit for Intel MCU.
21570 Turn on -freg-struct-return for Intel MCU. Issue an error when
21571 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
21573 (function_arg_advance_32): Pass value whose size is no larger
21574 than 8 bytes in registers for Intel MCU.
21575 (function_arg_32): Likewise.
21576 (ix86_return_in_memory): Return value whose size is no larger
21577 than 8 bytes in registers for Intel MCU.
21578 (iamcu_alignment): New function.
21579 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
21581 (ix86_local_alignment): Don't increase alignment for Intel MCU.
21582 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
21585 2015-06-30 Marek Polacek <polacek@redhat.com>
21587 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
21588 both operands of the resulting expression.
21590 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
21591 the final expression with the operand's type and then convert
21592 it to the type of the expression.
21594 2015-06-30 Richard Biener <rguenther@suse.de>
21596 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
21597 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
21598 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
21599 * match.pd: ... to patterns here.
21601 2015-06-30 Richard Biener <rguenther@suse.de>
21603 PR tree-optimization/66704
21604 * tree-vect-data-refs.c (vect_setup_realignment): Use
21605 make_ssa_name for non-SSA name source.
21607 2015-06-30 Jakub Jelinek <jakub@redhat.com>
21609 PR middle-end/66702
21610 * omp-low.c (simd_clone_adjust): Handle addressable linear
21611 or uniform parameters or non-gimple type uniform parameters.
21613 2015-06-30 Richard Biener <rguenther@suse.de>
21615 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
21616 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
21617 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
21618 * match.pd: ... here.
21619 Add a few cases of A - B -> A + (-B) when B "easily" negates.
21620 Move (x & y) | x -> x and friends before
21621 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
21623 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
21625 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
21626 -mfix-ut699 is not specified.
21627 (leon3_load): Rename into...
21628 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
21631 2015-06-30 Marek Polacek <polacek@redhat.com>
21633 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
21634 * match.pd: ... here.
21636 2015-06-30 Richard Biener <rguenther@suse.de>
21638 * target-insns.def (canonicalize_funcptr_for_compare): Add.
21639 * fold-const.c (build_range_check): Replace uses of
21640 HAVE_canonicalize_funcptr_for_compare.
21641 (fold_widened_comparison): Likewise.
21642 (fold_sign_changed_comparison): Likewise.
21643 * dojump.c: Include "target.h".
21644 (do_compare_and_jump): Replace uses of
21645 HAVE_canonicalize_funcptr_for_compare and
21646 gen_canonicalize_funcptr_for_compare.
21647 * expr.c (do_store_flag): Likewise.
21649 2015-06-30 Tom de Vries <tom@codesourcery.com>
21651 PR tree-optimization/66652
21652 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
21653 max_loop_iterations to determine if nit + 1 overflows.
21655 2015-06-30 Richard Biener <rguenther@suse.de>
21657 * tree-vrp.c (register_edge_assert_for_2): Also register
21658 asserts for dominating conversion results.
21660 2015-06-30 Bin Cheng <bin.cheng@arm.com>
21662 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
21663 field in struct iv.
21665 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
21668 * configure.ac: Fix filds and fildq test for 64-bit.
21669 * configure: Regenerated.
21671 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
21673 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
21674 (nvptx_reorg): Here. Keep the non-subreg pieces.
21676 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
21678 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
21679 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
21681 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
21683 * config/i386/i386.md (*jcc_1): Use %! in asm template.
21684 Set attribute "length_nobnd" instead of "length".
21687 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
21689 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
21691 * config/nios2/nios2.c (nios2_delegitimize_address): Make
21692 assert less restrictive.
21694 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
21697 * cgraphunit.c (cgraph_node::finalize_function): Do not call
21698 do_warn_unused_parameter.
21699 * function.c (do_warn_unused_parameter): Move from here.
21700 * function.h (do_warn_unused_parameter): Do not declare.
21702 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21705 * gcc.target/arm/armv-sync-comp-swap.c: New.
21706 * gcc.target/arm/armv-sync-op-acquire.c: New.
21707 * gcc.target/arm/armv-sync-op-full.c: New.
21708 * gcc.target/arm/armv-sync-op-release.c: New.
21710 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21713 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
21714 initial acquire barrier with final barrier.
21716 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21719 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
21720 initial acquire barrier with final barrier.
21722 2015-06-29 Richard Henderson <rth@redhat.com>
21724 * config/i386/constraints.md (Bf): New constraint.
21725 * config/i386/i386-c.c (ix86_target_macros): Define
21726 __GCC_ASM_FLAG_OUTPUTS__.
21727 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
21729 * doc/extend.texi (FlagOutputOperands): Document them.
21731 2015-06-29 Jiong Wang <jiong.wang@arm.com>
21733 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
21734 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
21736 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
21737 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
21738 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
21739 (aarch64_symbol_context): Ditto.
21740 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
21741 and use new pattern name.
21742 (aarch64_expand_mov_immediate): Ditto.
21743 (aarch64_print_operand): Ditto.
21744 (aarch64_classify_tls_symbol): Ditto.
21746 2015-06-29 Marek Polacek <polacek@redhat.com>
21747 Marc Glisse <marc.glisse@inria.fr>
21749 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
21750 * match.pd: ... pattern here.
21752 2015-06-29 Tom de Vries <tom@codesourcery.com>
21754 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
21755 function structure.
21757 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21759 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
21760 feature description, split out the native option, add a link to
21761 the feature documentation, rearrange and slightly rewrite text.
21762 (Aarch64 options, -mcpu): Likewise.
21763 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
21764 +rdma implies Adv. SIMD.
21766 2015-06-29 Marek Polacek <polacek@redhat.com>
21769 * function.c (stack_protect_epilogue): Remove a cast to int.
21770 * doc/invoke.texi: Update -Wswitch-bool description.
21772 2015-06-29 Richard Biener <rguenther@suse.de>
21774 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
21775 * fold-const.c (fold_binary_loc): Move &A - &B simplification
21776 via ptr_difference_const ...
21777 * match.pd: ... here.
21778 When matching (X ^ Y) == Y also match with swapped operands.
21780 2015-06-29 Richard Biener <rguenther@suse.de>
21782 * lto-streamer.h (LTO_major_version): Bump to 5.
21784 2015-06-29 Richard Biener <rguenther@suse.de>
21786 PR tree-optimization/66677
21787 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
21788 STMT_VINFO_VEC_STMT clobbering less strict.
21790 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21792 PR middle-end/64130
21793 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
21794 division, compute max and min when value ranges for dividend and
21795 divisor are available.
21797 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
21798 Sandra Loosemore <sandra@codesourcery.com>
21800 * regrename.h (regrename_do_replace): Change to return bool.
21801 * regrename.c (rename_chains): Check return value of
21802 regname_do_replace.
21803 (regrename_do_replace): Re-validate the modified insns and
21804 return bool status.
21805 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
21806 Update to match rename_chains changes.
21807 * config/c6x/c6x.c (try_rename_operands): Assert that
21808 regrename_do_replace returns true.
21810 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
21812 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
21813 operand 2 here. Use copy_addr_to_reg to copy non-index
21814 register operand 2 to a temporary.
21815 (<mode>_stx): Ditto for operand 1.
21816 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
21817 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
21818 (ix86_store_bounds): Ditto.
21820 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
21822 * print-tree.c (print_node) [TREE_VEC]: Print its length.
21824 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
21826 * gimple.c (gimple_call_set_fndecl): Remove.
21827 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
21828 build1_loc directly instead of build_fold_addr_expr_loc.
21830 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
21832 * hash-map.h (hash_map::traverse): Use the definition of the
21833 Key typedef rather than the typedef itself.
21835 2015-06-26 Martin Jambor <mjambor@suse.cz>
21838 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
21839 NULL instead of calling dump_enabled_p.
21841 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21843 * config/aarch64/aarch64.opt: (override): New.
21844 * doc/invoke.texi (override): Document.
21845 * config/aarch64/aarch64.c (aarch64_flag_desc): New
21846 (aarch64_fusible_pairs): Likewise.
21847 (aarch64_tuning_flags): Likewise.
21848 (aarch64_tuning_override_function): Likewise.
21849 (aarch64_tuning_override_functions): Likewise.
21850 (aarch64_parse_one_option_token): Likewise.
21851 (aarch64_parse_boolean_options): Likewise.
21852 (aarch64_parse_fuse_string): Likewise.
21853 (aarch64_parse_tune_string): Likewise.
21854 (aarch64_parse_one_override_token): Likewise.
21855 (aarch64_parse_override_string): Likewise.
21856 (aarch64_override_options): Parse the -override string if it
21859 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21861 * config/aarch64/aarch64-protos.h (tune_params): Remove
21862 const from members.
21863 (aarch64_tune_params): Remove const, change to no longer be
21865 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
21866 change to no longer be a pointer, initialize to generic_tunings.
21867 (aarch64_min_divisions_for_recip_mul): Change dereference of
21868 aarch64_tune_params to member access.
21869 (aarch64_reassociation_width): Likewise.
21870 (aarch64_rtx_mult_cost): Likewise.
21871 (aarch64_address_cost): Likewise.
21872 (aarch64_branch_cost): Likewise.
21873 (aarch64_rtx_costs): Likewise.
21874 (aarch64_register_move_cost): Likewise.
21875 (aarch64_memory_move_cost): Likewise.
21876 (aarch64_sched_issue_rate): Likewise.
21877 (aarch64_builtin_vectorization_cost): Likewise.
21878 (aarch64_override_options): Take a copy of the selected tuning
21879 struct in to aarch64_tune_params, rather than just setting
21880 a pointer, change dereferences of aarch64_tune_params to member
21882 (aarch64_override_options_after_change): Change dereferences of
21883 aarch64_tune_params to member access.
21884 (aarch64_macro_fusion_p): Likewise.
21885 (aarch_macro_fusion_pair_p): Likewise.
21886 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
21888 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21890 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
21891 (aarch64_tune_flags): Likewise.
21892 (AARCH64_TUNE_FMA_STEERING): Likewise.
21893 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
21894 to AARCH64_FL_USE_FMA_STEERING_PASS.
21895 (cortex-a57.cortex-a53): Likewise.
21896 (cortex-a72): Use cortexa72_tunings.
21897 (cortex-a72.cortex-a53): Likewise.
21898 (exynos-m1): Likewise.
21899 * config/aarch64/aarch64-protos.h (tune_params): Add
21900 a field: extra_tuning_flags.
21901 * config/aarch64/aarch64-tuning-flags.def: New.
21902 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
21903 (aarch64_extra_tuning_flags): Likewise.
21904 (aarch64_tune_params): Declare here.
21905 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
21906 (cortexa53_tunings): Likewise.
21907 (cortexa57_tunings): Likewise.
21908 (thunderx_tunings): Likewise.
21909 (xgene1_tunings): Likewise.
21910 (cortexa72_tunings): New.
21911 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
21912 (gate): Check against aarch64_tune_params.
21913 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
21916 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21918 * config/aarch64/aarch64-fusion-pairs.def: New.
21919 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
21920 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
21921 aarch64_fusion_pairs.
21922 (AARCH64_FUSE_MOV_MOVK): Likewise.
21923 (AARCH64_FUSE_ADRP_ADD): Likewise.
21924 (AARCH64_FUSE_MOVK_MOVK): Likewise.
21925 (AARCH64_FUSE_ADRP_LDR): Likewise.
21926 (AARCH64_FUSE_CMP_BRANCH): Likewise.
21928 2015-06-26 Jiong Wang <jiong.wang@arm.com>
21930 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
21931 SYMBOL_SMALL_GOT_28K.
21932 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
21933 relocation modifiers.
21934 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
21935 (ldr_got_small_28k_<mode>): New.
21936 (ldr_got_small_28k_sidi): New.
21937 * config/aarch64/iterators.md (got_modifier): New mode iterator.
21938 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
21939 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
21940 SYMBOL_SMALL_GOT_28K.
21941 (aarch64_rtx_costs): Add costs for new instruction sequences.
21942 (initialize_aarch64_code_model): Initialize new model.
21943 (aarch64_classify_symbol): Recognize new model and new symbol classification.
21944 (aarch64_asm_preferred_eh_data_format): Support new model.
21945 (aarch64_load_symref_appropriately): Generate new instruction
21946 sequences for -fpic.
21947 (TARGET_USE_PSEUDO_PIC_REG): New definition.
21948 (aarch64_use_pseudo_pic_reg): New function.
21950 2015-06-26 Jiong Wang <jiong.wang@arm.com>
21952 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
21953 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
21954 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
21955 (aarch64_expand_mov_immediate): Ditto.
21956 (aarch64_print_operand): Ditto.
21957 (aarch64_classify_symbol): Ditto.
21959 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
21961 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
21963 2015-06-26 Bin Cheng <bin.cheng@arm.com>
21966 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
21967 assertion failed. Remove assertion itself.
21969 2015-06-26 Richard Biener <rguenther@suse.de>
21971 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
21972 and -A CMP CST -> A CMP -CST which is redundant with a pattern
21974 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
21975 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
21976 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
21977 * match.pd: ... patterns here.
21979 2015-06-26 Marek Polacek <polacek@redhat.com>
21981 * match.pd ((x | y) & ~(x & y) -> x ^ y,
21982 (x | y) & (~x ^ y) -> x & y): New patterns.
21984 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
21986 * rtl.h (emit): Add an optional boolean parameter to control
21987 whether barriers are emitted.
21988 * emit-rtl.c (emit): Likewise.
21989 * gensupport.c (get_emit_function): Return null rather than "emit".
21990 * genemit.c (gen_emit_seq): Handle the null return value.
21991 Don't emit barriers after the final instruction in the sequence.
21992 * gentarget-def.c (main): Don't emit barriers after the instruction.
21994 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21996 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
21997 TARGET_UNIFIED_ASM.
21999 2015-06-26 Richard Biener <rguenther@suse.de>
22001 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
22003 2015-06-26 Richard Biener <rguenther@suse.de>
22005 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
22006 irrespective on whether the inner operation has a single use
22007 of both off are constant.
22009 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
22010 Segher Boessenkool <segher@kernel.crashing.org>
22013 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
22014 before doing PUT_MODE or PUT_CODE on operands to avoid
22015 in-place RTX modification.
22017 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
22019 * gentarget-def.c (def_target_insn): Cast return of strtol to
22022 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22024 * gimple.h (gimple_call_set_fn): Move inline function.
22025 * gimple.c (gimple_call_set_fn): Relocate here.
22027 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
22031 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
22032 the replacement insn will work.
22034 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
22036 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
22039 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22041 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
22042 * cgraph.h: Include ipa-ref.h and plugin-api.h.
22043 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
22044 (symtab_node::address_can_be_compared_p): Move function.
22045 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
22047 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
22048 * auto-profile.c: Likewise.
22049 * bb-reorder.c: Likewise.
22050 * builtins.c: Likewise.
22051 * calls.c: Likewise.
22052 * cfgexpand.c: Likewise.
22053 * cgraphbuild.c: Likewise.
22054 * cgraphclones.c: Likewise.
22055 * cgraphunit.c: Likewise.
22056 * combine.c: Likewise.
22057 * coverage.c: Likewise.
22058 * data-streamer-in.c: Likewise.
22059 * data-streamer-out.c: Likewise.
22060 * data-streamer.c: Likewise.
22061 * dbxout.c: Likewise.
22062 * dwarf2out.c: Likewise.
22063 * except.c: Likewise.
22064 * expr.c: Likewise.
22065 * final.c: Likewise.
22066 * fold-const.c: Likewise.
22067 * ggc-page.c: Likewise.
22068 * gimple-fold.c: Likewise.
22069 * gimple-iterator.c: Likewise.
22070 * gimple-pretty-print.c: Likewise.
22071 * gimple-streamer-in.c: Likewise.
22072 * gimple-streamer-out.c: Likewise.
22073 * gimple.c: Likewise.
22074 * gimplify.c: Likewise.
22075 * ipa-chkp.c: Likewise.
22076 * ipa-comdats.c: Likewise.
22077 * ipa-cp.c: Likewise.
22078 * ipa-devirt.c: Likewise.
22079 * ipa-icf-gimple.c: Likewise.
22080 * ipa-icf.c: Likewise.
22081 * ipa-inline-analysis.c: Likewise.
22082 * ipa-inline-transform.c: Likewise.
22083 * ipa-inline.c: Likewise.
22084 * ipa-polymorphic-call.c: Likewise.
22085 * ipa-profile.c: Likewise.
22086 * ipa-prop.c: Likewise.
22087 * ipa-pure-const.c: Likewise.
22088 * ipa-ref.c: Likewise.
22089 * ipa-reference.c: Likewise.
22090 * ipa-split.c: Likewise.
22091 * ipa-utils.c: Likewise.
22092 * ipa-visibility.c: Likewise.
22094 * langhooks.c: Likewise.
22095 * lto-cgraph.c: Likewise.
22096 * lto-compress.c: Likewise.
22097 * lto-opts.c: Likewise.
22098 * lto-section-in.c: Likewise.
22099 * lto-section-out.c: Likewise.
22100 * lto-streamer-in.c: Likewise.
22101 * lto-streamer-out.c: Likewise.
22102 * lto-streamer.c: Likewise.
22103 * omp-low.c: Likewise.
22104 * opts-global.c: Likewise.
22105 * passes.c: Likewise.
22106 * predict.c: Likewise.
22107 * print-tree.c: Likewise.
22108 * profile.c: Likewise.
22110 * sanopt.c: Likewise.
22111 * stor-layout.c: Likewise.
22112 * symtab.c: Likewise.
22113 * toplev.c: Likewise.
22114 * trans-mem.c: Likewise.
22115 * tree-cfg.c: Likewise.
22116 * tree-chkp.c: Likewise.
22117 * tree-eh.c: Likewise.
22118 * tree-emutls.c: Likewise.
22119 * tree-inline.c: Likewise.
22120 * tree-nested.c: Likewise.
22121 * tree-parloops.c: Likewise.
22122 * tree-pretty-print.c: Likewise.
22123 * tree-profile.c: Likewise.
22124 * tree-sra.c: Likewise.
22125 * tree-ssa-alias.c: Likewise.
22126 * tree-ssa-live.c: Likewise.
22127 * tree-ssa-loop-ivcanon.c: Likewise.
22128 * tree-ssa-loop-ivopts.c: Likewise.
22129 * tree-ssa-pre.c: Likewise.
22130 * tree-ssa-sccvn.c: Likewise.
22131 * tree-ssa-strlen.c: Likewise.
22132 * tree-ssa-structalias.c: Likewise.
22133 * tree-streamer-in.c: Likewise.
22134 * tree-streamer-out.c: Likewise.
22135 * tree-streamer.c: Likewise.
22136 * tree-switch-conversion.c: Likewise.
22137 * tree-tailcall.c: Likewise.
22138 * tree-vect-data-refs.c: Likewise.
22139 * tree-vect-stmts.c: Likewise.
22140 * tree-vectorizer.c: Likewise.
22141 * tree.c: Likewise.
22142 * tsan.c: Likewise.
22143 * ubsan.c: Likewise.
22144 * value-prof.c: Likewise.
22145 * varasm.c: Likewise.
22146 * varpool.c: Likewise.
22147 * config/arm/arm.c: Likewise.
22148 * config/bfin/bfin.c: Likewise.
22149 * config/c6x/c6x.c: Likewise.
22150 * config/cris/cris.c: Likewise.
22151 * config/darwin-c.c: Likewise.
22152 * config/darwin.c: Likewise.
22153 * config/i386/i386.c: Likewise.
22154 * config/i386/winnt.c: Likewise.
22155 * config/microblaze/microblaze.c: Likewise.
22156 * config/mips/mips.c: Likewise.
22157 * config/rs6000/rs6000.c: Likewise.
22158 * config/rx/rx.c: Likewise.
22159 * config/s390/s390.c: Likewise.
22160 * config/tilegx/mul-tables.c: Likewise.
22162 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22164 * config/aarch64/aarch64.c, config/alpha/alpha.c,
22165 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
22166 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
22167 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
22168 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22169 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22170 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22171 config/microblaze/microblaze.c, config/mips/mips.c,
22172 config/mmix/mmix.c, config/mn10300/mn10300.c,
22173 config/moxie/moxie.c, config/msp430/msp430.c,
22174 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22175 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22176 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22177 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22178 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22179 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22180 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
22181 target-def.h include.
22182 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
22184 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22186 * Makefile.in (TARGET_DEF): Add target-insns.def.
22187 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
22188 (build/gentarget-def.o): New rule.
22189 (genprogrtl): Add target-def.
22190 * target-insns.def, gentarget-def.c: New files.
22191 * target.def: Add targetm.have_* and targetm.gen_* hooks,
22192 based on the contents of target-insns.def.
22193 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
22194 (HAVE_return, gen_return): Delete.
22195 * target-def.h: Include insn-target-def.h.
22196 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
22197 instead of direct calls. Rely on them to do the appropriate assertions.
22198 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
22199 (convert_jumps_to_returns): Use targetm interface instead of
22201 (thread_prologue_and_epilogue_insns): Likewise.
22202 * reorg.c (find_end_label, dbr_schedule): Likewise.
22203 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
22204 * shrink-wrap.c (convert_to_simple_return): Likewise.
22205 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
22207 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22209 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
22210 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22211 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
22212 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
22213 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22214 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22215 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22216 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
22217 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
22218 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22219 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22220 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22221 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22222 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22223 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22224 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
22227 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22229 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
22230 (unbounded_int_hashmap_traits::key_type): Likewise.
22231 * hash-map.h (hash_map): Get the key type from the traits.
22232 * hash-traits.h (default_hash_traits): By default, inherit from the
22233 template parameter.
22234 * alias.c (alias_set_traits): Delete.
22235 (alias_set_entry_d::children): Use alias_set_hash as the first
22236 template parameter.
22237 (record_alias_subset): Update accordingly.
22238 * except.c (tree_hash_traits): Delete.
22239 (type_to_runtime_map): Use tree_hash as the first template parameter.
22240 (init_eh): Update accordingly.
22241 * genmatch.c (capture_id_map_hasher): Delete.
22242 (cid_map_t): Use nofree_string_hash as first template parameter.
22243 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
22244 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
22245 Use symbol_compare_hash as the first template parameter in
22246 subdivide_hash_map.
22247 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
22248 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
22249 template parameter.
22250 * passes.c (pass_registry_hasher): Delete.
22251 (name_to_pass_map): Use nofree_string_hash as the first template
22253 (register_pass_name): Update accordingly.
22254 * sanopt.c (sanopt_tree_map_traits): Delete.
22255 (sanopt_tree_triplet_map_traits): Delete.
22256 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
22257 template parameter.
22258 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
22259 the first template parameter.
22260 * sese.c (rename_map_hasher): Delete.
22261 (rename_map_type): Use tree_ssa_name_hash as the first template
22263 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
22264 (function_summary::m_map): Use map_hash as the first template
22266 (function_summary::release): Update accordingly.
22267 * tree-if-conv.c (phi_args_hash_traits): Delete.
22268 (predicate_scalar_phi): Use tree_operand_hash as the first template
22269 parameter to phi_arg_map.
22270 * tree-inline.h (dependence_hasher): Delete.
22271 (copy_body_data::dependence_map): Use dependence_hash as the first
22272 template parameter.
22273 * tree-inline.c (remap_dependence_clique): Update accordingly.
22274 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
22275 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
22277 (addr_stridxptr): Update accordingly.
22278 * value-prof.c (profile_id_traits): Delete.
22279 (cgraph_node_map): Use profile_id_hash as the first template
22281 (init_node_map): Update accordingly.
22282 * config/alpha/alpha.c (string_traits): Delete.
22283 (machine_function::links): Use nofree_string_hash as the first
22284 template parameter.
22285 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
22286 * config/m32c/m32c.c (pragma_traits): Delete.
22287 (pragma_htab): Use nofree_string_hash as the first template parameter.
22288 (m32c_note_pragma_address): Update accordingly.
22289 * config/mep/mep.c (pragma_traits): Delete.
22290 (pragma_htab): Use nofree_string_hash as the first template parameter.
22291 (mep_note_pragma_flag): Update accordingly.
22292 * config/mips/mips.c (mips16_flip_traits): Delete.
22293 (mflip_mips16_htab): Use nofree_string_hash as the first template
22295 (mflip_mips16_use_mips16_p): Update accordingly.
22296 (local_alias_traits): Delete.
22297 (mips16_local_aliases): Use nofree_string_hash as the first template
22299 (mips16_local_alias): Update accordingly.
22301 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22303 * hash-map-traits.h (default_hashmap_traits): Delete.
22305 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22307 * hash-map-traits.h (unbounded_hashmap_traits): New class.
22308 (unbounded_int_hashmap_traits): Likewise.
22309 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
22311 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22313 * ipa-icf.h (symbol_compare_hash): New class.
22314 (symbol_compare_hashmap_traits): Use it.
22315 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
22316 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
22317 (mem_alloc_description::reverse_mem_map_t): Remove redundant
22318 default_hashmap_traits.
22319 * sanopt.c (sanopt_tree_triplet_hash): New class.
22320 (sanopt_tree_triplet_map_traits): Use it.
22322 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22324 * gengtype-parse.c (require_template_declaration): Allow '+' in
22325 template parameters. Consolidate cases.
22326 * hash-traits.h (int_hash): New class.
22327 * alias.c (alias_set_hash): New structure.
22328 (alias_set_traits): Use it.
22329 * symbol-summary.h (function_summary::map_hash): New class.
22330 (function_summary::summary_hashmap_traits): Use it.
22331 * tree-inline.h (dependence_hash): New class.
22332 (dependence_hasher): Use it.
22333 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
22334 * value-prof.c (profile_id_hash): New class.
22335 (profile_id_traits): Use it.
22337 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22339 * config/mips/mips.c (mips16_flip_traits): Use it.
22340 (local_alias_traits, mips16_local_aliases): Convert from a map of
22341 rtxes to a map of symbol names.
22342 (mips16_local_alias): Update accordingly.
22344 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22346 * hash-traits.h (string_hash, nofree_string_hash): New classes.
22347 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
22348 * passes.c (pass_registry_hasher): Likewise.
22349 * config/alpha/alpha.c (string_traits): Likewise.
22350 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
22351 * config/m32c/m32c.c (pragma_traits): Likewise.
22352 * config/mep/mep.c (pragma_traits): Likewise.
22354 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22356 * tree-hash-traits.h (tree_hash): New class.
22357 * except.c: Include tree-hash-traits.h.
22358 (tree_hash_traits): Use tree_hash.
22360 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22362 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
22363 * sese.c: Include tree-hash-traits.h.
22364 (rename_map_hasher): Use tree_ssa_name_hasher.
22366 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22368 * tree-hash-traits.h (tree_decl_hash): New class.
22369 * tree-ssa-strlen.c: Include tree-hash-traits.h.
22370 (stridxlist_hash_traits): Use tree_decl_hash.
22372 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22374 * tree-hash-traits.h: New file.
22375 (tree_operand_hash): New class.
22376 * sanopt.c: Include tree-hash-traits.h.
22377 (sanopt_tree_map_traits): Use tree_operand_hash.
22378 * tree-if-conv.c: Include tree-hash-traits.h.
22379 (phi_args_hash_traits): Use tree_operand_hash.
22380 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
22381 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
22383 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22385 * hash-map-traits.h: Include hash-traits.h.
22386 (simple_hashmap_traits): New class.
22387 * mem-stats.h (hash_map): Change the default traits to
22388 simple_hashmap_traits<default_hash_traits<Key> >.
22390 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22392 * hash-table.h: Update comments.
22394 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22396 * hash-traits.h (default_hash_traits): New structure.
22397 * hash-set.h (default_hashset_traits): Delete.
22398 (hash_set): Use default_hash_traits<Key> instead of
22399 default_hashset_traits. Delete hash_entry type and use Key directly.
22400 * ipa-devirt.c (pair_traits): Delete.
22401 (default_hash_traits <type_pair>): Override.
22402 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
22403 (odr_types_equivalent_p, add_type_duplicate): Likewise.
22405 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22407 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
22409 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22411 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
22412 (has_is_empty, is_empty_helper): Delete.
22413 (has_mark_deleted, mark_deleted_helper): Delete.
22414 (has_mark_empty, mark_empty_helper): Delete.
22415 (hash_table::is_deleted): Call the Descriptor unconditionally.
22416 (hash_table::is_empty): Likewise.
22417 (hash_table::mark_deleted): Likewise.
22418 (hash_table::mark_empty): Likewise.
22420 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22422 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
22423 redundant typedefs and members.
22424 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
22425 redundant typedefs.
22426 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
22427 * ipa-devirt.c (odr_name_hasher): Likewise.
22428 (polymorphic_call_target_hasher): Likewise.
22429 * ira-costs.c (cost_classes_hasher): Likewise.
22430 * statistics.c (stats_counter_hasher): Likewise.
22431 * trans-mem.c (log_entry_hasher): Likewise.
22432 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
22433 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
22434 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
22435 * var-tracking.c (variable_hasher): Likewise.
22436 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
22437 Remove redundant typedefs and members.
22439 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22441 * hash-traits.h (ggc_cache_hasher): Rename to...
22442 (ggc_cache_remove): ...this and remove typedefs.
22443 (ggc_cache_ptr_hash): New class.
22444 * hash-table.h: Update commentary.
22445 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
22446 rather than ggc_cache_hasher.
22447 (const_wide_int_hasher, reg_attr_hasher): Likewise.
22448 (const_double_hasher, const_fixed_hasher): Likewise.
22449 * function.c (insn_cache_hasher): Likewise.
22450 * trans-mem.c (tm_wrapper_hasher): Likewise.
22451 * tree.h (tree_decl_map_cache_hasher): Likewise.
22452 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
22453 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
22454 * ubsan.c (tree_type_map_cache_hasher): Likewise.
22455 * varasm.c (tm_clone_hasher): Likewise.
22456 * config/i386/i386.c (dllimport_hasher): Likewise.
22457 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
22458 (tree_hasher): Likewise.
22460 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22462 * hash-traits.h (ggc_hasher): Rename to...
22463 (ggc_remover): ...this and remove typedefs.
22464 (ggc_cache_hasher): Update accordingly. Add typedefs.
22465 (ggc_ptr_hash): New class.
22466 * hash-table.h: Update comment.
22467 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
22469 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
22470 (tree_descriptor_hasher): Likewise.
22471 * cgraph.c (function_version_hasher): Likewise.
22472 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
22473 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
22474 (dw_loc_list_hasher, addr_hasher): Likewise.
22475 * function.h (used_type_hasher): Likewise.
22476 * function.c (temp_address_hasher): Likewise.
22477 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
22478 * libfuncs.h (libfunc_hasher): Likewise.
22479 * lto-streamer.h (decl_state_hasher): Likewise.
22480 * optabs.c (libfunc_decl_hasher): Likewise.
22481 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
22482 * varasm.c (section_hasher, object_block_hasher): Likewise.
22483 (const_rtx_desc_hasher): Likewise.
22484 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
22485 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
22487 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22489 * hash-traits.h (free_ptr_hash): New class.
22490 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
22491 rather than typed_free_remove. Remove redudant typedefs.
22492 (external_ref_hasher): Likewise.
22493 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
22494 (ehspec_hasher): Likewise.
22495 * ggc-common.c (saving_hasher): Likewise.
22496 * gimplify.c (gimplify_hasher): Likewise.
22497 * haifa-sched.c (delay_i2_hasher): Likewise.
22498 * loop-invariant.c (invariant_expr_hasher): Likewise.
22499 * loop-iv.c (biv_entry_hasher): Likewise.
22500 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
22501 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
22502 * tree-cfg.c (locus_discrim_hasher): Likewise.
22503 * tree-eh.c (finally_tree_hasher): Likewise.
22504 * tree-into-ssa.c (var_info_hasher): Likewise.
22505 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
22506 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
22507 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
22508 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
22509 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
22510 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
22511 (shared_bitmap_hasher): Likewise.
22512 * tree-ssa-threadupdate.c (redirection_data): Likewise.
22513 * tree-vectorizer.h (peel_info_hasher): Likewise.
22514 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
22515 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
22517 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22519 * hash-table.h: Update comments.
22520 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
22521 (nofree_ptr_hash): New class.
22522 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
22523 than typed_noop_remove. Remove redudant typedefs.
22524 * attribs.c (attribute_hasher): Likewise.
22525 * cfg.c (bb_copy_hasher): Likewise.
22526 * cselib.c (cselib_hasher): Likewise.
22527 * dse.c (invariant_group_base_hasher): Likewise.
22528 * dwarf2cfi.c (trace_info_hasher): Likewise.
22529 * dwarf2out.c (macinfo_entry_hasher): Likewise.
22530 (comdat_type_hasher, loc_list_hasher): Likewise.
22531 * gcse.c (pre_ldst_expr_hasher): Likewise.
22532 * genmatch.c (id_base): Likewise.
22533 * genrecog.c (test_pattern_hasher): Likewise.
22534 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
22535 * haifa-sched.c (delay_i1_hasher): Likewise.
22536 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
22537 * ipa-icf.h (congruence_class_group_hash): Likewise.
22538 * ipa-profile.c (histogram_hash): Likewise.
22539 * ira-color.c (allocno_hard_regs_hasher): Likewise.
22540 * lto-streamer.h (string_slot_hasher): Likewise.
22541 * lto-streamer.c (tree_entry_hasher): Likewise.
22542 * plugin.c (event_hasher): Likewise.
22543 * postreload-gcse.c (expr_hasher): Likewise.
22544 * store-motion.c (st_expr_hasher): Likewise.
22545 * tree-sra.c (uid_decl_hasher): Likewise.
22546 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
22547 (ssa_name_var_hash): Likewise.
22548 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
22549 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
22550 * tree-ssa-pre.c (pre_expr_d): Likewise.
22551 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
22552 * vtable-verify.h (registration_hasher): Likewise.
22553 * vtable-verify.c (vtbl_map_hasher): Likewise.
22554 * config/arm/arm.c (libcall_hasher): Likewise.
22555 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
22556 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
22557 * config/sol2.c (comdat_entry_hasher): Likewise.
22558 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
22559 (print_fold_checksum, fold_checksum_tree): Likewise.
22560 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
22561 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
22562 (fold_build_call_array_loc): Likewise.
22563 * tree-ssa-ccp.c (gimple_htab): Likewise.
22564 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
22565 rather than pointer_type.
22567 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22569 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
22570 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
22572 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22574 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
22575 (ggc_hasher::ggc_mx): Likewise.
22576 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
22577 that duplicate ggc_hasher ones.
22579 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22581 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
22582 (gt_cleare_cache): Check here for deleted and empty entries.
22583 Replace handle_cache_entry with a call to keep_cache_entry.
22584 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
22585 (ggc_cache_hasher::keep_cache_entry): New function.
22586 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
22587 (tm_wrapper_hasher::keep_cache_entry): New function.
22588 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
22589 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
22590 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
22591 (type_cache_hasher::keep_cache_entry): New function.
22592 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
22593 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
22594 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
22595 (tree_type_map_cache_hasher::keep_cache_entry): New function.
22596 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
22597 (tm_clone_hasher::keep_cache_entry): New function.
22598 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
22599 (dllimport_hasher::keep_cache_entry): New function.
22601 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22603 * hash-table.h: Include hash-traits.h.
22604 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
22605 (ggc_cache_hasher): Move to...
22606 * hash-traits.h: ...this new file.
22608 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22610 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
22611 struct cl_optimization.
22612 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
22613 * tree.c (make_node_stat): Allocate cl_optimization struct.
22614 (copy_node_stat): Allocate and copy cl_optimization struct.
22616 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22618 * function.h (struct incoming_args): Move struct.
22619 (pass_by_reference, reference_callee_copied): Remove prototypes.
22620 * emit-rtl.h (struct incoming_args): Relocate struct here.
22621 * calls.h (pass_by_reference, reference_callee_copied): Relocate
22623 * function.c (pass_by_reference, reference_callee_copied): Move.
22624 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
22625 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
22626 * ipa-chkp.c: Include calls.h.
22628 2015-06-25 Andrew Macleod <amacleod@redhat.com>
22630 * alias.h (alias_set_type): Move typedef.
22631 * coretypes.h (alias_set_type): Relocate typedef here.
22632 * rtl.h: Don't include alias.h.
22634 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22636 * cgraph.h (cgraph_rtl_info): Move to rtl.h
22637 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
22639 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
22640 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
22642 * calls.c: Include hard-reg-set.h before rtl.h.
22645 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
22646 Vladimir Makarov <vmakarov@redhat.com>
22648 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
22651 2015-06-25 Richard Biener <rguenther@suse.de>
22653 * fold-const.c (fold_binary_loc): Move simplification of
22654 (X <<>> C1) & C2 ...
22655 * match.pd: ... here.
22657 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
22659 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
22661 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22663 * match.pd: Add patterns for vec_conds between 1 and 0.
22665 2015-06-25 Richard Biener <rguenther@suse.de>
22667 * tree-vect-stmts.c (vectorizable_conversion): Do not set
22668 STMT_VINFO_VEC_STMT for SLP.
22669 (vectorizable_store): Likewise.
22670 (vectorizable_load): Likewise.
22671 (vect_transform_stmt): Catch SLP vectorization clobbering
22672 STMT_VINFO_VEC_STMT.
22674 2015-06-25 Richard Biener <rguenther@suse.de>
22676 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
22678 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
22679 cleanup resulting dead code and parameters.
22680 (vect_transform_slp_perm_load): Adjust.
22682 2015-06-25 Nick Clifton <nickc@redhat.com>
22684 * config/bfin/bfin.c (bfin_expand_prologue): Set
22685 current_function_static_stack_size if flag_stack_usage_info is set.
22686 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
22687 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
22688 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
22689 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
22691 2015-06-25 Tom de Vries <tom@codesourcery.com>
22693 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
22694 comment that the generated IV is unsigned.
22696 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22699 * config/arm/arm.c (arm_dbx_register_number): Return
22700 DWARF_FRAME_REGISTERS by default.
22702 2015-06-25 Tom de Vries <tom@codesourcery.com>
22704 * dominance.c (calculate_dominance_info): Fix verify_dominators call
22705 argument. Call verify_dominator when reusing dominator info.
22707 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
22710 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
22711 an additional element of the unspec vector. Modify indices
22713 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
22714 * config/sh/sh.c (prepare_move_operands): Pass incremented
22715 const_int to gen_GOTaddr2picreg.
22716 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
22718 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
22720 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
22721 Condition on TARGET_FLOAT.
22723 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
22725 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
22728 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
22730 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
22732 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
22733 aarch64_err_no_fpadvsimd.
22735 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
22736 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
22737 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
22738 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
22739 Turn error into assert, test TARGET_FLOAT.
22740 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
22743 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
22746 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
22748 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
22750 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
22752 2015-06-24 Renlin Li <renlin.li@arm.com>
22754 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
22755 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
22757 2015-06-24 Richard Biener <rguenther@suse.de>
22759 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
22761 (lower_opt_convert): Support lowering of conditional view_convert.
22762 (parser::parse_operation): Likewise.
22763 (parser::parse_for): Likewise.
22765 2015-06-24 Renlin Li <renlin.li@arm.com>
22767 * varasm.c (emit_local): Use unsigned int for align variable.
22769 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22772 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
22773 for negative numbers.
22775 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22777 PR rtl-optimization/66306
22778 * reload.c (find_reloads): Swap the match_dup info for
22779 commutative operands.
22781 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22783 * config/s390/vx-builtins.md
22784 ("vec_scatter_element<mode>_<non_vec_int>")
22785 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
22786 attribute with bhfgq.
22788 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22790 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
22792 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22794 * config/s390/s390-builtin-types.def: Add flag to indicate the
22795 options under which the function type is needed.
22796 * config/s390/s390-builtins.def: Add flag to indicate the options
22797 under which the builtin is enabled.
22798 * config/s390/s390-builtins.h: Add flags parameter to macro
22800 (bflags_for_builtin): New function.
22801 (flags_for_builtin): Renamed to ...
22802 (opflags_for_builtin): ... this.
22803 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
22804 flags_for_builtin to bflags_for_builtin and
22805 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
22806 * config/s390/s390.c: Add initialization of bflags_builtin and
22807 opflags_builtin arrays.
22808 Remove code for flags_builtin.
22809 (s390_init_builtins): Only create builtin function types if one of
22810 their flags is active.
22811 Only create builtins if all of their flags are active.
22812 (s390_expand_builtin): Rename flags_for_builtin to
22813 opflags_for_builtin.
22815 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22817 * config/s390/vecintrin.h: Remove internal builtins.
22819 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22821 * config/s390/s390.c (s390_secondary_reload): Fix check for
22822 GENERAL_REGS register class.
22824 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22826 * config/s390/s390.c (s390_support_vector_misalignment): Call
22827 default implementation for !TARGET_VX.
22829 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22831 * config/s390/s390.c (s390_legitimate_constant_p): Add
22834 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22836 * config/s390/s390.c (s390_vector_abi): New variable definition.
22837 (s390_check_type_for_vector_abi): New function.
22838 (TARGET_ASM_FILE_END): New macro definition.
22839 (s390_asm_file_end): New function.
22840 (s390_function_arg): Call s390_check_type_for_vector_abi.
22841 (s390_gimplify_va_arg): Likewise.
22842 * configure: Regenerate.
22843 * configure.ac: Check for .gnu_attribute Binutils feature.
22845 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
22848 * config/bfin/bfin.c (hwloop_optimize): Initialize
22849 JUMP_LABEL for newly created jump.
22851 2015-06-23 Tristan Gingold <gingold@adacore.com>
22853 * collect-utils.c (collect_wait): Unlink the response file here
22855 (do_wait): ...here.
22856 (utils_cleanup): ...and here.
22858 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
22860 * df-scan.c: Don't include target-def.h.
22861 * targhooks.c: Likewise.
22862 * config/arm/arm-c.c: Likewise.
22863 * config/i386/i386-c.c: Likewise.
22864 * config/nds32/nds32-cost.c: Likewise.
22865 * config/nds32/nds32-fp-as-gp.c: Likewise.
22866 * config/nds32/nds32-intrinsic.c: Likewise.
22867 * config/nds32/nds32-isr.c: Likewise.
22868 * config/nds32/nds32-md-auxiliary.c: Likewise.
22869 * config/nds32/nds32-memory-manipulation.c: Likewise.
22870 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22871 * config/nds32/nds32-predicates.c: Likewise.
22873 2015-06-23 Richard Biener <rguenther@suse.de>
22875 PR tree-optimization/66636
22876 * tree-vect-stmts.c (vectorizable_store): Properly compute the
22877 def type for further defs for strided stores.
22879 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
22881 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
22882 conditional selects.
22883 (setcc_int<mode>, setcc_float<mode>): Reformat.
22885 2015-06-23 Marek Polacek <polacek@redhat.com>
22887 * match.pd ((x + y) - (x | y) -> x & y,
22888 (x + y) - (x & y) -> x | y): New patterns.
22890 2015-06-23 Ludovic Courtès <ludo@gnu.org>
22893 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
22894 '-dynamic-linker' within %{!shared: ...}.
22896 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
22899 * config/i386/predicates.md (addsub_vm_operator): New predicate.
22900 (addsub_vs_operator): Ditto.
22901 (addsub_vs_parallel): Ditto.
22902 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
22903 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
22904 Put minus RTX before plus and adjust vec_merge selector.
22905 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
22906 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
22907 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
22908 (addsub vec_merge splitters): New combiner splitters.
22909 (addsub vec_select/vec_concat splitters): Ditto.
22911 2015-06-23 Bin Cheng <bin.cheng@arm.com>
22913 PR tree-optimization/66449
22914 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
22915 POINTER_PLUS_EXPR for pointers.
22917 2015-06-23 Alan Modra <amodra@gmail.com>
22919 * rtlanal.c (commutative_operand_precedence): Correct comments.
22920 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
22921 declaration. Return an int. Distinguish REG,REG return from
22923 (struct simplify_plus_minus_op_data): Make local to function.
22924 (simplify_plus_minus): Don't set canonicalized if merely sorting
22925 registers. Avoid packing ops if nothing changes. White space fixes.
22927 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
22929 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
22930 -fdump-ada-spec is passed but not if -fsyntax-only is.
22932 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
22935 * lra-lives.c (process_bb_lives): Check insn copying the same
22936 reload pseudo and don't create a copy for it.
22938 2015-06-22 Tom de Vries <tom@codesourcery.com>
22940 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
22943 2015-06-22 Tom de Vries <tom@codesourcery.com>
22945 * builtins.def (DEF_GOMP_BUILTIN): Test
22946 'flag_tree_parallelize_loops > 1' instead of
22947 'flag_tree_parallelize_loops'. Test flag_cilkplus.
22949 2015-06-22 Tom de Vries <tom@codesourcery.com>
22951 * dominance.c (calculate_dominance_info): Verify dominators if
22954 2015-06-22 Marek Polacek <polacek@redhat.com>
22956 * match.pd ((x ^ y) ^ (x | y) -> x & y,
22957 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
22958 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
22959 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
22961 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
22964 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
22965 cost of embedded comparison.
22967 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22970 * config/rs6000/predicates.md (altivec_register_operand): Permit
22971 virtual stack registers.
22972 (vsx_register_operand): Likewise.
22973 (vfloat_operand): Likewise.
22974 (vint_operand): Likewise.
22975 (vlogical_operand): Likewise.
22977 2015-06-22 Richard Biener <rguenther@suse.de>
22979 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
22980 and single_scalar_iteration_cost members.
22981 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
22982 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
22983 (vect_get_single_scalar_iteration_cost): Remove.
22984 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
22985 Use LOOP_VINFO_SCALAR_ITERATION_COST.
22986 * tree-vect-loop.c (destroy_loop_vec_info): Free
22988 (vect_get_single_scalar_iteration_cost): Compute result into
22989 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
22990 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
22991 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
22992 (vect_estimate_min_profitable_iters): Use them.
22994 2015-06-22 Christian Bruel <christian.bruel@st.com>
22997 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
22998 (TARGET_INSERT_ATTRIBUTES): Define.
22999 (thumb_flipper): New var.
23000 * config/arm/arm.opt (-mflip-thumb): New switch.
23002 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
23003 Martin Liska <mliska@suse.cz>
23006 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
23007 construction of arg_types.
23008 (sem_function::sem_function): Likewise.
23009 (sem_function::~sem_function): Remove destruction of arg_types.
23010 (sem_function::compatible_parm_types_p): New function.
23011 (sem_function::equals_wpa): Reorg matching of return values
23012 and parameter types.
23013 (sem_function::equals_private): Reorg mathcing of argument types.
23014 (sem_function::parse_tree_args): Remove.
23015 * ipa-icf.h (init_wpa): Do not call it.
23016 (parse_tree_args): Remove.
23017 (compatible_parm_types_p): Declare.
23018 (result_type): Remove.
23019 (arg_types): Remove.
23021 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
23024 * ipa-polymorphic-call.c
23025 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
23026 initializing alias oracle; fix formating; set base_alias_set if it
23029 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
23031 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
23032 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
23033 (find_inc): Likewise.
23034 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
23036 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
23037 * df-scan.c (df_swap_refs): Remove.
23038 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
23039 * dominance.c (link_roots): Use std::swap instead of manually swapping.
23040 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
23041 * fold-const.c (fold_relational_const): Likewise.
23042 * genattrtab.c (simplify_test_exp): Likewise.
23043 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
23044 gimple_simplify): Likewise.
23045 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
23046 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
23047 * ipa-devirt.c (add_type_duplicate): Likewise.
23048 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
23049 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
23050 * lra.c (lra_create_copy): Likewise.
23051 * lto-streamer-out.c (DFS::DFS): Likewise.
23052 * modulo-sched.c (get_sched_window): Likewise.
23053 * omega.c (omega_pretty_print_problem): Likewise.
23054 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
23055 * reload1.c (reloads_unique_chain_p): Likewise.
23056 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
23057 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
23059 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
23061 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
23062 predicate_mem_writes): Likewise.
23063 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
23064 * tree-predcom.c (combine_chains): Likewise.
23065 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
23066 refs_may_alias_p_1): Likewise.
23067 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
23068 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23069 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
23070 number_of_iterations_cond): Likewise.
23071 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23072 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
23073 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
23074 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
23075 * tree-vrp.c (extract_range_from_binary_expr_1,
23076 extract_range_from_unary_expr_1): Likewise.
23078 2015-06-20 Marek Polacek <polacek@redhat.com>
23080 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
23082 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
23085 * config/sh/sh.c (prepare_move_operands): Replace subreg
23086 index term with R0 for base and index addressing.
23088 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
23090 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
23092 (movsf_aarch64): Change condition from register_operand to
23093 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
23094 load1. Change type for alternative 7 to store1.
23095 (movdf_aarch64): Likewise.
23097 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
23099 * config/vax/vax.md: Adjust sign/zero extend patterns to
23100 handle SUBREGs in operands[1].
23102 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23104 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
23105 of manually swapping.
23106 (expand_vec_perm_interleave2): Likewise.
23108 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
23110 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
23111 reuse bounds created for abnormal ssa names.
23113 2015-06-19 Jakub Jelinek <jakub@redhat.com>
23115 * config/nvptx/nvptx.md (allocate_stack): Rename to...
23116 (allocate_stack_<mode>): ... this, and add :P on both
23117 match_operand and unspec.
23118 (allocate_stack): New expander.
23120 2015-06-19 Christian Bruel <christian.bruel@st.com>
23124 * config/arm/arm.c (arm_set_current_function): Handle
23125 explicit default options.
23127 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
23129 * config/i386/i386.md (*movsicc_noc_zext): New insn.
23130 (zero-extended cmove with mem peephole2): New pattern.
23131 (cmove with mem peephole2): Merge patterns.
23133 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
23135 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
23137 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
23139 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
23140 * config/mips/mips.md (*madd4<mode>): Ditto.
23141 (*nmadd3<mode>) Ditto.
23142 (*nmadd4<mode>_fastmath): Ditto.
23143 (*nmadd3<mode>_fastmath): Ditto.
23144 (*nmsub4<mode>): Ditto.
23145 (*nmsub3<mode>): Ditto.
23146 (*nmsub4<mode>_fastmath): Ditto.
23147 (*nmsub3<mode>_fastmath): Ditto.
23149 2015-06-18 Michael Matz <matz@suse.de>
23151 PR middle-end/66253
23152 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
23153 grouped strided stores.
23154 (vectorizable_load): Don't use the DR from first_stmt in
23155 the non-SLP grouped strided case.
23157 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23160 * function.c (assign_bounds): Add arguments assign_regs,
23161 assign_special, assign_bt.
23162 (assign_parms): For vararg functions handle bounds in BT
23163 and special slots after incoming vararg bounds.
23165 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23167 PR middle-end/66568
23168 * cfgexpand.c (expand_return): Handle missing bounds.
23169 (expand_gimple_stmt_1): Likewise.
23170 * tree-chkp.c (chkp_expand_zero_bounds): New.
23171 * tree-chkp.h (chkp_expand_zero_bounds): New.
23173 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23175 PR middle-end/66567
23176 * ipa-chkp.c (chkp_maybe_create_clone): Require
23177 functions to be instrumentable.
23178 * tree-chkp.c (chkp_replace_function_pointer): Use
23179 chkp_instrumentable_p instead of attribute check.
23181 2015-06-18 Richard Biener <rguenther@suse.de>
23183 PR tree-optimization/66510
23184 * tree-vect-stmts.c (vectorizable_load): Properly compute the
23185 number of vector loads for SLP permuted loads.
23186 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
23187 check the stride for loop vectorization.
23188 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
23189 vectorization factor.
23190 (vect_analyze_group_access): If the group size is not a power
23191 of two require a epilogue loop.
23192 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
23193 compute and optimizing and alias test pruning after final
23194 vectorization factor computation.
23195 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
23197 (vect_transform_slp_perm_load): Properly compute the original
23198 number of vector load stmts.
23200 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
23202 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
23203 "unlikely character , in @var" warning.
23205 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
23207 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
23208 (ix86_function_arg_advance): Ditto.
23209 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
23211 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23213 * function.h (struct rtl_data): Remove struct and accessor macros.
23214 * emit-rtl.h (struct rtl_data): Relocate to here.
23215 * Makefile.in (GTFILES): Add emit-rtl.h.
23216 * df-core.c: Include emit-rtl.h.
23217 * genattrtab.c: Likewise.
23218 * genconditions.c: Likewise.
23219 * genpreds.c: Likewise.
23220 * genrecog.c: Likewise.
23221 * regcprop.c: Likewise.
23222 * resource.c: Likewise.
23223 * sched-rgn.c: Likewise.
23224 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23225 * config/i386/winnt.c: Likewise.
23227 2015-06-17 Jakub Jelinek <jakub@redhat.com>
23229 PR middle-end/66429
23230 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
23231 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
23232 and has_force_vectorize_loops flags from cfun into
23234 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
23235 if simduid is non-NULL.
23236 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
23237 * passes.def (pass_simduid_cleanup): Add new pass after loop
23239 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
23240 indirection from htab argument's type.
23241 (shrink_simd_arrays): New function.
23242 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
23243 Don't call adjust_simduid_builtins if there are no loops.
23244 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
23245 (pass_simduid_cleanup::execute): New method.
23246 (make_pass_simduid_cleanup): New function.
23248 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
23250 * tree-core.h (tree_target_option): Make opts field a pointer to a
23251 cl_target_option instead of an instance of the struct.
23252 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
23254 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
23255 TARGET_OPTION_NODE.
23256 (copy_node_stat): Allocate and copy struct cl_target_option.
23258 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23260 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
23261 Remove conditional exposure of prototypes.
23262 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
23263 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
23264 definitions in tree.h with functions.
23265 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
23267 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
23269 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
23271 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
23272 (*cmp<mode>_signed): ... this.
23273 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
23274 (*cmp<mode>_unsigned): ... this. Remove %b.
23276 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23278 * coretypes.h: Include input.h and as-a.h.
23279 * rtl.h: Include input.h and as-a.h for generator files.
23280 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
23281 * vec.c: Don't include diagnostic-core.h.
23282 * alias.c: Do not include input.h, line-map.h or is-a.h.
23283 * asan.c: Likewise.
23284 * attribs.c: Likewise.
23285 * auto-inc-dec.c: Likewise.
23286 * auto-profile.c: Likewise.
23287 * bb-reorder.c: Likewise.
23288 * bt-load.c: Likewise.
23289 * builtins.c: Likewise.
23290 * caller-save.c: Likewise.
23291 * calls.c: Likewise.
23292 * ccmp.c: Likewise.
23294 * cfganal.c: Likewise.
23295 * cfgbuild.c: Likewise.
23296 * cfgcleanup.c: Likewise.
23297 * cfgexpand.c: Likewise.
23298 * cfghooks.c: Likewise.
23299 * cfgloop.c: Likewise.
23300 * cfgloop.h: Likewise.
23301 * cfgloopanal.c: Likewise.
23302 * cfgloopmanip.c: Likewise.
23303 * cfgrtl.c: Likewise.
23304 * cgraph.c: Likewise.
23305 * cgraphbuild.c: Likewise.
23306 * cgraphclones.c: Likewise.
23307 * cgraphunit.c: Likewise.
23308 * cilk-common.c: Likewise.
23309 * combine-stack-adj.c: Likewise.
23310 * combine.c: Likewise.
23311 * compare-elim.c: Likewise.
23312 * convert.c: Likewise.
23313 * coverage.c: Likewise.
23314 * cppbuiltin.c: Likewise.
23315 * cprop.c: Likewise.
23317 * cselib.c: Likewise.
23318 * data-streamer-in.c: Likewise.
23319 * data-streamer-out.c: Likewise.
23320 * data-streamer.c: Likewise.
23321 * dbxout.c: Likewise.
23324 * debug.c: Likewise.
23325 * df-core.c: Likewise.
23326 * df-problems.c: Likewise.
23327 * df-scan.c: Likewise.
23330 * diagnostic-core.h: Likewise.
23331 * diagnostic.c: Likewise.
23332 * dojump.c: Likewise.
23333 * dominance.c: Likewise.
23334 * domwalk.c: Likewise.
23335 * double-int.c: Likewise.
23337 * dumpfile.c: Likewise.
23338 * dumpfile.h: Likewise.
23339 * dwarf2asm.c: Likewise.
23340 * dwarf2cfi.c: Likewise.
23341 * dwarf2out.c: Likewise.
23342 * emit-rtl.c: Likewise.
23343 * et-forest.c: Likewise.
23344 * except.c: Likewise.
23345 * explow.c: Likewise.
23346 * expmed.c: Likewise.
23347 * expr.c: Likewise.
23348 * final.c: Likewise.
23349 * fixed-value.c: Likewise.
23350 * fold-const.c: Likewise.
23351 * function.c: Likewise.
23352 * fwprop.c: Likewise.
23353 * gcc-plugin.h: Likewise.
23354 * gcse.c: Likewise.
23355 * generic-match-head.c: Likewise.
23356 * ggc-page.c: Likewise.
23357 * gimple-builder.c: Likewise.
23358 * gimple-expr.c: Likewise.
23359 * gimple-fold.c: Likewise.
23360 * gimple-iterator.c: Likewise.
23361 * gimple-low.c: Likewise.
23362 * gimple-match-head.c: Likewise.
23363 * gimple-pretty-print.c: Likewise.
23364 * gimple-ssa-isolate-paths.c: Likewise.
23365 * gimple-ssa-strength-reduction.c: Likewise.
23366 * gimple-streamer-in.c: Likewise.
23367 * gimple-streamer-out.c: Likewise.
23368 * gimple-streamer.h: Likewise.
23369 * gimple-walk.c: Likewise.
23370 * gimple.c: Likewise.
23371 * gimplify-me.c: Likewise.
23372 * gimplify.c: Likewise.
23373 * godump.c: Likewise.
23374 * graph.c: Likewise.
23375 * graphite-blocking.c: Likewise.
23376 * graphite-dependences.c: Likewise.
23377 * graphite-interchange.c: Likewise.
23378 * graphite-isl-ast-to-gimple.c: Likewise.
23379 * graphite-optimize-isl.c: Likewise.
23380 * graphite-poly.c: Likewise.
23381 * graphite-scop-detection.c: Likewise.
23382 * graphite-sese-to-poly.c: Likewise.
23383 * graphite.c: Likewise.
23384 * haifa-sched.c: Likewise.
23385 * hw-doloop.c: Likewise.
23386 * ifcvt.c: Likewise.
23387 * init-regs.c: Likewise.
23388 * input.c: Likewise.
23389 * internal-fn.c: Likewise.
23390 * ipa-chkp.c: Likewise.
23391 * ipa-comdats.c: Likewise.
23392 * ipa-cp.c: Likewise.
23393 * ipa-devirt.c: Likewise.
23394 * ipa-icf-gimple.c: Likewise.
23395 * ipa-icf.c: Likewise.
23396 * ipa-inline-analysis.c: Likewise.
23397 * ipa-inline-transform.c: Likewise.
23398 * ipa-inline.c: Likewise.
23399 * ipa-polymorphic-call.c: Likewise.
23400 * ipa-profile.c: Likewise.
23401 * ipa-prop.c: Likewise.
23402 * ipa-pure-const.c: Likewise.
23403 * ipa-ref.c: Likewise.
23404 * ipa-reference.c: Likewise.
23405 * ipa-split.c: Likewise.
23406 * ipa-utils.c: Likewise.
23407 * ipa-visibility.c: Likewise.
23409 * ira-build.c: Likewise.
23410 * ira-color.c: Likewise.
23411 * ira-conflicts.c: Likewise.
23412 * ira-costs.c: Likewise.
23413 * ira-emit.c: Likewise.
23414 * ira-lives.c: Likewise.
23416 * jump.c: Likewise.
23417 * langhooks.c: Likewise.
23419 * loop-doloop.c: Likewise.
23420 * loop-init.c: Likewise.
23421 * loop-invariant.c: Likewise.
23422 * loop-iv.c: Likewise.
23423 * loop-unroll.c: Likewise.
23424 * lower-subreg.c: Likewise.
23425 * lra-assigns.c: Likewise.
23426 * lra-coalesce.c: Likewise.
23427 * lra-constraints.c: Likewise.
23428 * lra-eliminations.c: Likewise.
23429 * lra-lives.c: Likewise.
23430 * lra-remat.c: Likewise.
23431 * lra-spills.c: Likewise.
23433 * lto-cgraph.c: Likewise.
23434 * lto-compress.c: Likewise.
23435 * lto-opts.c: Likewise.
23436 * lto-section-in.c: Likewise.
23437 * lto-section-out.c: Likewise.
23438 * lto-streamer-in.c: Likewise.
23439 * lto-streamer-out.c: Likewise.
23440 * lto-streamer.c: Likewise.
23442 * mode-switching.c: Likewise.
23443 * modulo-sched.c: Likewise.
23444 * omega.c: Likewise.
23445 * omp-low.c: Likewise.
23446 * optabs.c: Likewise.
23447 * opts-global.c: Likewise.
23448 * opts.h: Likewise.
23449 * passes.c: Likewise.
23450 * plugin.c: Likewise.
23451 * postreload-gcse.c: Likewise.
23452 * postreload.c: Likewise.
23453 * predict.c: Likewise.
23454 * pretty-print.h: Likewise.
23455 * print-rtl.c: Likewise.
23456 * print-tree.c: Likewise.
23457 * profile.c: Likewise.
23458 * real.c: Likewise.
23459 * realmpfr.c: Likewise.
23460 * recog.c: Likewise.
23462 * reg-stack.c: Likewise.
23463 * regcprop.c: Likewise.
23464 * reginfo.c: Likewise.
23465 * regrename.c: Likewise.
23466 * regstat.c: Likewise.
23467 * reload.c: Likewise.
23468 * reload1.c: Likewise.
23469 * reorg.c: Likewise.
23470 * resource.c: Likewise.
23471 * rtl-chkp.c: Likewise.
23472 * rtl-error.c: Likewise.
23473 * rtlanal.c: Likewise.
23474 * rtlhooks.c: Likewise.
23475 * sanopt.c: Likewise.
23476 * sched-deps.c: Likewise.
23477 * sched-ebb.c: Likewise.
23478 * sched-rgn.c: Likewise.
23479 * sched-vis.c: Likewise.
23480 * sdbout.c: Likewise.
23481 * sel-sched-dump.c: Likewise.
23482 * sel-sched-ir.c: Likewise.
23483 * sel-sched.c: Likewise.
23484 * sese.c: Likewise.
23485 * shrink-wrap.c: Likewise.
23486 * simplify-rtx.c: Likewise.
23487 * stack-ptr-mod.c: Likewise.
23488 * statistics.c: Likewise.
23489 * stmt.c: Likewise.
23490 * stor-layout.c: Likewise.
23491 * store-motion.c: Likewise.
23492 * streamer-hooks.c: Likewise.
23493 * stringpool.c: Likewise.
23494 * symtab.c: Likewise.
23495 * target-globals.c: Likewise.
23496 * targhooks.c: Likewise.
23497 * toplev.c: Likewise.
23498 * tracer.c: Likewise.
23499 * trans-mem.c: Likewise.
23500 * tree-affine.c: Likewise.
23501 * tree-browser.c: Likewise.
23502 * tree-call-cdce.c: Likewise.
23503 * tree-cfg.c: Likewise.
23504 * tree-cfgcleanup.c: Likewise.
23505 * tree-chkp-opt.c: Likewise.
23506 * tree-chkp.c: Likewise.
23507 * tree-chrec.c: Likewise.
23508 * tree-complex.c: Likewise.
23509 * tree-data-ref.c: Likewise.
23510 * tree-dfa.c: Likewise.
23511 * tree-diagnostic.c: Likewise.
23512 * tree-dump.c: Likewise.
23513 * tree-eh.c: Likewise.
23514 * tree-emutls.c: Likewise.
23515 * tree-if-conv.c: Likewise.
23516 * tree-inline.c: Likewise.
23517 * tree-into-ssa.c: Likewise.
23518 * tree-iterator.c: Likewise.
23519 * tree-loop-distribution.c: Likewise.
23520 * tree-nested.c: Likewise.
23521 * tree-nrv.c: Likewise.
23522 * tree-object-size.c: Likewise.
23523 * tree-outof-ssa.c: Likewise.
23524 * tree-parloops.c: Likewise.
23525 * tree-phinodes.c: Likewise.
23526 * tree-predcom.c: Likewise.
23527 * tree-pretty-print.c: Likewise.
23528 * tree-profile.c: Likewise.
23529 * tree-scalar-evolution.c: Likewise.
23530 * tree-sra.c: Likewise.
23531 * tree-ssa-address.c: Likewise.
23532 * tree-ssa-alias.c: Likewise.
23533 * tree-ssa-ccp.c: Likewise.
23534 * tree-ssa-coalesce.c: Likewise.
23535 * tree-ssa-copy.c: Likewise.
23536 * tree-ssa-copyrename.c: Likewise.
23537 * tree-ssa-dce.c: Likewise.
23538 * tree-ssa-dom.c: Likewise.
23539 * tree-ssa-dse.c: Likewise.
23540 * tree-ssa-forwprop.c: Likewise.
23541 * tree-ssa-ifcombine.c: Likewise.
23542 * tree-ssa-live.c: Likewise.
23543 * tree-ssa-loop-ch.c: Likewise.
23544 * tree-ssa-loop-im.c: Likewise.
23545 * tree-ssa-loop-ivcanon.c: Likewise.
23546 * tree-ssa-loop-ivopts.c: Likewise.
23547 * tree-ssa-loop-manip.c: Likewise.
23548 * tree-ssa-loop-niter.c: Likewise.
23549 * tree-ssa-loop-prefetch.c: Likewise.
23550 * tree-ssa-loop-unswitch.c: Likewise.
23551 * tree-ssa-loop.c: Likewise.
23552 * tree-ssa-math-opts.c: Likewise.
23553 * tree-ssa-operands.c: Likewise.
23554 * tree-ssa-phiopt.c: Likewise.
23555 * tree-ssa-phiprop.c: Likewise.
23556 * tree-ssa-pre.c: Likewise.
23557 * tree-ssa-propagate.c: Likewise.
23558 * tree-ssa-reassoc.c: Likewise.
23559 * tree-ssa-sccvn.c: Likewise.
23560 * tree-ssa-scopedtables.c: Likewise.
23561 * tree-ssa-sink.c: Likewise.
23562 * tree-ssa-strlen.c: Likewise.
23563 * tree-ssa-structalias.c: Likewise.
23564 * tree-ssa-tail-merge.c: Likewise.
23565 * tree-ssa-ter.c: Likewise.
23566 * tree-ssa-threadedge.c: Likewise.
23567 * tree-ssa-threadupdate.c: Likewise.
23568 * tree-ssa-uncprop.c: Likewise.
23569 * tree-ssa-uninit.c: Likewise.
23570 * tree-ssa.c: Likewise.
23571 * tree-ssanames.c: Likewise.
23572 * tree-stdarg.c: Likewise.
23573 * tree-streamer-in.c: Likewise.
23574 * tree-streamer-out.c: Likewise.
23575 * tree-streamer.c: Likewise.
23576 * tree-switch-conversion.c: Likewise.
23577 * tree-tailcall.c: Likewise.
23578 * tree-vect-data-refs.c: Likewise.
23579 * tree-vect-generic.c: Likewise.
23580 * tree-vect-loop-manip.c: Likewise.
23581 * tree-vect-loop.c: Likewise.
23582 * tree-vect-patterns.c: Likewise.
23583 * tree-vect-slp.c: Likewise.
23584 * tree-vect-stmts.c: Likewise.
23585 * tree-vectorizer.c: Likewise.
23586 * tree-vrp.c: Likewise.
23587 * tree.c: Likewise.
23588 * tsan.c: Likewise.
23589 * ubsan.c: Likewise.
23590 * valtrack.c: Likewise.
23591 * value-prof.c: Likewise.
23592 * var-tracking.c: Likewise.
23593 * varasm.c: Likewise.
23594 * varpool.c: Likewise.
23595 * vmsdbgout.c: Likewise.
23596 * vtable-verify.c: Likewise.
23598 * wide-int.cc: Likewise.
23599 * xcoffout.c: Likewise.
23600 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
23601 * common/common-targhooks.c: Likewise.
23602 * config/aarch64/aarch64-builtins.c: Likewise.
23603 * config/aarch64/aarch64.c: Likewise.
23604 * config/alpha/alpha.c: Likewise.
23605 * config/arc/arc.c: Likewise.
23606 * config/arm/aarch-common.c: Likewise.
23607 * config/arm/arm-builtins.c: Likewise.
23608 * config/arm/arm-c.c: Likewise.
23609 * config/arm/arm.c: Likewise.
23610 * config/avr/avr-c.c: Likewise.
23611 * config/avr/avr-log.c: Likewise.
23612 * config/avr/avr.c: Likewise.
23613 * config/bfin/bfin.c: Likewise.
23614 * config/c6x/c6x.c: Likewise.
23615 * config/cr16/cr16.c: Likewise.
23616 * config/cris/cris.c: Likewise.
23617 * config/darwin-c.c: Likewise.
23618 * config/darwin.c: Likewise.
23619 * config/default-c.c: Likewise.
23620 * config/epiphany/epiphany.c: Likewise.
23621 * config/epiphany/mode-switch-use.c: Likewise.
23622 * config/epiphany/resolve-sw-modes.c: Likewise.
23623 * config/fr30/fr30.c: Likewise.
23624 * config/frv/frv.c: Likewise.
23625 * config/ft32/ft32.c: Likewise.
23626 * config/glibc-c.c: Likewise.
23627 * config/h8300/h8300.c: Likewise.
23628 * config/i386/i386-c.c: Likewise.
23629 * config/i386/i386.c: Likewise.
23630 * config/i386/msformat-c.c: Likewise.
23631 * config/i386/winnt-cxx.c: Likewise.
23632 * config/i386/winnt-stubs.c: Likewise.
23633 * config/i386/winnt.c: Likewise.
23634 * config/ia64/ia64-c.c: Likewise.
23635 * config/ia64/ia64.c: Likewise.
23636 * config/iq2000/iq2000.c: Likewise.
23637 * config/lm32/lm32.c: Likewise.
23638 * config/m32c/m32c-pragma.c: Likewise.
23639 * config/m32c/m32c.c: Likewise.
23640 * config/m32r/m32r.c: Likewise.
23641 * config/m68k/m68k.c: Likewise.
23642 * config/mcore/mcore.c: Likewise.
23643 * config/mep/mep-pragma.c: Likewise.
23644 * config/mep/mep.c: Likewise.
23645 * config/microblaze/microblaze-c.c: Likewise.
23646 * config/microblaze/microblaze.c: Likewise.
23647 * config/mips/mips.c: Likewise.
23648 * config/mmix/mmix.c: Likewise.
23649 * config/mn10300/mn10300.c: Likewise.
23650 * config/moxie/moxie.c: Likewise.
23651 * config/msp430/msp430-c.c: Likewise.
23652 * config/msp430/msp430.c: Likewise.
23653 * config/nds32/nds32-cost.c: Likewise.
23654 * config/nds32/nds32-fp-as-gp.c: Likewise.
23655 * config/nds32/nds32-intrinsic.c: Likewise.
23656 * config/nds32/nds32-isr.c: Likewise.
23657 * config/nds32/nds32-md-auxiliary.c: Likewise.
23658 * config/nds32/nds32-memory-manipulation.c: Likewise.
23659 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23660 * config/nds32/nds32-predicates.c: Likewise.
23661 * config/nds32/nds32.c: Likewise.
23662 * config/nios2/nios2.c: Likewise.
23663 * config/nvptx/nvptx.c: Likewise.
23664 * config/pa/pa.c: Likewise.
23665 * config/pdp11/pdp11.c: Likewise.
23666 * config/rl78/rl78-c.c: Likewise.
23667 * config/rl78/rl78.c: Likewise.
23668 * config/rs6000/rs6000-c.c: Likewise.
23669 * config/rs6000/rs6000.c: Likewise.
23670 * config/rx/rx.c: Likewise.
23671 * config/s390/s390-c.c: Likewise.
23672 * config/s390/s390.c: Likewise.
23673 * config/sh/sh-c.c: Likewise.
23674 * config/sh/sh-mem.cc: Likewise.
23675 * config/sh/sh.c: Likewise.
23676 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23677 * config/sh/sh_treg_combine.cc: Likewise.
23678 * config/sol2-c.c: Likewise.
23679 * config/sol2-cxx.c: Likewise.
23680 * config/sol2-stubs.c: Likewise.
23681 * config/sol2.c: Likewise.
23682 * config/sparc/sparc-c.c: Likewise.
23683 * config/sparc/sparc.c: Likewise.
23684 * config/spu/spu-c.c: Likewise.
23685 * config/spu/spu.c: Likewise.
23686 * config/stormy16/stormy16.c: Likewise.
23687 * config/tilegx/mul-tables.c: Likewise.
23688 * config/tilegx/tilegx-c.c: Likewise.
23689 * config/tilegx/tilegx.c: Likewise.
23690 * config/tilepro/mul-tables.c: Likewise.
23691 * config/tilepro/tilepro-c.c: Likewise.
23692 * config/tilepro/tilepro.c: Likewise.
23693 * config/v850/v850-c.c: Likewise.
23694 * config/v850/v850.c: Likewise.
23695 * config/vax/vax.c: Likewise.
23696 * config/visium/visium.c: Likewise.
23697 * config/vms/vms-c.c: Likewise.
23698 * config/vms/vms.c: Likewise.
23699 * config/vxworks.c: Likewise.
23700 * config/winnt-c.c: Likewise.
23701 * config/xtensa/xtensa.c: Likewise.
23703 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
23705 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
23707 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
23709 2015-06-17 Richard Biener <rguenther@suse.de>
23711 PR tree-optimization/66251
23712 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
23713 stmts for SLP strided stores.
23716 2015-05-22 Richard Biener <rguenther@suse.de>
23718 PR tree-optimization/66251
23719 * tree-vect-stmts.c (vectorizable_conversion): Properly
23720 set STMT_VINFO_VEC_STMT even for the SLP case.
23722 2015-05-26 Michael Matz <matz@suse.de>
23724 PR middle-end/66251
23725 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
23726 STMT_VINFO_VEC_STMT, also with SLP.
23728 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
23731 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
23732 (*avx_addsubv4df3_1s): Ditto.
23733 (*sse3_addsubv2df3_1): Ditto.
23734 (*sse3_addsubv2df3_1s): Ditto.
23735 (*avx_addsubv8sf3_1): Ditto.
23736 (*avx_addsubv8sf3_1s): Ditto.
23737 (*sse3_addsubv4sf3_1): Ditto.
23738 (*sse3_addsubv4sf3_1s): Ditto.
23740 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
23742 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
23743 (SYSROOT_SUFFIX_SPEC): Update.
23744 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
23745 (STARTFILE_PREFIX_SPEC): Update.
23746 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
23747 (MULTILIB_REQUIRED): New.
23748 (MULTILIB_OSDIRNAMES): New.
23749 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
23750 (MULTILIB_REQUIRED): New.
23751 (MULTILIB_OSDIRNAMES): New.
23753 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
23755 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
23756 * config/aarch64/aarch64-options-extensions.def: Update "fP",
23757 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
23758 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
23759 (AARCH64_FL_PAN): New.
23760 (AARCH64_FL_LOR): New.
23761 (AARCH64_FL_RDMA): New.
23762 (AARCH64_FL_FOR_ARCH8_1): New.
23763 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
23764 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
23766 2015-06-16 Martin Liska <mliska@suse.cz>
23768 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
23769 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
23772 2015-06-16 Richard Biener <rguenther@suse.de>
23774 * tree-vect-stmts.c (vectorizable_store): Adjust.
23775 (vectorizable_load): Likewise.
23776 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
23778 (vect_create_data_ref_ptr): Likewise.
23779 (bump_vector_ptr): Adjust.
23781 2015-06-16 Richard Biener <rguenther@suse.de>
23783 * tree-vect-stmts.c (vectorizable_load): Properly start loads
23784 with the first element if this is grouped loads.
23786 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
23788 * config/arm/arm-protos.h (struct tune_params): Rename
23789 log_op_non_sc to log_op_non_short_circuit, and rename enum
23790 values to expand SC to SHORT_CIRCUIT.
23791 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
23792 to LOG_OP_NON_SHORT_CIRCUIT.
23793 (arm_fastmul_tune):Likewise
23794 (arm_strongarm_tune): Likewise.
23795 (arm_xscale_tune): Likewise.
23796 (arm_9e_tune): Likewise.
23797 (arm_marvell_pj4_tune): Likewise.
23798 (arm_v6t2_tune): Likewise.
23799 (arm_cortex_tune): Likewise.
23800 (arm_cortex_a8_tune): Likewise.
23801 (arm_cortex_a7_tune): Likewise.
23802 (arm_cortex_a15_tune): Likewise.
23803 (arm_cortex_a53_tune): Likewise.
23804 (arm_cortex_a57_tune): Likewise.
23805 (arm_xgene1_tune): Likewise.
23806 (arm_cortex_a5_tune): Likewise.
23807 (arm_cortex_a9_tune): Likewise.
23808 (arm_cortex_a12_tune): Likewise.
23809 (arm_v7m_tune): Likewise.
23810 (arm_cortex_m7_tune): Likewise.
23811 (arm_v6m_tune): Likewise.
23812 (arm_fa726te_tune): Likewise.
23814 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
23816 * altivec.md: Delete UNSPEC_VMLADDUHM.
23817 (mulv4si3_p8): New pattern.
23818 (mulv4si3): Use it for POWER8.
23819 (mulv8hi3): Use vmladduhm with zero addend.
23820 (altivec_vmladduhm): Descriptive RTL.
23822 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
23824 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
23825 to use neon_move instead of mov_imm.
23826 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
23827 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
23829 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
23830 aarch64_float_const_zero_rtx_p check before TFmode check.
23831 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
23833 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
23834 code and attributes to match. Change condition from register_operand
23835 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
23836 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
23839 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
23842 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
23843 there is no parent.
23845 2015-06-14 Shiva Chen <shiva0217@gmail.com>
23847 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
23848 HOST_WIDE_INT parameter.
23850 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
23853 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
23854 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
23856 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
23858 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
23860 * rtl.h (classify_insn): Declare.
23861 * emit-rtl.c (classify_insn): Move to...
23862 * rtl.c: ...here and add generator support.
23863 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
23864 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
23865 * genemit.c (gen_emit_seq): New function.
23866 (gen_expand, gen_split): Use it.
23868 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
23870 * tree.c (make_vector_stat): Fix comment to state that the
23871 function returns a VECTOR_CST.
23873 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
23875 * gensupport.h (add_implicit_parallel): Declare.
23876 * genrecog.c (add_implicit_parallel): Move to...
23877 * gensupport.c (add_implicit_parallel): ...here.
23878 (process_one_cond_exec): Use it.
23879 * genemit.c (gen_insn): Likewise.
23881 2015-06-13 Iain Sandoe <iain@codesourcery.com>
23884 * passes.c (rest_of_decl_compilation): Do not register globals for
23885 early debug if they are declared in built-ins.
23887 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
23889 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
23891 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23893 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
23895 (noce_try_cmove_arith): Likewise.
23896 (noce_get_alt_condition): Likewise.
23898 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23900 * common/config/i386/i386-common.c
23901 (OPTION_MASK_ISA_MWAITX_SET): New.
23902 (ix86_handle_option): Handle mwaitx.
23903 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
23904 (x86_64-*-*): Likewise.
23905 * config/i386/mwaitxintrin.h: New header.
23906 * config/i386/cpuid.h (bit_MWAITX): Define.
23907 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23909 * config/i386/i386.opt (mwaitx): New.
23910 * config/i386/i386-builtin-types.def
23911 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
23912 * config/i386/i386-c.c: Define __MWAITX__ if needed.
23913 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
23915 (ix86_option_override_internal): Handle new option.
23916 (processor_alias_table): Added PTA_MWAITX.
23917 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
23918 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
23919 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
23920 IX86_BUILTIN_MONITORX built-ins.
23921 * config/i386/i386.h (TARGET_MWAITX): New.
23922 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
23924 (mwaitx): New pattern.
23925 (monitorx_<mode>): New pattern.
23926 * config/i386/x86intrin.h: Include mwaitxintrin.h.
23927 * doc/extend.texi: Document monitorx and mwaitx builtins.
23928 * doc/invoke.texi: Document -mmwaitx option.
23930 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
23932 * emit-rtl.c (need_atomic_barrier_p): Mask model with
23933 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
23935 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
23937 * dbxout.c (xcoff_debug_hooks): Provide a function for
23938 register_main_translation_unit hook.
23940 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
23942 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
23943 variants cases from switch.
23944 (rs6000_post_atomic_barrier): Same.
23945 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
23946 (rs6000_expand_atomic_exchange): Same.
23947 (rs6000_expand_atomic_op): Same.
23948 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
23949 SYNC variants cases from switch.
23950 (atomic_load): Same.
23951 (atomic_store): Same.
23953 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
23955 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
23956 CONST_INT for goto.
23958 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
23961 * dwarf2out.c (check_die): Check for common duplicate attributes.
23962 (add_location_or_const_value_attribute): Do not add duplicate
23964 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
23966 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
23967 (gen_type_die_with_usage): Call check_die.
23968 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
23970 2015-06-11 Jason Merrill <jason@redhat.com>
23972 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
23975 2015-06-11 Marek Polacek <polacek@redhat.com>
23977 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
23979 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
23982 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
23983 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
23984 (*addx_extend_sp32): Fix pasto.
23985 (*subx_extend): Rename into...
23986 (*subx_extend_sp32): ...this.
23987 (*adddi3_extend_sp32): Add earlyclobber.
23988 (*subdi3_insn_sp32): Likewise.
23989 (*subdi3_extend_sp32): Likewise.
23990 (*and_not_di_sp32): Likewise.
23991 (*or_not_di_sp32): Likewise.
23992 (*xor_not_di_sp32): Likewise.
23993 (*negdi2_sp32): Likewise.
23994 (*one_cmpldi2_sp32): Likewise.
23996 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
23998 * debug.h (struct gcc_debug_hooks): Add a
23999 register_main_translation_unit hook.
24000 * debug.c (do_nothing_debug_hooks): Provide a function for this
24002 * dbxout.c (dbx_debug_hooks): Likewise.
24003 * sdbout.c (sdb_debug_hooks): Likewise.
24004 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24005 * dwarf2out.c (main_translation_unit): New global variable.
24006 (dwarf2out_register_main_translation_unit): New function
24007 implementing the new hook.
24008 (dwarf2_debug_hooks): Assign
24009 dwarf2out_register_main_translation_unit to this new hook.
24010 (dwarf2out_init): Associate any main translation unit to
24013 2015-06-11 Marek Polacek <polacek@redhat.com>
24015 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
24017 2015-06-11 Marek Polacek <polacek@redhat.com>
24019 * match.pd: Use single_use throughout.
24021 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24023 * config/arm/arm.c (arm_option_params_internal): When optimising
24024 for speed set max_insns_skipped when arm_restrict_it.
24026 2015-06-11 Christian Bruel <christian.bruel@st.com>
24029 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
24031 (arm_cpu_builtins): New function.
24032 (arm_pragma_target_parse): Call arm_cpu_builtins.
24033 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
24034 (arm_register_target_pragmas): Likewise.
24035 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
24036 Call arm_register_target_pragmas.
24037 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
24038 (arm_pragma_target_parse): Likewise.
24040 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
24042 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
24043 of the second operand.
24045 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
24048 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
24049 to prepare mask operand for AVX512 modes.
24051 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
24054 * doc/md.texi (Machine Constraints): Document that on the PowerPC
24055 if you use a constraint that targets a VSX register, you must use
24056 %x<n> in the template.
24058 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
24060 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
24061 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
24062 (define_insn "trap"): New definition.
24064 2015-06-10 Richard Biener <rguenther@suse.de>
24066 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
24068 (vect_supported_load_permutation_p): ... here. Handle
24069 supportable permutations in reductions.
24070 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
24071 for vectorizing strided group loads.
24073 2015-06-10 Jakub Jelinek <jakub@redhat.com>
24076 * config/i386/i386.c (ix86_split_long_move): For collisions
24077 involving direct tls segment refs, move the UNSPEC_TP possibly
24078 wrapped in ZERO_EXTEND out of the address for lea, to each of
24081 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24083 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
24084 dmb sy. Adjust tabs.
24086 2015-06-10 Tom de Vries <tom@codesourcery.com>
24088 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
24090 2015-06-10 Martin Liska <mliska@suse.cz>
24093 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
24094 all enum values in mem_alloc_origin.
24095 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
24097 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
24098 * bitmap.c (bitmap_register): Likewise.
24099 (dump_bitmap_statistics): Likewise.
24100 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
24101 (ggc_record_overhead): Likewise.
24102 * hash-map.h: Likewise.
24103 * hash-set.h: Likewise.
24104 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
24105 * hash-table.h: Likewise.
24106 * vec.c (vec_prefix::register_overhead): Likewise.
24107 (vec_prefix::release_overhead): Likewise.
24108 (dump_vec_loc_statistics): Likewise.
24110 2015-06-09 Christian Bruel <christian.bruel@st.com>
24113 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
24114 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
24115 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
24116 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
24117 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
24118 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
24119 (arm_valid_target_attribute_p): Likewise.
24120 (arm_set_current_function, arm_can_inline_p): Likewise.
24121 (arm_valid_target_attribute_rec): Likewise.
24122 (arm_previous_fndecl): New variable.
24123 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
24124 (TARGET_CAN_INLINE_P): Define.
24125 (arm_asm_trampoline_template): Emit mode.
24126 (arm_file_start): Don't set unified syntax.
24127 (arm_declare_function_name): Set unified syntax and mode.
24128 (arm_option_override): Init target_option_default_node.
24129 and target_option_current_node.
24130 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
24131 (*call_symbol): Likewise.
24132 * doc/extend.texi: Document ARM/Thumb target attribute.
24133 * doc/invoke.texi: Likewise.
24135 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24138 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24139 PR rtl-optimization/64164
24140 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24141 * tree-ssa-copyrename.c: Removed.
24142 * opts.c (default_options_table): Drop -ftree-copyrename. Add
24143 -ftree-coalesce-vars.
24144 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24145 * common.opt (ftree-copyrename): Ignore.
24146 (ftree-coalesce-inlined-vars): Likewise.
24147 * doc/invoke.texi: Remove the ignored options above.
24148 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24149 * tree-ssa-coalesce.h: ... here.
24150 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24151 headers required by it.
24152 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24153 across variables when flag_tree_coalesce_vars. Check register
24154 use and promoted modes to allow coalescing. Moved to
24155 tree-ssa-coalesce.c.
24156 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24157 with its member functions to tree-ssa-coalesce.c.
24158 (var_map_base_init): Likewise. Renamed to
24159 compute_samebase_partition_bases.
24160 (partition_view_normal): Drop want_bases parameter.
24161 (partition_view_bitmap): Likewise.
24162 * tree-ssa-live.h: Adjust declarations.
24163 * tree-ssa-coalesce.c: Include explow.h.
24164 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24165 default defs at the entry point.
24166 (dump_part_var_map): New.
24167 (compute_optimized_partition_bases): New, called by...
24168 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24169 of compute_samebase_partition_bases. Adjust.
24170 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24171 * cfgexpand.c (leader_merge): New.
24172 (get_rtl_for_parm_ssa_default_def): New.
24173 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24174 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24175 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
24176 redundant MEM attr setting.
24177 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
24179 (expand_one_stack_var): ... this. New wrapper to check and
24180 skip already expanded SSA partitions.
24181 (record_alignment_for_reg_var): New, factored out of...
24182 (expand_one_var): ... this.
24183 (expand_one_ssa_partition): New.
24184 (adjust_one_expanded_partition_var): New.
24185 (expand_one_register_var): Check and skip already expanded SSA
24187 (expand_used_vars): Don't create DECLs for anonymous SSA
24188 names. Expand all SSA partitions, then adjust all SSA names.
24189 (pass::execute): Replace the loops that set
24190 SA.partition_to_pseudo from partition leaders and cleared
24191 DECL_RTL for multi-location variables, and that which used to
24192 rename vars and set attrs, with one that clears DECL_RTL and
24193 checks that PARMs and RESULTs default_defs match DECL_RTL.
24194 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24195 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24196 * explow.c (promote_ssa_mode): New.
24197 * explow.h (promote_ssa_mode): Declare.
24198 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24199 * function.c: Include cfgexpand.h.
24200 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24201 (use_register_for_parm_decl): Wrapper for the above to
24202 special-case the result_ptr.
24203 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24204 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24205 multiple locations.
24206 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24207 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
24208 (assign_parm_setup_block): Prefer SSA-assigned location.
24209 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
24210 if stack_parm is NULL.
24211 (assign_parm_setup_stack): Prefer SSA-assigned location.
24212 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
24213 rtl before testing for pointer bounds. Special-case result_ptr.
24214 (expand_function_start): Maybe reset DECL_RTL of result.
24215 Prefer SSA-assigned location for result and static chain.
24216 Factor out DECL_RESULT and SET_DECL_RTL.
24217 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24218 anonymous SSA names. Use promote_ssa_mode.
24219 (get_temp_reg): Likewise.
24220 (remove_ssa_form): Adjust.
24221 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24222 and get its reg_usage for reg invalidation.
24223 (compute_bb_dataflow): Pass it insn.
24224 (emit_notes_in_bb): Likewise.
24225 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24226 fail assert on conversion between unsigned types.
24228 2015-06-09 Tom de Vries <tom@codesourcery.com>
24230 PR tree-optimization/65460
24231 * omp-low.c (expand_omp_target): Set parallelized_function on
24232 cgraph_node for child_fn.
24234 2015-06-09 Tom de Vries <tom@codesourcery.com>
24236 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
24237 parallelized_function before add_new_function.
24239 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
24241 * gcc-plugin.h: Move decls to plugin.h and include it.
24242 * plugin.h: Relocate decls from gcc-plugin.h
24243 * ggc-page.c: Include required header files.
24244 * passes.c: Likewise.
24245 * cgraphunit.c: Likewise.
24247 2015-06-09 Tom de Vries <tom@codesourcery.com>
24249 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
24251 2015-06-09 Jason Merrill <jason@redhat.com>
24254 * toplev.c (check_global_declaration): Don't warn about a clone.
24256 2015-06-09 Marek Polacek <polacek@redhat.com>
24258 PR tree-optimization/66299
24259 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
24260 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
24263 2015-06-09 Richard Biener <rguenther@suse.de>
24265 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
24266 (vect_analyze_slp_instance): Instead do not falsely drop
24269 2015-06-09 Richard Biener <rguenther@suse.de>
24271 PR middle-end/66423
24272 * match.pd: Handle A % (unsigned)(1 << B).
24274 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
24276 * varasm.c (output_object_block_htab): Remove.
24277 (output_object_block_compare): New.
24278 (output_object_blocks): Sort named object_blocks before outputting
24281 2015-06-09 Richard Biener <rguenther@suse.de>
24283 PR tree-optimization/66419
24284 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
24285 consider GROUP_GAP when detecting a perfect subchain.
24287 2015-06-09 Nick Clifton <nickc@redhat.com>
24289 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
24290 place read only data in the .frodata section.
24292 2015-06-09 Shiva Chen <shiva0217@gmail.com>
24294 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
24295 (atomic_store<mode>): Likewise.
24297 2015-06-09 Richard Biener <rguenther@suse.de>
24299 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
24301 2015-06-09 Richard Biener <rguenther@suse.de>
24303 PR middle-end/66413
24304 * tree-inline.c (insert_init_debug_bind): Unshare value.
24306 2015-06-09 Richard Biener <rguenther@suse.de>
24308 PR tree-optimization/66396
24309 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
24310 Rename virtual operands.
24312 2015-06-09 Tom de Vries <tom@codesourcery.com>
24314 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
24315 always return false.
24317 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24319 PR rtl-optimization/64164
24320 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24321 * tree-ssa-copyrename.c: Removed.
24322 * opts.c (default_options_table): Drop -ftree-copyrename. Add
24323 -ftree-coalesce-vars.
24324 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24325 * common.opt (ftree-copyrename): Ignore.
24326 (ftree-coalesce-inlined-vars): Likewise.
24327 * doc/invoke.texi: Remove the ignored options above.
24328 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24329 * tree-ssa-coalesce.h: ... here.
24330 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24331 headers required by it.
24332 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24333 across variables when flag_tree_coalesce_vars. Check register
24334 use and promoted modes to allow coalescing. Moved to
24335 tree-ssa-coalesce.c.
24336 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24337 with its member functions to tree-ssa-coalesce.c.
24338 (var_map_base_init): Likewise. Renamed to
24339 compute_samebase_partition_bases.
24340 (partition_view_normal): Drop want_bases parameter.
24341 (partition_view_bitmap): Likewise.
24342 * tree-ssa-live.h: Adjust declarations.
24343 * tree-ssa-coalesce.c: Include explow.h.
24344 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24345 default defs at the entry point.
24346 (dump_part_var_map): New.
24347 (compute_optimized_partition_bases): New, called by...
24348 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24349 of compute_samebase_partition_bases. Adjust.
24350 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24351 * cfgexpand.c (leader_merge): New.
24352 (get_rtl_for_parm_ssa_default_def): New.
24353 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24354 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24355 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
24356 redundant MEM attr setting.
24357 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
24359 (expand_one_stack_var): ... this. New wrapper to check and
24360 skip already expanded SSA partitions.
24361 (record_alignment_for_reg_var): New, factored out of...
24362 (expand_one_var): ... this.
24363 (expand_one_ssa_partition): New.
24364 (adjust_one_expanded_partition_var): New.
24365 (expand_one_register_var): Check and skip already expanded SSA
24367 (expand_used_vars): Don't create DECLs for anonymous SSA
24368 names. Expand all SSA partitions, then adjust all SSA names.
24369 (pass::execute): Replace the loops that set
24370 SA.partition_to_pseudo from partition leaders and cleared
24371 DECL_RTL for multi-location variables, and that which used to
24372 rename vars and set attrs, with one that clears DECL_RTL and
24373 checks that PARMs and RESULTs default_defs match DECL_RTL.
24374 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24375 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24376 * explow.c (promote_ssa_mode): New.
24377 * explow.h (promote_ssa_mode): Declare.
24378 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24379 * function.c: Include cfgexpand.h.
24380 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24381 (use_register_for_parm_decl): Wrapper for the above to
24382 special-case the result_ptr.
24383 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24384 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24385 multiple locations.
24386 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24387 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
24388 (assign_parm_setup_block): Prefer SSA-assigned location.
24389 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
24390 if stack_parm is NULL.
24391 (assign_parm_setup_stack): Prefer SSA-assigned location.
24392 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
24393 rtl before testing for pointer bounds. Special-case result_ptr.
24394 (expand_function_start): Maybe reset DECL_RTL of result.
24395 Prefer SSA-assigned location for result and static chain.
24396 Factor out DECL_RESULT and SET_DECL_RTL.
24397 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24398 anonymous SSA names. Use promote_ssa_mode.
24399 (get_temp_reg): Likewise.
24400 (remove_ssa_form): Adjust.
24401 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24402 and get its reg_usage for reg invalidation.
24403 (compute_bb_dataflow): Pass it insn.
24404 (emit_notes_in_bb): Likewise.
24405 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24406 fail assert on conversion between unsigned types.
24408 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24411 * tree-inline.c (reset_debug_binding): New.
24412 (reset_debug_bindings): Likewise.
24413 (expand_call_inline): Call it.
24415 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24417 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
24420 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24422 * lto-streamer-out.c (lto_output_location): Stream
24423 reserved locations correctly.
24424 * lto-streamer-in.c (lto_output_location): Likewise.
24426 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
24428 * coretypes.h: Include hash-table.h and hash-set.h for host files.
24429 * ggc.h: Don't include statistics.h>
24430 * hash-map.h: Remove all includes.
24431 * hash-set.h: Likewise.
24432 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
24433 the include list. Remove <new>.
24434 * inchash.h: Remove all includes.
24435 * mem-stats.h: Likewise.
24436 * vec.h: No special processing for generators or ggc.
24437 * alias.c : Adjust include files.
24438 * alloc-pool.c : Likewise.
24439 * alloc-pool.h : Likewise.
24440 * asan.c : Likewise.
24441 * attribs.c : Likewise.
24442 * auto-inc-dec.c : Likewise.
24443 * auto-profile.c : Likewise.
24444 * bb-reorder.c : Likewise.
24445 * bitmap.c : Likewise.
24446 * bitmap.h : Likewise.
24447 * bt-load.c : Likewise.
24448 * builtins.c : Likewise.
24449 * caller-save.c : Likewise.
24450 * calls.c : Likewise.
24451 * ccmp.c : Likewise.
24452 * cfg.c : Likewise.
24453 * cfganal.c : Likewise.
24454 * cfgbuild.c : Likewise.
24455 * cfgcleanup.c : Likewise.
24456 * cfgexpand.c : Likewise.
24457 * cfghooks.c : Likewise.
24458 * cfgloop.c : Likewise.
24459 * cfgloop.h : Likewise.
24460 * cfgloopanal.c : Likewise.
24461 * cfgloopmanip.c : Likewise.
24462 * cfgrtl.c : Likewise.
24463 * cgraph.c : Likewise.
24464 * cgraphbuild.c : Likewise.
24465 * cgraphclones.c : Likewise.
24466 * cgraphunit.c : Likewise.
24467 * cilk-common.c : Likewise.
24468 * combine-stack-adj.c : Likewise.
24469 * combine.c : Likewise.
24470 * compare-elim.c : Likewise.
24471 * context.c : Likewise.
24472 * convert.c : Likewise.
24473 * coverage.c : Likewise.
24474 * cppbuiltin.c : Likewise.
24475 * cprop.c : Likewise.
24476 * cse.c : Likewise.
24477 * cselib.c : Likewise.
24478 * data-streamer-in.c : Likewise.
24479 * data-streamer-out.c : Likewise.
24480 * data-streamer.c : Likewise.
24481 * data-streamer.h : Likewise.
24482 * dbxout.c : Likewise.
24483 * dce.c : Likewise.
24484 * ddg.c : Likewise.
24485 * debug.c : Likewise.
24486 * df-core.c : Likewise.
24487 * df-problems.c : Likewise.
24488 * df-scan.c : Likewise.
24490 * dfp.c : Likewise.
24491 * dojump.c : Likewise.
24492 * dominance.c : Likewise.
24493 * domwalk.c : Likewise.
24494 * double-int.c : Likewise.
24495 * dse.c : Likewise.
24496 * dumpfile.c : Likewise.
24497 * dwarf2asm.c : Likewise.
24498 * dwarf2cfi.c : Likewise.
24499 * dwarf2out.c : Likewise.
24500 * emit-rtl.c : Likewise.
24501 * et-forest.c : Likewise.
24502 * except.c : Likewise.
24503 * except.h : Likewise.
24504 * explow.c : Likewise.
24505 * expmed.c : Likewise.
24506 * expr.c : Likewise.
24507 * final.c : Likewise.
24508 * fixed-value.c : Likewise.
24509 * fold-const.c : Likewise.
24510 * function.c : Likewise.
24511 * fwprop.c : Likewise.
24512 * gcc-plugin.h : Likewise.
24513 * gcc.c : Likewise.
24514 * gcse-common.c : Likewise.
24515 * gcse.c : Likewise.
24516 * genattrtab.c : Likewise.
24517 * genautomata.c : Likewise.
24518 * genconditions.c : Likewise.
24519 * genemit.c : Likewise.
24520 * generic-match-head.c : Likewise.
24521 * genextract.c : Likewise.
24522 * gengtype-state.c : Likewise.
24523 * gengtype.c : Likewise.
24524 * genhooks.c : Likewise.
24525 * genmatch.c : Likewise.
24526 * genmodes.c : Likewise.
24527 * genrecog.c : Likewise.
24528 * gensupport.c : Likewise.
24529 * ggc-common.c : Likewise.
24530 * ggc-internal.h : Likewise.
24531 * ggc-none.c : Likewise.
24532 * ggc-page.c : Likewise.
24533 * gimple-builder.c : Likewise.
24534 * gimple-expr.c : Likewise.
24535 * gimple-fold.c : Likewise.
24536 * gimple-iterator.c : Likewise.
24537 * gimple-low.c : Likewise.
24538 * gimple-match-head.c : Likewise.
24539 * gimple-pretty-print.c : Likewise.
24540 * gimple-ssa-isolate-paths.c : Likewise.
24541 * gimple-ssa-strength-reduction.c : Likewise.
24542 * gimple-ssa.h : Likewise.
24543 * gimple-streamer-in.c : Likewise.
24544 * gimple-streamer-out.c : Likewise.
24545 * gimple-streamer.h : Likewise.
24546 * gimple-walk.c : Likewise.
24547 * gimple.c : Likewise.
24548 * gimplify-me.c : Likewise.
24549 * gimplify.c : Likewise.
24550 * godump.c : Likewise.
24551 * graph.c : Likewise.
24552 * graphds.c : Likewise.
24553 * graphite-blocking.c : Likewise.
24554 * graphite-dependences.c : Likewise.
24555 * graphite-interchange.c : Likewise.
24556 * graphite-isl-ast-to-gimple.c : Likewise.
24557 * graphite-optimize-isl.c : Likewise.
24558 * graphite-poly.c : Likewise.
24559 * graphite-scop-detection.c : Likewise.
24560 * graphite-sese-to-poly.c : Likewise.
24561 * graphite.c : Likewise.
24562 * haifa-sched.c : Likewise.
24563 * hard-reg-set.h : Likewise.
24564 * hw-doloop.c : Likewise.
24565 * ifcvt.c : Likewise.
24566 * inchash.c : Likewise.
24567 * incpath.c : Likewise.
24568 * init-regs.c : Likewise.
24569 * input.c : Likewise.
24570 * internal-fn.c : Likewise.
24571 * ipa-chkp.c : Likewise.
24572 * ipa-comdats.c : Likewise.
24573 * ipa-cp.c : Likewise.
24574 * ipa-devirt.c : Likewise.
24575 * ipa-icf-gimple.c : Likewise.
24576 * ipa-icf.c : Likewise.
24577 * ipa-inline-analysis.c : Likewise.
24578 * ipa-inline-transform.c : Likewise.
24579 * ipa-inline.c : Likewise.
24580 * ipa-polymorphic-call.c : Likewise.
24581 * ipa-profile.c : Likewise.
24582 * ipa-prop.c : Likewise.
24583 * ipa-pure-const.c : Likewise.
24584 * ipa-ref.c : Likewise.
24585 * ipa-reference.c : Likewise.
24586 * ipa-split.c : Likewise.
24587 * ipa-utils.c : Likewise.
24588 * ipa-visibility.c : Likewise.
24589 * ipa.c : Likewise.
24590 * ira-build.c : Likewise.
24591 * ira-color.c : Likewise.
24592 * ira-conflicts.c : Likewise.
24593 * ira-costs.c : Likewise.
24594 * ira-emit.c : Likewise.
24595 * ira-lives.c : Likewise.
24596 * ira.c : Likewise.
24597 * jump.c : Likewise.
24598 * langhooks.c : Likewise.
24599 * lcm.c : Likewise.
24600 * libfuncs.h : Likewise.
24601 * lists.c : Likewise.
24602 * loop-doloop.c : Likewise.
24603 * loop-init.c : Likewise.
24604 * loop-invariant.c : Likewise.
24605 * loop-iv.c : Likewise.
24606 * loop-unroll.c : Likewise.
24607 * lower-subreg.c : Likewise.
24608 * lra-assigns.c : Likewise.
24609 * lra-coalesce.c : Likewise.
24610 * lra-constraints.c : Likewise.
24611 * lra-eliminations.c : Likewise.
24612 * lra-lives.c : Likewise.
24613 * lra-remat.c : Likewise.
24614 * lra-spills.c : Likewise.
24615 * lra.c : Likewise.
24616 * lto-cgraph.c : Likewise.
24617 * lto-compress.c : Likewise.
24618 * lto-opts.c : Likewise.
24619 * lto-section-in.c : Likewise.
24620 * lto-section-out.c : Likewise.
24621 * lto-streamer-in.c : Likewise.
24622 * lto-streamer-out.c : Likewise.
24623 * lto-streamer.c : Likewise.
24624 * lto-streamer.h : Likewise.
24625 * mcf.c : Likewise.
24626 * mode-switching.c : Likewise.
24627 * modulo-sched.c : Likewise.
24628 * omega.c : Likewise.
24629 * omp-low.c : Likewise.
24630 * optabs.c : Likewise.
24631 * opts-global.c : Likewise.
24632 * opts.h : Likewise.
24633 * passes.c : Likewise.
24634 * plugin.c : Likewise.
24635 * postreload-gcse.c : Likewise.
24636 * postreload.c : Likewise.
24637 * predict.c : Likewise.
24638 * print-rtl.c : Likewise.
24639 * print-tree.c : Likewise.
24640 * profile.c : Likewise.
24641 * read-md.c : Likewise.
24642 * read-md.h : Likewise.
24643 * read-rtl.c : Likewise.
24644 * real.c : Likewise.
24645 * realmpfr.c : Likewise.
24646 * recog.c : Likewise.
24647 * ree.c : Likewise.
24648 * reg-stack.c : Likewise.
24649 * regcprop.c : Likewise.
24650 * reginfo.c : Likewise.
24651 * regrename.c : Likewise.
24652 * regstat.c : Likewise.
24653 * reload.c : Likewise.
24654 * reload1.c : Likewise.
24655 * reorg.c : Likewise.
24656 * resource.c : Likewise.
24657 * rtl-chkp.c : Likewise.
24658 * rtl.c : Likewise.
24659 * rtl.h : Likewise.
24660 * rtlanal.c : Likewise.
24661 * rtlhash.c : Likewise.
24662 * rtlhash.h : Likewise.
24663 * rtlhooks.c : Likewise.
24664 * sanopt.c : Likewise.
24665 * sched-deps.c : Likewise.
24666 * sched-ebb.c : Likewise.
24667 * sched-rgn.c : Likewise.
24668 * sched-vis.c : Likewise.
24669 * sdbout.c : Likewise.
24670 * sel-sched-dump.c : Likewise.
24671 * sel-sched-ir.c : Likewise.
24672 * sel-sched-ir.h : Likewise.
24673 * sel-sched.c : Likewise.
24674 * sese.c : Likewise.
24675 * shrink-wrap.c : Likewise.
24676 * shrink-wrap.h : Likewise.
24677 * simplify-rtx.c : Likewise.
24678 * stack-ptr-mod.c : Likewise.
24679 * statistics.c : Likewise.
24680 * stmt.c : Likewise.
24681 * stor-layout.c : Likewise.
24682 * store-motion.c : Likewise.
24683 * stringpool.c : Likewise.
24684 * symtab.c : Likewise.
24685 * target-globals.c : Likewise.
24686 * targhooks.c : Likewise.
24687 * tlink.c : Likewise.
24688 * toplev.c : Likewise.
24689 * tracer.c : Likewise.
24690 * trans-mem.c : Likewise.
24691 * tree-affine.c : Likewise.
24692 * tree-affine.h : Likewise.
24693 * tree-browser.c : Likewise.
24694 * tree-call-cdce.c : Likewise.
24695 * tree-cfg.c : Likewise.
24696 * tree-cfgcleanup.c : Likewise.
24697 * tree-chkp-opt.c : Likewise.
24698 * tree-chkp.c : Likewise.
24699 * tree-chrec.c : Likewise.
24700 * tree-complex.c : Likewise.
24701 * tree-data-ref.c : Likewise.
24702 * tree-dfa.c : Likewise.
24703 * tree-diagnostic.c : Likewise.
24704 * tree-dump.c : Likewise.
24705 * tree-eh.c : Likewise.
24706 * tree-eh.h : Likewise.
24707 * tree-emutls.c : Likewise.
24708 * tree-hasher.h : Likewise.
24709 * tree-if-conv.c : Likewise.
24710 * tree-inline.c : Likewise.
24711 * tree-inline.h : Likewise.
24712 * tree-into-ssa.c : Likewise.
24713 * tree-iterator.c : Likewise.
24714 * tree-loop-distribution.c : Likewise.
24715 * tree-nested.c : Likewise.
24716 * tree-nrv.c : Likewise.
24717 * tree-object-size.c : Likewise.
24718 * tree-outof-ssa.c : Likewise.
24719 * tree-parloops.c : Likewise.
24720 * tree-phinodes.c : Likewise.
24721 * tree-predcom.c : Likewise.
24722 * tree-pretty-print.c : Likewise.
24723 * tree-profile.c : Likewise.
24724 * tree-scalar-evolution.c : Likewise.
24725 * tree-sra.c : Likewise.
24726 * tree-ssa-address.c : Likewise.
24727 * tree-ssa-alias.c : Likewise.
24728 * tree-ssa-ccp.c : Likewise.
24729 * tree-ssa-coalesce.c : Likewise.
24730 * tree-ssa-copy.c : Likewise.
24731 * tree-ssa-copyrename.c : Likewise.
24732 * tree-ssa-dce.c : Likewise.
24733 * tree-ssa-dom.c : Likewise.
24734 * tree-ssa-dse.c : Likewise.
24735 * tree-ssa-forwprop.c : Likewise.
24736 * tree-ssa-ifcombine.c : Likewise.
24737 * tree-ssa-live.c : Likewise.
24738 * tree-ssa-loop-ch.c : Likewise.
24739 * tree-ssa-loop-im.c : Likewise.
24740 * tree-ssa-loop-ivcanon.c : Likewise.
24741 * tree-ssa-loop-ivopts.c : Likewise.
24742 * tree-ssa-loop-manip.c : Likewise.
24743 * tree-ssa-loop-niter.c : Likewise.
24744 * tree-ssa-loop-prefetch.c : Likewise.
24745 * tree-ssa-loop-unswitch.c : Likewise.
24746 * tree-ssa-loop.c : Likewise.
24747 * tree-ssa-math-opts.c : Likewise.
24748 * tree-ssa-operands.c : Likewise.
24749 * tree-ssa-phiopt.c : Likewise.
24750 * tree-ssa-phiprop.c : Likewise.
24751 * tree-ssa-pre.c : Likewise.
24752 * tree-ssa-propagate.c : Likewise.
24753 * tree-ssa-reassoc.c : Likewise.
24754 * tree-ssa-sccvn.c : Likewise.
24755 * tree-ssa-scopedtables.c : Likewise.
24756 * tree-ssa-sink.c : Likewise.
24757 * tree-ssa-strlen.c : Likewise.
24758 * tree-ssa-structalias.c : Likewise.
24759 * tree-ssa-tail-merge.c : Likewise.
24760 * tree-ssa-ter.c : Likewise.
24761 * tree-ssa-threadedge.c : Likewise.
24762 * tree-ssa-threadupdate.c : Likewise.
24763 * tree-ssa-uncprop.c : Likewise.
24764 * tree-ssa-uninit.c : Likewise.
24765 * tree-ssa.c : Likewise.
24766 * tree-ssanames.c : Likewise.
24767 * tree-stdarg.c : Likewise.
24768 * tree-streamer-in.c : Likewise.
24769 * tree-streamer-out.c : Likewise.
24770 * tree-streamer.c : Likewise.
24771 * tree-streamer.h : Likewise.
24772 * tree-switch-conversion.c : Likewise.
24773 * tree-tailcall.c : Likewise.
24774 * tree-vect-data-refs.c : Likewise.
24775 * tree-vect-generic.c : Likewise.
24776 * tree-vect-loop-manip.c : Likewise.
24777 * tree-vect-loop.c : Likewise.
24778 * tree-vect-patterns.c : Likewise.
24779 * tree-vect-slp.c : Likewise.
24780 * tree-vect-stmts.c : Likewise.
24781 * tree-vectorizer.c : Likewise.
24782 * tree-vectorizer.h : Likewise.
24783 * tree-vrp.c : Likewise.
24784 * tree.c : Likewise.
24785 * tsan.c : Likewise.
24786 * ubsan.c : Likewise.
24787 * valtrack.c : Likewise.
24788 * valtrack.h : Likewise.
24789 * value-prof.c : Likewise.
24790 * var-tracking.c : Likewise.
24791 * varasm.c : Likewise.
24792 * varpool.c : Likewise.
24794 * vmsdbgout.c : Likewise.
24795 * vtable-verify.c : Likewise.
24796 * vtable-verify.h : Likewise.
24797 * web.c : Likewise.
24798 * wide-int.cc : Likewise.
24799 * xcoffout.c : Likewise.
24800 * config/aarch64/aarch64-builtins.c : Likewise.
24801 * config/aarch64/aarch64.c : Likewise.
24802 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
24803 * config/alpha/alpha.c : Likewise.
24804 * config/arc/arc.c : Likewise.
24805 * config/arm/aarch-common.c : Likewise.
24806 * config/arm/arm-builtins.c : Likewise.
24807 * config/arm/arm-c.c : Likewise.
24808 * config/arm/arm.c : Likewise.
24809 * config/avr/avr-c.c : Likewise.
24810 * config/avr/avr-log.c : Likewise.
24811 * config/avr/avr.c : Likewise.
24812 * config/bfin/bfin.c : Likewise.
24813 * config/c6x/c6x.c : Likewise.
24814 * config/cr16/cr16.c : Likewise.
24815 * config/cris/cris.c : Likewise.
24816 * config/darwin-c.c : Likewise.
24817 * config/darwin.c : Likewise.
24818 * config/default-c.c : Likewise.
24819 * config/epiphany/epiphany.c : Likewise.
24820 * config/epiphany/mode-switch-use.c : Likewise.
24821 * config/epiphany/resolve-sw-modes.c : Likewise.
24822 * config/fr30/fr30.c : Likewise.
24823 * config/frv/frv.c : Likewise.
24824 * config/ft32/ft32.c : Likewise.
24825 * config/glibc-c.c : Likewise.
24826 * config/h8300/h8300.c : Likewise.
24827 * config/i386/i386-c.c : Likewise.
24828 * config/i386/i386.c : Likewise.
24829 * config/i386/msformat-c.c : Likewise.
24830 * config/i386/winnt-cxx.c : Likewise.
24831 * config/i386/winnt-stubs.c : Likewise.
24832 * config/i386/winnt.c : Likewise.
24833 * config/ia64/ia64-c.c : Likewise.
24834 * config/ia64/ia64.c : Likewise.
24835 * config/iq2000/iq2000.c : Likewise.
24836 * config/lm32/lm32.c : Likewise.
24837 * config/m32c/m32c-pragma.c : Likewise.
24838 * config/m32c/m32c.c : Likewise.
24839 * config/m32r/m32r.c : Likewise.
24840 * config/m68k/m68k.c : Likewise.
24841 * config/mcore/mcore.c : Likewise.
24842 * config/mep/mep-pragma.c : Likewise.
24843 * config/mep/mep.c : Likewise.
24844 * config/microblaze/microblaze-c.c : Likewise.
24845 * config/microblaze/microblaze.c : Likewise.
24846 * config/mips/mips.c : Likewise.
24847 * config/mmix/mmix.c : Likewise.
24848 * config/mn10300/mn10300.c : Likewise.
24849 * config/moxie/moxie.c : Likewise.
24850 * config/msp430/msp430-c.c : Likewise.
24851 * config/msp430/msp430.c : Likewise.
24852 * config/nds32/nds32-cost.c : Likewise.
24853 * config/nds32/nds32-fp-as-gp.c : Likewise.
24854 * config/nds32/nds32-intrinsic.c : Likewise.
24855 * config/nds32/nds32-isr.c : Likewise.
24856 * config/nds32/nds32-md-auxiliary.c : Likewise.
24857 * config/nds32/nds32-memory-manipulation.c : Likewise.
24858 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
24859 * config/nds32/nds32-predicates.c : Likewise.
24860 * config/nds32/nds32.c : Likewise.
24861 * config/nios2/nios2.c : Likewise.
24862 * config/nvptx/nvptx.c : Likewise.
24863 * config/pa/pa.c : Likewise.
24864 * config/pdp11/pdp11.c : Likewise.
24865 * config/rl78/rl78-c.c : Likewise.
24866 * config/rl78/rl78.c : Likewise.
24867 * config/rs6000/rs6000-c.c : Likewise.
24868 * config/rs6000/rs6000.c : Likewise.
24869 * config/rx/rx.c : Likewise.
24870 * config/s390/s390-c.c : Likewise.
24871 * config/s390/s390.c : Likewise.
24872 * config/sh/sh-c.c : Likewise.
24873 * config/sh/sh-mem.cc : Likewise.
24874 * config/sh/sh.c : Likewise.
24875 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
24876 * config/sh/sh_treg_combine.cc : Likewise.
24877 * config/sol2-c.c : Likewise.
24878 * config/sol2-cxx.c : Likewise.
24879 * config/sol2-stubs.c : Likewise.
24880 * config/sol2.c : Likewise.
24881 * config/sparc/sparc-c.c : Likewise.
24882 * config/sparc/sparc.c : Likewise.
24883 * config/spu/spu-c.c : Likewise.
24884 * config/spu/spu.c : Likewise.
24885 * config/stormy16/stormy16.c : Likewise.
24886 * config/tilegx/mul-tables.c : Likewise.
24887 * config/tilegx/tilegx-c.c : Likewise.
24888 * config/tilegx/tilegx.c : Likewise.
24889 * config/tilepro/mul-tables.c : Likewise.
24890 * config/tilepro/tilepro-c.c : Likewise.
24891 * config/tilepro/tilepro.c : Likewise.
24892 * config/v850/v850-c.c : Likewise.
24893 * config/v850/v850.c : Likewise.
24894 * config/vax/vax.c : Likewise.
24895 * config/visium/visium.c : Likewise.
24896 * config/vms/vms-c.c : Likewise.
24897 * config/vms/vms.c : Likewise.
24898 * config/vxworks.c : Likewise.
24899 * config/winnt-c.c : Likewise.
24900 * config/xtensa/xtensa.c : Likewise.
24902 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24905 * ipa-utils.h (warn_types_mismatch): Update prototype.
24906 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
24908 (type_mismatch_p): New function.
24909 (warn_types_mismatch): Reorg to work better on non-C++ types.
24910 (odr_types_equivalent_p): Add loc1/loc2 parameters.
24911 (add_type_duplicate): Update.
24913 2015-06-08 Tom de Vries <tom@codesourcery.com>
24915 PR rtl-optimization/66444
24916 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
24919 2015-06-08 Richard Biener <rguenther@suse.de>
24921 PR tree-optimization/66422
24922 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
24923 block after inserted gcc_unreachable.
24925 2015-06-08 Nick Clifton <nickc@redhat.com>
24927 * config/rx/rx.c (rx_function_value): Do not promote vector types.
24928 (rx_promote_function_mode): Likewise.
24929 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
24931 2015-06-08 Jakub Jelinek <jakub@redhat.com>
24933 * genattrtab.c (insn_alternatives): Change type from int *
24935 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
24936 (get_attr_value): Change type of num_alt to uint64_t.
24937 (compute_alternative_mask): Change return type from
24938 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
24939 (make_alternative_compare, mk_attr_alt): Change argument type
24940 from int to uint64_t.
24941 (simplify_test_exp): Change type of i from int to uint64_t.
24942 Shift ((uint64_t) 1) instead of 1 up.
24943 (main): Adjust oballocvec first argument from int to uint64_t.
24944 Shift ((uint64_t) 1) instead of 1 up.
24946 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
24949 * gdbhooks.py: Import sys.
24950 (intptr): New function. Replace int(...) by intptr(...).
24952 2015-06-08 Richard Biener <rguenther@suse.de>
24954 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
24955 adjustment for gaps at the end of a SLP load group properly.
24956 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
24957 all permutations we can generate.
24958 (vect_transform_slp_perm_load): Use the correct group-size.
24960 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
24962 * genmatch.c (expr::gen_transform): For conditions, guess the type
24963 from the second operand.
24965 2015-06-08 Tom de Vries <tom@codesourcery.com>
24967 PR tree-optimization/66442
24968 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
24969 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
24970 if the loop latch is not a singleton. Use
24971 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
24973 2015-06-08 Marek Polacek <polacek@redhat.com>
24976 * toplev.c (check_global_declaration): Don't warn about artificial
24979 2015-06-08 Tom de Vries <tom@codesourcery.com>
24981 PR tree-optimization/66436
24982 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
24984 * gimplify.c: Add tree-dump.h include.
24985 (gimplify_function_tree): Dump function to gimple dump file.
24986 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
24989 2015-06-08 Tom de Vries <tom@codesourcery.com>
24991 PR tree-optimization/66435
24992 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
24995 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
24997 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
24998 of ptr_type_node to not be ptr_to_node.
24999 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
25000 TREE_TYPE of pointers.
25001 * gimple-expr.c (useless_type_conversion): Reorder the check for
25002 function pointers and TYPE_CANONICAL.
25004 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
25007 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
25008 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
25009 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
25011 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
25012 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
25013 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
25014 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
25015 and non iso if unix2003.
25017 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
25019 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
25021 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
25023 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
25024 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
25025 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
25026 except.c, final.c, function.c, gcse-common.c, genemit.c,
25027 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
25028 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
25029 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
25030 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
25033 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
25035 * combine.c (combine_split_insns): Remove cast.
25036 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
25037 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
25038 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
25039 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
25040 * genemit.c (gen_split): Change return type of generated functions to
25042 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
25043 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
25044 gen_peephole2_* functions.
25045 (print_subroutine, main): Likewise.
25046 * recog.c (peephole2_optimize): Remove cast.
25047 (peep2_next_insn): Promote return type to rtx_insn.
25048 * recog.h (peep2_next_insn): Fix prototype.
25049 * rtl.h (try_split, split_insns): Likewise.
25051 2015-06-06 DJ Delorie <dj@redhat.com>
25053 * config/msp430/msp430.c (msp430_asm_integer): Support addition
25054 and subtraction too.
25056 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
25059 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
25060 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
25061 instead of Snd. Disparage Sid/z alternative with '^'.
25063 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
25065 * dwarf2out.c: Remove deferred_locations*.
25066 (dwarf2_debug_hooks): Add early_finish hook.
25067 Remove global_decl hook.
25068 Add early_global_decl and late_global_decl hook.
25069 New global early_dwarf.
25070 New structure set_early_dwarf.
25071 (output_die): Indicate whether a DIE was generated early
25072 when generating assembly with -dA.
25073 (struct limbo_die_struct): Document created_for field.
25074 Remove file_table_last_lookup.
25075 (remove_AT): Return TRUE if successful.
25076 (remove_child_TAG): Clear die_parent.
25077 (reparent_child): New function abstracted from...
25078 (splice_child_die): ...here.
25079 (new_die): ICE if a DIE ends up in limbo too late.
25081 (defer_location): Remove.
25082 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
25083 (fill_variable_array_bounds): New.
25084 (decl_start_label): Call fill_variable_array_bounds.
25085 (gen_formal_parameter_die): Rewrite to reuse previously generated
25087 (gen_subprogram_die): Same.
25088 (gen_variable_die): Same.
25089 (gen_const_die): Same.
25090 (gen_label_die): Same.
25091 (gen_lexical_block_die): Same.
25092 (decl_will_get_specification_p): New.
25093 (local_function_static): New.
25094 (gen_struct_or_union_type_die): Fill in variable-length fields.
25095 (gen_typedef_die): Fill in variable-length typedefs.
25096 (gen_tagged_type_die): Gracefully return on error_mark_node.
25097 Handle re-entrancy.
25098 (gen_type_die_with_usage): Handle variable-length types.
25099 Remove duplicate code for ARRAY_TYPE case.
25100 (process_scope_var): Only process imported modules during early
25102 (dwarf2out_early_global_decl): New.
25103 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
25104 (dwarf2out_type_decl): Set early_dwarf while calling
25106 (dwarf2out_decl): Verify that we did not recreate a previously
25108 Do not return on DECL_EXTERNALs in VAR_DECLs.
25109 Abstract some code to local_function_static.
25110 (lookup_filename): Remove use of file_table_last_lookup.
25111 Gracefully exit on missing file_name.
25112 (dwarf2out_finish): Verify limbo list.
25113 Remove deferred_locations_list use.
25114 Move deferred_asm_name and limbo flushing to...
25115 (dwarf2out_early_finish): ...here. New.
25116 (dwarf2out_c_finalize): Remove set of deferred_location_list,
25117 deferred_asm_name, and file_table_last_lookup.
25118 * cgraph.h (referred_to_p): Add default argument.
25119 * cgraphunit.c (referred_to_p): Add and handle include_self
25121 (analyze_functions): Add first_time argument.
25122 Call check_global_declaration for all symbols.
25123 Call late_global_decl for nodes for moribund nodes.
25124 (finalize_compilation_unit): Add new argument to
25126 Call early_global_decl for functions.
25127 Call early_finish debug hook.
25128 * dbxout.c (dbxout_early_global_decl): New.
25129 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
25130 (dbx_debug_hooks): Add new hooks.
25131 (xcoff_debug_hooks): Same.
25132 * debug.c (do_nothing_debug_hooks): Add early_finish field.
25133 Add early and late debug hooks.
25134 Remove global_decl hook.
25135 * debug.h (struct gcc_debug_hooks): Add early_finish,
25136 early_global_decl, and late_global_decl fields.
25137 Remove global_decl field.
25138 Document gcc_debug_hooks.
25139 * gengtype.c (output_typename): Remove.
25140 * godump.c (go_early_global_decl): New.
25141 (go_late_global_decl): New.
25142 (go_global_decl): Remove.
25143 (dump_go_spec_init): Remove global_decl. Add
25144 {early,late}_global_decl.
25145 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
25146 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
25147 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
25148 (write_global_declarations): Remove.
25149 (global_decl_processing): New.
25150 * langhooks.h (struct lang_hooks_for_decls): Remove
25151 final_write_globals field.
25152 Add post_compilation_parsing_cleanups field.
25153 * passes.c (rest_of_decl_compilation): Call early_global_decl.
25154 * sdbout.c: Add early and late_global_decl hooks. Remove
25155 sdbout_global_decl hook.
25156 Add early_finish field for sdb_debug_hooks.
25157 (sdbout_global_decl): Remove.
25158 (sdbout_early_global_decl): New.
25159 (sdbout_late_global_decl): New.
25160 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
25161 * toplev.c (check_global_declaration): Rename from
25162 check_global_declaration_1.
25163 Adapt to use symtab infrastructure.
25164 (check_global_declarations): Remove.
25165 (emit_debug_global_declarations): Remove.
25166 (compile_file): Remove call to final_write_globals langhook.
25167 Run the actual compilation process.
25168 Perform any post compilation parser cleanups.
25169 Generate late debug info.
25170 * toplev.h (check_global_declaration): New.
25171 (check_global_declaration_1): Remove.
25172 (check_global_declarations): Remove.
25173 (write_global_declarations): Remove.
25174 (emit_debug_global_declarations): Remove.
25175 (global_decl_processing): New.
25176 * tree-core.h (struct tree_block): Add DIE field.
25177 * tree.h (BLOCK_DIE): New.
25178 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
25180 (vmsdbgout_early_global_decl): New.
25181 (vmsdbgout_late_global_decl): New.
25182 Add early_finish debug hook field to vmsdbg_debug_hooks.
25183 Remove vmsdbgout_decl to vmsdbgout_function_decl.
25184 Add early and late_global_decl debug hooks.
25186 2015-06-05 Julian Brown <julian@codesourcery.com>
25187 Sandra Loosemore <sandra@codesourcery.com>
25189 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
25190 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
25191 to print-sysroot-suffix.sh script.
25193 2015-06-05 Tom de Vries <tom@codesourcery.com>
25195 merge from gomp4 branch:
25196 2015-05-28 Tom de Vries <tom@codesourcery.com>
25198 PR tree-optimization/65443
25199 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
25200 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
25201 (try_transform_to_exit_first_loop_alt): New function.
25202 (transform_to_exit_first_loop): Use
25203 try_transform_to_exit_first_loop_alt.
25205 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
25207 * builtins.c (expand_builtin_atomic_compare_exchange): Call
25208 emit_cmp_and_jump_insns with the mode of target.
25210 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25212 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
25214 2015-06-04 DJ Delorie <dj@redhat.com>
25216 * config/msp430/msp430.md (movsi_s): New. Special case for
25217 storing a 20-bit symbol into a 32-bit register.
25218 * config/msp430/msp430.c (msp430_subreg): Add support for it.
25219 * config/msp430/predicates.md (msp430_symbol_operand): New.
25221 2015-06-04 Sriraman Tallam <tmsriram@google.com>
25223 * c-family/c-common.c (noplt): New attribute.
25224 (handle_noplt_attribute): New handler.
25225 * calls.c (prepare_call_address): Check for noplt
25227 * config/i386/i386.c (ix86_expand_call): Check
25228 for noplt attribute.
25229 (ix86_nopic_noplt_attribute_p): New function.
25230 (ix86_output_call_insn): Output indirect call for non-pic
25232 * doc/extend.texi (noplt): Document new attribute.
25233 * doc/invoke.texi: Document new attribute.
25235 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
25237 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
25238 real.h, and fixed-value.h when included in host source files.
25239 * double-int.h: Remove redundant #includes listed above.
25240 * fixed-value.h: Likewise.
25241 * real.h: Likewise.
25242 * wide-int.h: Likewise.
25243 * inchash.h: Likewise.
25244 * rtl.h: Add some include files When included from a generator file.
25245 * target.h: Remove wide-int.h and insn-modes.h from the include list.
25246 * internal-fn.h: Don't include coretypes.h.
25247 * alias.c: Adjust includes for restructured coretypes.h.
25248 * asan.c: Likewise.
25249 * attribs.c: Likewise.
25250 * auto-inc-dec.c: Likewise.
25251 * auto-profile.c: Likewise.
25252 * bb-reorder.c: Likewise.
25253 * bt-load.c: Likewise.
25254 * builtins.c: Likewise.
25255 * caller-save.c: Likewise.
25256 * calls.c: Likewise.
25257 * ccmp.c: Likewise.
25259 * cfganal.c: Likewise.
25260 * cfgbuild.c: Likewise.
25261 * cfgcleanup.c: Likewise.
25262 * cfgexpand.c: Likewise.
25263 * cfghooks.c: Likewise.
25264 * cfgloop.c: Likewise.
25265 * cfgloop.h: Likewise.
25266 * cfgloopanal.c: Likewise.
25267 * cfgloopmanip.c: Likewise.
25268 * cfgrtl.c: Likewise.
25269 * cgraph.c: Likewise.
25270 * cgraphbuild.c: Likewise.
25271 * cgraphclones.c: Likewise.
25272 * cgraphunit.c: Likewise.
25273 * cilk-common.c: Likewise.
25274 * combine-stack-adj.c: Likewise.
25275 * combine.c: Likewise.
25276 * compare-elim.c: Likewise.
25277 * convert.c: Likewise.
25278 * coverage.c: Likewise.
25279 * cppbuiltin.c: Likewise.
25280 * cprop.c: Likewise.
25282 * cselib.c: Likewise.
25283 * data-streamer-in.c: Likewise.
25284 * data-streamer-out.c: Likewise.
25285 * data-streamer.c: Likewise.
25286 * dbxout.c: Likewise.
25289 * debug.c: Likewise.
25290 * df-core.c: Likewise.
25291 * df-problems.c: Likewise.
25292 * df-scan.c: Likewise.
25295 * dojump.c: Likewise.
25296 * dominance.c: Likewise.
25297 * domwalk.c: Likewise.
25298 * double-int.c: Likewise.
25300 * dumpfile.c: Likewise.
25301 * dwarf2asm.c: Likewise.
25302 * dwarf2cfi.c: Likewise.
25303 * dwarf2out.c: Likewise.
25304 * dwarf2out.h: Likewise.
25305 * emit-rtl.c: Likewise.
25306 * et-forest.c: Likewise.
25307 * except.c: Likewise.
25308 * explow.c: Likewise.
25309 * expmed.c: Likewise.
25310 * expr.c: Likewise.
25311 * final.c: Likewise.
25312 * fixed-value.c: Likewise.
25313 * fold-const.c: Likewise.
25314 * function.c: Likewise.
25315 * fwprop.c: Likewise.
25316 * gcc-plugin.h: Likewise.
25317 * gcse.c: Likewise.
25318 * generic-match-head.c: Likewise.
25319 * ggc-page.c: Likewise.
25320 * gimple-builder.c: Likewise.
25321 * gimple-expr.c: Likewise.
25322 * gimple-fold.c: Likewise.
25323 * gimple-iterator.c: Likewise.
25324 * gimple-low.c: Likewise.
25325 * gimple-match-head.c: Likewise.
25326 * gimple-pretty-print.c: Likewise.
25327 * gimple-ssa-isolate-paths.c: Likewise.
25328 * gimple-ssa-strength-reduction.c: Likewise.
25329 * gimple-streamer-in.c: Likewise.
25330 * gimple-streamer-out.c: Likewise.
25331 * gimple-streamer.h: Likewise.
25332 * gimple-walk.c: Likewise.
25333 * gimple.c: Likewise.
25334 * gimplify-me.c: Likewise.
25335 * gimplify.c: Likewise.
25336 * godump.c: Likewise.
25337 * graph.c: Likewise.
25338 * graphite-blocking.c: Likewise.
25339 * graphite-dependences.c: Likewise.
25340 * graphite-interchange.c: Likewise.
25341 * graphite-isl-ast-to-gimple.c: Likewise.
25342 * graphite-optimize-isl.c: Likewise.
25343 * graphite-poly.c: Likewise.
25344 * graphite-scop-detection.c: Likewise.
25345 * graphite-sese-to-poly.c: Likewise.
25346 * graphite.c: Likewise.
25347 * haifa-sched.c: Likewise.
25348 * hooks.h: Likewise.
25349 * hw-doloop.c: Likewise.
25350 * ifcvt.c: Likewise.
25351 * incpath.c: Likewise.
25352 * init-regs.c: Likewise.
25353 * internal-fn.c: Likewise.
25354 * ipa-chkp.c: Likewise.
25355 * ipa-comdats.c: Likewise.
25356 * ipa-cp.c: Likewise.
25357 * ipa-devirt.c: Likewise.
25358 * ipa-icf-gimple.c: Likewise.
25359 * ipa-icf.c: Likewise.
25360 * ipa-inline-analysis.c: Likewise.
25361 * ipa-inline-transform.c: Likewise.
25362 * ipa-inline.c: Likewise.
25363 * ipa-polymorphic-call.c: Likewise.
25364 * ipa-profile.c: Likewise.
25365 * ipa-prop.c: Likewise.
25366 * ipa-pure-const.c: Likewise.
25367 * ipa-ref.c: Likewise.
25368 * ipa-reference.c: Likewise.
25369 * ipa-split.c: Likewise.
25370 * ipa-utils.c: Likewise.
25371 * ipa-visibility.c: Likewise.
25373 * ira-build.c: Likewise.
25374 * ira-color.c: Likewise.
25375 * ira-conflicts.c: Likewise.
25376 * ira-costs.c: Likewise.
25377 * ira-emit.c: Likewise.
25378 * ira-lives.c: Likewise.
25380 * jump.c: Likewise.
25381 * langhooks.c: Likewise.
25383 * loop-doloop.c: Likewise.
25384 * loop-init.c: Likewise.
25385 * loop-invariant.c: Likewise.
25386 * loop-iv.c: Likewise.
25387 * loop-unroll.c: Likewise.
25388 * lower-subreg.c: Likewise.
25389 * lra-assigns.c: Likewise.
25390 * lra-coalesce.c: Likewise.
25391 * lra-constraints.c: Likewise.
25392 * lra-eliminations.c: Likewise.
25393 * lra-lives.c: Likewise.
25394 * lra-remat.c: Likewise.
25395 * lra-spills.c: Likewise.
25397 * lto-cgraph.c: Likewise.
25398 * lto-compress.c: Likewise.
25399 * lto-opts.c: Likewise.
25400 * lto-section-in.c: Likewise.
25401 * lto-section-out.c: Likewise.
25402 * lto-streamer-in.c: Likewise.
25403 * lto-streamer-out.c: Likewise.
25404 * lto-streamer.c: Likewise.
25406 * mode-switching.c: Likewise.
25407 * modulo-sched.c: Likewise.
25408 * omega.c: Likewise.
25409 * omp-low.c: Likewise.
25410 * optabs.c: Likewise.
25411 * opts-global.c: Likewise.
25412 * passes.c: Likewise.
25413 * plugin.c: Likewise.
25414 * postreload-gcse.c: Likewise.
25415 * postreload.c: Likewise.
25416 * predict.c: Likewise.
25417 * print-rtl.c: Likewise.
25418 * print-tree.c: Likewise.
25419 * profile.c: Likewise.
25420 * real.c: Likewise.
25421 * realmpfr.c: Likewise.
25422 * realmpfr.h: Likewise.
25423 * recog.c: Likewise.
25425 * reg-stack.c: Likewise.
25426 * regcprop.c: Likewise.
25427 * reginfo.c: Likewise.
25428 * regrename.c: Likewise.
25429 * regs.h: Likewise.
25430 * regstat.c: Likewise.
25431 * reload.c: Likewise.
25432 * reload1.c: Likewise.
25433 * reorg.c: Likewise.
25434 * resource.c: Likewise.
25435 * rtl-chkp.c: Likewise.
25436 * rtlanal.c: Likewise.
25437 * rtlhooks.c: Likewise.
25438 * sanopt.c: Likewise.
25439 * sched-deps.c: Likewise.
25440 * sched-ebb.c: Likewise.
25441 * sched-rgn.c: Likewise.
25442 * sched-vis.c: Likewise.
25443 * sdbout.c: Likewise.
25444 * sel-sched-dump.c: Likewise.
25445 * sel-sched-ir.c: Likewise.
25446 * sel-sched.c: Likewise.
25447 * sese.c: Likewise.
25448 * shrink-wrap.c: Likewise.
25449 * shrink-wrap.h: Likewise.
25450 * simplify-rtx.c: Likewise.
25451 * stack-ptr-mod.c: Likewise.
25452 * statistics.c: Likewise.
25453 * stmt.c: Likewise.
25454 * stor-layout.c: Likewise.
25455 * store-motion.c: Likewise.
25456 * stringpool.c: Likewise.
25457 * symtab.c: Likewise.
25458 * target-globals.c: Likewise.
25459 * targhooks.c: Likewise.
25460 * toplev.c: Likewise.
25461 * tracer.c: Likewise.
25462 * trans-mem.c: Likewise.
25463 * tree-affine.c: Likewise.
25464 * tree-affine.h: Likewise.
25465 * tree-browser.c: Likewise.
25466 * tree-call-cdce.c: Likewise.
25467 * tree-cfg.c: Likewise.
25468 * tree-cfgcleanup.c: Likewise.
25469 * tree-chkp-opt.c: Likewise.
25470 * tree-chkp.c: Likewise.
25471 * tree-chrec.c: Likewise.
25472 * tree-complex.c: Likewise.
25473 * tree-data-ref.c: Likewise.
25474 * tree-dfa.c: Likewise.
25475 * tree-diagnostic.c: Likewise.
25476 * tree-dump.c: Likewise.
25477 * tree-eh.c: Likewise.
25478 * tree-emutls.c: Likewise.
25479 * tree-if-conv.c: Likewise.
25480 * tree-inline.c: Likewise.
25481 * tree-into-ssa.c: Likewise.
25482 * tree-iterator.c: Likewise.
25483 * tree-loop-distribution.c: Likewise.
25484 * tree-nested.c: Likewise.
25485 * tree-nrv.c: Likewise.
25486 * tree-object-size.c: Likewise.
25487 * tree-outof-ssa.c: Likewise.
25488 * tree-parloops.c: Likewise.
25489 * tree-phinodes.c: Likewise.
25490 * tree-predcom.c: Likewise.
25491 * tree-pretty-print.c: Likewise.
25492 * tree-pretty-print.h: Likewise.
25493 * tree-profile.c: Likewise.
25494 * tree-scalar-evolution.c: Likewise.
25495 * tree-sra.c: Likewise.
25496 * tree-ssa-address.c: Likewise.
25497 * tree-ssa-alias.c: Likewise.
25498 * tree-ssa-ccp.c: Likewise.
25499 * tree-ssa-coalesce.c: Likewise.
25500 * tree-ssa-copy.c: Likewise.
25501 * tree-ssa-copyrename.c: Likewise.
25502 * tree-ssa-dce.c: Likewise.
25503 * tree-ssa-dom.c: Likewise.
25504 * tree-ssa-dse.c: Likewise.
25505 * tree-ssa-forwprop.c: Likewise.
25506 * tree-ssa-ifcombine.c: Likewise.
25507 * tree-ssa-live.c: Likewise.
25508 * tree-ssa-loop-ch.c: Likewise.
25509 * tree-ssa-loop-im.c: Likewise.
25510 * tree-ssa-loop-ivcanon.c: Likewise.
25511 * tree-ssa-loop-ivopts.c: Likewise.
25512 * tree-ssa-loop-manip.c: Likewise.
25513 * tree-ssa-loop-niter.c: Likewise.
25514 * tree-ssa-loop-prefetch.c: Likewise.
25515 * tree-ssa-loop-unswitch.c: Likewise.
25516 * tree-ssa-loop.c: Likewise.
25517 * tree-ssa-loop.h: Likewise.
25518 * tree-ssa-math-opts.c: Likewise.
25519 * tree-ssa-operands.c: Likewise.
25520 * tree-ssa-phiopt.c: Likewise.
25521 * tree-ssa-phiprop.c: Likewise.
25522 * tree-ssa-pre.c: Likewise.
25523 * tree-ssa-propagate.c: Likewise.
25524 * tree-ssa-reassoc.c: Likewise.
25525 * tree-ssa-sccvn.c: Likewise.
25526 * tree-ssa-scopedtables.c: Likewise.
25527 * tree-ssa-sink.c: Likewise.
25528 * tree-ssa-strlen.c: Likewise.
25529 * tree-ssa-structalias.c: Likewise.
25530 * tree-ssa-tail-merge.c: Likewise.
25531 * tree-ssa-ter.c: Likewise.
25532 * tree-ssa-threadedge.c: Likewise.
25533 * tree-ssa-threadupdate.c: Likewise.
25534 * tree-ssa-uncprop.c: Likewise.
25535 * tree-ssa-uninit.c: Likewise.
25536 * tree-ssa.c: Likewise.
25537 * tree-ssanames.c: Likewise.
25538 * tree-stdarg.c: Likewise.
25539 * tree-streamer-in.c: Likewise.
25540 * tree-streamer-out.c: Likewise.
25541 * tree-streamer.c: Likewise.
25542 * tree-switch-conversion.c: Likewise.
25543 * tree-tailcall.c: Likewise.
25544 * tree-vect-data-refs.c: Likewise.
25545 * tree-vect-generic.c: Likewise.
25546 * tree-vect-loop-manip.c: Likewise.
25547 * tree-vect-loop.c: Likewise.
25548 * tree-vect-patterns.c: Likewise.
25549 * tree-vect-slp.c: Likewise.
25550 * tree-vect-stmts.c: Likewise.
25551 * tree-vectorizer.c: Likewise.
25552 * tree-vrp.c: Likewise.
25553 * tree.c: Likewise.
25554 * tsan.c: Likewise.
25555 * ubsan.c: Likewise.
25556 * valtrack.c: Likewise.
25557 * value-prof.c: Likewise.
25558 * var-tracking.c: Likewise.
25559 * varasm.c: Likewise.
25560 * varpool.c: Likewise.
25561 * vmsdbgout.c: Likewise.
25562 * vtable-verify.c: Likewise.
25564 * wide-int-print.cc: Likewise.
25565 * wide-int-print.h: Likewise.
25566 * wide-int.cc: Likewise.
25567 * xcoffout.c: Likewise.
25568 * config/aarch64/aarch64-builtins.c: Likewise.
25569 * config/aarch64/aarch64.c: Likewise.
25570 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25571 * config/alpha/alpha.c: Likewise.
25572 * config/arc/arc.c: Likewise.
25573 * config/arm/aarch-common.c: Likewise.
25574 * config/arm/arm-builtins.c: Likewise.
25575 * config/arm/arm-c.c: Likewise.
25576 * config/arm/arm.c: Likewise.
25577 * config/avr/avr-c.c: Likewise.
25578 * config/avr/avr-log.c: Likewise.
25579 * config/avr/avr.c: Likewise.
25580 * config/bfin/bfin.c: Likewise.
25581 * config/c6x/c6x.c: Likewise.
25582 * config/cr16/cr16.c: Likewise.
25583 * config/cris/cris.c: Likewise.
25584 * config/darwin-c.c: Likewise.
25585 * config/darwin.c: Likewise.
25586 * config/default-c.c: Likewise.
25587 * config/epiphany/epiphany.c: Likewise.
25588 * config/epiphany/mode-switch-use.c: Likewise.
25589 * config/epiphany/resolve-sw-modes.c: Likewise.
25590 * config/fr30/fr30.c: Likewise.
25591 * config/frv/frv.c: Likewise.
25592 * config/ft32/ft32.c: Likewise.
25593 * config/glibc-c.c: Likewise.
25594 * config/h8300/h8300.c: Likewise.
25595 * config/i386/i386-c.c: Likewise.
25596 * config/i386/i386.c: Likewise.
25597 * config/i386/msformat-c.c: Likewise.
25598 * config/i386/winnt-cxx.c: Likewise.
25599 * config/i386/winnt-stubs.c: Likewise.
25600 * config/i386/winnt.c: Likewise.
25601 * config/ia64/ia64-c.c: Likewise.
25602 * config/ia64/ia64.c: Likewise.
25603 * config/iq2000/iq2000.c: Likewise.
25604 * config/lm32/lm32.c: Likewise.
25605 * config/m32c/m32c-pragma.c: Likewise.
25606 * config/m32c/m32c.c: Likewise.
25607 * config/m32r/m32r.c: Likewise.
25608 * config/m68k/m68k.c: Likewise.
25609 * config/mcore/mcore.c: Likewise.
25610 * config/mep/mep-pragma.c: Likewise.
25611 * config/mep/mep.c: Likewise.
25612 * config/microblaze/microblaze-c.c: Likewise.
25613 * config/microblaze/microblaze.c: Likewise.
25614 * config/mips/mips.c: Likewise.
25615 * config/mmix/mmix.c: Likewise.
25616 * config/mn10300/mn10300.c: Likewise.
25617 * config/moxie/moxie.c: Likewise.
25618 * config/msp430/msp430-c.c: Likewise.
25619 * config/msp430/msp430.c: Likewise.
25620 * config/nds32/nds32-cost.c: Likewise.
25621 * config/nds32/nds32-fp-as-gp.c: Likewise.
25622 * config/nds32/nds32-intrinsic.c: Likewise.
25623 * config/nds32/nds32-isr.c: Likewise.
25624 * config/nds32/nds32-md-auxiliary.c: Likewise.
25625 * config/nds32/nds32-memory-manipulation.c: Likewise.
25626 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25627 * config/nds32/nds32-predicates.c: Likewise.
25628 * config/nds32/nds32.c: Likewise.
25629 * config/nios2/nios2.c: Likewise.
25630 * config/nvptx/nvptx.c: Likewise.
25631 * config/pa/pa.c: Likewise.
25632 * config/pdp11/pdp11.c: Likewise.
25633 * config/rl78/rl78-c.c: Likewise.
25634 * config/rl78/rl78.c: Likewise.
25635 * config/rs6000/rs6000-c.c: Likewise.
25636 * config/rs6000/rs6000.c: Likewise.
25637 * config/rx/rx.c: Likewise.
25638 * config/s390/s390-c.c: Likewise.
25639 * config/s390/s390.c: Likewise.
25640 * config/sh/sh-c.c: Likewise.
25641 * config/sh/sh-mem.cc: Likewise.
25642 * config/sh/sh.c: Likewise.
25643 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25644 * config/sh/sh_treg_combine.cc: Likewise.
25645 * config/sol2-c.c: Likewise.
25646 * config/sol2-cxx.c: Likewise.
25647 * config/sol2-stubs.c: Likewise.
25648 * config/sol2.c: Likewise.
25649 * config/sparc/sparc-c.c: Likewise.
25650 * config/sparc/sparc.c: Likewise.
25651 * config/spu/spu-c.c: Likewise.
25652 * config/spu/spu.c: Likewise.
25653 * config/stormy16/stormy16.c: Likewise.
25654 * config/tilegx/mul-tables.c: Likewise.
25655 * config/tilegx/tilegx-c.c: Likewise.
25656 * config/tilegx/tilegx.c: Likewise.
25657 * config/tilepro/mul-tables.c: Likewise.
25658 * config/tilepro/tilepro-c.c: Likewise.
25659 * config/tilepro/tilepro.c: Likewise.
25660 * config/v850/v850-c.c: Likewise.
25661 * config/v850/v850.c: Likewise.
25662 * config/vax/vax.c: Likewise.
25663 * config/visium/visium.c: Likewise.
25664 * config/vms/vms-c.c: Likewise.
25665 * config/vms/vms.c: Likewise.
25666 * config/vxworks.c: Likewise.
25667 * config/winnt-c.c: Likewise.
25668 * config/xtensa/xtensa.c: Likewise.
25669 * common/config/bfin/bfin-common.c: Likewise.
25671 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
25673 * tree.h (tree_code_for_canonical_type_merging): New function.
25674 * tree.c (gimple_canonical_types_compatible_p): Use
25675 tree_code_for_canonical_type_merging..
25677 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25681 * doc/tm.texi: Regenerate.
25682 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
25683 * target.def (TARGET_RELAXED_ORDERING): Likewise.
25684 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
25685 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
25686 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
25687 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
25688 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
25689 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
25690 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
25692 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25694 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
25695 register fma steering pass.
25696 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
25697 AARCH64_TUNE_FMA_STEERING.
25699 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
25701 * tree.c (verify_type_variant): Verify that type and variant is
25703 (gimple_canonical_types_compatible_p): Look for main variants.
25705 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
25707 * config.gcc (powerpc*-*-*): Add support for a new configure
25708 option --with-advance-toolchain=<xxx> which overrides using the
25709 default header files, libraries and dynamic linker.
25711 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
25712 specs to support the configure --with-advance-toolchain=<xxx>
25714 (INCLUDE_EXTRA_SPEC): Likewise.
25715 (LINK_OS_EXTRA_SPEC32): Likewise.
25716 (LINK_OK_EXTRA_SPEC64): Likewise.
25717 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
25718 (DYNAMIC_LINKER_PREFIX): Likewise.
25719 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
25721 (GLIBC_DYNAMIC_LINKER32): Likewise.
25722 (GLIBC_DYNAMIC_LINKER64): Likewise.
25723 (LINK_OS_LINUX_SPEC32): Likewise.
25724 (LINK_OS_LINUX_SPEC64): Likewise.
25726 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
25727 configuration option.
25729 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
25732 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
25733 to determine current function ABI.
25734 (ix86_function_value_regno_p): Ditto.
25736 2015-06-03 Martin Liska <mliska@suse.cz>
25738 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
25739 * bitmap.h (struct bitmap_usage): Likewise.
25740 * ggc-common.c (struct ggc_usage): Likewise.
25741 * mem-stats.h (struct mem_location): Likewise.
25742 (struct mem_usage): Likewise.
25743 * vec.c (struct vec_usage): Likewise.
25745 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
25747 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
25750 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
25752 * doc/plugins.texi (enum plugin_event): New event.
25753 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
25754 and PLUGIN_FINISH_FUNCTION.
25755 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
25756 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
25758 2015-06-03 Richard Biener <rguenther@suse.de>
25760 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
25761 compute GROUP_GAP for the first element.
25762 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
25765 2015-06-03 Nick Clifton <nickc@redhat.com>
25767 * config/rl78/rl78-real.md: Add peepholes to avoid a register
25768 copy when calling a function.
25769 * config/rl78/rl78.c (need_to_save): Do not push the frame
25770 pointer in an interrupt handler prologue if it is never used.
25772 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25774 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
25776 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
25778 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
25779 reference when cloning alias node.
25781 2015-06-03 Martin Liska <mliska@suse.cz>
25783 * alloc-pool.h (struct pool_usage): Correct space padding.
25784 * ggc-page.c (ggc_print_statistics): Align columns in a report.
25785 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
25786 * tree.c (dump_tree_statistics): Align columns in a report.
25788 2015-06-03 Martin Liska <mliska@suse.cz>
25790 * alloc-pool.c (allocate_pool_descriptor): Remove.
25791 (struct pool_output_info): Likewise.
25792 (print_alloc_pool_statistics): Likewise.
25793 (dump_alloc_pool_statistics): Likewise.
25794 * alloc-pool.h (struct pool_usage): New struct.
25795 (pool_allocator::initialize): Change usage of memory statistics
25796 to a new interface.
25797 (pool_allocator::release): Likewise.
25798 (pool_allocator::allocate): Likewise.
25799 (pool_allocator::remove): Likewise.
25800 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
25801 for a pool allocator.
25802 * mem-stats.h (struct mem_location): Add new ctor.
25803 (struct mem_usage): Add counter for number of
25805 (mem_alloc_description::register_descriptor): New overload of
25806 * mem-stats.h (mem_location::to_string): New function.
25807 * bitmap.h (struct bitmap_usage): Use this new function.
25808 * ggc-common.c (struct ggc_usage): Likewise.
25811 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
25813 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
25814 of GCC_INSN_FLAGS_H block.
25816 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
25818 * explow.c (plus_constant): Update check after force_const_mem call
25819 to see if the value returned is not a NULL_RTX.
25821 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
25823 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
25824 remove instumentation thunks calling reachable functions.
25825 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
25826 * lto/lto-partition.c (privatize_symbol_name_1): New.
25827 (privatize_symbol_name): Privatize both decl and orig_decl
25828 names for instrumented functions.
25829 * cgraph.c (cgraph_node::verify_node): Add transparent
25830 alias chain check for instrumented node.
25832 2015-06-03 Marek Polacek <polacek@redhat.com>
25836 * tree.c (attribute_value_equal): Handle attribute format.
25837 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
25839 2015-06-03 Richard Biener <rguenther@suse.de>
25841 PR tree-optimization/63916
25842 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
25843 Forward-propagate non-invariant addresses by splicing their
25844 reference ops if the result isn't going to be used by PRE.
25845 (vn_reference_lookup_3): Remove pointless assert.
25847 2015-06-03 Richard Biener <rguenther@suse.de>
25849 PR tree-optimization/66375
25850 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
25851 add to the evolution before following SSA edges.
25853 2015-06-03 Bin Cheng <bin.cheng@arm.com>
25855 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
25856 (dump_use, dump_cand, find_induction_variables): Pass new argument
25858 (record_use): Preserve the ssa name information in IV.
25860 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
25862 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
25864 (add_mode_tests): Don't add mode tests if the predicate only
25865 accepts scalar constant integers. Otherwise, allow the mode
25866 of "op" to be VOIDmode if the predicate does accept such integers.
25868 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
25871 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
25872 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
25873 (aarch64_secondary_reload): Likewise
25874 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
25876 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
25879 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
25880 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25883 * cprop.c (try_replace_reg): Check cost of constants before propagating.
25885 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25887 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
25888 provide access to the IBM extended double floating point mode if
25889 long double is IEEE 128-bit floating point.
25890 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
25891 point if long double is the IBM extended double type.
25893 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
25894 enable adding IEEE 128-bit floating point support.
25895 (-mfloat128-software): Likewise.
25896 (-mfloat128-sw): Likewise.
25898 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
25899 128-bit floating point types to occupy any register if
25900 -mlong-double-64. Do not allow use of IFmode/KFmode unless
25901 -mfloat128-software is enabled.
25902 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
25904 (rs6000_option_override_internal): Add -mfloat128-* support.
25905 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
25907 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
25908 and float128 type nodes.
25909 (ieee128_float_type_node): Likewise.
25910 (ibm128_float_type_node): Likewise.
25912 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25915 * config/aarch64/geniterators.sh: Rewrite in awk.
25917 2015-06-02 Martin Liska <mliska@suse.cz>
25919 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
25920 values to avoid -Wmaybe-uninitialized errors.
25922 2015-06-02 Richard Biener <rguenther@suse.de>
25925 * dwarf2out.c (lookup_context_die): New function.
25926 (resolve_addr): Avoid forcing a full DIE for the
25927 target of a DW_TAG_GNU_call_site during late compilation.
25928 Instead create a stub DIE without a type if we have a
25929 context DIE present.
25931 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
25933 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
25935 2015-06-02 Bin Cheng <bin.cheng@arm.com>
25937 PR tree-optimization/48052
25938 * cfgloop.h (struct control_iv): New.
25939 (struct loop): New field control_ivs.
25940 * tree-ssa-loop-niter.c : Include "stor-layout.h".
25941 (number_of_iterations_lt): Set no_overflow information.
25942 (number_of_iterations_exit): Init control iv in niter struct.
25943 (record_control_iv): New.
25944 (estimate_numbers_of_iterations_loop): Call record_control_iv.
25945 (loop_exits_before_overflow): New. Interface factored out of
25946 scev_probably_wraps_p.
25947 (scev_probably_wraps_p): Factor loop niter related code into
25948 loop_exits_before_overflow.
25949 (free_numbers_of_iterations_estimates_loop): Free control ivs.
25950 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
25952 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
25954 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
25955 the target doesn't belong to the current function.
25957 2015-06-02 Marek Polacek <polacek@redhat.com>
25959 PR middle-end/66345
25960 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
25961 get_maxval_strlen does not produce an INTEGER_CST.
25963 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
25965 * config/arc/constraints.md: Use lower-case names in match_code.
25966 * config/mmix/constraints.md: Likewise.
25968 2015-06-02 Richard Biener <rguenther@suse.de>
25970 PR tree-optimization/65961
25971 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
25972 check and clarify dump message.
25973 (vect_build_slp_tree): If all children are built up from scalars
25974 build up the parent from scalars instead.
25975 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
25977 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
25980 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
25981 instead of print ... .
25983 2015-06-02 Alan Modra <amodra@gmail.com>
25985 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
25988 2015-06-02 Bin Cheng <bin.cheng@arm.com>
25990 PR tree-optimization/52563
25991 PR tree-optimization/62173
25992 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
25993 (alloc_iv, set_iv): New parameter.
25994 (determine_biv_step): Delete.
25995 (find_bivs): Inline original determine_biv_step. Pass new
25996 argument to set_iv.
25997 (idx_find_step): Use no_overflow information for conversion.
25998 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
25999 resolve_mixers handle folded_casts.
26000 (instantiate_scev_name): Change bool parameter to bool pointer.
26001 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
26002 (instantiate_array_ref, instantiate_scev_not): Ditto.
26003 (instantiate_scev_3, instantiate_scev_2): Ditto.
26004 (instantiate_scev_1, instantiate_scev_r): Ditto.
26005 (instantiate_scev_convert, ): Change parameter. Pass argument
26006 to chrec_convert_aggressive.
26007 (instantiate_scev): Change argument.
26008 (resolve_mixers): New parameter and set it.
26009 (scev_const_prop): New argument.
26010 * tree-scalar-evolution.h (resolve_mixers): New parameter.
26011 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
26013 (chrec_convert): New parameter. Move definition below.
26014 (chrec_convert_aggressive): New parameter and set it. Call
26015 convert_affine_scev.
26016 * tree-chrec.h (chrec_convert): New parameter.
26017 (chrec_convert_aggressive): Ditto.
26019 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
26021 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
26022 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
26023 the LHS of a no-return call if its type has variable size.
26024 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
26025 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
26027 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
26029 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
26030 * config.in: Regenerate.
26032 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
26034 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
26035 consecutive accesses within outer-loop with force_vectorize
26036 for references with zero step in inner-loop.
26038 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
26040 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
26041 rather than from gcc/build directory.
26043 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
26046 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
26047 for __sync memory models, emit initial loads and final barriers as
26050 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
26053 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
26054 (aarch64_split_atomic_op): Check for __sync memory models, emit
26055 appropriate initial loads and final barriers.
26057 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
26059 * Makefile.in: Fix gcov dependencies that should
26060 not point to a build folder.
26062 2015-06-01 Richard Biener <rguenther@suse.de>
26065 2015-05-29 Richard Biener <rguenther@suse.de>
26067 PR tree-optimization/66314
26068 * tree-ssa-threadupdate.c (create_block_for_threading): Add
26069 parameter that says which loop the new block belongs to.
26070 (ssa_create_duplicates): Blocks duplicated for the threaded
26071 path belong to the loop of the thread destination.
26073 2015-06-01 Martin Liska <mliska@suse.cz>
26075 * sched-deps.c: Include pool-alloc.h before
26076 cselib.h header file is included.
26078 2015-06-01 Richard Biener <rguenther@suse.de>
26080 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
26083 2015-06-01 Martin Liska <mliska@suse.cz>
26085 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
26086 a function local variable.
26088 2015-06-01 Martin Liska <mliska@suse.cz>
26090 * alloc-pool.c (create_alloc_pool): Remove.
26091 (empty_alloc_pool): Likewise.
26092 (free_alloc_pool): Likewise.
26093 (free_alloc_pool_if_empty): Likewise.
26094 (pool_alloc): Likewise.
26095 (pool_free): Likewise.
26096 * alloc-pool.h: Remove old declarations.
26098 2015-06-01 Martin Liska <mliska@suse.cz>
26100 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
26101 (ira_create_object): Likewise.
26102 (ira_create_allocno): Likewise.
26103 (ira_create_live_range): Likewise.
26104 (copy_live_range): Likewise.
26105 (ira_finish_live_range): Likewise.
26106 (ira_free_allocno_costs): Likewise.
26107 (finish_allocno): Likewise.
26108 (finish_allocnos): Likewise.
26109 (initiate_prefs): Likewise.
26110 (ira_create_pref): Likewise.
26111 (finish_pref): Likewise.
26112 (finish_prefs): Likewise.
26113 (initiate_copies): Likewise.
26114 (ira_create_copy): Likewise.
26115 (finish_copy): Likewise.
26116 (finish_copies): Likewise.
26117 (finish_prefs): Likewise.
26119 2015-06-01 Martin Liska <mliska@suse.cz>
26121 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
26122 (allocate_and_init_ipcp_value): Likewise.
26123 (ipcp_lattice::add_value): Likewise.
26124 (merge_agg_lats_step): Likewise.
26125 (ipcp_driver): Likewise.
26126 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
26127 (ipa_free_all_structures_after_iinln): Likewise.
26128 * ipa-prop.h: Likewise.
26130 2015-06-01 Martin Liska <mliska@suse.cz>
26132 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
26134 (set_hint_predicate): Likewise.
26135 (inline_summary_alloc): Likewise.
26136 (reset_inline_edge_summary): Likewise.
26137 (reset_inline_summary): Likewise.
26138 (set_cond_stmt_execution_predicate): Likewise.
26139 (set_switch_stmt_execution_predicate): Likewise.
26140 (compute_bb_predicates): Likewise.
26141 (estimate_function_body_sizes): Likewise.
26142 (inline_free_summary): Likewise.
26144 2015-06-01 Martin Liska <mliska@suse.cz>
26146 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
26147 (ipa_edge_duplication_hook): Likewise.
26148 (ipa_free_all_structures_after_ipa_cp): Likewise.
26149 (ipa_free_all_structures_after_iinln): Likewise.
26151 2015-06-01 Martin Liska <mliska@suse.cz>
26153 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
26154 (ipa_profile_generate_summary): Likewise.
26155 (ipa_profile_read_summary): Likewise.
26156 (ipa_profile): Likewise.
26158 2015-06-01 Martin Liska <mliska@suse.cz>
26160 * tree-ssa-structalias.c (new_var_info): Use new type-based
26162 (new_constraint): Likewise.
26163 (init_alias_vars): Likewise.
26164 (delete_points_to_sets): Likewise.
26166 2015-06-01 Martin Liska <mliska@suse.cz>
26168 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
26169 (free_strinfo): Likewise.
26170 (pass_strlen::execute): Likewise.
26172 2015-06-01 Martin Liska <mliska@suse.cz>
26174 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
26176 (vn_reference_insert_pieces): Likewise.
26177 (vn_phi_insert): Likewise.
26178 (visit_reference_op_call): Likewise.
26179 (copy_phi): Likewise.
26180 (copy_reference): Likewise.
26181 (process_scc): Likewise.
26182 (allocate_vn_table): Likewise.
26183 (free_vn_table): Likewise.
26185 2015-06-01 Martin Liska <mliska@suse.cz>
26187 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
26189 (add_repeat_to_ops_vec): Likewise.
26190 (get_ops): Likewise.
26191 (maybe_optimize_range_tests): Likewise.
26192 (init_reassoc): Likewise.
26193 (fini_reassoc): Likewise.
26195 2015-06-01 Martin Liska <mliska@suse.cz>
26197 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
26199 (bitmap_set_new): Likewise.
26200 (get_or_alloc_expr_for_constant): Likewise.
26201 (get_or_alloc_expr_for): Likewise.
26202 (phi_translate_1): Likewise.
26203 (compute_avail): Likewise.
26204 (init_pre): Likewise.
26205 (fini_pre): Likewise.
26207 2015-06-01 Martin Liska <mliska@suse.cz>
26209 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
26210 (delete_dep_node): Likewise.
26211 (create_deps_list): Likewise.
26212 (free_deps_list): Likewise.
26213 (sched_deps_init): Likewise.
26214 (sched_deps_finish): Likewise.
26216 2015-06-01 Martin Liska <mliska@suse.cz>
26218 * regcprop.c (free_debug_insn_changes): Use new type-based
26220 (replace_oldest_value_reg): Likewise.
26221 (pass_cprop_hardreg::execute): Likewise.
26223 2015-06-01 Martin Liska <mliska@suse.cz>
26225 * ira-build.c (initiate_cost_vectors): Use new type-based
26227 (ira_allocate_cost_vector): Likewise.
26228 (ira_free_cost_vector): Likewise.
26229 (finish_cost_vectors): Likewise.
26231 2015-06-01 Martin Liska <mliska@suse.cz>
26233 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
26235 (free_sched_pools): Likewise.
26236 * sel-sched-ir.h (_list_alloc): Likewise.
26237 (_list_remove): Likewise.
26239 2015-06-01 Martin Liska <mliska@suse.cz>
26241 * stmt.c (add_case_node): Use new type-based pool allocator.
26242 (expand_case): Likewise.
26243 (expand_sjlj_dispatch_table): Likewise.
26245 2015-06-01 Martin Liska <mliska@suse.cz>
26247 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
26248 (free_bb): Likewise.
26249 (pass_cse_reciprocals::execute): Likewise.
26251 2015-06-01 Martin Liska <mliska@suse.cz>
26253 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
26254 (sra_deinitialize) Likewise.
26255 (create_access_1) Likewise.
26256 (build_accesses_from_assign) Likewise.
26257 (create_artificial_child_access) Likewise.
26259 2015-06-01 Martin Liska <mliska@suse.cz>
26261 * dse.c (get_group_info):Use new type-based pool allocator.
26262 (dse_step0) Likewise.
26263 (free_store_info) Likewise.
26264 (delete_dead_store_insn) Likewise.
26265 (free_read_records) Likewise.
26266 (record_store) Likewise.
26267 (replace_read) Likewise.
26268 (check_mem_read_rtx) Likewise.
26269 (scan_insn) Likewise.
26270 (dse_step1) Likewise.
26271 (dse_step7) Likewise.
26273 2015-06-01 Martin Liska <mliska@suse.cz>
26275 * df-scan.c (struct df_scan_problem_data):Use new type-based
26277 (df_scan_free_internal) Likewise.
26278 (df_scan_alloc) Likewise.
26279 (df_grow_reg_info) Likewise.
26280 (df_free_ref) Likewise.
26281 (df_insn_create_insn_record) Likewise.
26282 (df_mw_hardreg_chain_delete) Likewise.
26283 (df_insn_info_delete) Likewise.
26284 (df_free_collection_rec) Likewise.
26285 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
26286 (df_sort_and_compress_mws) Likewise.
26287 (df_ref_create_structure) Likewise.
26288 (df_ref_record) Likewise.
26290 2015-06-01 Martin Liska <mliska@suse.cz>
26292 * df-problems.c (df_chain_create):Use new type-based pool allocator.
26293 (df_chain_unlink_1) Likewise.
26294 (df_chain_unlink) Likewise.
26295 (df_chain_remove_problem) Likewise.
26296 (df_chain_alloc) Likewise.
26297 (df_chain_free) Likewise.
26298 * df.h (struct dataflow) Likewise.
26300 2015-06-01 Martin Liska <mliska@suse.cz>
26302 * cselib.c (new_elt_list):Use new type-based pool allocator.
26303 (new_elt_loc_list) Likewise.
26304 (unchain_one_elt_list) Likewise.
26305 (unchain_one_elt_loc_list) Likewise.
26306 (unchain_one_value) Likewise.
26307 (new_cselib_val) Likewise.
26308 (cselib_init) Likewise.
26309 (cselib_finish) Likewise.
26311 2015-06-01 Martin Liska <mliska@suse.cz>
26313 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
26314 (sh_reorg) Likewise.
26316 2015-06-01 Martin Liska <mliska@suse.cz>
26318 * cfg.c (initialize_original_copy_tables):Use new type-based
26320 (free_original_copy_tables) Likewise.
26321 (copy_original_table_clear) Likewise.
26322 (copy_original_table_set) Likewise.
26324 2015-06-01 Martin Liska <mliska@suse.cz>
26326 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
26328 (asan_mem_ref_new) Likewise.
26329 (free_mem_ref_resources) Likewise.
26331 2015-06-01 Martin Liska <mliska@suse.cz>
26333 * var-tracking.c (variable_htab_free):Use new type-based
26335 (attrs_list_clear) Likewise.
26336 (attrs_list_insert) Likewise.
26337 (attrs_list_copy) Likewise.
26338 (shared_hash_unshare) Likewise.
26339 (shared_hash_destroy) Likewise.
26340 (unshare_variable) Likewise.
26341 (var_reg_delete_and_set) Likewise.
26342 (var_reg_delete) Likewise.
26343 (var_regno_delete) Likewise.
26344 (drop_overlapping_mem_locs) Likewise.
26345 (variable_union) Likewise.
26346 (insert_into_intersection) Likewise.
26347 (canonicalize_values_star) Likewise.
26348 (variable_merge_over_cur) Likewise.
26349 (dataflow_set_merge) Likewise.
26350 (remove_duplicate_values) Likewise.
26351 (variable_post_merge_new_vals) Likewise.
26352 (dataflow_set_preserve_mem_locs) Likewise.
26353 (dataflow_set_remove_mem_locs) Likewise.
26354 (variable_from_dropped) Likewise.
26355 (variable_was_changed) Likewise.
26356 (set_slot_part) Likewise.
26357 (clobber_slot_part) Likewise.
26358 (delete_slot_part) Likewise.
26359 (loc_exp_insert_dep) Likewise.
26360 (notify_dependents_of_changed_value) Likewise.
26361 (emit_notes_for_differences_1) Likewise.
26362 (vt_emit_notes) Likewise.
26363 (vt_initialize) Likewise.
26364 (vt_finalize) Likewise.
26366 2015-06-01 Martin Liska <mliska@suse.cz>
26368 * ira-color.c (init_update_cost_records):Use new type-based
26370 (get_update_cost_record) Likewise.
26371 (free_update_cost_record_list) Likewise.
26372 (finish_update_cost_records) Likewise.
26373 (initiate_cost_update) Likewise.
26375 2015-06-01 Martin Liska <mliska@suse.cz>
26377 * lra.c (init_insn_regs): Use new type-based pool allocator.
26378 (new_insn_reg) Likewise.
26379 (free_insn_reg) Likewise.
26380 (free_insn_regs) Likewise.
26381 (finish_insn_regs) Likewise.
26382 (init_insn_recog_data) Likewise.
26383 (init_reg_info) Likewise.
26384 (finish_reg_info) Likewise.
26385 (lra_free_copies) Likewise.
26386 (lra_create_copy) Likewise.
26387 (invalidate_insn_data_regno_info) Likewise.
26389 2015-06-01 Martin Liska <mliska@suse.cz>
26391 * lra-lives.c (free_live_range): Use new type-based pool allocator.
26392 (free_live_range_list) Likewise.
26393 (create_live_range) Likewise.
26394 (copy_live_range) Likewise.
26395 (lra_merge_live_ranges) Likewise.
26396 (remove_some_program_points_and_update_live_ranges) Likewise.
26397 (lra_live_ranges_init) Likewise.
26398 (lra_live_ranges_finish) Likewise.
26400 2015-06-01 Martin Liska <mliska@suse.cz>
26402 * et-forest.c (et_new_occ): Use new type-based pool allocator.
26403 (et_new_tree): Likewise.
26404 (et_free_tree): Likewise.
26405 (et_free_tree_force): Likewise.
26406 (et_free_pools): Likewise.
26407 (et_split): Likewise.
26409 2015-06-01 Martin Liska <mliska@suse.cz>
26411 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
26413 * alloc-pool.h (pool_allocator::pool_allocator): New function.
26414 (pool_allocator::release): Likewise.
26415 (inline pool_allocator::release_if_empty): Likewise.
26416 (inline pool_allocator::~pool_allocator): Likewise.
26417 (pool_allocator::allocate): Likewise.
26418 (pool_allocator::remove): Likewise.
26420 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26422 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
26425 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26427 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
26429 * config/arm/arm.c (arm_print_tune_info): Likewise.
26430 (arm_macro_fusion_p): Likewise.
26431 (arm_macro_fusion_pair_p): Likewise.
26433 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26435 * config/aarch64/aarch64-protos.h (tune_params): Rename
26436 fuseable_ops to fusible_ops.
26437 * config/aarch64/aarch64.c (generic_tunings): Rename
26438 fuseable_ops to fusible_ops.
26439 (cortexa53_tunings): Likewise.
26440 (cortexa57_tunings): Likewise.
26441 (thunderx_tunings): Likewise.
26442 (xgene1_tunings): Likewise.
26443 (aarch64_macro_fusion_p): Likewise.
26444 (aarch64_macro_fusion_pair_p): Likewise.
26446 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
26448 * config/s390/driver-native.c: New file.
26449 * config/s390/x-native: New file.
26450 * config.host: Add new files for s390.
26451 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
26453 * config.gcc: Likewise.
26454 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
26455 * config/s390/s390-opts.h (enum processor_type): Ditto.
26456 * config/s390/s390.c (s390_option_override): Catch unhandled
26459 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
26462 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
26463 redirection for instrumented calls.
26464 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
26465 (append_compiler_options): Append -fcheck-pointer-bounds.
26466 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
26467 (chkp_redirect_edge): New.
26468 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
26469 (chkp_redirect_edge): New.
26471 2015-06-01 Richard Biener <rguenther@suse.de>
26473 PR tree-optimization/66280
26474 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
26477 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26479 * config/aarch64/aarch64.md
26480 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
26483 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
26485 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
26486 Remove obsolete kludge.
26488 2015-06-01 Richard Biener <rguenther@suse.de>
26490 * tree-ssa-reassoc.c (get_rank): Simplify.
26492 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
26494 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
26495 * configure: Regenerated.
26497 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
26499 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
26500 issue (add space between string literal and macro).
26501 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
26503 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
26505 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
26506 implict or explicit -fPIE or -fpie.
26508 2015-05-30 Mike Frysinger <vapier@gentoo.org>
26510 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
26512 2015-05-28 DJ Delorie <dj@redhat.com>
26514 * expmed.c (extract_bit_field_1): Avoid clobbering a
26515 yet-to-be-used base/index register.
26517 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
26519 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
26520 (alias_stats): Add num_universal.
26521 (alias_set_subset_of): Special case pointers; be ready for NULL
26523 (alias_sets_conflict_p): Special case pointers; be ready for NULL
26525 (init_alias_set_entry): Break out from ...
26526 (record_alias_subset): ... here; propagate new fields;
26527 allocate children only when really needed.
26528 (get_alias_set): Do less generous pointer globbing.
26529 (dump_alias_stats_in_alias_c): Update statistics.
26531 2015-05-30 Alan Modra <amodra@gmail.com>
26533 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
26534 correct block for use of r12.
26535 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
26537 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26540 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
26543 2015-05-29 Jakub Jelinek <jakub@redhat.com>
26545 PR tree-optimization/66142
26546 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
26547 virtual phis that feed themselves.
26549 2015-05-29 Richard Biener <rguenther@suse.de>
26551 PR tree-optimization/66314
26552 * tree-ssa-threadupdate.c (create_block_for_threading): Add
26553 parameter that says which loop the new block belongs to.
26554 (ssa_create_duplicates): Blocks duplicated for the threaded
26555 path belong to the loop of the thread destination.
26557 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26559 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
26560 to cleanup-saved-temps.
26561 * doc/sourcebuild.texi (Clean up generated test files): Expand
26563 (dg-keep-saved-temps): Document new proc.
26564 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
26565 cleanup-saved-temps): Remove.
26567 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
26569 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
26570 gcc_AC_CHECK_DECLS.
26571 * configure: Regenerate.
26573 2015-05-28 Mike Frysinger <vapier@gentoo.org>
26575 * config/nios2/linux.h (CPP_SPEC): Define.
26577 2015-05-28 Mike Frysinger <vapier@gentoo.org>
26579 * config/microblaze/linux.h (CPP_SPEC): Define.
26581 2015-05-28 Mike Frysinger <vapier@gentoo.org>
26583 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
26584 -pthread is specified.
26586 2015-05-28 Richard Biener <rguenther@suse.de>
26588 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
26589 (vect_fixup_scalar_cycles_with_patterns): Likewise.
26590 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
26591 after pattern recog.
26592 (vect_create_epilog_for_reduction): Properly handle reductions
26594 (vectorizable_reduction): Likewise.
26595 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
26597 (vect_get_constant_vectors): Create the correct number of
26598 initial values for reductions.
26599 (vect_schedule_slp_instance): Handle reduction chains that are
26600 type changing properly.
26601 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
26603 2015-05-28 Richard Biener <rguenther@suse.de>
26605 PR tree-optimization/66142
26606 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
26607 values better in memcpy destination handling. Handle non-aliasing
26610 2015-05-28 Lawrence Velázquez <vq@larryv.me>
26613 * config/darwin-c.c (version_components): New global enum.
26614 (parse_version, version_as_legacy_macro)
26615 (version_as_modern_macro, macosx_version_as_macro): New functions.
26616 (version_as_macro): Remove.
26617 (darwin_cpp_builtins): Use new function.
26619 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
26621 * builtins.c (expand_builtin_acc_on_device): Mark parameters
26622 with ATTRIBUTE_UNUSED.
26624 2015-05-28 Julian Brown <julian@codesourcery.com>
26628 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
26629 sequence for !ACCEL_COMPILER.
26631 2015-05-28 Nick Clifton <nickc@redhat.com>
26633 * config/rx/rx.c (push_regs): New function. Extracts code from...
26634 (rx_expand_prologue): ... here. Use push_regs to push even small
26635 spans of registers.
26636 (pop_regs): New function.
26637 (rx_expand_epilogue): Use pop_regs to pop even small spans of
26640 2015-05-28 Richard Biener <rguenther@suse.de>
26642 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
26644 (SLP_INSTANCE_BODY_COST_VEC): Remove.
26645 (vect_update_slp_costs_according_to_vf): Likewise.
26646 (vect_slp_analyze_operations): Update prototype.
26647 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
26648 vect_update_slp_costs_according_to_vf, adjust.
26649 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
26650 (vect_analyze_slp_cost_1): Likewise.
26651 (vect_analyze_slp_cost): Likewise. Properly deal with
26652 widening reduction ops. Commit body costs.
26653 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
26654 cost for loops from here.
26655 (vect_slp_analyze_operations): But do it from here when
26656 the vectorization factor is known and stmts are analyzed.
26657 (vect_bb_vectorization_profitable_p): Simplify.
26658 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
26659 (vect_update_slp_costs_according_to_vf): Remove.
26661 2015-05-27 Magnus Granberg <zorry@gentoo.org>
26662 H.J. Lu <hongjiu.lu@intel.com>
26664 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
26665 (BUILD_CFLAGS): Likewise.
26666 (BUILD_CXXFLAGS): Likewise.
26667 (LINKER): Add @NO_PIE_FLAG@.
26668 (BUILD_LDFLAGS): Likewise.
26669 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
26670 --enable-default-pie.
26671 * common.opt (fPIE): Initialize to -1.
26673 (no-pie): New option.
26674 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
26675 * configure.ac: Add --enable-default-pie.
26676 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
26677 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
26678 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
26679 * gcc.c (NO_PIE_SPEC): New.
26680 (PIE_SPEC): Likewise.
26681 (NO_FPIE1_SPEC): Likewise.
26682 (FPIE1_SPEC): Likewise.
26683 (NO_FPIE2_SPEC): Likewise.
26684 (FPIE2_SPEC): Likewise.
26685 (NO_FPIE2_SPEC): Likewise.
26686 (FPIE_SPEC): Likewise.
26687 (NO_FPIE_SPEC): Likewise.
26688 (NO_FPIC1_SPEC): Likewise.
26689 (FPIC1_SPEC): Likewise.
26690 (NO_FPIC2_SPEC): Likewise.
26691 (FPIC2_SPEC): Likewise.
26692 (NO_FPIC2_SPEC): Likewise.
26693 (FPIC_SPEC): Likewise.
26694 (NO_FPIC_SPEC): Likewise.
26695 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
26696 (FPIE1_OR_FPIC1_SPEC): Likewise.
26697 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
26698 (FPIE2_OR_FPIC2_SPEC): Likewise.
26699 (NO_FPIE_AND_FPIC_SPEC): Likewise.
26700 (FPIE_OR_FPIC_SPEC): Likewise.
26701 (LD_PIE_SPEC): Likewise.
26702 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
26703 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
26704 * config/darwin.h (PIE_SPEC): Renamed to ...
26705 (DARWIN_PIE_SPEC): This.
26706 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
26707 * config/darwin9.h (PIE_SPEC): Renamed to ...
26708 (DARWIN_PIE_SPEC): This.
26709 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
26710 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
26711 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
26712 FPIE2_OR_FPIC2_SPEC.
26713 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
26714 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
26715 * config/sol2.h (ASM_PIC_SPEC): Likewise.
26716 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26717 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26718 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26719 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
26720 * config/m32r/m32r.h (ASM_SPEC): Likewise.
26721 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
26722 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26723 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
26724 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
26725 * config/sparc/linux.h (ASM_SPEC): Likewise.
26726 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26727 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
26728 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
26729 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26730 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
26731 * config/sparc/sparc.h (ASM_SPEC): Likewise.
26732 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
26733 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
26734 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
26735 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
26736 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
26737 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
26738 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
26739 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
26740 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
26741 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
26742 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
26743 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
26744 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26745 * config/vax/linux.h (ASM_SPEC): Likewise.
26746 * doc/install.texi: Document --enable-default-pie.
26747 * doc/invoke.texi: Document -no-pie.
26748 * config.in: Regenerated.
26749 * configure: Likewise.
26751 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26753 PR rtl-optimization/66168
26754 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
26755 can_move_invariant_reg.
26757 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
26760 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
26761 REG_EQUAL note when doing insert.
26763 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
26764 instead of "%d" for 'o' operand.
26766 2015-05-27 Nathan Sidwell <nathan@acm.org>
26769 * tree.c (build_pointer_type_for_mode): Canonical type does not
26770 inherit can_alias_all.
26771 (build_reference_type_for_mode): Likewise.
26773 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
26775 * expr.h (array_at_struct_end_p): Move to...
26776 (array_ref_element_size): Likewise.
26777 (component_ref_field_offset): Likewise.
26778 * tree.h (array_ref_element_size): ...here.
26779 (array_at_struct_end_p): Likewise.
26780 (component_ref_field_offset): Likewise.
26781 * expr.c (array_ref_element_size): Move to...
26782 (array_ref_low_bound): Likewise.
26783 (array_at_struct_end_p): Likewise.
26784 (array_ref_up_bound): Likewise.
26785 (component_ref_field_offset): Likewise.
26786 * tree.c (array_ref_element_size): ...here.
26787 (array_ref_low_bound): Likewise.
26788 (array_ref_up_bound): Likewise.
26789 (array_at_struct_end_p): Likewise.
26790 (component_ref_field_offset): Likewise.
26792 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
26793 Szabolcs Nagy <szabolcs.nagy@arm.com>
26795 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
26797 2015-05-27 Jason Merrill <jason@redhat.com>
26800 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
26801 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
26802 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
26804 2015-05-22 Aditya Kumar <hiraditya@msn.com>
26806 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
26809 * statistics.c (statistics_fini_pass): Print pass name.
26811 2015-05-27 Richard Biener <rguenther@suse.de>
26813 PR tree-optimization/66272
26815 2014-08-15 Richard Biener <rguenther@suse.de>
26817 PR tree-optimization/62031
26818 * tree-data-ref.c (dr_analyze_indices): Do not set
26819 DR_UNCONSTRAINED_BASE.
26820 (dr_may_alias_p): All indirect accesses have to go the
26821 formerly DR_UNCONSTRAINED_BASE path.
26822 * tree-data-ref.h (struct indices): Remove
26823 unconstrained_base member.
26824 (DR_UNCONSTRAINED_BASE): Remove.
26826 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
26828 * dwarf2out.c: Remove block_map.
26829 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
26830 (gen_lexical_block_die): Same.
26831 (dwarf2out_function_decl): Remove block_map use.
26832 (dwarf2out_c_finalize): Same.
26833 * tree-core.h (struct tree_block): Add die field.
26834 * tree.h (BLOCK_DIE): New.
26836 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26839 * expr.c (memory_load_overlap): New function.
26840 (emit_push_insn): When pushing partial args to the stack would
26841 clobber the register part load the overlapping part into a pseudo
26842 and put it into the hard reg after pushing. Change return type
26843 to bool. Add bool argument.
26844 * expr.h (emit_push_insn): Change return type to bool.
26846 * calls.c (expand_call): Cancel sibcall optimization when encountering
26847 partial argument on targets with ARGS_GROW_DOWNWARD and
26848 !STACK_GROWS_DOWNWARD.
26849 (emit_library_call_value_1): Update callsite of emit_push_insn.
26850 (store_one_arg): Likewise.
26852 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
26854 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
26856 2015-05-27 Martin Liska <mliska@suse.cz>
26858 * Makefile.in: Add additional dependencies related to memory report
26860 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
26861 * bitmap.c (struct bitmap_descriptor_d): Remove.
26862 (struct loc): Likewise.
26863 (struct bitmap_desc_hasher): Likewise.
26864 (bitmap_desc_hasher::hash): Likewise.
26865 (bitmap_desc_hasher::equal): Likewise.
26866 (get_bitmap_descriptor): Likewise.
26867 (bitmap_register): User new memory descriptor API.
26868 (register_overhead): Likewise.
26869 (bitmap_find_bit): Register nsearches and search_iter statistics.
26870 (struct bitmap_output_info): Remove.
26871 (print_statistics): Likewise.
26872 (dump_bitmap_statistics): Use new memory descriptor.
26873 * bitmap.h (struct bitmap_usage): New class.
26874 * genmatch.c: Extend header file inclusion.
26875 * genpreds.c: Likewise.
26876 * ggc-common.c (struct ggc_usage): New class.
26877 (struct ggc_loc_desc_hasher): Remove.
26878 (ggc_loc_desc_hasher::hash): Likewise.
26879 (ggc_loc_desc_hasher::equal): Likewise.
26880 (struct ggc_ptr_hash_entry): Likewise.
26881 (struct ptr_hash_hasher): Likewise.
26882 (ptr_hash_hasher::hash): Likewise.
26883 (ptr_hash_hasher::equal): Likewise.
26884 (make_loc_descriptor): Likewise.
26885 (ggc_prune_ptr): Likewise.
26886 (dump_ggc_loc_statistics): Use new memory descriptor.
26887 (ggc_record_overhead): Likewise.
26888 (ggc_free_overhead): Likewise.
26889 (final_cmp_statistic): Remove.
26890 (cmp_statistic): Likewise.
26891 (ggc_add_statistics): Liekwise.
26892 (ggc_prune_overhead_list): Likewise.
26893 * hash-map-traits.h: New file.
26894 * hash-map.h (struct default_hashmap_traits): Move the traits to a
26895 separate header file.
26896 * hash-set.h: Pass memory statistics info to ctor.
26897 * hash-table.c (void dump_hash_table_loc_statistics): New function.
26898 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
26899 (hash_table::~hash_table): Register memory release operation.
26900 (hash_table::alloc_entries): Handle memory allocation operation.
26901 (hash_table::expand): Likewise.
26902 * inchash.c (iterative_hash_hashval_t): Move implementation to header
26904 (iterative_hash_host_wide_int): Likewise.
26905 * inchash.h (class hash): Likewise.
26906 * mem-stats-traits.h: New file.
26907 * mem-stats.h: New file.
26908 (mem_location): Add new class.
26909 (mem_usage): Likewise.
26910 (mem_alloc_description): Likewise.
26911 * sese.c: Add new header file inclusision.
26912 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
26914 * tree-sra.c: Add new header file inclusision.
26915 * vec.c (struct vec_descriptor): Remove.
26916 (hash_descriptor): Likewise.
26917 (struct vec_usage): Likewise.
26918 (struct ptr_hash_entry): Likewise.
26919 (hash_ptr): Likewise.
26920 (eq_ptr): Likewise.
26921 (vec_prefix::register_overhead): Use new memory descriptor API.
26922 (vec_prefix::release_overhead): Likewise.
26923 (add_statistics): Remove.
26924 (dump_vec_loc_statistics): Use new memory descriptor API.
26925 * vec.h (struct vec_prefix): Likewise.
26926 (va_heap::reserve): Likewise.
26927 (va_heap::release): Likewise.
26928 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
26930 2015-05-27 Richard Biener <rguenther@suse.de>
26932 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
26933 earlier and remove ??? comment.
26934 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
26935 and got called from loop analysis bail out. Always pass the SLP
26936 node to the vectorizable_* functions.
26937 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
26938 the premature SLP check here.
26939 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
26940 detected SLP stmts.
26941 (vect_detect_hybrid_slp_1): Likewise.
26943 2015-05-26 Jeff Law <law@redhat.com>
26945 * combine.c (find_split_point): Verify that the shift count is a
26946 constant when choosing (plus (ashift ...)) as a split point.
26948 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
26949 No functional changes.
26951 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
26953 * ipa-polymorphic-call.c
26954 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
26955 case when call target is already known.
26957 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
26960 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
26961 take into account the case that operands[1] and operands[2]
26962 are the same register.
26964 2015-05-26 Michael Matz <matz@suse.de>
26966 PR middle-end/66251
26968 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
26970 (vect_create_vectorized_demotion_stmts): Always set
26971 STMT_VINFO_VEC_STMT, also with SLP.
26972 (vectorizable_store): Handle strided group stores.
26974 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26977 * config/aarch64/aarch64.md
26978 (*adds_shift_imm_<mode>): New pattern.
26979 (*subs_shift_imm_<mode>): Likewise.
26980 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
26981 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
26982 (*add_uxt<mode>_shift2): Likewise.
26983 (*add_uxtsi_shift2_uxtw): Likewise.
26984 (*sub_uxt<mode>_shift2): Likewise.
26985 (*sub_uxtsi_shift2_uxtw): Likewise.
26987 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
26989 * config/rs6000/constraints.md (Y, U): Use match_test.
26991 2015-05-26 Christian Bruel <christian.bruel@st.com>
26994 * config/arm/arm.c (arm_option_check_internal)
26995 (arm_option_params_internal): Check opts->target_flags to set macros.
26996 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
26997 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
26998 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
26999 (builtin_define): Replaced with def_or_undef_macro.
27000 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27001 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
27002 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27003 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
27004 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
27005 (TARGET_ARM_FEATURE_LDREX_P)
27006 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
27007 * config/arm/arm-c.c (def_or_undef_macro): New function.
27008 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
27010 2015-05-26 Christian Bruel <christian.bruel@st.com>
27012 * c-common.h (builtin_define_with_int_value)
27013 (builtin_define_type_sizeof): Declare.
27014 * c-cppbuiltin.c (builtin_define_with_int_value)
27015 (builtin_define_type_sizeof): Externalize.
27016 (builtin_define_std): Cleanup declaration.
27017 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
27018 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
27019 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
27020 (builtin_define, builtin_assert): New macros.
27022 2015-05-26 Richard Biener <rguenther@suse.de>
27024 PR tree-optimization/66142
27025 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
27026 MEM_REFs for the same base address.
27028 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27031 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
27033 2015-05-26 Jason Merrill <jason@redhat.com>
27035 * configure.ac: Set CXXFLAGS for ISL test.
27036 * configure: Regenerate.
27038 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
27039 strstr and basename.
27040 * configure: Regenerate.
27042 2015-05-26 Richard Biener <rguenther@suse.de>
27044 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
27045 X % C -> X & (C - 1) for C being a power-of two to ...
27046 * match.pd: ... patterns.
27048 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
27050 * match.pd (swapped_tcc_comparison): New operator list.
27051 (-A CMP -B): New simplification.
27052 * fold-const.c (fold_comparison): Remove corresponding code.
27054 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
27056 * caller-save.c (init_caller_save): Base temporary register numbers
27057 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
27058 * cfgloopanal.c (init_set_costs): Likewise.
27059 * dojump.c (prefer_and_bit_test): Likewise.
27060 * expr.c (init_expr_target): Likewise.
27061 * ira.c (setup_prohibited_mode_move_regs): Likewise.
27062 * lower-subreg.c (init_lower_subreg): Likewise.
27063 * postreload.c (reload_cse_regs_1): Likewise.
27065 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
27067 * gensupport.h (compute_test_codes): Declare.
27068 * gensupport.c (compute_predicate_codes): Rename to...
27069 (compute_test_codes): ...this. Generalize error message.
27070 (process_define_predicate): Update accordingly.
27071 * genpreds.c (compute_maybe_allows): Delete.
27072 (add_constraint): Use compute_test_codes to determine whether
27073 something can accept a SUBREG, REG or MEM.
27075 2015-05-26 Torvald Riegel <triegel@redhat.com>
27077 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
27078 'memory model' to align with C++11; fix description of memory orders;
27081 2015-05-26 Richard Biener <rguenther@suse.de>
27083 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
27084 (vect_analyze_loop_operations): ... here. Remove slp parameter,
27085 detect whether we apply SLP. Remove call to
27086 vect_update_slp_costs_according_to_vf.
27087 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
27088 vect_update_slp_costs_according_to_vf from here. Dispatch
27089 to vect_slp_analyze_operations to analyze SLP stmts.
27090 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
27091 unused bb_vec_info parameter, adjust assert.
27092 (vect_slp_analyze_operations): Pass in the slp instance tree
27093 instead of bb_vec_info.
27094 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
27095 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
27097 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
27099 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
27100 Q_REGS. Expand comment.
27101 (REG_CLASS_NAMES): Ditto.
27102 (REG_CLASS_CONTENTS): Ditto.
27104 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
27107 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
27108 when LEGACY_INT_REGNO_P is processed.
27110 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
27112 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
27114 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
27116 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
27117 register if not marked dead/unused, before return.
27119 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27122 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
27123 is set; check for assembler name at LTO time.
27124 (type_in_anonymous_namespace): Remove hacks, check that all
27125 anonymous types are called "<anon>"
27126 (odr_type_p): Simplify; add check for "<anon>"
27127 (odr_subtypes_equivalent): Add odr_type_p check.
27128 * tree.c (need_assembler_name_p): Even anonymous namespace needs
27131 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27133 * ipa-utils.h (method_class_type): Remove.
27134 * cgraphunit.c (walk_polymorphic_call_targets): Use
27135 TYPE_METHOD_BASETYPE.
27136 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
27137 on main variants only.
27138 (method_class_type): Remove.
27139 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
27140 (build_type_inheritance_graph): Likewise.
27141 * ipa-icf.c (sem_function::equals_wpa): Likewise.
27142 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
27143 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
27145 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27147 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
27148 is_typedef_decl, typedef_variant_p): Constify.
27149 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
27150 is_typedef_decl, typedef_variant_p): Constify.
27152 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27154 * defaults.h (gen_tablejump): New function.
27155 (HAVE_tablejump): Add default value.
27157 * stmt.c: Likewise.
27159 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27161 * defaults.h (gen_store_multiple): New function.
27162 (HAVE_store_multiple): Add default value.
27163 * expr.c (move_block_from_reg): Adjust.
27165 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27167 * defaults.h (gen_load_multiple): New function.
27168 (HAVE_load_multiple): Add default value.
27169 * expr.c (move_block_to_reg): Adjust.
27171 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27173 * defaults.h (gen_mem_signal_fence): New function.
27174 (HAVE_mem_signal_fence): Add default value.
27175 * optabs.c: Adjust.
27177 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27179 * defaults.h (gen_memory_barrier): New function.
27180 (HAVE_memory_barrier): Add default value.
27181 * optabs.c: Adjust.
27183 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27185 * defaults.h (gen_mem_thread_fence): New function.
27186 (HAVE_mem_thread_fence): Add default definition.
27187 * optabs.c: Adjust.
27189 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27191 * combine.c (find_split_point): Check the value of HAVE_lo_sum
27192 instead of if it is defined.
27193 (combine_simplify_rtx): Likewise.
27194 * lra-constraints.c (process_address_1): Likewise.
27195 * config/darwin.c: Adjust.
27196 * genconfig.c (main): Always define HAVE_lo_sum.
27198 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27200 * genmatch.c (parser::parse_operation): Reject expanding
27201 operator-list inside 'for'.
27203 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27205 * genmatch.c (parser::parse_for): Reject iterator if used as
27208 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27210 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
27211 after end of id-list.
27213 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
27215 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
27216 we do not try to compute canonical type for type that does not need
27218 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
27220 * tree.h (type_with_alias_set_p): New.
27222 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
27224 * tree.c (gimple_canonical_types_compatible_p): Do not compare
27225 function attributes.
27226 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
27228 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
27230 * Makefile.in (check_gcc_parallelize): Delete.
27231 (lang_checks_parallelized): Update comment.
27233 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
27235 PR rtl-optimization/66237
27236 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
27237 location of an "as_a" cast.
27239 2015-05-22 Jeff Law <law@redhat.com>
27241 * config/pa/pa.md (non-canonical shift-add insns): Remove.
27242 (peepholes with non-canonical RTL sources): Remove.
27243 (peepholes for indexed stores of FP regs in integer modes): Match and
27244 generate canonical RTL.
27246 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27248 PR tree-optimization/63387
27249 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
27250 ((x ord x) & (y ord y) -> (x ord y),
27251 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
27252 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
27253 vectors like scalars.
27255 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27257 * convert.c (convert_to_integer, convert_to_vector): Include the
27258 types in the error message.
27260 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27262 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
27265 2015-05-22 Jeff Law <law@redhat.com>
27267 * config/pa/pa.md (integer_indexed_store splitters): Use
27268 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
27269 insns -- adjusting the constant 2nd operand accordingly.
27271 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
27272 (plus (ashift X log2) Y) if it is a split point.
27274 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
27275 out of hppa_legitimize_address to handle both forms of a multiply
27277 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
27278 Always generate the ASHIFT variant as the result is not directly
27279 used in a MEM. Update comments and refactor slightly to improve
27282 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27285 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
27286 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
27287 (aarch64_composite_type_p): Return false if given type and mode are
27288 for a short vector.
27290 2015-05-22 Richard Biener <rguenther@suse.de>
27292 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
27294 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
27295 patterns when determining whether SLP is pure.
27296 (vect_is_slp_reduction): Remove check for pattern stmts.
27297 (vect_is_simple_reduction_1): Remove dead code.
27298 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
27299 (vect_get_and_check_slp_defs): Pass in the stmt number.
27300 Allow the first def in a reduction to be not a pattern stmt when
27301 the rest of the stmts def are patterns.
27302 (vect_build_slp_tree_1): Allow tcc_expression codes like
27303 SAD_EXPR and DOT_PROD_EXPR.
27304 (vect_build_slp_tree): Adjust.
27305 (vect_analyze_slp): Refactor and move BB vect error message ...
27306 (vect_slp_analyze_bb_1): ... here.
27308 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
27310 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
27311 for CSWTCH temporary.
27313 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27315 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
27316 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
27319 2015-05-22 Richard Biener <rguenther@suse.de>
27321 PR tree-optimization/66251
27322 * tree-vect-stmts.c (vectorizable_conversion): Properly
27323 set STMT_VINFO_VEC_STMT even for the SLP case.
27325 2015-05-22 Marek Polacek <polacek@redhat.com>
27327 * doc/extend.texi: Use @pxref instead of @xref.
27329 2015-05-22 hiraditya <hiraditya@msn.com>
27331 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
27334 2015-05-22 Richard Biener <rguenther@suse.de>
27336 PR tree-optimization/65701
27337 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
27338 Move peeling cost models into one place. Peel for alignment
27339 for single loads only if an aligned load is cheaper than
27342 2015-05-22 Marek Polacek <polacek@redhat.com>
27345 * doc/extend.texi (Enumerator Attributes): New section.
27346 Document syntax of enumerator attributes.
27348 2015-05-22 Richard Biener <rguenther@suse.de>
27350 * tree-vect-loop.c (get_reduction_op): New function.
27351 (vect_model_reduction_cost): Use it, add reduc_index parameter.
27352 Make ready for BB reductions.
27353 (vect_create_epilog_for_reduction): Use get_reduction_op.
27354 (vectorizable_reduction): Init reduc_index to a valid value.
27355 Adjust vect_model_reduction_cost call.
27356 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
27357 operand for reduction defaults. Add SAD_EXPR support.
27358 Assert we have a neutral op for SLP reductions.
27359 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
27360 walking pattern stmt ops only recurse to SSA names.
27362 2015-05-22 Richard Biener <rguenther@suse.de>
27364 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
27365 assert with guard, remove check on detected reduction.
27366 (vect_recog_sad_pattern): Likewise.
27367 (vect_recog_widen_sum_pattern): Likewise.
27369 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27371 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
27372 __always_inline__ attribute.
27373 (vaesdq_u8): Likewise.
27374 (vaesmcq_u8): Likewise.
27375 (vaesimcq_u8): Likewise.
27376 (vsha1cq_u32): Likewise.
27377 (vsha1mq_u32): Likewise.
27378 (vsha1pq_u32): Likewise.
27379 (vsha1h_u32): Likewise.
27380 (vsha1su0q_u32): Likewise.
27381 (vsha1su1q_u32): Likewise.
27382 (vsha256hq_u32): Likewise.
27383 (vsha256h2q_u32): Likewise.
27384 (vsha256su0q_u32): Likewise.
27385 (vsha256su1q_u32): Likewise.
27386 (vmull_p64): Likewise.
27387 (vmull_high_p64): Likewise.
27389 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27391 * final.c (final_scan_insn): Don't check HAVE_peephole with the
27393 * output.h: Likewise.
27394 * genconfig.c (main): Alwways define HAVE_peephole.
27395 * genpeep.c: Don't emit checks of HAVE_peephole.
27397 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27399 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
27400 check HAVE_conditional_move with the preprocessor.
27402 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27404 * genconfig.c (main): Always define HAVE_conditional_move.
27405 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
27406 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
27409 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27411 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
27412 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
27413 and FRAME_POINTER_REGNUM with the preprocessor.
27415 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27417 * defaults.h: Add default for STACK_PUSH_CODE.
27418 * expr.c: Don't redefine STACK_PUSH_CODE.
27419 * recog.c: Likewise.
27421 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27423 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
27424 sched-deps.c: Use if instead of preprocessor checks with
27425 STACK_GROWS_DOWNWARD.
27427 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27429 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
27431 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
27432 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
27433 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
27434 * doc/tm.texi: Regenerate.
27436 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
27439 * config/i386/constraints.md (Bg): New constraint for GOT memory
27441 * config/i386/i386.md (*call_got_x32): New pattern.
27442 (*call_value_got_x32): Likewise.
27443 * config/i386/predicates.md (GOT_memory_operand): New predicate.
27445 2015-05-21 Jakub Jelinek <jakub@redhat.com>
27447 PR tree-optimization/66233
27448 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
27451 2015-05-21 Jeff Law <law@redhat.com>
27453 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
27454 than MULT for shadd sequences.
27456 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
27458 * alias.c (alias_stats): New static var.
27459 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
27460 (dump_alias_stats_in_alias_c): New function.
27461 * alias.h (dump_alias_stats_in_alias_c): Declare.
27462 * tree-ssa-alias.c (dump_alias_stats): Call it.
27464 2015-05-08 Michael Matz <matz@suse.de>
27466 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
27468 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
27469 (STMT_VINFO_STRIDED_P): ... this.
27470 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
27471 (vect_verify_datarefs_alignment): Likewise.
27472 (vect_enhance_data_refs_alignment): Likewise.
27473 (vect_analyze_data_ref_access): Likewise.
27474 (vect_analyze_data_refs): Accept strided stores.
27475 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
27476 (vect_model_load_cost): Adjust for macro rename.
27477 (vectorizable_mask_load_store): Likewise.
27478 (vectorizable_load): Likewise.
27479 (vectorizable_store): Open code strided stores.
27481 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27483 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
27484 Document sqrt_insn.
27486 2015-05-21 Richard Biener <rguenther@suse.de>
27489 * match.pd: Guard pattern optimzing (int)(float)int
27490 conversions to apply only on GIMPLE.
27492 2015-05-21 Jeff Law <law@redhat.com>
27494 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
27495 multiply-accumulate/shift-add insn generation.
27497 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
27500 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
27501 operands[1] are the same.
27503 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
27505 PR middle-end/66221
27506 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
27507 build_distinct_type_copy to copy bounds.
27509 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
27511 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
27512 Change to unsigned int.
27514 2015-05-20 Jeff Law <law@redhat.com>
27516 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
27517 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
27518 (pa_shadd_constant_p): Allow constants for shadd insns rather
27519 than valid scaling constants for memory addresses.
27520 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
27521 * config/pa/predicates.md (mem_shadd_operand): New predicate.
27522 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
27523 (shift-add insns using ASHIFT): New patterns.
27525 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
27527 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
27529 (fix_up_fall_thru_edges): Likewise.
27530 (fix_crossing_conditional_branches): Likewise. Promote jump targets
27531 from to rtx_insn to rtx_code_label where feasible.
27532 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
27533 gen_move_insn (returned type changed to rtx_insn).
27534 * builtins.c (expand_errno_check): Fix arguments of
27535 do_compare_rtx_and_jump (now expects rtx_code_label).
27536 (expand_builtin_acc_on_device): Likewise.
27537 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
27538 invert_jump (now exprects rtx_jump_insn).
27539 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
27540 (construct_init_block): Use rtx_code_label.
27541 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
27542 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
27543 calling redirect_jump.
27544 (patch_jump_insn): Likewise.
27545 (redirect_branch_edge): Likewise.
27546 (force_nonfallthru_and_redirect): Likewise.
27547 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
27549 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
27550 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
27551 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
27552 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
27553 to store the value retured by gen_label_rtx.
27554 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
27556 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
27557 (split_branches): Fix calls of redirect_jump.
27558 * dojump.c (jumpifnot): Promote argument type from rtx to
27560 (jumpifnot_1): Likewise.
27561 (jumpif): Likewise.
27562 (jumpif_1): Likewise.
27563 (do_jump_1): Likewise.
27564 (do_jump): Likewise. Use rtx_code_label when feasible.
27565 (do_jump_by_parts_greater_rtx): Likewise.
27566 (do_jump_by_parts_zero_rtx): Likewise.
27567 (do_jump_by_parts_equality_rtx): Likewise.
27568 (do_compare_rtx_and_jump): Likewise.
27569 * dojump.h: Update function prototypes.
27570 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
27572 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
27574 (emit_label_before): Likewise.
27575 (emit_jump_insn_after_noloc): Likewise.
27576 (emit_jump_insn_after_setloc): Likewise.
27577 (emit_jump_insn_after): Likewise
27578 (emit_jump_insn_before_setloc): Likewise.
27579 (emit_jump_insn_before): Likewise.
27580 (emit_label_before): Promote return type to rtx_code_label.
27581 (emit_label): Likewise.
27582 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
27583 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
27585 (emit_stack_restore): Likewise.
27586 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
27587 (do_cmp_and_jump): Likewise.
27588 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
27589 from rtx to rtx_code_label.
27590 (gen_move_insn_uncast): New function.
27591 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
27592 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
27593 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
27594 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
27595 invert_jump_1 and redirect_jump_1.
27596 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
27597 do_compare_rtx_and_jump.
27598 (expand_addsub_overflow): Likewise.
27599 (expand_neg_overflow): Likewise.
27600 (expand_mul_overflow): Likewise.
27601 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
27602 return value of gen_move_insn.
27603 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
27604 * loop-doloop.c (add_test): Use rtx_code_label.
27605 (doloop_modify): Likewise.
27606 (doloop_optimize): Likewise.
27607 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
27608 * lra-constraints.c (emit_spill_move): Remove cast of value returned
27610 (inherit_reload_reg): Add cast when calling dump_insn_slim.
27611 (split_reg): Likewise.
27612 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
27614 * optabs.c (expand_binop_directly): Remove casts of values returned by
27616 (expand_unop_direct): Likewise.
27617 (expand_abs): Likewise.
27618 (maybe_emit_unop_insn): Likewise.
27619 (maybe_gen_insn): Promote return type to rtx_insn.
27620 * optabs.h: Update prototype of maybe_gen_insn.
27621 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
27623 * recog.c (struct peep2_insn_data): Promote type of insn field to
27625 (peep2_reinit_state): Use NULL instead of NULL_RTX.
27626 (peep2_attempt): Remove casts of insn in peep2_insn_data.
27627 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
27628 * recog.h (struct insn_gen_fn): Promote return types of function
27629 pointers and operator ().from rtx to rtx_insn.
27630 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
27631 (fill_eager_delay_slots): Likewise.
27632 (relax_delay_slots): Likewise.
27633 (make_return_insns): Likewise.
27634 (dbr_schedule): Likewise.
27635 (optimize_skips): Likewise.
27636 (reorg_redirect_jump): Likewise.
27637 (fill_slots_from_thread): Likewise.
27638 * reorg.h: Update prototypes.
27639 * resource.c (find_dead_or_set_registers): Use dyn_cast to
27640 rtx_jump_insn instead of check. Use it's jump_target method.
27641 * rtl.h (rtx_jump_insn::jump_label): Define new method.
27642 (rtx_jump_insn::jump_target): Define new method.
27643 (rtx_jump_insn::set_jump_target): Define new method.
27644 * rtlanal.c (tablejump_p): Promote type of one local variable.
27645 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
27646 (sched_analyze_insn): Likewise.
27647 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
27648 (print_insn): Likewise.
27649 * stmt.c (label_rtx): Promote return type to rtx_insn.
27650 (force_label_rtx): Likewise.
27651 (jump_target_rtx): Define new function.
27652 (expand_label): Use it, get rid of one cast.
27653 (expand_naked_return): Promote rtx to rtx_code_label.
27654 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
27655 (expand_case): Use rtx_code_label instread of rtx where feasible.
27656 (expand_sjlj_dispatch_table): Likewise.
27657 (emit_case_nodes): Likewise.
27658 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
27659 * store-motion.c (insert_store): Make use of new return type of
27660 gen_move_insn and remove a cast.
27661 (replace_store_insn): Likewise.
27663 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
27665 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
27666 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
27668 2015-05-20 Jeff Law <law@redhat.com>
27670 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
27671 dispose of the jump thread path when the jump threading
27672 opportunity is cancelled.
27674 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27676 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
27677 when printing the caret character.
27679 2015-05-20 Marek Polacek <polacek@redhat.com>
27681 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
27683 2015-05-20 Marek Polacek <polacek@redhat.com>
27685 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
27686 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
27687 * gimple-fold.c (canonicalize_bool): Likewise.
27688 (same_bool_result_p): Likewise.
27689 * tree-if-conv.c (parse_predicate): Likewise.
27691 2015-05-20 Marek Polacek <polacek@redhat.com>
27693 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
27694 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
27696 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27698 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
27699 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
27702 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
27704 * config/mips/mips.h (micromips_globals): Declare.
27706 2015-05-20 David Malcolm <dmalcolm@redhat.com>
27708 * timevar.def (TV_INITIALIZE_RTL): New.
27709 * toplev.c (initialize_rtl): Use an auto_timevar to account this
27710 function's time to TV_INITIALIZE_RTL.
27712 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
27714 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
27715 gimple_build_nop calls.
27716 (chkp_find_bounds_for_elem): Likewise.
27717 (chkp_get_zero_bounds): Likewise.
27718 (chkp_get_none_bounds): Likewise.
27719 (chkp_get_bounds_by_definition): Likewise.
27720 (chkp_generate_extern_var_bounds): Likewise.
27721 (chkp_get_bounds_for_decl_addr): Likewise.
27722 (chkp_get_bounds_for_string_cst): Likewise.
27724 2015-05-20 Bin Cheng <bin.cheng@arm.com>
27726 PR tree-optimization/65447
27727 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
27728 (dump_use, dump_uses): Support to dump sub use.
27729 (record_use): New parameters to support sub use. Remove call to
27731 (record_sub_use, record_group_use): New functions.
27732 (compute_max_addr_offset, split_all_small_groups): New functions.
27733 (group_address_uses, rewrite_use_address): New functions.
27734 (strip_offset): New declaration.
27735 (find_interesting_uses_address): Call record_group_use.
27736 (add_candidate): New assertion.
27737 (infinite_cost_p): Move definition forward.
27738 (add_costs): Check INFTY cost and return immediately.
27739 (get_computation_cost_at): Clear setup cost and dependent bitmap
27741 (determine_use_iv_cost_address): Compute cost for sub uses.
27742 (rewrite_use_address_1): Rename from old rewrite_use_address.
27743 (free_loop_data): Free sub uses.
27744 (tree_ssa_iv_optimize_loop): Call group_address_uses.
27746 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
27747 Jim Wilson <jim.wilson@linaro.org>
27749 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
27750 new fields loadv and storev.
27751 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
27752 Initialize loadv and storev.
27753 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
27754 (cortexa53_extra_costs): Likewise.
27755 (cortexa57_extra_costs): Likewise.
27756 (xgene1_extra_costs): Likewise.
27757 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
27760 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
27762 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
27764 (cortexa8_extra_costs): Likewise.
27765 (cortexa5_extra_costs): Likewise.
27766 (cortexa7_extra_costs): Likewise.
27767 (cortexa12_extra_costs): Likewise.
27768 (cortexa15_extra_costs): Likewise.
27769 (v7m_extra_costs): Likewise.
27771 2015-05-20 Jeff Law <law@redhat.com>
27773 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
27774 instead of open-coded version. Also delete the jump thread created
27775 within this function.
27777 2015-05-20 Alan Modra <amodra@gmail.com>
27779 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
27780 stack adjusting insn. Formatting.
27781 (rs6000_emit_prologue): Track stack adjusting insn, and use of
27782 r12. If possible, emit first -fsplit-stack arg pointer insn
27783 before stack adjust. Don't use r12 to save cr if split-stack.
27785 2015-05-20 Alan Modra <amodra@gmail.com>
27787 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
27789 (rs6000_supports_split_stack): New function.
27790 * config/rs6000/rs6000.c (machine_function): Add
27791 split_stack_arg_pointer.
27792 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
27793 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
27794 rather than virtual_incoming_args_rtx.
27795 (rs6000_va_start): Likewise.
27796 (split_stack_arg_pointer_used_p): New function.
27797 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
27798 (morestack_ref): New var.
27799 (gen_add3_const, rs6000_expand_split_stack_prologue,
27800 rs6000_internal_arg_pointer, rs6000_live_on_entry,
27801 rs6000_split_stack_space_check): New functions.
27802 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
27803 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
27804 (UNSPECV_SPLIT_STACK_RETURN): Define.
27805 (split_stack_prologue, load_split_stack_limit,
27806 load_split_stack_limit_di, load_split_stack_limit_si,
27807 split_stack_return, split_stack_space_check): New expands and insns.
27808 * config/rs6000/rs6000-protos.h
27809 (rs6000_expand_split_stack_prologue): Declare.
27810 (rs6000_split_stack_space_check): Declare.
27812 2015-05-20 Alan Modra <amodra@gmail.com>
27814 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
27815 (direct_return): Test vrsave_size rather than vrsave_mask.
27816 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
27817 (rs6000_emit_epilogue): Likewise.
27819 2015-05-20 Alan Modra <amodra@gmail.com>
27821 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
27822 when not saving registers.
27823 (debug_stack_info): Adjust to omit printing unused offsets,
27825 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
27828 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27831 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
27832 value_type to const char *.
27834 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
27836 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
27837 to build a biarch toolchain again.
27839 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
27841 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
27842 or implicit declarations.
27843 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
27845 (get_odr_type): Check type has linkage before adding bases.
27846 (register_odr_type): Check that type has linkage before adding it.
27847 (type_known_to_have_no_deriavations_p): Rename to ..
27848 (type_known_to_have_no_derivations_p): This one.
27849 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
27850 (type_known_to_have_no_derivations_p): This one.
27851 * ipa-polymorphic-call.c
27852 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
27855 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
27857 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
27858 (layout_type): Use RECORD_OR_UNION_TYPE_P.
27860 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27862 * config/s390/s390.c (s390_vector_bool_type_p): New function.
27863 (s390_invalid_binary_op): New function.
27864 (TARGET_INVALID_BINARY_OP): Define macro.
27866 2015-05-19 David Sherwood <david.sherwood@arm.com>
27868 * loop-invariant.c (create_new_invariant): Don't calculate address cost
27869 if mode is not a scalar integer.
27870 (get_inv_cost): Increase computational cost for unused invariants.
27872 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27874 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
27875 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
27876 * config/s390/s390-builtin-types.def: New file.
27877 * config/s390/s390-builtins.def: New file.
27878 * config/s390/s390-builtins.h: New file.
27879 * config/s390/s390-c.c: New file.
27880 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
27881 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
27882 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
27883 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
27885 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
27887 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
27888 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
27889 variable definitions.
27890 (s390_const_operand_ok): New function.
27891 (s390_expand_builtin): Rewrite.
27892 (s390_init_builtins): New function.
27893 (s390_handle_vectorbool_attribute): New function.
27894 (s390_attribute_table): Add s390_vector_bool attribute.
27895 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
27896 (s390_branch_condition_mask): Generate masks for new modes.
27897 (s390_expand_vec_compare_cc): New function.
27898 (s390_mangle_type): Add mangling for vector bool types.
27899 (enum s390_builtin): Remove.
27900 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
27902 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
27903 s390_cpu_cpp_builtins.
27904 (REGISTER_TARGET_PRAGMAS): New macro.
27905 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
27906 (insn_cmp mode attribute): Add new CC modes.
27907 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
27908 (lcbb): New pattern definition.
27909 * config/s390/s390intrin.h: Include vecintrin.h.
27910 * config/s390/t-s390: New file.
27911 * config/s390/vecintrin.h: New file.
27912 * config/s390/vector.md: Include vx-builtins.md.
27913 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
27916 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27918 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
27920 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
27921 (s390_select_ccmode): Likewise.
27922 (s390_canonicalize_comparison): Swap operands if necessary.
27923 (s390_expand_vec_compare_scalar): Expand DFmode compare using
27924 single element vector instructions.
27925 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
27926 (s390_branch_condition_mask): Generate CC masks for the new modes.
27927 * config/s390/s390.md (v0, vf, vd): New mode attributes.
27928 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
27929 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
27930 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
27931 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
27932 (*extend<DSF:mode><BFP:mode>2): New insn definition.
27933 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
27934 (extend<DSF:mode><BFP:mode>2): Turn into expander.
27935 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
27936 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
27937 (sqrt<mode>2): Add vector instruction.
27939 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27941 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
27943 * config/s390/predicates.md (const0_operand, constm1_operand)
27944 (constable_operand): Accept vector operands.
27945 * config/s390/s390-modes.def: Add supported vector modes.
27946 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
27947 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
27948 (s390_bytemask_vector_p, s390_expand_vec_strlen)
27949 (s390_expand_vec_compare, s390_expand_vcond)
27950 (s390_expand_vec_init): Add prototypes.
27951 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
27952 (s390_vector_mode_supported_p): New function.
27953 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
27954 (s390_contiguous_bitmask_vector_p): New function.
27955 (s390_bytemask_vector_p): New function.
27956 (s390_split_ok_p): Vector regs don't work either.
27957 (regclass_map): Add VEC_REGS.
27958 (s390_legitimate_constant_p): Handle vector constants.
27959 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
27960 (legitimate_reload_vector_constant_p): New function.
27961 (s390_preferred_reload_class): Handle CONST_VECTOR.
27962 (s390_reload_symref_address): Likewise.
27963 (s390_secondary_reload): Vector memory instructions only support
27964 short displacements. Rename reload*_nonoffmem* to reload*_la*.
27965 (s390_emit_ccraw_jump): New function.
27966 (s390_expand_vec_strlen): New function.
27967 (s390_expand_vec_compare): New function.
27968 (s390_expand_vcond): New function.
27969 (s390_expand_vec_init): New function.
27970 (s390_dwarf_frame_reg_mode): New function.
27971 (print_operand): Handle addresses with 'O' and 'R' constraints.
27972 (NR_C_MODES, constant_modes): Add vector modes.
27973 (s390_output_pool_entry): Handle vector constants.
27974 (s390_hard_regno_mode_ok): Handle vector registers.
27975 (s390_class_max_nregs): Likewise.
27976 (s390_cannot_change_mode_class): New function.
27977 (s390_invalid_arg_for_unprototyped_fn): New function.
27978 (s390_function_arg_vector): New function.
27979 (s390_function_arg_float): Remove size variable.
27980 (s390_pass_by_reference): Handle vector arguments.
27981 (s390_function_arg_advance): Likewise.
27982 (s390_function_arg): Likewise.
27983 (s390_return_in_memory): Vector values are returned in a VR if
27985 (s390_function_and_libcall_value): Handle vector arguments.
27986 (s390_gimplify_va_arg): Likewise.
27987 (s390_call_saved_register_used): Consider the arguments named.
27988 (s390_conditional_register_usage): Disable v16-v31 for non-vec
27990 (s390_preferred_simd_mode): New function.
27991 (s390_support_vector_misalignment): New function.
27992 (s390_vector_alignment): New function.
27993 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
27994 (TARGET_VECTOR_MODE_SUPPORTED_P)
27995 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
27996 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
27997 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
27998 (TARGET_VECTOR_ALIGNMENT): Define target macro.
27999 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
28000 (FIRST_PSEUDO_REGISTER): Increase value.
28001 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
28002 (VECTOR_REG_P): Define macros.
28003 (FIXED_REGISTERS, CALL_USED_REGISTERS)
28004 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
28005 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
28006 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
28007 Add vector registers.
28008 (CANNOT_CHANGE_MODE_CLASS): Call C function.
28009 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
28010 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
28012 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
28013 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
28014 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
28015 (VR*_REGNUM): New constants.
28016 (ALL): New mode iterator.
28017 (INTALL): Remove mode iterator.
28019 (movti): Implement TImode moves for VRs.
28020 Disable TImode splitter for VR targets.
28021 Implement splitting TImode GPR<->VR moves.
28022 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
28023 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
28024 reload<mode>_la_in, reload<mode>_la_out.
28025 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
28026 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
28027 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
28028 (mov<mode> SF SD): Prefer lder, lde for loading.
28029 Add lrl and strl instructions.
28030 Add vector instructions.
28031 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
28032 Call s390_expand_vec_strlen on z13.
28033 (*cc_to_int): Change predicate to nonimmediate_operand.
28034 (addti3): Rename to *addti3. New expander.
28035 (subti3): Rename to *subti3. New expander.
28036 * config/s390/vector.md: New file.
28038 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28040 * common/config/s390/s390-common.c (processor_flags_table): Add
28042 * config.gcc: Add z13.
28043 * config/s390/s390-opts.h (enum processor_type): Add
28044 PROCESSOR_2964_Z13.
28045 * config/s390/s390.c (s390_adjust_priority): Check for
28046 PROCESSOR_2964_Z13.
28047 (s390_reorg): Likewise.
28048 (s390_sched_reorder): Likewise.
28049 (s390_sched_variable_issue): Likewise.
28050 (s390_loop_unroll_adjust): Likewise.
28051 (s390_option_override): Likewise. Default to -mvx when available.
28052 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
28053 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
28054 (TARGET_VX_ABI): Define macros.
28056 (TARGET_DEFAULT): Add MASK_OPT_VX.
28057 * config/s390/s390.md ("cpu" attribute): Add z13.
28058 ("cpu_facility" attribute): Add vec.
28059 * config/s390/s390.opt (processor_type): Add z13.
28060 (mvx): New options.
28061 * doc/invoke.texi: Add z13 option for -march.
28063 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28065 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
28066 mode check to make sure that only scalar integer values are
28069 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
28071 * tree.c (verify_type_variant): Fix #undef.
28072 (gimple_canonical_types_compatible_p): Move here from lto.c
28073 (verify_type): Verify TYPE_CANONICAL compatibility.
28074 * tree.h (gimple_canonical_types_compatible_p): Declare.
28076 2015-05-19 Jakub Jelinek <jakub@redhat.com>
28078 PR middle-end/66199
28079 * tree.h (OMP_TEAMS_COMBINED): Define.
28080 * gimplify.c (enum gimplify_omp_var_data): Add
28081 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
28082 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
28083 (omp_notice_variable): Accept both ORT_TEAMS
28084 and ORT_COMBINED_TEAMS. Don't recurse if
28085 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
28086 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
28088 (omp_no_lastprivate): New function.
28089 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
28090 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
28091 notice_outer and set appropriate bits, otherwise make
28092 sure default(none) combined constructs won't complain.
28093 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
28094 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
28095 omp_no_lastprivate either remove the clause or turn it
28096 into OMP_CLAUSE_PRIVATE.
28097 (gimplify_omp_for): Fix up handling of implicit
28098 lastprivate or linear iterators.
28099 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
28100 ORT_COMBINED_TEAMS.
28101 * omp-low.c (lower_omp_for_lastprivate): For combined
28102 for simd use fd.loop.n2 from the for rather than simd.
28104 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28106 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
28107 instead of gen_rtx_raw_REG.
28108 (cris_expand_epilogue): Likewise.
28109 * config/microblaze/microblaze.c (microblaze_classify_address):
28111 * config/sparc/sparc.md: Likewise.
28113 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
28115 * config/alpha/alpha.c (alpha_legitimize_reload_address)
28116 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
28117 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
28118 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
28119 Use CASE_CONST_SCALAR_INT.
28120 (print_operand) <case 'M'>: Use mode_width_operand to check the
28121 value of the constant.
28122 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
28123 * config/alpha/predicates.md (input_operand): Use general_operand
28124 instead of match_code as operand check.
28125 (symbolic_operand): Use match_code with subexpression digits.
28126 * config/alpha/constraints.md (Q): Ditto.
28128 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28130 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
28132 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28134 * config/s390/s390.c (s390_secondary_reload): Fix check for
28135 load/store relative.
28137 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28139 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
28140 alternative_mask to uint64_t.
28142 2015-05-19 Jakub Jelinek <jakub@redhat.com>
28144 PR tree-optimization/66187
28145 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
28146 Pass TYPE_SIGN to tree_int_cst_min_precision. If
28147 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
28149 2015-05-19 David Malcolm <dmalcolm@redhat.com>
28151 * diagnostic.c (diagnostic_report_current_module): Strengthen
28152 local "new_map" from const line_map * to
28153 const line_map_ordinary *.
28154 * genmatch.c (error_cb): Likewise for local "map".
28155 (output_line_directive): Likewise for local "map".
28156 * input.c (expand_location_1): Likewise for local "map".
28157 Pass NULL rather than &map to
28158 linemap_unwind_to_first_non_reserved_loc, since the value is never
28159 read from there, and the value written back not read from here.
28160 (is_location_from_builtin_token): Strengthen local "map" from
28161 const line_map * to const line_map_ordinary *.
28162 (dump_location_info): Strengthen locals "map" from
28163 line_map *, one to const line_map_ordinary *, the other
28164 to const line_map_macro *.
28165 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
28166 const line_map * to const line_map_macro *.
28167 (maybe_unwind_expanded_macro_loc): Add a call to
28168 linemap_check_macro when writing to the "map" field of the
28170 Introduce local const line_map_ordinary * "ord_map", using it in
28171 place of "map" in the part of the function where we know we have
28172 an ordinary map. Strengthen local "m" from const line_map * to
28173 const line_map_ordinary *.
28175 2015-05-19 Nick Clifton <nickc@redhat.com>
28178 * config/msp430/msp430.md (zero_extendhisi2): Add support for
28179 separate source and destination registers.
28181 2015-05-19 Richard Biener <rguenther@suse.de>
28183 PR tree-optimization/66165
28184 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
28185 for no load permutation.
28187 PR tree-optimization/66185
28188 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
28189 when building the SLP node from scalars.
28191 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
28192 Tristan Gingold <gingold@adacore.com>
28194 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
28195 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
28196 (expand_stack_restore): Call record_new_stack_level.
28197 (expand_stack_save): Do not call do_pending_stack_adjust.
28198 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
28199 * calls.c (expand_call): Call record_new_stack_level for alloca.
28200 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
28201 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
28202 (update_sjlj_context): New global function.
28203 * except.h (update_sjlj_context): Declare.
28204 * explow.c (record_new_stack_level): New global function.
28205 (allocate_dynamic_stack_space): Call record_new_stack_level.
28206 * explow.h (record_new_stack_level): Declare.
28207 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
28208 * cfgrtl.c (duplicate_insn_chain): Likewise.
28210 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28212 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
28213 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
28214 STACK_GROWS_DOWNWARD as normal if.
28215 (expand_call): Likewise.
28217 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
28220 * config/sh/sh.md (*round_int_even): New insn_and_split and
28221 accompanying new unnamed split.
28223 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28225 * bitmap.c (bitmap_set_range): Handle count==1 specially.
28226 (bitmap_clear_range): Likewise.
28227 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
28228 bitmap_set_range unconditionally.
28229 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28230 * df-scan.c (df_mark_reg): Likewise.
28231 * haifa-sched.c (setup_ref_regs): Likewise.
28232 * sched-rgn.c (update_live_1): Likewise.
28234 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28236 * regs.h (END_HARD_REGNO): Delete.
28237 (END_REGNO): Move to...
28239 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
28240 * caller-save.c (mark_set_regs): Likewise.
28241 * combine.c (move_deaths, distribute_notes): Likewise.
28242 * cse.c (invalidate, invalidate_for_call): Likewise.
28243 * df-scan.c (df_ref_record): Likewise.
28244 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
28245 (record_last_reg_set_info): Likewise.
28246 * reg-stack.c (convert_regs_exit): Likewise.
28247 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
28248 * resource.c (update_live_status): Likewise.
28249 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
28251 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28253 * rtl.h (reg_info): Add an nregs field.
28254 (REG_NREGS): Use it.
28255 (SET_REGNO_RAW): Delete.
28256 (set_regno_raw): New function.
28257 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
28258 (END_REGNO): Redefine in terms of REG_NREGS.
28259 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
28261 * emit-rtl.c (set_mode_and_regno): Likewise.
28262 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
28263 instead of SET_REGNO_RAW.
28265 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28267 * rtl.h (PUT_MODE_RAW): New macro.
28268 (PUT_REG_NOTE_KIND): Use it.
28269 (set_mode_and_regno): Declare.
28270 (gen_raw_REG): Change regno to "unsigned int".
28271 (gen_rtx_REG): Change "unsigned" to "unsigned int".
28272 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
28273 use set_mode_and_regno to change the mode of registers.
28274 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
28275 * emit-rtl.c (set_mode_and_regno): New function.
28276 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
28277 * caller-save.c (reg_save_code): Use set_mode_and_regno.
28278 * expr.c (init_expr_target): Likewise.
28279 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28280 * postreload.c (reload_cse_simplify_operands): Likewise.
28282 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28284 * caller-save.c (init_caller_save): Use word_mode and
28285 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
28286 * expr.c (init_expr_target): Likewise.
28287 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28288 * postreload.c (reload_cse_regs_1): Likewise.
28290 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28292 * rtl.def (REG): Change format to "r".
28293 * rtl.h (rtunion): Remove rt_reg.
28294 (reg_info): New structure.
28295 (rtx_def): Add reg field to main union.
28296 (X0REGATTR): Delete.
28297 (REG_CHECK): New macro.
28298 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
28299 * rtl.c (rtx_format): Document "r".
28300 (rtx_code_size): Handle REG specially.
28301 * gengenrtl.c (special_format): Return true for formats
28303 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
28304 Deal with REG_ATTRS after the field loop.
28305 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
28306 * expmed.c (init_expmed): Call gen_raw_REG instead of
28308 * expr.c (init_expr_target): Likewise.
28309 * regcprop.c (maybe_mode_change): Likewise.
28310 * varasm.c (make_decl_rtl): Likewise.
28311 * final.c (leaf_renumber_regs_insn): Return early after
28313 * genemit.c (gen_exp): Handle 'r' fields.
28314 * genpeep.c (match_rtx): Likewise.
28315 * gensupport.c (subst_pattern_match): Likewise.
28316 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
28317 (alter_constraints, subst_dup): Likewise.
28318 * read-rtl.c (read_rtx_code): Likewise.
28319 * print-rtl.c (print_rtx): Likewise.
28320 * genrecog.c (find_operand, find_matching_operand): Likewise.
28321 (validate_pattern, match_pattern_2): Likewise.
28322 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
28323 (rtx_test::regno_field): New function.
28324 (operator ==, safe_to_hoist_p, transition_parameter_type)
28325 (parameter_type_string, print_parameter_value)
28326 (print_nonbool_test, print_test): Handle new enum values.
28327 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
28328 * lra-constraints.c (operands_match_p): Likewise.
28330 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28332 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
28333 Change type of new_regno to unsigned int.
28334 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
28335 new_regno to unsigned int.
28336 (df_ref_change_reg_with_loc): Remove old_regno parameter.
28337 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
28338 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
28339 (SET_REGNO_RAW): Add space after ",".
28341 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28343 * rtl.h (REG_NREGS): New macro
28344 * alias.c (record_set): Use it.
28345 * cfgcleanup.c (mark_effect): Likewise.
28346 * combine.c (likely_spilled_retval_1): Likewise.
28347 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
28348 (move_deaths, distribute_notes): Likewise.
28349 * cselib.c (cselib_record_set): Likewise.
28350 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28351 * df-scan.c (df_mark_reg): Likewise.
28352 * dse.c (look_for_hardregs): Likewise.
28353 * dwarf2out.c (reg_loc_descriptor): Likewise.
28354 (multiple_reg_loc_descriptor): Likewise.
28355 * expr.c (write_complex_part, read_complex_part): Likewise.
28356 (emit_move_complex): Likewise.
28357 * haifa-sched.c (setup_ref_regs): Likewise.
28358 * ira-lives.c (mark_hard_reg_live): Likewise.
28359 * lra.c (lra_set_insn_recog_data): Likewise.
28360 * mode-switching.c (create_pre_exit): Likewise.
28361 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
28362 (reload_combine_recognize_pattern): Likewise.
28363 (reload_combine_note_use, move2add_record_mode): Likewise.
28364 (reload_cse_move2add): Likewise.
28365 * reg-stack.c (subst_stack_regs_pat): Likewise.
28366 * regcprop.c (kill_value, copy_value): Likewise.
28367 (copyprop_hardreg_forward_1): Likewise.
28368 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
28369 (build_def_use): Likewise.
28370 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
28371 (deps_analyze_insn): Likewise.
28372 * sched-rgn.c (check_live_1, update_live_1): Likewise.
28373 * sel-sched.c (count_occurrences_equiv): Likewise.
28374 * valtrack.c (dead_debug_insert_temp): Likewise.
28376 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28378 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
28379 * dse.c (note_add_store): Likewise.
28380 * ira-lives.c (mark_hard_reg_dead): Likewise.
28381 * loop-invariant.c (mark_reg_store): Likewise.
28382 (mark_reg_death): Likewise.
28383 * postreload.c (reload_combine): Likewise.
28384 (reload_combine_note_store): Likewise.
28385 (reload_combine_note_use): Likewise.
28386 * recog.c (peep2_reg_dead_p): Likewise.
28388 2015-05-19 Alan Modra <amodra@gmail.com>
28390 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
28391 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
28392 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
28394 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
28395 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
28396 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
28397 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
28399 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
28401 * config/mips/mips.md (JOIN_MODE): New mode iterator.
28402 (join2_load_Store<JOIN_MODE:mode>): New pattern.
28403 (join2_loadhi): Likewise.
28404 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
28405 load-load and store-stores.
28406 * config/mips/mips.opt (mload-store-pairs): New option.
28407 (TARGET_LOAD_STORE_PAIRS): New macro.
28408 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
28409 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
28410 * config/mips/mips.c (mips_load_store_bonding_p): New function.
28412 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
28414 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
28416 * dojump.c (do_compare_rtx_and_jump): Likewise.
28417 * expmed.c (emit_store_flag_1): Likewise.
28418 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
28419 * final.c (sprint_ul): Use std::reverse for reversing a string.
28420 * fold-const.c (extract_muldiv_1): Use std::swap.
28421 * genmodes.c (emit_mode_int_n): Likewise.
28422 * ifcvt.c (dead_or_predicable): Likewise.
28423 * ira-build.c (ira_merge_live_ranges): Likewise.
28424 (swap_allocno_copy_ends_if_necessary): Likewise.
28425 * ira.c (ira_setup_alts): Likewise.
28426 * loop-iv.c (iv_analyze_expr): Likewise.
28427 (implies_p): Likewise.
28428 (canon_condition): Likewise.
28429 * lra-constraints.c (swap_operands): Likewise.
28430 * lra-lives.c (lra_merge_live_ranges): Likewise.
28431 * omega.c (swap): Remove.
28433 (omega_unprotect_1): Use std::swap.
28434 (omega_solve_geq): Likewise.
28435 * optabs.c (expand_binop_directly): Likewise.
28436 (expand_binop): Likewise.
28437 (emit_conditional_move): Likewise.
28438 (emit_conditional_add): Likewise.
28439 * postreload.c (reload_cse_simplify_operands): Likewise.
28440 * reg-stack.c (emit_swap_insn): Likewise.
28441 (swap_to_top): Likewise.
28442 (compare_for_stack_reg): Likewise.
28443 (subst_asm_stack_regs): Likewise.
28444 * reload.c (find_reloads): Likewise.
28445 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
28446 * sel-sched.c (invoke_reorder_hooks): Likewise.
28447 (create_block_for_bookkeeping): Likewise.
28448 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
28449 (lambda_matrix_right_hermite): Use std::swap.
28450 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
28451 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
28452 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
28453 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
28454 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
28455 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
28456 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
28457 * tree-vrp.c (compare_ranges): Likewise.
28458 * var-tracking.c (add_with_sets): Likewise.
28459 (vt_find_locations): Likewise.
28461 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
28463 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
28465 (FBSD_ENDFILE_SPEC): Likewise.
28466 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
28467 config/freebsd-spec.h.
28468 (ENDFILE_SPEC): Likewise.
28470 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
28471 Richard Henderson <rth@redhat.com>
28474 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
28475 Check for a memory location that is not a reference (using an AND)
28476 to an unaligned location here.
28477 * config/alpha/predicates.md (normal_memory_operand): Remove.
28479 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
28481 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
28482 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
28484 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
28486 * config/mips/mips.c (micromips_globals): New variable.
28487 (mips_set_compression_mode): Save and reinitialize target-dependent
28488 state for microMIPS.
28490 2015-05-18 Martin Liska <mliska@suse.cz>
28492 * dbgcnt.def: Add new counter.
28493 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
28495 2015-05-18 Martin Liska <mliska@suse.cz>
28497 * dbgcnt.def: Sort counters.
28498 * opts.c (common_handle_option): Do not compile if
28499 -fdbg-cnt-list is enabled.
28501 2015-05-18 Tom de Vries <tom@codesourcery.com>
28503 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
28504 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
28505 address operator to va_list operand.
28506 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
28508 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
28510 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
28511 * config/s390/s390.c (s390_gimplify_va_arg): Same.
28512 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
28514 2015-05-18 Tom de Vries <tom@codesourcery.com>
28516 * tree-ssa-tail-merge.c: Fix whitespace.
28518 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
28520 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
28521 cortex-a17, and cortex-a17.cortex-a7.
28523 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
28526 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
28528 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
28531 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
28532 QImode inner modes for TARGET_AVX512BW. Force mask operand
28533 to a register for AVX512F modes.
28535 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
28537 * toplev.c (emit_debug_global_declarations): Do not output debug info
28538 when doing slim LTO objects.
28540 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
28542 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
28543 odr_types_equivalent_p): Declare.
28544 (odr_type_p): Use gcc_checking_assert.
28545 (type_in_anonymous_namespace_p) Declare.
28546 (type_with_linkage_p): Declare.
28547 * common.opt (Wlto-type-mismatch): New warning.
28548 * ipa-devirt.c (compound_type_base): New function.
28549 (odr_or_derived_type_p): New function.
28550 (odr_types_equivalent_p): New function.
28551 (add_type_duplicate): Simplify.
28552 (type_with_linkage_p): Add hack to prevent false positives on C types
28553 (type_in_anonymous_namespace_p): Likewise.
28554 * tree.c (need_assembler_name_p): Use type_with_linkage.
28555 * tree.h (type_in_anonymous_namespace_p): Remove.
28556 * doc/invoke.texi (-Wlto-type-mismatch): Document
28558 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
28560 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
28561 (verify_type): Verify STRING_FLAG.
28563 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
28566 * tree-pretty-print.c (percent_K_format): Replace locus pointer
28567 with accessor function.
28568 * tree-diagnostic.c (diagnostic_report_current_function): Use
28569 diagnostic_location function.
28570 (maybe_unwind_expanded_macro_loc): Likewise.
28571 (virt_loc_aware_diagnostic_finalizer): Likewise.
28572 (default_tree_printer): Replace locus pointer with accessor function.
28573 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
28574 (diagnostic_set_info_translated): Initialize second location.
28575 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
28576 (diagnostic_show_locus): Handle two locations. Call
28577 diagnostic_print_caret_line.
28578 (diagnostic_print_caret_line): New.
28579 (default_diagnostic_starter): Use diagnostic_location function.
28580 (diagnostic_report_diagnostic): Use diagnostic_location function.
28581 (verbatim): Do not set text.locus.
28582 * diagnostic.h (struct diagnostic_info): Remove location field.
28583 (struct diagnostic_context): Make caret_chars an array of two.
28584 (diagnostic_location): New inline.
28585 (diagnostic_expand_location): Handle two locations.
28586 (diagnostic_same_line): New inline.
28587 (diagnostic_print_caret_line): Declare.
28588 (CARET_LINE_MARGIN): New constant.
28589 * pretty-print.c (pp_printf): Do not set text.locus.
28590 (pp_verbatim): Do not set text.locus.
28591 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
28592 (struct text_info): Replace locus pointer with locations
28593 array. Add accessor functions.
28595 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
28596 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28599 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
28600 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
28601 large constants in register instead of splitting them.
28603 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
28606 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
28607 replacements in memory addresses.
28608 (get_unaligned_address): Ditto.
28610 2015-05-16 James Bowman <james.bowman@ftdichip.com>
28612 * config/ft32/*: New files for FT32 port.
28613 * doc/install.texi: Add FT32 information.
28614 * doc/invoke.texi: Add FT32 information.
28615 * doc/md.texi: Add FT32 information.
28616 * doc/contrib.texi: Self added.
28618 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
28620 PR tree-optimization/64454
28621 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
28622 (-1 - A -> ~A): Remove unnecessary condition.
28624 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
28626 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
28627 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
28628 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
28630 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
28632 * ipa-chkp.h (chkp_wrap_function): New.
28633 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
28634 (chkp_wrap_function_name): New.
28635 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
28636 to get wrapper name.
28637 * lto-cgraph.c: Include ipa-chkp.h.
28638 (input_cgraph_1): Avoid alias chain for wrappers.
28640 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
28642 PR middle-end/66134
28643 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
28644 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
28646 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28648 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
28649 (AARCH64_FL_SLOWMUL): Delete.
28650 (AARCH64_FL_CRC): Redefine to 1<<3.
28651 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
28653 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28655 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
28658 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
28660 * config/alpha/alpha.md (extendqidi2): Use general_operand
28661 instead of some_operand for operand[1] predicate.
28662 (extendhidi2): Ditto.
28663 (cbranchdi4): Use general_operand instead of some_operand
28664 for operand[1] and operands[2] predicates.
28665 (cstoredi4): Ditto.
28666 * config/alpha/predicates.md (some_operand): Remove unused predicate.
28667 (some_ni_operand): Ditto.
28669 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
28671 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
28672 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
28673 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
28674 low part of the constant using alpha_emit_set_const_1.
28675 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
28677 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
28679 * varasm.c (output_constant_pool_1): Pass down alignment from
28680 constant pool entry's descriptor to output_constant_pool_2.
28681 (output_object_block): Add comment prior to call to
28682 output_constant_pool_1.
28684 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
28686 PR rtl-optimization/65862
28687 * target.def (ira_change_pseudo_allocno_class): New hook.
28688 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
28690 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
28691 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
28693 * ira-costs.c (find_costs_and_classes): Call the hook and change
28694 classes when it is necessary.
28695 * doc/tm.texi: Update.
28697 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
28699 * config/i386/i386.md (sibcall_memory): Check that register with
28700 callee address is not also used as one of the arguments, instead
28701 of checking that it is not live after the sibcall.
28702 (sibcall_pop_memory): Ditto.
28703 (sibcall_value_memory): Ditto.
28704 (sibcall_value_pop_memory): Ditto.
28706 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
28708 * generic-match-head.c (types_match): Handle non-types.
28709 * gimple-match-head.c (types_match): Likewise.
28710 * match.pd: Remove unnecessary TREE_TYPE for types_match.
28712 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
28714 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
28715 (csneg3<mode>_insn): Enable expansion of pattern.
28717 2015-05-14 Nick Clifton <nickc@redhat.com>
28719 * config/rl78/rl78.c (rl78_select_section): Select the correct
28720 default section based upon the category of the decl.
28722 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
28724 PR rtl-optimization/30967
28725 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
28726 destination mode for the cost of scc patterns.
28728 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
28730 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
28731 using SWIM248 mode iterator.
28732 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
28733 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
28734 for operand[2] constraint.
28735 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
28737 2015-05-13 Jakub Jelinek <jakub@redhat.com>
28739 PR middle-end/66133
28740 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
28741 make sure it is never noreturn, even when the task body does not
28743 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
28744 right before GIMPLE_OMP_RETURN.
28745 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
28746 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
28747 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
28749 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28751 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
28752 * tree-ssa-math-opts.c: Include params.h
28753 (pow_synth_sqrt_info): New struct.
28754 (representable_as_half_series_p): New function.
28755 (get_fn_chain): Likewise.
28756 (print_nested_fn): Likewise.
28757 (dump_fractional_sqrt_sequence): Likewise.
28758 (dump_integer_part): Likewise.
28759 (expand_pow_as_sqrts): Likewise.
28760 (gimple_expand_builtin_pow): Use above to attempt to expand
28761 pow as series of square roots. Removed now unused variables.
28763 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
28765 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
28766 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
28767 Remove *p0 and *p1 arguments. Rewrite function.
28768 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
28769 (alpha_split_const_mov): Update calls to alpha_extract_integer and
28770 alpha_emit_set_long_const.
28771 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
28772 (alpha_output_mi_thunk_osf): Ditto.
28773 * config/alpha/alpha.md (movti): Do not check operands[1]
28776 2015-05-13 Richard Biener <rguenther@suse.de>
28778 PR tree-optimization/66129
28779 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
28781 (vect_schedule_slp_instance): Fix typo.
28783 2015-05-13 David Malcolm <dmalcolm@redhat.com>
28785 * common.opt (fdump-internal-locations): New option.
28786 * input.c: Include diagnostic-core.h.
28787 (get_end_location): New function.
28788 (write_digit): New function.
28789 (write_digit_row): New function.
28790 (dump_location_range): New function.
28791 (dump_labelled_location_range): New function.
28792 (dump_location_info): New function.
28793 * input.h (dump_location_info): New prototype.
28794 * toplev.c (compile_file): Handle flag_dump_locations.
28796 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
28798 * gimple-expr.h (is_gimple_constant): Reorder.
28799 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
28801 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
28803 * combine.c (simplify_set): When generating a CC set, if the
28804 source already is in the correct mode, do not wrap it in a
28805 compare. Simplify the rest of that code.
28807 2015-05-13 Richard Biener <rguenther@suse.de>
28809 PR tree-optimization/66123
28810 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
28813 2015-05-13 Richard Biener <rguenther@suse.de>
28815 PR middle-end/66110
28816 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
28818 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
28820 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28822 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
28823 * aclocal.m4: Regenerated with automake-1.11.6.
28825 2015-05-13 Tom de Vries <tom@codesourcery.com>
28827 PR tree-optimization/66010
28828 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
28829 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
28830 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
28831 and rval based on do_deref.
28833 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
28836 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
28837 link time constants into adress expressions and therefore set
28840 2015-05-13 Jakub Jelinek <jakub@redhat.com>
28843 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
28844 Use SWI248 iterator instead of SWI.
28845 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
28846 Use eq_attr "alternative" "0" instead of match_test in
28847 length_immediate attribute computation.
28848 (*mulvhi4, *mulvhi4_1): New define_insns.
28851 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
28852 SIGNED to get precision of non-negative value.
28854 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
28857 * function.c (diddle_return_value_1): Process bounds first.
28858 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
28861 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
28863 PR rtl-optimization/64616
28864 * loop-invariant.c (can_move_invariant_reg): New.
28865 (move_invariant_reg): Call above new function to decide whether
28866 instruction can just be moved, skipping creation of temporary
28869 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
28871 PR target/pr66047.c
28872 * i386.c (ix86_function_sseregparm): Only return -1 if local function
28873 with implied regparm is called from -mno-sse function.
28874 (init_cumulative_args): Output error if ix86_function_sseregparm
28875 return -1 and SSE register would be needed.
28876 (function_arg_advance_32): Likewise.
28877 (function_arg_32): Likewise.
28878 * i386.h (ix86_args): Add decl field.
28880 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
28883 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
28884 inlines across optimization boundary.
28886 2015-05-12 Jason Merrill <jason@redhat.com>
28888 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
28889 string literal and macro name.
28891 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
28893 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
28894 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
28895 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
28897 2015-05-12 David Malcolm <dmalcolm@redhat.com>
28899 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
28900 (-Wmisleading-indentation): New option.
28901 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
28903 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
28905 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
28906 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
28907 (alpha_extract_integer): Ditto.
28908 (alpha_legitimate_constant_p): Ditto.
28909 (alpha_split_tmode_pair): Ditto.
28910 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
28911 (alpha_expand_mov): Ditto.
28912 (print_operand): Remove handling of 'H' modifier.
28913 <case 'm'>: Remove CONST_DOUBLE handling.
28914 (summarize_insn): Handle CONST_WIDE_INT.
28915 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
28917 (movti): Handle CONST_WIDE_INT.
28918 * config/alpha/constraints.md ('H'): Remove constraint definition.
28919 ('G'): Do not match MODE_FLOAT class.
28920 * config/alpha/predicates.md (const0_operand): Also match
28922 (non_add_const_operand): Ditto.
28923 (non_zero_const_operand): Ditto.
28924 (some_operand): Ditto.
28925 (input_operand): Ditto. Handle CONST_WIDE_INT.
28926 (and_operand): Do not match const_double.
28927 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
28929 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
28932 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
28933 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
28934 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
28935 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
28936 is_mm_seq_cst, is_mm_sync): New accessor functions.
28937 * builtins.c (expand_builtin_sync_operation,
28938 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
28939 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
28940 (get_memmodel, expand_builtin_atomic_compare_exchange,
28941 expand_builtin_atomic_load, expand_builtin_atomic_store,
28942 expand_builtin_atomic_clear): Use new accessor routines.
28943 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
28944 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
28945 (maybe_emit_sync_lock_test_and_set): Use new accessors and
28946 MEMMODEL_SYNC_ACQUIRE.
28947 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
28948 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
28949 expand_atomic_store): Use new accessors.
28950 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
28951 * tsan.c (instrument_builtin_call): Update check for memory model beyond
28952 final enum to use MEMMODEL_LAST.
28953 * c-family/c-common.c: Use new accessor for memmodel_base.
28954 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
28956 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
28957 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
28958 mem_thread_fence, *dmb): Likewise.
28959 * config/alpha/alpha.c (alpha_split_compare_and_swap,
28960 alpha_split_compare_and_swap_12): Likewise.
28961 * config/arm/arm.c (arm_expand_compare_and_swap,
28962 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
28963 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
28964 atomic_loaddi): Likewise.
28965 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
28967 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
28968 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
28970 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
28971 atomic_store<mode>, atomic_compare_and_swap<mode>,
28972 atomic_exchange<mode>): Use new accessors.
28973 * config/mips/mips.c (mips_process_sync_loop): Likewise.
28974 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
28975 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
28976 rs6000_post_atomic_barrier): Add new cases.
28977 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
28978 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
28979 (atomic_load<mode>): Add new cases and use new accessors.
28980 (store_quadpti): Add new cases.
28981 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
28983 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
28984 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
28987 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
28989 * ipa-devirt.c (type_with_linkage_p): New function.
28990 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
28992 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
28993 (can_be_name_hashed_p): Simplify.
28994 (hash_odr_name): Check that type has linkage before checking if it is
28996 (types_same_for_odr): Likewise.
28997 (odr_name_hasher::equal): Likewise.
28998 (odr_subtypes_equivalent_p): Likewise.
28999 (warn_types_mismatch): Likewise.
29000 (get_odr_type): Likewise.
29001 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
29002 * ipa-utils.h (odr_type_p): Move offline.
29003 * tree.c (need_assembler_name_p): Fix handling of types
29005 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
29007 2015-05-12 David Malcolm <dmalcolm@redhat.com>
29009 * timevar.c (timevar_enable): Delete in favor of...
29010 (g_timer): New global.
29011 (struct timevar_def): Move to timevar.h inside class timer.
29012 (struct timevar_stack_def): Likewise.
29013 (timevars): Delete global in favor of field "m_timevars" within
29014 class timer in timevar.h
29015 (stack): Likewise, in favor of field "m_stack".
29016 (unused_stack_instances): Likewise, in favor of field
29017 "m_unused_stack_instances".
29018 (start_time): Likewise, in favor of field "m_start_time".
29019 (get_time): Eliminate check for timevar_enable.
29020 (timer::timer): New function, built from part of timevar_init.
29021 (timevar_init): Rewrite idempotency test from using
29022 "timevar_enable" bool to using dynamic allocation of "g_timer".
29023 Move rest of implementation into timer's constructor.
29024 (timevar_push_1): Rename to...
29025 (timer::push): ...this, adding "m_" prefixes to variables that
29026 are now fields of timer.
29027 (timevar_pop_1): Likewise, rename to...
29028 (timer::pop): ...this, and add "m_" prefixes.
29029 (timevar_start): Replace test for "timevar_enable" with one for
29030 "g_timer", and move bulk of implementation to...
29031 (timer::start): ...here, adding "m_" prefixes.
29032 (timevar_stop): Likewise, from here...
29033 (timer::stop): ...to here.
29034 (timevar_cond_start): Likewise, from here...
29035 (timer::cond_start): ...to here.
29036 (timevar_cond_stop): Likewise, from here...
29037 (timer::cond_stop): ...to here.
29038 (validate_phases): Rename to...
29039 (timer::validate_phases): ...this, and add "m_" prefixes. Make
29040 locals "total" and "tv" const.
29041 (timevar_print): Rename to...
29042 (timer::print): ...this, and add "m_" prefixes. Make locals
29043 "total" and "tv" const. Eliminate test for timevar_enable.
29044 * timevar.h (timevar_enable): Eliminate.
29045 (g_timer): New declaration.
29046 (timevar_push_1): Eliminate.
29047 (timevar_pop_1): Eliminate.
29048 (timevar_print): Eliminate.
29049 (class timer): New class.
29050 (timevar_push): Rewrite to use g_timer.
29051 (timevar_pop): Likewise.
29052 * toplev.c (toplev::~toplev): Likewise.
29054 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
29056 * arm-protos.h (arm_sched_autopref): Delete.
29057 (tune_params): Re-organize, use enums for flag values.
29058 (FUSE_OPS): New macro.
29059 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
29060 (ARM_PREFETCH_BENEFICIAL): Likewise.
29061 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
29062 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
29063 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
29064 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
29065 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
29066 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
29067 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
29068 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
29070 (arm_option_override, thumb2_reorg, arm_print_tune_info)
29071 (aarch_macro_fusion_pair_p): Update uses of current_tune.
29072 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
29074 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
29076 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
29079 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
29080 Sandra Loosemore <sandra@codesourcery.com>
29082 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
29084 (REG_CLASS_NAMES): Add "IJMP_REGS".
29085 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
29086 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
29087 use new "c" register constraint.
29088 * config/nios2/constraint.md (c): New register constraint
29089 corresponding to IJMP_REGS.
29091 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29093 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
29094 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
29095 define_splits): Delete, revamp, transmogrify into ...
29096 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
29097 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
29098 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
29101 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29103 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
29104 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
29106 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29108 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
29109 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
29110 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
29111 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
29112 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
29113 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
29114 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
29115 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
29116 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
29117 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
29118 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
29119 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
29120 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
29121 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
29122 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
29123 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
29124 and 30 corresponding splitters): Delete.
29126 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29128 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
29131 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29133 * combine.c (recog_for_combine_1): New function, factored out
29134 from recog_for_combine.
29135 (change_zero_ext): New function.
29136 (recog_for_combine): If recog fails, try again with the pattern
29137 modified by change_zero_ext; if that still fails, restore the
29140 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29142 * combine.c (get_undo_marker): New function.
29143 (undo_to_marker): New function, largely factored out from ...
29144 (undo_all): ... this. Adjust.
29146 2015-05-12 Richard Biener <rguenther@suse.de>
29148 PR tree-optimization/66101
29149 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
29150 fixup if we turn a loop exit edge to a fallthru edge.
29152 2015-05-12 Richard Biener <rguenther@suse.de>
29154 PR tree-optimization/37021
29155 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
29156 (SLP_TREE_TWO_OPERATORS): New define.
29157 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
29158 SLP_TREE_TWO_OPERATORS.
29159 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
29161 (vect_build_slp_tree): Adjust.
29162 (vect_analyze_slp_cost_1): Likewise.
29163 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
29164 emitting two vector stmts and mixing the results.
29166 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
29168 * call.c (print_z_candidates): Remove dead code.
29170 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29172 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
29173 and zEC12_simple_fp.
29174 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
29177 2015-05-12 Tom de Vries <tom@codesourcery.com>
29179 PR tree-optimization/66010
29180 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
29182 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
29183 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
29184 va_lists are passed, and remove corresponding handling.
29185 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
29186 do_deref argument to ifn_va_arg.
29187 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
29190 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29193 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
29194 REG before taking its REGNO.
29196 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
29198 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
29199 rsp->sign_bit_copies and rsp->nonzero_bits into ...
29200 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
29201 present to get more accurate information about the number of sign bit
29202 copies and non zero bits.
29204 2015-05-12 Richard Biener <rguenther@suse.de>
29206 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
29207 do not allow unrolling.
29209 2015-05-11 Richard Henderson <rth@redhat.com>
29211 * config/i386/i386-modes.def (CCP): New.
29212 * config/i386/i386.c (put_condition_code): Handle it.
29213 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
29215 2015-05-11 Richard Henderson <rth@redhat.com>
29217 * target.def (md_asm_clobbers): Replace with...
29218 (md_asm_adjust): this.
29219 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
29220 (TARGET_MD_ASM_ADJUST): New.
29221 * tm.texi: Rebuild.
29222 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
29223 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
29224 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
29226 * cfgexpand.c (check_operand_nalternatives): Accept vector of
29227 constraints instead of lists of outputs and inputs.
29228 (expand_asm_stmt): Save and restore input_location around the
29229 body of the function. Move asm data into vectors instead of
29230 building tree lists. Generate cleanup sequences as needed,
29231 rather than waiting til the end. Use new md_asm_adjust hook.
29233 * config/vxworks.c: Include vec.h before target.h.
29234 * gimple.c: Likewise.
29235 * incpath.c: Likewise.
29236 * mode-switching.c: Likewise.
29238 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
29239 (cris_md_asm_adjust): this.
29240 (TARGET_MD_ASM_CLOBBERS): Remove.
29241 (TARGET_MD_ASM_ADJUST): New.
29242 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
29243 (ix86_md_asm_adjust): this.
29244 (TARGET_MD_ASM_CLOBBERS): Remove.
29245 (TARGET_MD_ASM_ADJUST): New.
29246 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
29247 (mn10300_md_asm_adjust): this.
29248 (TARGET_MD_ASM_CLOBBERS): Remove.
29249 (TARGET_MD_ASM_ADJUST): New.
29250 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
29251 (rs6000_md_asm_adjust): this.
29252 (TARGET_MD_ASM_CLOBBERS): Remove.
29253 (TARGET_MD_ASM_ADJUST): New.
29254 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
29255 (visium_md_asm_adjust): this.
29256 (TARGET_MD_ASM_CLOBBERS): Remove.
29257 (TARGET_MD_ASM_ADJUST): New.
29259 2015-05-11 Richard Henderson <rth@redhat.com>
29261 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
29262 if noutputs is zero.
29263 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
29265 * cfgexpand.c (expand_asm_operands): Merge into...
29266 (expand_asm_stmt): ... here.
29268 * cfgexpand.c (expand_asm_operands): Don't call
29269 resolve_asm_operand_names.
29270 * stmt.c (resolve_asm_operand_names): Clarify block comment.
29272 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
29274 * dwarf2out.c (gen_member_die): Sanity check that we access
29275 TYPE_MAIN_VARIANT for TYPE_METHODS.
29276 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
29277 checking TYPE_METHODS.
29278 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
29280 (build_distinct_type_copy): Clear TYPE_METHODS.
29281 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
29282 (verify_type): Allow TYPE_METHODS to be error_mark_node.
29283 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
29285 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
29287 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
29288 (emit_pattern_before_setloc): Likewise.
29290 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
29292 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
29293 for define_peephole2s.
29294 (get_peephole2_pattern): New function.
29295 (main): Use it. Call validate_pattern.
29297 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
29299 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
29300 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
29301 (Last callee saved reg is different for AVR_TINY architecture)
29303 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
29305 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
29306 when looking for memory references.
29308 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
29311 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
29312 via function pointers.
29314 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
29316 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
29317 indirect call by forcing address into a pseudo with -fno-plt.
29318 * common.opt (flag_plt): New option.
29319 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
29320 ([-fno-plt]): Document.
29322 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
29325 * config/rs6000/option-defaults.h: Add space between string literal
29328 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
29330 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
29331 accross ARM targets.
29333 2015-05-11 Christian Bruel <christian.bruel@st.com>
29335 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
29336 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
29338 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
29340 PR rtl-optimization/66076
29341 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
29342 Don't grow the heap array if it is already big enough from a
29343 previous iteration.
29345 2015-05-11 Christian Bruel <christian.bruel@st.com>
29347 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
29348 (is_called_in_ARM_mode): Remove.
29349 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
29350 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
29351 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
29352 arm_declare_function_name.
29354 2015-05-11 Christian Bruel <christian.bruel@st.com>
29356 * config/arm/arm.c (arm_option_override): Reoganized and split into :
29357 (arm_option_params_internal); New function.
29358 (arm_option_check_internal): New function.
29359 (arm_option_override_internal): New function.
29360 (thumb_code, thumb1_code): Remove.
29361 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
29362 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
29363 (thumb_code, thumb1_code): Remove.
29364 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
29366 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
29368 * config/alpha/alpha.c (alpha_emit_set_const_1)
29369 (alpha_emit_set_long_const, alpha_extract_integer)
29370 (alpha_legitimate_constant_p, alpha_split_const_mov)
29371 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
29372 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29373 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
29375 * config/alpha/predicates.md (mode_mask_operand): Do not match
29377 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29378 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
29379 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
29380 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29381 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
29383 2015-05-11 Jakub Jelinek <jakub@redhat.com>
29386 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
29387 default_binds_local_p_2.
29388 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
29389 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
29391 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29393 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
29395 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29397 Patch by Richard Biener
29398 * coverage.c (coverage_obj_init): Delay building of type variant
29399 until the type is finished.
29401 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29403 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
29404 mismatch between C and C++ type; compoare correctly ARG_TYPES
29405 for non-prototypes and output correctly parameter index for METHOD_TYPE.
29406 (odr_types_equivalent_p): Fix wording of warning about attributes;
29407 it is OK to match prototype and non-prototype.
29409 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29411 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
29412 TYPE_ARG_TYPES list.
29413 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
29414 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
29416 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29418 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
29419 * tree.h (is_lang_specific): Constify.
29421 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
29423 PR tree-optimization/64454
29424 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
29427 2015-05-08 Jason Merrill <jason@redhat.com>
29429 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
29430 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
29431 config/darwin.h, config/darwin9.h, config/elfos.h,
29432 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
29433 config/microblaze/microblaze.h, config/mips/mips.h,
29434 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
29435 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
29436 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
29437 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
29438 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
29439 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
29440 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
29441 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
29442 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
29443 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
29444 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
29445 between string literal and macro name.
29447 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29449 * jump.c: Change argument types to rtx_insn *.
29452 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29454 * lra-constraints.c: Change argument type to rtx_insn *.
29456 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29458 * df-problems.c: Change argument type to rtx_insn *.
29460 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29462 * combine.c: Change argument type to rtx_insn *.
29464 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29467 * rtlanal.c: Change argument type to rtx_insn *.
29469 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29471 * sched-deps.c: Change argument types to rtx_insn *.
29472 * sched-int.h: Adjust.
29474 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29476 * dwarf2cfi.c: Change argument type to rtx_insn *.
29478 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29480 * ira.c (decrease_live_ranges_number): Changetype of local
29481 variable to rtx_insn *.
29482 * recog.c: Change argument types to rtx_insn *.
29485 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29487 * reorg.c: Change argument types to rtx_insn *.
29489 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29491 * ira-color.c: Change argument types to rtx_insn *.
29492 * lra-eliminations.c: Likewise.
29495 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29497 * gcse.c: Change argument types to rtx_insn *.
29499 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29501 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
29503 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29505 * emit-rtl.c (emit_debug_insn_before): Change argument type to
29509 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29511 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
29514 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29516 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
29519 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29521 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
29524 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29526 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
29529 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29531 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
29535 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29537 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
29541 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29543 * except.c (can_nonlocal_goto): Change type of argument to
29547 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29549 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
29552 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29554 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
29555 * cfgrtl.c (can_delete_label_p): Adjust.
29558 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29560 * reorg.c (stop_search_p): Change argument to rtx_insn *.
29562 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29564 * except.c (make_reg_eh_region_note): Change argument to
29566 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
29567 * except.h: Adjust.
29569 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29571 * mode-switching.c (commit_mode_sets): Change type of local
29572 variable from rtx to rtx_insn *.
29574 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
29576 * doc/install.texi (--enable-languages): Add missing jit and lto info.
29577 Add ^ to grep command.
29578 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
29579 arg to last gimple_simplify declaration. Add missing gimple_build
29580 declaration for built-in function case with four tree args.
29582 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
29583 Szabolcs Nagy <szabolcs.nagy@arm.com>
29585 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
29586 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
29587 (GNU_USER_DYNAMIC_LINKERN32): Update.
29589 2015-05-08 Richard Biener <rguenther@suse.de>
29591 PR tree-optimization/66036
29592 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
29593 Handle strided group loads.
29594 (vect_verify_datarefs_alignment): Likewise.
29595 (vect_enhance_data_refs_alignment): Likewise.
29596 (vect_analyze_group_access): Likewise.
29597 (vect_analyze_data_ref_access): Likewise.
29598 (vect_analyze_data_ref_accesses): Likewise.
29599 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
29600 (vectorizable_load): Likewise.
29602 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
29604 * config/rs6000/rs6000.md: Require operand inequality in one
29607 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
29608 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
29610 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
29612 * config/rx/rx.md (movdi, movdf): Likewise.
29613 Likewise for define_peephole2s.
29615 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
29617 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
29618 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
29619 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
29620 vtst_u64): Rewrite using gcc vector extensions.
29622 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
29624 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
29625 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
29627 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
29629 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
29631 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
29633 * config/glibc-stdint.h (OPTION_MUSL): Define.
29634 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
29635 Change the definition based on OPTION_MUSL for 64 bit targets.
29636 * config/linux.h (OPTION_MUSL): Redefine.
29637 * config/alpha/linux.h (OPTION_MUSL): Redefine.
29638 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
29639 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
29641 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
29642 Szabolcs Nagy <szabolcs.nagy@arm.com>
29644 * config.gcc (LIBC_MUSL): New tm_defines macro.
29645 * config/linux.h (OPTION_MUSL): Define.
29646 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
29647 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
29648 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29649 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29650 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29651 * config/linux.opt (mmusl): New option.
29652 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
29653 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29654 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29655 * configure: Regenerate.
29657 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
29658 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29661 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
29662 * config/i386/knetbsd-gnu64.h: New file.
29664 2015-05-08 Marek Polacek <polacek@redhat.com>
29667 * doc/invoke.texi: Document -Woverride-init-side-effects.
29669 2015-05-07 Marek Polacek <polacek@redhat.com>
29672 * doc/invoke.texi: Document -Wshift-negative-value.
29674 2015-05-06 Aditya Kumar <hiraditya@msn.com>
29676 * gcov-tool.c (do_merge): Refactore to remove int ret.
29677 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
29678 !type == FUNC to type != FUNC.
29679 * reload.h (struct target_reload): Changee to type of
29680 x_spill_indirect_levels from bool to unsigned char.
29682 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
29684 * rtl.h (always_void_p): New function.
29685 * gengenrtl.c (always_void_p): Likewise.
29686 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
29687 with code foo are always VOIDmode.
29688 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
29689 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
29690 compare-elim.c, config/aarch64/aarch64.c,
29691 config/aarch64/aarch64.md, config/alpha/alpha.c,
29692 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
29693 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
29694 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
29695 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
29696 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
29697 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
29698 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
29699 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
29700 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
29701 config/ia64/vect.md, config/iq2000/iq2000.c,
29702 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
29703 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
29704 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
29705 config/mep/mep.c, config/microblaze/microblaze.c,
29706 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
29707 config/mn10300/mn10300.c, config/msp430/msp430.c,
29708 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
29709 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
29710 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
29711 config/rs6000/altivec.md, config/rs6000/rs6000.c,
29712 config/rs6000/rs6000.md, config/rs6000/vector.md,
29713 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
29714 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
29715 config/sh/sh.md, config/sh/sh_treg_combine.cc,
29716 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
29717 config/spu/spu.md, config/stormy16/stormy16.c,
29718 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
29719 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
29720 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
29721 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
29722 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
29723 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
29724 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
29725 var-tracking.c: Update calls accordingly.
29727 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
29730 PR middle-end/54303
29731 * varasm.c (function_mergeable_rodata_prefix): New function.
29732 (mergeable_string_section): Use it.
29733 (mergeable_constant_section): Use it.
29735 2015-05-07 Jeff Law <law@redhat.com>
29738 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29739 simplifier to narrow arithmetic.
29740 * generic-match-head.c: (types_match, single_use): New functions.
29741 * gimple-match-head.c: (types_match, single_use): New functions.
29743 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29745 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
29748 2015-05-07 Richard Biener <rguenther@suse.de>
29750 PR tree-optimization/66002
29751 * passes.def: Schedule another pass_merge_phi after ifcombine, right
29754 2015-05-07 Marek Polacek <polacek@redhat.com>
29755 Martin Uecker <uecker@eecs.berkeley.edu>
29757 * doc/invoke.texi: Document -fsanitize=bounds-strict.
29758 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
29759 into SANITIZE_NONDEFAULT.
29760 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
29762 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
29765 * config/alpha/alpha.c (alpha_override_options_after_change): New.
29766 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
29767 (alpha_override_options): Move align_loops, align_jumps and
29768 align_functions handling into alpha_override_options_after_change.
29770 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
29771 Chris Jones <chrisj@nvidia.com>
29772 Joshua Conner <jconner@nvidia.com>
29774 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
29775 linking of crtfastmath.o.
29776 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
29778 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
29780 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
29781 (cstore<mode>4_unsigned_imm): New expander.
29782 (cstore<mode>4): Remove empty constraint strings. Use the new
29785 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
29788 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
29791 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
29793 * config/aarch64/geniterators.sh: Use standard BRE in sed.
29795 2015-05-06 Alan Modra <amodra@gmail.com>
29798 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
29799 (UNSPEC_NOP): Define.
29800 (reload_vsx_from_gpr<mode>): Add missing DONE.
29801 (reload_gpr_from_vsx<mode>): Likewise.
29802 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
29803 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
29805 2015-05-06 Christian Bruel <christian.bruel@st.com>
29808 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
29809 align_jumps, align_functions into aarch64_override_options_after_change.
29811 2015-05-06 Richard Biener <rguenther@suse.de>
29813 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
29814 vect_transform_slp_perm_load to check if we support a permutation
29815 for basic-block vectorization.
29817 2015-05-06 Nick Clifton <nickc@redhat.com>
29819 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
29820 used, even if it is not being used as a frame pointer.
29822 2015-05-05 Jason Merrill <jason@redhat.com>
29824 * dwarf2out.c (gen_member_die): Don't emit anything for an
29825 anonymous class constructor.
29827 2015-05-05 David Malcolm <dmalcolm@redhat.com>
29829 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
29830 that it reflects the block structure.
29831 (afdo_propagate_edge): Likewise.
29832 (afdo_calculate_branch_prob): Likewise.
29833 (afdo_annotate_cfg): Likewise.
29834 * cfgcleanup.c (equal_different_set_p): Likewise.
29835 (try_crossjump_to_edge): Likewise.
29836 * cgraph.c (cgraph_node::verify_node): Likewise.
29837 * cgraphunit.c (expand_all_functions): Likewise.
29838 * config/i386/i386.c (ix86_expand_copysign): Likewise.
29839 (exact_dependency_1): Likewise.
29840 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
29841 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
29842 * gensupport.c (process_define_subst): Likewise.
29843 * lto-wrapper.c (merge_and_complain): Likewise.
29844 * tree-if-conv.c (if_convertible_bb_p): Likewise.
29845 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
29846 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
29847 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
29848 * tree-vect-loop.c (vectorizable_reduction): Likewise.
29849 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
29850 * tree-vect-stmts.c (vectorizable_shift): Likewise.
29851 * tree-vrp.c (vrp_finalize): Likewise.
29852 * tree.c (variably_modified_type_p): Likewise.
29854 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
29856 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
29857 on darwin12 and later.
29858 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
29859 file to pass -rdynamic on darwin12 and later.
29860 * config/darwin.opt (rdynamic): Add.
29862 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29864 * doc/extend.texi (C Extensions): Update menu for moved Variable
29865 Attributes and Type Attributes sections.
29867 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29870 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
29871 if rep_8byte stringop strategy was specified for 32-bit target.
29873 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
29876 * config/i386/i386.md (vector convert to float spltiter): Check for
29877 xmm16+, when splitting scalar float conversion.
29878 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
29880 2015-05-05 Nick Clifton <nickc@redhat.com>
29882 * config/msp430/msp430-opts.h (enum msp430_regions): New.
29883 * config/msp430/msp430.c (msp430_override_options): Complain if
29884 -mcode-region or -mdata-region is used on a non MSP430X.
29885 (msp430_section_attr): New function. Checks lower, upper and
29887 (msp430_attribute_table): Add lower, upper and either.
29888 (gen_prefix): New function. Generates a prefix for a section
29890 (msp430_select_section): New function - handles the choice of
29891 section for an object. Takes into account memory region
29892 attributes and options.
29893 (msp430_function_section): Use gen_prefix.
29894 (TARGET_SECTION_TYPE_FLAGS): Define.
29895 (msp430_section_type_flags): New function.
29896 (TARGET_ASM_UNIQUE_SECTION): Define.
29897 (msp430_unique_section): New function.
29898 (msp430_output_aligned_decl_common): New function.
29899 (msp430_do_not_relax_short_jumps): New function.
29900 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
29902 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
29903 * config/msp430/msp430-protos.h
29904 (msp430_do_not_relax_short_jumps): New prototype.
29905 (msp430_output_aligned_decl_common): New prototype.
29906 * config/msp430/msp430.md (length): New attribute.
29907 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
29908 then use a long code sequence for short jumps.
29909 * config/msp430/msp430.opt (mcode-region): New.
29910 (mdata-region): New.
29911 * doc/invoke.texi: Document new options.
29912 * doc/extend.texi: Document new attributes.
29914 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
29916 * config/aarch64-protos.h (struct cpu_branch_cost): New.
29917 (tune_params): Add field branch_costs.
29918 (aarch64_branch_cost): Declare.
29919 * config/aarch64.c (generic_branch_cost): New.
29920 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
29921 (cortexa53_tunings): Likewise.
29922 (cortexa57_tunings): Likewise.
29923 (thunderx_tunings): Likewise.
29924 (xgene1_tunings): Likewise.
29925 (aarch64_branch_cost): Define.
29926 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
29928 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29930 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
29931 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
29932 * config/i386/i386.md: Ditto.
29933 * config/i386/winnt.c: Ditto.
29935 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
29937 * doc/extend.texi (__atomic Builtins): Move implementation details
29938 to the end of the description, rewrite opening paragraphs, state
29939 difference with __sync builtins, state C11/C++11 assumptions,
29940 weaken itemized descriptions, add explanation of memory model
29941 behaviour, expand description of compare-exchange, simplify text.
29943 2015-05-05 Renlin Li <renlin.li@arm.com>
29945 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
29947 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
29949 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
29950 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29951 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
29952 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29953 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
29954 * configure: Regenerate.
29955 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
29956 * doc/install.texi (aarch64*-*-*): Document new
29957 --enable-fix-cortex-a53-843419 option.
29958 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
29959 and -mno-fix-cortex-a53-843419 options.
29961 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29964 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
29966 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
29968 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
29969 fix overactive TYPE_MIN_VALUE check and add FIXME for type
29970 compatibility problems.
29972 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
29974 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
29976 (cbranchsi4_reg): New.
29977 * config/microblaze/microblaze.c
29978 (microblaze_expand_conditional_branch_reg): New.
29979 * config/microblaze/microblaze-protos.h
29980 (microblaze_expand_conditional_branch_reg): New prototype.
29982 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
29984 * config/microblaze/microblaze.md (peephole2): New.
29986 2015-05-04 Jeff Law <law@redhat.com>
29989 2015-05-04 Jeff Law <law@redhat.com>
29991 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29992 simplifier to narrow arithmetic.
29993 * generic-match-head.c: (types_match, single_use): New functions.
29994 * gimple-match-head.c: (types_match, single_use): New functions.
29996 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
29999 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
30000 (split_branches): Likewise.
30002 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
30004 * common.opt (fdelete-null-pointer-checks): Init to -1.
30005 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
30006 override flag_delete_null_pointer_checks default.
30007 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
30008 behavior re address zero. Better document target-specific behavior.
30009 (-fisolate-errneous-paths-dereference): Mention relationship to
30010 -fdelete-null-pointer-checks.
30012 2015-05-04 Jakub Jelinek <jakub@redhat.com>
30014 PR tree-optimization/65984
30015 * ubsan.c: Include tree-cfg.h.
30016 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
30017 stmt_could_throw_p test, rename can_throw variable to ends_bb.
30019 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
30021 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
30022 to CONST_DOUBLE_P predicate.
30023 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
30024 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
30025 allow only operands that satisfy standard_sse_constant_p predicate.
30026 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
30027 to CONST_DOUBLE_P predicate.
30029 2015-05-04 Jeff Law <law@redhat.com>
30031 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30032 simplifier to narrow arithmetic.
30033 * generic-match-head.c: (types_match, single_use): New functions.
30034 * gimple-match-head.c: (types_match, single_use): New functions.
30036 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
30038 * config/arm/arm.c: Restore bootstrap.
30040 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
30042 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
30043 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
30044 as CONST_WIDE_INT, not CONST_DOUBLE.
30045 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
30046 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
30047 (ix86_find_base_term): Do not check for CONST_DOUBLE.
30048 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
30049 (ix86_build_signbit_mask): Rewrite using wide ints.
30050 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
30051 (ix86_rtx_costs): Handle CONST_WIDE_INT.
30052 (find_constant): Ditto.
30053 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
30054 using gen_int_mode.
30055 * config/i386/predicates.md (x86_64_immediate_operand)
30056 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30057 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
30058 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30059 (const0_operand): Also match const_wide_int.
30060 (constm1_operand): Ditto.
30061 (const1_operand): Ditto.
30063 2015-05-04 Richard Biener <rguenther@suse.de>
30065 PR tree-optimization/65965
30066 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
30067 store groups at gaps.
30069 2015-05-04 Richard Biener <rguenther@suse.de>
30071 PR tree-optimization/65935
30072 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
30073 then make sure to apply that swapping to the IL.
30075 2015-05-04 Jakub Jelinek <jakub@redhat.com>
30077 * Makefile.in (PATCHLEVEL_c): New variable.
30078 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
30079 expand the same way as if DEVPHASE_c was non-empty.
30081 2015-05-04 Kai Tietz <ktietz@redhat.com>
30084 * lto-wrapper.c (run_gcc): Open filename
30087 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
30089 * doc/extend.texi (Variable Attributes, Type Attributes): Move
30090 sections up in file, to immediately after the Function Attributes
30093 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
30095 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
30097 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30099 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
30100 (insert_partition_copy_on_edge): Adjust.
30101 (insert_rtx_to_part_on_edge): Likewise.
30102 (insert_part_to_rtx_on_edge): Likewise.
30104 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30106 * function.c (set_return_jump_label): Change type of argument to
30108 * function.h (set_return_jump_label): Adjust.
30110 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30112 * reload.h (struct reg_equivs_t): Change type of init to
30114 * ira.c (fix_reg_equiv_init): Adjust.
30115 * reload1.c (eliminate_regs_1): Likewise.
30116 (init_eliminable_invariants): Likewise.
30118 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30120 * cselib.c (fp_setter_insn): Take a rtx_insn *.
30121 * cselib.h (fp_setter_insn): Adjust.
30123 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30125 * recog.c (struct validate_replace_src_data): Change type of
30126 insn field to rtx_insn *.
30127 (validate_replace_src_group): Change type of argument to rtx_insn *.
30128 * recog.h (validate_replace_src_group): Adjust.
30130 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30132 * haifa-sched.c: Change the type of some variables to rtx_insn *.
30133 * sched-deps.c: Likewise.
30134 * sched-int.h: Likewise.
30135 * sched-rgn.c: Likewise.
30136 * sel-sched.c: Likewise.
30138 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30141 * config/i386/i386.c: Change the type of some arguments to
30143 * config/arm/arm.c: Likewise.
30145 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30147 * lra-constraints.c: Change type of some arguments to rtx_insn *.
30149 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30151 * regcprop.c (kill_autoinc_value): Change type of argument to
30154 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30156 * genrecog.c (print_subroutine): Adjust.
30157 * recog.c (get_bool_attr_mask_uncached): Likewise.
30158 * recog.h (struct recog_data_d): Change the type of insn to
30161 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30163 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
30165 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30167 * df-problems.c (df_set_note): Change type of argument to
30170 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30172 * builtins.c (expand_builtin_trap): Change type of local
30173 variable to rtx_insn *.
30174 (add_sched_insns_for_speculation): Likewise.
30175 (ix86_emit_save_regs): Likewise.
30176 (get_scratch_register_on_entry): Likewise.
30177 (ix86_emit_restore_reg_using_pop): Likewise.
30178 (ix86_emit_leave): Likewise.
30179 (ix86_emit_restore_regs_using_mov): Likewise.
30180 (ix86_expand_epilogue): Likewise.
30182 (rl78_alloc_physical_registers_umul): Likewise.
30183 * cselib.c (discard_useless_locs): Likewise.
30184 (cselib_invalidate_regno): Likewise.
30185 (cselib_invalidate_mem): Likewise.
30186 * function.c (expand_function_start): Likewise.
30187 (emit_use_return_register_into_block): Likewise.
30188 * gcse.c: Likewise.
30189 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
30190 * ifcvt.c (noce_get_alt_condition): Likewise.
30191 * loop-doloop.c (doloop_condition_get): Likewise.
30192 * lra-constraints.c (inherit_in_ebb): Likewise.
30193 * modulo-sched.c (sms_schedule_by_order): Likewise.
30194 * recog.c (next_insn_tests_no_inequality): Likewise.
30195 * reorg.c (emit_delay_sequence): Likewise.
30196 (update_reg_dead_notes): Likewise.
30197 (fix_reg_dead_note): Likewise.
30198 (fill_slots_from_thread): Likewise.
30199 (delete_computation): Likewise.
30201 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
30203 * doc/extend.texi (Variable Attributes): Add menu and proper
30204 @nodes to subsections. Move Microsoft Windows attributes to
30205 their own subsection.
30206 (Type Attributes): Reorganize introduction to remove duplicate
30207 list of attributes. Add menu and proper @nodes to subsections.
30208 Alphabetize the main table of common attributes.
30210 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
30212 * match.pd: New simplification patterns.
30213 (x + (x & 1)) -> ((x + 1) & ~1)
30214 (x & ~(x & y)) -> ((x & ~y))
30215 (x | ~(x | y)) -> ((x | ~y))
30217 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30219 * target.def (attribute_table): Mention that struct attribute_spec
30220 is defined in tree-core.h rather than tree.h
30221 * doc/tm.texi: Regenerate.
30223 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
30225 * genrecog.c (test): Rename to rtx_test. Update rest of file
30228 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
30230 PR translation/65959
30231 * params.h (DEFPARAM): Rename msgid to nocmsgid.
30233 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30235 * config/aarch64/aarch64-protos.h (tune_params):
30236 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
30237 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
30238 Return value depending on target.
30239 (generic_tunings): Initialize new target settings.
30240 (cortexa53_tunings): Likewise.
30241 (cortexa57_tunings): Likewise.
30242 (thunderx_tunings): Likewise.
30243 (xgene1_tunings): Likewise.
30245 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30247 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
30248 Make Cortex-A53 shift costs more accurate.
30250 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30252 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
30255 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30257 * config/aarch64/aarch64.c (aarch64_rtx_costs):
30258 Calculate cost of op0 and op1 in PLUS and MINUS cases.
30260 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30262 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
30263 Add cost of op0 in the compare-with-fpzero case.
30265 2015-04-30 David Malcolm <dmalcolm@redhat.com>
30267 * builtins.c (fold_builtin_1): Remove spurious second
30269 * cgraph.h (symtab_node::get_availability): Likewise.
30270 * opts.c (common_handle_option): Remove spurious second semicolon.
30271 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
30272 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
30274 2015-04-30 Caroline Tice <cmtice@google.com>
30276 PR gcov-profile/65929
30277 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
30278 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
30279 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
30280 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
30281 * doc/tm.texi: Regenerate.
30282 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
30283 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
30284 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
30285 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
30287 2015-04-30 Marek Polacek <polacek@redhat.com>
30289 * varasm.c (handle_cache_entry): Fix logic.
30291 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30293 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
30294 (*extrsi5_insn_uxtw_alt): Likewise.
30295 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
30296 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
30299 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30301 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
30304 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30306 * config/aarch64/aarch64.md
30307 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
30308 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
30309 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
30310 appropriately. Handle alternative EON form.
30312 2015-04-30 Renlin Li <renlin.li@arm.com>
30314 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
30315 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
30317 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
30320 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
30321 -fstrict-aliasing boundaries.
30323 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30325 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
30326 and [SU]MNEGL patterns.
30328 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30330 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
30331 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
30332 combined arithmetic-shift ops. Properly handle all shift and extend
30333 operations that can occur in combination with PLUS/MINUS.
30334 Rename maybe_fma to compound_p.
30335 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
30336 arithmetic and shift operations.
30338 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30340 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
30341 rather than arith_shift cost when costing ADD/MINUS of an
30344 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
30347 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
30350 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
30352 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
30353 are for the same position.
30355 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
30357 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
30359 (vectorize_loops): Use it.
30361 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
30363 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
30364 for aggregate types.
30365 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
30366 type to be non_ODR.
30367 * tree.c (need_assembler_name_p): Compute mangled name for
30368 non-fundamental types and integer types.
30370 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
30372 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
30374 * expr.c (expand_expr_real_2): Likewise.
30376 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
30378 * tree.c (build_common_builtin_nodes): Do not build
30379 __builtin_alloca_with_align as equivalent of library alloca.
30381 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
30383 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
30384 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
30386 * tree.c: Include print-tree.h and ipa-utils.h
30387 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
30388 (free_lang_data_in_cgraph): Call verify_type.
30389 (verify_type_variant): New function.
30390 (verify_type): New function.
30391 * tree.h (verify_type): Declare.
30393 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
30395 * config/mips/mips-cpus.def: (mips4): Change default processor
30396 from PROCESSOR_R8000 to PROCESSOR_R10000.
30398 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
30400 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
30401 la/jalr instead of jal.
30403 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
30406 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
30407 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
30408 (setcc+movzbl peephole2): Check also clobbered reg.
30409 (setcc+andl peephole2): Ditto.
30411 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
30414 * config/nvptx/mkoffload.c (target_ilp32): New variable.
30415 (main): Set it depending on "-foffload-abi=[...]".
30416 (compile_native, main): Use it to pass "-m32" or "-m64" to the
30419 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
30422 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
30423 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
30424 Flip lane index back at assembly time for bigendian.
30426 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
30428 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
30429 * gimplify.c (gimplify_omp_workshare): Use it.
30431 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30433 * Makefile.in (build/genrecog.o): Depend on inchash.h.
30434 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
30436 * genrecog.c: Rewrite most of the code except for the third page.
30438 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30440 * inchash.h, inchash.c: Include bconfig.h for build objects.
30441 * Makefile.in (build/inchash.o): New rule.
30443 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
30446 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
30447 number in type attribute expression.
30449 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30451 * loop-iv.c (canon_condition): Generalize to all types of integer
30454 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
30456 * gimple-walk.c: Prune duplicate or unneeded includes.
30457 (walk_gimple_asm): Only call parse_input_constraint or
30458 parse_output_constraint if their findings are used.
30459 Honour parse_input_constraint and parse_output_constraint
30462 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
30464 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
30466 2015-04-29 Tom de Vries <tom@codesourcery.com>
30468 PR tree-optimization/65893
30469 * passes.def (pass_all_optimizations): Move pass_stdarg to after
30472 2015-04-29 Richard Biener <rguenther@suse.de>
30474 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
30475 compute GROUP_SIZE for basic-block SLP.
30476 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
30477 take into account gaps.
30478 (vect_get_mask_element): Properly reject references to previous
30480 (vect_transform_slp_perm_load): Likewise.
30482 2015-04-29 Christian Bruel <christian.bruel@st.com>
30485 * config/i386/i386.c (ix86_default_align): New function.
30486 (ix86_override_options_after_change): Call ix86_default_align.
30487 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
30488 (ix86_override_options_after_change): New function.
30490 2015-04-28 Jeff Law <law@redhat.com>
30492 * tree-ssa-dom.c (record_equality); Fix comment typos.
30494 2015-04-28 Tom de Vries <tom@codesourcery.com>
30496 PR tree-optimization/65887
30497 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
30499 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
30501 * doc/extend.texi (Declaring Attributes of Functions): Split into
30502 subsections by target. Alphabetize the table of common attributes.
30503 Rewrite some of the introductory text to reflect the new structure.
30504 Update some cross-references to point to the new subsections.
30505 (Attribute Syntax): Put paragraph about "__" naming here. Remove
30506 duplicate copies in the discussion of function, label, and type
30509 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
30512 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
30514 2015-04-28 Jason Merrill <jason@redhat.com>
30517 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
30518 (finalize_type_size): Respect TYPE_USER_ALIGN.
30519 (layout_type) [ARRAY_TYPE]: Likewise.
30521 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
30523 * config/arm/arm.md (*arm_movt): Fix type attribute.
30524 (*cmpsi_shiftsi): Likewise.
30525 (*cmpsi_shiftsi_swp): Likewise.
30526 (*movsicc_insn): Likewise.
30527 (*cond_move): Likewise.
30528 (*if_plus_move): Likewise.
30529 (*if_move_plus): Likewise.
30530 (*if_arith_move): Likewise.
30531 (*if_move_arith): Likewise.
30532 (*if_shift_move): Likewise.
30533 (*if_move_shift): Likewise.
30534 (*arm_movtas_ze): Likewise.
30535 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
30536 redundancy and type attribute.
30537 (*thumb2_movsi_insn): Fix type attribute.
30538 (*thumb2_addsi_short): Likewise.
30539 (thumb2_addsi3_compare0): Likewise.
30540 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
30541 attributes accordingly.
30543 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
30546 * function.c (pad_to_arg_alignment): Add parentheses.
30548 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
30550 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
30551 libgcc/config/frv/elf-lib.h.
30553 2015-04-28 Tom de Vries <tom@codesourcery.com>
30555 * tree-call-cdce.c: Fix example in header comment.
30557 2015-04-28 Richard Biener <rguenther@suse.de>
30559 PR tree-optimization/62283
30560 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
30561 fails fatally and we are vectorizing a basic-block simply
30562 cause the child to be constructed piecewise.
30563 (vect_analyze_slp_cost_1): Adjust.
30564 (vect_detect_hybrid_slp_stmts): Likewise.
30565 (vect_bb_slp_scalar_cost): Likewise.
30566 (vect_get_constant_vectors): For piecewise constructed
30567 constants place them after the last def.
30568 (vect_get_slp_defs): Adjust.
30569 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
30570 externals for basic-block vectorization.
30572 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
30575 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
30577 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
30578 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
30579 (AARCH64_TUNE_FMA_STEERING): Likewise.
30580 * config/aarch64/aarch64-cores.def: Set
30581 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
30582 FMUL/FMADD instructions.
30583 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
30584 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
30585 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
30586 * config/aarch64/cortex-a57-fma-steering.h: New file.
30587 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
30589 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
30591 * gensupport.c (std_preds): Add missing codes to address_operand entry.
30593 2015-04-28 Richard Biener <rguenther@suse.de>
30595 PR tree-optimization/65851
30596 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
30597 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
30598 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
30599 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
30600 (ccp_visit_phi_node): Adjust.
30601 (evaluate_stmt): For simplifications to SSA names return its
30602 lattice value if that isn't VARYING. Return immediately when
30603 simplified to a constant.
30604 (visit_assignment): Adjust.
30605 (ccp_visit_stmt): Likewise.
30607 2015-04-28 Tom de Vries <tom@codesourcery.com>
30609 PR tree-optimization/65818
30610 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
30613 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30615 * calls.c (save_fixed_argument_area): Don't check
30616 ARGS_GROW_DOWNWARD with the preprocessor.
30617 (restore_fixed_argument_area): Likewise.
30618 (mem_overlaps_already_clobbered_arg_p): Likewise.
30619 (check_sibcall_argument_overlap): Likewise.
30620 (expand_call): Likewise.
30621 (emit_library_call_value_1): Likewise.
30622 (store_one_arg): Likewise.
30623 * function.c (assign_parms): Likewise.
30624 (locate_and_pad_parm): Likewise.
30625 (pad_to_arg_alignment): Likewise.
30626 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
30628 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30630 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
30631 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
30632 * calls.c (save_fixed_argument_area): Don't chekc if
30633 ARGS_GROW_DOWNWARD is defined.
30634 (restore_fixed_argument_area): Likewise.
30635 (mem_overlaps_already_clobbered_arg_p): Likewise.
30636 (check_sibcall_argument_overlap): Likewise.
30637 (expand_call): Likewise.
30638 (emit_library_call_value_1): Likewise.
30639 (store_one_arg): Likewise.
30640 * function.c (assign_parms): Likewise.
30641 (locate_and_pad_parm): Likewise.
30642 (pad_to_arg_alignment): Likewise.
30643 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
30645 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30647 * defaults.h (gen_epilogue): New function.
30648 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
30650 * cfgrtl.c (cfg_layout_finalize): Likewise.
30651 * df-scan.c: Likewise.
30652 * function.c (thread_prologue_and_epilogue_insns): Likewise.
30653 (reposition_prologue_and_epilogue_notes): Likewise.
30654 * reorg.c (find_end_label): Likewise.
30655 * toplev.c: Likewise.
30657 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30659 * bb-reorder.c (HAVE_return): Don't check if its undefined.
30660 * defaults.h (gen_simple_return): New function.
30661 (gen_simple_return): Likewise.
30662 (HAVE_return): Add default definition to false.
30663 (HAVE_simple_return): Likewise.
30664 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
30665 HAVE_return and HAVE_simple_return are defined.
30666 * function.c (gen_return_pattern): Likewise.
30667 (convert_jumps_to_returns): Likewise.
30668 (thread_prologue_and_epilogue_insns): Likewise.
30669 * reorg.c (find_end_label): Likewise.
30670 (dbr_schedule): Likewise.
30671 * shrink-wrap.c: Likewise.
30672 * shrink-wrap.h: Likewise.
30674 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30676 * defaults.h (EPILOGUE_USES): Add default definition of false.
30677 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
30678 * resource.c (init_resource_info): Likewise.
30680 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30682 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
30684 * dwarf2out.c (field_byte_offset): REmove check if
30685 PCC_BITFIELD_TYPE_MATTERS is defined.
30686 * stor-layout.c (layout_decl): Likewise.
30687 (update_alignment_for_field): Likewise.
30688 (place_field): Likewise.
30690 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30692 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
30694 * regrename.c (check_new_reg_p): Remove check if
30695 HARD_REGNO_RENAME_OK is defined.
30696 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
30698 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30700 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
30701 * cse.c (fold_rtx): Likewise.
30702 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
30703 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
30704 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
30705 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
30706 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
30707 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
30708 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
30709 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
30710 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
30711 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
30713 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
30714 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
30715 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
30716 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
30717 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
30718 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
30719 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
30720 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
30721 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
30722 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
30723 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
30724 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
30725 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
30726 * doc/tm.texi: Regenerate.
30727 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
30728 either true or false.
30730 2015-04-27 Jeff Law <law@redhat.com>
30732 PR tree-optimization/65217
30733 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
30734 of them has a single use, make sure it is the LHS of the implied
30737 2015-04-28 Alan Modra <amodra@gmail.com>
30740 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
30741 (offsettable_ok_by_alignment): Use minimum of decl and toc
30742 pointer alignment. Replace dead code with assertion.
30743 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
30744 case if size exceeds toc pointer alignment.
30745 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
30746 (rs6000_emit_move): Likewise.
30747 * configure.ac: Add linker toc pointer alignment check.
30748 * configure: Regenerate.
30749 * config.in: Regenerate.
30751 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
30753 * config.gcc: Add h8300-*-linux.
30754 * config/h8300/linux.h: New.
30755 * config/h8300/t-linux: New.
30756 * config/h8300/h8300.c (h8300_option_override): Normal mode
30757 is not supported for h8300-*-linux.
30758 (h8300_file_start): Target priority change.
30759 (get_shift_alg): Likewise.
30760 (h8300_shift_need_scratch_p): Likewise.
30761 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
30762 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
30764 2015-04-27 Caroline Tice <cmtice@google.com>
30766 * final.c (final_scan_insn): Output cold_function_name as function
30768 * varasm.c (cold_function_name): Make global.
30769 (assemble_start_function): Re-set cold_function_name.
30770 (assemble_end_function): Output cold partition size.
30771 * varasm.h (cold_function_name): Declare global.
30773 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
30775 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
30776 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
30778 (*movxi_internal_avx512f): Ditto.
30779 (define_split): Check for xmm16+, when splitting scalar float_extend.
30780 (*extendsfdf2_mixed): Use "v" constraint.
30781 (define_split): Check for xmm16+, when splitting scalar float_truncate.
30782 (*truncdfsf_fast_sse): Use "v" constraint.
30783 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
30784 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
30785 (define_peephole2): Check for xmm16+, when converting scalar
30787 (define_peephole2): Check for xmm16+, when converting scalar
30789 (*fop_<mode>_comm_mixed): Use "v" constraint.
30790 (*fop_<mode>_comm_sse): Ditto.
30791 (*fop_<mode>_1_mixed): Ditto.
30792 (*sqrt<mode>2_sse): Ditto.
30793 (*ieee_s<ieee_maxmin><mode>3): Ditto.
30795 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30797 * combine.c (simplify_if_then_else): Use std::swap instead
30798 of manually swapping.
30799 (known_cond): Likewise.
30800 (simplify_comparison): Likewise.
30802 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
30805 * config/rs6000/htm.md: Remove all define_expands.
30806 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
30807 UNSPECV_HTM_TABORTWCI): Remove.
30808 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
30809 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
30810 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
30811 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
30812 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
30813 tabortwci_internal): Remove define_insns.
30814 (tabort<wd>c, tabort<wd>ci): New define_insns.
30815 (tabort): Use gpc_reg_operand.
30816 (tcheck): Remove operand.
30817 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
30818 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
30820 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
30821 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
30822 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
30823 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
30824 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
30825 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
30826 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
30827 (tcheck): Remove builtin argument.
30828 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
30830 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
30831 tabortdc and tabortdci builtins when not in 64-bit mode.
30832 Modify code to handle the loss of the HTM define_expands.
30833 Emit code to copy the CR register to TARGET.
30834 (htm_init_builtins): Modify code to handle the loss of the HTM
30836 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
30837 (RS6000_BTC_64BIT): Likewise.
30838 (RS6000_BTC_CR): New macro.
30839 * doc/extend.texi: Update documentation for htm builtins.
30841 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30843 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
30844 of manually swapping.
30845 (simplify_associative_operation): Likewise.
30846 (simplify_binary_operation): Likewise.
30847 (simplify_plus_minus): Likewise.
30848 (simplify_relational_operation): Likewise.
30849 (simplify_ternary_operation): Likewise.
30851 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
30853 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
30854 (xs_hi_nonmemory_operand): Remove error.
30855 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
30856 general_operand rather than xs_hi_general_operand.
30858 2015-04-27 Richard Biener <rguenther@suse.de>
30860 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
30861 (record_equivalences_from_stmt): Valueize rhs.
30862 (record_equality): Canonicalize x and y order via
30863 tree_swap_operands_p. Do not swap operands for same loop depth.
30865 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
30869 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
30870 Add hint how to use own spec file.
30872 2015-04-27 Jakub Jelinek <jakub@redhat.com>
30874 PR tree-optimization/65875
30875 * tree-vrp.c (update_value_range): If in is_new case setting
30876 old_vr to VR_VARYING, also set new_vr to it. Remove
30877 old_vr->type == VR_VARYING test.
30878 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
30879 SSA_PROP_INTERESTING if update_value_range returned true,
30880 but new range is VR_VARYING.
30882 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
30884 * combine.c (sign_extend_short_imm): New.
30885 (set_nonzero_bits_and_sign_copies): Use above new function for sign
30886 extension of src short immediate.
30887 (reg_nonzero_bits_for_combine): Likewise for tem.
30889 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
30891 * stor-layout.c (self_referential_component_ref_p): New predicate.
30892 (copy_self_referential_tree_r): Use it.
30893 (self_referential_size): Punt for simple operations directly involving
30894 self-referential component references.
30895 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
30897 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
30899 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
30901 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
30903 * vec.h (vec): Make splice arguments const. Update definitions
30906 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
30908 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
30911 2015-04-26 Tom de Vries <tom@codesourcery.com>
30913 PR tree-optimization/65826
30914 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
30916 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
30918 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
30919 (*madd3<mode>): Ditto.
30920 (*msub4<mode>): Ditto.
30921 (*msub3<mode>): Ditto.
30922 (*nmadd4<mode>): Ditto.
30923 (*nmadd3<mode>): Ditto.
30924 (*nmadd4<mode>_fastmath): Ditto.
30925 (*nmadd3<mode>_fastmath): Ditto.
30926 (*nmsub4<mode>): Ditto.
30927 (*nmsub3<mode>): Ditto.
30928 (*nmsub4<mode>_fastmath): Ditto.
30929 (*nmsub3<mode>_fastmath): Ditto.
30931 2015-04-24 Jason Merrill <jason@redhat.com>
30934 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
30935 down when building TYPE_CANONICAL.
30936 (build_pointer_type_for_mode): Likewise.
30938 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
30940 * genrecog.c (validate_pattern): Check matching constraint refers
30941 to a lower numbered operand.
30943 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
30946 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
30947 save to independent variables use the Save attribute. This will
30948 allow these options to be modified with the #pragma/attribute
30950 (-mallow-movmisalign): Likewise.
30951 (-mallow-df-permute): Likewise.
30952 (-msched-groups): Likewise.
30953 (-malways-hint): Likewise.
30954 (-malign-branch-targets): Likewise.
30955 (-mvectorize-builtins): Likewise.
30956 (-msave-toc-indirect): Likewise.
30958 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
30959 can be set via the #pragma/attribute target support.
30960 (rs6000_opt_vars): Likewise.
30961 (rs6000_inner_target_options): If VSX was set, also set
30962 -mno-avoid-indexed-addresses.
30964 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30966 * config/arm/iterators.md (shiftable_ops): Rename to...
30967 (SHIFTABLE_OPS): ... This. Update use in comments.
30968 (ior_xor): Rename to...
30969 (IOR_XOR): ... This.
30970 (vqh_ops): Rename to...
30971 (VQH_OPS): ... This.
30972 (vqhs_ops): Rename to...
30973 (VQHS_OPS): ... This.
30974 (rshifts): Rename to...
30975 (RSHIFTS): ... This.
30976 (returns): Rename to...
30977 (RETURNS): ... This.
30978 * config/arm/arm.md: Update uses of the above.
30979 * config/arm/neon.md: Likewise.
30981 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30983 * config.host (case ${host}): Add aarch64*-*-linux case.
30984 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
30985 fields to all the cores.
30986 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
30987 Add MCPU_MTUNE_NATIVE_SPECS.
30988 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
30989 field to all extensions.
30990 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
30991 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
30992 Adjust definition of AARCH64_OPT_EXTENSION.
30993 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
30994 (MCPU_MTUNE_NATIVE_SPECS): Define.
30995 * config/aarch64/driver-aarch64.c: New file.
30996 * config/aarch64/x-arch64: New file.
30997 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
31000 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31001 Wei Mi <wmi@google.com>
31003 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
31004 * config/i386/i386.c (extract_base_offset_in_addr): New function.
31005 (ix86_operands_ok_for_move_multiple): Ditto.
31006 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
31007 (movlpd/movhpd to movupd peephole2): Ditto.
31009 2015-04-24 Marek Polacek <polacek@redhat.com>
31012 * input.h (from_macro_expansion_at): Define.
31015 * doc/invoke.texi: Update description of -Wlogical-op.
31017 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
31019 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
31020 ternary operator in fprintf and harmonize spacing.
31022 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31024 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
31025 Mark operand1 commutative.
31027 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31029 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
31030 input operands in memory.
31031 (*vec_concatv2si_sse4_1): Ditto.
31032 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
31033 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
31035 (vec_extract_hi_v32hi): Ditto.
31036 (vec_extract_hi_v64hi): Ditto.
31037 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
31039 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
31040 Steven Bosscher <steven@gcc.gnu.org>
31042 PR rtl-optimization/34503
31043 * cprop.c (cprop_reg_p): New.
31044 (hash_scan_set): Use above function to check if register can be
31046 (find_avail_set): Return up to two sets, one whose source is a
31047 register and one whose source is a constant. Sets are returned in an
31048 array passed as parameter rather than as a return value.
31049 (cprop_insn): Use a do while loop rather than a goto. Try each of the
31050 sets returned by find_avail_set, starting with the one whose source is
31051 a constant. Use cprop_reg_p to check if register can be propagated.
31052 (do_local_cprop): Use cprop_reg_p to check if register can be
31054 (implicit_set_cond_p): Likewise.
31056 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31058 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
31059 (sem_function::equals): IGNORED_NODES parameter is now unused;
31060 update call of equals_private.
31061 (sem_function::equals_private): Do not call equals_wpa; skip
31062 gimple body matching if there is no body.
31063 (sem_function::init): Add logic to hash tthunk info.
31064 (sem_function::parse): Also parse thunks.
31065 * ipa-icf.h (equals_private): Update declaration.
31067 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31069 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
31070 asterisk from name so this can be generated directly.
31071 (*altivec_stvx_<mode>_internal): Likewise.
31072 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
31073 that this is never called during or after reload/lra.
31074 (rs6000_frame_related): Remove split_reg
31075 argument and logic that references it.
31076 (emit_frame_save): Remove last parameter from call to
31077 rs6000_frame_related.
31078 (rs6000_emit_prologue): Remove last parameter from eight calls to
31079 rs6000_frame_related. Force generation of stvx instruction for
31080 Altivec register saves. Remove split_reg handling, which is no
31082 (rs6000_emit_epilogue): Force generation of lvx instruction for
31083 Altivec register restores.
31085 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31087 * config/rs6000/rs6000.opt (mcrypto): Change option description to
31088 match category changes in ISA 2.07B.
31090 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31092 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
31094 (cmp_op, cmp_type): New code attributes.
31095 (NEON_VCMP, NEON_VACMP): New int iterators.
31096 (cmp_op_unsp): New int attribute.
31097 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
31098 (neon_vceq<mode>): Delete.
31099 (neon_vc<cmp_op><mode>_insn): New pattern.
31100 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
31101 (neon_vcgeu<mode>): Delete.
31102 (neon_vcle<mode>): Likewise.
31103 (neon_vclt<mode>: Likewise.
31104 (neon_vcage<mode>): Likewise.
31105 (neon_vcagt<mode>): Likewise.
31106 (neon_vca<cmp_op><mode>): New define_expand.
31107 (neon_vca<cmp_op><mode>_insn): New pattern.
31108 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
31110 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31112 * tree.h (attribute_value_equal): Declare.
31113 * tree.c (attribute_value_equal): Export.
31115 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31117 * ipa-icf.c (sem_item::compare_attributes): New function.
31118 (sem_item::compare_referenced_symbol_properties): Compare variable
31120 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
31121 (sem_function::param_used_p): New function.
31122 (sem_function::equals_wpa): Fix attribute comparsion; match
31123 parameter type codes; do not compare paremter flags when
31124 they are not used; compare edge flags; compare indirect calls.
31125 (sem_item::update_hash_by_addr_refs): Hash reference type.
31126 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
31127 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
31128 reference use type.
31129 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
31130 * ipa-icf.h (compare_attributes, param_used_p): Declare.
31132 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31134 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
31136 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
31137 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
31138 (sem_item::compare_referenced_symbol_properties): New.
31139 (sem_item::hash_referenced_symbol_properties): New.
31140 (sem_item::compare_cgraph_references): Rename to ...
31141 (sem_item::compare_symbol_references): ... this one; use
31142 compare_referenced_symbol_properties.
31143 (sem_function::equals_wpa): Do not compare
31144 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
31145 DECL_IS_OPERATOR_NEW; compare pointer sizes.
31146 (sem_item::update_hash_by_addr_refs): Call
31147 hash_referenced_symbol_properties.
31148 (sem_item::update_hash_by_local_refs): Cleanup.
31149 (sem_function::merge): Do not mix up symbol properties.
31150 (sem_variable::equals_wpa): Use compare_symbol_references.
31151 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
31152 (sem_item::hash_referenced_symbol_properties): New.
31153 (sem_item::compare_symbol_references): New.
31154 (sem_item::compare_cgraph_references): Remove.
31156 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
31159 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
31160 Emit size of local.
31162 2015-04-23 Nick Clifton <nickc@redhat.com>
31164 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
31165 ATTRIBUTE_UNUSED to x parameter.
31166 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
31168 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31170 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
31171 TARGET_CRYPTO to TARGET_P8_VECTOR>
31172 (crypto_vpermxor_<mode>): Likewise.
31173 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
31174 (BU_CRYPTO_3A): Likewise.
31175 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
31176 (BU_CRYPTO_OVERLOAD_3A): New #define.
31177 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
31178 (VPMSUMH): Likewise.
31179 (VPMSUMW): Likewise.
31180 (VPMSUMD): Likewise.
31181 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
31182 (VPERMXOR_V4SI): Likewise.
31183 (VPERMXOR_V8HI): Likewise.
31184 (VPERMXOR_V16QI): Likewise.
31185 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
31186 BU_CRYPTO_OVERLOAD_2A.
31187 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
31188 BU_CRYPTO_OVERLOAD_3A.
31189 * config/rs6000/rs6000.opt (mcrypto): Change description of
31192 2015-04-23 Richard Biener <rguenther@suse.de>
31194 * passes.def: Remove copy propagation passes run directly after CCP.
31195 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
31197 (ccp_visit_phi_node): Rework to handle first executable edge
31200 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
31202 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31203 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31204 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31205 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
31206 (thumb_legimitimize_reload_address): Remove.
31207 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
31209 (thumb_legimitimize_reload_address): Remove.
31211 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31213 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
31215 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31217 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
31219 (store_multiple): Likewise.
31221 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31223 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
31224 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
31225 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
31226 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
31227 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
31228 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
31229 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
31230 Specify issue_rate value.
31231 (arm_issue_rate): Look up issue rate from tuning structs. Remove
31232 large switch statement.
31233 (arm_marvell_pj4_tune): New struct.
31234 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
31237 2015-04-23 Richard Biener <rguenther@suse.de>
31239 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
31240 (vect_find_last_store_in_slp_instance): Rename to ...
31241 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
31242 (vect_analyze_slp_cost_1): Use vector_load for constant defs
31243 and vec_construct for external defs when estimating prologue cost.
31244 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
31245 Compute costs here only when vectorizing loops.
31246 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
31247 have been determined.
31248 (vect_schedule_slp_instance): Simplify vectorized code placement
31249 and prepare for in-BB external defs.
31250 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
31251 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
31252 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
31254 (vect_model_load_cost): Likewise.
31255 (vectorizable_store): Instead add it here.
31256 (vectorizable_load): Likewise.
31257 (vect_is_simple_use): Dump def type textually.
31259 2015-04-23 Richard Biener <rguenther@suse.de>
31261 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
31262 * cfgloop.c (verify_loop_structure): Verify the root loop node.
31263 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
31264 instead of get_eh_region_from_lp_number.
31265 * loop-init.c (fix_loop_structure): If we removed a loop, reset
31268 2015-04-23 Anton Blanchard <anton@samba.org>
31270 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
31271 need for -mprofile-kernel to save LR to stack.
31273 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31275 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
31277 (insn_is_swappable_p): Return 1 for a convert from double to
31278 single precision when all of its uses are splats of BE element
31281 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
31283 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
31285 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31288 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
31289 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
31290 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
31292 (rs6000_builtin_mask_for_load): Return 0 for targets with
31293 efficient unaligned VSX accesses so that the vectorizer will use
31294 direct unaligned loads.
31295 (rs6000_builtin_support_vector_misalignment): Always return true
31296 for targets with efficient unaligned VSX accesses.
31297 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
31298 stores on targets with efficient unaligned VSX accesses is almost
31299 always the same as the cost of an aligned load or store, so model
31301 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
31302 unaligned vectors if we have efficient unaligned VSX accesses.
31303 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
31304 undocumented option.
31306 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31309 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
31311 * config.gcc (LIBC_MUSL): New tm_defines macro.
31312 * config/linux.h (OPTION_MUSL): Define.
31313 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31314 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31315 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31317 * config/linux.opt (mmusl): New option.
31318 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31319 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31321 * configure: Regenerate.
31323 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
31325 * config.gcc (LIBC_MUSL): New tm_defines macro.
31326 * config/linux.h (OPTION_MUSL): Define.
31327 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31328 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31329 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31331 * config/linux.opt (mmusl): New option.
31332 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31333 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31335 * configure: Regenerate.
31337 2015-04-22 Yury Gribov <y.gribov@samsung.com>
31339 * doc/invoke.texi (-fsanitize-sections): Update description.
31340 * asan.c (set_sanitized_sections): Parse incoming arg.
31341 (section_sanitized_p): Support wildcards.
31343 2015-04-22 Tom de Vries <tom@codesourcery.com>
31345 PR tree-optimization/65823
31346 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
31347 equality between ap_copy and ap.
31349 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31352 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
31354 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31357 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
31359 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31362 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
31363 remove already contained t-files.
31365 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31367 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
31368 Remove unneeded forward declarations.
31369 (suitable_for_tail_call_opt_p): Commentary typo fix.
31371 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31373 * varasm.c (emit_bss): Remove redundant guard.
31375 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31377 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
31379 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31381 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
31383 2015-04-22 Hale Wang <hale.wang@arm.com>
31384 Terry Guo <terry.guo@arm.com>
31386 PR rtl-optimization/64818
31387 * combine.c (can_combine_p): Don't combine user-specified
31388 register if it is in an asm input.
31390 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
31393 * passes.def (early_optimizations): Add pass_dse.
31395 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31397 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
31398 * reorg.c (redundant_insn): Remove ifdef
31399 INSN_REFERENCES_ARE_DELAYED.
31400 * resource.c (mark_referenced_resources): Likewise.
31402 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31404 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
31405 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
31406 * resource.c (mark_set_resources): Likewise.
31408 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31410 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
31411 * cfgcleanup.c (flow_find_cross_jump): Likewise.
31412 (flow_find_head_matching_sequence): Likewise.
31413 (try_head_merge_bb): Likewise.
31414 * combine.c (can_combine_p): Likewise.
31415 (try_combine): Likewise.
31416 (distribute_notes): Likewise.
31417 * df-problems.c (can_move_insns_across): Likewise.
31418 * final.c (final): Likewise.
31419 * gcse.c (insert_insn_end_basic_block): Likewise.
31420 * ira.c (find_moveable_pseudos): Likewise.
31421 * reorg.c (try_merge_delay_insns): Likewise.
31422 (fill_simple_delay_slots): Likewise.
31423 (fill_slots_from_thread): Likewise.
31424 * sched-deps.c (sched_analyze_2): Likewise.
31426 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31428 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
31429 PIC_OFFSET_TABLE_REGNUM.
31431 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31433 * alias.c (init_alias_target): Remove ifdef
31434 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
31435 * df-scan.c (df_insn_refs_collect): Likewise.
31436 (df_get_regular_block_artificial_uses): Likewise.
31437 (df_get_eh_block_artificial_uses): Likewise.
31438 (df_get_entry_block_def_set): Likewise.
31439 (df_get_exit_block_use_set): Likewise.
31440 * emit-rtl.c (gen_rtx_REG): Likewise.
31441 * ira.c (ira_setup_eliminable_regset): Likewise.
31442 * reginfo.c (init_reg_sets_1): Likewise.
31443 * regrename.c (rename_chains): Likewise.
31444 * reload1.c (reload): Likewise.
31445 (eliminate_regs_in_insn): Likewise.
31446 * resource.c (mark_referenced_resources): Likewise.
31447 (init_resource_info): Likewise.
31449 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31451 * defaults.h (MASK_RETURN_ADDR): New definition.
31452 * except.c (expand_builtin_extract_return_addr): Remove ifdef
31455 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31457 * defaults.h (RETURN_ADDR_OFFSET): New definition.
31458 * except.c (expand_builtin_extract_return_addr): Remove ifdef
31459 RETURN_ADDR_OFFSET.
31460 (expand_builtin_frob_return_addr): Likewise.
31462 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31464 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
31465 (try_redirect_by_replacing_jump): Likewise.
31466 (rtl_tidy_fallthru_edge): Likewise.
31467 * combine.c (insn_a_feeds_b): Likewise.
31468 (find_split_point): Likewise.
31469 (simplify_set): Likewise.
31470 * cprop.c (cprop_jump): Likewise.
31471 * cse.c (cse_extended_basic_block): Likewise.
31472 * df-problems.c (can_move_insns_across): Likewise.
31473 * function.c (emit_use_return_register_into_block): Likewise.
31474 * haifa-sched.c (sched_init): Likewise.
31475 * ira.c (find_moveable_pseudos): Likewise.
31476 * loop-invariant.c (find_invariant_insn): Likewise.
31477 * lra-constraints.c (curr_insn_transform): Likewise.
31478 * postreload.c (reload_combine_recognize_const_pattern):
31480 * reload.c (find_reloads): Likewise.
31481 * reorg.c (delete_scheduled_jump): Likewise.
31482 (steal_delay_list_from_target): Likewise.
31483 (steal_delay_list_from_fallthrough): Likewise.
31484 (redundant_insn): Likewise.
31485 (fill_simple_delay_slots): Likewise.
31486 (fill_slots_from_thread): Likewise.
31487 (delete_computation): Likewise.
31488 * sched-rgn.c (add_branch_dependences): Likewise.
31490 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31492 * genconfig.c (main): Always define HAVE_cc0.
31493 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
31495 * cfgcleanup.c (flow_find_cross_jump): Likewise.
31496 (flow_find_head_matching_sequence): Likewise.
31497 (try_head_merge_bb): Likewise.
31498 * cfgrtl.c (rtl_merge_blocks): Likewise.
31499 (try_redirect_by_replacing_jump): Likewise.
31500 (rtl_tidy_fallthru_edge): Likewise.
31501 * combine.c (do_SUBST_MODE): Likewise.
31502 (insn_a_feeds_b): Likewise.
31503 (combine_instructions): Likewise.
31504 (can_combine_p): Likewise.
31505 (try_combine): Likewise.
31506 (find_split_point): Likewise.
31508 (simplify_set): Likewise.
31509 (distribute_notes): Likewise.
31510 * cprop.c (cprop_jump): Likewise.
31511 * cse.c (cse_extended_basic_block): Likewise.
31512 * df-problems.c (can_move_insns_across): Likewise.
31513 * final.c (final): Likewise.
31514 (final_scan_insn): Likewise.
31515 * function.c (emit_use_return_register_into_block): Likewise.
31516 * gcse.c (insert_insn_end_basic_block): Likewise.
31517 * haifa-sched.c (sched_init): Likewise.
31518 * ira.c (find_moveable_pseudos): Likewise.
31519 * loop-invariant.c (find_invariant_insn): Likewise.
31520 * lra-constraints.c (curr_insn_transform): Likewise.
31521 * optabs.c (prepare_cmp_insn): Likewise.
31522 * postreload.c (reload_combine_recognize_const_pattern):
31524 * reload.c (find_reloads): Likewise.
31525 (find_reloads_address_1): Likewise.
31526 * reorg.c (delete_scheduled_jump): Likewise.
31527 (steal_delay_list_from_target): Likewise.
31528 (steal_delay_list_from_fallthrough): Likewise.
31529 (try_merge_delay_insns): Likewise.
31530 (redundant_insn): Likewise.
31531 (fill_simple_delay_slots): Likewise.
31532 (fill_slots_from_thread): Likewise.
31533 (delete_computation): Likewise.
31534 (relax_delay_slots): Likewise.
31535 * sched-deps.c (sched_analyze_2): Likewise.
31536 * sched-rgn.c (add_branch_dependences): Likewise.
31538 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31540 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
31541 that is trivially ded on non cc0 targets.
31542 (simplify_set): Likewise.
31543 (mark_used_regs_combine): Likewise.
31544 * cse.c (new_basic_block): Likewise.
31545 (fold_rtx): Likewise.
31546 (cse_insn): Likewise.
31547 (cse_extended_basic_block): Likewise.
31548 (set_live_p): Likewise.
31549 * rtlanal.c (canonicalize_condition): Likewise.
31550 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
31552 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31554 * conditions.h: Define macros even if HAVE_cc0 is undefined.
31555 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
31556 * final.c: Likewise.
31557 * jump.c: Likewise.
31558 * recog.c: Likewise.
31559 * recog.h: Declare functions even when HAVE_cc0 is undefined.
31560 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
31562 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31564 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
31565 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
31566 * builtins.c (expand_builtin): Remove check if
31567 EH_RETURN_DATA_REGNO is defined.
31568 * df-scan.c (df_bb_refs_collect): Likewise.
31569 (df_get_exit_block_use_set): Likewise.
31570 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
31571 * ira-lives.c (process_bb_node_lives): Likewise.
31572 * lra-lives.c (process_bb_lives): Likewise.
31574 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
31576 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
31577 FIRST_PSEUDO_REG): New.
31578 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
31579 (ARG_POINTER_REGNUM): Define to ARGP_REG.
31580 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
31581 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
31582 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
31583 (FIRST_INT_REG): New.
31584 (LAST_INT_REG): New.
31585 (FIRST_*_REG): Define using *_REG.
31586 (LAST_*_REG): Ditto.
31587 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
31588 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
31589 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
31591 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31593 * expmed.c: (synth_mult): Only assume overlapping
31594 shift with previous steps in alg_sub_t_m2 case.
31596 2015-04-21 Richard Biener <rguenther@suse.de>
31598 PR tree-optimization/65650
31599 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
31600 transitions involving copies.
31601 (set_lattice_value): Adjust for copy lattice state.
31602 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
31603 if that doesn't dominate the merge point.
31604 (bit_value_unop): Adjust what we treat as varying mask.
31605 (bit_value_binop): Likewise.
31606 (bit_value_assume_aligned): Likewise.
31607 (evaluate_stmt): When we simplified to a SSA name record a copy
31608 instead of dropping to varying.
31609 (visit_assignment): Simplify.
31611 * gimple-match.h (gimple_simplify): Add another callback.
31612 * gimple-fold.c (fold_stmt_1): Adjust caller.
31613 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
31614 for the 2nd callback.
31615 * gimple-match-head.c (gimple_simplify): Add a callback that is
31616 used to valueize the stmt operands and use it that way.
31618 2015-04-21 Richard Biener <rguenther@suse.de>
31620 PR tree-optimization/65788
31621 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
31623 2015-04-21 Richard Biener <rguenther@suse.de>
31625 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
31626 vec_construct cost by vec_stmt_cost.
31628 2015-04-21 Richard Biener <rguenther@suse.de>
31630 * cfghooks.h (create_basic_block): Replace with two overloads
31631 for RTL and GIMPLE.
31632 (split_block): Likewise.
31633 * cfghooks.c (split_block): Rename to ...
31634 (split_block_1): ... this.
31635 (split_block): Add two type-safe overloads for RTL and GIMPLE.
31636 (split_block_after_labels): Call split_block_1.
31637 (create_basic_block): Rename to ...
31638 (create_basic_block_1): ... this.
31639 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
31640 (create_empty_bb): Call create_basic_block_1.
31641 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
31642 split_block_after_labels.
31643 * omp-low.c (expand_parallel_call): Likewise.
31644 (expand_omp_target): Likewise.
31645 (simd_clone_adjust): Likewise.
31646 * tree-chkp.c (chkp_get_entry_block): Likewise.
31647 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
31648 create_basic_block overload.
31649 (cgraph_node::expand_thunk): Likewise.
31650 * tree-cfg.c (make_blocks): Likewise.
31651 (handle_abnormal_edges): Likewise.
31652 * tree-inline.c (copy_bb): Likewise.
31654 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31656 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
31658 (*xor_one_cmplsidi3_ze): Likewise.
31660 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
31662 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
31663 use df_remove_problem rather than manually removing problems, leaving
31664 holes in df->problems_in_order[].
31666 2015-04-21 Tom de Vries <tom@codesourcery.com>
31668 PR tree-optimization/65802
31669 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
31671 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31673 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
31675 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
31676 at '.'. Assert that there's enough space for everything.
31678 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
31680 PR tree-optimization/64950
31682 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
31685 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
31688 2015-04-20 Shiva Chen <shiva0217@gmail.com>
31690 PR rtl-optimization/64916
31691 * cfgcleanup.c (values_equal_p): New function.
31692 (can_replace_by): Use it.
31694 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
31697 * doc/invoke.texi ([-Wnarrowing]): Update.
31699 2015-04-20 Jeff Law <law@redhat.com>
31701 PR tree-optimization/65658
31702 * tree-ssa-threadupdate.c (redirection_block_p): Remove
31703 redundant test for GIMPLE_ASSIGN in last change.
31705 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
31707 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
31708 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
31709 (legitimize_tls_address): Ditto.
31710 (ix86_expand_move): Ditto.
31711 (ix86_expand_binary_operator): Remove reload_in_progress checks.
31712 (ix86_expand_unary_operator): Ditto.
31713 * config/i386/predicates.md (index_register_operand): Ditto.
31715 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
31717 * reorg.c (try_merge_delay_insns): Improve correctness checking
31718 for targets with multiple delay slots.
31720 2015-04-20 Jeff Law <law@redhat.com>
31722 PR tree-optimization/65658
31723 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
31726 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
31728 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
31729 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
31732 2015-04-20 Jakub Jelinek <jakub@redhat.com>
31735 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
31737 2015-04-20 Richard Biener <rguenther@suse.de>
31739 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
31740 * gimple-fold.c (gimple_build_valueize): New function.
31741 (gimple_build): Always use gimple_build_valueize as valueize hook.
31743 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
31746 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
31747 and overwrite variable parts if <= 1/2 the elements are variable.
31749 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
31751 PR rtl-optimization/65805
31752 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
31753 Don't use difference of offset and previous offset if
31754 update_sp_offset is non-zero.
31755 (eliminate_regs_in_insn): Ditto.
31756 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
31757 lra_eliminate_regs_1 call.
31758 * lra-constraints.c (get_equiv_with_elimination): Ditto.
31760 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
31762 * hash-table.h: Remove version of hash_table that stored value_type *.
31763 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
31764 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
31765 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
31766 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
31767 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
31768 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
31769 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
31770 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
31771 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
31772 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
31773 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
31774 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
31775 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
31776 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
31777 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
31778 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
31780 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31781 Jakub Jelinek <jakub@redhat.com>
31784 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
31785 subsequent SH_NONE operand does not overwrite an existing *special
31787 (adjust_extract): Handle case where a vec_extract operation is
31788 wrapped in a PARALLEL.
31790 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
31793 * config/i386/i386.c (ix86_binds_local_p): Define only if
31794 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
31796 2015-04-17 Jeff Law <law@redhat.com>
31798 PR tree-optimization/47679
31799 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
31800 * tree-ssa-scopedtables.c: New file.
31801 * tree-ssa-scopedtables.h: New file.
31802 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
31803 (const_and_copies): Change name/type.
31804 (record_const_or_copy): Move into tree-ssa-scopedtables.c
31805 (record_const_or_copy_1): Similarly.
31806 (restore_vars_to_original_value): Similarly.
31807 (pass_dominator::execute): Create and destroy const_and_copies table.
31808 (thread_across_edge): Update passing of const_and_copies.
31809 (record_temporary_equivalence): Use method calls rather than
31810 manipulating const_and_copies directly.
31811 (record_equality, cprop_into_successor_phis): Similarly.
31812 (dom_opt_dom_walker::before_dom_children): Similarly.
31813 (dom_opt_dom_walker::after_dom_children): Similarly.
31814 (eliminate_redundant_computations): Similarly.
31815 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
31816 (record_temporary_equivalence): Likewise.
31817 (invalidate_equivalences): Likewise.
31818 (record_temporary_equivalences_from_phis): Update due to type
31819 change of const_and_copies. Use method calls rather than
31820 manipulating the stack directly.
31821 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
31822 (thread_through_normal_block, thread_across_edge): Likewise.
31823 (thread_across_edge): Likewise.
31824 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
31825 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
31827 (identify_jump_threads): Update due to type change of equiv_stack.
31828 (finalize_jump_threads): Delete the equiv_stack when complete.
31830 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
31832 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31833 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
31834 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
31836 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
31839 * config.gcc: Exit with a comment when we do not have a major version
31840 number for the FreeBSD target.
31842 2015-04-17 Jakub Jelinek <jakub@redhat.com>
31845 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
31846 maybe_allows_mem bitfields.
31847 (maybe_allows_none_start, maybe_allows_none_end,
31848 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
31849 maybe_allows_mem_end): New variables.
31850 (compute_maybe_allows): New function.
31851 (add_constraint): Use it to initialize maybe_allows_reg and
31852 maybe_allows_mem fields.
31853 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
31854 is_address constraints such that those that allow neither mem nor
31855 reg come first, then those that only allow reg but not mem, then
31856 those that only allow mem but not reg, then the rest.
31857 (write_allows_reg_mem_function): New function.
31858 (write_tm_preds_h): Call it.
31859 * stmt.c (parse_output_constraint, parse_input_constraint): Use
31860 the generated insn_extra_constraint_allows_reg_mem function
31861 instead of always setting *allows_reg = true; *allows_mem = true;
31862 for unknown extra constraints.
31864 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
31867 * output.h (default_binds_local_p_3): New.
31868 * varasm.c (default_binds_local_p_3): Make it public. Take an
31869 argument to indicate if common symbol may be local. If common
31870 symbol may be local, treat non-external variable as defined
31872 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
31873 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
31874 * config/i386/i386.c (ix86_binds_local_p): New.
31875 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
31876 ix86_binds_local_p.
31878 2015-04-17 Jakub Jelinek <jakub@redhat.com>
31881 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
31882 trying mem_loc_descriptor on XEXP (rtl, 0).
31884 2015-04-17 Martin Liska <mliska@suse.cz>
31886 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
31887 Release symbol_compare_collection.
31888 * ipa-reference.c: Add TODO that a vector should be released.
31890 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
31893 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
31894 to new AVR-LibC file layout (bug #44574).
31895 (*avrlibc_devicelib): Same.
31896 * config/avr/avr-mcus.def: Adjust comments.
31897 * config/avr/avr.opt (nodevicelib): Adjust help.
31899 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
31901 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
31903 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
31906 * gimplify.c (gimplify_init_constructor): Always emit a
31907 side-effecting constructor.
31909 2015-04-17 Tom de Vries <tom@codesourcery.com>
31911 PR tree-optimization/64950
31912 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
31913 in cfun->curr_properties.
31914 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
31915 if we generate an IFN_VA_ARG.
31916 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
31917 function if PROP_gimple_lva is not set in src function.
31919 2015-04-17 Tom de Vries <tom@codesourcery.com>
31920 Michael Matz <matz@suse.de>
31922 PR tree-optimization/64950
31923 * gimple-iterator.c (update_modified_stmts): Remove static.
31924 * gimple-iterator.h (update_modified_stmts): Declare.
31925 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
31926 (gimplify_va_arg_internal): New function.
31927 (gimplify_va_arg_expr): Use IFN_VA_ARG.
31928 * gimplify.h (gimplify_va_arg_internal): Declare.
31929 * internal-fn.c (expand_VA_ARG): New unreachable function.
31930 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
31931 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
31932 (expand_ifn_va_arg): New function.
31933 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
31934 (pass_stdarg::execute): Call expand_ifn_va_arg.
31935 (pass_data_lower_vaarg): New pass_data.
31936 (pass_lower_vaarg): New gimple_opt_pass.
31937 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
31938 (make_pass_lower_vaarg): New function.
31939 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
31940 properties_required field.
31941 * passes.def (all_passes): Add pass_lower_vaarg.
31942 * tree-pass.h (PROP_gimple_lva): Add define.
31943 (make_pass_lower_vaarg): Declare.
31945 2015-04-17 Tom de Vries <tom@codesourcery.com>
31947 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
31948 * calls.c (call_expr_flags): Same.
31950 2015-04-17 Tom de Vries <tom@codesourcery.com>
31952 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
31953 (pass_stdarg::execute): ... here.
31955 2015-04-17 Tom de Vries <tom@codesourcery.com>
31956 Michael Matz <matz@suse.de>
31958 * tree-cfg.c (make_blocks_1): Factor out of ...
31959 (make_blocks): ... here.
31960 (make_edges_bb): Factor out of ...
31961 (make_edges): ... here.
31962 (gimple_find_sub_bbs): New function.
31963 * tree-cfg.h (gimple_find_sub_bbs): Declare.
31965 2015-04-17 Tom de Vries <tom@codesourcery.com>
31967 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
31969 2015-04-17 Yury Gribov <y.gribov@samsung.com>
31971 * asan.c (set_sanitized_sections): New function.
31972 (section_sanitized_p): Ditto.
31973 (asan_protect_global): Optionally sanitize user-defined
31975 * asan.h (set_sanitized_sections): Declare new function.
31976 * common.opt (fsanitize-sections): New option.
31977 * doc/invoke.texi (-fsanitize-sections): Document new option.
31978 * opts-global.c (handle_common_deferred_options): Handle new
31981 2015-04-17 Jakub Jelinek <jakub@redhat.com>
31984 * dwarf2out.c (loc_list_from_tree): Return NULL
31985 for DEBUG_EXPR_DECL.
31987 2015-04-17 Christian Bruel <christian.bruel@st.com>
31989 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
31992 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
31994 * ira-color.c (setup_left_conflict_sizes_p): Do not process
31995 node itself when computing left conflict subnode size.
31997 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
31999 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
32000 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
32001 *fop_<mode>_1_sse using enabled attribute. Use
32002 register_mixssei387nonimm_operand operand 1 predicate. Change
32003 alternative 3 constraints from "x" to "v".
32005 2015-04-16 Richard Biener <rguenther@suse.de>
32007 PR tree-optimization/65774
32008 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
32009 bit-value tracking on.
32011 2015-04-16 Richard Biener <rguenther@suse.de>
32013 PR tree-optimization/64277
32014 * tree-vrp.c (check_array_ref): Fix anti-range handling,
32015 simplify upper bound handling.
32016 (search_for_addr_array): Simplify.
32017 (check_array_bounds): Handle ADDR_EXPRs here.
32018 (check_all_array_refs): Simplify.
32020 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
32022 * config/i386/i386.c (print_reg): Rewrite function.
32024 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32026 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
32027 Invert the condition.
32029 2015-04-16 Renlin Li <renlin.li@arm.com>
32031 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
32032 simplifications for UNSIGNED_FLOAT.
32034 2015-04-16 Nick Clifton <nickc@redhat.com>
32036 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
32038 (enum rl78_cpu_type): New.
32039 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
32040 (umulhi3_shift_virt): Remove m constraint from operand 1.
32041 (umulqihi3_virt): Likewise.
32042 * config/rl78/rl78.c (rl78_option_override): Add code to process
32043 -mcpu and -mmul options.
32044 (rl78_alloc_physical_registers): Add code to handle divhi and
32045 divsi valloc attributes.
32046 (set_origin): Likewise.
32047 * config/rl78/rl78.h (RL78_MUL_G14): Define.
32048 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
32049 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
32051 (ASM_SPEC): Pass -mcpu on to assembler.
32052 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
32053 (mulqi3_rl78): Likewise.
32054 (mulhi3_g13): Likewise.
32055 (mulhi3): Generate the G13 or G14 versions of the insn directly.
32056 (mulsi3): Likewise.
32057 (mulhi3_g14): Add clobbers of AX and BC.
32058 (mulsi3_g14): Likewise.
32059 (mulsi3_g13): Likewise.
32060 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
32061 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
32062 * config/rl78/rl78.opt (mmul): Initialise value to
32064 (mcpu): New option.
32065 (m13, m14, mrl78): New option aliases.
32066 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
32067 (MULTILIB_DIRNAMES): Add g13 and g14.
32068 * doc/invoke.texi: Document -mcpu and -mmul options.
32070 2015-04-16 Richard Biener <rguenther@suse.de>
32072 * tree-ssa-ccp.c (likely_value): See if we have operands that
32073 are marked as never simulate again and return CONSTANT in this
32075 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
32076 not have any operands that will be simulated again as
32077 not being simulated again.
32079 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
32081 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
32082 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
32083 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
32085 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
32087 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
32088 *float<SWI48:mode><MODEF:mode>2_sse.
32089 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
32091 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
32094 2015-04-15 Tom de Vries <tom@codesourcery.com>
32097 * function.c (push_dummy_function): New function.
32098 (init_dummy_function_start): Use push_dummy_function.
32099 (pop_dummy_function): New function. Factored out of ...
32100 (expand_dummy_function_end): ... here.
32101 * function.h (push_dummy_function, pop_dummy_function): Declare.
32102 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
32103 pop_dummy_function.
32104 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
32106 2015-04-15 Jeff Law <law@redhat.com>
32108 PR tree-optimization/47679
32109 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
32110 need for forward declaration in upcoming changes.
32111 (record_conditions, record_edge_info): Likewise.
32113 PR rtl-optimization/42522
32114 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
32115 SIGN_EXTRACT as a whole object rather than simplifying
32118 2015-04-15 Jakub Jelinek <jakub@redhat.com>
32121 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
32122 and GIMPLE_PREDICT use break instead of return true. For
32123 GIMPLE_EH_DISPATCH, compare dispatch region.
32125 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
32127 * doc/extend.texi (__sync Builtins): Simplify some text. Update
32128 details about the implementation. Make clear preference for
32129 __atomic builtins. Reduce possibility of future change.
32131 2015-04-15 Nick Clifton <nickc@redhat.com>
32133 * config/rx/rx.opt (mallow-string-insns): New option.
32134 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
32135 builtin if string instructions are denied.
32136 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
32137 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
32139 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
32140 * config/rx/rx.md (movstr): Enable pattern only if string
32141 instructions are allowed.
32142 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
32143 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
32144 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
32145 (MULTILIB_DIRNAMES): Add no-strings.
32146 * doc/invoke.texi: Document -mno-allow-string-insns.
32148 2015-04-15 Alan Modra <amodra@gmail.com>
32152 PR middle-end/36043
32153 * calls.c (load_register_parameters): Don't load past end of
32154 mem unless suitably aligned.
32156 2015-04-15 Nick Clifton <nickc@redhat.com>
32158 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
32159 decrement instruction as being frame related.
32160 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
32162 If zero extending a function address enclose the operation in
32164 (rl78_preferred_reload_class): New function.
32165 (TARGET_PREFERRED_RELOAD_CLASS): Define.
32166 * config/rl78/rl78.md: Remove useless constraints in expanders.
32167 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
32168 (mulhi3_rl78): Likewise.
32169 (mulhi3_g13): Likewise.
32170 (mulsi3_rl78): Likewise.
32171 (es_addr): Move to before the multiply patterns.
32173 2015-04-15 Alan Modra <amodra@gmail.com>
32175 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
32176 and sequence_stack. Add seq.
32177 (seq_stack): Delete.
32178 * function.c (prepare_function_start): Don't access x_last_insn.
32179 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
32180 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
32181 * emit_rtl.c (start_sequence, push_topmost_sequence,
32182 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
32183 sequence accessors.
32184 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
32185 remove_insn): Likewise. Simplify.
32186 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
32187 and pop_topmost_sequence.
32188 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
32190 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
32192 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
32195 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
32198 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
32200 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
32201 (LEGACY_INT_REGNO_P): Ditto.
32202 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
32203 (ANY_MASK_REG_P): Remove.
32204 (BND_REG_P): Rename from ANY_BND_REG_P.
32205 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
32206 legacy integer registers. Do not handle MMX_REG_P in a special way.
32207 Merge 64byte and 32byte SSE handling.
32209 2015-04-14 Nick Clifton <nickc@redhat.com>
32211 * expr.c (expand_assignment): Force an address offset computation
32212 into a register before changing its mode.
32213 (expand_expr_real_1): Likewise.
32215 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
32217 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
32218 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
32219 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
32220 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
32221 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
32222 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
32223 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
32224 and __aarch64_vget_lane_any.
32226 2015-04-14 Jakub Jelinek <jakub@redhat.com>
32228 PR rtl-optimization/65761
32229 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
32230 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
32232 2015-04-14 Richard Biener <rguenther@suse.de>
32234 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
32235 (graphite_can_represent_scev): Use POINTER_TYPE_P.
32237 2015-04-14 Richard Biener <rguenther@suse.de>
32239 PR tree-optimization/65758
32240 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
32242 (ccp_lattice_meet): Likewise.
32243 (bit_value_unop): Likewise.
32244 (bit_value_binop): Likewise.
32245 (bit_value_assume_aligned): Likewise.
32247 2015-04-14 Christian Bruel <christian.bruel@st.com>
32249 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
32252 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
32254 PR tree-optimization/63387
32255 * match.pd ((x unord x) | (y unord y) -> (x unord y),
32256 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
32258 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
32260 * config/i386/predicates.md (any_QIreg_operand): Rename from
32261 q_regs_operand. Do not process subregs.
32262 (QIreg_operand): Use QI_REGNO_P predicate.
32263 (ext_QIreg_operand): Ditto.
32264 (ext_register_operand): Ditto.
32265 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
32266 (AND splitters): Ditto.
32267 (AND with -65536 splitter): Add SWI48 mode for operand 0.
32268 (AND with -256 splitter): Use any_QIreg_operand predicate and
32269 SWI248 mode for operand 0.
32270 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
32271 mode for operand 0.
32272 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
32274 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
32276 * doc/plugins.texi: Rewrite first introductory paragraph.
32278 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32280 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
32281 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
32283 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32285 * ipa-profie.c (ipa_profile): Check number of parameters
32286 and possible polymorphic call targets before
32289 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
32291 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
32292 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
32294 2015-04-13 Richard Biener <rguenther@suse.de>
32296 PR tree-optimization/65204
32297 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
32298 takens for bit-CCP.
32300 2015-04-13 Richard Biener <rguenther@suse.de>
32303 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
32304 and cond_not_taken_branch_cost to 4 and 2.
32305 (bdver2_cost): Likewise.
32306 (bdver3_cost): Likewise.
32307 (bdver4_cost): Likewise.
32309 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32311 * hash-table.h (hash_table constructor): Add mem stats.
32312 (alloc_entries): Likewise.
32314 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32316 * ipa-cp.c (ipcp_driver): Relase prev_edge.
32317 * passes.c (execute_one_pass): Only add transform if pass has one.
32319 2015-04-12 Joseph Myers <joseph@codesourcery.com>
32321 * config/i386/i386.c (ix86_option_override_internal): Don't set
32322 -fprefetch-loop-arrays if optimizing for size.
32324 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32325 Gerald Pfeifer <gerald@pfeifer.com>
32327 * doc/contrib.texi (Contributors): Add Martin Jambor and
32330 2015-04-12 Jakub Jelinek <jakub@redhat.com>
32332 * BASE-VER: Set to 6.0.0.
32334 PR tree-optimization/65747
32335 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
32336 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
32338 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
32340 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
32341 sentence. Improve grammar.
32343 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
32345 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
32347 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
32350 * ipa-inline-transform.c (speculation_removed): Remove static var.
32351 (check_speculations): New function.
32352 (clone_inlined_nodes): Do not check spculations.
32353 (inline_call): Call check_speculations.
32354 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
32355 consider non-invariants.
32357 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
32358 Martin Liska <mliska@suse.cz>
32361 * ipa-icf.c (sem_item::compare_cgraph_references): function and
32362 variable can not match.
32363 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
32364 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
32366 2015-04-11 Jakub Jelinek <jakub@redhat.com>
32368 PR tree-optimization/65735
32369 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
32370 Remove visited_phis argument, add visited_bbs, avoid recursing into the
32371 same bb rather than just into the same phi node.
32372 (thread_through_normal_block): Adjust caller.
32374 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
32376 * doc/contrib.texi (Contributors): Add Ira Rosen.
32378 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
32380 * gcov.c (find_source): Fix miswording in error message.
32381 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
32382 (ix86_expand_sse_comi_round): Fix typo in error message.
32384 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
32386 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
32388 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
32390 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
32392 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
32395 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
32396 Print bad_spills_num and insn_pseudos_num.
32398 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32401 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
32402 when creating +1 values for SImode.
32404 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
32407 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
32410 2015-04-10 Jakub Jelinek <jakub@redhat.com>
32411 Iain Sandoe <iain@codesourcery.com>
32414 * configure: Regenerate.
32416 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
32419 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
32421 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
32423 * doc/contrib.texi (Contributors): Add John Marino.
32425 2015-04-09 Jakub Jelinek <jakub@redhat.com>
32427 PR tree-optimization/65709
32428 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
32429 TREE_TYPE (TREE_TYPE (t)).
32431 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
32434 * lra-int.h (lra_bad_spill_regno_start): New.
32435 * lra.c (lra_bad_spill_regno_start): New.
32436 (lra): Set up lra_bad_spill_regno_start. Set up
32437 lra_constraint_new_regno_start unconditionally.
32438 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
32441 2015-04-09 Marek Polacek <polacek@redhat.com>
32442 Jakub Jelinek <jakub@redhat.com>
32444 PR middle-end/65554
32445 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
32446 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
32449 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
32451 PR rtl-optimization/65693
32452 * combine.c (is_parallel_of_n_reg_sets): Move outside of
32455 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
32458 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
32459 device specs file if "device-specs%s" didn't resolve to a path.
32461 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
32464 * config/i386/i386.c (fixup_modeless_constant): New.
32465 (ix86_expand_args_builtin): Fixup modeless constant operand.
32466 (ix86_expand_round_builtin): Ditto.
32467 (ix86_expand_special_args_builtin): Ditto.
32468 (ix86_expand_builtin): Ditto.
32470 2015-04-09 Jakub Jelinek <jakub@redhat.com>
32473 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
32474 any pow2 integer in between 2 and 0x80000000U inclusive.
32476 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
32478 PR rtl-optimization/65693
32479 * combine.c (is_parallel_of_n_reg_sets): Change first argument
32480 from an rtx_insn * to an rtx.
32481 (try_combine): Adjust both callers. Use it once more.
32483 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
32485 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
32486 (chkp_make_static_const_bounds): Search existing
32487 symbol by assembler name. Use make_decl_one_only.
32488 (chkp_get_zero_bounds_var): Remove node search which
32489 is now performed in chkp_make_static_const_bounds.
32490 (chkp_get_none_bounds_var): Likewise.
32492 2015-04-08 Michael Witten <mfwitten@gmail.com>
32494 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
32497 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32499 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
32501 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
32503 * doc/extend.texi (__sync Builtins): Fix grammar.
32505 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32507 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
32509 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32511 * varasm.c (emit_local): Move definition of align.
32513 2015-04-08 Julian Brown <julian@codesourcery.com>
32515 * config/nvptx/mkoffload.c (process): Support variable mapping.
32517 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
32519 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
32521 (alpha_write_one_linkage): Correct typo.
32523 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
32525 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
32527 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
32529 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
32531 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
32533 * tree-chkp.h (chkp_insert_retbnd_call): New.
32534 * tree-chkp.c (chkp_insert_retbnd_call): New.
32535 * ipa-split.c (insert_bndret_call_after): Remove.
32536 (split_function): Use chkp_insert_retbnd_call.
32537 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
32538 bounds for instrumented functions.
32540 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
32543 * calls.c (initialize_argument_information): When producing tail
32544 call also turn SSA_NAMES passed by references to original PARM_DECLs
32546 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
32549 * lra-remat.c (do_remat): Process input and non-input insn
32550 registers separately.
32552 2015-04-07 Jakub Jelinek <jakub@redhat.com>
32555 * valtrack.c (debug_lowpart_subreg): New function.
32556 (dead_debug_insert_temp): Use it.
32558 PR middle-end/65680
32559 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
32560 into signed HOST_WIDE_INT the same as negative bit_offset.
32562 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
32564 * ipa-comdats.c (ipa_comdats): Visit all thunks
32565 to set proper comdat group.
32567 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32570 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
32571 on constants for NEON VSTRUCT modes.
32573 2015-04-07 Jakub Jelinek <jakub@redhat.com>
32574 Iain Sandoe <iain@codesourcery.com>
32577 * configure: Regenerate.
32579 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
32582 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
32583 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
32584 that LFD is used to load double constants instead of LFS. Add
32585 defaults for all costs structures. Add comments for missing
32586 initialization fields.
32587 (size32_cost): Likewise.
32588 (size64_cost): Likewise.
32589 (rs64a_cost): Likewise.
32590 (mpccore_cost): Likewise.
32591 (ppc403_cost): Likewise.
32592 (ppc405_cost): Likewise.
32593 (ppc440_cost): Likewise.
32594 (ppc476_cost): Likewise.
32595 (ppc601_cost): Likewise.
32596 (ppc603_cost): Likewise.
32597 (ppc604_cost): Likewise.
32598 (ppc604e_cost): Likewise.
32599 (ppc620_cost): Likewise.
32600 (ppc630_cost): Likewise.
32601 (ppccell_cost): Likewise.
32602 (ppc750_cost): Likewise.
32603 (ppc7450_cost): Likewise.
32604 (ppc8540_cost): Likewise.
32605 (ppce300c2c3_cost): Likewise.
32606 (ppce500mc_cost): Likewise.
32607 (ppce500mc64_cost): Likewise.
32608 (ppce5500_cost): Likewise.
32609 (ppce6500_cost): Likewise.
32610 (titan_cost): Likewise.
32611 (power4_cost): Likewise.
32612 (power6_cost): Likewise.
32613 (power7_cost): Likewise.
32614 (power8_cost): Likewise.
32615 (ppca2_cost): Likewise.
32616 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
32618 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
32619 instead of XXLOR to copy SFmode to clear out dirty bits created
32620 when SFmode denormals are generated.
32621 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
32622 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
32624 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
32626 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
32627 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
32628 * config/aarch64/aarch64-tune.md: Regenerate.
32630 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
32632 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
32633 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
32634 * config/arm/arm-cores.def (exynos-m1): New core.
32635 * config/arm/arm-tune.md: Regenerate.
32636 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
32637 * config/arm/bpabi.h: Likewise.
32639 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
32641 * ipa-cp (set_single_call_flag): Remove too
32642 restrictive assert.
32644 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
32646 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
32647 GOMP_offload_unregister from the destructor.
32649 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
32651 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
32652 flags for instrumentation thunk.
32653 (chkp_produce_thunks): Likewise.
32655 2015-04-05 Martin Liska <mliska@suse.cz>
32658 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
32659 has computed data structure.
32660 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32662 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
32664 * invoke.texi (inline-unit-growth): Increase growth to 20%
32665 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
32667 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
32670 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
32672 (lra_rematerialization_iter): New.
32673 * lra.c (lra): Initialize lra_rematerialization_iter.
32674 Stop updating lra_constraint_new_regno_start after switching of
32675 inheritance and rematerialization.
32676 * lra-remat.c (lra_rematerialization_iter): New.
32677 (lra_remat): Add printing pass iteration. Do rematerialization
32678 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
32680 2015-04-04 Richard Biener <rguenther@suse.de>
32682 PR tree-optimization/64909
32683 PR tree-optimization/65660
32684 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
32685 to take a cost vector for scalar iteration cost.
32686 (vect_get_single_scalar_iteration_cost): Likewise.
32687 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
32688 Compute the scalar iteration cost into a cost vector.
32689 (vect_get_known_peeling_cost): Use the scalar cost vector to
32690 account for the cost of the peeled iterations.
32691 (vect_estimate_min_profitable_iters): Likewise.
32692 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
32695 2015-04-04 Alan Modra <amodra@gmail.com>
32699 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
32700 0.0 constant unless TARGET_VSX.
32701 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
32704 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
32707 * ipa-inline-transform.c (inline_call): Skip sanity check to work
32710 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
32713 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
32714 speculative indirect edges to avoid ordering issue.
32716 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
32719 * ipa-inline.c (edge_badness): Add combined size to the denominator.
32721 2015-04-03 Jakub Jelinek <jakub@redhat.com>
32723 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
32724 TYPE_ARTIFICIAL on the .omp_data* types.
32726 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32728 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
32729 instrumentation thunks.
32731 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32733 * config/i386/i386.c (ix86_expand_call): Avoid nested
32734 PARALLEL in returned call value.
32736 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32738 * lto-cgraph.c (input_cgraph_1): Always link instrumented
32739 assembler name with original one.
32741 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
32743 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
32745 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
32747 Revert parts of r216820.
32748 * config/i386/i386.md (movqi_internal): Correct type calculation
32749 for alternatives 3 and 5.
32751 2015-04-02 Jakub Jelinek <jakub@redhat.com>
32753 PR preprocessor/61977
32754 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
32755 predefine __vector/__bool/__pixel macros nor context sensitive
32756 macros for CLK_ASM.
32757 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
32759 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
32761 * config/pa/pa.c (pa_output_move_double): Directly handle register
32762 indexed memory operand. Simplify handling of scaled register indexed
32765 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32768 * config/i386/linux-common.h (MPX_SPEC): New.
32769 (CHKP_SPEC): Add MPX_SPEC.
32770 * doc/invoke.texi (-fcheck-pointer-boudns): Document
32771 possible issues with '-z bndplt' support in linker.
32773 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
32775 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
32776 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
32777 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
32778 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
32779 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
32781 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
32783 * config/i386/sync.md (UNSPEC_MOVA): Remove.
32784 (atomic_load<mode>): Change operand 0 predicate to
32785 nonimmediate_operand and fix up the destination when needed.
32787 (atomic_loaddi_fpu): Use UNSPEC_LDA.
32788 (atomic_store<mode>): Change operand 1 predicate to
32789 nonimmendate_operand and move the source to register when needed.
32791 (atomic_store<mode>_1): Use UNSPEC_STA.
32792 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
32793 Fix moves from memory operand. Use UNSPEC_STA.
32795 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
32797 * expmed.c (strict_volatile_bitfield_p): Check that the access will
32798 not cross a MODESIZE boundary.
32799 (store_bit_field, extract_bit_field): Added assertions in the
32800 strict volatile bitfields code path.
32802 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
32805 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
32806 Increase args array size by one to avoid buffer overflow.
32808 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
32810 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
32812 * ipa-inline.c (edge_badness): Add wrapper penalty.
32813 (sum_callers): Move up.
32814 (inline_small_functions): Set single_caller.
32815 * ipa-inline.h (inline_summary): Add single_caller.
32816 * ipa-split.c (split_function): Set split_part.
32817 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
32818 * cgraph.h (cgraph_node): Add split_part.
32820 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
32823 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
32824 Do not split operands 0 and operands 2 to halfmode.
32825 (atomic_compare_and_swap<mode>): Update for
32826 atomic_compare_and_swap<dwi>_doubleword changes.
32828 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
32830 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
32831 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
32832 no caching is done.
32834 2015-03-31 Martin Liska <mliska@suse.cz>
32837 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
32838 has already filled up function summary.
32839 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32841 2015-03-31 Richard Biener <rguenther@suse.de>
32843 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
32846 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
32848 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
32850 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
32851 (s390_asm_output_function_label): Adapt to new signature of
32852 s390_function_num_hotpatch_hw
32853 Optimise the code generating assembler output.
32854 Add comments to assembler file.
32856 2015-03-31 Richard Biener <rguenther@suse.de>
32858 PR middle-end/65626
32859 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
32860 of the noreturn call so it is last and cleanup_control_flow_bb
32861 can do the CFG part.
32863 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
32866 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
32867 same_comdat_group for external symbols.
32868 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
32869 infinite same_comdat_group traversal loop.
32871 2015-03-31 Jakub Jelinek <jakub@redhat.com>
32874 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
32875 automatically to $headers.
32877 2015-03-30 Jakub Jelinek <jakub@redhat.com>
32880 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
32881 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
32883 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
32885 * ipa-prop.c (param_type_may_change_p): Likewise.
32886 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
32887 (remove_unused_scope_block_p): Add in_ctor_dtor_block
32888 argument. Before inlining, preserve
32889 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
32890 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
32892 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
32894 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32897 * ipa-inline.c (edge_badness): Base denominator on callee's
32900 2015-03-27 Martin Jambor <mjambor@suse.cz>
32903 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
32904 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
32905 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
32906 node_calling_single_call.
32907 * ipa-cp.c (count_callers): New function.
32908 (set_single_call_flag): Likewise.
32909 (initialize_node_lattices): Count callers and set single_flag_call if
32911 (incorporate_penalties): New function.
32912 (good_cloning_opportunity_p): Use it, dump new flags.
32913 (propagate_constants_topo): Set node_within_scc flag if appropriate.
32914 * doc/invoke.texi (ipa-cp-recursion-penalty,
32915 ipa-cp-single-call-pentalty): Document.
32917 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32920 * symtab.c (symtab_node::get_partitioning_class): Register vars
32922 * varpool.c (symbol_table::output_variables) Do not assemble unefined
32923 decls for non-symbols.
32925 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
32928 * output.h (default_binds_local_p_2): New.
32929 * varasm.c (default_binds_local_p_2): Renamed to ...
32930 (default_binds_local_p_3): This. Don't return true on protected
32931 data symbol if protected data may be external.
32932 (default_binds_local_p): Use default_binds_local_p_3.
32933 (default_binds_local_p_1): Likewise.
32934 (default_binds_local_p_2): New.
32935 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
32936 default_binds_local_p_2 if TARGET_MACHO is undefined.
32938 2015-03-27 Jakub Jelinek <jakub@redhat.com>
32941 * config/i386/i386.c (legitimize_pic_address): If base
32942 is SYMBOL_REF or LABEL_REF using %rip addressing, force
32943 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
32945 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32948 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
32951 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32954 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
32955 of optimized out indirect call.
32956 (redirect_to_unreachable): Always build symbol table node for
32957 BUILT_IN_UNREACHABLE
32959 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
32962 * ira-costs.c (record_reg_classes): Process all constraint string
32965 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
32967 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
32971 * config/c6x/constraints.md (S3): New constraint.
32972 * config/c6x/c6x.md (real_jump): Use it.
32974 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32976 PR middle-end/65595
32977 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
32978 do redirection if the call is not optimized out.
32980 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
32983 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
32984 (fchkp-check-incomplete-type): Add LTO.
32985 (fchkp-zero-input-bounds-for-main): Likewise.
32986 (fchkp-first-field-has-own-bounds): Likewise.
32987 (fchkp-narrow-bounds): Likewise.
32988 (fchkp-narrow-to-innermost-array): Likewise.
32989 (fchkp-use-static-bounds): Likewise.
32990 (fchkp-use-static-const-bounds): Likewise.
32991 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
32993 2015-03-27 Marek Polacek <polacek@redhat.com>
32995 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
32997 2015-03-27 Marek Polacek <polacek@redhat.com>
33000 * ubsan.c (ubsan_create_edge): New function.
33001 (instrument_bool_enum_load): Call it.
33002 (instrument_nonnull_arg): Likewise.
33003 (instrument_nonnull_return): Likewise.
33004 (instrument_object_size): Likewise.
33006 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33008 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
33011 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33014 * lto-streamer.h (class lto_location_cache): New.
33015 (struct data_in): Add location_cache.
33016 (lto_input_location): Update prototype.
33017 (stream_input_location_now): New.
33018 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
33019 pointer to location.
33020 (stream_input_location): Update.
33021 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
33022 (warn_odr): Apply location cache before warning.
33023 (lto_input_location): Update prototype.
33024 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
33025 Use stream_input_location_now.
33026 * lto-streamer-in.c (lto_location_cache::current_cache): New static
33028 (lto_location_cache::cmp_loc): New function.
33029 (lto_location_cache::apply_location_cache): New function.
33030 (lto_location_cache::accept_location_cache): New function.
33031 (lto_location_cache::revert_location_cache): New function.
33032 (lto_location_cache::input_location): New function.
33033 (lto_input_location): Do location caching.
33034 (stream_input_location_now): New function.
33035 (input_eh_region, input_struct_function_base): Use
33036 stream_input_location_now.
33037 (lto_data_in_create): use new.
33038 (lto_data_in_delete): Use delete.
33039 * tree-streamer-in.c (unpack_ts_block_value_fields,
33040 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
33041 lto_input_ts_exp_tree_pointers): Update for cached location api.
33043 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33046 * passes.def: Add pass_nothrow.
33047 * ipa-pure-const.c: (pass_data_nothrow): New.
33048 (pass_nothrow): New.
33049 (pass_nothrow::execute): New.
33050 (make_pass_nothrow): New.
33051 * tree-pass.h (make_pass_nothrow): Declare.
33053 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33055 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
33056 edge to change by speculation resolution or redirection.
33057 (edge_set_predicate): Likewise.
33058 (inline_summary_t::duplicate): Likewise.
33059 (remap_edge_summaries): Likewise.
33061 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33063 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
33065 (can_inline_edge_p): Relax option matching for always inline functions.
33067 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
33070 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
33071 Check operand 4 and operand 0 for equality.
33072 (avx512f_vextract<shuffletype>32x4_1_maskm):
33073 Check operand 6 and operand 0 for equality.
33074 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
33076 (vec_extract_hi_<mode>_maskm): Ditto.
33078 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33080 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
33081 dead calls back to live.
33082 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
33084 (cgraph_node::verify_node): ... here; verify only callee edges,
33086 * cif-code.def (CILK_SPAWN): New code.
33088 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33090 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
33091 (edge_set_predicate): Use it to mark unreachable edges.
33092 (inline_summary_t::duplicate): Remove unnecesary code.
33093 (remap_edge_summaries): Likewise.
33094 (dump_inline_summary): Report contains_cilk_spawn.
33095 (compute_inline_parameters): Compute contains_cilk_spawn.
33096 (inline_read_section, inline_write_summary): Stream
33097 contains_cilk_spawn.
33098 * ipa-inline.c (can_inline_edge_p): Do not touch
33099 DECL_STRUCT_FUNCTION that may not be available;
33100 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
33101 remove check for callee_fun->can_throw_non_call_exceptions and
33102 replace it by optimization attribute check; check for flag_exceptions.
33103 * ipa-inline-transform.c (inline_call): Maintain
33104 DECL_FUNCTION_PERSONALITY
33105 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
33107 2015-03-26 Jakub Jelinek <jakub@redhat.com>
33109 PR tree-optimization/65551
33110 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
33111 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
33113 2015-03-26 Richard Biener <rguenther@suse.de>
33115 PR middle-end/65555
33116 * tree-cfg.c (verify_gimple_call): Do not require a call to
33117 have no LHS if it wasn't recognized as control altering yet.
33119 2015-03-26 Jakub Jelinek <jakub@redhat.com>
33121 PR tree-optimization/64715
33122 * passes.def: Add another instance of pass_object_sizes before ccp1.
33123 * tree-object-size.c (pass_object_sizes::execute): In
33124 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
33125 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
33126 __bos result and the computed constant. Remove redundant
33127 checks, obsoleted by gimple_call_builtin_p test.
33129 * var-tracking.c (variable_tracking_main_1): Don't track
33130 variables for targetm.no_register_allocation targets.
33132 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
33134 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
33135 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
33137 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
33140 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
33141 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
33142 0.0 is correctly setup.
33143 (extenddftf2_internal): Likewise.
33145 2015-03-25 Sebastian Pop <s.pop@samsung.com>
33147 PR tree-optimization/65177
33148 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
33150 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
33151 edges not adjacent on the path to the original code.
33153 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
33156 * doc/install.texi (Building a native compiler): Document new
33157 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
33158 configuration assumes that the host supports the linker plugin.
33160 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
33163 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
33164 chain for generated call.
33166 2015-03-25 Richard Biener <rguenther@suse.de>
33168 * passes.c (pass_manager::execute_early_local_passes): Guard
33169 execution of pass_chkp_instrumentation_passes with
33170 flag_check_pointer_bounds.
33171 (pass_chkp_instrumentation_passes::gate): Likewise.
33173 2015-03-25 Martin Liska <mliska@suse.cz>
33175 PR tree-optimization/65538
33176 * symbol-summary.h (function_summary::~function_summary):
33177 Relese memory for allocated summaries.
33178 (function_summary::release): New function.
33180 2015-03-25 Jakub Jelinek <jakub@redhat.com>
33183 * lto-streamer-out.c (DFS::worklist): New struct.
33184 (DFS::worklist_vec): New data member.
33185 (DFS::next_dfs_num): Remove.
33186 (DFS::DFS): Rewritten using worklist instead of recursion,
33187 using most of code from DFS::DFS_write_tree.
33188 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
33189 pass it to DFS_write_tree calls.
33190 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
33191 quick initial checks push it into worklist_vec and return.
33193 2015-03-25 Richard Biener <rguenther@suse.de>
33195 PR middle-end/65519
33196 * genmatch.c (expr::gen_transform): Re-write to avoid
33197 using gimple_build.
33199 2015-03-25 Bin Cheng <bin.cheng@arm.com>
33201 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
33203 2015-03-25 Bin Cheng <bin.cheng@arm.com>
33205 * config/arm/arm.opt (print_tune_info): New option.
33206 * config/arm/arm.c (arm_print_tune_info): New function.
33207 (arm_file_start): Call arm_print_tune_info.
33208 * config/arm/arm-protos.h (struct tune_params): Add comment.
33209 * doc/invoke.texi (@item -mprint-tune-info): New item.
33210 (-mtune): mention it in ARM Option Summary.
33212 2015-03-25 DJ Delorie <dj@redhat.com>
33214 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
33217 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
33218 Martin Liska <mliska@suse.cz>
33220 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
33221 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
33222 (sem_item::add_type): New function.
33223 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
33224 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
33225 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
33226 (sem_function::equals_wpa): Fix typo.
33227 * ipa-icf.h (sem_item::add_type): New function.
33228 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
33231 2015-03-24 Jakub Jelinek <jakub@redhat.com>
33233 PR tree-optimization/65533
33234 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
33235 with swapped operands, call vect_free_slp_tree on
33236 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
33239 2015-03-24 Richard Biener <rguenther@suse.de>
33241 PR middle-end/65517
33242 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
33243 for fixup if necessary.
33245 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
33247 * doc/extend.texi (Function Attributes): Add @cindex entries
33248 for all attributes and regularize their format. Delete text
33249 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
33250 information about "eightbit_data", "tiny_data", and "model"
33251 variable attributes to the Variable Attributes section. Fix
33252 some obvious typos and copy-editing issues.
33253 (Variable Attributes, Type Attributes): Likewise add/fix
33254 @cindex entries for all attributes.
33256 2015-03-23 Jakub Jelinek <jakub@redhat.com>
33259 * tree-chkp.c (chkp_build_returned_bound): Ignore
33260 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
33262 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
33265 * config/sh/predicates.md (simple_mem_operand,
33266 displacement_mem_operand): Add test for reg.
33267 (short_displacement_mem_operand): Test for displacement_mem_operand
33268 before invoking sh_disp_addr_displacement.
33269 * config/sh/constraints.md (Sdd, Sra): Simplify.
33270 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
33271 Remove redundant displacement_mem_operand tests.
33273 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
33276 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
33277 the same -mmcu=MCU more than once.
33279 2015-03-23 Jakub Jelinek <jakub@redhat.com>
33282 * ipa-devirt.c: Remove duplicate demangle.h include.
33285 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
33287 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
33288 REG_POINTER on *destptr after adjusting it for prologue size.
33291 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
33292 ultimate_alias_target ()->order ints instead of
33293 ultimate_alias_target () pointers.
33295 2015-03-23 Richard Biener <rguenther@suse.de>
33297 PR tree-optimization/65518
33298 * tree-vect-stmts.c (vectorizable_load): Reject single-element
33299 interleaving cases we generate absymal code for.
33301 2015-03-23 Richard Biener <rguenther@suse.de>
33303 PR tree-optimization/65494
33304 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
33306 (vect_analyze_slp_instance): But do that here, always and once.
33308 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33310 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
33311 adding T or multiplying by T+1 and subracting T.
33313 2015-03-22 Jeff Law <law@redhat.com>
33315 PR rtl-optimization/64317
33316 * Makefile.in (OBJS): Add gcse-common.c
33317 * gcse.c: Include gcse-common.h
33318 (struct modify_pair_s): Move structure definition to gcse-common.h
33319 (compute_transp): Move function to gcse-common.c.
33320 (canon_list_insert): Similarly.
33321 (record_last_mem_set_info): Break out some code and put it into
33322 gcse-common.c. Call into the new common code.
33323 (compute_local_properties): Pass additional arguments to compute_transp.
33324 * postreload-gcse.c: Include gcse-common.h and df.h
33325 (modify_mem_list_set, blocks_with_calls): New variables.
33326 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
33327 (get_bb_avail_insn): Pass in the expression index too.
33328 (alloc_mem): Allocate memory for the new bitmaps and lists.
33329 (free_mem): Free memory for the new bitmaps and lists.
33330 (insert_expr_in_table): Record a bitmap index for each entry we
33332 (record_last_mem_set_info): Call into common code in gcse-common.c.
33333 (get_bb_avail_insn): If no available insn was found in the requested
33334 BB. If BB has a single predecessor, see if the expression is
33335 transparent in BB and available in that single predecessor.
33336 (compute_expr_transp): New wrapper for compute_transp.
33337 (eliminate_partially_redundant_load): Pass expression's bitmap_index
33338 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
33339 (gcse_after_reload_main): If there are elements in the hash table,
33340 then compute transparency for all the elements in the hash table.
33341 * gcse-common.h: New file.
33342 * gcse-common.c: New file.
33344 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
33346 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
33348 (System Headers): Likewise.
33350 (Traditional macros): Likewise.
33351 (Invocation): Likewise.
33352 (Option Index): Likewise.
33353 * doc/cppopts.texi (-M): Likewise.
33354 (-finput-charset): Likewise.
33355 (--help): Likewise.
33356 * doc.invoke.texi (AVR Options): Likewise.
33357 (V850 Options): Likewise.
33359 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
33362 * ipa-devirt.c: Include demangle.h
33363 (odr_type_d): Add field rtti_broken.
33364 (odr_subtypes_equivalent_p): Do not require name to match.
33365 (compare_virtual_tables): Fix typo; if type already has ODR violation,
33366 bypass the tests; be ready for function referneces in vtables that are
33367 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
33368 (warn_odr): Give up for nameless types.
33369 (warn_types_mismatch): Report mismatch in mangled names;
33370 report mismatch in anonymous namespaces; look into component types to
33371 give useful error; report when mismatch is dragged in from other ODR
33373 (odr_types_equivalent_p): Match types for being polymorphic; avoid
33374 duplicated diagnostics.
33375 (add_type_duplicate): Reorder checks so more informative ones come
33376 first; fix typo; do not output "the extra base is defined here" when
33378 (BINFO_N_BASE_BINFOS): Relax sanity check.
33380 2015-03-22 Martin Liska <mliska@suse.cz>
33381 Jakub Jelinek <jakub@redhat.com>
33383 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
33384 masks that can potentially include a builtin.
33385 (ix86_add_new_builtins): Introduce fast filter for isa values
33386 that cannot trigger builtin inclusion.
33388 2015-03-22 Martin Liska <mliska@suse.cz>
33390 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
33391 (sem_item::update_hash_by_local_refs): Likewise.
33392 (sem_variable::get_hash): Empty line is fixed.
33393 (sem_item_optimizer::execute): Include adding of hash references.
33394 (sem_item_optimizer::update_hash_by_addr_refs): New function.
33395 (sem_item_optimizer::build_hash_based_classes): Use local hash.
33396 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
33397 (sem_item::update_hash_by_local_refs): Likewise.
33399 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
33402 * ipa-comdats.c (enqueue_references): Walk through thunks.
33403 (ipa_comdats): Likewise.
33404 (set_comdat_group_1): New function.
33406 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
33409 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
33412 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
33413 Gerald Pfeifer <gerald@pfeifer.com>
33415 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
33417 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
33418 Sandra Loosemore <sandra@codesourcery.com>
33420 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
33421 function parameter declaration.
33422 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
33423 Update arguments to nios2_adjust_call_address().
33424 (sibcall_internal): Rename from *sibcall.
33425 (sibcall_value_internal): Rename from *sibcall_value.
33426 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
33427 (nios2_large_got_address): Add target temp reg parameter.
33428 (nios2_got_address): Adjust call to nios2_large_got_address, add
33429 force_reg around it.
33430 (nios2_load_pic_address): Add target temp reg parameter, replace call
33431 to nios2_got_address with corresponding code.
33432 (nios2_legitimize_constant_address): Update call to
33433 nios2_load_pic_address.
33434 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
33435 to use temp reg for PIC loading purposes.
33436 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
33437 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
33438 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
33440 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33442 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
33443 usage of "the @option{...}".
33444 (-Wopenmp-simd): Likewise.
33445 (-fsanitize-recover): Likewise.
33446 (-fsanitize-undefined-trap-on-error): Likewise.
33448 (tracer-dynamic-coverage-feedback): Likewise.
33449 (reorder-block-duplicate-feedback): Likewise.
33450 (loop-unroll-jam-size): Likewise.
33453 (-mabs=legacy): Likewise.
33454 (-mupper-regs-df): Likewise.
33455 (-mupper-regs-sf): Likewise.
33456 (-mpointers-to-nested-functions): Likewise.
33458 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33460 * doc/extend.texi (Cilk Plus Builtins): Add markup.
33462 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33464 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
33465 additional index entries and cross-references.
33466 (-fchkp-check-incomplete-type): Likewise.
33467 (-fchkp-first-field-has-own-bounds): Likewise.
33468 (-fchkp-narrow-to-innermost-array): Likewise.
33469 (-fchkp-use-fast-string-functions): Likewise.
33470 (-fchkp-use-nochk-string-functions): Likewise.
33471 (-fchkp-use-static-const-bounds): Likewise.
33472 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33473 (-fchkp-instrument-marked-only): Likewise.
33474 (-fchkp-use-wrappers): Likewise.
33475 (-static-libmpx): Likewise.
33476 (-static-libmpxwrappers): Likewise.
33477 * doc/extend.texi (bnd_legacy): Likewise.
33478 (bnd_instrument): Likewise.
33479 (bnd_variable_size): Likewise.
33480 (Pointer Bounds Checker builtins): Likewise.
33482 2015-03-21 Tom de Vries <tom@codesourcery.com>
33484 PR tree-optimization/65458
33485 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
33486 * cgraph.h (cgraph_node): Add parallelized_function field.
33487 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
33488 (input_overwrite_node): Read parallelized_function field.
33489 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
33490 parallelized_function on cgraph_node for child_fn.
33491 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
33492 Remove include of gt-tree-parloops.h.
33493 (parallelized_functions): Remove static variable.
33494 (parallelized_function_p): Rewrite using parallelized_function field of
33496 (create_loop_fn): Remove adding to parallelized_functions.
33497 * Makefile.in (GTFILES): Remove tree-parloops.c
33499 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
33501 PR rtl-optimization/64366
33502 * lra.c (lra_update_insn_regno_info): Consider regs in
33503 CALL_INSN_FUNCTION_USAGE memory.
33505 2015-03-20 Richard Biener <rguenther@suse.de>
33507 PR middle-end/64715
33508 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
33509 for type comparison and gcc_checking_assert.
33510 (chrec_fold_plus_poly_poly): Likewise.
33511 (chrec_fold_multiply_poly_poly): Likewise.
33512 (chrec_convert_1): Likewise.
33513 * gimplify.c (gimplify_expr): Remove premature folding of
33514 &X + CST to &MEM[&X, CST].
33516 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
33518 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
33520 (ipa_inline): Recompute inline_failed codes.
33521 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
33522 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
33525 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
33527 PR rtl-optimization/60851
33528 * recog.c (constrain_operands): Accept a pseudo register before reload
33529 for LRA enabled targets.
33531 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
33534 * config/rs6000/predicates.md (easy_fp_constant): Remove special
33535 -ffast-math handling that kept non-0 constants live in the RTL
33536 until reload. Remove logic testing the number of instructions it
33537 took to create a constant in a GPR that was never used, due to a
33538 test for soft-float earlier.
33539 (memory_fp_constant): Delete, no longer used.
33541 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
33542 alternatives for loading non-0 constants into GPRs for hard
33543 floating point that is no longer needed due to changes in
33544 easy_fp_constant. Add support for loading 0.0 into GPRs.
33545 (mov<mode>_hardfloat32): Likewise.
33546 (mov<mode>_hardfloat64): Likewise.
33547 (mov<mode>_64bit_dm): Likewise.
33548 (movtd_64bit_nodm): Likewise.
33549 (pre-reload move FP constant define_split): Delete define_split,
33550 since it is no longer used.
33551 (extenddftf2_internal): Remove GHF constraints that are not valid
33554 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
33556 PR rtl-optimization/63491
33557 * lra-constraints.c (check_and_process_move): Use src instead of
33558 sreg. Remove some dead code.
33560 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
33563 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
33564 (sem_variable::merge): Likewise.
33566 2015-03-19 Martin Liska <mliska@suse.cz>
33569 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
33570 all fields of cgraph_thunk_info.
33572 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
33574 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
33575 clone instrumented thunks.
33577 2015-03-19 Richard Biener <rguenther@suse.de>
33580 2015-03-10 Richard Biener <rguenther@suse.de>
33582 PR middle-end/63155
33583 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
33584 * tree-ssa-coalesce.c: Include timevar.h.
33585 (attempt_coalesce): Handle graph being NULL.
33586 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
33587 Split out abnormal coalescing to ...
33588 (perform_abnormal_coalescing): ... this function.
33589 (coalesce_ssa_name): Perform abnormal coalescing without computing
33591 (verify_ssa_coalescing_worker): New function.
33592 (verify_ssa_coalescing): Likewise.
33594 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
33595 Jakub Jelinek <jakub@redhat.com>
33598 * tsan.c (instrument_gimple): Clear tail call flag on
33601 2015-03-19 Jakub Jelinek <jakub@redhat.com>
33604 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
33605 call in the return bb.
33606 (find_split_points): Add RETURN_BB argument, don't call
33608 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
33609 if true append TSAN_FUNC_EXIT internal call after the call to
33610 the split off function.
33611 (execute_split_functions): Call find_return_bb here.
33612 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
33613 Adjust find_split_points and split_function calls.
33615 2015-03-18 DJ Delorie <dj@redhat.com>
33617 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
33618 (iorqi3_virt): Likewise.
33620 2015-03-18 Tom de Vries <tom@codesourcery.com>
33622 * tree-parloops.c (parallelize_loops): Make static.
33623 * tree-parloops.h (parallelize_loops): Remove extern declaration.
33625 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
33627 PR middle-end/64491
33629 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
33631 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
33632 condition would be removed due to undefined behaviour.
33634 2015-03-18 Martin Liska <mliska@suse.cz>
33637 * cgraph.c (cgraph_node::get_create): Remove unnecessary
33638 xstrdup_for_dump wrapper.
33639 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
33641 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
33642 with xstrdup_for_dump.
33643 (sem_variable::equals): Likewise.
33644 (sem_item_optimizer::read_section): Use symtab_node::name instead of
33646 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
33647 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
33648 symtab_node::asm_name with xstrdup_for_dump.
33649 (congruence_class::dump): Use symtab_node::name instead of
33651 * ipa-icf.h (symtab_node::name): Remove.
33652 (symtab_node::asm_name): Likewise.
33654 2015-03-18 Jakub Jelinek <jakub@redhat.com>
33656 PR tree-optimization/65450
33657 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
33659 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
33660 it instead of duplicate_ssa_name_ptr_info.
33663 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
33665 2015-03-18 Richard Biener <rguenther@suse.de>
33667 * tree-data-ref.h (struct access_matrix): Remove.
33668 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
33669 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
33670 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
33671 (am_vector_index_for_loop): Likewise.
33672 (struct data_reference): Remove access_matrix member.
33673 (DR_ACCESS_MATRIX): Remove.
33674 (lambda_vector_new): Add comment.
33675 (lambda_matrix_new): Use XOBNEWVEC.
33677 2015-03-18 Richard Biener <rguenther@suse.de>
33679 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
33680 (pass_ch::execute): Cleanup the CFG only if we did sth.
33681 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
33683 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33685 * expmed.c (synth_mult): Use std::swap instead of manually
33686 swapping algorithms.
33688 2015-03-18 Jakub Jelinek <jakub@redhat.com>
33691 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
33693 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
33696 * config/avr/avr.opt (-nodevicelib): New option.
33697 * doc/invoke.texi (AVR Options): Document it.
33698 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
33699 libgcc.a, libc.a, libm.a.
33700 * config/avr/specs.h: Same.
33701 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
33702 which don't (directly) depend on the device. Print more help.
33703 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
33704 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
33705 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
33707 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
33708 for specs file name.
33709 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
33710 * config/avr/avr-mcus.def: Adjust initializers and comments.
33712 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
33714 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
33715 DECL_ONE_ONLY to check if decl is one only.
33716 * ipa-split.c (consider_split): Limit splitt of one only functions.
33718 2015-03-16 Jakub Jelinek <jakub@redhat.com>
33720 PR tree-optimization/65427
33721 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
33723 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
33725 2015-03-16 Marek Polacek <polacek@redhat.com>
33727 * cgraph.h (add_new_static_var): Remove declaration.
33728 * varpool.c (add_new_static_var): Remove function.
33730 2015-03-16 Jakub Jelinek <jakub@redhat.com>
33732 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
33733 instead of vec<tree> * with vec_alloc and release for args.
33736 PR middle-end/65431
33737 * omp-low.c (delete_omp_context): Only splay_tree_delete
33738 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
33739 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
33741 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
33744 * cfgexpand.c (align_base): New function.
33745 (alloc_stack_frame_space): Call it.
33746 (expand_stack_vars): Align prev_frame to be sure
33747 data->asan_vec elements aligned properly.
33749 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
33751 PR middle-end/65409
33752 * expr.c (store_field): Do not do a direct block copy if the source is
33753 a PARALLEL with BLKmode.
33755 2015-03-16 Tom de Vries <tom@codesourcery.com>
33757 PR middle-end/65414
33759 2015-03-12 Tom de Vries <tom@codesourcery.com>
33761 PR rtl-optimization/64895
33762 * lra-lives.c (check_pseudos_live_through_calls): Use
33763 actual_call_used_reg_set instead of call_used_reg_set, if available.
33765 2015-03-16 Alan Modra <amodra@gmail.com>
33768 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
33769 Modify Z->r bswapdi splitter to use dest in place of scratch.
33770 In r->Z and Z->r bswapdi splitter rename word_high, word_low
33771 to word1, word2 and rearrange logic to suit.
33772 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
33773 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
33774 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
33775 Add one '?' on r->r. Modify Z->r splitter to avoid need for
33778 2015-03-14 Jakub Jelinek <jakub@redhat.com>
33780 PR tree-optimization/65369
33781 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
33782 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
33783 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
33785 PR tree-optimization/65418
33786 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
33787 are casts in the first PLUS_EXPR operand, ensure tbias and
33788 *totallowp are in the inner type.
33790 PR rtl-optimization/65401
33791 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
33792 argument. If true, adjust_address_nv of x with big-endian
33793 correction for the mode widening to GET_MODE (y).
33794 (make_field_assignment): Don't do MEM mode widening here.
33795 Use MEM_P instead of GET_CODE == MEM.
33797 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
33799 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
33800 the external decls.
33802 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33805 * config/arm/arm.c (arm_gen_constant, AND case): Use
33806 ARM_SIGN_EXTEND when constructing AND mask.
33808 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
33810 * graph.c (print_graph_cfg): Make function names visible and append
33811 parenthesis to it. Also make groups of basic blocks belonging to the
33812 same function visible.
33814 2015-03-12 Richard Biener <rguenther@suse.de>
33816 PR middle-end/44563
33817 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
33818 to avoid quadratic behavior with inline expansion splitting blocks.
33819 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
33820 with the successor if the predecessor will be merged with it.
33821 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
33822 entry block with its successor.
33824 2015-03-13 Richard Biener <rguenther@suse.de>
33826 PR middle-end/44563
33827 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
33828 (cleanup_tree_cfg_1): Do not call it.
33829 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
33830 (fixup_noreturn_call): Mark the stmt as control altering.
33831 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
33833 (pass_data_fixup_cfg): Produce a dump file.
33834 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
33835 (need_noreturn_fixup): New global.
33836 (pass_dominator::execute): Fixup queued noreturn calls.
33837 (optimize_stmt): Queue calls that became noreturn for fixup.
33838 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
33839 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
33840 (el_to_fixup): New global.
33841 (eliminate_dom_walker::before_dom_childre): Queue calls that
33842 became noreturn for fixup.
33843 (eliminate): Fixup queued noreturn calls.
33844 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
33845 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
33846 (substitute_and_fold_dom_walker::before_dom_children): Queue
33847 alls that became noreturn for fixup.
33848 (substitute_and_fold): Fixup queued noreturn calls.
33850 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
33852 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
33853 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
33854 are building; for methods check ODR type of class they belong to if
33855 they may lead to a polymorphic call.
33856 (sem_function::compare_polymorphic_p): Be bit smarter about testing
33857 when function may lead to a polymorphic call.
33858 (sem_function::compare_type_list): Remove.
33859 (sem_variable::equals): Update use of compatible_types_p.
33860 (sem_variable::parse_tree_refs): Remove.
33861 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
33863 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
33865 (func_checker::compatible_polymorphic_types_p): Break out from ...
33866 (unc_checker::compatible_types_p): ... here.
33867 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
33869 (unc_checker::compatible_types_p): Update.
33870 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
33873 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33875 PR rtl-optimization/65235
33876 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
33877 When first element of vec_concat is const_int, calculate its size
33878 using second element.
33880 2015-03-12 Richard Biener <rguenther@suse.de>
33882 PR middle-end/65270
33883 * fold-const.c (operand_equal_p): Fix ordering of resetting
33884 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
33886 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
33888 * config/s390/s390.c (s390_reorg): Move code to output nops after label
33890 (s390_asm_output_function_label): Likewise.
33891 * config/s390/s390.c (s390_asm_output_function_label):
33892 Fix function label alignment with -mhtopatch.
33893 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
33894 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
33895 ("nop_2_byte"): New define_insn.
33896 ("nop_4_byte"): Likewise.
33897 ("nop_6_byte"): Likewise.
33898 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
33899 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
33901 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
33904 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
33907 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
33910 * toplev.c (process_options): Restrict Pointer Bounds Checker
33911 usage with Address Sanitizer.
33913 2015-03-12 Richard Biener <rguenther@suse.de>
33915 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
33917 * omp-low.c (expand_omp_taskreg): Split block before removing
33919 (expand_omp_target): Likewise.
33920 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
33921 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
33922 stmt to split_block.
33924 2015-03-12 Tom de Vries <tom@codesourcery.com>
33926 PR rtl-optimization/64895
33927 * lra-lives.c (check_pseudos_live_through_calls): Use
33928 actual_call_used_reg_set instead of call_used_reg_set, if available.
33930 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
33932 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
33933 (cgraph_node::remove): Likewise.
33934 (cgraph_node::get_untransformed_body): Likewise.
33935 * varpool.c (varpool_node::remove): Likewise.
33936 (varpool_node::get_constructor): Add sanity check.
33938 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
33940 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
33942 (-fabi-compat-version): Likewise.
33943 (-ffriend-injection): Likewise.
33944 (-Wdeclaration-after-statement): Likewise.
33945 (-fomit-frame-pointer): Likewise.
33946 (-ftree-coalesce-inlined-vars): Likewise.
33947 (-fvisibility=): Likewise.
33948 * doc/extend.texi (Typeof): Likewise.
33949 (Zero Length): Likewise.
33950 (Escaped Newlines): Likewise.
33951 (Compound Literals): Likewise.
33952 (Function Attributes): Likewise.
33953 (Label Attributes): Likewise.
33954 (Type Attributes): Likewise.
33955 (Function Names): Likewise.
33956 (Other Builtins): Likewise.
33957 (Function Specific Option Pragmas): Likewise.
33958 (C++ Interface): Likewise.
33960 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
33962 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
33964 2015-03-11 Marek Polacek <polacek@redhat.com>
33966 PR tree-optimization/65388
33967 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
33969 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
33972 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
33973 * configure: Regenerate.
33974 * config.in: Regenerate.
33975 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
33976 [-mn-flash]: Document it.
33977 [__AVR_ARCH__]: Document avrtiny.
33979 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
33980 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
33981 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
33983 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
33985 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
33987 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
33990 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
33991 allow reloads of PLUS in floating point/VSX registers.
33993 2015-03-11 Junmo Park <junmoz.park@samsung.com>
33995 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
33996 crypto_sha256_fast.
33997 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
33999 2015-03-11 Richard Biener <rguenther@suse.de>
34001 PR tree-optimization/65310
34002 * tree-sra.c (build_ref_for_offset): Also preserve larger
34005 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
34007 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
34009 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34012 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
34014 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
34016 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34018 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
34019 (sem_function::equals_wpa): ... here.
34021 2015-03-10 Marek Polacek <polacek@redhat.com>
34022 Jakub Jelinek <jakub@redhat.com>
34025 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
34026 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
34029 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34032 * config/rs6000/t-linux: For powerpc64* target set
34033 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
34035 2015-03-10 Richard Biener <rguenther@suse.de>
34037 PR middle-end/44563
34038 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
34039 for redirect_all_calls.
34041 2015-03-10 Marek Polacek <polacek@redhat.com>
34043 * gdbinit.in (pcfun): Define and document.
34045 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
34047 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
34048 of libgomp-plugin.h.
34049 (find_target_compiler): Support a case when the path to gcc is
34050 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
34051 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
34052 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
34054 (main): Use GCC_INSTALL_NAME as target_driver_name.
34055 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
34057 (mkoffload.o): Remove obsolete include path and defines.
34058 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
34060 2015-03-10 Richard Biener <rguenther@suse.de>
34062 PR middle-end/63155
34063 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34064 * tree-ssa-coalesce.c: Include timevar.h.
34065 (attempt_coalesce): Handle graph being NULL.
34066 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34067 Split out abnormal coalescing to ...
34068 (perform_abnormal_coalescing): ... this function.
34069 (coalesce_ssa_name): Perform abnormal coalescing without computing
34071 (verify_ssa_coalescing_worker): New function.
34072 (verify_ssa_coalescing): Likewise.
34074 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
34077 * config.gcc (extra_options) [avr]: Remove.
34078 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
34079 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
34080 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
34082 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
34083 (-mmcu=): Add Var and MissingArgError properties.
34085 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
34086 * config/avr/t-multilib: Regenerate.
34087 * config/avr/specs.h: New file.
34088 * config/avr/driver-avr.c: New file.
34089 * config/avr/genopt.sh: Remove file.
34090 * config/avr/avr-tables.opt: Remove file.
34091 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
34092 * config/avr/avr-c.c: Same.
34093 * avr-arch.h: Same.
34094 (avr_current_device): Remove proto.
34095 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
34096 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
34097 (EXTRA_SPEC_FUNCTIONS): Define.
34098 (avr_devicespecs_file): New specs function proto.
34099 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
34100 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
34101 (avr_current_device): Remove definition and usage.
34102 (avr_set_core_architecture): New static function.
34103 (avr_option_override): Use it.
34104 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
34105 (mcu_name): New static array.
34106 (comparator, avr_archs_str, avr_mcus_str): New static functions.
34107 (avr_inform_devices, avr_inform_core_architectures): New functions.
34108 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
34109 (avrlibc.h) [WITH_AVRLIBC]: Include.
34110 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
34111 (print_mcu): Rewrite from scratch.
34112 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
34113 Forward to avr-specific specs defined in device-specs file.
34114 * config/avr/t-avr (driver-avr.o): New rule.
34115 (avr-devices.o): Depend on avr-arch.h.
34116 (avr-mcus): No more depend on avr-tables.opt.
34117 (avr-tables.opt): Remove rule.
34118 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
34120 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34122 * c-family/c.opt (fchkp-use-wrappers): New.
34123 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
34124 (chkp_wrap_function): New.
34125 (chkp_build_instrumented_fndecl): Support wrapped
34127 * doc/invoke.texi (-fcheck-pointer-bounds): New.
34128 (-fchkp-check-incomplete-type): New.
34129 (-fchkp-first-field-has-own-bounds): New.
34130 (-fchkp-narrow-bounds): New.
34131 (-fchkp-narrow-to-innermost-array): New.
34132 (-fchkp-optimize): New.
34133 (-fchkp-use-fast-string-functions): New.
34134 (-fchkp-use-nochk-string-functions): New.
34135 (-fchkp-use-static-bounds): New.
34136 (-fchkp-use-static-const-bounds): New.
34137 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
34138 (-fchkp-check-read): New.
34139 (-fchkp-check-write): New.
34140 (-fchkp-store-bounds): New.
34141 (-fchkp-instrument-calls): New.
34142 (-fchkp-instrument-marked-only): New.
34143 (-fchkp-use-wrappers): New.
34144 (-static-libmpx): New.
34145 (-static-libmpxwrappers): New.
34147 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34149 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
34150 (CHKP_SPEC): Add wrappers library.
34151 * c-family/c.opt (static-libmpxwrappers): New.
34153 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34155 * config/i386/linux-common.h (LIBMPX_LIBS): New.
34156 (LIBMPX_SPEC): New.
34158 * gcc.c (CHKP_SPEC): New.
34159 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
34160 * c-family/c.opt (static-libmpx): New.
34162 2015-03-10 Richard Biener <rguenther@suse.de>
34164 PR middle-end/44563
34165 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
34167 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
34168 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
34169 (cgraph_add_edge_to_call_site_hash): Likewise.
34170 (cgraph_node::get_edge): Likewise.
34171 (cgraph_edge::set_call_stmt): Likewise.
34172 (cgraph_edge::remove_caller): Likewise.
34174 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
34176 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
34177 (callee_saved_gpr_regs_size): ... this.
34178 (callee_saved_regs_first_regno): Rename to ...
34179 (callee_saved_first_gpr_regno): ... this.
34180 (callee_saved_regs_last_regno) Rename to ...
34181 (callee_saved_last_gpr_regno): ... this.
34182 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
34184 (nds32_initial_elimination_offset): Likewise.
34185 (nds32_expand_prologue): Likewise.
34186 (nds32_expand_epilogue): Likewise.
34187 (nds32_expand_prologue_v3push): Likewise.
34188 (nds32_expand_epilogue_v3pop): Likewise.
34189 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
34190 Adjust renamed variables.
34191 (nds32_output_stack_pop): Likewise.
34193 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
34195 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
34198 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34200 PR rtl-optimization/65321
34201 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
34203 * var-tracking.c (use_narrower_mode): Likewise.
34205 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34207 PR tree-optimization/65355
34208 * varasm.c (notice_global_symbol): Do not produce RTL.
34209 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
34211 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
34212 check for section anchors.
34214 2015-03-10 Alan Modra <amodra@gmail.com>
34217 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
34218 to be single-arch by default. Set cpu_is_64bit for powerpc64
34219 given --with-cpu=native.
34220 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
34221 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
34223 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
34224 rs6000_isa_flags rather than TARGET_64BIT.
34226 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
34227 Kaz Kojima <kkojima@gcc.gnu.org>
34229 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
34231 2015-03-09 Jakub Jelinek <jakub@redhat.com>
34234 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
34235 on a TREE_BINFO, instead use BINFO_TYPE.
34237 2015-03-09 Richard Biener <rguenther@suse.de>
34239 PR middle-end/65270
34240 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
34241 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
34242 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
34243 of that. When comparing dereferences compare alignment.
34244 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
34246 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
34248 * ipa-inline-analysis.c (check_callers): Check
34249 node->can_remove_if_no_direct_calls_and_refs_p.
34250 (growth_likely_positive): Reorganize to call
34251 can_remove_if_no_direct_calls_p later.
34252 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
34253 will_be_removed_from_program_if_no_direct_calls_p): Add
34254 will_inline parameter.
34255 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
34256 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34257 Handle inliner case correctly.
34259 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
34261 PR tree-optimization/63743
34262 * cfgexpand.c (reorder_operands): Also reorder if only second operand
34263 had its definition forwarded by TER.
34265 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
34268 * ipa-utils.h (types_odr_comparable): Add strict argument.
34269 * ipa-devirt.c: Fix whitespace;
34270 (odr_hasher): Remove.
34271 (odr_name_hasher, odr_vtable_hasher): New hashers.
34272 (can_be_name_hashed_p): New predicate.
34273 (hash_type_name): remove.
34274 (hash_odr_name): New.
34275 (odr_name_hasher::hash): new.
34276 (can_be_vtable_hashed_p): New.
34277 (hash_odr_vtable): New.
34278 (odr_vtable_hasher::hash): New.
34279 (types_same_for_odr): Add strict parameter.
34280 (types_odr_comparable): Likewise.
34281 (odr_name_hasher::equal): New.
34282 (odr_vtable_hasher::equal): New.
34283 (odr_name_hasher::remove): New.
34284 (odr_hash_type): Change to hash_table<odr_name_hasher>.
34285 (odr_vtable_hash_type): New.
34286 (odr_vtable_hash): New.
34287 (odr_subtypes_equivalent_p): Do strict comparsion.
34288 (add_type_duplicate): Merge type names; cleanup; avoid type
34290 (register_odr_type): Initialize vtable hash.
34291 (build_type_inheritance_graph): Likewise
34292 (get_odr_type): Reorg to use two hashes.
34293 (dump_possible_polymorphic_call_targets): Move sanity check after debug
34295 (ipa_devirt): Dump type_inheritance_graph.
34296 (types_same_for_odr): Add strict mode.
34298 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34301 * cgraph.h (symtab_node): Add definition_alignment,
34302 can_increase_alignment_p and increase_alignment.
34303 * symtab.c (symtab_node::can_increase_alignment_p,
34304 increase_alignment_1, symtab_node::increase_alignment,
34305 symtab_node::definition_alignment): New.
34306 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
34307 can_increase_alignment_p.
34308 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
34309 * tree-vect-stmts.c (ensure_base_align): Likewise.
34310 * varasm.c (function_section_1): Use definition_alignment.
34311 (assemble_start_function): Likewise.
34312 (emit_local): likewise.
34313 (build_constant_desc): Likewsie.
34314 (output_constant_def_contents): Likewise.
34315 (place_block_symbol): Likewise.
34316 (output_object_block): Likewise.
34318 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34321 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
34322 when outputting debug.
34324 2015-03-07 Marek Polacek <polacek@redhat.com>
34325 Martin Uecker <uecker@eecs.berkeley.edu>
34328 * doc/invoke.texi: Update description of -fsanitize=bounds.
34330 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
34332 * tree-ssa-phiopt.c (neg_replacement): Remove.
34333 (tree_ssa_phiopt_worker): Remove negate optimization.
34335 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34338 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
34340 2015-03-06 Richard Biener <rguenther@suse.de>
34342 PR middle-end/64928
34343 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
34344 and liveout_obstack members.
34345 (calculate_live_on_exit): Remove.
34346 (calculate_live_ranges): Change declaration.
34347 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
34348 (new_tree_live_info): Adjust.
34349 (calculate_live_ranges): Delete livein when not wanted.
34350 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
34351 Deal with partly deleted live info.
34352 (loe_visit_block): Remove temporary bitmap by using
34353 bitmap_ior_and_compl_into.
34354 (live_worklist): Adjust accordingly.
34355 (calculate_live_on_exit): Make static.
34356 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
34357 we do not need livein.
34359 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
34361 * real.c (real_from_string): Fix typo in assertion.
34363 2015-03-06 Alex Velenko <alex.velenko@arm.com>
34365 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
34368 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34370 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
34372 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
34375 * lra-assigns.c (find_hard_regno_for): Rename to
34376 find_hard_regno_for_1. Add a new parameter.
34377 (find_hard_regno_for): New function using find_hard_regno_for_1.
34379 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
34381 PR rtl-optimization/65067
34382 * expmed.c (store_bit_field, extract_bit_field): Reworked the
34383 strict volatile bitfield handling.
34385 2015-03-05 Martin Liska <mliska@suse.cz>
34388 * ipa-icf.c (sem_variable::equals): Compare variables types.
34390 2015-03-05 Richard Henderson <rth@redhat.com>
34393 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
34394 correctly check weak symbol binding.
34396 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
34398 PR middle-end/65315
34399 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
34402 2015-03-05 Martin Liska <mliska@suse.cz>
34404 * ipa-inline.c (inline_small_functions): Set default value to
34405 prevent warning during bootstrap.
34406 * tree.h: Add pragma guard that ignores false positives during
34409 2015-03-05 Richard Biener <rguenther@suse.de>
34411 PR tree-optimization/65310
34412 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
34413 Properly preserve alignment of the base of the access.
34415 2015-03-05 Richard Biener <rguenther@suse.de>
34418 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
34419 Compare dependence info.
34421 2015-03-05 Richard Biener <rguenther@suse.de>
34423 PR middle-end/65233
34424 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
34426 (walk_ssa_copies): Revert last chage. Instead do not walk
34427 SSA names registered for SSA update.
34429 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34432 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
34433 vtable references for their containing type.
34434 (sem_function::equals_wpa): Compare TYPE_RESTRICT
34435 and type attributes.
34437 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
34439 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
34440 before negating it.
34441 * stor-layout.c (finalize_record_size): Revert latest change.
34443 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
34445 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
34447 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34449 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
34450 for correct comdat handling.
34451 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34453 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
34454 (used_from_object_file_p_worker): Remove.
34455 (cgraph_node::only_called_directly_or_alised): Add
34456 used_from_object_file_p.
34457 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
34458 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
34459 can_remove_if_no_direct_calls_and_refs_p.
34461 2015-03-04 Nick Clifton <nickc@redhat.com>
34463 * config/rl78/rl78.h (enum reg_class): Remove real registers from
34464 General register class.
34465 * config/rl78/rl78-real.md: Replace general register constraints
34466 with real+virtual register constraints.
34468 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34470 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
34471 from checking for -mhtm option.
34473 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34475 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
34476 (struct ipa_sra_check_caller_data): Add has_thunk field.
34477 (ipa_sra_check_caller): Check for thunk.
34478 (ipa_sra_preliminary_function_checks): Give up on function with
34480 (ipa_early_sra): Use call_for_symbol_and_aliases.
34482 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
34485 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
34486 called for __stack_chk_guard symbol.
34488 2015-03-03 DJ Delorie <dj@redhat.com>
34490 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
34492 (*addhi3_real): Likewise.
34493 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
34494 pattern to match incrementing memory.
34495 * config/rl78/predicates.md (rl78_1_2_operand): New.
34496 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
34497 it's the same and only mem.
34498 (rl78_alloc_physical_registers_op2): If there's effectively only
34499 one MEM, transcode it into HL.
34500 (rl78_far_p): Reject addresses that aren't legitimate.
34502 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
34504 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
34507 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
34509 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
34511 Implement call0 ABI for xtensa
34512 * config/xtensa/constraints.md ("a" constraint): Include stack
34513 pointer in case of call0 ABI.
34514 ("q" constraint): Make empty in case of call0 ABI.
34515 ("D" constraint): Include stack pointer in case of call0 ABI.
34516 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
34517 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
34519 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
34521 (xtensa_regno_to_class): Make it a local variable in the
34522 function xtensa_regno_to_class.
34523 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
34524 macro, function prototype and implementation.
34525 (reg_nonleaf_alloc_order): Make it a local variable in the
34526 function order_regs_for_local_alloc.
34527 (xtensa_conditional_register_usage): New function.
34528 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
34529 (xtensa_valid_move): Allow direct moves to stack pointer
34530 register in call0 ABI.
34531 (xtensa_setup_frame_addresses): Only spill register windows in
34533 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
34534 call0 ABI respectively.
34535 (xtensa_function_arg_1): Only mark a7 register for copying in
34537 (xtensa_call_save_reg): New function.
34538 (compute_frame_size): Add space for callee saved register
34539 storage to the frame size in call0 ABI.
34540 (xtensa_expand_prologue): Generate code to set up stack frame
34541 and save callee-saved registers in call0 ABI.
34542 (xtensa_expand_epilogue): New function.
34543 (xtensa_set_return_address): New function.
34544 (xtensa_return_addr): Calculate return address in call0 ABI.
34545 (xtensa_builtin_saveregs): Only mark a7 register for copying and
34546 emit copying code in windowed ABI.
34547 (order_regs_for_local_alloc): Add preferred register allocation
34548 order for non-leaf function in call0 ABI.
34549 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
34550 (xtensa_asm_trampoline_template): Add trampoline generation for
34552 (xtensa_trampoline_init): Add trampoline initialization for
34554 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
34556 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
34557 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
34558 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
34559 ABI call-used registers.
34560 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
34561 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
34563 (REG_CLASS_CONTENTS): Include all registers into the preferred
34564 reload registers set, adjust the set in the
34565 xtensa_conditional_register_usage.
34566 (xtensa_regno_to_class): Drop variable declaration.
34567 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
34569 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
34571 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
34572 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
34573 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
34574 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
34575 location in call0 ABI.
34576 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
34577 stack adjustment size when handling exception.
34578 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
34579 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
34581 ("return" pattern): Generate ret.n/ret in call0 ABI.
34582 ("epilogue" pattern): Expand epilogue.
34583 ("nonlocal_goto" pattern): Use default in call0 ABI.
34584 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
34585 emit eh_set_a0_* depending on ABI.
34586 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
34587 ("eh_set_a0_call0", "blockage"): New patterns.
34589 2015-03-03 Martin Liska <mliska@suse.cz>
34592 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
34594 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
34597 * config/rs6000/rs6000-tables.opt: Regenerate table.
34599 2015-03-03 Renlin Li <renlin.li@arm.com>
34601 * doc/md.texi (@item ^): Change ? into ^.
34603 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
34605 * doc/tm.texi: Regenerated.
34607 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
34609 * builtins.c (expand_builtin_return_addr): Add
34610 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
34611 surrounding #ifdef.
34612 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
34614 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
34616 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
34618 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
34621 2015-03-03 Martin Jambor <mjambor@suse.cz>
34622 Eric Botcazou <ebotcazou@adacore.com>
34624 * tree-sra.c (ipa_sra_check_caller_data): New type.
34625 (has_caller_p): Removed.
34626 (ipa_sra_check_caller): New function.
34627 (ipa_sra_preliminary_function_checks): Use it.
34629 2015-03-03 Martin Liska <mliska@suse.cz>
34631 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
34632 instead of if branch.
34634 2015-03-03 Martin Liska <mliska@suse.cz>
34637 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
34639 2015-03-23 Jeff Law <law@redhat.com>
34641 PR tree-optimization/65241
34642 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
34643 hash table if INSERT is true.
34645 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
34648 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
34650 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
34653 * config/avr/avr.c (context.h, tree-pass.h): Include them.
34654 (avr_pass_data_recompute_notes): New static variable.
34655 (avr_pass_recompute_notes): New class.
34656 (avr_register_passes): New static function.
34657 (avr_option_override): Call it.
34659 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
34661 Fix various problems with specs file generation.
34664 * config.gcc (extra_gcc_objs) [avr]: Remove.
34665 * config/avr/driver-avr.c: Remove file.
34666 * config/avr/t-avr (driver-avr.o): Remove rule.
34667 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
34668 INCLUDES to build. Depend on TM_H.
34669 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
34670 build warnings. Fix non-matching types and non-existing %-codes.
34672 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
34673 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
34674 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
34675 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
34676 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
34677 (LIBGCC_SPEC): Remove definitions.
34679 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
34681 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
34682 to create a register in testing mode.
34684 2015-03-03 Martin Liska <mliska@suse.cz>
34685 Jan Hubicka <hubicka@ucw.cz>
34688 * cgraph.c (cgraph_node::has_thunk_p): New function.
34689 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
34690 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
34691 (sem_function::merge): Assert is changed.
34693 2015-03-03 Martin Liska <mliska@suse.cz>
34694 Martin Jambor <mjambor@suse.cz>
34697 * ipa-icf.c (sem_item_optimizer::execute): Change function
34698 return value to boolean.
34699 (sem_item_optimizer::merge_classes): Likewise.
34700 (ipa_icf_driver): Return TODO_remove_functions in case there's
34701 a merge operation processed.
34702 * ipa-icf.h: Change function return value to boolean.
34704 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
34707 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
34708 processor type for 64-bit little endian PowerPC.
34710 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
34711 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
34712 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
34713 printing built-in mask so it does not pass NULL pointers.
34715 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
34718 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
34721 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
34722 !ISA_HAS_FP_CONDMOVE.
34724 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
34726 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
34729 2015-03-02 Ulrich Drepper <drepper@gmail.com>
34731 * doc/invoke.texi (Options for Code Generation Conventions):
34732 Fix URL of DSO paper.
34734 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
34737 * ipa-inline.c (check_callers): Looks for recursion.
34738 (inline_to_all_callers): Give up on uninlinable or recursive edges.
34739 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
34740 summary of inline clones.
34741 (do_estimate_growth_1): Fix recursion check.
34743 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
34746 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
34749 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
34750 Aldy Hernandez <aldyh@redhat.com>
34753 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
34754 when checking TYPE_BINFO.
34756 2015-03-02 Richard Biener <rguenther@suse.de>
34759 * ipa-icf-gimple.c: Include builtins.h.
34760 (func_checker::compare_memory_operand): Compare base alignment.
34762 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
34765 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
34766 passed by reference.
34768 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
34771 * tree-chkp.c (chkp_check_lower): Don't check against
34772 zero bounds for already instrumented functions.
34773 (chkp_check_upper): Likewise.
34774 (chkp_fini): Clean pass local data to avoid wrong reusage.
34776 2015-02-28 Martin Liska <mliska@suse.cz>
34777 Jan Hubicka <hubicka@ucw.cz>
34779 * ipa-icf.c (sem_variable::equals): Improve debug output;
34780 get variable constructor.
34781 (sem_variable::parse): Do not filter out too early; give up on
34782 volatile and register vars.
34783 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
34785 * ipa-icf.h (sem_variable::init): Do not set ctor.
34786 (sem_variable::ctor): Remove.
34788 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
34790 PR middle-end/65233
34791 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
34793 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34795 * ipa-icf.c: Include stor-layout.h
34796 (sem_function::compare_cgraph_references): Rename to ...
34797 (sem_item::compare_cgraph_references): ... this one.
34798 (sem_variable::equals_wpa): New function
34799 (sem_variable::equals): Do not check stuff already verified by
34801 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
34802 * ipa-icf.h (sem_item): Add compare_cgraph_references.
34803 (sem_function): Remove compare_cgraph_references.
34804 (sem_variable): Turns equals_wpa into non-inline.
34806 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34808 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
34809 (sem_item::add_expr): New function.
34810 (sem_function::hash_stmt): Handle operands of most statements.
34811 (sem_variable::get_hash): Hash the actual constructor.
34812 * ipa-icf.h (sem_item): Add add_expr.
34813 (sem_function): Update prototype of hash_stmt
34815 2015-02-28 Martin Liska <mliska@suse.cz>
34816 Jan Hubicka <hubicka@ucw.cz>
34819 * ipa-icf-gimple.c (func_checker::compare_function_decl):
34821 (func_checker::compare_variable_decl): Skip symtab vars.
34822 (func_checker::compare_cst_or_decl): Update.
34823 * ipa-icf.c (sem_function::parse): Do not consider aliases.
34824 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
34825 use correct symtab predicates.
34826 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
34827 (sem_variable::parse): Update comment.
34828 (sem_item_optimizer::build_graph): Consider ultimate aliases
34831 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34833 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
34836 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34838 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
34839 (sem_variable::merge) Likewise.
34841 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34843 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
34844 target; also match flag_ipa_devirt.
34846 2015-03-01 Martin Liska <mliska@suse.cz>
34847 Jan Hubicka <hubicka@ucw.cz>
34849 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
34850 Validate variable alignment.
34851 * ipa-icf.c (sem_function::equals_private): Be more precise
34852 about non-common function attributes.
34853 (sem_variable::equals): Likewise.
34855 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34858 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
34859 across COMDAT group boundary.
34861 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34864 * ipa-icf.c (clear_decl_rtl): New function.
34865 (sem_function::merge): Clear RTL before forming alias.
34866 (sem_variable::merge): Clear RTL before forming alias.
34868 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34871 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
34873 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
34875 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
34878 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
34880 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
34881 a typo in the description.
34883 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
34886 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
34887 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
34888 * lra-constraints.c: Include "params.h".
34889 (EBB_PROBABILITY_CUTOFF): Use
34890 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
34891 (lra_inheritance): Use '<' instead of '<=' for
34892 EBB_PROBABILITY_CUTOFF.
34893 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
34896 2015-02-27 Martin Liska <mliska@suse.cz>
34898 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
34899 vector length condition.
34901 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
34903 * doc/extend.texi (x86 transactional memory intrinsics):
34904 Reorganize discussion of _xbegin. Clarify that the return
34905 value is a bit mask. Expand example and move to end of section.
34907 2015-02-26 Jakub Jelinek <jakub@redhat.com>
34908 Aldy Hernandez <aldyh@redhat.com>
34910 PR rtl-optimization/65220
34911 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
34913 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
34916 * lra-remat.c (update_scratch_ops): New.
34917 (do_remat): Call it.
34918 * lra.c (lra_register_new_scratch_op): New. Take code from ...
34919 (remove_scratches): ... here.
34920 * lra-int.h (lra_register_new_scratch_op): New prototype.
34922 2015-02-27 Marek Polacek <polacek@redhat.com>
34925 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
34926 -Wformat-signedness anymore.
34928 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34930 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
34932 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
34934 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34936 * config/s390/s390.c (enum s390_builtin):
34937 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
34938 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
34939 (s390_init_builtins): Generate new builtin functions.
34940 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
34941 (s390_sfpc, s390_efpc): New pattern definitions.
34943 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34945 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
34946 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
34947 (s390_builtin_decls): New array.
34948 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
34949 (s390_builtin_decl): New function.
34950 (TARGET_BUILTIN_DECL): Define macro.
34952 2015-02-27 Richard Biener <rguenther@suse.de>
34954 PR middle-end/63175
34955 * builtins.c (get_object_alignment_2): Make sure to re-apply
34956 the ANDed mask after recursing to its operand gets us a new
34957 misalignment bit position.
34959 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
34960 Martin Liska <mliska@suse.cz>
34963 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
34964 Use address_matters_p.
34965 (redirect_all_callers, set_addressable): New functions.
34966 (sem_function::merge): Reorganize and fix merging issues.
34967 (sem_variable::merge): Likewise.
34968 (sem_variable::compare_sections): Remove.
34969 * common.opt (fmerge-all-constants, fmerge-constants): Remove
34971 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
34973 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
34975 (address_matters_1): New function.
34976 (symtab_node::address_matters_p): New function.
34977 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
34978 check for merged flag.
34979 * cgraph.h (address_matters_p): Declare.
34980 (symtab_node::address_taken_from_non_vtable_p): Remove.
34981 (symtab_node::address_can_be_compared_p): New method.
34982 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
34983 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
34985 (comdat_can_be_unshared_p_1) Use address_matters_p.
34986 (update_vtable_references): Fix formating.
34987 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
34988 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
34989 * cgraphclones.c: Preserve merged and icf_merged flags.
34991 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
34993 * doc/extend.texi (Function Attributes): Fix spelling and typos.
34994 (Label Attributes): Likewise.
34995 (Cilk Plus Builtins): Likewise.
34996 (ARC SIMD Built-in Functions): Likewise.
34997 (ARM C Language Extensions (ACLE)): Likewise.
34998 (PowerPC Built-in Functions): Likewise.
34999 (PowerPC Hardware Transactional Memory Built-in Functions):
35002 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35004 PR tree-optimization/65216
35005 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
35006 new stmt and new SSA_NAME for lhs whenever the arguments have
35007 changed and weren't just swapped. Fix comment typo.
35009 PR tree-optimization/65215
35010 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
35011 for PDP endian targets.
35012 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
35013 Fix up formatting issues.
35014 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
35015 size is smaller than the original, adjust MEM_REF offset by the
35016 difference of sizes. Use is_gimple_mem_ref_addr instead of
35017 is_gimple_min_invariant test to avoid adding address temporaries.
35019 2015-02-26 Martin Liska <mliska@suse.cz>
35020 Jan Hubicka <hubicka@ucw.cz>
35023 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
35024 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
35025 (sem_item_optimizer::process_cong_reduction): Include division by
35026 sensitive references.
35027 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
35028 * ipa-ref.c (ipa_ref::address_matters_p): New function.
35029 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
35031 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
35034 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
35036 * config/avr/avr.c: Same.
35037 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
35038 Refuse any constant address not in 0..0xbf.
35039 * config/avr/avr.md (*mov<mode>, *movsf): Remove
35040 tiny_valid_direct_memory_access_range from insn conditions.
35041 (mov<mode>): Don't special-case expansion of avrtiny addresses.
35043 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
35046 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
35047 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
35048 * config/sh/predicates.md (const_logical_operand): New predicate.
35049 * config/sh/sh.md: Add new peephole2 patterns.
35051 2015-02-26 Marek Polacek <polacek@redhat.com>
35054 * ipa-inline.c (early_inliner): Recompute inline parameters.
35056 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35059 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
35060 instructions with TImode operands are included in the analysis.
35062 2015-02-26 Sebastian Pop <s.pop@samsung.com>
35064 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
35065 of an EDGE_FSM_THREAD.
35067 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
35069 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
35071 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
35074 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
35076 2015-02-26 Sebastian Pop <s.pop@samsung.com>
35078 PR tree-optimization/65048
35079 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
35080 (thread_through_all_blocks): Call valid_jump_thread_path.
35081 Remove invalid FSM jump-thread paths.
35083 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35085 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
35086 (ipa_write_optimization_summaries): Likewise.
35087 * tree-streamer.h: Include data-streamer.h.
35088 (streamer_mode_table): Declare extern variable.
35089 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
35090 * lto-streamer-out.c (lto_output_init_mode_table,
35091 lto_write_mode_table): New functions.
35092 (produce_asm_for_decls): Call lto_write_mode_table when streaming
35094 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
35095 (lto_create_simple_input_block): Add mode_table argument to the
35096 lto_input_block constructors.
35097 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
35099 * data-streamer-in.c (string_for_index): Likewise.
35100 * ipa-inline-analysis.c (inline_read_section): Likewise.
35101 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
35102 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
35103 * lto-streamer-in.c (lto_read_body_or_constructor,
35104 lto_input_toplevel_asms): Likewise.
35105 (lto_input_mode_table): New function.
35106 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
35107 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
35108 Use bp_pack_machine_mode.
35109 * real.h (struct real_format): Add name field.
35110 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
35111 (class lto_input_block): Add mode_table member.
35112 (lto_input_block::lto_input_block): Add mode_table_ argument,
35113 initialize mode_table.
35114 (struct lto_file_decl_data): Add mode_table field.
35115 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
35116 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
35117 unpack_ts_decl_common_value_fields,
35118 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
35119 * tree-streamer.c (streamer_mode_table): New variable.
35120 * real.c (ieee_single_format, mips_single_format,
35121 motorola_single_format, spu_single_format, ieee_double_format,
35122 mips_double_format, motorola_double_format,
35123 ieee_extended_motorola_format, ieee_extended_intel_96_format,
35124 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
35125 ibm_extended_format, mips_extended_format, ieee_quad_format,
35126 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
35127 decimal_single_format, decimal_double_format, decimal_quad_format,
35128 ieee_half_format, arm_half_format, real_internal_format): Add name
35130 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
35132 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
35135 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
35136 reordering for selective scheduling.
35138 2015-02-26 Terry Guo <terry.guo@arm.com>
35140 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
35141 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
35142 (arm_arch_no_volatile_ce): Declare new global variable.
35143 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
35144 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
35145 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
35146 (TARGET_NO_VOLATILE_CE): New macro.
35147 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
35148 volatile memory access in IT block
35150 2015-02-25 Kai Tietz <ktietz@redhat.com>
35152 PR tree-optimization/61917
35153 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
35154 that reduc_def_stmt is null.
35156 2015-02-25 Martin Liska <mliska@suse.cz>
35158 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
35159 hard register variables.
35161 2015-02-25 Kai Tietz <ktietz@redhat.com>
35164 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
35165 (symtab::noninterposable_alias): Likewise.
35167 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
35170 * config/i386/i386.c (ix86_function_arg_regno_p): Support
35172 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
35174 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
35177 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
35178 as split condition; force split via '#' in output pattern.
35180 2015-02-25 Richard Biener <rguenther@suse.de>
35181 Kai Tietz <ktietz@redhat.com>
35183 PR tree-optimization/61917
35184 * tree-vect-loop.c (vectorizable_reduction): Allow
35185 vect_internal_def without reduction to exit graceful.
35187 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
35190 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
35191 only with NONDEBUG_INSN_P.
35193 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
35195 Use variadic macros with avr-log.c.
35197 * config/avr/avr-protos.h (avr_vdump): New prototype.
35198 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
35199 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
35200 * config/avr/avr-log.c: Adjust comments.
35201 (avr_vdump): New function.
35202 (avr_vadump): Pass caller as 2nd argument instead of format string.
35203 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
35204 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
35206 2015-02-25 Jakub Jelinek <jakub@redhat.com>
35209 * target.def (target_option_stream_in): New target hook.
35210 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
35211 targetm.target_option.post_stream_in if non-NULL.
35212 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
35213 * doc/tm.texi: Updated.
35214 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
35216 (TARGET_OPTION_POST_STREAM_IN): Redefine.
35218 2015-02-24 Jeff Law <law@redhat.com>
35221 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
35222 of operand 0 and operand 2.
35223 (zero_cost_loop_end, loop_end): Similarly.
35225 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
35227 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
35230 2015-02-24 DJ Delorie <dj@redhat.com>
35232 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
35233 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
35234 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
35235 instead of hardcoding SImode.
35237 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
35239 * omp-low.c (create_omp_child_function): Tag entrypoint
35240 functions with a special attribute.
35242 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
35245 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
35247 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
35249 PR rtl-optimization/65123
35250 * lra-remat.c (operand_to_remat): Check hard regs in insn
35253 2015-02-24 Nick Clifton <nickc@redhat.com>
35255 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
35258 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
35261 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
35262 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
35263 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
35264 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
35265 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
35266 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
35267 (BUILT_IN_GOACC_PARALLEL): Specify as
35268 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
35269 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
35270 * builtin-types.def
35271 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35272 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35273 Remove function types.
35274 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
35275 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35276 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35277 New function types.
35279 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
35281 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
35283 2015-02-24 Jakub Jelinek <jakub@redhat.com>
35285 PR tree-optimization/65170
35286 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
35287 if val[1] < 0, clear also val[2] and return 3.
35289 2015-02-24 Alan Modra <amodra@gmail.com>
35292 * config/rs6000/rs6000.c (get_memref_parts): Only return true
35293 when *base is a reg. Handle nested plus addresses. Simplify
35296 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
35298 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
35299 use natural alignment when optimizing for size.
35301 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
35304 * config/sh/sh.md (movsicc_true+3): Remove peephole.
35305 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
35306 * config/sh/sh.c (replace_n_hard_rtx): Remove.
35308 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
35311 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
35312 too big for a wide_int. Implement missing wrapping operation.
35314 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
35317 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
35318 instead of const_int 4294901760.
35320 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
35322 * config/avr/t-avr: Fix typo in comment.
35324 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
35326 * doc/rtl.texi (fma): Clarify documentation.
35328 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
35331 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
35332 over input_location.
35334 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
35336 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
35337 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
35338 restrict alignments to absolute_biggest_alignment.
35339 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
35341 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
35342 * doc/tm.texi: Regenerate.
35343 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
35345 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
35348 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
35350 2015-02-20 Richard Biener <rguenther@suse.de>
35352 PR tree-optimization/65136
35353 * tree-ssa-propagate.c: Include cfgloop.h.
35354 (replace_phi_args_in): Avoid replacing loop latch edge PHI
35355 arguments with constants.
35357 2015-02-20 Jakub Jelinek <jakub@redhat.com>
35358 Martin Liska <mliska@suse.cz>
35361 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
35362 don't try to create_thunk if stdarg_p. If
35363 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
35364 redirect_callers if possible.
35365 (sem_item_optimizer::execute): Call unregister_hooks here...
35366 (ipa_icf_driver): ... instead of here.
35368 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35370 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
35371 Mark operand 0 as earlyclobber in 2nd alternative.
35372 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
35373 Write negated shift amount into QI lowpart operand 0 and use it
35375 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
35377 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
35379 * cgraph.h (clone_function_name_1): Declare.
35380 * cgraphclones.c (clone_function_name_1): New function.
35381 (clone_function_name): Use it.
35382 * lto-partition.c: Include "stringpool.h".
35383 (must_not_rename, maybe_rewrite_identifier)
35384 (validize_symbol_for_target): New static functions.
35385 (privatize_symbol_name): Use must_not_rename.
35386 (promote_symbol): Call validize_symbol_for_target.
35387 (lto_promote_cross_file_statics): Likewise.
35388 (lto_promote_statics_nonwpa): Likewise.
35390 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
35393 * config/avr/avr.md (pushhi_insn): New insn.
35394 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
35396 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
35397 Jakub Jelinek <jakub@redhat.com>
35399 * tree-streamer.c (preload_common_nodes): Don't preload
35400 TI_VA_LIST* for offloading.
35401 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
35404 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
35406 * config/pa/pa.c (pa_emit_move_sequence): Always force
35407 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
35410 * config/pa/pa.c (pa_reloc_rw_mask): New function.
35411 (TARGET_ASM_RELOC_RW_MASK): Define.
35412 (pa_cannot_force_const_mem): Revert previous change.
35414 2015-02-19 Martin Jambor <mjmabor@suse.cz>
35415 Jan Hubicka <hubicka@ucw.cz>
35418 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
35419 across jump functions.
35421 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
35423 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
35425 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
35427 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
35429 2015-02-19 Richard Henderson <rth@redhat.com>
35431 PR middle-end/65074
35432 * varasm.c (default_binds_local_p_2): Don't test node->definition;
35433 test DECL_EXTERNAL independent of symtab_node.
35435 2015-02-19 Jakub Jelinek <jakub@redhat.com>
35438 * varpool.c (varpool_node::get_constructor): Return early
35439 if this->lto_file_data is NULL.
35441 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35443 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
35444 (rank_for_schedule_debug): Update.
35445 (ready_sort): Make static. Move sorting logic to ...
35446 (ready_sort_debug, ready_sort_real): New static functions.
35447 (schedule_block): Sort both debug insns and real insns in preparation
35448 for ready list trimming. Improve debug output.
35449 * sched-int.h (ready_sort): Remove global declaration.
35451 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
35453 * ipa-icf.c (sem_function::equals_private): Adjust.
35454 (sem_function::bb_dict_test): Take a vec<int> * instead of
35456 * ipa-icf.h (bb_dict_test): Likewise.
35458 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35460 PR gcov-profile/64634
35461 * tree-eh.c (frob_into_branch_around): Fix up typos
35462 in function comment.
35463 (lower_catch): Put eh_seq resulting from EH lowering of
35464 the cleanup sequence after the cleanup rather than before it.
35466 2015-02-18 Tom de Vries <tom@codesourcery.com>
35468 * common.opt (fstdarg-opt): New option.
35469 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
35470 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
35471 (@item -fstdarg-opt): New item.
35473 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
35476 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
35477 for common symbols.
35479 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35481 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
35483 (ALL_HOST_OBJS): Add mkoffload.o.
35484 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
35486 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
35488 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
35489 (compare_virtual_tables): Be smarter about skipping typeinfos;
35490 do sane output on virtual table table mismatch.
35491 (warn_odr): Be ready for forward declarations of enums;
35492 output sane info on base mismatch and virtual table mismatch.
35493 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
35494 when only one type is polymorphic.
35495 (get_odr_type): Fix hashtable corruption.
35496 (dump_odr_type): Dump mangled names.
35498 2015-02-18 Richard Biener <rguenther@suse.de>
35500 PR tree-optimization/65063
35501 * tree-predcom.c (determine_unroll_factor): Return 1 if we
35502 have replaced looparound PHIs.
35504 2015-02-18 Martin Liska <mliska@suse.cz>
35506 * lto-streamer.c (lto_streamer_init): Encapsulate
35507 streamer_check_handled_ts_structures with checking macro.
35509 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35512 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
35513 section if !implicit_section.
35514 (cgraph_node::create_version_clone_with_body): Likewise.
35515 * trans-mem.c (ipa_tm_create_version): Likewise.
35517 2015-02-18 Richard Biener <rguenther@suse.de>
35519 PR tree-optimization/62217
35520 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
35523 2015-02-18 Marek Polacek <polacek@redhat.com>
35526 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
35527 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
35528 is in range [-16K, -1]. Don't issue run-time error if
35529 (ptr > ptr + offset).
35531 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
35533 * doc/install.texi (nvptx-*-none): New section.
35534 * doc/invoke.texi (Nvidia PTX Options): Likewise.
35535 * config/nvptx/nvptx.opt: Update.
35537 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
35538 (access_check): New functions, copied from
35539 config/i386/intelmic-mkoffload.c.
35540 (main): For non-installed testing, look in all COMPILER_PATHs for
35543 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
35545 2015-02-18 Andrew Pinski <apinski@cavium.com>
35546 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35548 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
35549 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
35551 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
35553 * ipa-visibility.c (function_and_variable_visibility): Only
35554 check locality if node is not already local.
35555 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
35556 call_for_symbol_and_aliases instead of
35557 call_for_symbol_thunks_and_aliases.
35558 (ipa_inline): Likewise.
35559 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
35560 first walk aliases.
35561 * ipa.c (symbol_table::remove_unreachable_nodes): Use
35562 call_for_symbol_and_aliases.
35563 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
35564 (ipa_propagate_frequency_1): Use it; use opt_for_fn
35565 (ipa_propagate_frequency): Update.
35566 (ipa_profile): Add opt_for_fn gueards.
35568 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
35570 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
35571 * doc/invoke.texi (SH options): Document it.
35572 * config/sh/sh.c (sh_insn_length_adjustment): Check
35573 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
35575 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
35577 * common.opt (fipa-cp-alignment): New.
35578 * ipa-cp.c (ipcp_store_alignment_results): Check
35579 flag_ipa_cp_alignment.
35580 * opts.c (default_options_table): Enable -fipa-cp-alignment for
35582 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
35583 * doc/invoke.texi: Document -fipa-cp-alignment.
35585 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
35588 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
35589 to nil. Adjust comments.
35591 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
35593 * ipa-visibility.c (function_and_variable_visibility): Only
35594 check locality if node is not already local.
35595 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
35596 call_for_symbol_and_aliases instead of
35597 call_for_symbol_thunks_and_aliases.
35598 (ipa_inline): Likewise.
35599 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
35600 first walk aliases.
35601 * ipa.c (symbol_table::remove_unreachable_nodes): Use
35602 call_for_symbol_and_aliases.
35603 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
35604 (ipa_propagate_frequency_1): Use it; use opt_for_fn
35605 (ipa_propagate_frequency): Update.
35606 (ipa_profile): Add opt_for_fn guards.
35608 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
35610 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
35611 skipping of "strange" tokens.
35613 2015-02-17 Jeff Law <law@redhat.com>
35615 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
35618 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
35620 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
35621 as forcing a HARD_DEP between instructions, thereby
35622 disallowing rewriting to break dependencies.
35624 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
35626 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
35627 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
35628 variables in boundary that have no inlitalizer encoded and are
35630 * varasm.c (default_binds_local_p_2): External definitions do not
35631 count as definitions here.
35633 2015-02-16 Jeff Law <law@redhat.com>
35635 PR tree-optimization/64823
35636 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
35638 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
35639 threading through blocks with PHIs, but no statements.
35640 (thread_through_normal_block): Distinguish between blocks where
35641 we did not process all the statements and blocks with no statements.
35643 2015-02-16 Jakub Jelinek <jakub@redhat.com>
35644 James Greenhalgh <james.greenhalgh@arm.com>
35647 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
35648 section if not linkonce. Fix up formatting.
35649 (cgraph_node::create_version_clone_with_body): Copy section.
35650 * trans-mem.c (ipa_tm_create_version): Likewise.
35652 2015-02-16 Richard Biener <rguenther@suse.de>
35654 PR tree-optimization/65077
35655 * tree-ssa-structalias.c (get_constraint_for_1): Handle
35656 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
35657 (find_func_aliases): Allow float values to carry pointers again.
35659 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
35661 * doc/install.texi (Specific): Reorder targets list to put
35662 aarch64 in alphabetical order. Add a link to aarch64*-*-*
35665 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
35666 David Edelsohn <dje.gcc@gmail.com>
35669 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
35670 mapping class to external variable or function reference.
35671 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
35674 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
35677 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
35678 ASM_WEAKEN_DECL if defined.
35680 2015-02-16 Richard Biener <rguenther@suse.de>
35683 * varasm.c (default_file_start): For LTO produced units
35684 emit <artificial> as file directive.
35686 2015-02-16 Richard Biener <rguenther@suse.de>
35688 PR tree-optimization/63593
35689 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
35690 stmts and releasing SSA names until...
35691 (execute_pred_commoning): ... after processing all chains.
35693 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
35696 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
35697 external functions.
35699 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
35701 * doc/bugreport.texi: Adjust section titles throughout the file
35702 to use "Title Case".
35703 * doc/extend.texi: Likewise.
35704 * doc/gcov.texi: Likewise.
35705 * doc/implement-c.texi: Likewise.
35706 * doc/implement-cxx.texi: Likewise.
35707 * doc/invoke.texi: Likewise.
35708 * doc/objc.texi: Likewise.
35709 * doc/standards.texi: Likewise.
35710 * doc/trouble.texi: Likewise.
35712 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
35714 * cgraph.h (symtab_node::has_aliases_p): Simplify.
35715 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
35716 * tree.c (lookup_binfo_at_offset): Make static.
35717 (get_binfo_at_offset): Do not shadow offset; add explanatory
35720 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
35722 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
35723 for all floading point loads and stores except those using a register
35725 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
35728 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
35730 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
35731 (do_estimate_growth_1): Record if any uninlinable edge was seen.
35732 (estimate_growth): Handle uninlinable edges correctly.
35733 (check_callers): New.
35734 (growth_likely_positive): Handle aliases correctly.
35736 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
35738 * ipa-chkp.c: Use iterate_direct_aliases.
35739 * symtab.c (resolution_used_from_other_file_p): Move inline.
35740 (symtab_node::create_reference): Fix formating.
35741 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35742 (symtab_node::iterate_reference): Move inline.
35743 (symtab_node::iterate_referring): Move inline.
35744 (symtab_node::iterate_direct_aliases): Move inline.
35745 (symtab_node::used_from_object_file_p_worker): Inline into ...
35746 (symtab_node::used_from_object_file_p): ... this one; move inline.
35747 (symtab_node::call_for_symbol_and_aliases): Move inline;
35748 use iterate_direct_aliases.
35749 (symtab_node::call_for_symbol_and_aliases_1): New method.
35750 (cgraph_node::call_for_symbol_and_aliases): Move inline;
35751 use iterate_direct_aliases.
35752 (cgraph_node::call_for_symbol_and_aliases_1): New method.
35753 (varpool_node::call_for_node_and_aliases): Rename to ...
35754 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
35755 use iterate_direct_aliases.
35756 (varpool_node::call_for_symbol_and_aliases_1): New method.
35757 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
35758 (ipa_discover_readonly_nonaddressable_var): Update.
35759 * ipa-devirt.c: Fix formating.
35760 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
35762 (cgraph_node::call_for_symbol_and_aliases): Move inline.
35763 (cgraph_node::call_for_symbol_and_aliases_1): New function..
35764 * cgraph.h (used_from_object_file_p_worker): Remove.
35765 (resolution_used_from_other_file_p): Move inline.
35766 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35767 (symtab_node::iterate_reference): Move inline.
35768 (symtab_node::iterate_referring): Move inline.
35769 (symtab_node::iterate_direct_aliases): Move inline.
35770 (symtab_node::used_from_object_file_p_worker): Inline into ...
35771 (symtab_node::used_from_object_file_p): Move inline.
35772 * tree-emutls.c (ipa_lower_emutls): Update.
35773 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
35774 (varpool_node::call_for_node_and_aliases): Remove.
35776 2015-02-14 Jakub Jelinek <jakub@redhat.com>
35778 PR tree-optimization/62209
35779 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
35780 op == range->exp, insert seq and gimplified code after labels
35781 instead of after the phi.
35783 2015-02-13 Jeff Law <law@redhat.com>
35786 Revert my change for tree-optimization/64823.
35788 2015-02-13 Jakub Jelinek <jakub@redhat.com>
35790 PR tree-optimization/65053
35791 * tree-ssa-phiopt.c (value_replacement): When moving assign before
35792 cond, either reset VR on lhs or set it to phi result VR.
35794 2015-02-13 Jeff Law <law@redhat.com>
35796 PR tree-optimization/64823
35797 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
35798 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
35799 threading through blocks with PHIs, but no statements.
35800 (thread_through_normal_block): Distinguish between blocks where
35801 we did not process all the statements and blocks with no statements.
35803 PR rtl-optimization/47477
35804 * match.pd (convert (plus/minus (convert @0) (convert @1): New
35805 simplifier to narrow arithmetic.
35807 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
35810 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
35811 polymorphic call info when type is not known to be preserved.
35813 2015-02-13 Maritn Jambor <mjambor@suse.cz>
35816 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
35817 (inline_call): Use it.
35819 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
35821 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
35822 GOMP_DEVICE_NVIDIA_PTX.
35824 2015-02-13 Jakub Jelinek <jakub@redhat.com>
35827 * stmt.c (emit_case_nodes): Use void_type_node instead of
35828 NULL_TREE as LABEL_DECL type.
35830 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
35832 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
35834 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
35835 symbolic references to data to be forced to constant memory on the
35838 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
35840 PR tree-optimization/65002
35841 * tree-cfg.c (pass_data_fixup_cfg): Don't update
35843 * tree-sra.c (some_callers_have_no_vuse_p): New.
35844 (ipa_early_sra): Reject functions whose callers
35845 assume function is read only.
35847 2015-02-13 Richard Biener <rguenther@suse.de>
35850 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
35851 for LTO produced CUs.
35853 2015-02-13 Bin Cheng <bin.cheng@arm.com>
35855 PR tree-optimization/64705
35856 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
35857 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
35858 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
35859 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
35860 expand_simple_operations.
35862 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
35863 Richard Henderson <rth@redhat.com>
35866 * cgraphunit.c (cgraph_node::finalize_function): Set definition
35867 before notice_global_symbol.
35868 (varpool_node::finalize_decl): Likewise.
35869 * varasm.c (default_binds_local_p_2): Rename from
35870 default_binds_local_p_1, add weak_dominate argument. Use direct
35871 returns instead of assigning to local variable. Unify varpool and
35872 cgraph paths via symtab_node. Reject undef weak variables before
35873 testing visibility. Reorder tests for simplicity.
35874 (default_binds_local_p): Use default_binds_local_p_2.
35875 (default_binds_local_p_1): Likewise.
35876 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
35878 (default_elf_asm_output_external): Emit visibility when specified.
35880 2015-02-13 Alan Modra <amodra@gmail.com>
35882 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
35883 code setting up r11 for out-of-line fp restore.
35885 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
35887 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
35888 (muser-mode): Likewise.
35890 2015-02-13 Alan Modra <amodra@gmail.com>
35892 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
35893 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
35895 2015-02-12 David Howells <dhowells@redhat.com>
35897 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
35899 * tree-ssa-uninit.c (dump_predicates): Likewise.
35900 * opts.c (print_filtered_help): Likewise.
35902 2015-02-12 Jakub Jelinek <jakub@redhat.com>
35904 * dwarf2out.c (output_die): Use "%s", name instead of name to
35905 avoid -Wformat-security warning.
35907 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
35908 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35909 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
35910 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35912 2015-02-12 Jason Merrill <jason@redhat.com>
35914 * common.opt (-flifetime-dse): New.
35916 2015-02-12 Jakub Jelinek <jakub@redhat.com>
35919 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
35921 PR tree-optimization/65014
35922 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
35923 use original second operand of arg0 or arg1 instead of
35924 that adjusted by STRIP_NOPS.
35926 2015-02-11 Jeff Law <law@redhat.com>
35929 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
35930 that needs to be queued, just queue it for a single cycle.
35932 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
35934 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
35935 bodies of thunks; comment on why.
35936 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
35937 symbols are extern.
35939 2015-02-11 Richard Henderson <rth@redhat.com>
35942 * tree-eh.c (mark_reachable_handlers): Mark source and destination
35943 regions of __builtin_eh_copy_values.
35945 2015-02-11 Jakub Jelinek <jakub@redhat.com>
35947 PR middle-end/65003
35948 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
35949 ultimate alias is MEM with SYMBOL_REF satisfying
35950 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
35951 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
35953 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
35955 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
35956 "diagnostic-core.h".
35957 (main): Initialize progname, and call diagnostic_initialize.
35959 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
35960 instead of __OPENMP_TARGET__.
35962 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
35963 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
35964 hard-coding PTX_ID.
35966 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
35968 * doc/sourcebuild.texi (pie_enabled): Document.
35970 2015-02-11 Martin Liska <mliska@suse.cz>
35973 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
35974 a return value for call to a function that is noreturn.
35976 2015-02-11 Richard Biener <rguenther@suse.de>
35979 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
35982 2015-02-11 Andrew Pinski <apinski@cavium.com>
35985 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
35986 Change the first argument type to size_type_node and add another
35988 (aarch64_simd_expand_builtin): Handle the new argument to
35989 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
35990 print an out when the first two arguments are not
35991 nonzero integer constants.
35992 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
35993 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
35995 2015-02-11 Jakub Jelinek <jakub@redhat.com>
35998 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
35999 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
36000 (ix86_set_current_function): Rewritten.
36001 (ix86_add_new_builtins): Temporarily clear current_target_pragma
36002 when creating builtin fndecls.
36004 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36007 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
36009 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
36010 have no comdat group.
36011 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
36012 (lto_output_varpool_node): Always output alias info.
36013 (output_refs): Output refs of boundary aliases, too.
36014 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
36015 (output_symtab): Output call eges in thunks in boundary.
36016 (get_alias_symbol): Remove.
36017 (input_node, input_varpool_node): Do not special case weakrefs.
36018 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
36019 alias and thunks targets in the boundary; do not take removed symbols
36020 from their comdat groups.
36021 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
36022 (cgraph_node::global_info): Remove.
36023 (cgraph_node::rtl_info): Look through aliases and thunks.
36024 * cgrpah.h (global_info): Remove.
36025 (non_local_p): Remove.
36027 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36028 Sandra Loosemore <sandra@codesourcery.com>
36030 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
36031 to inline asm. List dialects in proper order.
36033 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36034 Sandra Loosemore <sandra@codesourcery.com>
36036 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
36038 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36040 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
36041 modified) reference to Solaris.
36043 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
36045 * doc/extend.texi (Extended Asm): Fix typos.
36047 2015-02-10 Jakub Jelinek <jakub@redhat.com>
36050 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
36052 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
36055 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
36056 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
36057 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
36058 * config/sh/constraints.md (Ara, Add): New constraints.
36059 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
36061 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
36062 atomic_mem_operand_0. Don't use force_reg on the memory address.
36063 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
36064 Sra constraint. Convert to insn_and_split. Add workaround for
36066 (atomic_compare_and_swap<mode>_hard): Copy to
36067 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
36068 Use atomic_mem_operand_0 predicate.
36069 (atomic_compare_and_swap<mode>_soft_gusa,
36070 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
36071 AraAdd constraints.
36072 (atomic_compare_and_swap<mode>_soft_tcb,
36073 atomic_compare_and_swap<mode>_soft_imask,
36074 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
36075 atomic_mem_operand_0 predicate and SraSdd constraints.
36076 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
36078 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
36079 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
36080 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
36081 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
36082 force_reg on the memory address.
36083 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
36084 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
36085 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
36086 atomic_mem_operand_1 predicate and Sra constraint.
36087 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
36088 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
36089 Use atomic_mem_operand_1 predicate.
36090 (atomic_<fetchop_name><mode>_hard): Copy to
36091 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
36092 Use atomic_mem_operand_1 predicate.
36093 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
36094 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
36095 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
36096 insn_and_split. Use atomic_mem_operand_1 predicate.
36097 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
36098 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
36099 Use atomic_mem_operand_1 predicate.
36100 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
36101 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
36102 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
36103 in generated insn with original mem operand before emitting the insn.
36104 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
36105 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
36106 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
36107 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
36108 Use atomic_mem_operand_1 predicate and AraAdd constraints.
36109 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
36110 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
36111 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
36112 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
36113 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
36114 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
36115 atomic_not_fetch<mode>_soft_tcb,
36116 atomic_<fetchop_name>_fetch<mode>_soft_imask,
36117 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
36118 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
36119 Use atomic_mem_operand_1 predicate and SraSdd constraints.
36121 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
36123 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
36124 and 3 earlyclobber operands.
36126 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36128 * common.opt (fstack-reuse): Mark as optimization.
36130 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36133 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
36135 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
36137 PR tree-optimization/64326
36138 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
36140 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
36142 PR gcov-profile/61889
36143 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
36145 2015-02-10 Richard Biener <rguenther@suse.de>
36147 PR tree-optimization/64995
36148 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
36149 value we use is final.
36150 (visit_reference_op_store): Always valueize op.
36151 (visit_use): Properly valueize vuses.
36153 2015-02-10 Richard Biener <rguenther@suse.de>
36155 PR tree-optimization/64909
36156 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
36157 pass a scalar-stmt count estimate to the cost model.
36158 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
36160 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
36162 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
36163 enabled by default together with var-tracking.
36165 2015-02-10 Nick Clifton <nickc@redhat.com>
36167 * config/rl78/rl78.c: Remove DIV attribute code accidentally
36168 included in previous rl78 commit.
36170 2015-02-10 Richard Biener <rguenther@suse.de>
36172 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
36173 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
36174 return the bitpack.
36176 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36178 PR gcov-profile/61889
36179 * config.in: regenerate.
36180 * configure.in: Likewise.
36181 * configure.ac: Check for ftw.h.
36182 * gcov-tool.c: Check for ftw.h before using nftw.
36184 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36187 * ipa-visibility.c (update_visibility_by_resolution_info): Only
36188 assert when not in lto mode.
36190 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
36192 * ira-color.c (setup_left_conflict_sizes_p): Simplify
36193 initialization/assignment of conflict_size.
36195 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
36198 * ipa-cp.c (gather_caller_stats): Skip thunks.
36199 (propagate_constants_topo): Skip aliases.
36201 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
36204 * config/sh/sh.c (sh_option_override): Don't change
36205 -freorder-blocks-and-partition to -freorder-blocks even when
36206 unwinding is enabled.
36207 (sh_can_follow_jump): Return false if the followee jump is
36208 a crossing jump when -freorder-blocks-and-partition is specified.
36209 * config/sh/sh.md (*jump_compact_crossing): New insn.
36211 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
36212 Kaz Kojima <kkojima@gcc.gnu.org>
36215 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
36216 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
36217 (sh_can_redirect_branch): Rename to ...
36218 (sh_can_follow_jump): ... this. Constify argument types.
36219 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
36220 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
36221 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
36222 * doc/tm.texi: Regenerate.
36224 2015-02-09 Jakub Jelinek <jakub@redhat.com>
36227 * builtins.c (expand_builtin): Call targetm.expand_builtin
36228 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
36230 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36233 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
36235 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36238 * ipa-icf.c (set_local): New function.
36239 (sem_function::merge): Use it.
36241 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36243 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
36244 (add_type_duplicate): Fix comparison of BINFOs.
36246 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36248 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
36249 on getting VOID pointer.
36251 2015-02-09 Jakub Jelinek <jakub@redhat.com>
36254 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
36257 2015-02-09 Richard Biener <rguenther@suse.de>
36259 * genmatch.c (replace_id): Copy expr_type.
36261 2015-02-09 Richard Biener <rguenther@suse.de>
36263 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
36264 (streamer_write_tree_bitfields): Declare.
36265 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
36266 properly unpack padding.
36267 (unpack_value_fields): Inline ...
36268 (streamer_read_tree_bitfields): ... here.
36269 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
36270 and properly add padding bits.
36271 (streamer_pack_tree_bitfields): Fold into ...
36272 (streamer_write_tree_bitfields): ... this new function,
36273 exposing the bitpack object.
36274 * lto-streamer-out.c (lto_write_tree_1): Call
36275 streamer_write_tree_bitfields.
36277 2015-02-09 Richard Biener <rguenther@suse.de>
36279 PR tree-optimization/54000
36280 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
36281 (struct ivopts_data): Add loop_loc member.
36282 (tree_ssa_iv_optimize_loop): Dump loop location.
36283 (create_new_ivs): Likewise, also dump number of IVs generated.
36285 2015-02-09 Martin Liska <mliska@suse.cz>
36287 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
36288 just if not yet registered.
36289 (ipa_icf_generate_summary): Register callgraph hooks.
36291 2015-02-08 Andrew Pinski <apinski@cavium.com>
36293 * config/aarch64/aarch64.c (gty_dummy): Delete.
36295 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36298 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
36299 (cgraph_node::local_p): Remove thunk related FIXME.
36301 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36304 * i386.c (ix86_function_regparm): Look through aliases to see if callee
36305 is local and optimized.
36306 (ix86_function_sseregparm): Likewise; also use target's SSE math
36307 settings; error out instead of silently generating wrong code
36309 (init_cumulative_args): Look through aliases.
36311 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36314 * ipa-split.c (execute_split_functions): Split if function has aliases.
36316 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36319 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
36320 aliases before trying to expand it.
36321 (cgraph_node::expand_thunk): Fix formating.
36323 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
36325 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
36326 (Using Assembly Language with C): Expand introduction.
36327 (Basic Asm): Copy-edit. Add more information about uses of
36329 (Extended Asm): Copy-edit. Document new escape syntax and
36331 (Global Reg Vars): Copy-edit.
36332 (Local Reg Vars): Likewise.
36334 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
36338 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
36339 (DBX_CONTIN_CHAR): Define.
36341 2015-02-06 Sebastian Pop <s.pop@samsung.com>
36342 Brian Rzycki <b.rzycki@samsung.com>
36344 PR tree-optimization/64878
36345 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
36346 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
36347 Stop recursion at loop phi nodes after having visited a loop phi node.
36349 2015-02-06 Jakub Jelinek <jakub@redhat.com>
36351 * toplev.c (process_options): Change flag_ipa_ra before creating
36352 optimization_{default,current}_node.
36355 * cgraphunit.c (cgraph_node::expand_thunk): If
36356 restype is not is_gimple_reg_type nor the thunk_fndecl
36357 returns aggregate_value_p, set restmp to a temporary variable
36358 instead of resdecl.
36360 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
36362 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
36364 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
36367 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
36368 add a general secondary reload handler for SDmode, unless we have
36369 both read/write support for SDmode.
36371 2015-02-06 Jakub Jelinek <jakub@redhat.com>
36373 PR middle-end/64937
36374 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
36375 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
36376 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
36377 1 before, push it to abstract_vec.
36378 (dwarf2out_abstract_function): Adjust caller. Don't call
36379 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
36380 DECL_ABSTRACT_P flags for all abstract_vec elts.
36382 2015-02-06 Renlin Li <renlin.li@arm.com>
36384 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
36386 * tree-ssa.c (execute_update_addresses_taken): Likewise.
36388 2015-02-06 Jeff Law <law@redhat.com>
36391 * config/h8300/h8300.c (push): New argument "in_prologue".
36392 Pass "in_prologue" along to "F".
36393 (h8300_push_pop): Corresponding changes.
36394 (h8300_expand_prologue): Likewise.
36395 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
36397 2015-02-06 Jakub Jelinek <jakub@redhat.com>
36399 PR rtl-optimization/64957
36401 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
36402 IOR rather than for AND.
36404 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
36407 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
36408 of shift-add and (add + shift) operations. Rename local variable.
36410 2015-02-05 Jeff Law <law@redhat.com>
36413 * config/h8300/constraints.md (U): Correctly dectect
36414 "eightbit_data" memory addresses.
36415 * config/h8300/h8300.c (eightbit_constant_address_p): Also
36416 handle (const (plus (symbol_ref (x)))) where x is declared
36417 as an 8-bit data memory address.
36418 * config/h8300/h8300.md (call, call_value): Correctly detect
36419 "funcvec" functions.
36422 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
36423 24 to 28 bits for the H8/300.
36425 2015-02-06 Alan Modra <amodra@gmail.com>
36428 * config/rs6000/rs6000.c (chain_already_loaded): New function.
36429 (rs6000_call_aix): Use it.
36431 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
36433 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
36436 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
36438 * config/h8300/constraints.md ("U" constraint): Use strict
36439 variant of REG_OK_FOR_BASE_P after reload has started.
36441 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
36443 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
36444 define to zero if !TARGET_NEON.
36445 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
36447 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36448 Trevor Saunders <tsaunders@mozilla.com>
36451 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
36453 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36456 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
36457 when removing varpool nodes.
36459 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36462 * varpool.c (varpool_node::remove): Fix order of variables.
36464 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36467 * ipa-inline.c (inline_small_functions): Fix ordering issue between
36468 speculation resolution and key updates.
36470 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36472 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
36473 about not letting any speculative edges unupdated.
36475 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36478 * gcov-io.c (gcov_var): Export.
36480 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36482 PR middle-end/64922
36483 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
36484 edges that become speculative.
36486 2015-02-04 Jakub Jelinek <jakub@redhat.com>
36488 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
36489 or DW_LANG_Fortran08.
36490 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
36492 (gen_compile_unit_die): Handle "GNU Fortran2003" and
36493 "GNU Fortran2008" language strings.
36494 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
36495 * langhooks.h (lang_GNU_Fortran): New prototype.
36496 * langhooks.c (lang_GNU_Fortran): New function.
36497 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
36500 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
36502 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
36503 (RTX_OK_FOR_OLO10_P): Likewise.
36505 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
36507 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
36509 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36511 PR middle-end/64922
36512 * gimple.c: Include gimple-ssa.h.
36513 (maybe_remove_unused_call_args): New function.
36514 * gimple.h (maybe_remove_unused_call_args): Declare.
36515 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
36516 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
36517 * gimple-fold.c (gimple_fold_call): Likewise.
36519 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
36521 PR rtl-optimization/64905
36522 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
36523 pointer alignment if it isn't needed.
36525 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
36527 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
36528 cortex-a72.cortex-a53.
36529 * config/aarch64/aarch64-tune.md: Regenerate.
36530 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
36532 2015-02-04 Nick Clifton <nickc@redhat.com>
36534 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
36537 2015-02-04 Jakub Jelinek <jakub@redhat.com>
36539 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
36540 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
36541 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
36543 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
36544 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
36545 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
36546 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
36547 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
36548 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
36549 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
36550 * tree-core.h (enum built_in_function): In between
36551 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
36552 for builtins that use DEF_BUILTIN_CHKP macro.
36554 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
36557 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
36558 operands for tcc_comparison exprs. Fix typos.
36561 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
36562 of two XORs that have an intervening AND or IOR.
36565 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
36566 simplification of XOR of AND to not allocate new rtx before
36567 committing to a simplification.
36569 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36571 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
36572 manual swaps in all peepholes.
36574 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36576 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
36577 of manual swapping implementation.
36578 (aarch64_expand_vec_perm_const_1): Likewise.
36580 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
36582 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
36583 (generic_addrcost_table): Remove NAMED_PARAM.
36584 (cortexa57_addrcost_table): Likewise.
36585 (xgene1_addrcost_table): Likewise.
36586 (generic_regmove_table): Likewise.
36587 (cortexa53_regmove_table): Likewise.
36588 (xgene1_regmove_table): Likewise.
36589 (generic_vector_table): Likewise.
36590 (cortexa57_vector_table): Likewise.
36591 (xgene1_vector_table): Likewise.
36592 (generic_tunings): Likewise.
36593 (cortexa53_tunings): Likewise.
36594 (cortexa57_tunings): Likewise.
36595 (xgene1_tunings): Likewise.
36597 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
36599 * config/arm/arm-cores.def: Add cortex-a72 and
36600 cortex-a72.cortex-a53.
36601 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
36602 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
36603 * config/arm/arm-tune.md: Regenerate.
36604 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
36605 "cortex-a72.cortex-a53".
36606 * doc/invoke.texi (ARM Options/-mtune): Likewise.
36608 2015-02-04 Nick Clifton <nickc@redhat.com>
36611 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
36613 (nonimmediate_di_operand): Likewise.
36615 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
36616 prefixes of known F5 using MSP430 MCUs.
36618 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36620 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
36621 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
36622 instead of __builtin_sqrt.
36624 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
36626 * varasm.c (do_assemble_alias): Follow transparent alias
36628 (default_assemble_visibility): Follow transparent alias
36629 chain for decl name.
36631 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
36633 PR middle-end/62103
36634 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
36635 to compute size of referenced value in the constant case.
36637 2015-02-03 Jakub Jelinek <jakub@redhat.com>
36639 PR rtl-optimization/64756
36640 * cse.c (invalidate_dest): New function.
36641 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
36642 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
36643 invalidate and do not record it.
36645 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
36648 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
36649 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
36650 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
36651 atomic_nand<mode>_soft_tcb): New insns.
36652 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
36653 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
36654 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
36655 Split into atomic_not_fetchsi_hard if operands[0] is unused.
36656 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
36657 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
36658 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
36659 atomic_not<mode>_hard if operands[0] is unused.
36660 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
36661 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
36662 if operands[0] is unused.
36663 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
36664 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
36665 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
36666 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36668 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
36669 into atomic_not<mode>_soft_tcb if operands[0] is unused.
36670 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
36671 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
36672 if operands[0] is unused.
36673 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
36674 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
36675 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
36676 atomic_nand_fetchsi_hard if operands[0] is unused.
36677 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
36678 atomic_nand<mode>_hard if operands[0] is unused.
36679 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
36680 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
36681 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
36682 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36683 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
36684 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
36685 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
36686 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
36687 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
36688 atomic_not<mode>_hard if operands[0] is unused.
36689 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
36690 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36692 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
36693 into atomic_not<mode>_soft_tcb if operands[0] is unused.
36694 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
36695 atomic_nand<mode>_hard if operands[0] is unused.
36696 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
36697 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36699 2015-02-03 David Malcolm <dmalcolm@redhat.com>
36702 * Makefile.in (GCC_OBJS): Add gcc-main.o.
36703 * gcc-main.c: New file, containing "main" taken from gcc.c.
36704 * gcc.c (do_self_spec): Free decoded_options.
36705 (class driver): Move declaration to gcc.h.
36706 (main): Move declaration and implementation to new file
36708 (driver_get_configure_time_options): New function.
36709 * gcc.h (class driver): Move this declaration here, from
36711 (driver_get_configure_time_options): New declaration.
36713 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
36715 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
36716 cross-module inlining.
36717 * cgraph.h (cgraph_node): Add flag merged.
36718 * ipa-icf.c (sem_function::merge): Maintain it.
36720 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
36722 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
36723 instead of OBJECT_P.
36725 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
36728 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
36729 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
36730 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
36731 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
36733 2015-02-03 Jakub Jelinek <jakub@redhat.com>
36736 * combine.c (reg_n_sets_max): New variable.
36737 (can_change_dest_mode, reg_nonzero_bits_for_combine,
36738 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
36739 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
36740 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
36741 (rest_of_handle_combine): Initialize reg_n_sets_max.
36743 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
36745 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
36746 if some always_inline was inlined, apply changes before inlining
36749 2015-02-02 David Malcolm <dmalcolm@redhat.com>
36752 * config/arm/arm.c (arm_option_override): Set
36753 arm_selected_arch/cpu/tune to NULL on entry.
36755 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
36756 Andrew Pinski <pinskia@gcc.gnu.org>
36757 Jakub Jelinek <jakub@gcc.gnu.org>
36760 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
36761 integer typing for small model. Use IN_RANGE.
36763 2015-02-02 Richard Biener <rguenther@suse.de>
36765 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
36766 * tree-vrp.c (vrp_valueize_1): Likewise.
36768 2015-02-02 Alan Modra <amodra@gmail.com>
36770 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
36771 than mem for toc_restore.
36772 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
36773 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
36774 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
36776 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
36779 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
36780 explicit default options.
36782 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
36785 * ipa-utils.c (ipa_merge_profiles): Add release argument.
36786 * ipa-icf.c (sem_function::merge): Do not release body when merging.
36787 * ipa-utils.h (ipa_merge_profiles): Update prototype.
36789 2015-02-01 Jakub Jelinek <jakub@redhat.com>
36792 * cfgexpand.c (deep_ter_debug_map): New variable.
36793 (avoid_deep_ter_for_debug): New function.
36794 (expand_debug_expr): If TERed SSA_NAME is in
36795 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
36796 instead of trying to expand SSA_NAME's def stmt.
36797 (expand_debug_locations): When expanding debug bind
36798 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
36799 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
36801 (pass_expand::execute): Call avoid_deep_ter_for_debug on
36802 all debug bind stmts. Delete deep_ter_debug_map after
36803 expand_debug_location if non-NULL and clear it.
36805 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
36808 * config/sh/sync.md (atomic_fetch_notsi_hard,
36809 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
36810 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
36811 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
36812 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
36813 atomic_not_fetch<mode>_soft_imask): New insns.
36815 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36817 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
36818 (rank_for_schedule_debug): Split from ...
36819 (rank_for_schedule): ... this.
36820 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
36821 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
36823 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
36825 * doc/md.texi (Machine Constraints): Alphabetize table by target.
36826 * doc/extend.texi (x86 Variable Attributes): Move section to
36827 correct alphabetization after renaming.
36828 (x86 Type Attributes): Likewise.
36829 (Target Builtins): Re-alphabetize menu.
36830 (x86 Built-in Functions): Move section to correct alphabetization
36832 (x86 transactional memory intrinsics): Likewise.
36833 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
36834 and x86 Windows Options in table and menu.
36835 (x86 Options): Move section to correct alphabetization after
36837 (x86 Windows Options): Likewise.
36839 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
36841 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
36842 preferred names of the architecture and its 32- and 64-bit
36844 * doc/invoke.texi: Likewise.
36845 * doc/md.texi: Likewise.
36847 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
36850 * config/i386/predicates.md (address_no_seg_operand): Reject
36851 non-CONST_INT_P operands in invalid mode.
36853 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
36855 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
36856 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
36857 * config/i386/predicates.md (address_no_seg_operand): Call
36858 address_operand with VOIDmode.
36859 (vsib_address_operand): Ditto.
36860 (address_mpx_no_base_operand): Ditto.
36861 (address_mpx_no_index_operand): Ditto.
36863 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
36866 * lra-constraints.c (original_subreg_reg_mode): New.
36867 (simplify_operand_subreg): Try to simplify subreg of const. Use
36868 original_subreg_reg_mode for it.
36869 (swap_operands): Update original_subreg_reg_mode.
36870 (curr_insn_transform): Set up original_subreg_reg_mode.
36872 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
36875 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
36877 (process_alt_operands): Use it.
36878 (curr_insn_transform): Check the optional reload pseudo class is
36881 2015-01-30 Joseph Myers <joseph@codesourcery.com>
36883 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
36884 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
36886 * toplev.h (init_asm_output): Update comment on use of
36887 UNKNOWN_LOCATION with fatal_error.
36888 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
36889 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
36890 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
36891 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
36892 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
36893 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
36894 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
36895 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
36896 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
36897 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
36898 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
36899 fatal_error changed to pass input_location as first argument.
36901 2015-01-30 Martin Liska <mliska@suse.cz>
36903 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
36904 in #pragma GCC diagnostic guards.
36906 2015-01-30 Richard Biener <rguenther@suse.de>
36908 PR tree-optimization/64829
36909 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
36910 not add a widening conversion pattern but hand off extra
36911 widenings to callers.
36912 (vect_recog_widen_mult_pattern): Handle extra widening produced
36913 by vect_handle_widen_op_by_const.
36914 (vect_recog_widen_shift_pattern): Likewise.
36915 (vect_pattern_recog_1): Remove excess vertical space in dumping.
36916 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
36917 (vect_init_vector_1): Likewise.
36918 (vect_get_vec_def_for_operand): Likewise.
36919 (vect_finish_stmt_generation): Likewise.
36920 (vectorizable_load): Likewise.
36921 (vect_analyze_stmt): Likewise.
36922 (vect_is_simple_use): Likewise.
36924 2015-01-29 Jeff Law <law@redhat.com>
36926 * combine.c (try_combine): Fix typo in comment.
36928 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
36931 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
36932 (rs6000_stack_info): Add assert.
36933 (rs6000_output_savres_externs): New function, split off from...
36934 (rs6000_output_function_prologue): ... here. Do not call it for
36937 2015-01-29 Jeff Law <law@redhat.com>
36940 * combine.c (try_combine): If I0 is a memory load and I3 a store
36941 to a related address, increase the "goodness" of doing a 4-insn
36942 combination with I0-I3.
36943 (make_field_assignment): Handle SUBREGs in the ior+and case.
36945 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
36947 PR tree-optimization/64746
36948 * tree-if-conv.c (mask_exists): New function.
36949 (predicate_mem_writes): Save created mask with given size for further
36951 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
36952 (ifcvt_repair_bool_pattern): Collect all statements that are root
36953 of bool pattern and use iterative algorithm to remove multiple uses
36954 of predicates, display number of required iterations.
36956 2015-01-29 Richard Biener <rguenther@suse.de>
36958 PR tree-optimization/64853
36959 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
36960 stmt will get simulated again.
36961 * tree-ssa-ccp.c (valueize_op_1): Likewise.
36963 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36965 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
36966 return_in_pc. Remove redundant assignments.
36967 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
36968 (arm_expand_epilogue): Don't compare boolean with true in if condition.
36970 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
36972 * config/i386/i386.c (ix86_mode_after): Make static.
36974 2015-01-29 Richard Biener <rguenther@suse.de>
36976 PR tree-optimization/64844
36977 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
36978 dump cost model analysis.
36979 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
36980 Do not register adjusted load/store costs here.
36982 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
36983 Uros Bizjak <ubizjak@gmail.com>
36985 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
36986 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
36987 using x86_use_pseudo_pic_reg.
36988 * config/i386/i386.c (ix86_conditional_register_usage): Remove
36989 support for fixed PIC register.
36990 (ix86_use_pseudo_pic_reg): Not static any more.
36992 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
36994 PR middle-end/64805
36995 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
36996 to avoid error in cgraph node verification.
36998 2015-01-29 Marek Polacek <polacek@redhat.com>
37000 * doc/standards.texi: Reflect that the default for C is gnu11.
37002 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
37005 * reorg.c (switch_text_sections_between_p): New function.
37006 (relax_delay_slots): Call it when testing if the jump insn
37007 is removable. Use targetm.can_follow_jump when testing if
37008 the conditional branch can follow an unconditional jump.
37010 2015-01-27 Caroline Tice <cmtice@google.com>
37012 Committing VTV Cywin/Ming patch for Patrick Wollgast
37013 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
37014 if -fvtable-verify=preinit/std is used.
37015 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
37016 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
37017 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
37018 if -fvtable-verify=preinit/std is used.
37019 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
37020 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
37021 if -fvtable-verify=preinit/std is used.
37022 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
37023 * config/i386/mingw32.h (LIB_SPEC): Likewise.
37024 * varasm.c (assemble_variable): Add code to properly set the comdat
37025 section and name for the .vtable_map_vars section in case the
37026 target is PE or COFF.
37028 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
37031 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
37032 make sane BB profile.
37033 (cgraph_node::expand_thunk): Make sane BB profile.
37034 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
37035 * cgraph.h (init_lowered_empty_function): Update prototype.
37036 * config/i386/i386.c (make_resolver_func): Update call.
37037 * predict.c (gate): Disable branch prediction pass if
37038 profile is already there.
37040 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
37042 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
37043 * opth-gen.awk: Likewise.
37044 * common.opt: Mark flag_fp_contract_mode as Optimization.
37046 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
37048 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
37049 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
37051 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
37054 * config/sh/predicates.md (atomic_arith_operand,
37055 atomic_logical_operand): Remove.
37056 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
37057 (atomic_arith_operand_0): New predicate.
37058 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
37059 Use atomic_arith_operand_0 for input values.
37060 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
37061 atomic_compare_and_swap<mode>_soft_gusa,
37062 atomic_compare_and_swap<mode>_soft_tcb,
37063 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
37064 arith_reg_operand instead of register_operand.
37065 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
37066 atomic_arith_operand_0 for newval input.
37067 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
37068 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
37069 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
37070 arith_reg_operand instead of register_operand.
37071 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
37072 fetchop_predicate_1, fetchop_constraint_1_llcs,
37073 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
37074 fetchop_constraint_1_imask): New code iterator attributes.
37075 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
37076 register_operand. Use fetchop_predicate_1.
37077 (atomic_fetch_<fetchop_name>si_hard,
37078 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
37079 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
37080 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
37081 and arith_reg_operand instead of register_operand. Use
37082 fetchop_predicate_1, fetchop_constraint_1_gusa.
37083 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
37084 and arith_reg_operand instead of register_operand. Use
37085 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
37087 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
37088 and arith_reg_operand instead of register_operand. Use
37089 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
37091 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
37092 register_operand. Use atomic_logical_operand_1.
37093 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
37094 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
37095 arith_reg_operand instead of register_operand.
37096 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
37097 Use arith_reg_dest and arith_reg_operand instead of register_operand.
37098 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
37099 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
37100 register_operand. Use fetchop_predicate_1.
37101 (atomic_<fetchop_name>_fetchsi_hard,
37102 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
37103 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37104 fetchop_constraint_1_llcs.
37105 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
37106 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37107 fetchop_constraint_1_gusa.
37108 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
37109 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37110 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
37111 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
37112 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37113 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
37114 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
37115 register_operand. Use atomic_logical_operand_1.
37116 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
37117 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
37118 arith_reg_operand instead of register_operand.
37119 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
37120 arith_reg_operand instead of register_operand. Use logical_operand
37121 and K08. Adjust asm sequence to allow R0 usage.
37122 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
37123 arith_reg_operand instead of register_operand. Use logical_operand
37126 2015-01-28 Jakub Jelinek <jakub@redhat.com>
37129 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
37130 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
37131 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
37132 only get_full_len HOST_WIDE_INTs from get_val () array rather than
37133 all bits in *val_wide.
37135 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
37137 * varpool.c (tls_model_names): Fix names.
37138 (varpool_node::dump): Dump tls- prefix for tls models.
37140 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
37141 Bernd Schmidt <bernds@codesourcery.com>
37142 Nathan Sidwell <nathan@codesourcery.com>
37144 * config/nvptx/mkoffload.c: New file.
37145 * config/nvptx/t-nvptx: Add build rules for it.
37146 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
37147 (extra_programs): Add mkoffload.
37148 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
37150 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
37152 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
37154 PR middle-end/64809
37155 * cfgexpand.c (reorder_operands): Skip debug gimples.
37157 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
37159 PR tree-optimization/64277
37160 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
37161 range info when possible to refine estimation.
37163 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
37165 PR tree-optimization/64718
37166 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
37167 be a 16bit unsigned integer when n->range is 16.
37168 (bswap_replace): Convert src to that type if necessary for all bswap
37169 sizes. Fix rotation right notation in nearby comment. Use bswap_type
37170 set in pass_optimize_bswap::execute ().
37172 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
37174 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
37175 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
37176 integer and floating point variants.
37177 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
37179 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
37181 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
37182 for all vector modes.
37184 2015-01-28 Jakub Jelinek <jakub@redhat.com>
37187 * doc/sourcebuild.texi (comdat_group): Document.
37189 2015-01-28 Terry Guo <terry.guo@arm.com>
37191 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
37193 2015-01-27 David Malcolm <dmalcolm@redhat.com>
37195 * toplev.c (print_version): Add param "show_global_state", and
37196 only print GGC and plugin information if it is true.
37197 (init_asm_output): Pass in "true" for the new param when calling
37199 (process_options): Likewise.
37200 (toplev::main): Likewise.
37201 * toplev.h (print_version): Add new param to decl.
37203 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
37207 * tree.c (lookup_binfo_at_offset): New function.
37208 (get_binfo_at_offset): Use it.
37210 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
37213 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
37214 on vtable being vtable.
37216 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
37218 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
37219 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
37220 -mhotpatch= option.
37221 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
37222 -mno-hotpatch options. Change syntax of -mhotpatch= option.
37223 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
37225 (s390_hotpatch_trampoline_halfwords_max): Renamed.
37226 (s390_hotpatch_hw_max): New name.
37227 (s390_hotpatch_trampoline_halfwords): Renamed.
37228 (s390_hotpatch_hw_before_label): New name.
37229 (get_hotpatch_attribute): Removed.
37230 (s390_hotpatch_hw_after_label): New name.
37231 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
37233 (s390_attribute_table): Ditto.
37234 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
37235 (s390_function_num_hotpatch_hw): New name.
37236 Remove special handling of inline functions and hotpatching.
37237 Return number of nops before and after the function label.
37238 (s390_can_inline_p): Removed.
37239 (s390_asm_output_function_label): Emit a configurable number of nops
37240 after the function label.
37241 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
37242 (TARGET_CAN_INLINE_P) Removed.
37243 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
37245 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37246 Jiong Wang <jiong.wang@arm.com>
37248 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
37250 (cb<optab><mode>1): Likewise.
37251 * config/aarch64/iterators.md (bcond): New define_code_attr.
37253 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37255 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
37258 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37260 * config/s390/s390.c (s390_register_move_cost): Increase costs for
37263 2015-01-27 Richard Biener <rguenther@suse.de>
37265 * tree-vrp.c (update_value_range): Intersect the range with
37266 old recorded SSA name range information.
37268 2015-01-27 Nick Clifton <nickc@redhat.com>
37270 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
37271 BC, DE and HL registers directly, not via AX.
37272 When decrementing the stack pointer by a large amount, transfer SP
37273 into AX and perform the subtraction there.
37274 (rl78_expand_epilogue): Perform the inverse of the above
37277 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37279 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
37281 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37282 Yury Gribov <y.gribov@samsung.com>
37285 * ubsan.c (ubsan_source_location): Refactor code.
37286 (ubsan_type_descriptor): Update type size. Refactor code.
37288 2015-01-27 Richard Biener <rguenther@suse.de>
37290 PR tree-optimization/56273
37291 PR tree-optimization/59124
37292 PR tree-optimization/64277
37293 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
37294 from the first VRP pass.
37296 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37299 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
37300 handle the first argument in the same loop as all the other arguments.
37302 PR rtl-optimization/61058
37303 * jump.c (cleanup_barriers): Update basic block boundaries
37304 if BLOCK_FOR_INSN is non-NULL on PREV.
37306 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
37308 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
37309 bounds narrowing, already instrumented calls and calls to
37310 not instrumentable functions.
37312 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37314 PR tree-optimization/64807
37315 * wide-int.cc (wi::divmod_internal): Clear
37316 b_dividend[dividend_blocks_needed].
37318 2015-01-26 DJ Delorie <dj@redhat.com>
37320 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
37321 volatile memory references.
37323 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
37326 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
37328 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
37329 shifts if it already fits into K08.
37331 2015-01-26 Jakub Jelinek <jakub@redhat.com>
37334 * ipa-inline.c (inline_small_functions): Print "unknown" even
37335 if edge->call_stmt is non-NULL, but has builtins or unknown
37338 PR middle-end/64421
37339 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
37340 with asterisk, skip the first character.
37342 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
37345 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
37348 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
37351 * config/i386/i386.md (*movdi_internal): Also check operand 0
37352 to determine TYPE_LEA operand.
37353 (*movsi_internal): Ditto.
37355 2015-01-26 Jakub Jelinek <jakub@redhat.com>
37357 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
37358 OPTION_MASK_QUAD_MEMORY_ATOMIC.
37360 2015-01-26 Renlin Li <renlin.li@arm.com>
37362 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
37364 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
37367 2015-01-26 Richard Biener <rguenther@suse.de>
37369 PR middle-end/64764
37370 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
37371 combining two BIT_AND_EXPR predicates.
37373 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
37376 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
37378 2015-01-26 Terry Guo <terry.guo@arm.com>
37380 * config/arm/arm.c (arm_file_start): Update the assignment of
37381 Tag_ABI_HardFP_use.
37383 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
37385 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
37387 config/arm/arm.md: Include the new Cortex-A57 model.
37388 (generic_sched): Don't use generic_sched when tuning for
37391 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
37392 Uros Bizjak <ubizjak@gmail.com>
37394 * config/i386/i386.c (get_builtin_code_for_version): Add
37395 support for BMI and BMI2 multiversion functions.
37397 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37399 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
37400 (extract_bit_field): Likewise.
37401 (extract_low_bits): Likewise.
37402 (expand_mult): Likewise.
37403 (expand_mult_highpart_adjust): Likewise.
37405 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
37407 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
37408 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
37409 * config/i386/i386.c (processor_model): Add
37410 M_INTEL_COREI7_BROADWELL.
37411 (arch_names_table): Add "broadwell".
37413 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
37422 * config/sh/sh-protos.h
37423 (sh_extending_set_of_reg::can_use_as_unextended_reg,
37424 sh_extending_set_of_reg::use_as_unextended_reg,
37425 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
37426 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
37427 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
37428 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
37429 (sh_treg_insns): New class.
37430 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
37431 (scope_counter): New class.
37432 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
37433 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
37434 sh_extending_set_of_reg::can_use_as_unextended_reg,
37435 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
37436 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
37437 sh_split_treg_set_expr): New functions.
37438 (addsubcosts): Handle treg_set_expr.
37439 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
37440 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
37441 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
37442 (sh_insn_operands_modified_between_p): Make non-static.
37443 * config/sh/predicates.md (zero_extend_movu_operand): Allow
37444 simple_mem_operand in addition to displacement_mem_operand.
37445 (zero_extend_operand): Don't allow zero_extend_movu_operand.
37446 (treg_set_expr, treg_set_expr_not_const01,
37447 arith_reg_or_treg_set_expr): New predicates.
37448 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
37449 arith_or_int_operand instead of logical_operand. Convert to
37450 insn_and_split. Try to optimize constant operand in splitter.
37451 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
37452 (*tstqi_t_zero): Delete.
37453 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
37454 (tstsi_t_and_not): Delete.
37455 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
37456 Convert to insn_and_split.
37457 (unnamed split, tstsi_t_zero_extract_xor,
37458 tstsi_t_zero_extract_subreg_xor_little,
37459 tstsi_t_zero_extract_subreg_xor_big): Delete.
37460 (*tstsi_t_shift_mask): New insn_and_split.
37461 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
37462 to recombine with surrounding insns when splitting.
37463 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
37464 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
37465 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
37466 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
37467 (*cbranch_div0s: Delete.
37468 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
37469 Try to recombine with surrounding insns when splitting. Add operand
37471 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
37472 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
37473 *addc_r_r_msb, *addc_2r_msb): Delete.
37474 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
37476 (*addc_negreg_t): New insn_and_split.
37477 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
37478 Try to recombine with surrounding insns when splitting.
37479 Add operand order variants.
37480 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
37481 insn_and_split patterns.
37482 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
37483 surrounding insns when splitting.
37484 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
37485 (*rotcl): Likewise. Add zero_extract variant.
37486 (*ashrsi2_31): New insn_and_split.
37487 (*negc): Convert to insn_and_split. Use treg_set_expr.
37488 (*zero_extend<mode>si2_disp_mem): Update comment.
37489 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
37491 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
37492 with surrounding insns when splitting.
37493 (any_treg_expr_to_reg): New insn_and_split.
37494 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
37495 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
37496 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
37497 *zero_extract_2): New single bit zero extract patterns.
37498 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
37499 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
37500 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
37501 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
37503 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
37504 register_operand for set source.
37506 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
37508 * i386.opt (prefetch_sse): New targetsave.
37509 * i386.c (ix86_function_specific_save): Save prefetch_sse.
37510 (ix86_function_specific_restore): Restore prefetch_sse and initialize
37511 ix86_cost/ix86_tune_cost.
37513 2015-01-23 David Malcolm <dmalcolm@redhat.com>
37515 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
37516 Support the JIT by using 0 as the language type.
37518 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
37521 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
37522 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
37523 (mark_regno_live, process_bb_lives): Pass new parameter value to
37524 make_hard_regno_born.
37526 2015-01-23 Jakub Jelinek <jakub@redhat.com>
37528 PR rtl-optimization/63637
37529 PR rtl-optimization/60663
37530 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
37531 if elt->cost is MAX_COST for ASM_OPERANDS.
37532 (find_sets_in_insn): Fix up comment typo.
37533 (cse_insn): Don't set src_volatile for all non-volatile
37534 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
37535 or with "memory" clobber. Set elt->cost to MAX_COST
37536 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
37537 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
37539 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
37541 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
37544 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
37546 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
37547 libgcc/config/i386/elf-lib.h.
37549 2015-01-23 Jakub Jelinek <jakub@redhat.com>
37552 * gcc.c (print_configuration): Don't print a blank line at the end
37554 (run_attempt): ... but here unstead.
37556 PR middle-end/64734
37557 * omp-low.c (scan_sharing_clauses): Don't ignore
37558 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
37559 on target data/update constructs.
37561 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
37564 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
37565 (DEBUG_RELOAD): Removed define.
37566 (m32c_limit_reload_class): Enable traces with if DEBUG0.
37567 (m32c_function_arg): Added a type cast.
37568 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
37569 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
37570 * config/m32c/bitops.md (andqi3_16): Likewise.
37571 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
37572 (push_a01_l): Likewise.
37574 2015-01-23 David Malcolm <dmalcolm@redhat.com>
37577 * main.c (main): Construct toplev instances with init_signals=true.
37578 * toplev.c (general_init): Add param "init_signals", and use it to
37579 conditionalize the calls to signal and host_hooks.extra_signals.
37580 (toplev::toplev): Add param "init_signals".
37581 (toplev::main): When invoking general_init, pass m_init_signals
37582 to control whether signal-handlers are installed.
37583 * toplev.h (toplev::toplev): Add param "init_signals".
37584 (toplev::m_init_signals): New field.
37586 2015-01-23 David Malcolm <dmalcolm@redhat.com>
37589 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
37590 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
37591 latter may be affected by the former (e.g. on i686).
37593 2015-01-23 Martin Liska <mliska@suse.cz>
37595 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
37596 false positive during profiledbootstrap.
37598 2015-01-23 Tom de Vries <tom@codesourcery.com>
37601 * lto-opts.c (lto_write_options): Output non-explicit conservative
37603 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
37604 (append_compiler_options): Pass -fopenacc through.
37606 2015-01-23 Tom de Vries <tom@codesourcery.com>
37609 * lto-opts.c (lto_write_options): Output non-explicit conservative
37611 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
37612 (append_compiler_options): Pass -fopenmp through.
37614 2015-01-23 Jakub Jelinek <jakub@redhat.com>
37617 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
37620 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
37621 * diagnostic.def (DK_ICE_NOBT): New kind.
37622 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
37623 like DK_ICE, but never print backtrace.
37624 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
37625 (internal_error_no_backtrace): New function.
37626 * gcc.c (execute): Use internal_error_no_backtrace instead of
37629 2015-01-22 Jeff Law <law@redhat.com>
37632 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
37633 improve code density for small immediate to memory case.
37634 (insv): Better handle bitfield assignments when the field is
37635 being set to all ones.
37636 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
37639 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37640 Jakub Jelinek <jakub@redhat.com>
37642 PR middle-end/64729
37643 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
37644 for !TARGET_LIBC_PROVIDES_SSP version and
37645 -fstack-protector-{all,strong,explicit} otherwise.
37646 * config/freebsd.h (LINK_SSP_SPEC): Handle
37647 -fstack-protector-{strong,explicit}.
37649 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
37650 H.J. Lu <hongjiu.lu@intel.com>
37653 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
37656 2015-01-22 Wei Mi <wmi@google.com>
37658 PR rtl-optimization/64557
37659 * dse.c (record_store): Call get_addr for mem_addr.
37660 (check_mem_read_rtx): Likewise.
37662 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
37664 * fold-const.c (const_binop): Add early return for non-tcc_binary.
37666 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
37668 * toplev.c (init_local_tick): Process the failure when read
37669 fails for random_seed.
37671 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
37672 'pretty_name' to avoid memory overflow.
37674 2015-01-22 Richard Biener <rguenther@suse.de>
37676 PR middle-end/64728
37677 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
37678 abnormal coalescing on undefined SSA names.
37680 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
37684 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
37686 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
37688 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
37690 PR middle-end/63325
37691 * fold-const.c (fold_checksum_tree): Don't include value of
37692 expr->decl_with_vis.symtab_node in the checksum.
37694 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37696 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
37698 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
37701 * gcc.c (insert_comments): New function.
37702 (try_generate_repro): Call it.
37703 (append_text): Removed.
37705 2015-01-22 Richard Biener <rguenther@suse.de>
37707 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
37708 with IL incompatible options. Properly honor user optimize
37711 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
37713 PR rtl-optimization/64682
37714 * combine.c (distribute_notes): When moving a death note for
37715 a register that is set in the new I2, make sure to put it
37716 before that new I2.
37718 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
37720 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
37721 not TARGET_DEFAULT.
37723 2015-01-21 Jakub Jelinek <jakub@redhat.com>
37726 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
37727 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
37728 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
37731 * doc/invoke.texi (-fsanitize=vptr): Document.
37733 PR rtl-optimization/62078
37734 * dse.c: Include cfgcleanup.h.
37735 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
37736 anything call purge_all_dead_edges and cleanup_cfg at the end
37739 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
37741 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
37744 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
37746 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
37749 2015-01-21 David Sherwood <david.sherwood@arm.com>
37750 Tejas Belagod <Tejas.Belagod@arm.com>
37752 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
37753 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
37754 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
37757 2015-01-21 David Sherwood <david.sherwood@arm.com>
37758 Tejas Belagod <Tejas.Belagod@arm.com>
37760 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
37761 (aarch64_reverse_mask): New decls.
37762 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
37763 (insn_count): New mode_attr.
37764 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
37765 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
37766 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
37767 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
37768 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
37769 (aarch64_simd_st4): New patterns.
37770 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
37771 (aarch64_reverse_mask): New functions.
37773 2015-01-21 Alan Hayward <alan.hayward@arm.com>
37775 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
37777 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
37778 addressing modes for BE.
37779 (aarch64_print_operand): Add 'R' specifier.
37780 (aarch64_simd_disambiguate_copy): Delete.
37781 (aarch64_simd_emit_reg_reg_move): New function.
37782 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
37783 in define_splits for structural moves.
37784 (mov<mode>): Use less restrictive predicates.
37785 (*aarch64_mov<mode>): Simplify and only allow for LE.
37786 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
37788 2015-01-21 Alan Hayward <alan.hayward@arm.com>
37790 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
37792 2015-01-21 Richard Henderson <rth@redhat.com>
37795 * ccmp.c (used_in_cond_stmt_p): Remove.
37796 (expand_ccmp_expr): Don't use it.
37798 2015-01-21 Nick Clifton <nickc@redhat.com>
37800 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
37803 2015-01-21 Richard Biener <rguenther@suse.de>
37805 PR middle-end/64313
37806 * tree-core.h (builtin_info, builtin_info_type): Turn from
37807 an object with two arrays into an array of an object with
37808 decl and two flags, implicit_p and declared_p.
37809 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
37810 set_builtin_decl, set_builtin_decl_implicit_p,
37811 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
37812 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
37813 * builtins.c (builtin_info): Adjust.
37814 * gimplify.c (gimplify_addr_expr): References to builtins
37815 that have been declared by the user makes them eligible for
37816 use by the compiler. Call set_builtin_decl_implicit_p on them.
37818 2015-01-20 Jeff Law <law@redhat.com>
37821 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
37822 allow pc-relative addresses in operand predicates or constraints.
37824 2015-01-21 Bin Cheng <bin.cheng@arm.com>
37826 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
37827 neon on aarch32 processors for stringops.
37829 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37832 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
37834 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37837 * ipa-inline.c: Include lto-streamer.h
37838 (report_inline_failed_reason): Output source file differences and
37839 flags on optimization/target node mismatch.
37840 (can_inline_edge_p): Consider caller to be the outer inline function;
37841 be less restrictive about matching opimize and optimize_size attributes.
37842 (inline_account_function_p): Break out from ...
37843 (inline_small_functions): ... here.
37844 * ipa-inline-transform.c (clone_inlined_nodes): Use
37845 inline_account_function_p.
37846 (inline_call): Use optimize attribution; use inline_account_function_p.
37847 (inline_transform): Use opt_for_fn.
37848 * ipa-inline.h (inline_account_function_p): Declare.
37850 2015-01-20 Jakub Jelinek <jakub@redhat.com>
37853 * dwarf2out.c (decl_piece_node): Don't put bitsize into
37854 mode if bitsize <= 0.
37855 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
37856 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
37857 sizes and positions.
37859 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
37861 * config/nios2/nios2.c (nios2_asm_file_end): Implement
37862 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
37864 (TARGET_ASM_FILE_END): Define.
37866 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37868 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
37869 (struct tune_params): Use the enum.
37870 * arm.c (arm_*_tune): Update.
37871 (arm_option_override): Update.
37873 2015-01-20 Richard Biener <rguenther@suse.de>
37876 * ipa-reference.c (add_static_var): Inline ...
37877 (analyze_function): ... here after splitting out from ...
37878 (is_proper_for_analysis): ... this.
37880 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
37883 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
37884 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
37885 replace the conditional with it's true branch.
37886 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
37887 (arm_lra_p): Remove.
37889 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
37891 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
37893 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37895 * config/tilegx/mul-tables.c: Move symtab.h include after
37896 coretypes.h include.
37897 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
37898 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
37899 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
37900 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
37901 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
37903 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
37907 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
37909 PR rtl-optimization/64081
37910 * loop-iv.c (def_pred_latch_p): New function.
37911 (latch_dominating_def): Allow specific cases with non-single
37913 (iv_get_reaching_def): Likewise.
37914 (check_complex_exit_p): New function.
37915 (check_simple_exit): Use check_complex_exit_p to allow certain cases
37916 with exits not executing on any iteration.
37918 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37921 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
37922 to set branch cost.
37924 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37927 * i386.c (gate): Check flag_expensive_optimizations and
37929 (ix86_option_override_internal): Drop optimize_size condition
37930 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
37931 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
37932 MASK_PREFER_AVX128.
37933 (ix86_avx256_split_vector_move_misalign,
37934 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
37935 * sse.md (all uses of TARGET_PREFER_AVX128): Add
37936 optimize_insn_for_speed_p check.
37938 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
37940 * config/mips/mips.h (FP_ASM_SPEC): New define.
37941 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
37944 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
37947 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
37948 nullptr for insn when reaching the first insn.
37949 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
37950 (sh_insn_operands_modified_between_p): Add nullptr check.
37951 (sh_find_extending_set_of_reg): Fix log message. Don't accept
37952 sign extending mem load if the insn contains any UNSPEC or
37955 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37957 * params.def (inline-unit-growth): Drop to 15%.
37958 * invoke.texi (inline-unit-growth): Document change.
37960 2015-01-19 Martin Liska <mliska@suse.cz>
37963 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
37964 function for second argument of OBJ_TYPE_REF.
37966 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37969 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
37970 whether function is an alias.
37972 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37974 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
37977 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
37979 PR rtl-optimization/64671
37980 * lra-remat.c (operand_to_remat): Don't consider jump and call
37983 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
37986 * config/rs6000/default64.h: Include rs6000-cpus.def.
37987 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
37988 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
37989 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
37991 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
37993 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
37994 pseudo-op to specify assembler dialect.
37996 2015-01-19 Martin Liska <mliska@suse.cz>
37999 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
38000 Handle safe potentially removed nodes during filtering.
38002 2015-01-19 Martin Liska <mliska@suse.cz>
38004 * doc/extend.texi (no_icf): Add new attribute description.
38005 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
38006 where the pass attempts to merge a function with no_icf attribute.
38008 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38011 * doc/md.texi (ARM Options): Document register constraints.
38013 2015-01-19 Jiong Wang <jiong.wang@arm.com>
38014 Andrew Pinski <apinski@cavium.com>
38017 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
38018 (ashl<mode>3): Don't expand if operands[2] is not constant.
38020 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38023 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
38024 Match xor-and-xor RTL pattern.
38026 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
38028 PR rtl-optimization/64081
38029 * loop-iv.c (def_pred_latch_p): New function.
38030 (latch_dominating_def): Allow specific cases with non-single
38032 (iv_get_reaching_def): Likewise.
38033 (check_complex_exit_p): New function.
38034 (check_simple_exit): Use check_complex_exit_p to allow certain cases
38035 with exits not executing on any iteration.
38037 2015-01-19 Jakub Jelinek <jakub@redhat.com>
38039 * common.opt (fgraphite): Fix a typo.
38041 2015-01-19 Felix Yang <felix.yang@huawei.com>
38043 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
38045 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
38046 uminp, smax_nanp, smin_nanp): New builtins.
38047 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
38048 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
38049 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
38050 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
38051 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
38052 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
38053 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
38054 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
38055 vpminnms_f32): Rewrite using builtin functions.
38057 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
38060 * omp-low.c (offload_symbol_decl): Remove variable.
38061 (get_offload_symbol_decl): Remove function.
38062 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
38063 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
38064 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
38065 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
38066 BUILT_IN_GOACC_UPDATE don't pass it at all.
38068 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
38070 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
38073 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
38075 * ipa-chkp.c (chkp_produce_thunks): Add early param
38076 to split thunks production into two passes. Keep
38077 'always_inline' function bodies after the first pass.
38078 (pass_data_ipa_chkp_early_produce_thunks): New.
38079 (pass_ipa_chkp_early_produce_thunks): New.
38080 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
38081 chkp_produce_thunks signature.
38082 (make_pass_ipa_chkp_early_produce_thunks): New.
38083 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
38084 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
38085 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
38087 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38089 * cgraph.c (cgraph_node::dump): Dump profile flags.
38091 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
38094 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
38095 reg appear first in the parallel.
38097 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38099 * ipa-reference.c (set_reference_optimization_summary,
38100 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
38102 (ignore_module_statics): New static var.
38103 (propagate_bits): If ipa-reference is disabled, do not look into local
38105 (analyze_function): Disable analysis when ipa_reference is disabled.
38106 (generate_summary): Do not dump when reference is disabled;
38107 collect vars accessed from functions with ipa-reference disabled.
38108 (get_read_write_all_from_node): When ipa-reference is disabled, use the
38110 (gate): Enable for LTO.
38111 (ignore_edge_p): New function.
38112 (propagate): Skip functions w/o ipa-reference analysis.
38113 * optc-save-gen.awk: Handle optimize_debug correctly.
38114 * opth-gen.awk: Likewise.
38115 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
38116 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
38117 fira-share-save-slots, fira-share-spill-slots,
38118 fmodulo-sched-allow-regmoves, fpartial-inlining,
38119 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
38120 ftracer, ftree-parallelize-loops, fassociative-math,
38121 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
38123 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
38124 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
38126 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
38129 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38132 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
38134 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
38136 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
38138 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
38139 Remove duplicate option listings.
38141 2015-01-18 Felix Yang <felix.yang@huawei.com>
38143 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
38144 (autofdo_source_profile::get_callsite_total_count,
38145 function_instance::get_function_instance_by_decl,
38146 string_table::get_index, string_table::get_index_by_decl,
38147 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
38148 Fix comment typos. Reformatting and minor code rearrangement.
38150 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38152 * config/rs6000/rs6000.md (probe_stack): Delete.
38153 (probe_stack_address): New.
38155 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38157 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
38158 to test for 32-bit ABIs, not !TARGET_POWERPC64.
38160 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38162 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
38163 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
38164 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
38166 (rs6000_libcall_value): Use the new function.
38168 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
38170 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
38172 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
38174 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
38175 implement a more precise life analysis for it during backward scan.
38177 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
38179 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
38181 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
38183 PR rtl-optimization/52773
38184 * calls.c (emit_library_call_value): When pushing arguments use
38185 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
38186 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
38187 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
38189 2015-01-17 Jeff Law <law@redhat.com>
38191 PR rtl-optimization/32790
38192 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
38193 not ZERO_EXTEND in SET_DESTs.
38195 2015-01-17 Alan Modra <amodra@gmail.com>
38197 * cprop.c (do_local_cprop): Revert last change.
38199 2015-01-16 DJ Delorie <dj@redhat.com>
38200 Nick Clifton <nickc@redhat.com>
38202 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
38203 (addhi3_real): Likewise. Fix [HL+0] syntax.
38204 (subqi3_real): Likewise.
38205 (subhi3_real): Likewise.
38206 (cbranchqi4_real): Likewise. Allow saddr,#imm.
38207 (cbranchhi4_real): Likewise.
38208 (cbranchhi4_real_inverted): Likewise.
38209 (cbranchsi4_real_lt): Likewise.
38210 (cbranchsi4_real_ge): Likewise.
38211 (cbranchsi4_real_ge): Likewise.
38212 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
38213 (sub<mode>3_virt): Likewise.
38214 (cbranchqi4_virt): Likewise.
38215 (cbranchhi4_virt): Likewise.
38216 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
38217 always use '[reg+imm]' even when imm is zero.
38218 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
38219 (rl78_general_operand): New.
38220 (rl78_nonimmediate_operand): New.
38221 (rl78_nonfar_operand): Use them.
38222 (rl78_nonfar_nonimm_operand): Likewise.
38223 (rl78_stack_based_mem): Fix.
38224 * config/rl78/constraints.md (Ibqi): New.
38229 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
38230 (iorqi3): Likewise.
38231 (xorqi3): Likewise.
38232 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
38234 * config/rl78/constrains (Qs8): New constraint.
38235 * config/rl78/rl78.c (rl78_flags_already_set): New function.
38236 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
38237 * config/rl78/rl78-real.md (update_Z): New attribute.
38238 Update patterns to set it.
38239 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
38240 shorter compare and branch sequence can be used.
38241 (cbranchhi4_real): Likewise.
38242 (cbranchhi4_real_inverted): Likewise.
38244 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
38245 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
38247 * config/rl78/rl78.c (rl78_get_name_encoding): New.
38248 (rl78_option_override): Allow -mes0 only if C.
38249 (characterize_address): Support subregs of symbol_refs.
38250 (rl78_addr_space_address_mode): Move. Add __near.
38251 (rl78_far_p): Likewise.
38252 (rl78_addr_space_pointer_mode): Likewise.
38253 (rl78_as_legitimate_address): Likewise.
38254 (rl78_addr_space_subset_p): Likewise.
38255 (rl78_addr_space_convert): Likewise.
38256 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
38257 symbols with -mes0.
38258 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
38260 (rl78_alloc_physical_registers_op1): Change logic to prefer
38261 symbol[BC] addressing.
38262 (frodata_section): New.
38263 (rl78_asm_init_sections): Initialize it.
38264 (rl78_select_section): Put __far readonly symbols in .frodata.
38265 (rl78_make_type_far): New.
38266 (rl78_insert_attributes): Force all readonly symbols to be
38268 (rl78_asm_out_integer): New.
38269 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
38270 * config/rl78/rl78.opt (-mes0): New.
38272 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
38273 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
38274 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
38275 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
38276 (rl78_saddr_p): New.
38277 (rl78_output_aligned_common): New.
38278 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
38279 (rl78_handle_saddr_attribute): New.
38280 (rl78_handle_naked_attribute): New.
38281 (rl78_attribute_table): Add saddr.
38282 (rl78_print_operand_1): Don't print '!' on saddr operands.
38283 (rl78_print_operand_1): Strip encodings.
38285 (rl78_strip_name_encoding): New.
38286 (rl78_attrlist_to_encoding): New.
38287 (rl78_encode_section_info): New.
38288 (rl78_asm_init_sections): New.
38289 (rl78_select_section): New.
38290 (rl78_output_labelref): New.
38291 (rl78_output_aligned_common): New.
38292 (rl78_asm_out_integer): New.
38293 (rl78_asm_ctor_dtor): New.
38294 (rl78_asm_constructor): New.
38295 (rl78_asm_destructor): New.
38297 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
38298 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
38299 (transcode_memory_rtx): Update.
38300 (rl78_expand_epilogue): Use A_REG instead of 0.
38302 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38304 * config/arm/arm-protos.h (struct tune_params): New field
38305 sched_autopref_queue_depth.
38306 * config/arm/arm.c (sched-int.h): Include header.
38307 (arm_first_cycle_multipass_dfa_lookahead_guard,)
38308 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
38309 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
38310 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
38311 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
38312 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
38313 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
38314 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
38315 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
38316 * config/arm/t-arm (arm.o): Update.
38317 * haifa-sched.c (update_insn_after_change): Update.
38318 (rank_for_schedule): Use auto-prefetcher model, if requested.
38319 (autopref_multipass_init): New static function.
38320 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
38321 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
38322 variable for debug dumps.
38323 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
38324 (autopref_multipass_dfa_lookahead_guard): New global function that
38325 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
38326 (init_h_i_d): Update.
38327 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
38328 * sched-int.h (enum autopref_multipass_data_status): New const enum.
38329 (autopref_multipass_data_): Structure for auto-prefetcher data.
38330 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
38331 (struct _haifa_insn_data:autopref_multipass_data): New field.
38332 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
38333 (autopref_multipass_dfa_lookahead_guard): Declare.
38335 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38337 * rtlanal.c (get_base_term): Handle SCRATCH.
38339 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38341 * config/aarch64/aarch64.c
38342 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
38343 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38345 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
38346 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38348 2015-01-17 Alan Modra <amodra@gmail.com>
38350 * cprop.c (do_local_cprop): Disallow replacement of fixed
38353 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38356 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
38359 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
38361 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
38362 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
38364 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38366 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
38367 * config/arm/thumb1.md: ... Here.
38369 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38371 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
38372 TImode for TARGET_32BIT.
38374 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38376 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
38377 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
38379 (rs6000_abi_word_mode): New function.
38381 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38383 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
38384 instead of UNITS_PER_WORD to describe the size of stack slots.
38386 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38388 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
38389 as rs6000_promote_function_mode. Move comment to there.
38390 (rs6000_promote_function_mode): New function.
38392 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38394 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
38395 -mpowerpc64 is active.
38397 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
38399 PR middle-end/64353
38400 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
38403 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
38405 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
38406 introduced in revision 219724.
38408 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38409 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38412 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
38413 destination is not a GP reg.
38414 (*movdi_aarch64): Likewise.
38416 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
38419 * config/rs6000/default64.h: Revert ISA change.
38421 2015-01-16 Richard Biener <rguenther@suse.de>
38423 PR middle-end/64614
38424 * tree-ssa-uninit.c: Include tree-cfg.h.
38425 (MAX_SWITCH_CASES): New define.
38426 (convert_control_dep_chain_into_preds): Handle switch statements.
38427 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
38428 (normalize_one_pred_1): Do not split bit-manipulations.
38431 2015-01-16 Richard Biener <rguenther@suse.de>
38433 PR tree-optimization/64568
38434 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
38435 complex load rewriting for TARGET_MEM_REFs.
38437 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
38439 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
38441 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
38444 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
38446 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
38447 (aarch64_lra_p): Remove.
38449 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
38452 * ipa-chkp.h (chkp_instrumentable_p): New.
38453 * ipa-chkp.c: Include tree-inline.h.
38454 (chkp_instrumentable_p): New.
38455 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
38456 Fix processing of not instrumentable functions.
38457 (chkp_versioning): Use chkp_instrumentable_p. Warn about
38458 not instrumentable functions.
38459 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
38460 chkp_instrumentable_p.
38461 * tree-inline.h (copy_forbidden): New.
38462 * tree-inline.c (copy_forbidden): Not static anymore.
38464 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38466 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
38469 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
38471 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
38472 type OP_OUT to OP_INOUT.
38474 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
38476 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
38477 (high x) y) to y if x and y have the same base.
38479 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
38481 * config/arm/cortex-a57.md: New.
38482 * config/aarch64/aarch64.md: Include it.
38483 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
38484 * config/aarch64/aarch64-tune.md: Regenerate.
38486 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
38489 * ccmp.c (expand_ccmp_next): New function.
38490 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
38491 and compare insn sequence.
38492 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
38493 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
38494 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
38495 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
38496 (*ccmp_ior): Changed to ccmp_ior<mode>.
38497 (cmp<mode>): New pattern.
38498 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
38500 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
38502 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
38504 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
38505 _mm256_bsrli_epi128): New.
38506 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
38508 2015-01-15 Jiong Wang <jiong.wang@arm.com>
38510 * expmed.c (store_bit_field_using_insv): Improve warning message.
38511 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
38513 2015-01-15 Jiong Wang <jiong.wang@arm.com>
38515 PR rtl-optimization/64011
38516 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
38517 there is partial overflow.
38519 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38521 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
38523 (nds32_expand_epilogue_v3pop): Likewise.
38524 * config/nds32/nds32.md (sibcall): Define this for sibling call
38526 (sibcall_register): Likewise.
38527 (sibcall_immediate): Likewise.
38528 (sibcall_value): Likewise.
38529 (sibcall_value_register): Likewise.
38530 (sibcall_value_immediate): Likewise.
38531 (sibcall_epilogue): Likewise.
38532 (epilogue): Pass false to indicate this is not a sibcall epilogue.
38533 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
38534 (nds32_expand_epilogue_v3pop): Likewise.
38536 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38538 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
38539 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
38540 (return_internal): New.
38541 (return): Define this named pattern.
38542 (simple_return): Define this named pattern.
38543 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
38544 pattern instead of unspec_volatile_func_return.
38545 (nds32_expand_epilogue_v3pop): Likewise.
38546 (nds32_can_use_return_insn): New function.
38548 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38550 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
38551 * config/nds32/nds32.md (pop25return): New.
38552 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
38553 pop25return pattern.
38555 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38557 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
38558 -mforbid-fp-as-gp, and -mex9 options.
38560 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38562 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
38563 remove -mgp-direct option.
38565 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
38567 * doc/invoke.texi (--param early-inlining-insns): Update default value.
38568 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
38570 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
38572 * ipa-inline.c (inline_small_functions): Work around hints
38575 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
38578 * doc/invoke.texi (Option Summary): Document new Nios II
38580 (Nios II Options): Likewise.
38581 * config/nios2/nios2.opt: Add -mgpopt= option support.
38582 Modify existing -mgpopt and -mno-gpopt options to be aliases.
38583 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
38584 * config/nios2/nios2.c (nios2_option_override): Adjust
38585 -mgpopt defaulting.
38586 (nios2_in_small_data_p): Return true for explicit small data
38587 sections even with -G0.
38588 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
38591 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
38594 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
38596 (inline_call): Fix removal of aliases.
38598 2015-01-15 Jakub Jelinek <jakub@redhat.com>
38600 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
38601 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
38602 * opts.c (common_handle_option): Add -fsanitize=vptr.
38603 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
38604 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
38605 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
38606 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
38607 (ubsan_expand_vptr_ifn): New prototype.
38608 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
38609 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
38610 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
38611 expand_LOOP_VECTORIZED): Make argument nameless, remove
38613 (expand_UBSAN_VPTR): New function.
38614 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
38616 (UBSAN_VPTR): New internal function.
38617 * sanopt.c (tree_map_traits): Renamed to ...
38618 (sanopt_tree_map_traits): ... this.
38619 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
38620 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
38621 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
38622 (maybe_optimize_ubsan_vptr_ifn): New function.
38623 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
38624 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
38626 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
38627 internal calls like pure functions for aliasing, even when they
38628 have other side-effects that prevent making them ECF_PURE.
38629 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
38630 (ubsan_expand_vptr_ifn): New function.
38632 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
38634 PR rtl-optimization/64110
38635 * stmt.c (parse_output_constraint): Process '^' and '$'.
38636 (parse_input_constraint): Ditto.
38637 * lra-constraints.c (process_alt_operands): Process the new
38639 * ira-costs.c (record_reg_classes): Process the new constraint
38641 * genoutput.c (indep_constraints): Add '^' and '$'.
38642 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
38643 * doc/md.texi: Add description of the new constraints.
38645 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
38646 Bernd Schmidt <bernds@codesourcery.com>
38647 Cesar Philippidis <cesar@codesourcery.com>
38648 James Norris <jnorris@codesourcery.com>
38649 Tom de Vries <tom@codesourcery.com>
38650 Ilmir Usmanov <i.usmanov@samsung.com>
38651 Dmitry Bocharnikov <dmitry.b@samsung.com>
38652 Evgeny Gavrin <e.gavrin@samsung.com>
38653 Jakub Jelinek <jakub@redhat.com>
38655 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
38656 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38657 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38658 New function types.
38659 * builtins.c: Include "gomp-constants.h".
38660 (expand_builtin_acc_on_device): New function.
38661 (expand_builtin, is_inexpensive_builtin): Handle
38662 BUILT_IN_ACC_ON_DEVICE.
38663 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
38665 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
38667 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
38668 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
38669 i386/intelmic-offload.h.
38670 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
38671 to libgomp and its dependencies.
38672 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
38673 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
38674 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
38675 * config/ia64/hpux.h (LIB_SPEC): Likewise.
38676 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
38677 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
38678 * doc/generic.texi: Update for OpenACC changes.
38679 * doc/gimple.texi: Likewise.
38680 * doc/invoke.texi: Likewise.
38681 * doc/sourcebuild.texi: Likewise.
38682 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
38683 GF_OMP_FOR_KIND_OACC_LOOP.
38684 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
38685 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
38686 GF_OMP_TARGET_KIND_OACC_UPDATE,
38687 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38689 * gimple.c: Update comments for OpenACC changes.
38690 * gimple.def: Likewise.
38691 * gimple.h: Likewise.
38692 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
38693 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38694 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
38695 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38696 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
38698 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
38699 * gimplify.c: Include "gomp-constants.h".
38700 Update comments for OpenACC changes.
38701 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
38702 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
38703 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38704 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
38705 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38706 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38707 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
38708 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38709 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
38711 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
38712 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
38713 OMP_CLAUSE_SET_MAP_KIND.
38714 (gimplify_oacc_cache): New function.
38715 (gimplify_omp_for): Handle OACC_LOOP.
38716 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
38718 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
38719 OACC_EXIT_DATA, OACC_UPDATE.
38720 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
38721 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
38722 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
38723 (gimplify_body): Consider flag_openacc next to flag_openmp.
38724 * lto-streamer-out.c: Include "gomp-constants.h".
38725 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
38726 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
38727 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
38728 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
38729 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
38730 (BUILT_IN_ACC_ON_DEVICE): New builtins.
38731 * omp-low.c: Include "gomp-constants.h".
38732 Update comments for OpenACC changes.
38733 (struct omp_context): Add reduction_map, gwv_below, gwv_this
38735 (extract_omp_for_data, use_pointer_for_field, install_var_field)
38736 (new_omp_context, delete_omp_context, scan_sharing_clauses)
38737 (create_omp_child_function, scan_omp_for, scan_omp_target)
38738 (check_omp_nesting_restrictions, lower_reduction_clauses)
38739 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
38740 Update for OpenACC changes.
38741 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
38742 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
38743 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
38744 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38745 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
38746 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
38748 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
38749 Handle GF_OMP_FOR_KIND_OACC_LOOP.
38750 (expand_omp_target, lower_omp_target): Handle
38751 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38752 GF_OMP_TARGET_KIND_OACC_UPDATE,
38753 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
38754 GF_OMP_TARGET_KIND_OACC_DATA.
38755 (pass_expand_omp::execute, execute_lower_omp)
38756 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
38758 (offload_symbol_decl): New variable.
38759 (oacc_get_reduction_array_id, oacc_max_threads)
38760 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
38761 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
38762 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
38763 (oacc_gimple_assign, oacc_initialize_reduction_data)
38764 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
38766 (is_targetreg_ctx): Remove function.
38767 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
38768 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
38769 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38770 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
38771 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
38772 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
38773 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
38774 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
38775 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
38776 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
38777 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
38778 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
38779 * tree-core.h: Update comments for OpenACC changes.
38780 (enum omp_clause_map_kind): Remove.
38781 (struct tree_omp_clause): Change type of map_kind member from enum
38782 omp_clause_map_kind to unsigned char.
38783 * tree-inline.c: Update comments for OpenACC changes.
38784 * tree-nested.c: Likewise. Include "gomp-constants.h".
38785 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
38786 (convert_tramp_reference_stmt, convert_gimple_call): Update for
38787 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
38788 OMP_CLAUSE_SET_MAP_KIND.
38789 * tree-pretty-print.c: Include "gomp-constants.h".
38790 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
38791 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
38792 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
38793 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
38794 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38795 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
38796 instead of OMP_CLAUSE_MAP_*.
38797 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
38798 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
38799 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38800 * tree-streamer-in.c: Include "gomp-constants.h".
38801 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
38802 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
38803 * tree-streamer-out.c: Include "gomp-constants.h".
38804 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
38806 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
38807 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
38808 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
38809 * tree.c (omp_clause_num_ops): Update accordingly.
38810 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
38812 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
38813 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
38814 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
38815 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
38816 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
38817 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
38818 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
38819 (OMP_CLAUSE_SET_MAP_KIND): New macro.
38820 * varpool.c (varpool_node::get_create): Consider flag_openacc next
38822 * config/i386/intelmic-offload.h: New file.
38823 * config/nvptx/offload.h: Likewise.
38825 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38827 * explow.h: Remove duplicate contents.
38828 * dojump.h: Likewise.
38830 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
38832 * arm.c (arm_xgene_tune): Add default initializer for instruction
38835 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
38839 * ipa.c (symbol_table::remove_unreachable_nodes):
38840 Do not put abstract origins into boundary.
38842 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
38844 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
38845 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
38847 2015-01-15 Steve Ellcey <sellcey@mips.com>
38849 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
38850 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
38851 builtins.def, and chkp-builtins.def.
38853 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
38855 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
38858 2015-01-15 Richard Biener <rguenther@suse.de>
38860 PR tree-optimization/61743
38861 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
38862 information on PHIs for some simple cases.
38864 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38866 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
38868 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
38869 * config/arm/arm-cores.def (xgene1): New entry.
38870 * config/arm/arm-tables.opt: Regenerate.
38871 * config/arm/arm-tune.md: Regenerate.
38872 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
38874 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
38876 * tree-if-conv.c: Include hash-map.h.
38877 (aggressive_if_conv): New variable.
38878 (fold_build_cond_expr): Add simplification of non-zero condition.
38879 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
38880 destination block is not always executed.
38881 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
38882 than two predecessors if AGGRESSIVE_IF_CONV is true.
38883 (if_convertible_stmt_p): Fix commentary.
38884 (all_preds_critical_p): New function.
38885 (has_pred_critical_p): New function.
38886 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
38887 BB can have more than two predecessors and all incoming edges can be
38889 (predicate_bbs): Skip predication for loop exit block, use build2_loc
38890 to compute predicate for true edge.
38891 (find_phi_replacement_condition): Delete this function.
38892 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
38893 Allow interchange PHI arguments if EXTENDED is false.
38894 Change check that block containing reduction statement candidate
38895 is predecessor of phi-block since phi may have more than two arguments.
38896 (phi_args_hash_traits): New helper structure.
38897 (struct phi_args_hash_traits): New type.
38898 (phi_args_hash_traits::hash): New function.
38899 (phi_args_hash_traits::equal_keys): New function.
38900 (gen_phi_arg_condition): New function.
38901 (predicate_scalar_phi): Add handling of phi nodes with more than two
38902 arguments, delete COND and TRUE_BB arguments, insert body of
38903 find_phi_replacement_condition to predicate ordinary phi nodes.
38904 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
38905 delete call of find_phi_replacement_condition and invoke
38906 predicate_scalar_phi with two arguments.
38907 (insert_gimplified_predicates): Add assert that non-predicated block
38908 don't have statements to insert.
38909 (ifcvt_split_critical_edges): New function.
38910 (ifcvt_split_def_stmt): Likewise.
38911 (ifcvt_walk_pattern_tree): Likewise.
38912 (stmt_is_root_of_bool_pattern): Likewise.
38913 (ifcvt_repair_bool_pattern): Likewise.
38914 (ifcvt_local_dce): Likewise.
38915 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
38916 is copy of inner or outer loop force_vectorize field, invoke
38917 ifcvt_split_critical_edges, ifcvt_local_dce and
38918 ifcvt_repair_bool_pattern for aggressive if-conversion.
38920 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
38922 * config/aarch64/aarch64.md: Include xgene1.md.
38923 * config/aarch64/xgene1.md: New file.
38925 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38927 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
38928 xgene1 (APM XGene-1) core definition.
38929 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
38930 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
38931 * doc/invoke.texi: Document -mcpu=xgene1.
38933 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38935 * dojump.h: New header file.
38936 * explow.h: Likewise.
38937 * expr.h: Remove includes.
38938 Move expmed.c prototypes to expmed.h.
38939 Move dojump.c prototypes to dojump.h.
38940 Move alias.c prototypes to alias.h.
38941 Move explow.c prototypes to explow.h.
38942 Move calls.c prototypes to calls.h.
38943 Move emit-rtl.c prototypes to emit-rtl.h.
38944 Move varasm.c prototypes to varasm.h.
38945 Move stmt.c prototypes to stmt.h.
38946 (saved_pending_stack_adjust): Move to dojump.h.
38947 (adjust_address): Move to explow.h.
38948 (adjust_address_nv): Move to emit-rtl.h.
38949 (adjust_bitfield_address): Likewise.
38950 (adjust_bitfield_address_size): Likewise.
38951 (adjust_bitfield_address_nv): Likewise.
38952 (adjust_automodify_address_nv): Likewise.
38953 * explow.c (expr_size): Move to expr.c.
38954 (int_expr_size): Likewise.
38955 (tree_expr_size): Likewise.
38956 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38957 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
38958 * genemit.c (main): Generate includes statistics.h, real.h,
38959 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
38961 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
38962 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
38963 explow.h, emit-rtl.h, stmt.h.
38964 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
38965 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
38966 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
38967 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
38968 emit-rtl.h, varasm.h, stmt.h.
38969 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
38970 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
38971 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
38972 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
38973 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38974 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
38975 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
38976 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
38977 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
38978 tm.h tree.h varasm.h vec.h wide-int.h.
38979 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38980 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
38981 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
38982 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
38983 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
38984 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
38985 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
38986 * loop-iv.c: Likewise.
38987 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
38988 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
38989 statistics.h stmt.h tree.h varasm.h wide-int.h.
38990 * lra-constraints.c: Likewise.
38991 * lra-eliminations.c: Likewise.
38992 * lra-lives.c: Likewise.
38993 * lra-remat.c: Likewise.
38994 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38995 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
38996 statistics.h stmt.h tree.h varasm.h wide-int.h.
38997 * hw-doloop.c: Likewise.
38998 * ira-color.c: Likewise.
38999 * ira-emit.c: Likewise.
39000 * loop-doloop.c: Likewise.
39001 * loop-invariant.c: Likewise.
39002 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39003 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
39004 statistics.h stmt.h tree.h varasm.h wide-int.h.
39005 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
39006 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
39007 statistics.h stmt.h tree.h varasm.h wide-int.h.
39008 * combine-stack-adj.c: Likewise.
39011 * ifcvt.c: Likewise.
39012 * ira-costs.c: Likewise.
39013 * jump.c: Likewise.
39014 * lra-coalesce.c: Likewise.
39015 * lra-spills.c: Likewise.
39016 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39017 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
39018 stmt.h varasm.h wide-int.h.
39019 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39020 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39022 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
39023 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
39024 statistics.h stmt.h varasm.h wide-int.h.
39025 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
39026 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
39027 varasm.h wide-int.h.
39028 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
39029 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39030 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
39031 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
39032 statistics.h stmt.h.
39033 * config/tilepro/tilepro.c: Likewise.
39034 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
39035 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
39036 * config/pdp11/pdp11.c: Likewise.
39037 * config/xtensa/xtensa.c: Likewise.
39038 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
39039 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39041 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39042 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39043 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
39044 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39045 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39046 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
39047 * rtl-chkp.c: Likewise.
39048 * tree-chkp-opt.c: Likewise.
39049 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
39050 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39051 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
39052 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39053 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39054 statistics.h stmt.h.
39055 * tree-vect-data-refs.c: Likewise.
39056 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
39057 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39058 rtl.h statistics.h stmt.h varasm.h.
39059 * internal-fn.c: Likewise.
39060 * ipa-icf-gimple.c: Likewise.
39061 * lto-section-out.c: Likewise.
39062 * tree-data-ref.c: Likewise.
39063 * tree-nested.c: Likewise.
39064 * tree-outof-ssa.c: Likewise.
39065 * tree-predcom.c: Likewise.
39066 * tree-pretty-print.c: Likewise.
39067 * tree-scalar-evolution.c: Likewise.
39068 * tree-ssa-strlen.c: Likewise.
39069 * tree-vect-loop.c: Likewise.
39070 * tree-vect-patterns.c: Likewise.
39071 * tree-vect-slp.c: Likewise.
39072 * tree-vect-stmts.c: Likewise.
39073 * tsan.c: Likewise.
39074 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39075 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
39077 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
39078 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39079 statistics.h stmt.h varasm.h.
39080 * loop-unroll.c: Likewise.
39081 * ubsan.c: Likewise.
39082 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
39083 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
39085 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39086 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
39087 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
39088 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39089 statistics.h stmt.h.
39090 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
39091 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39092 statistics.h stmt.h varasm.h.
39093 * gimple-match-head.c: Likewise.
39094 * lto-cgraph.c: Likewise.
39095 * lto-section-in.c: Likewise.
39096 * lto-streamer-in.c: Likewise.
39097 * lto-streamer-out.c: Likewise.
39098 * tree-affine.c: Likewise.
39099 * tree-cfg.c: Likewise.
39100 * tree-cfgcleanup.c: Likewise.
39101 * tree-if-conv.c: Likewise.
39102 * tree-into-ssa.c: Likewise.
39103 * tree-ssa-alias.c: Likewise.
39104 * tree-ssa-copyrename.c: Likewise.
39105 * tree-ssa-dse.c: Likewise.
39106 * tree-ssa-forwprop.c: Likewise.
39107 * tree-ssa-live.c: Likewise.
39108 * tree-ssa-math-opts.c: Likewise.
39109 * tree-ssa-pre.c: Likewise.
39110 * tree-ssa-sccvn.c: Likewise.
39111 * tree-tailcall.c: Likewise.
39112 * tree-vect-generic.c: Likewise.
39113 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39114 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
39115 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39116 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
39117 * varasm.c: Likewise.
39118 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39119 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
39121 * init-regs.c: Likewise.
39123 * omp-low.c: Likewise.
39124 * stack-ptr-mod.c: Likewise.
39125 * tree-ssa-reassoc.c: Likewise.
39126 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39127 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
39129 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39130 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
39131 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39132 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
39133 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39134 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
39135 * tree-ssa-phiopt.c: Likewise.
39136 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39137 fixed-value.h hashtab.h real.h statistics.h stmt.h.
39138 * config/fr30/fr30.c: Likewise.
39139 * config/frv/frv.c: Likewise.
39140 * expr.c: Likewise.
39141 * final.c: Likewise.
39142 * optabs.c: Likewise.
39143 * passes.c: Likewise.
39144 * simplify-rtx.c: Likewise.
39145 * stmt.c: Likewise.
39146 * toplev.c: Likewise.
39147 * var-tracking.c: Likewise.
39148 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39149 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39150 * lower-subreg.c: Likewise.
39151 * postreload-gcse.c: Likewise.
39153 * reginfo.c: Likewise.
39154 * store-motion.c: Likewise.
39155 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39156 fixed-value.h hashtab.h real.h stmt.h varasm.h.
39157 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39158 fixed-value.h hashtab.h statistics.h stmt.h.
39159 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39160 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39161 * except.c: Likewise.
39162 * explow.c: Likewise.
39163 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39164 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
39166 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39167 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
39168 * tree-ssa-structalias.c: Likewise.
39169 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39170 fixed-value.h insn-config.h real.h statistics.h.
39171 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39172 fixed-value.h insn-config.h real.h statistics.h stmt.h.
39173 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39174 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39175 * cfgbuild.c: Likewise.
39176 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39177 fixed-value.h real.h rtl.h statistics.h stmt.h.
39178 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39179 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39180 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39181 fixed-value.h real.h statistics.h stmt.h.
39182 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39183 fixed-value.h real.h statistics.h stmt.h varasm.h.
39184 * cprop.c: Likewise.
39185 * modulo-sched.c: Likewise.
39186 * postreload.c: Likewise.
39187 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39188 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
39189 statistics.h stmt.h varasm.h.
39190 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
39191 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39192 rtl.h statistics.h stmt.h varasm.h.
39193 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
39194 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
39196 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39197 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
39199 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
39200 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
39202 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
39203 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39204 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39205 function.h real.h statistics.h stmt.h varasm.h.
39206 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39207 insn-config.h real.h statistics.h stmt.h.
39208 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39209 statistics.h stmt.h.
39210 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
39211 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
39212 statistics.h stmt.h varasm.h.
39213 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
39214 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
39215 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39216 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
39217 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
39218 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39219 statistics.h stmt.h varasm.h.
39220 * ipa-polymorphic-call.c: Likewise.
39221 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
39222 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39223 statistics.h stmt.h.
39224 * config/c6x/c6x.c: Likewise.
39225 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
39226 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39227 statistics.h stmt.h varasm.h.
39228 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
39229 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
39231 * ipa-split.c: Likewise.
39232 * tree-eh.c: Likewise.
39233 * tree-ssa-dce.c: Likewise.
39234 * tree-ssa-loop-niter.c: Likewise.
39235 * tree-vrp.c: Likewise.
39236 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
39237 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
39239 * config/nds32/nds32-fp-as-gp.c: Likewise.
39240 * config/nds32/nds32-intrinsic.c: Likewise.
39241 * config/nds32/nds32-isr.c: Likewise.
39242 * config/nds32/nds32-md-auxiliary.c: Likewise.
39243 * config/nds32/nds32-memory-manipulation.c: Likewise.
39244 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
39245 * config/nds32/nds32-predicates.c: Likewise.
39246 * config/nds32/nds32.c: Likewise.
39247 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
39248 fixed-value.h hashtab.h real.h statistics.h.
39249 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
39250 fixed-value.h hashtab.h real.h statistics.h stmt.h.
39251 * config/arm/arm.c: Likewise.
39252 * config/avr/avr.c: Likewise.
39253 * config/bfin/bfin.c: Likewise.
39254 * config/h8300/h8300.c: Likewise.
39255 * config/i386/i386.c: Likewise.
39256 * config/ia64/ia64.c: Likewise.
39257 * config/iq2000/iq2000.c: Likewise.
39258 * config/m32c/m32c.c: Likewise.
39259 * config/m32r/m32r.c: Likewise.
39260 * config/m68k/m68k.c: Likewise.
39261 * config/mcore/mcore.c: Likewise.
39262 * config/mep/mep.c: Likewise.
39263 * config/mips/mips.c: Likewise.
39264 * config/mn10300/mn10300.c: Likewise.
39265 * config/moxie/moxie.c: Likewise.
39266 * config/pa/pa.c: Likewise.
39267 * config/rl78/rl78.c: Likewise.
39268 * config/rx/rx.c: Likewise.
39269 * config/s390/s390.c: Likewise.
39270 * config/sh/sh.c: Likewise.
39271 * config/sparc/sparc.c: Likewise.
39272 * config/spu/spu.c: Likewise.
39273 * config/stormy16/stormy16.c: Likewise.
39274 * config/v850/v850.c: Likewise.
39275 * config/vax/vax.c: Likewise.
39276 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
39277 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39278 * config/msp430/msp430.c: Likewise.
39279 * predict.c: Likewise.
39280 * value-prof.c: Likewise.
39281 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
39282 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
39283 * config/microblaze/microblaze.c: Likewise.
39284 * config/nios2/nios2.c: Likewise.
39285 * config/rs6000/rs6000.c: Likewise.
39286 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39287 insn-config.h real.h rtl.h statistics.h stmt.h.
39288 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39289 insn-config.h real.h statistics.h stmt.h.
39290 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
39291 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39292 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
39293 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39294 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
39295 fixed-value.h real.h statistics.h stmt.h.
39296 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
39297 fixed-value.h statistics.h stmt.h.
39298 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
39301 2015-01-15 Jakub Jelinek <jakub@redhat.com>
39303 * gengtype.c (create_user_defined_type): Workaround
39304 -Wmaybe-uninitialized false positives.
39305 * cse.c (fold_rtx): Likewise.
39306 * loop-invariant.c (gain_for_invariant): Likewise.
39308 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
39310 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
39311 set the memory attributes in all cases but clear MEM_EXPR if need be.
39313 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
39315 PR tree-optimization/64434
39316 * cfgexpand.c (reorder_operands): New function.
39317 (expand_gimple_basic_block): Insert call of reorder_operands if
39320 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
39322 * config/mips/micromips.md (*swp): Remove explicit parallel.
39323 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
39324 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
39325 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
39326 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
39327 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
39328 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
39329 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
39330 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
39331 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
39332 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
39333 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
39334 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
39335 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
39336 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
39337 (mips_wrdsp): Likewise.
39338 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
39340 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
39341 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
39342 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
39343 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
39344 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
39345 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
39346 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
39347 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
39348 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
39350 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
39352 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
39353 (mips_print_operand): Support 'y' to print exact log2 in decimal
39355 * config/mips/mips.h (ISA_HAS_LSA): New define.
39356 (ISA_HAS_DLSA): Likewise.
39357 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
39358 * config/mips/predicates.md (const_immlsa_operand): New predicate.
39360 2015-01-15 Martin Liska <mliska@suse.cz>
39363 * optc-save-gen.awk: Add support for array types.
39365 2015-01-15 Richard Biener <rguenther@suse.de>
39367 PR middle-end/64365
39368 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
39369 for MEM_REF access functions with the same base can never partially
39372 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
39374 * common.opt: New option -fstack-protector-explicit.
39375 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
39376 (stack_protect_decl_phase): Handle stack_protect attribute for
39377 explicit stack protection requests.
39378 (expand_used_vars): Similarly.
39379 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
39380 * doc/extend.texi: Add documentation for "stack_protect" attribute.
39381 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
39383 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
39386 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
39388 (sh_extending_set_of_reg): New struct.
39389 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
39390 sh_remove_reg_dead_or_unused_notes): New Declarations.
39391 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
39392 sh_find_extending_set_of_reg, sh_split_tst_subregs,
39393 sh_extending_set_of_reg::use_as_extended_reg): New functions.
39394 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
39395 convert to insn_and_split and use new function sh_split_tst_subregs.
39397 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
39399 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
39401 (Optimization Options): Move -fuse-ld documentation to...
39402 (Link Options): ...here.
39404 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
39406 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
39408 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
39409 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
39410 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
39411 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
39412 instead of ZR for the memory operand of LL/SC.
39413 (compare_and_swap_12, sync_add<mode>): Likewise.
39414 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
39415 (sync_new_<optab>_12, sync_nand_12): Likewise.
39416 (sync_old_nand_12, sync_new_nand_12): Likewise.
39417 (sync_sub<mode>, sync_old_add<mode>): Likewise.
39418 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
39419 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
39420 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
39421 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
39422 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
39423 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
39424 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
39425 * doc/md.texi (ZC): Update description.
39427 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
39429 * builtins.c (expand_builtin_atomic_exchange): Remove error when
39430 memory model is CONSUME.
39431 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
39432 expand_builtin_atomic_store): Change invalid memory model errors to
39434 (expand_builtin_atomic_clear): Change invalid model errors to warnings
39435 and issue warning for CONSUME.
39437 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
39439 * lto-cgraph: Update function comments for
39440 lto_symtab_encoder_encode_*.
39442 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
39444 * Makefile.in (site.exp): Do not set ENABLE_LTO.
39446 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
39448 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
39449 * lto-cgraph.c (select_what_to_stream): Remove argument, use
39450 lto_stream_offload_p instead.
39451 * lto-streamer.h (select_what_to_stream): Remove argument.
39452 * passes.c (ipa_write_summaries): Likewise.
39453 * tree-pass.h (ipa_write_summaries): Likewise.
39455 2015-01-14 Richard Biener <rguenther@suse.de>
39457 PR tree-optimization/59354
39458 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
39459 groups larger than the slp group size as having gaps.
39461 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
39463 PR middle-end/59448
39464 * builtins.c (get_memmodel): Promote consume to acquire always.
39466 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39469 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
39472 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39475 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
39477 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
39478 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
39479 AVX512VBMI, as it implies AVX512BW.
39481 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39484 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
39485 (vec_unpacks_hi_v16sf): Ditto.
39487 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39489 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
39492 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39494 * doc/invoke.texi (mapcs): Mention deprecation.
39495 (mapcs-frame): Likewise.
39497 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
39500 * config/arm/arm.c (callee_saved_reg_p): Define.
39501 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
39502 register is callee saved instead of !call_used_regs[reg].
39503 (thumb1_compute_save_reg_mask): Likewise.
39505 2015-01-14 Hale Wang <hale.wang@arm.com>
39507 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
39510 2015-01-14 Richard Biener <rguenther@suse.de>
39513 * tree-inline.c (insert_debug_decl_map): Check destination
39514 function MAY_HAVE_DEBUG_STMTS.
39515 (insert_init_debug_bind): Likewise.
39516 (insert_init_stmt): Remove redundant check.
39517 (remap_gimple_stmt): Drop debug stmts if the destination
39518 function has var-tracking assignments disabled.
39520 2015-01-14 Martin Liska <mliska@suse.cz>
39522 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
39523 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
39525 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39528 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
39529 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
39531 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
39533 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
39534 level from an ARCH; do not inject the default.
39535 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
39536 MIPS_ISA_LEVEL_SPEC.
39537 (MIPS_ISA_NAN2008_SPEC): Update comment.
39538 (BASE_DRIVER_SELF_SPECS): Likewise.
39539 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
39540 MIPS_DEFAULT_ISA_LEVEL_SPEC.
39541 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
39542 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
39543 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
39545 2015-01-14 Richard Biener <rguenther@suse.de>
39547 PR tree-optimization/64493
39548 PR tree-optimization/64495
39549 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
39550 assign the proper vectorized PHI to the inner loop exit PHIs.
39552 2015-01-14 Joey Ye <joey.ye@arm.com>
39554 * config/arm/arm.c (arm_compute_save_reg_mask):
39555 Do not save lr in case of tail call.
39556 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
39558 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
39560 * tree-vrp.c (check_array_ref): Emit more warnings
39561 for warn_array_bounds >= 2.
39562 * common.opt: New option -Warray-bounds=.
39563 * doc/invoke.texi: Document -Warray-bounds=.
39565 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
39567 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
39568 (mforbid-fp-as-gp): Remove.
39570 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
39571 (nds32_symbol_load_store_p): Remove.
39572 (nds32_fp_as_gp_check_available): Clean up implementation.
39573 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
39575 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
39576 fp-as-gp and ex9 cases.
39578 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
39580 * tree-profile.c (init_ic_make_global_vars): Drop workaround
39581 for bintuils bug 14342.
39582 (init_ic_make_global_vars): Likewise.
39583 (gimple_init_edge_profiler): Likewise.
39584 (gimple_gen_ic_func_profiler): Likewise.
39586 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39588 * ipa-inline.c (inline_small_functions): Swap the operands in
39591 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
39594 * ipa-inline-analysis.c (node_growth_cache): Remove.
39595 (initialize_growth_caches): Do not initialize it.
39596 (free_growth_caches): Do not free it.
39597 (do_estimate_growth): Rename to ...
39598 (estimate_growth): ... this one; drop growth cache code.
39599 (growth_likely_positive): Always go the heuristics way.
39600 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
39601 (reset_edge_caches): Do not reset node growth.
39602 (heap_edge_removal_hook): Do not maintain cache.
39603 (inline_small_functions): Likewise; strenghten sanity check.
39604 (ipa_inline): Do not maintain caches.
39605 * ipa-inline.h (node_growth_cache): Remove.
39606 (do_estimate_growth): Remove to ...
39607 (estimate_growth): this one; remove inline version.
39608 (reset_node_growth_cache): Remove.
39610 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
39613 * ipa-inline.c (inline_small_functions): Update callee keys after
39614 resolving speculation
39615 (inline_small_functions): Always check monotonicity of the queue.
39617 2015-01-13 Marek Polacek <polacek@redhat.com>
39619 PR middle-end/64391
39620 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
39622 2015-01-13 Jakub Jelinek <jakub@redhat.com>
39624 PR rtl-optimization/64286
39625 * ree.c (combine_reaching_defs): Move part of comment earlier,
39626 remove !SCALAR_INT_MODE_P check.
39627 (add_removable_extension): Don't add vector mode
39628 extensions if all uses of the source register aren't the same
39631 2015-01-13 Renlin Li <renlin.li@arm.com>
39633 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
39634 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
39636 2015-01-13 Martin Liska <mliska@suse.cz>
39638 * ipa-icf.c (sem_function::equals_private): Call new functions
39639 cl_target_option_print_diff and cl_optimization_print_diff.
39640 * optc-save-gen.awk (cl_target_option_print_diff): New function.
39641 (cl_optimization_print_diff): Likewise.
39642 * opth-gen.awk: Likewise.
39644 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
39646 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
39647 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
39648 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
39649 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
39650 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
39651 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
39653 2015-01-13 Andrew Pinski <apinski@cavium.com>
39655 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
39656 instead of src mode.
39658 2015-01-13 Richard Biener <rguenther@suse.de>
39661 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
39664 2015-01-13 Andrew Pinski <apinski@cavium.com>
39666 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
39668 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
39670 2015-01-13 Jakub Jelinek <jakub@redhat.com>
39672 PR middle-end/63974
39673 * cfgexpand.c (expand_computed_goto): Don't call
39674 convert_memory_address here.
39676 2015-01-13 Richard Biener <rguenther@suse.de>
39678 PR tree-optimization/64406
39679 * tree-loop-distibution.c (pass_loop_distribution::execute):
39680 Reset the SCEV hashtable if we distributed anything.
39682 2015-01-13 Richard Biener <rguenther@suse.de>
39684 PR tree-optimization/64404
39685 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
39686 SLP types for CSEd loads.
39688 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
39690 PR tree-optimization/64436
39691 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
39692 merge of two symbolic numbers for a bitwise OR to ...
39693 (perform_symbolic_merge): This. Also fix computation of the range and
39694 end of the symbolic number corresponding to the result of a bitwise OR.
39696 2015-01-13 Richard Biener <rguenther@suse.de>
39698 PR tree-optimization/64568
39699 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
39700 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
39702 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39704 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
39705 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
39707 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39709 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
39710 target-specific symbol_ref flag.
39711 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
39712 resides in rodata section.
39713 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
39714 (nds32_encode_section_info): New function.
39716 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39718 * config/nds32/nds32.md (call): Use pseudo instruction bal which
39719 clobbers TA_REGNUM if large code model is specified.
39720 (call_register): Likewise.
39721 (call_immediate): Likewise.
39722 (call_value): Likewise.
39723 (call_value_register): Likewise.
39724 (call_value_immediate): Likewise.
39726 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39728 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
39729 (TARGET_CMODEL_MEDIUM): New macro.
39730 (TARGET_CMODEL_LARGE): New macro.
39731 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
39732 code model setting in assembly code.
39734 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39736 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
39737 Remove MASK_GP_DIRECT flag.
39738 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
39739 one of the multilib default options.
39740 * config/nds32/nds32.opt (mgp-direct): Remove.
39741 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
39742 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
39744 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39746 * config/nds32/nds32.opt (mcmodel): Add new option.
39747 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
39748 to describe code model.
39750 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
39753 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
39755 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
39757 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
39758 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
39759 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
39760 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
39761 __builtin_sh_set_fpscr.
39763 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
39765 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
39766 after a funtion name just to indicate it is a function.
39767 ([-fsanitize-undefined-trap-on-error]): Likewise.
39768 ([-fdbg-cnt=]): Likewise.
39769 ([-mmemcpy]): Likewise.
39770 ([-mflush-func]): Likewise.
39771 ([-msynci]): Likewise.
39773 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
39775 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
39778 2015-01-12 Jakub Jelinek <jakub@redhat.com>
39780 PR tree-optimization/64563
39781 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
39782 instead of != VR_VARYING.
39785 * config/i386/i386.c (ix86_expand_prologue): Add
39786 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
39788 PR tree-optimization/64454
39789 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
39790 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
39791 for signed or [0, op1 - 1] for unsigned modulo.
39792 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
39793 even if op1 does not satisfy integer_pow2p.
39796 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
39798 2015-01-12 Jeff Law <law@redhat.com>
39801 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
39802 (trunchiqi2, truncsihi2): Similarly.
39804 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
39805 rather than calling F.
39807 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
39809 * tsan.c (instrument_expr): Use force_gimple_operand.
39810 Use may_be_nonaddressable_p instead of is_gimple_addressable.
39812 2015-01-12 Richard Biener <rguenther@suse.de>
39814 PR tree-optimization/64530
39815 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
39818 2015-01-12 Richard Biener <rguenther@suse.de>
39820 PR middle-end/64357
39821 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
39824 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39826 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
39827 Cortex-A17 tuning parameters.
39828 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
39830 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39832 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
39833 * config/arm/arm.c (arm_macro_fusion_p): New function.
39834 (arm_macro_fusion_pair_p): Likewise.
39835 (TARGET_SCHED_MACRO_FUSION_P): Define.
39836 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
39837 (ARM_FUSE_NOTHING): Likewise.
39838 (ARM_FUSE_MOVW_MOVT): Likewise.
39839 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
39840 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
39841 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
39842 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
39843 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
39844 arm_cortex_a5_tune): Specify fuseable_ops value.
39846 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
39849 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
39850 test for PIE with copy reloc.
39851 * configure: Regenerated.
39853 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39855 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
39857 (arm_tls_descseq_addr): Likewise.
39858 (arm_gen_movmemqi): Likewise.
39859 (arm_expand_epilogue_apcs_frame): Likewise.
39860 (arm_expand_epilogue): Likewise.
39861 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
39864 2015-01-12 Martin Liska <mliska@suse.cz>
39867 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
39868 volatility for correct operands.
39870 2015-01-12 Martin Liska <mliska@suse.cz>
39872 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
39873 indication that a function is not leaf.
39874 (sem_function::compare_polymorphic_p): Likewise.
39876 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39878 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
39879 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
39880 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
39881 fold-const.h, tree-check.h.
39883 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
39887 * ipa-inline.c (compute_uninlined_call_time,
39888 compute_inlined_call_time): Use counts for extra precision when
39890 (big_speedup_p): Fix formating.
39891 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
39892 (relative_time_benefit): Remove.
39893 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
39894 merge guessed and read profile paths.
39895 (inline_small_functions): Count only !optimize_size functions into
39896 initial size; be more lax about sanity check when profile is used;
39897 be sure to update inlined function profile when profile is read.
39899 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
39902 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
39903 cost when edge becomes direct.
39904 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
39905 is resolved or when introducing new speculation.
39907 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
39911 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
39912 '||' to fix typo issue.
39914 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
39915 accept and return NULL.
39917 2015-01-12 Martin Liska <mliska@suse.cz>
39919 * cgraph.c (cgraph_edge::remove_callee): Move function to header
39920 file for being inlined.
39921 (cgraph_set_edge_callee): Delete.
39922 (cgraph_edge::redirect_callee): Move function to header file
39924 (cgraph_edge::make_direct): Use new function.
39925 (cgraph_edge::dump_edge_flags): New function created from
39926 static dump_edge_flags function.
39927 (cgraph_node::dump): Use new function.
39928 (cgraph_edge::verify_count_and_frequency): New function created
39929 from verify_edge_count_and_frequency.
39930 (cgraph_edge::verify_corresponds_to_fndecl): New function created
39931 from verify_edge_corresponds_to_fndecl.
39932 (verify_edge_corresponds_to_fndecl): Delete.
39933 (cgraph_node::verify_node): Use new function.
39934 * cgraph.h (cgraph_edge::set_callee): New function.
39935 (cgraph_edge::dump_edge_flags): Likewise.
39936 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
39938 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
39940 * ipa-utils.c (estimate_function_body_sizes): Do not
39941 free node params when called late with early=true.
39943 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
39945 * doc/md.texi (Instruction Patterns): Rewrite text for
39947 (Example): Likewise.
39949 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
39951 * doc/invoke.texi (Option Summary): Break long lines.
39952 [(-fdiagnostics-color)]: Put long literal in @smallexample
39954 [(-fsanitize-recover)]: Likewise.
39955 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
39956 [(-ffast-math)]: Likewise.
39957 [(--param max-inline-insns-recursive)]: Likewise.
39958 [(--param max-inline-recursive-depth)]: Likewise.
39959 [(-mno-text-section-literals)]: Likewise.
39961 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
39963 * doc/install.texi: Update for libgomp being renamed from "GNU
39964 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
39966 * doc/sourcebuild.texi: Likewise.
39968 2015-01-10 Anthony Green <green@moxielogic.com>
39970 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
39971 mul.x availability for moxiebox configuration.
39973 2015-01-09 Anthony Green <green@moxielogic.com>
39975 * config/moxie/moxie.md: Tabify assembly output.
39977 2015-01-09 Anthony Green <green@moxielogic.com>
39979 * config/moxie/moxie.md (CC_REG): Correct register definition.
39981 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
39983 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
39984 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
39987 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
39989 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
39991 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
39992 Jakub Jelinek <jakub@redhat.com>
39994 PR middle-end/64412
39995 * lto-streamer.h (lto_stream_offload_p): New declaration.
39996 * lto-streamer.c (lto_stream_offload_p): New variable.
39997 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
39998 at the same time as section_name_prefix.
39999 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
40000 if lto_stream_offload_p.
40001 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
40002 stream TREE_TARGET_OPTION if lto_stream_offload_p.
40003 (write_ts_function_decl_tree_pointers): Don't
40004 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
40005 * tree-streamer-in.c (unpack_value_fields): Don't stream
40006 TREE_TARGET_OPTION in if ACCEL_COMPILER.
40007 (lto_input_ts_function_decl_tree_pointers): Don't stream
40008 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
40009 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
40010 instead of section_name_prefix string comparisons.
40012 2015-01-09 Jakub Jelinek <jakub@redhat.com>
40014 PR rtl-optimization/64536
40015 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
40018 2015-01-09 Michael Collison <michael.collison@linaro.org>
40020 PR tree-optimization/64322
40021 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
40022 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
40024 2015-01-09 Tom de Vries <tom@codesourcery.com>
40026 PR rtl-optimization/64539
40027 * regcprop.c (kill_clobbered_values): Factor out of ...
40028 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
40029 instead of note_stores with kill_clobbered_value.
40031 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40033 * ginclude/unwind-arm-common.h: Revert previous commit.
40035 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40037 * config.gcc (arm*-*-freebsd*): New configuration.
40038 * config/arm/freebsd.h: New file.
40039 * config.host: Add extra components for arm*-*-freebsd*.
40040 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
40041 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
40043 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40045 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
40047 * config/rs6000/t-rtems: Add e6500 multilibs.
40049 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40051 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
40054 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40056 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
40057 MULTILIB_EXCEPTIONS.
40059 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40061 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
40062 MULTILIB_EXCEPTIONS.
40064 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40066 * config/arm/t-rtems-eabi: Rename to...
40067 * config/arm/t-rtems: ...this.
40068 * config/arm/rtems-eabi.h: Rename to...
40069 * config/arm/rtems.h: ...this.
40070 * config.gcc (arm*-*-rtems*): Reflect changes above.
40072 2015-01-09 Richard Biener <rguenther@suse.de>
40074 PR tree-optimization/64410
40075 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
40077 (execute_update_addresses_taken): Deal with that.
40078 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
40079 loads/stores for complex variables.
40081 2015-01-09 Martin Liska <mliska@suse.cz>
40083 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
40085 (func_checker::compare_memory_operand): New function.
40086 (func_checker::compare_operand): Split case to newly
40088 (func_checker::compare_cst_or_decl): New function.
40089 (func_checker::compare_gimple_call): Identify
40091 (func_checker::compare_gimple_assign): Likewise.
40092 * ipa-icf-gimple.h: New function.
40094 2015-01-09 Martin Liska <mliska@suse.cz>
40097 * sreal.c (sreal::dump): Change unsigned format to signed for
40099 (sreal::to_double): Replace exp2 with scalbln.
40101 2015-01-09 Martin Liska <mliska@suse.cz>
40103 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
40104 * ipa-icf.c (sem_function::equals_private): Add support for target and
40105 (sem_item_optimizer::merge_classes): Remove redundant function
40106 optimization flags comparison.
40107 * tree.h (target_opts_for_fn): New function.
40109 2015-01-09 Tom de Vries <tom@codesourcery.com>
40111 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
40113 2015-01-09 Kito Cheng <kito@0xlab.org>
40115 PR rtl-optimization/64348
40116 * lra-constraints.c (split_reg): Fix caller-save store/restore
40117 instruction generation.
40119 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
40121 PR gcov-profile/61790
40122 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
40123 long long. Fallback to int64_t if host doesn't have long long and
40124 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
40126 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40128 PR tree-optimization/63989
40129 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
40130 from 1000 to 10000.
40131 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
40132 (get_stridx): If we don't have a record for certain SSA_NAME,
40133 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
40134 constant offset, call get_stridx_plus_constant.
40135 (get_stridx_plus_constant): New function.
40136 (zero_length_string): Don't use get_stridx here.
40139 PR middle-end/64388
40140 * dse.c (struct insn_info): Mention frame_read set also
40141 before reload for tail calls on some targets.
40142 (scan_insn): Revert 2014-12-22 change. Set frame_read
40143 also before reload for tail calls if
40144 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
40145 instead of add_non_frame_wild_read for non-const/memset
40146 tail calls after reload.
40148 2015-01-08 Jason Merrill <jason@redhat.com>
40150 * ubsan.c (do_ubsan_in_current_function): New.
40151 (pass_ubsan::gate): Use it.
40152 * ubsan.h: Declare it.
40153 * convert.c (convert_to_integer): Use it.
40155 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40158 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
40159 compare_code when it is unconditionally overwritten afterwards.
40160 Use ix86_reverse_condition instead of reverse_condition. Don't
40161 change code if *reverse_condition* returned UNKNOWN and don't
40162 swap ct/cf and negate diff in that case.
40164 2015-01-08 Mike Stump <mikestump@comcast.net>
40166 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
40167 (pass_tsan_O0::gate): Likewise.
40168 * extend.texi (Function Attributes): Add no_sanitize_thread
40171 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
40173 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
40174 for registering builtins.
40175 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
40176 add -fopenmp to the argv_obstack used when invoking
40177 compile_for_target.
40179 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
40180 add "-m32" or "-m64" to argv_obstack.
40181 (generate_host_descr_file): Likewise, when invoking host_compiler.
40182 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
40185 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
40187 * config/sh/sh-mem.cc: Use constant as second operand when emitting
40190 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
40193 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
40194 constant load if constant operand fits into I08.
40196 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40199 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
40200 and TREE_THIS_VOLATILE for MEM_REFs.
40201 (build5_stat): Fix up initialization of TREE_READONLY and
40202 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
40204 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
40207 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
40208 of r for the second alternative of the destination operand.
40210 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
40213 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
40215 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
40217 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
40219 ([-fivar-visibility], [-fvisibility]): Likewise.
40221 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
40223 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
40224 the file where @code, @command, etc is more appropriate.
40226 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
40228 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
40229 of -mrecip= documentation.
40231 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
40234 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
40235 correct reload handler if -m32 -mpowerpc64 is used.
40237 2015-01-06 Tom de Vries <tom@codesourcery.com>
40239 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
40241 2015-01-08 Christian Bruel <christian.bruel@st.com>
40244 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
40246 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
40248 PR tree-optimization/63259
40249 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
40250 if optab exists for 16bit byteswap.
40252 2015-01-06 Jakub Jelinek <jakub@redhat.com>
40254 * opts.c (common_handle_option): Add support for
40255 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
40256 * doc/invoke.texi: Document -fno-sanitize=all,
40257 -f{,no-}sanitize-recover=all. Document that
40258 -fsanitize=float-cast-overflow is not enabled
40259 by -fsanitize=undefined. Fix up documentation
40260 of -f{,no-}sanitize-recover.
40262 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
40264 * config.gcc: Add Visium support.
40265 * configure.ac: Likewise.
40266 * configure: Regenerate.
40267 * doc/extend.texi (interrupt attribute): Add Visium.
40268 * doc/invoke.texi: Document Visium options.
40269 * doc/install.texi: Document Visium target.
40270 * doc/md.texi: Document Visium constraints.
40271 * common/config/visium: New directory.
40272 * config/visium: Likewise.
40274 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
40276 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
40277 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
40279 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
40281 * combine.c (combine_validate_cost): Do not count the cost of a
40282 split I2 twice. Do not display it twice in the dump, either.
40284 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
40286 Revert parts of r219199.
40287 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
40289 ([-Wtraditional]): Restore markup on <limits.h>.
40291 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
40294 * doc/invoke.texi: Document -Wsuggest-override.
40296 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
40298 PR rtl-optimization/64287
40299 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
40300 (process_options): Disable flag_ipa_ra if profiling.
40302 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
40304 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
40306 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
40308 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
40309 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
40310 put under #if TARGET_LOOPS guard.
40312 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
40314 * config/i386/i386.c (output_387_binary_op): Use std::swap.
40316 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
40318 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
40319 * rtl.h (refers_to_regno_p): Add overload.
40321 * bt-load.c: Likewise.
40322 * combine.c: Likewise.
40323 * df-scan.c: Likewise.
40324 * sched-deps.c: Likewise.
40325 * config/s390/s390.c: Likewise.
40326 * config/m32r/m32r.c: Likewise.
40327 * config/rs6000/spe.md: Likewise.
40328 * config/rs6000/rs6000.c: Likewise.
40329 * config/pa/pa.c: Likewise.
40330 * config/stormy16/stormy16.c: Likewise.
40331 * config/cris/cris.c: Likewise.
40332 * config/arc/arc.md: Likewise.
40333 * config/arc/arc.c: Likewise.
40334 * config/sh/sh.md: Likewise.
40335 * config/sh/sh.c: Likewise.
40336 * config/frv/frv.c: Likewise.
40338 2015-01-05 Jakub Jelinek <jakub@redhat.com>
40341 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
40342 call as cleanup of the whole body.
40343 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
40344 * tsan.c (replace_func_exit): New function.
40345 (instrument_func_exit): Moved earlier.
40346 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
40347 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
40349 (tsan_pass): Don't call instrument_func_exit.
40350 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
40351 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
40355 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
40356 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
40357 it to libubsan handler instead of EXPR. Fold comparisons earlier,
40358 if the result is integer_zerop, return NULL_TREE.
40359 * convert.c (convert_to_integer): Pass expr as ARG.
40361 PR tree-optimization/64465
40362 * tree-inline.c (redirect_all_calls): During inlining
40363 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
40364 changed the stmt to a non-throwing call.
40366 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
40368 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
40369 etc markup throughout the file.
40371 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
40373 Enable experimental TSAN support for Ada.
40374 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
40376 2015-01-05 Jakub Jelinek <jakub@redhat.com>
40378 PR tree-optimization/64494
40379 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
40380 clear SSA_NAME_ANTI_RANGE_P flag.
40382 2015-01-05 Marek Polacek <polacek@redhat.com>
40384 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
40386 2015-01-05 Jakub Jelinek <jakub@redhat.com>
40388 Update copyright years.
40390 * gcc.c (process_command): Update copyright notice dates.
40391 * gcov-dump.c: Ditto.
40393 * doc/cpp.texi: Bump @copying's copyright year.
40394 * doc/cppinternals.texi: Ditto.
40395 * doc/gcc.texi: Ditto.
40396 * doc/gccint.texi: Ditto.
40397 * doc/gcov.texi: Ditto.
40398 * doc/install.texi: Ditto.
40399 * doc/invoke.texi: Ditto.
40401 * auto-profile.c, auto-profile.h: Fix up Copyright line.
40403 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
40405 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
40407 ([-fvtable-verify], [-fvtv-debug]): Likewise.
40408 ([-Wabi]): Likewise.
40409 ([-fmessage-length]): Likewise.
40410 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
40411 ([-Wno-discarded-qualifiers]): Likewise.
40412 ([-Wnodiscarded-array-qualifiers]): Likewise.
40413 ([-Wno-virtual-move-assign]): Likewise.
40414 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
40415 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
40416 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
40417 ([-fsanitize-undefined-trap-on-error]): Likewise.
40418 ([-floop-interchange]): Likewise.
40419 ([-ftree-coalesce-inlined-vars]): Likewise.
40420 ([-fvect-cost-model]): Likewise.
40421 ([-flto]): Likewise.
40422 ([--param]): Likewise.
40423 (Spec Files): Likewise.
40424 ([-mstrict-align]): Likewise.
40425 ([-mfix-cortex-a53-835769]): Likewise.
40426 ([-march], [-mtune]): Likewise.
40427 ([-mpic-register]): Likewise.
40428 ([-munaligned-access]): Likewise.
40429 ([-msp8]): Likewise.
40430 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
40431 (AVR Built-in Macros): Likewise.
40432 ([-mpreferred-stack-boundary]): Likewise.
40433 ([-mtune-crtl]): Likewise.
40434 ([-mashf]): Likewise.
40435 ([-mmcu=]): Likewise.
40436 ([-minrt]): Likewise.
40437 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
40438 ([-mupper-regs]): Likewise.
40439 ([-matomic-model]): Likewise.
40440 ([-mdiv]): Likewise.
40441 ([-mzdcbranch]): Likewise.
40442 ([-mdisable-callt]): Likewise.
40443 ([-msoft-float]): Likewise.
40444 ([-m8byte-align]): Likewise.
40445 ([-fstack-reuse]): Likewise.
40447 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40449 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
40450 Fix markup, light copy-editing.
40451 ([-fauto-profile]): Rewrite to fix formatting and content
40454 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40456 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
40457 Copy-edit description.
40458 ([-fisolate-erroneous-paths-attribute]): Likewise.
40459 * common.opt (fisolate-erroneous-paths-dereference):
40460 Copy-edit description.
40461 (fisolate-erroneous-paths-attribute): Likewise.
40463 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40465 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
40468 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40470 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
40471 ([-fvtv-debug]): Likewise.
40472 ([-Wc++-compat]): Likewise.
40473 ([-Wc++11-compat]): Likewise.
40474 ([-Wc++14-compat]): Likewise.
40475 ([-Wno-sized-deallocation]): Likewise.
40476 ([-femit-class-debug-always]): Likewise.
40477 ([-femit-struct-debug-detailed]): Likewise.
40478 ([-fno-keep-inline-dllexport]): Likewise.
40479 ([-fira-algorithm]): Likewise.
40480 ([-fira-region]): Likewise.
40481 ([-flra-remat]): Likewise.
40482 ([-fipa-ra]): Likewise.
40483 ([-fhoist-adjacent-loads]): Likewise.
40484 ([-fisolate-erroneous-paths-dereference]): Likewise.
40485 ([-fisolate-erroneous-paths-attribute]): Likewise.
40486 ([-ftree-switch-conversion]): Likewise.
40487 ([-ftree-tail-merge]): Likewise.
40488 ([-ftree-loop-if-convert]): Likewise.
40489 ([-ftree-loop-if-convert-stores]): Likewise.
40490 ([-ftree-loop-distribution]): Likewise.
40491 ([-ftree-loop-distribute-patterns]): Likewise.
40492 ([-flto-compression-level]): Likewise.
40493 ([-flto-report]): Likewise.
40494 ([-flto-report-wpa]): Likewise.
40495 ([-fuse-linker-plugin]): Likewise.
40496 ([-mfix-cortex-a53-835769]): Likewise.
40497 ([-mno-fix-cortex-a53-835769]): Likewise.
40498 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
40499 explicit listing; add a note to the discussion indicating they
40500 exist. Reorder table to group similar options. Add missing
40501 @opindex entries. Add @need commands throughout the table to
40502 allow it to be split across multiple pages.
40503 ([-m8bit-idiv]): Fix @opindex.
40504 ([-mavx256-split-unaligned-load]): Likewise.
40505 ([-mavx256-split-unaligned-store]): Likewise.
40506 ([-mstack-protector-guard]): Likewise.
40507 ([-mcpu=]): Likewise.
40508 ([-mcpu]): Likewise.
40509 ([-mpointer-size=]): Likewise.
40511 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
40513 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
40514 instead of `m' constraint. Likewise for unnamed movb comparison
40515 patterns using reg_before_reload_operand predicate.
40516 * config/pa/predicates.md (reg_before_reload_operand): Tighten
40517 predicate to reject register index and LO_SUM DLT memory forms
40520 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
40522 * doc/invoke.texi (Option Summary): Fix spelling of
40523 -fdevirtualize-at-ltrans.
40524 ([-fdevirtualize]): Fix markup.
40525 ([-fdevirtualize-speculatively]): Fix typo.
40526 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
40527 implementor-speaky.
40528 * common.opt (fdevirtualize-at-ltrans): Likewise.
40529 * ipa-devirt.c: Fix typos in comments throughout the file.
40530 (ipa_devirt): Fix typos in format strings for dump output.
40532 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
40534 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
40535 discussion of defaults, light copy-editing.
40537 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
40539 * tsan.c (instrument_expr): corrected previous checkin.
40541 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
40543 Instrument bit field and unaligned accesses for TSAN.
40544 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
40545 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
40546 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
40547 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
40548 unaligned memory regions.
40550 2015-01-01 Anthony Green <green@moxielogic.com>
40552 * config/moxie/predicates.md (moxie_general_movsrc_operand):
40553 Restrict move source register offsets to 16 bits.
40555 Copyright (C) 2015 Free Software Foundation, Inc.
40557 Copying and distribution of this file, with or without modification,
40558 are permitted in any medium without royalty provided the copyright
40559 notice and this notice are preserved.