* tree.c (free_node): New function.
[official-gcc.git] / gcc / ChangeLog
blobd4db20a700e2041ceb9dead7bf6740bac13a2683
1 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
3         * tree.c (free_node): New function.
4         (type_hash_canon): Use it.
5         * tree.h (free_node): Declare.
7 2015-11-24  David Edelsohn  <dje.gcc@gmail.com>
8             Michael Meissner  <meissner@linux.vnet.ibm.com>
10         * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
11         (Fv2): New mode attribute to be used when ISA 2.07 instructions
12         are used on SF values, and ISA 2.06 instructions on DF values.
13         (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
14         (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
15         (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
16         (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
17         (sqrt<mode>2): Use <Fv2> instead of <Fv>.
18         (fre<Fs>): Use <Fv2> instead of <Fv>.
19         (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
20         (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
21         (xsrdpi<mode>): Add support for the lround function.
22         (lround<mode>di2): Likewise.
23         (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
24         (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
25         (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
26         (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
28 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
29             Sebastian Pop  <s.pop@samsung.com>
31         PR tree-optimization/67984
32         * graphite-isl-ast-to-gimple.c (is_constant): New.
33         (get_rename): Call is_constant.
34         (get_new_name): Same.
36 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
37             Sebastian Pop  <s.pop@samsung.com>
39         * graphite-dependences.c: Only include graphite.h.
40         * graphite-isl-ast-to-gimple.c: Same.
41         * graphite-optimize-isl.c: Same.
42         * graphite-poly.c: Same.
43         * graphite-scop-detection.c: Same.
44         * graphite-sese-to-poly.c: Same.
45         * graphite.c: Same.
46         * graphite-isl-ast-to-gimple.h: Move to graphite.h.
47         * graphite-poly.h: Same.
48         * graphite-scop-detection.h: Same.
49         * graphite.h: New.
51 2015-11-24  Pierre-Marie de Rodat  <derodat@adacore.com>
53         * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
54         DW_TAG_namespace for IMPORTED_DECL declarations.  Call
55         dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
56         function already takes care of checking what it can emit.
58 2015-11-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
60         * doc/invoke.texi (-fpic): Add the AArch64 limit.
61         (-fPIC): Add AArch64.
63 2015-11-24  Tom de Vries  <tom@codesourcery.com>
65         * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
66         (pass_lim::execute): Allow to run outside pass_tree_loop.
68 2015-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
70         * gcc/config/aarch64/aarch64.md (add<mode>3):
71         Block early expansion into 2 add instructions.
72         (add<mode>3_pluslong): New pattern to combine complex
73         immediates into 2 additions.
75 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
77         PR target/66217
78         PR target/67677
79         PR target/68332
80         * config/rs6000/predicates.md (and_operand): Check that the operand
81         is a const_int before calling rs6000_is_valid_and_mask.
83 2015-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
85         * config/aarch64/aarch64.md (*condjump): Rename to...
86         (condjump): ... This.
87         (*compare_condjump<mode>): New define_insn_and_split.
88         (*compare_cstore<mode>_insn): Likewise.
89         (*cstore<mode>_insn): Rename to...
90         (cstore<mode>_insn): ... This.
91         * config/aarch64/iterators.md (CMP): Handle ne code.
92         * config/aarch64/predicates.md (aarch64_imm24): New predicate.
94 2015-11-24  Mikhail Maltsev  <maltsevm@gmail.com>
96         PR target/68497
97         * config/i386/i386.c (output_387_binary_op): Fix assertion for
98         -fno-checking case.
100 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
102         * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
103         (val_ssa_equiv_hash_traits::remove): Likewise.
104         (pass_uncprop::execute): Adjust.
106 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
108         * hash-map-traits.h (simple_hashmap_traits ::remove): call
109         destructors on values that are being removed.
110         * mem-stats.h (hash_map): Pass type of values to
111         simple_hashmap_traits.
112         * tree-sra.c (sra_deinitialize): Remove work around for hash
113         maps not destructing values.
114         * genmatch.c (sinfo_hashmap_traits): Adjust.
115         * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
117 2015-11-24  Richard Biener  <rguenther@suse.de>
118             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
120         PR middle-end/68375
121         * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
122         bogus assertion.
124 2015-11-24  Jakub Jelinek  <jakub@redhat.com>
126         PR target/68483
127         * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
128         is valid vec_shr pattern, don't lower it even if can_vec_perm_p
129         returns false.
130         * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
131         whenever first is nelt or above.  Don't mask expected with
132         2 * nelt - 1.
134 2015-11-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
136         PR c/68337
137         * gimple-fold.c: Include ipa-chkp.h.
138         (gimple_fold_builtin_memory_op): Don't fold call if we
139         are going to instrument it and it may copy pointers.
141 2015-11-24  Bernd Schmidt <bschmidt@redhat.com>
142             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
144         PR rtl-optimization/68194
145         PR rtl-optimization/68328
146         PR rtl-optimization/68185
147         * ree.c (combine_reaching_defs): Reject copy_needed case if
148         copies_list is not empty.
150 2015-11-24  Richard Biener  <rguenther@suse.de>
152         PR middle-end/68221
153         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
154         use mem_ref_offset.
156 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
158         PR rtl-optimization/68381
159         * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
160         is poisoned.
162 2015-11-23  Nick Clifton  <nickc@redhat.com>
163             Jeff Law  <law@redhat.com>
165         * ree.c (add_removable_extension): Avoid mis-optimizing cases where
166         the source/dest of the target extension require a different number of
167         hard registers.
168         (combine_set_extension): Remove #if 0 code.
170 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
171             Sebastian Pop  <s.pop@samsung.com>
173         PR tree-optimization/68314
174         * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
175         * graphite-poly.c (new_scop): Remove original_schedule.
176         (free_scop): Same.
177         * graphite-poly.h (struct scop): Same.
178         * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
179         (build_pbb_scattering_polyhedrons): Add back.
180         (build_scop_minimal_scattering): Remove.
181         (build_scop_scattering): Add back.
182         (build_scop_original_schedule): Remove.
183         (build_poly_scop): Revert to only call build_scop_scattering.
185 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
186             Sebastian Pop  <s.pop@samsung.com>
188         PR tree-optimization/68493
189         * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
190         missing early return when codegen_error is set.
192 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
193             Sebastian Pop  <s.pop@samsung.com>
195         PR tree-optimization/68279
196         * graphite-poly.c (new_scop): Remove poly_scop_p.
197         * graphite-poly.h (struct scop): Same.
198         (build_poly_scop): Declare.
199         * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
200         (cleanup_loop_iter_dom): New.
201         (build_loop_iteration_domains): Early return when scev analysis fails.
202         (create_pw_aff_from_tree): Same.
203         (add_condition_to_pbb): Same.
204         (add_conditions_to_domain): Same.
205         (add_conditions_to_constraints): Same.
206         (build_scop_iteration_domain): Same.
207         (build_poly_scop): Same.  Do not initialize poly_scop_p.
208         * graphite-sese-to-poly.h: Remove.
209         * graphite.c: Do not include graphite-sese-to-poly.h.
210         (graphite_transform_loops): Stop before code generation when
211         build_poly_scop fails.
212         * sese.c (scalar_evolution_in_region): Add fixme note about scev
213         analysis.
215 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
216             Sebastian Pop  <s.pop@samsung.com>
218         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
219         Remove call to update_ssa.
220         * sese.c (sese_insert_phis_for_liveouts): Same.
222 2015-11-23  Marek Polacek  <polacek@redhat.com>
224         PR tree-optimization/68455
225         * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
226         extract_range_from_multiplicative_op_1 on symbolic ranges.
228 2015-11-23  Richard Henderson  <rth@redhat.com>
230         * optabs.def (uaddv4_optab, usubv4_optab): New.
231         * internal-fn.c (expand_addsub_overflow): Use them.
232         * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
234         * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
235         to reversed operands.
236         * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
237         (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
238         (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
239         (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
240         (*add<SWI>3_cconly_overflow_2): New.
241         (*add<SWI>3_cc_overflow_2): New.
242         (*addsi3_zext_cc_overflow_2): New.
244 2015-11-23  Richard Biener  <rguenther@suse.de>
246         PR tree-optimization/68465
247         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
248         Also record equalities from multiple predecessor blocks if
249         only one non-backedge exists.
251 2015-11-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
253         PR target/68363
254         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
255         that are not INSN_P.
257 2015-11-23  Bilyan Borisov  <bilyan.borisov@arm.com>
259         * config/aarch64/aarch64-builtins.c
260         (aarch64_gimple_fold_builtin): Fold FMULX.
262 2015-11-23  David Edelsohn  <dje.gcc@gmail.com>
264         * system.h: Don't poison calloc and strdup if USES_ISL is defined.
265         * graphite-dependences.c: Define USES_ISL.  Include ISL header files
266         after GCC header files and before graphite header files.
267         * graphite-dependences.c: Same.
268         * graphite-isl-ast-to-gimple.c: Same.
269         * graphite-optimize-isl.c: Same.
270         * graphite-poly.c: Same.
271         * graphite-scop-detection.c: Same.
272         * graphite-sese-to-poly.c: Same.
273         * graphite.c: Same.
275 2015-11-23  Richard Biener  <rguenth@gcc.gnu.org>
276             Jiong Wang  <jiong.wang@arm.com>
278         PR tree-optimization/68317
279         PR tree-optimization/68326
280         * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
281         final min and max are not infinity.
283 2015-11-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
284             Richard Biener  <rguenther@suse.de>
286         PR tree-optimization/68327
287         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
288         compute vectype for non-relevant mask producers.
289         * gcc/tree-vect-stmts.c (vectorizable_comparison): Check stmt
290         relevance earlier.
292 2015-11-23  Tom de Vries  <tom@codesourcery.com>
294         PR tree-optimization/68460
295         * tree-parloops.c (gather_scalar_reductions): Also call
296         free_stmt_vec_info_vec if simple_loop_info == NULL.
298 2015-11-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
300         * opts.c (finish_options): Allow -fsanitize-recover=address for
301         userspace sanitization.
302         * asan.c (asan_expand_check_ifn): Redefine recover_p.
303         * doc/invoke.texi (fsanitize-recover): Update documentation.
305 2015-11-23  Tom de Vries  <tom@codesourcery.com>
307         * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
309 2015-11-23  Richard Biener  <rguenther@suse.de>
311         PR tree-optimization/68445
312         * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
313         two different strides.
315 2015-11-23  Robin Dapp  <rdapp@linux.vnet.ibm.com>
317         * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
318         * config/s390/s390.c (s390_check_symref_alignment): Use new
319         symref flags, early abort on wrong alignment
320         (s390_secondary_reload): Use new symref flags.
321         (s390_encode_section_info): Likewise.
322         * config/s390/predicates.md: Likewise.
324 2015-11-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
326         PR target/68390
327         * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
328         for indirect function call.
330 2015-11-22  Bilyan Borisov  <bilyan.borisov@arm.com>
332         * config/aarch64/aarch64-simd.md
333         (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
334         (*aarch64_mulx_elt<mode>, VDQF): Likewise.
335         (*aarch64_mulx_elt_to_64v2df): Likewise.
336         (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
337         * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
338         (vmulx_lane_f64): Likewise.
339         (vmulxq_lane_f32): Refactored & moved.
340         (vmulxq_lane_f64): Likewise.
341         (vmulx_laneq_f32): New.
342         (vmulx_laneq_f64): Likewise.
343         (vmulxq_laneq_f32): Likewise.
344         (vmulxq_laneq_f64): Likewise.
345         (vmulxs_lane_f32): Likewise.
346         (vmulxs_laneq_f32): Likewise.
347         (vmulxd_lane_f64): Likewise.
348         (vmulxd_laneq_f64): Likewise.
350 2015-11-21  Jan Hubicka  <hubicka@ucw.cz>
352         * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
353         In LTO we do not compute TYPE_CANONICAL of pointers.
354         (gimple_canonical_types_compatible_p): Improve coments; sanity check
355         that pointers do not have canonical type that would make us believe
356         they are different.
357         * alias.c (get_alias_set): Do structural type equality on pointers;
358         enable pointer path for LTO; also glob pointer to vector with pointer
359         to vector element; glob pointers and references for LTO; do more strict
360         sanity checking about build_pointer_type returning the canonical type
361         which is also the main variant.
362         (record_component_aliases): When component type is pointer and we
363         do LTO; record void_type_node alias set.
365 2015-11-21  Nathan Sidwell  <nathan@acm.org>
367         * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
369         * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
370         leading blank line.
371         (write_func_decl_from_insn): Likewise.
372         (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
373         (nvptx_file_end): Likewise.
374         (nvptx_function_end): Undent output.
375         (nvptx_expand_call): Fix formatting.
376         (nvptx_output_call_insn): Indent output.
377         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
378         ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
380 2015-11-21  Jakub Jelinek  <jakub@redhat.com>
382         PR debug/66432
383         * tree-inline.c (copy_debug_stmt): If
384         gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
385         in decl_debug_args, don't call remap_gimple_op_r on it.
387 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
389         * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
390         do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
391         Check that all record types are complete.
392         * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
393         compare alias sets for types w/o alias sets.
395 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
397         * config/sparc/sparc.md (umulxhi_vis): Move around.
398         (*umulxhi_sp64): Likewise.
399         (umulxhi_v8plus): Likewise.
400         (xmulx_vis): Likewise.
401         (*xmulx_sp64): Likewise.
402         (xmulx_v8plus): Likewise.
403         (xmulxhi_vis): Likewise.
404         (*xmulxhi_sp64): Likewise.
405         (xmulxhi_v8plus): Likewise.
407 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
409         PR 62314
410         * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
411         (class layout): Update comment
412         (layout::print_any_fixits): New method.
413         (layout::move_to_column): New method.
414         (diagnostic_show_locus): Add call to layout.print_any_fixits.
416 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
418         PR middle-end/68221
419         * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
420         has non-zero bias, subtract it in integer type instead of
421         pointer plus of negated bias.
423         PR middle-end/68339
424         * omp-low.c (expand_simd_clones): Call node->get_body () before
425         allocating stuff in GC.
427 2015-11-20  Jim Wilson  <jim.wilson@linaro.org>
429         * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
431 2015-11-20  Evandro Menezes  <e.menezes@samsung.com>
433         * config/aarch64/aarch64.md (predicated): Copy attribute from
434         "arm.md".
435         * config/arm/arm.md (predicated): Added description.
437 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
439         * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
440         for unaligned_access.
441         * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
442         from matching condition.
443         (unaligned_loadhis): Likewise.
444         (unaligned_loadhiu): Likewise.
445         (unaligned_storesi): Likewise.
446         (unaligned_storehi): Likewise.
448 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
450         PR target/68149
451         * config/arm/arm.md (unaligned_loaddi): Delete.
452         (unaligned_storedi): Likewise.
453         * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
454         unaligned DImode memory ops.  Instead perform two back-to-back
455         unaligned SImode ops.
457 2015-11-20  Nathan Sidwell  <nathan@codesourcery.com>
458             James Norris  <jnorris@codesourcery.com>
460         * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
461         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
463 2015-11-20  Alan Hayward <alan.hayward@arm.com>
465         PR tree-optimization/68413
466         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
467         evolution base
468         (vectorizable_reduction): Use cached base
470 2015-11-20  Tom de Vries  <tom@codesourcery.com>
472         * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
473         dump-file string.
474         (try_create_reduction_list): Same.  Fix typo in dump-file string.
476 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
478         * doc/md.texi (Standard Names): Move entry for addptr3 around,
479         add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
480         glitch in entries for cbranch4 and jump.
482 2015-11-20  Tom de Vries  <tom@codesourcery.com>
484         PR tree-optimization/68373
485         * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
486         of ...
487         (scev_const_prop): ... here.
488         * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
489         * tree-parloops.c (try_create_reduction_list): Call
490         final_value_replacement_loop.
492 2015-11-20  Bin Cheng  <bin.cheng@arm.com>
494         PR tree-optimization/52272
495         * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
496         (struct iv_common_cand_hasher): New struct.
497         (iv_common_cand_hasher::hash): New function.
498         (iv_common_cand_hasher::equal): New function.
499         (struct ivopts_data): New fields, iv_common_cand_tab and
500         iv_common_cands.
501         (tree_ssa_iv_optimize_init): Initialize above fields.
502         (record_common_cand, common_cand_cmp): New functions.
503         (add_iv_candidate_derived_from_uses): New function.
504         (add_iv_candidate_for_use): Record iv_common_cands derived from
505         iv use in hash table, instead of adding candidates directly.
506         (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
507         (record_important_candidates): Add important candidates to iv uses'
508         related_cands.  Always keep related_cands for future use.
509         (try_add_cand_for): Use iv uses' related_cands.
510         (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
511         in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
513 2015-11-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
515         * config/s390/s390.md ("bswaphi2"): New pattern.
517 2015-11-20  Dominik Vogt  <vogt@linux.vnet.ibm.com>
519         * config/s390/s390.md (GPR1_REGNUM): New constant.
520         ("*trunc<BFP:mode><DFP_ALL:mode>2")
521         ("*trunc<DFP_ALL:mode><BFP:mode>2")
522         ("trunc<BFP:mode><DFP_ALL:mode>2")
523         ("trunc<DFP_ALL:mode><BFP:mode>2")
524         ("*extend<BFP:mode><DFP_ALL:mode>2")
525         ("*extend<DFP_ALL:mode><BFP:mode>2")
526         ("extend<BFP:mode><DFP_ALL:mode>2")
527         ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
529 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
530             Sebastian Pop  <s.pop@samsung.com>
532         PR tree-optimization/68428
533         * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
534         over basic blocks outside the scop.
536 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
537             Sebastian Pop  <s.pop@samsung.com>
539         PR tree-optimization/68341
540         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
541         gcc_unreachable and safely fail codegen.
542         (copy_loop_close_phi_args): Do not insert merge phis in a basic
543         block with loop phi nodes.
544         (edge_for_new_close_phis): New.
545         (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
547 2015-11-19  Nathan Sidwell  <nathan@acm.org>
549         * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
550         * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
551         (nvptx_declare_objec_name): Likewise.
553 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
555         * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
556         (get_false_edge_from_guard_bb): Move...
557         * sese.c (get_false_edge_from_guard_bb)
558         (get_true_edge_from_guard_bb): ... here.
560 2015-11-19  David Edelsohn  <dje.gcc@gmail.com>
562         Revert
563         2015-11-18  Alan Modra  <amodra@gmail.com>
565         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
566         type-limits warning.
569 2015-11-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
571         * tree.h (desired_pro_or_demotion_p): New function.
572         * tree-vrp.c (simplify_cond_using_ranges): Call it.
574 2015-11-19  Michael Matz  <matz@suse.de>
576         * fwprop.c (update_uses): Use flag_checking instead of
577         gcc_checking_assert.
579 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
581         * doc/gty.texi (Support for inheritance): Fix missing
582         parentheses in example.
584 2015-11-19  Marek Polacek  <polacek@redhat.com>
586         PR tree-optimization/68431
587         * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
589 2015-11-19  Nathan Sidwell  <nathan@acm.org>
591         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
592         atomic_exchange<mode>): Input values can be immediates.
594 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
596         PR lto/61313
597         * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
598         by the user.
599         * configure: Regenerate.
601 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
603         PR target/68408
604         * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
605         (DTORS_SECTION_ASM_OP): Likewise.
607 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
609         PR rtl-optimization/68376
610         * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
611         encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
613 2015-11-19  Richard Biener  <rguenther@suse.de>
615         PR middle-end/68117
616         * tree-ssa.c (delete_tree_ssa): Revert removal of call to
617         redirect_edge_var_map_destroy.
619 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
621         PR target/67770
622         * config/i386/i386.md (simple_return): Disable if
623         ix86_static_chain_on_stack is true.
625 2015-11-19  Richard Sandiford  <richard.sandiford@arm.com>
627         PR bootstrap/68393
628         * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
629         destinations.
631 2015-11-18  Jeff Law  <law@redhat.com>
633         PR tree-optimization/68198
634         * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
635         between threading a multi-way branch and a thread path that contains
636         a multi-way branch.  Disallow the case where a path contains a
637         multi-way branch and does not thread a multi-way branch.
638         (thread_through_all_blocks): Update comment.
640 2015-11-18  Joseph Myers  <joseph@codesourcery.com>
642         PR c/65083
643         * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
644         (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
645         (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
646         functions before defining as macros.
648 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
650         * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
651         (nvptx_record_offload_symbol): Remove code compensating for lack
652         of default dimension handling.
653         (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
655 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
657         * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
658         type to bool for early exit.
659         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
660         in case of error.
661         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
662         (add_phi_arg_for_new_expr): Enable codegen for if-block where one
663         predecessor dominates the other.
664         (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
665         element is not found it returns -1.
666         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
667         out early when codegen fails.
668         (graphite_regenerate_ast_isl): Remove codegen region when pending
669         phis could not be generated.
671 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
673         * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
674         semicolon.
675         (class translate_isl_ast_to_gimple): Indentation.
676         (translate_pending_phi_nodes): Comment.
677         (add_parameters_to_ivs_params): Moved from sese.c inside class
678         translate_isl_ast_to_gimple.
679         (get_max_schedule_dimensions): Same.
680         (generate_isl_context): Same.
681         (extend_schedule): Same.
682         (generate_isl_schedule): Same.
683         (set_options): Same.
684         (scop_to_isl_ast): Same.
685         (is_valid_rename): Same.
686         (get_rename): Same.
687         (get_rename_from_scev): Same.
688         (get_def_bb_for_const): Same.
689         (get_new_name): Same.
690         (collect_all_ssa_names): Same.
691         (copy_loop_phi_args): Same.
692         (copy_loop_phi_nodes): Same.
693         (copy_loop_close_phi_args): Same.
694         (copy_loop_close_phi_nodes): Same.
695         (copy_cond_phi_args): Same.
696         (copy_cond_phi_nodes): Same.
697         (graphite_copy_stmts_from_block): Same.
698         (copy_bb_and_scalar_dependences): Same.
699         (add_phi_arg_for_new_expr): Same.
700         (rename_uses): Same.
701         (set_rename): Same.
702         (set_rename_for_each_def): Same.
703         (gsi_insert_earliest): Same.
704         (rename_all_uses): Same.
705         (codegen_error_p): Same.
706         (print_isl_ast_node): Same.
707         (translate_isl_ast_for_loop): Call function codegen_error_p.
708         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
709         (translate_isl_ast_node_user): Make nb_loops const and release
710         iv_map before exit.
711         (get_true_edge_from_guard_bb): Move all free-functions early.
712         (get_false_edge_from_guard_bb): Same.
713         (bb_contains_loop_close_phi_nodes): Same.
714         (bb_contains_loop_phi_nodes): Same.
715         (is_loop_closed_ssa_use):  Same.
716         (number_of_phi_nodes): Same.
717         (phi_uses_name): Same.
718         (later_of_the_two): Same.
719         (substitute_ssa_name):
720         (get_edges): Same.
721         (get_loc): Same.
722         (get_loop_init_value): Same.
723         (find_init_value): Same.
724         (find_init_value_close_phi): Same.
725         (ast_build_before_for): Same.
726         (graphite_regenerate_ast_isl): Formatting changes.
727         * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
728         * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
729         (set_rename): Same.
730         (gsi_insert_earliest): Same.
731         (collect_all_ssa_names): Same.
732         (rename_all_uses): Same.
733         (rename_uses): Same.
734         (get_def_bb_for_const): Same.
735         (copy_loop_phi_nodes): Same.
736         (copy_loop_close_phi_args): Same.
737         (copy_loop_close_phi_nodes): Same.
738         (copy_cond_phi_args): Same.
739         (copy_cond_phi_nodes): Same.
740         (set_rename_for_each_def): Same.
741         (graphite_copy_stmts_from_block): Same.
742         (copy_bb_and_scalar_dependences): Same.
743         (if_region_set_false_region): Same.
744         (scev_analyzable_p): Same.
745         * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
747 2015-11-18  Andreas Tobler  <andreast@gcc.gnu.org>
749         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
750         commit from r125920 for FreeBSD.
752 2015-11-18  Jason Merrill  <jason@redhat.com>
754         * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
755         to be vecs of vecs.
756         (add_finalizer): Split out from ggc_internal_alloc.
757         (ggc_handle_finalizers): Run finalizers for the current depth.
758         (init_ggc, ggc_pch_read): Reserve space for finalizers.
760 2015-11-18  Sandra Loosemore  <sandra@codesourcery.com>
762         PR target/68410
763         * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
764         from || expression.
766 2015-11-18  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
768         * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
769         atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
770         and atmega328pb.
771         * doc/avr-mmcu.texi: Regenerate.
773 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
775         * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
776         (pseudo_node_t, struct bracket, bracket_vec_t): New types.
777         (struct bb_sese): New struct.
778         (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
779         (BB_GET_SESE, BB_SET_SESE): Define.
780         (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
781         (nvptx_find_sese): New.
782         (nvptx_neuter_pars): Find SESE regions when optimizing.
784 2015-11-18  Alan Modra  <amodra@gmail.com>
786         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
787         type-limits warning.
789 2015-11-18  Richard Sandiford  <richard.sandiford@arm.com>
791         PR bootstrap/68406
792         * hash-set.h (hash_set::traverse): Expand Key typedef.
794 2015-11-18  Martin Liska  <mliska@suse.cz>
796         * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
797         options struct.
799 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
801         * config/nvptx/nvptx.c (global_lock_var): New.
802         (nvptx_global_lock_addr): New.
803         (nvptx_lockless_update): Recomment and adjust for clarity.
804         (nvptx_lockfull_update): New.
805         (nvptx_reduction_update): New.
806         (nvptx_goacc_reduction_fini): Call it.
808 2015-11-18  Bernd Schmidt  <bschmidt@redhat.com>
810         * regrename.h (struct du_head): Add target_data_1 and target_data_2
811         fields.
812         * regrename.c (create_new_chain): Clear entire struct after allocating.
814         * config/i386/i386.opt (mmitigate-rop): New option.
815         * doc/invoke.texi (mmitigate-rop): Document.
816         * config/i386/i386.c: Include "regrename.h".
817         (ix86_rop_should_change_byte_p, reg_encoded_number,
818         ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
819         static functions.
820         (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
821         * config/i386/i386.md (attr "modrm_class"): New.
822         (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
823         x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
824         (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
826 2015-11-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
828         PR target/68405
829         * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
831 2015-11-18  Jakub Jelinek  <jakub@redhat.com>
833         PR tree-optimization/68157
834         * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
835         pow_stmt or mul_stmt from stmt's uid.
836         (reassociate_bb): Set uid of mul_stmt from stmt's uid.
838 2015-11-18  Martin Liska  <mliska@suse.cz>
840         * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
842 2015-11-18  Martin Liska  <mliska@suse.cz>
844         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
845         Fix GNU coding style.
846         (find_def_preds): Use auto_vec.
847         (destroy_predicate_vecs): Change signature of the function.
848         (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
849         new signature.
850         (simplify_preds_4): Use destroy_predicate_vecs instread of
851         just releasing preds vector.
852         (normalize_preds): Likewise.
853         (is_use_properly_guarded): Use new signature of
854         destroy_predicate_vecs.
855         (find_uninit_use): Likewise.
857 2015-11-18  Richard Biener  <rguenther@suse.de>
859         PR tree-optimization/67790
860         * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
861         IL rewrite for MINUS_EXPR reductions, rename back to ...
862         (vect_is_simple_reduction): ... this, removing the wrapper.
863         (vect_force_simple_reduction): Adjust.
864         (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
865         reductions and make use if reduc_index in all places.  For
866         the final reduction of MINUS_EXPR use PLUS_EXPR.
868 2015-11-18  Alan Modra  <amodra@gmail.com>
870         * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
871         to ld.
872         * configure: Regenerate.
874 2015-11-17  Tom de Vries  <tom@codesourcery.com>
876         * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
878 2015-11-17  Tom de Vries  <tom@codesourcery.com>
880         * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
881         uses of ssa_name with constant.
883 2015-11-17  Tom de Vries  <tom@codesourcery.com>
885         * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
886         something changed.
888 2015-11-17  Tom de Vries  <tom@codesourcery.com>
890         * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
891         * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
892         (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
894 2015-11-17  Bernd Schmidt  <bschmidt@redhat.com>
896         * regrename.c (regrename_find_superclass): New function, code moved
897         from ...
898         (rename_chains): ... here.  Call it.
899         * regrename.h (regrename_find_superclass): Declare.
901         * regrename.c (record_out_operands): Terminate earlyclobbered
902         operands here.
904         PR target/66785
905         * regrename.c (record_operand_use): Keep track of failed operands
906         and stop appending if we see any.
907         * regrename.h (struct operand_rr_info): Add a failed field and shrink
908         n_chains to short.
910 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
912         PR 48568
913         * doc/extend.texi (Common Function Attributes) [visibility]:
914         Add cross-references to matching variable and type attributes.
915         (Common Variable Attributes) [visibility]: Add missing entry.
917 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
919         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
920         entries that map directly to optabs.
922 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
924         * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
925         entries that map directly to optabs.
927 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
929         * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
930         * internal-fn.c (direct_internal_fn_array): Update accordingly.
931         * tree-vectorizer.h (vectorizable_function): Delete.
932         * tree-vect-stmts.c: Include internal-fn.h.
933         (vectorizable_internal_function): New function.
934         (vectorizable_function): Inline into...
935         (vectorizable_call): ...here.  Explicitly reject calls that read
936         from or write to memory.  Try using an internal function before
937         falling back on the old vectorizable_function behavior.
939 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
941         * target.def (builtin_vectorized_function): Take a combined_fn (in
942         the form of an unsigned int) rather than a function decl.
943         (builtin_md_vectorized_function): New.
944         * targhooks.h (default_builtin_vectorized_function): Replace the
945         fndecl argument with an unsigned int.
946         (default_builtin_md_vectorized_function): Declare.
947         * targhooks.c (default_builtin_vectorized_function): Replace the
948         fndecl argument with an unsigned int.
949         (default_builtin_md_vectorized_function): New function.
950         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
951         New hook.
952         * doc/tm.texi: Regenerate.
953         * tree-vect-stmts.c (vectorizable_function): Update call to
954         builtin_vectorized_function, also passing internal functions.
955         Call builtin_md_vectorized_function for target-specific builtins.
956         * config/aarch64/aarch64-protos.h
957         (aarch64_builtin_vectorized_function): Replace fndecl argument
958         with an unsigned int.
959         * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
960         (aarch64_builtin_vectorized_function): Update after above changes.
961         Use CASE_CFN_*.
962         * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
963         fndecl argument with an unsigned int.
964         * config/arm/arm-builtins.c: Include case-cfn-macros.h
965         (arm_builtin_vectorized_function): Update after above changes.
966         Use CASE_CFN_*.
967         * config/i386/i386.c: Include case-cfn-macros.h
968         (ix86_veclib_handler): Take a combined_fn rather than a
969         built_in_function.
970         (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise.  Use
971         mathfn_built_in rather than calling builtin_decl_implicit directly.
972         (ix86_builtin_vectorized_function) Update after above changes.
973         Use CASE_CFN_*.
974         * config/rs6000/rs6000.c: Include case-cfn-macros.h
975         (rs6000_builtin_vectorized_libmass): Replace fndecl argument
976         with a combined_fn.  Use CASE_CFN_*.  Use mathfn_built_in rather
977         than calling builtin_decl_implicit directly.
978         (rs6000_builtin_vectorized_function): Update after above changes.
979         Use CASE_CFN_*.  Move BUILT_IN_MD to...
980         (rs6000_builtin_md_vectorized_function): ...this new function.
981         (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
983 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
985         * tree-vect-patterns.c: Include internal-fn.h.
986         (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
988 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
990         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
991         (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
993 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
995         * builtins.c (expand_errno_check, expand_builtin_mathfn)
996         (expand_builtin_mathfn_2): Delete.
997         (expand_builtin): Remove handling of functions with
998         internal function equivalents.
999         * internal-fn.def (SET_EDOM): New internal function.
1000         * internal-fn.h (set_edom_supported_p): Declare.
1001         * internal-fn.c (expand_SET_EDOM): New function.
1002         (set_edom_supported_p): Likewise.
1003         * tree-call-cdce.c: Include builtins.h and internal-fn.h.
1004         Rewrite comment at head of file.
1005         (is_call_dce_candidate): Rename to...
1006         (can_test_argument_range): ...this.  Don't check gimple_call_lhs
1007         or gimple_call_builtin_p here.
1008         (edom_only_function): New function.
1009         (shrink_wrap_one_built_in_call_with_conds): New function, split out
1010         from...
1011         (shrink_wrap_one_built_in_call): ...here.
1012         (can_use_internal_fn, use_internal_fn): New functions.
1013         (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
1014         for calls that have an lhs.
1015         (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
1016         (pass_call_cdce::execute): Skip blocks that are optimized for size.
1017         Check gimple_call_builtin_p here.  Use can_use_internal_fn for
1018         calls with an lhs.
1019         * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
1020         at -O and above.
1022 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1024         * builtins.h (called_as_built_in): Declare.
1025         * builtins.c (called_as_built_in): Make external.
1026         * internal-fn.h (expand_internal_call): Define a variant that
1027         specifies the internal function explicitly.
1028         * internal-fn.c (expand_load_lanes_optab_fn)
1029         (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
1030         (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
1031         (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
1032         (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
1033         (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
1034         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
1035         (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
1036         (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
1037         (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
1038         (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
1039         (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
1040         (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
1041         (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
1042         argument.
1043         (internal_fn_expanders): Update prototype.
1044         (expand_internal_call): Define a variant that specifies the
1045         internal function explicitly. Use it to implement the previous
1046         interface.
1047         * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
1048         functions as calls to internal functions.
1050 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1052         * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
1053         (generated_files): Likewise.
1054         (s-cfn-operators, cfn-operators.pd): New rules.
1055         (s-match): Depend on cfn-operators.pd.
1056         * gencfn-macros.c: Expand comment to describe -o behavior.
1057         (print_define_operator_list): New function.
1058         (main): Accept -o.  Call print_define_operator_list.
1059         * genmatch.c (main): Add the current directory to the include path.
1060         * match.pd (DEFINE_MATH_FN): Delete.  Include cfn-operators.pd
1061         instead.
1063 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1065         * doc/match-and-simplify.texi: Document the "null" identifier.
1066         * genmatch.c (id_base::NULL_ID): New kind.
1067         (null_id): New variable.
1068         (get_operator): Add a parameter that says whether null identifiers
1069         are allowed.
1070         (contains_id): New function.
1071         (lower_for): Skip substitutions that would have a null_id in
1072         either the match or the result.
1073         (parser::parse_for): Allow the null identifier to be used.
1074         (parser::parse_operator_list): Likewise.
1075         (main): Initialize null_id.
1077 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1079         * match.pd: Use HYPOT and COS rather than hypot and cos.
1080         Use CASE_CFN_* macros.  Guard log/exp folds with
1081         SCALAR_FLOAT_TYPE_P.
1082         * genmatch.c (internal_fn): New enum.
1083         (fn_id::fn): Change to an unsigned int.
1084         (fn_id::fn_id): Accept internal_fn too.
1085         (add_builtin): Rename to...
1086         (add_function): ...this and turn into a template.
1087         (get_operator): Only try one variation if the original name fails.
1088         Only add _EXPR if the original name was all lower case.
1089         Try converting internal and built-in function names to their
1090         CFN equivalents.
1091         (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
1092         (dt_simplify::gen_1): Likewise.
1093         (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
1094         and get_call_combined_fn for generic.
1095         (dt_simplify::gen): Use combined_fn as the type of fn_ids.
1096         (decision_tree::gen): Likewise.
1097         (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
1098         Use add_function rather than add_builtin.  Register internal
1099         functions too.
1100         * generic-match-head.c: Include case-cfn-macros.h.
1101         * gimple-fold.c (replace_stmt_with_simplification): Use
1102         gimple_call_combined_fn to test whether we can keep an
1103         existing call.
1104         * gimple-match.h (code_helper): Replace built_in_function
1105         with combined_fn.
1106         * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
1107         and case-fn-macros.h.
1108         (gimple_resimplify1): Use fold_const_call.
1109         (gimple_resimplify2, gimple_resimplify3): Likewise.
1110         (build_call_internal, build_call): New functions.
1111         (maybe_push_res_to_seq): Use them.
1112         (gimple_simplify): Use fold_const_call.  Set *rcode to a combined_fn
1113         rather than a built-in function.
1114         * tree.h (build_call_expr_internal_loc): Declare.
1115         (maybe_build_call_expr_loc): Likewise.
1116         * tree.c (build_call_expr_internal_loc_array): New function.
1117         (maybe_build_call_expr_loc): Likewise.
1119 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1121         * builtins.h (mathfn_built_in): Add a variant that takes
1122         a combined_fn.
1123         * builtins.c: Include case-cfn-macros.h.
1124         (CASE_MATHFN): Use CASE_CFN_*.
1125         (CASE_MATHFN_REENT): Use CFN_ codes.
1126         (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
1127         argument with a combined_fn.
1128         (mathfn_built_in): Add a variant that takes a combined_fn.
1129         (expand_builtin_int_roundingfn_2): Update callers accordingly.
1130         (fold_builtin_sincos, fold_builtin_classify): Likewise.
1132 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1134         * tree-vect-patterns.c: Include case-cfn-macros.h.
1135         (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
1137 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1139         * tree-ssa-math-opts.c: Include case-cfn-macros.h.
1140         (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
1141         (pass_cse_sincos::execute): Likewise.
1143 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1145         * tree-ssa-reassoc.c: Include case-cfn-macros.h.
1146         (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
1147         (decrement_power, acceptable_pow_call): Likewise.
1148         (attempt_builtin_copysign): Likewise.
1150 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1152         * tree-vrp.c: Include case-cfn-macros.h.
1153         (extract_range_basic): Switch on combined_fn rather than handling
1154         built-in functions and internal functions separately.
1156 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1158         * fold-const.h (negate_mathfn_p): Take a combined_fn rather
1159         than a built_in_function.
1160         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1161         a function decl.
1162         (integer_valued_real_call_p): Likewise.
1163         * fold-const.c: Include case-cfn-macros.h
1164         (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
1165         (negate_expr_p): Update accordingly.
1166         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1167         a function decl.
1168         (integer_valued_real_call_p): Likewise.
1169         (tree_invalid_nonnegative_warnv_p): Update accordingly.
1170         (integer_valued_real_p): Likewise.
1171         * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
1172         to tree_call_nonnegative_warnv_p.
1173         (gimple_call_integer_valued_real_p): Likewise
1174         integer_valued_real_call_p.
1175         * gimple-ssa-backprop.c: Include case-cfn-macros.h.
1176         (backprop::process_builtin_call_use): Extend to combined_fn.
1177         (strip_sign_op_1): Likewise.
1178         (backprop::process_use): Don't check for built-in calls here.
1179         (backprop::execute): Likewise.
1180         (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
1182 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1184         * fold-const-call.h (fold_const_call): Replace built_in_function
1185         arguments with combined_fn arguments.
1186         * fold-const-call.c: Include case-cfn-macros.h.
1187         (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
1188         (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
1189         (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
1190         built_in_function arguments with combined_fn arguments.
1191         * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
1192         (fold_builtin_3): Update calls to fold_const_call.
1194 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1196         * Makefile.in (HASH_TABLE_H): Add GGC_H.
1197         (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
1198         (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
1199         (build/gencfn-macros$(build_exeext): New rules.
1200         (genprogerr): Add cfn-macros.
1201         * hash-set.h (hash_set): Use the traits value_type as the key.
1202         * gencfn-macros.c: New file.
1204 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1206         * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
1207         (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
1208         * builtins.c (associated_internal_fn): Handle them.
1210 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1212         * builtins.h (associated_internal_fn): Declare.
1213         (replacement_internal_fn): Likewise.
1214         * builtins.c: Include internal-fn.h
1215         (associated_internal_fn, replacement_internal_fn): New functions.
1216         * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
1217         (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
1218         (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
1219         (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
1220         (LDEXP): New functions.
1221         * internal-fn.c: Include recog.h.
1222         (unary_direct, binary_direct): New macros.
1223         (expand_direct_optab_fn): New function.
1224         (expand_unary_optab_fn): New macro.
1225         (expand_binary_optab_fn): Likewise.
1226         (direct_unary_optab_supported_p): Likewise.
1227         (direct_binary_optab_supported_p): Likewise.
1229 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1231         * coretypes.h (tree_pair): New type.
1232         * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro.  Use it
1233         for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
1234         * internal-fn.h (direct_internal_fn_info): New structure.
1235         (direct_internal_fn_array): Declare.
1236         (direct_internal_fn_p, direct_internal_fn): New functions.
1237         (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
1238         * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
1239         (mask_store_direct, store_lanes_direct): New macros.
1240         (direct_internal_fn_array) New array.
1241         (get_multi_vector_move): Return the optab handler without asserting
1242         that it is available.
1243         (expand_LOAD_LANES): Rename to...
1244         (expand_load_lanes_optab_fn): ...this and add an optab argument.
1245         (expand_STORE_LANES): Rename to...
1246         (expand_store_lanes_optab_fn): ...this and add an optab argument.
1247         (expand_MASK_LOAD): Rename to...
1248         (expand_mask_load_optab_fn): ...this and add an optab argument.
1249         (expand_MASK_STORE): Rename to...
1250         (expand_mask_store_optab_fn): ...this and add an optab argument.
1251         (direct_internal_fn_types, direct_optab_supported_p)
1252         (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
1253         (direct_internal_fn_supported_p): New functions.
1254         (direct_mask_load_optab_supported_p): New macro.
1255         (direct_load_lanes_optab_supported_p): Likewise.
1256         (direct_mask_store_optab_supported_p): Likewise.
1257         (direct_store_lanes_optab_supported_p): Likewise.
1259 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1261         * tree-core.h (internal_fn): Move immediately after the definition
1262         of built_in_function.
1263         (combined_fn): New enum.
1264         * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
1265         (internal_fn_p, as_internal_fn): New functions.
1266         (get_call_combined_fn, combined_fn_name): Declare.
1267         * tree.c (get_call_combined_fn): New function.
1268         (combined_fn_name): Likewise.
1269         * gimple.h (gimple_call_combined_fn): Declare.
1270         * gimple.c (gimple_call_combined_fn): New function.
1272 2015-11-17  Martin Sebor  <msebor@redhat.com>
1274         PR c++/68308
1275         * cp/init.c (build_new_1): Check for expression constness
1276         the right way.
1278 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
1280         PR target/53587
1281         * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
1282         option list.
1283         (x86 Options): Add -mms-bitfields and -mno-ms-bitfields.  Move
1284         discussion of the Microsoft structure layout details here from
1285         its former home in extend.texi.
1286         * doc/extend.texi (x86 Variable Attributes): Replace detailed
1287         discussion with pointer to its new location.  Add cross-reference
1288         to corresponding type attributes.
1289         (x86 Type Attributes): Add cross-references to command-line options
1290         and variable attributes.
1292 2015-11-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
1294         PR middle-end/68134
1295         * targhooks.c (default_get_mask_mode): Filter out
1296         scalar modes returned by mode_for_vector.
1298 2015-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1300         PR target/68143
1301         * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
1302         offset from dstbase and use it appropriately in
1303         adjust_automodify_address.
1304         (arm_block_set_aligned_vect): Likewise.
1306 2015-11-17  Eric Botcazou  <ebotcazou@adacore.com>
1308         * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
1309         (MULTILIB_DIRNAMES): Adjust accordingly.
1311 2015-11-17  James Greenhalgh  <james.greenhalgh@arm.com>
1313         * config/aarch64/aarch64-cores.def (cortex-a35): New.
1314         * config/aarch64/aarch64.c (cortexa35_tunings): New.
1315         * config/aarch64/aarch64-tune.md: Regenerate.
1316         * doc/invoke.texi (-mcpu): Add Cortex-A35
1318 2015-11-17  Uros Bizjak  <ubizjak@gmail.com>
1320         PR target/68263
1321         * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
1322         to 32 for IAMCU.
1323         * config/i386/sse.md (*mov<mode>_internal): Always enable
1324         AVX and SSE unaligned moves for IAMCU.
1326 2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
1328         * tree-if-conv.c: Include varasm.h
1329         (ref_DR_map): Define.
1330         (baseref_DR_map): Like wise
1331         (struct ifc_dr): Add new tree predicate field.
1332         (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
1333         (memrefs_read_or_written_unconditionally): Remove.
1334         (write_memrefs_written_at_least_once): Remove.
1335         (ifcvt_memrefs_wont_trap): Use hash maps to query
1336         unconditional read/written information.
1337         (if_convertible_loop_p_1):  Initialize hash maps and predicates
1338         before hashing data references and delete hashmaps at the end.
1340 2015-11-16  Thomas Preud'homme <thomas.preudhomme@arm.com>
1342         PR 56036
1343         * doc/invoke.texi (Optimize Options): Move @end table to the right
1344         place.
1346 2015-11-16  Sandra Loosemore  <sandra@codesourcery.com>
1348         PR 65129
1349         * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
1350         return value.
1352 2015-11-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
1354         * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
1355         128-bit types, just types that fit in a single vector.
1356         * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
1358 2015-11-16  David Wohlferd  <dw@LimeGreenSocks.com>
1360         * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
1361         in the user documentation.
1362         (define_peephole2, define_split): Similarly.
1364 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
1366         * lto-streamer-out.c (write_global_references): Adjust integer type.
1367         (lto_output_decl_state_refs): Likewise.
1369 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
1371         * config/arm/arm-cores.def (cortex-a35): New.
1372         * config/arm/arm.c (arm_cortex_a35_tune): New.
1373         * config/arm/arm-tables.opt: Regenerate.
1374         * config/arm/arm-tune.md: Regenerate.
1375         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
1376         * config/arm/t-aprofile: Likewise.
1377         * doc/invoke.texi (-mcpu): Likewise.
1379 2015-11-16  Jim Wilson  <jim.wilson@linaro.org>
1381         * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
1382         and qdf24xx and xgene1 to match -march=armv8-a.
1384 2015-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
1386         PR rtl-optimization/68330
1387         * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
1388         of LSHIFTRT by a non-zero constant integer.
1390 2015-11-16  Richard Biener  <rguenther@suse.de>
1392         PR tree-optimization/68306
1393         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
1394         bogus copying from verify_data_ref_alignment and use continue
1395         instead of return.
1397 2015-11-16  Oleg Endo  <olegendo@gcc.gnu.org>
1398             Kaz Kojima  <kkojima@gcc.gnu.org>
1400         PR target/68277
1401         * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
1402         operands[2].
1403         (*addsi3): Add another insn_and_split variant for reload.
1405 2015-11-16  Richard Biener  <rguenther@suse.de>
1407         PR middle-end/68117
1408         * cfgexpand.c (pass_expand::execute): Destroy the edge
1409         redirection var map before setting RTL CFG hooks.
1411 2015-11-16  Alan Lawrence  <alan.lawrence@arm.com>
1413         * config/i386/sse.md (reduc_splus_v8df): Rename to...
1414         (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
1416         (reduc_splus_v4df): Rename to...
1417         (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
1419         (reduc_splus_v2df): Rename to...
1420         (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
1422         (reduc_splus_v16sf): Rename to...
1423         (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
1425         (reduc_splus_v8sf): Rename to...
1426         (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
1428         (reduc_splus_v4sf): Rename to...
1429         (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
1431         (reduc_<code>_<mode>, all 3 variants): Rename each to...
1432         (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
1434         (reduc_umin_v8hf): Rename to...
1435         (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
1437 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
1439         * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
1440         without additional conditions.
1441         * doc/extend.texi (@item simd): New.
1443 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1445         * passes.c (first_pass_instance): Remove variable.
1446         (execute_todo): Remove setting of first_pass_instance.
1447         * tree-pass.h (first_pass_instance): Remove declaration.
1449 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1451         * passes.def: Add arg to pass_ccp pass instantiation.
1452         * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p.  Use nonzero_p
1453         instead of first_pass_instance.
1454         (do_ssa_ccp): Add and handle param nonzero_p.
1455         (pass_ccp::pass_ccp): Initialize nonzero_p.
1456         (pass_ccp::set_pass_param): New member function.  Set nonzero_p.
1457         (pass_ccp::execute): Call do_ssa_ccp with extra arg.
1458         (pass_ccp::nonzero_p): New private member.
1460 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1462         * passes.def: Add arg to pass_object_sizes pass instantiation.
1463         * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
1464         insert_min_max_p.
1465         (pass_object_sizes::set_pass_param): New member function.  Set
1466         insert_min_max_p.
1467         (pass_object_sizes::insert_min_max_p): New private member.
1468         (pass_object_sizes::execute): Use insert_min_max_p instead of
1469         first_pass_instance.
1471 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1473         * passes.def: Add arg to pass_dominator pass instantiation.
1474         * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
1475         of comment.
1476         * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
1477         may_peel_loop_headers_p.
1478         (pass_dominator::set_pass_param): New member function.  Set
1479         may_peel_loop_headers_p.
1480         (pass_dominator::may_peel_loop_headers_p): New private member.
1481         (pass_dominator::execute): Use may_peel_loop_headers_p instead of
1482         first_pass_instance.
1484 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1486         * passes.def: Add arg to pass_reassoc pass instantiation.
1487         * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
1488         (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
1489         of first_pass_instance.
1490         (execute_reassoc): Add and handle insert_powi_p parameter.
1491         (pass_reassoc::insert_powi_p): New private member.
1492         (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
1493         (pass_reassoc::set_pass_param): New member function.  Set insert_powi_p.
1494         (pass_reassoc::execute): Call execute_reassoc with extra arg.
1496 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1498         * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
1499         * gen-pass-instances.awk (handle_line): Same.
1500         * pass_manager.h (class pass_manager): Define and undefine
1501         NEXT_PASS_WITH_ARG.
1502         * passes.c (opt_pass::set_pass_param): New function.
1503         (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
1504         * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
1505         * tree-pass.h (gimple_opt::set_pass_param): Declare.
1506         * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
1507         warn_array_bounds_p parameter.
1508         (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
1509         (pass_vrp::set_pass_param): New function.
1510         (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
1511         (pass_vrp::warn_array_bounds_p): New private member.
1513 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1515         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
1516         (output_probe_stack_range): Rotate the loop and simplify.
1518 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1520         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
1521         (output_probe_stack_range): Rotate the loop and simplify.
1523 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1525         * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
1526         an lea instruction when possible.
1527         (output_adjust_stack_and_probe): Rotate the loop and simplify.
1528         (ix86_emit_probe_stack_range): Adjust.
1529         (output_probe_stack_range): Rotate the loop and simplify.
1531 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1533         * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
1534         Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
1535         with appropriate pragma GCC target.
1537 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1539         PR target/65837
1540         * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
1541         __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
1543 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
1545         * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
1546         (cortexa57_tunings): Use it.
1548 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1550         PR target/65837
1551         * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
1552         __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
1553         (arm_pragma_target_parse): Change check for arm_cpu_builtins.
1554         undefine __ARM_FP.
1555         * config/arm/arm.c (arm_can_inline_p): Check FPUs.
1556         (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
1557         * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
1558         * doc/extend.texi (-mfpu=): Describe attribute.
1560 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1562         PR target/65837
1563         * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
1564         * config/arm/arm.c (arm_valid_target_attribute_tree): Call
1565         arm_init_neon_builtins.
1566         * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
1567         (arm_init_neon_builtins_internal)
1568         (arm_init_crypto_builtins_internal):
1569         Test and set neon_set_p, neon_crypto_set_p.
1570         (neon_set_p, neon_crypto_set_p): New static booleans.
1572 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1574         PR target/65837
1575         * config/arm/arm.c (arm_fpu_desc): Remove.
1576         (all_fpus): Make global.
1577         (arm_option_override): Use FPU TARGET accessors.
1578         (arm_declare_function_name): Likewise.
1579         * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
1580         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
1581         (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
1582         (TARGET_NEON): Likewise.
1583         (all_fpus): Declare extern.
1584         (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
1585         (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
1587 2015-11-15  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1589         PR middle-end/68366
1590         * sdbout.c: Include emit-rtl.h and function.h.
1592 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
1594         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
1595         Remove support for FreeBSD 5 and earlier.
1597 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1599         * configure: Regenerate.
1600         * configure.ac: Always define ENABLE_OFFLOADING.
1601         * cgraph.c (cgraph_node::create): Adjust.
1602         * gcc.c (process_command): Likewise.
1603         * omp-low.c (create_omp_child_function): Likewise.
1604         (expand_omp_target): Likewise.
1605         * varpool.c (varpool_node::get_create): Likewise.
1607 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1609         * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
1610         * df-scan.c (df_get_exit_block_use_set): Adjust.
1611         * except.c (expand_eh_return): Likewise.
1613 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1615         * config/i386/i386.h (TARGET_PECOFF): Remove define.
1616         * defaults.h (TARGET_PECOFF): New default definition.
1617         * varasm.c (handle_vtv_comdat_section): Adjust.
1619 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1621         * defaults.h: New definition of SDB_DEBUGGING_INFO.
1622         * doc/tm.texi: Regenerate.
1623         * doc/tm.texi.in: Adjust.
1624         * final.c (rest_of_clean_state): Remove check if
1625         SDB_DEBUGGING_INFO is defined.
1626         * function.c (number_blocks): Likewise.
1627         * output.h: Likewise.
1628         * sdbout.c: Likewise.
1629         * toplev.c (process_options): Likewise.
1631 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1633         * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
1634         (enum sdb_masks): Likewise.
1635         * sdbout.c (plain_type_1): Likewise.
1636         * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
1638 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
1640         * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
1641         internal calls - 0 if ordered simd and 1 for ordered threads simd.
1642         * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
1643         argument is 1, replace it with GOMP_ordered_* call instead of removing
1644         it.
1646 2015-11-13  Rich Felker <dalias@libc.org>
1648         * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
1649         address loading hack for FDPIC targets.
1651 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
1652             Jeff Law  <law@redhat.com>
1654         * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
1655         * common.opt (-fsplit-paths): New flag controlling path splitting.
1656         * doc/invoke.texi (fsplit-paths): Document.
1657         * opts.c (default_options_table): Add -fsplit-paths to -O2.
1658         * passes.def: Add split_paths pass.
1659         * timevar.def (TV_SPLIT_PATHS): New timevar.
1660         * tracer.c: Include "tracer.h"
1661         (ignore_bb_p): No longer static.
1662         (transform_duplicate): New function, broken out of tail_duplicate.
1663         (tail_duplicate): Use transform_duplicate.
1664         * tracer.h (ignore_bb_p): Declare
1665         (transform_duplicate): Likewise.
1666         * tree-pass.h (make_pass_split_paths): Declare.
1667         * gimple-ssa-split-paths.c: New file.
1669 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
1670             Marek Polacek  <polacek@redhat.com>
1671             Jason Merrill  <jason@redhat.com>
1673         * convert.c (maybe_fold_build1_loc): New.
1674         (maybe_fold_build2_loc): New.
1675         (convert_to_pointer_1): Split out from convert_to_pointer.
1676         (convert_to_pointer_nofold): New.
1677         (convert_to_real_1): Split out from convert_to_real.
1678         (convert_to_real_nofold): New.
1679         (convert_to_integer_1): Split out from convert_to_integer.
1680         (convert_to_integer_nofold): New.
1681         (convert_to_complex_1): Split out from convert_to_complex.
1682         (convert_to_complex_nofold): New.
1683         * convert.h: Declare new functions.
1684         * tree-complex.c (create_one_component_var): Break up line to
1685         avoid sequence point issues.
1687 2015-11-13  Jason Merrill  <jason@redhat.com>
1689         * fold-const.c (fold_convert_const): Fold changing cv-quals on
1690         VECTOR_CST.
1692         * hash-map.h (hash_map::empty): New.
1694 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
1696         * gcc/omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
1697         (oacc_loop_fixed_partitions): Correct return type to bool.
1698         (oacc_loop_auto_partitions): New.
1699         (oacc_loop_partition): Take mask argument, call
1700         oacc_loop_auto_partitions.
1701         (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
1703 2015-11-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
1705         * config/rs6000/constraints.md (we constraint): New constraint for
1706         64-bit power9 vector support.
1707         (wL constraint): New constraint for the element in a vector that
1708         can be addressed by the MFVSRLD instruction.
1710         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
1711         declaration.
1712         (convert_int_to_float128): Likewise.
1713         (rs6000_generate_compare): Add support for ISA 3.0 (power9)
1714         hardware support for IEEE 128-bit floating point.
1715         (rs6000_expand_float128_convert): Likewise.
1716         (convert_float128_to_int): Likewise.
1717         (convert_int_to_float128): Likewise.
1719         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
1720         ISA 3.0 hardware IEEE 128-bit floating point.
1721         (UNSPEC_IEEE128_MOVE): Likewise.
1722         (UNSPEC_IEEE128_CONVERT): Likewise.
1723         (FMA_F): Add support for IEEE 128-bit floating point hardware support.
1724         (Ff): Add support for DImode.
1725         (Fv): Likewise.
1726         (any_fix code iterator): New and updated iterators for IEEE
1727         128-bit floating point hardware support.
1728         (any_float code iterator): Likewise.
1729         (s code attribute): Likewise.
1730         (su code attribute): Likewise.
1731         (az code attribute): Likewise.
1732         (uns code attribute): Likewise.
1733         (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
1734         floating point hardware support.
1735         (abs<mode>2, FLOAT128 iterator): Likewise.
1736         (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
1737         floating point hardware.
1738         (sub<mode>3, IEEE128 iterator): Likewise.
1739         (mul<mode>3, IEEE128 iterator): Likewise.
1740         (div<mode>3, IEEE128 iterator): Likewise.
1741         (copysign<mode>3, IEEE128 iterator): Likewise.
1742         (sqrt<mode>2, IEEE128 iterator): Likewise.
1743         (neg<mode>2, IEEE128 iterator): Likewise.
1744         (abs<mode>2, IEEE128 iterator): Likewise.
1745         (nabs<mode>2, IEEE128 iterator): Likewise.
1746         (fma<mode>4_hw, IEEE128 iterator): Likewise.
1747         (fms<mode>4_hw, IEEE128 iterator): Likewise.
1748         (nfma<mode>4_hw, IEEE128 iterator): Likewise.
1749         (nfms<mode>4_hw, IEEE128 iterator): Likewise.
1750         (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
1751         (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
1752         (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
1753         (fix_fixuns code attribute): Likewise.
1754         (float_floatuns code attribute): Likewise.
1755         (fix<uns>_<mode>si2_hw): Likewise.
1756         (fix<uns>_<mode>di2_hw): Likewise.
1757         (float<uns>_<mode>si2_hw): Likewise.
1758         (float<uns>_<mode>di2_hw): Likewise.
1759         (xscvqp<su>wz_<mode>): Likewise.
1760         (xscvqp<su>dz_<mode>): Likewise.
1761         (xscv<su>dqp_<mode): Likewise.
1762         (ieee128_mfvsrd): Likewise.
1763         (ieee128_mfvsrwz): Likewise.
1764         (ieee128_mtvsrw): Likewise.
1765         (ieee128_mtvsrd): Likewise.
1766         (trunc<mode>df2_odd): Likewise.
1767         (cmp<mode>_h): Likewise.
1768         (128-bit GPR splitters): Don't split a 128-bit move that is a
1769         direct move between GPR and vector registers using ISA 3.0 direct
1770         move instructions.
1771         (maddld4): Add support for the ISA 3.0 integer multiply-add
1772         instruction.
1774         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
1775         debugging.
1776         (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
1777         constraint.  Disable the VSX<->GPR direct move helpers if we have
1778         the MFVSRLD and MTVSRDD instructions.
1779         (rs6000_secondary_reload_simple_move): Add support for doing
1780         vector direct moves directly without additional scratch registers
1781         if we have ISA 3.0 instructions.
1782         (rs6000_secondary_reload_direct_move): Update comments.
1783         (rs6000_output_move_128bit): Add support for ISA 3.0 vector
1784         instructions.
1786         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
1787         direct move instructions.
1788         (vsx_movti_64bit): Likewise.
1789         (vsx_extract_<mode>): Likewise.
1791         * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
1792         macros for ISA 3.0 direct move instructions.
1793         (TARGET_DIRECT_MOVE_128): Likewise.
1794         (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
1795         instruction.
1797         * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
1798         constraints.  Update wa documentation to say not to use %x<n> on
1799         instructions that only take Altivec registers.
1801 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
1803         * Makefile.in (OBJS): Add gcc-rich-location.o.
1804         * diagnostic.c (diagnostic_append_note): Pass line_table to
1805         rich_location ctor.
1806         (emit_diagnostic): Likewise.
1807         (inform): Likewise.
1808         (inform_n): Likewise.
1809         (warning): Likewise.
1810         (warning_at): Likewise.
1811         (warning_n): Likewise.
1812         (pedwarn): Likewise.
1813         (permerror): Likewise.
1814         (error): Likewise.
1815         (error_n): Likewise.
1816         (error_at): Likewise.
1817         (sorry): Likewise.
1818         (fatal_error): Likewise.
1819         (internal_error): Likewise.
1820         (internal_error_no_backtrace): Likewise.
1821         (source_range::debug): Likewise.
1822         * gcc-rich-location.c: New file.
1823         * gcc-rich-location.h: New file.
1824         * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
1825         (warning_at): Likewise.
1826         * gimple.h (gimple_set_block): Use set_block function.
1827         * input.c (dump_line_table_statistics): Dump stats on how many
1828         ranges were optimized vs how many needed ad-hoc table.
1829         (write_digit_row): Add "map" param; use its range_bits
1830         to calculate the per-character offset.
1831         (dump_location_info): Print the range and column bits for each
1832         ordinary map.  Use the range bits to calculate the per-character
1833         offset.  Pass the map as a new param to the various calls to
1834         write_digit_row.  Eliminate uses of
1835         ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
1836         * print-tree.c (print_node): Print any source range information.
1837         * rtl-error.c (diagnostic_for_asm): Likewise.
1838         * toplev.c (general_init): Initialize line_table's
1839         default_range_bits.
1840         * tree-cfg.c (move_block_to_fn): Likewise.
1841         (move_block_to_fn): Likewise.
1842         * tree-inline.c (copy_phis_for_bb): Likewise.
1843         * tree.c (tree_set_block): Likewise.
1844         (get_pure_location): New function.
1845         (set_source_range): New functions.
1846         (set_block): New function.
1847         (set_source_range): New functions.
1848         * tree.h (CAN_HAVE_RANGE_P): New.
1849         (EXPR_LOCATION_RANGE): New.
1850         (EXPR_HAS_RANGE): New.
1851         (get_expr_source_range): New inline function.
1852         (DECL_LOCATION_RANGE): New.
1853         (set_source_range): New decls.
1854         (get_decl_source_range): New inline function.
1856 2015-11-13  Alan Lawrence  <alan.lawrence@arm.com>
1858         PR tree-optimization/67682
1859         * tree-vect-slp.c (vect_split_slp_store_group): New.
1860         (vect_analyze_slp_instance): During basic block SLP, recurse on
1861         subgroups if vect_build_slp_tree fails after 1st vector.
1863 2015-11-13  Christian Bruel  <christian.bruel@st.com>
1865         PR target/65837
1866         * config/arm/arm.c (arm_option_override): Move NEON check...
1867         (arm_option_check_internal): here
1868         (arm_file_start): Move .fpu print...
1869         (arm_declare_function_name): here
1870         (arm_option_print): Dump current fpu name.
1871         * config/arm/arm.opt (arm_fpu_index): Mark Save.
1873 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
1874             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1876         * combine.c (subst): Don't substitute or simplify when
1877         handling register-wise widening multiply.
1878         (force_to_mode): Likewise.
1880 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
1882         PR tree-optimization/68264
1883         * tree-call-cdce.c (gen_one_condition): Update commentary.
1884         (gen_conditions_for_pow_int_base): Invert the sense of the tests
1885         passed to gen_one_condition.
1886         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
1887         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
1888         using EDGE_FALSE_VALUE for edges to the call block and
1889         EDGE_TRUE_VALUE for the others.
1891 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
1893         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
1894         complex types.
1896 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
1898         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
1900 2015-11-13  Tom de Vries  <tom@codesourcery.com>
1902         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
1903         len_of_prefix.
1905 2015-11-13  Tom de Vries  <tom@codesourcery.com>
1907         * gen-pass-instances.awk (handle_line): Add args_str variable.
1909 2015-11-13  Martin Liska  <mliska@suse.cz>
1911         * graphite-poly.c (free_scop): Release scop->drs vector.
1912         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
1913         Release dom vector.
1914         (try_generate_gimple_bb): Use vNULL as a default initialization
1915         for vectors.
1917 2015-11-13  Martin Liska  <mliska@suse.cz>
1919         PR ipa/68311
1920         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
1921         Replace array initialization (using a variable post-increment)
1922         that possible triggers multiple unsequenced modifications
1923         with a pair of pushes to a vector.
1925 2015-11-13  Richard Biener  <rguenther@suse.de>
1927         PR tree-optimization/68306
1928         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
1929         loop related checks ...
1930         (vect_verify_datarefs_alignment): ... here.
1931         (vect_slp_analyze_and_verify_node_alignment): Compute and
1932         verify alignment of the single DR that it matters.
1933         * tree-vect-stmts.c (vectorizable_store): Add an assert.
1934         (vectorizable_load): Add a comment.
1935         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
1936         for determining load cost.
1938 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
1940         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
1941         mix of boolean and integer vectors in a single statement.
1942         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
1943         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
1944         determine constant type.
1945         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
1946         for loop invariants.
1948 2015-11-13  Alan Hayward <alan.hayward@arm.com>
1950         PR tree-optimization/66558
1951         * tree-vect-loop.c (is_integer_induction):Add.
1952         (vectorizable_reduction): Add integer induction checks.
1954 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
1956         Revert [ARM] Remove neon-testgen.ml and generated tests.
1958         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
1960         [ARM] Remove neon-testgen.ml and generated tests.
1962         * config/arm/neon-testgen.ml: Remove.
1964 2015-11-13  Richard Biener  <rguenther@suse.de>
1966         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
1967         Signal fatal failure if early checks fail.
1968         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
1969         do not bother testing further vector sizes.
1971 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
1973         * config/i386/predicates.md (misaligned_operand): Return true if
1974         operand is aligned to less than its natural alignmnet.
1976 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
1978         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
1979         (vec_cmpu@var{m}@var{n}): New item.
1980         (vcond@var{m}@var{n}): Specify comparison is signed.
1981         (vcondu@var{m}@var{n}): New item.
1982         (vcond_mask_@var{m}@var{n}): New item.
1983         (maskload@var{m}@var{n}): New item.
1984         (maskstore@var{m}@var{n}): New item.
1986 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
1988         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
1989         types of stored value and storage are compatible.
1991 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
1993         * gcc.c (POST_LINK_SPEC): Define if not already defined.
1994         (LINK_COMMAND_SPEC): Use post_link.
1995         (post_link_spec): New, initialize to POST_LINK_SPEC.
1996         (post_link): Initialize new static spec.
1997         * doc/tm.texi.in (POST_LINK_SPEC): Document.
1998         * doc/tm.texi: Regenerated.
2000 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2002         PR driver/67613
2003         * Makefile.in (GCC_OBJS): Add spellcheck.o.
2004         (OBJS): Add spellcheck-tree.o.
2005         * gcc.c: Include "spellcheck.h".
2006         (suggest_option): New function.
2007         (driver::handle_unrecognized_options): Call suggest_option to
2008         provide a hint about misspelled options.
2009         * spellcheck.c: Update file comment.
2010         (levenshtein_distance): Convert 4-param implementation from static
2011         to extern scope.  Remove note about unit tests from leading
2012         comment for const char * implementation.  Move tree
2013         implementation to...
2014         * spellcheck-tree.c: New file.
2015         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
2017 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2019         * Makefile.in (OBJS): Add spellcheck.o.
2020         * spellcheck.c: New file.
2021         * spellcheck.h: New file.
2023 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
2025         * config/ft32/ft32.md (*sne): New insn pattern.
2027 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
2029         * gcc/cprop.c (is_too_expensive): Remove.
2030         (gcse.h): Include.
2031         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
2032         is_too_expensive.
2033         * gcc/gcse.h (gcse_or_cprop_is_too_expensive): Declare.
2034         * gcc/gcse.c (is_too_expensive): Rename to ...
2035         (gcse_or_cprop_is_too_expensive): ... this.
2036         Expand warning to add required size of max-gcse-memory.
2037         (one_pre_gcse_pass): Use it.
2038         (one_code_hoisting_pass): Use it.
2039         * gcc/params.def (max-gcse-memory): Increase from 50MB to 128MB.
2041 2015-11-12  James Norris  <jnorris@codesourcery.com>
2042             Joseph Myers  <joseph@codesourcery.com>
2044         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
2045         GF_OMP_TARGET_KIND_OACC_DECLARE.
2046         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
2047         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2048         * gimplify.c (oacc_declare_returns): New.
2049         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
2050         (device_resident_p): New function.
2051         (oacc_default_clause): Handle device_resident clause.
2052         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
2053         (gimplify_expr): Handle OACC_DECLARE.
2054         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
2055         * omp-low.c (expand_omp_target): Handle
2056         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
2057         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
2058         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
2059         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
2060         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2061         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
2062         GOMP_MAP_DEVICE_RESIDENT.
2064 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
2066         [ARM] Remove neon-testgen.ml and generated tests.
2068         * config/arm/neon-testgen.ml: Remove.
2070 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
2072         * config/aarch64/aarch64-cores.def (qdf24xx): New.
2073         * config/aarch64/aarch64-tune.md: Regenerated.
2074         * config/arm/arm-cores.def (qdf24xx): New.
2075         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
2076         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
2077         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
2078         (ARM Options/-mtune): Likewise.
2080 2015-11-12  Martin Liska  <mliska@suse.cz>
2082         * config/i386/i386.c (ix86_valid_target_attribute_p):
2083         Finalize options at the of the function.
2084         * gcc.c (driver_get_configure_time_options): Call newly
2085         introduced init_opts_obstack.
2086         * lto-wrapper.c (main): Likewise.
2087         * opts.c (init_opts_obstack): New function.
2088         (init_options_struct): Call newly introduced init_opts_obstack.
2089         * opts.h (init_options_struct): Declare.
2091 2015-11-12  Martin Liska  <mliska@suse.cz>
2093         PR ipa/68035
2094         * ipa-icf.c (void sem_item::set_hash): New function.
2095         (sem_function::get_hash): Use renamed m_hash member variable.
2096         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
2097         (sem_item::update_hash_by_local_refs): Likewise.
2098         (sem_variable::get_hash): Use renamed m_hash member variable.
2099         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
2100         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
2101         (sem_item_optimizer::build_graph): As the hash value of an item
2102         is lazy initialized, force the calculation.
2103         * ipa-icf.h (set_hash): Declare new function and rename hash member
2104         variable to m_hash.
2106 2015-11-12  Richard Biener  <rguenther@suse.de>
2108         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
2109         Rename to vect_slp_analyze_instance_dependence.
2110         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2111         Remove WAR special-case.
2112         (vect_slp_analyze_node_dependences): Instead add more specific
2113         code here, not relying on other instances being vectorized.
2114         (vect_slp_analyze_instance_dependence): Adjust accordingly.
2115         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
2116         vertical space in dump files.
2117         (vect_print_slp_tree): Likewise.
2118         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
2119         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
2120         not vectorized stmts until after dependence analysis removed
2121         instances.  Merge alignment and dependence checks.
2122         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
2123         flag on all stmts.
2125 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
2127         * config/aarch64/aarch64-protos.h (tune_params): Add new members
2128         "max_case_values" and "cache_line_size".
2129         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
2130         function.
2131         (aarch64_override_options_internal): Tune heuristics based on new
2132         members in "tune_params".
2133         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2135 2015-11-12  Richard Biener  <rguenther@suse.de>
2137         PR tree-optimization/68306
2138         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
2139         relevant and vectorizable checks here.
2140         (vect_verify_datarefs_alignment): Add relevant check here.
2142 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
2144         * gimplify.c (oacc_default_clause): New.
2145         (omp_notice_variable): Call it.
2147 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
2149         PR tree-optimization/68305
2150         * tree-vect-slp.c (vect_get_constant_vectors): Support
2151         COND_EXPR with SSA_NAME as a condition.
2153 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2155         * config/visium/visium-protos.h (notice_update_cc): Delete.
2156         (print_operand): Likewise.
2157         (print_operand_address): Likewise.
2159 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
2161         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
2162         FUNCTION_VALUE_REGNO_P): Remove.
2163         * config/alpha/alpha-protos.h (function_value): Remove.
2164         * config/alpha/alpha.c (function_value): Rename to...
2165         (alpha_function_value_1): ... this.  Make static.
2166         (alpha_function_value, alpha_libcall_value,
2167         alpha_function_value_regno_p): New functions.
2168         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2169         TARGET_FUNCTION_VALUE_REGNO_P): Define.
2171 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
2173         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2174         * config/alpha/alpha.c (alpha_memory_latency): Make static.
2175         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
2176         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2178 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2180         PR target/67265
2181         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
2182         assertion on the CFA register.
2184 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
2186         * expr.c (do_store_flag): Expand vector comparison as
2187         VEC_COND_EXPR if vector comparison is not supported by target.
2189 2015-11-12  Renlin Li  <renlin.li@arm.com>
2191         * config/arm/arm.md (addsi3_compare_op2): Make the order of
2192         assembly pattern consistent with constraint order.
2194 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2196         * gen-pass-instances.awk (handle_line): Simplify match regexp.
2198 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2200         * gen-pass-instances.awk (handle_line): Simplify init of
2201         postfix_starts_at.
2203 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2205         * gen-pass-instances.awk (handle_line): Rename var where to
2206         call_starts_at.
2208 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
2210         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
2211         do not expand to rtl.
2213 2015-11-12  Richard Biener  <rguenther@suse.de>
2215         PR tree-optimization/58497
2216         * tree-vect-generic.c: Include gimplify.h.
2217         (tree_vec_extract): Lookup constant/constructor DEFs.
2218         (do_cond): Unshare cond.
2220 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
2222         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
2223         combined insn if the alignment of vector mode memory operand
2224         is less than ssememalign.
2226 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2228         * gen-pass-instances.awk (handle_line): Print parentheses and
2229         pass_name explicitly.
2231 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2233         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
2234         and postfix vars.
2236 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2238         * gen-pass-instances.awk (handle_line): Add comments.
2240 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2242         * gen-pass-instances.awk (handle_line): Rename len_of_end to
2243         len_of_close.
2245 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2247         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
2249 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2251         * gen-pass-instances.awk (handle_line): Restructure using early-out.
2253 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2255         * gen-pass-instances.awk (handle_line): Unify semicolon use.
2257 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2259         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
2261 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2263         * gen-pass-instances.awk: Add emacs indent setting.
2265 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2267         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
2268         to match.pd.
2269         Move Convert A/(B/C) to (A/B)*C to match.pd.
2270         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
2271         Move Optimize (X & (-A)) / A where A is a power of 2, to
2272         X >> log2(A) to match.pd.
2274         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
2275         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
2276         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
2277         New simplifier.
2278         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
2280 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
2282         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
2283         variable.
2284         (neon_vst2_lane<mode>): Likewise.
2285         (neon_vld3_lane<mode>): Likewise.
2286         (neon_vst3_lane<mode>): Likewise.
2287         (neon_vld4_lane<mode>): Likewise.
2288         (neon_vst4_lane<mode>): Likewise.
2290 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
2291             Sebastian Pop  <s.pop@samsung.com>
2293         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2294         New member codegen_error
2295         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
2296         early return.
2297         (translate_isl_ast_node_user): Early return in case of error.
2298         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2299         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
2300         (add_parameters_to_ivs_params): Remove macro.
2301         (graphite_regenerate_ast_isl): Add if_region pointer to region.
2302         * graphite-poly.c (new_poly_dr): Remove macro.
2303         (print_pdr): Same.
2304         (new_gimple_poly_bb): Same.
2305         (free_gimple_poly_bb): Same.
2306         (print_scop_params): Same.
2307         * graphite-poly.h (struct poly_dr): Same.
2308         (struct poly_bb): Add new_bb.
2309         (gbb_from_bb): Remove dead code.
2310         (pbb_from_bb): Same.
2311         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
2312         (parameter_index_in_region): Same.
2313         (find_scop_parameters): Same.
2314         (build_cross_bb_scalars_def): New.
2315         (build_cross_bb_scalars_use): New.
2316         (graphite_find_cross_bb_scalar_vars): New
2317         (try_generate_gimple_bb): Reads and Writes.
2318         (build_alias_set): Move.
2319         (gather_bbs::before_dom_children): Gather bbs visited.
2320         (build_scops): call build_alias_set.
2321         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
2322         (remove_simple_copy_phi): Delete.
2323         (remove_invariant_phi): Delete.
2324         (simple_copy_phi_p): Delete.
2325         (reduction_phi_p): Delete.
2326         (isl_id_for_dr): Remove unused param.
2327         (parameter_index_in_region_1): Remove macro usage.
2328         (set_scop_parameter_dim): Same.
2329         (add_param_constraints): Same.
2330         (add_conditions_to_constraints): Same
2331         (build_scop_iteration_domain): Same.
2332         (pdr_add_alias_set): Comment.
2333         (add_scalar_version_numbers): New.
2334         (build_poly_dr): ISL id.
2335         (build_scop_drs): Move.
2336         (build_poly_sr_1): Same.
2337         (insert_stmts): Remove.
2338         (build_poly_sr): New.
2339         (new_pbb_from_pbb): Delete.
2340         (insert_out_of_ssa_copy_on_edge): Delete.
2341         (create_zero_dim_array): Delete.
2342         (scalar_close_phi_node_p): Delete.
2343         (propagate_expr_outside_region): Delete.
2344         (rewrite_close_phi_out_of_ssa): Delete.
2345         (rewrite_phi_out_of_ssa): Delete.
2346         (rewrite_degenerate_phi): Delete.
2347         (rewrite_reductions_out_of_ssa): Delete.
2348         (rewrite_cross_bb_scalar_dependence): Delete.
2349         (handle_scalar_deps_crossing_scop_limits):
2350         (rewrite_cross_bb_scalar_deps): Delete.
2351         (build_poly_scop): Remove calls to out-of-ssa functions.
2352         * graphite.c (graphite_transform_loops): Early return in case of
2353         codegen error.
2354         * sese.c (debug_rename_map_1): Delete.
2355         (debug_rename_map): Delete.
2356         (sese_record_loop): Remove macro.
2357         (build_sese_loop_nests): Same.
2358         (new_sese_info): Same.
2359         (free_sese_info): Same.
2360         (sese_insert_phis_for_liveouts):
2361         (is_loop_closed_ssa_use): New.
2362         (number_of_phi_nodes): New.
2363         (bb_contains_loop_close_phi_nodes): New.
2364         (bb_contains_loop_phi_nodes): New.
2365         (phi_uses_name): New.
2366         (is_valid_rename):
2367         (get_rename): Add old_bb and loop_phi for more precise matching of
2368         exprs.
2369         (set_rename): Pass region.
2370         (later_of_the_two): New.
2371         (gsi_insert_earliest): New.
2372         (collect_all_ssa_names): New.
2373         (substitute_ssa_name): New.
2374         (rename_all_uses): New.
2375         (get_rename_from_scev): New.
2376         (rename_uses): Pass old_bb for more precise matching of exprs.
2377         (get_def_bb_for_const): New.
2378         (get_new_name): New.
2379         (get_loc): New.
2380         (get_edges): New.
2381         (copy_loop_phi_args): New.
2382         (copy_loop_phi_nodes): New.
2383         (get_loop_init_value): New.
2384         (find_init_value): New.
2385         (find_init_value_close_phi): New.
2386         (copy_loop_close_phi_args): New.
2387         (copy_loop_close_phi_nodes): New.
2388         (add_phi_arg_for_new_expr): New.
2389         (copy_cond_phi_args): New.
2390         (copy_cond_phi_nodes): New.
2391         (copy_phi_nodes): New.
2392         (should_copy_to_new_region): New.
2393         (set_rename_for_each_def): New.
2394         (graphite_copy_stmts_from_block): Early return in case of error.
2395         (copy_bb_and_scalar_dependences): Same.
2396         * sese.h (vec_find): New.
2397         (SESE_PARAMS): Delete.
2398         (SESE_LOOPS): Delete.
2399         (SESE_LOOP_NEST): Delete.
2400         (sese_contains_loop): Remove macro usage.
2401         (sese_nb_params): Same.
2402         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
2404 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
2406         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
2407         isl_union_map_add_map on every pbb->schedule.
2409 2015-11-11  Tom de Vries  <tom@codesourcery.com>
2411         * tree-parloops.c (create_parallel_loop): Return void.
2413 2015-11-11  Tom de Vries  <tom@codesourcery.com>
2415         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
2416         block only when needed.
2418 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
2420         * config/alpha/alpha-protos.h (print_operand): Remove.
2421         (print_operand_address): Remove.
2422         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
2423         (PRINT_OPERAND_ADDRESS): Remove.
2424         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
2425         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
2426         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
2427         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
2428         (print_operand_address): Rename to...
2429         (alpha_print_operand_address): ...this and make static.
2430         (print_operand): Rename to...
2431         (alpha_print_operand): ...this and make static.
2432         (alpha_print_operand_punct_valid_p): New static function.
2434 2015-11-11  Richard Biener  <rguenther@suse.de>
2436         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
2437         Declare.
2438         (vect_analyze_data_refs_alignment): Make loop vect specific.
2439         (vect_verify_datarefs_alignment): Likewise.
2440         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
2441         Add missing continue.
2442         (vect_compute_data_ref_alignment): Export.
2443         (vect_compute_data_refs_alignment): Merge into...
2444         (vect_analyze_data_refs_alignment): ... this.
2445         (verify_data_ref_alignment): Split out from ...
2446         (vect_verify_datarefs_alignment): ... here.
2447         (vect_slp_analyze_and_verify_node_alignment): New function.
2448         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
2449         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
2450         misplaced checks on alignment.
2451         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
2452         alignment analysis after SLP discovery and do it per instance.
2453         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
2454         bother to re-try using different vector sizes.
2456 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
2457             Cesar Philippidis  <cesar@codesourcery.com>
2459         * gimplify.c (enum omp_region_type): Add ORT_ACC,
2460         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
2461         (gimple_add_tmp_var): Add ORT_ACC checks.
2462         (gimplify_var_or_parm_decl): Likewise.
2463         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
2464         (omp_add_variable): Look in outer contexts for openacc and allow
2465         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
2466         (omp_notice_variable, omp_is_private, omp_check_private): Add
2467         ORT_ACC checks.
2468         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
2469         Permit private openacc reductions.
2470         (gimplify_oacc_cache): Specify ORT_ACC.
2471         (gimplify_omp_workshare): Adjust OpenACC region types.
2472         (gimplify_omp_target_update): Likewise.
2473         * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
2474         (lower-rec_input_clauses): Don't handle openacc firstprivate
2475         references here.
2476         (lower_omp_target): Emit initializers for openacc firstprivate vars.
2478 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
2480         PR target/67265
2481         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
2482         frame pointer for stack checking if non-call exceptions aren't used.
2483         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
2485 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
2487         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
2488         [LA]SHIFTRT.
2490 2015-11-11  Martin Liska  <mliska@suse.cz>
2491             Richard Biener  <rguenther@suse.de>
2493         PR rtl-optimization/68287
2494         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
2495         number of elements.
2497 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
2499         * config/mips/mips.c (mips_breakable_sequence_p): New function.
2500         (mips_break_sequence): New function.
2501         (mips_reorg_process_insns): Use them. Use compact branches in selected
2502         situations.
2504 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
2506         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
2508 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
2509             Jim Wilson  <wilson@gcc.gnu.org>
2511         PR target/67305
2512         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
2513         be true and eliminable registers mentioned.
2515 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
2517         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
2518         options.
2519         * config/arc/arc-opts.h: Add ARCv2 CPUs.
2520         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
2521         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
2522         situation, and store instructions with large offsets.
2523         (arc_secondary_reload_conv): New function.
2524         (arc_init): Add ARCv2 options.
2525         (arc_conditional_register_usage): Select the proper register usage
2526         for ARCv2 processors.
2527         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
2528         architecture.
2529         (arc_compute_function_type): Likewise.
2530         (arc_print_operand): Handle new ARCv2 punctuation characters.
2531         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
2532         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
2533         function.
2534         (arc_reorg, arc_hazard): Use it.
2535         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
2536         (ASM_SPEC): Add ARCv2 options.
2537         (TARGET_NORM): ARC HS has norm instructions by default.
2538         (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
2539         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
2540         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
2541         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
2542         Likewise.
2543         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
2544         (TARGET_LP_WR_INTERLOCK): Likewise.
2545         * config/arc/arc.md
2546         (commutative_binary_mult_comparison_result_used, movsicc_insn)
2547         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
2548         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
2549         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
2550         Use it for ARCv2.
2551         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
2552         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
2553         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
2554         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
2555         (extzvsi): New pattern.
2556         * config/arc/arc.opt: New ARCv2 options.
2557         * config/arc/arcEM.md: New file.
2558         * config/arc/arcHS.md: Likewise.
2559         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
2560         values.
2561         (Cm2): A signed 9-bit integer constant constraint.
2562         (C62): An unsigned 6-bit integer constant constraint.
2563         (C16): A signed 16-bit integer constant constraint.
2564         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
2565         (short_const_int_operand): New predicate.
2566         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
2567         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
2568         -mcode-density and -mdiv-rem.
2570 2015-11-11  Julia Koval  <julia.koval@intel.com>
2572         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
2574 2015-11-11  Julia Koval  <julia.koval@intel.com>
2576         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
2578 2015-11-11  Martin Liska  <mliska@suse.cz>
2580         * gimple-ssa-strength-reduction.c (create_phi_basis):
2581         Use auto_vec.
2582         * passes.c (release_dump_file_name): New function.
2583         (pass_init_dump_file): Used from this function.
2584         (pass_fini_dump_file): Likewise.
2585         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
2586         * var-tracking.c (vt_initialize): Use pool_allocator.
2588 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
2589             Jiong Wang      <jiong.wang@arm.com>
2591         PR tree-optimization/68234
2592         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
2593         node which estimiated to be VR_VARYING initially.
2595 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
2597         * regname.c (scan_rtx_reg): Check the matching number of consecutive
2598         registers when tying chains.
2599         (build_def_use): Move terminated_this_insn earlier in the function.
2601 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
2603         * configure.ac: Use = with test and not ==.
2604         * configure: Regenerated.
2606 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
2608         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
2609         machine asserts.  Update defines for 64 bit.
2611 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
2613         PR target/63870
2614         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
2615         lane number.
2616         (neon_vst1_lane<mode>): Likewise.
2617         (neon_vld2_lane<mode>): Likewise.
2618         (neon_vst2_lane<mode>): Likewise.
2619         (neon_vld3_lane<mode>): Likewise.
2620         (neon_vst3_lane<mode>): Likewise.
2621         (neon_vld4_lane<mode>): Likewise.
2622         (neon_vst4_lane<mode>): Likewise.
2624 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
2626         PR target/63870
2627         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
2628         qualifier_struct_load_store_lane_index.
2629         (arm_storestruct_lane_qualifiers) Likewise.
2630         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
2631         big-endian.
2632         (neon_vst1_lane<mode>) Likewise.
2633         (neon_vld2_lane<mode>) Likewise.
2634         (neon_vst2_lane<mode>) Likewise.
2635         (neon_vld3_lane<mode>) Likewise.
2636         (neon_vst3_lane<mode>) Likewise.
2637         (neon_vld4_lane<mode>) Likewise.
2638         (neon_vst4_lane<mode>) Likewise.
2640 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
2642         PR target/63870
2643         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
2644         qualifier_struct_load_store_lane_index.
2645         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2646         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
2647         argument qualifiers.
2648         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
2649         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
2651 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
2653         * config/nvptx/nvptx.opt (moptimize): New flag.
2654         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
2655         default.
2656         (nvptx_optimize_inner): New.
2657         (nvptx_process_pars): Call it when optimizing.
2658         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
2660 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2662         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
2663         Remove redundant code.
2665 2015-11-10  Jeff Law  <law@redhat.com>
2667         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
2668         call to output_address.
2669         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
2670         Add unnamed machine_mode argument.
2672 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2674         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
2675         default to 64-bit.
2677 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
2679         * config/i386/i386.md (*movabs<mode>_1): Add explicit
2680         size directives for -masm=intel.
2681         (*movabs<mode>_2): Ditto.
2683 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
2685         * config/i386/i386.c (ix86_print_operand): Remove dead code that
2686         tried to avoid (%rip) for call operands.
2688 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
2690         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
2691         argument.  Do not use RIP relative addressing when no_rip is set.
2692         (ix86_print_operand): Update call to ix86_print_operand_address_as.
2693         (ix86_print_operand_address): Ditto.
2694         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
2695         absolute movabs operand 0.  Add square braces for -masm=intel.
2696         (*movabs<mode>_2): Ditto for operand 1.
2698 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2700         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
2701         combine_vcvtf2i pattern.
2703 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2705         * config/arm/arm.c (neon_valid_immediate): Remove integer
2706         CONST_DOUBLE handling.  It should never occur.
2708 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
2710         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
2711         (ATOMIC_LDOP): Likewise.
2712         (atomic_ldop): Likewise.
2713         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
2714         (ATOMIC_LDOP): Likewise.
2715         (atomic_ldop): Likewise.
2717 2015-11-10  Martin Liska  <mliska@suse.cz>
2719         * alloc-pool.h (allocate_raw): New function.
2720         (operator new (size_t, object_allocator<T> &a)): Use the
2721         function instead of object_allocator::allocate).
2723 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2725         * config/i386/sse.md (HALFMASKMODE): New attribute.
2726         (DOUBLEMASKMODE): New attribute.
2727         (vec_pack_trunc_qi): New.
2728         (vec_pack_trunc_<mode>): New.
2729         (vec_unpacks_lo_hi): New.
2730         (vec_unpacks_lo_si): New.
2731         (vec_unpacks_lo_di): New.
2732         (vec_unpacks_hi_hi): New.
2733         (vec_unpacks_hi_<mode>): New.
2735 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2737         * optabs.c (expand_binop_directly): Allow scalar mode for
2738         vec_pack_trunc_optab.
2739         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2740         boolean vector producers from pattern sequence when computing VF.
2741         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
2742         vect_recog_mask_conversion_pattern.
2743         (search_type_for_mask): Choose the smallest
2744         type if different size types are mixed.
2745         (build_mask_conversion): New.
2746         (vect_recog_mask_conversion_pattern): New.
2747         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
2748         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
2749         load with pattern.
2750         (vectorizable_conversion): Support boolean vectors.
2751         (free_stmt_vec_info): Allow patterns for statements with no lhs.
2752         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
2754 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2756         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
2757         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
2758         Cast mask to FP mode if required.
2759         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
2760         (vcond_mask_<mode><avx512fmaskmodelower>): New.
2761         (vcond_mask_<mode><sseintvecmodelower>): New.
2762         (vcond_mask_<mode><sseintvecmodelower>): New.
2763         (vcond_mask_v2div2di): New.
2764         (vcond_mask_<mode><sseintvecmodelower>): New.
2765         (vcond_mask_<mode><sseintvecmodelower>): New.
2767 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2769         * optabs-query.h (get_vcond_mask_icode): New.
2770         * optabs-tree.c (expand_vec_cond_expr_p): Use
2771         get_vcond_mask_icode for VEC_COND_EXPR with mask.
2772         * optabs.c (expand_vec_cond_mask_expr): New.
2773         (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
2774         * optabs.def (vcond_mask_optab): New.
2775         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
2776         generate redundant comparison for COND_EXPR.
2777         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
2778         as a condition.
2779         (vectorizable_condition): Likewise.
2780         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
2781         cond_exp with no embedded comparison.
2782         (vect_build_slp_tree_1): Likewise.
2784 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2786         * config/i386/sse.md (maskload<mode>): Rename to ...
2787         (maskload<mode><sseintvecmodelower>): ... this.
2788         (maskstore<mode>): Rename to ...
2789         (maskstore<mode><sseintvecmodelower>): ... this.
2790         (maskload<mode><avx512fmaskmodelower>): New.
2791         (maskstore<mode><avx512fmaskmodelower>): New.
2793 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2795         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
2796         (expand_MASK_STORE): Adjust to maskstore optab changes.
2797         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
2798          Adjust to maskload, maskstore optab changes.
2799         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
2800         * optabs.def (maskload_optab): Transform into convert optab.
2801         (maskstore_optab): Likewise.
2802         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
2803         can_vec_mask_load_store_p signature change.
2804         (predicate_mem_writes): Use boolean mask.
2805         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
2806         can_vec_mask_load_store_p signature change.  Allow invariant masks.
2807         (vectorizable_operation): Ignore type precision for boolean vectors.
2809 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2811         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
2812         (const_vector_mask_from_tree): New.
2813         (const_vector_from_tree): Use const_vector_mask_from_tree
2814         for boolean vectors.
2815         * optabs-query.h (get_vec_cmp_icode): New.
2816         * optabs-tree.c (expand_vec_cmp_expr_p): New.
2817         * optabs-tree.h (expand_vec_cmp_expr_p): New.
2818         * optabs.c (vector_compare_rtx): Add OPNO arg.
2819         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
2820         (expand_vec_cmp_expr): New.
2821         * optabs.def (vec_cmp_optab): New.
2822         (vec_cmpu_optab): New.
2823         * optabs.h (expand_vec_cmp_expr): New.
2824         * tree-vect-generic.c (expand_vector_comparison): Add vector
2825         comparison optabs check.
2826         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
2827         operations for VF.  Add mask type computation.
2828         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
2829         (vectorizable_comparison): New.
2830         (vect_analyze_stmt): Add vectorizable_comparison.
2831         (vect_transform_stmt): Likewise.
2832         (vect_init_vector): Support boolean vector invariants.
2833         (vect_get_vec_def_for_operand): Add VECTYPE arg.
2834         (vectorizable_condition): Directly provide vectype for invariants
2835         used in comparison.
2836         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
2837         (enum vect_var_kind): Add vect_mask_var.
2838         (enum stmt_vec_info_type): Add comparison_vec_info_type.
2839         (vectorizable_comparison): New.
2840         (vect_get_vec_def_for_operand): Add VECTYPE arg.
2841         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
2842         (vect_create_destination_var): Likewise.
2843         * tree-vect-patterns.c (check_bool_pattern): Check fails
2844         if we can vectorize comparison directly.
2845         (search_type_for_mask): New.
2846         (vect_recog_bool_pattern): Support cases when bool pattern check fails.
2847         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
2848         comparison statements.
2849         (vect_get_constant_vectors): Support boolean vector constants.
2850         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
2851         (ix86_expand_int_vec_cmp): New.
2852         (ix86_expand_fp_vec_cmp): New.
2853         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
2854         op_true and op_false.
2855         (ix86_int_cmp_code_to_pcmp_immediate): New.
2856         (ix86_fp_cmp_code_to_pcmp_immediate): New.
2857         (ix86_cmp_code_to_pcmp_immediate): New.
2858         (ix86_expand_mask_vec_cmp): New.
2859         (ix86_expand_fp_vec_cmp): New.
2860         (ix86_expand_int_sse_cmp): New.
2861         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
2862         (ix86_expand_int_vec_cmp): New.
2863         (ix86_get_mask_mode): New.
2864         (TARGET_VECTORIZE_GET_MASK_MODE): New.
2865         * config/i386/sse.md (avx512fmaskmodelower): New.
2866         (vec_cmp<mode><avx512fmaskmodelower>): New.
2867         (vec_cmp<mode><sseintvecmodelower>): New.
2868         (vec_cmpv2div2di): New.
2869         (vec_cmpu<mode><avx512fmaskmodelower>): New.
2870         (vec_cmpu<mode><sseintvecmodelower>): New.
2871         (vec_cmpuv2div2di): New.
2873 2015-11-10  Richard Biener  <rguenther@suse.de>
2875         PR tree-optimization/68240
2876         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
2877         properly.
2878         (visit_phi): For PHIs with just a single executable edge
2879         take its value directly.
2880         (expressions_equal_p): Handle VN_TOP properly.
2882 2015-11-10  Richard Biener  <rguenther@suse.de>
2884         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
2885         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
2886         conservatively.
2888 2015-11-10  Richard Biener  <rguenther@suse.de>
2890         PR tree-optimization/56118
2891         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
2892         cost favor vectorized version.
2894 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2896         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
2897         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
2898         (neg_not_op): New code attribute.
2900 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2902         * ifcvt.c (noce_try_inverse_constants): New function.
2903         (noce_process_if_block): Call it.
2904         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
2905         * optabs.def (negcc_optab, notcc_optab): Declare.
2906         * optabs.c (emit_conditional_neg_or_complement): New function.
2907         * doc/tm.texi (Standard Names): Document negcc, notcc names.
2909 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2911         PR rtl-optimization/68236
2912         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
2913         if insn_queue doesn't exist.
2914         (haifa_sched_finish): Reset insn_queue to NULL.
2916 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
2918         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
2919         (build_def_use): Initialize terminated_this_insn.
2920         (find_best_rename_reg): Pick and check register from the tied chain.
2921         (regrename_do_replace): Mark head as renamed.
2922         (struct du_head *terminated_this_insn). New static variable.
2923         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
2924         * regrename.h (struct du_head): Add tied_chain, renamed members.
2926 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2928         PR bootstrap/68256
2929         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
2930         Return false.
2932 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2934         PR target/57845
2935         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
2936         not promote the mode for aggregate types.
2938 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
2940         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
2941         * omp-low.c (build_oacc_routine_dims): New.
2943 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
2945         * config/rs6000/constraints.md (wF constraint): New constraints
2946         for power9/toc fusion.
2947         (wG constraint): Likewise.
2949         * config/rs6000/predicates.md (u6bit_cint_operand): New
2950         predicate, recognize 0..63.
2951         (upper16_cint_operand): New predicate for power9 and toc fusion.
2952         (fpr_reg_operand): Likewise.
2953         (toc_fusion_or_p9_reg_operand): Likewise.
2954         (toc_fusion_mem_raw): Likewise.
2955         (toc_fusion_mem_wrapped): Likewise.
2956         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
2957         address range.
2958         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
2959         instead.
2960         (fusion_addis_mem_combo_load): Add support for power9 fusion of
2961         floating point loads, floating point stores, and gpr stores.
2962         (fusion_addis_mem_combo_store): Likewise.
2963         (fusion_offsettable_mem_operand): Likewise.
2965         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
2966         (emit_fusion_load_store): Likewise.
2967         (fusion_p9_p): Likewise.
2968         (expand_fusion_p9_load): Likewise.
2969         (expand_fusion_p9_store): Likewise.
2970         (emit_fusion_p9_load): Likewise.
2971         (emit_fusion_p9_store): Likewise.
2972         (fusion_wrap_memory_address): Likewise.
2974         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
2975         elements for power9 fusion.
2976         (rs6000_debug_print_mode): Rework debug information to print more
2977         information about fusion.
2978         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
2979         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
2980         offsettable memory address.
2981         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
2982         (emit_fusion_gpr_load): Move most of the code from
2983         emit_fusion_gpr_load into emit_fusion-addis that handles both
2984         power8 and power9 fusion.
2985         (emit_fusion_addis): Likewise.
2986         (emit_fusion_load_store): Likewise.
2987         (fusion_wrap_memory_address): Add support for TOC fusion.
2988         (fusion_split_address): Likewise.
2989         (fusion_p9_p): Add support for power9 fusion.
2990         (expand_fusion_p9_load): Likewise.
2991         (expand_fusion_p9_store): Likewise.
2992         (emit_fusion_p9_load): Likewise.
2993         (emit_fusion_p9_store): Likewise.
2995         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
2996         new instructions in ISA 3.0.
2997         (TARGET_CTZ): Likewise.
2998         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
2999         (TARGET_TOC_FUSION_FP): Likewise.
3001         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
3002         fusion unspecs.
3003         (UNSPEC_FUSION_ADDIS): Likewise.
3004         (QHSI mode iterator): New iterator for power9 fusion.
3005         (GPR_FUSION): Likewise.
3006         (FPR_FUSION): Likewise.
3007         (mod<mode>3): Add support for ISA 3.0 modulus instructions.
3008         (umod<mode>3): Likewise.
3009         (divmod peephole): Likewise.
3010         (udivmod peephole): Likewise.
3011         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
3012         instructions.
3013         (ctz<mode>2_h): Likewise.
3014         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
3015         (ashdi3_extswsli_dot): Likewise.
3016         (ashdi3_extswsli_dot2): Likewise.
3017         (power9 fusion splitter): New power9/toc fusion support.
3018         (toc_fusionload_<mode>): Likewise.
3019         (toc_fusionload_di): Likewise.
3020         (fusion_gpr_load_<mode>): Update predicate function.
3021         (power9 fusion peephole2s): New power9/toc fusion support.
3022         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
3023         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
3024         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
3025         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3026         (fusion_p9_<mode>_constant): Likewise.
3028 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
3030         * optabs.c (prepare_libcall_arg): New function.
3031         (expand_fixed_convert): Add call to prepare_libcall_arg.
3033 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
3035         * sched-int.h (dump_rgn_dependencies_dot): Declare
3036         * sched-rgn.c (dump_rgn_dependencies_dot): New function
3037         * print-rtl.h (print_insn): Add prototype
3039         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
3040         * common.opt (-fsched-verbose): Set default value to 1.
3041         * invoke.texi (-fsched-verbose): Update the option's description.
3043 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3045         * config/visium/visium.h (PRINT_OPERAND): Delete.
3046         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3047         (PRINT_OPERAND_ADDRESS): Likewise.
3048         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
3049         to...
3050         (visium_print_operand_punct_valid_p): ...this.  New function.
3051         (TARGET_PRINT_OPERAND): Define to...
3052         (print_operand): Rename to...
3053         (visium_print_operand): ...this.
3054         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
3055         (visium_output_address): Rename to...
3056         (visium_print_operand_address): ...this.
3057         (print_operand_address): Delete.
3059 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3061         PR middle-end/68259
3062         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
3063         Check that the type of the first operand is an aggregate type.
3065 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
3067         * omp-low.c: Fix some OpenACC comment typos.
3068         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
3069         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
3070         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
3072 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
3074         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
3076 2015-11-09  Jeff Law  <law@redhat.com>
3078         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
3079         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
3080         Fix comment typo.
3082 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3083             Peter Bergner  <bergner@vnet.ibm.com>
3085         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
3086         ISA 3.0 (power9).
3087         (-mpower9-vector): Likewise.
3088         (-mpower9-dform): Likewise.
3089         (-mpower9-minmax): Likewise.
3090         (-mtoc-fusion): Likewise.
3091         (-mmodulo): Likewise.
3092         (-mfloat128-hardware): Likewise.
3094         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
3095         mask for ISA 3.0 (power9).
3096         (POWERPC_MASKS): Add new ISA 3.0 switches.
3097         (power9 cpu): Add power9 cpu.
3099         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
3100         (ASM_CPU_SPEC): Likewise.
3101         (EXTRA_SPECS): Likewise.
3103         * config/rs6000/rs6000-opts.h (enum processor_type): Add
3104         PROCESSOR_POWER9.
3106         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
3107         (rs6000_debug_reg_global): Add support for power9 fusion.
3108         (rs6000_setup_reg_addr_masks): Cache mode size.
3109         (rs6000_option_override_internal): Until real power9 tuning is
3110         added, use -mtune=power8 for -mcpu=power9.
3111         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
3112         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
3113         of Altivec registers.
3114         (rs6000_option_override_internal): Add support for ISA 3.0 switches.
3115         (rs6000_loop_align): Add support for power9 cpu.
3116         (rs6000_file_start): Likewise.
3117         (rs6000_adjust_cost): Likewise.
3118         (rs6000_issue_rate): Likewise.
3119         (insn_must_be_first_in_group): Likewise.
3120         (insn_must_be_last_in_group): Likewise.
3121         (force_new_group): Likewise.
3122         (rs6000_register_move_cost): Likewise.
3123         (rs6000_opt_masks): Likewise.
3125         * config/rs6000/rs6000.md (cpu attribute): Add power9.
3126         * config/rs6000/rs6000-tables.opt: Regenerate.
3128         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3129         _ARCH_PWR9 if power9 support is available.
3131         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
3132         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
3134         * configure.ac: Determine if the assembler supports the ISA 3.0
3135         instructions.
3136         * config.in (HAVE_AS_POWER9): Likewise.
3137         * configure: Regenerate.
3139         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
3140         switches.
3142 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3144         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
3145         Remove integer CONST_DOUBLE handling.  It should never occur.
3147 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3149         PR target/68129
3150         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
3151         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
3152         Delete VOIDmode case.  Assert that mode is not VOIDmode.
3153         * config/aarch64/predicates.md (const0_operand): Remove const_double
3154         match.
3156 2015-11-09  Martin Liska  <mliska@suse.cz>
3158         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
3159         body_info release function.
3160         * ipa-prop.c (ipa_release_body_info): New function.
3161         (ipa_analyze_node): Call the function.
3162         (ipa_node_params::~ipa_node_params): Release known_csts.
3163         * ipa-prop.h (ipa_release_body_info): Declare.
3165 2015-11-09  Martin Liska  <mliska@suse.cz>
3167         * gcc.c (record_temp_file): Release name string.
3168         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
3169         * lra-lives.c (free_live_range_list): Utilize
3170         lra_live_range_pool for allocation and deallocation.
3171         (create_live_range): Likewise.
3172         (copy_live_range): Likewise.
3173         (lra_merge_live_ranges): Likewise.
3174         (remove_some_program_points_and_update_live_ranges): Likewise.
3175         (lra_create_live_ranges_1): Release point_freq_vec that can
3176         be not freed from previous iteration of the function.
3177         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
3178         * tree-sra.c (sra_deinitialize): Release all vectors in
3179         base_access_vec.
3180         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
3181         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
3182         Release edge_info for a removed edge.
3183         (thread_through_all_blocks): Free region vector.
3184         * tree-ssa.h (free_dom_edge_info): Declare function extern.
3186 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
3188         * optabs.c (expand_vec_cond_expr): Always get sign from type.
3189         * tree.c (wide_int_to_tree): Support negative values for boolean.
3190         (build_nonstandard_boolean_type): Use signed type for booleans.
3192 2015-11-09  Richard Biener  <rguenther@suse.de>
3194         PR tree-optimization/68248
3195         * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
3197 2015-11-09  Richard Biener  <rguenther@suse.de>
3199         PR tree-optimization/56118
3200         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
3201         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
3202         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
3203         function.
3204         (vect_slp_analyze_data_ref_dependences): Instead of computing
3205         all dependences of the region DRs just analyze the code motions
3206         SLP vectorization will perform.  Remove SLP instances that
3207         cannot have their store/load motions applied.
3208         (vect_analyze_data_refs): Allow DRs without a vectype
3209         in BB vectorization.
3211 2015-11-09  Julian Brown  <julian@codesourcery.com>
3213         * final.c (output_asm_insn): Pass VOIDmode to output_address.
3214         (output_address): Add MODE argument. Pass to print_operand_address
3215         hook.
3216         * targhooks.c (default_print_operand_address): Add MODE argument.
3217         * targhooks.h (default_print_operand_address): Update prototype.
3218         * output.h (output_address): Update prototype.
3219         * target.def (print_operand_address): Add MODE argument.
3220         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
3221         output_address.
3222         (print_operand): Pass access mode to output_address.
3223         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
3224         argument.
3225         (mcore_print_operand): Update calls to mcore_print_operand_address.
3226         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
3227         output_address.
3228         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
3229         output_address.
3230         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
3231         global.
3232         (tilegx_print_operand): Don't set above global. Update calls to
3233         output_address.
3234         (tilegx_print_operand_address): Add MODE argument. Use instead of
3235         output_memory_reference_mode global.
3236         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
3237         (frv_print_operand): Pass mode to frv_print_operand_address calls.
3238         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
3239         output_address.
3240         * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
3241         (cris_print_operand): Pass mode to output_address calls.
3242         * config/spu/spu.c (print_operand): Pass mode to output_address calls.
3243         * config/aarch64/aarch64.h (aarch64_print_operand)
3244         (aarch64_print_operand_address): Remove prototypes.
3245         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
3246         global.
3247         (aarch64_print_operand): Make static. Update calls to output_address.
3248         (aarch64_print_operand_address): Add MODE argument. Use instead of
3249         aarch64_memory_reference_mode global.
3250         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
3251         hooks.
3252         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
3253         Delete macro definitions.
3254         * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
3255         * config/xtensa/xtensa.c (print_operand): Pass mode in
3256         output_address calls.
3257         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
3258         argument.
3259         (h83000_print_operand): Update calls to h8300_print_operand_address
3260         and output_address.
3261         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
3262         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
3263         global.
3264         (tilepro_print_operand): Pass mode to output_address.
3265         (tilepro_print_operand_address): Add MODE argument. Use instead of
3266         output_memory_reference_mode.
3267         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
3268         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
3269         to output_address calls.
3270         (nvptx_print_operand_address): Add MODE argument.
3271         * config/alpha/alpha.c (print_operand): Pass mode argument in
3272         output_address calls.
3273         * config/m68k/m68k.c (print_operand): Pass mode argument in
3274         output_address call.
3275         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
3276         (avr_print_operand): Update calls to avr_print_operand_address.
3277         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
3278         argument. Update calls to output_address.
3279         (sparc_print_operand): Pass mode to output_address.
3280         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
3281         argument.
3282         (iq2000_print_operand): Pass mode in output_address calls.
3283         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
3284         MODE argument.
3285         (xstormy16_print_operand): Pass mode to
3286         xstormy16_print_operand_address calls.
3287         * config/mips/mips.c (mips_print_operand): Update calls to
3288         output_address.
3289         (mips_print_operand_address): Add MODE argument.
3290         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
3291         to output_address.
3292         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
3293         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
3294         output_address.
3295         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
3296         (rx_print_operand): Update calls to output_address,
3297         rx_print_operand_address.
3298         * config/nds32/nds32.c (nds32_print_operand): Update calls to
3299         output_address.
3300         (nds32_print_operand_address): Add MODE argument.
3301         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
3302         output_address calls.
3303         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
3304         output_address call.
3305         (c6x_print_address_operand): Update calls to output_address.
3306         (c6x_print_operand_address): Pass mode to above.
3307         * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
3308         (v850_print_operand): Pass mode to v850_print_operand_address,
3309         output_address.
3310         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
3311         (mmix_print_operand): Pass mode in output_address calls.
3312         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
3313         (sh_print_operand): Pass mem mode to output_address,
3314         sh_print_operand_address.
3315         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
3316         (cr16_print_operand): Pass mode to output_address,
3317         cr16_print_operand_address.
3318         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
3319         output_address.
3320         * config/microblaze/microblaze.c (print_operand): Pass mode to
3321         output_address.
3322         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
3323         output_address.
3324         (nios2_print_operand_address): Add MODE argument. Update call to
3325         nios2_print_operand_address.
3326         * config/s390/s390.c (print_operand): Pass mode to output_address.
3327         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
3328         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
3329         output_address.
3330         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
3331         Use instead of output_memory_reference_mode.
3332         (output_memory_reference_mode): Delete global.
3333         (arm_print_operand): Pass mem mode to output_address.
3334         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
3335         (m32r_print_operand): Pass mode to output_address.
3336         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
3337         argument.
3338         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
3339         * config/i386/i386.c (ix86_print_operand): Pass mode to
3340         output_address calls.
3341         (ix86_print_operand_address): Add MODE argument.
3343 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3345         PR middle-end/68251
3346         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
3347         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
3348         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
3349         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3351 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3353         PR rtl-optimization/67749
3354         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
3355         case before emitting the two blocks.  Instead modify the register
3356         in the corresponding final insn of the basic block.
3358 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3360         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
3361         assembler syntax.
3362         Support Solaris ld.
3363         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
3365         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
3366         HAVE_INITFINI_ARRAY_SUPPORT.
3367         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
3369         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
3370         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
3371         Don't check HAVE_AS_SPARC_NOBITS.
3372         Heed SECTION_NOTYPE.
3374         * configure: Regenerate.
3375         * config.in: Regenerate.
3377 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3379         PR middle-end/68253
3380         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
3382 2015-11-09  Richard Henderson  <rth@redhat.com>
3384         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
3385         __SEG_GS, __SEG_TLS.
3386         (ix86_register_pragmas): Register address spaces __seg_fs,
3387         __seg_gs, __seg_tls.
3388         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
3389         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
3390         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
3391         * config/i386/i386.c (ix86_decompose_address): Likewise.
3392         (ix86_legitimate_address_p): Likewise.
3393         (memory_address_length): Likewise.  Check mem address space too.
3394         (ix86_print_operand): Use ix86_print_operand_address_as.
3395         (ix86_print_operand_address_as): Rename from
3396         ix86_print_operand_address, add new addr_space_t parameter.
3397         Validate that either the parameter or the ix86_address segment
3398         is default address space.  Handle ADDR_SPACE_SEG_TLS.
3399         (ix86_print_operand_address): New.
3400         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
3401         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
3402         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
3403         (ix86_addr_space_zero_address_valid): New.
3404         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3405         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
3406         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
3407         * config/i386/predicates.md (address_no_seg_operand): Likewise.
3408         (vsib_address_operand): Likewise.
3409         (address_mpx_no_base_operand): Likewise.
3410         (address_mpx_no_index_operand): Likewise.
3411         * doc/extend.texi (x86 Named Address Spaces): New section.
3413         * config/i386/i386.c (ix86_check_no_addr_space): New.
3414         (decide_alg): Add have_as parameter.
3415         (alg_usable_p): Likewise; disable rep algorithms if set.
3416         (ix86_expand_set_or_movmem): Notice if either MEM has a
3417         non-default address space.
3418         (ix86_expand_strlen): Likewise.
3419         * config/i386/i386.md (strmov, strset): Likewise.
3420         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
3421         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
3422         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
3423         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
3424         *cmpstrnqi_1, *strlenqi_1): Likewise.
3426         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
3427         (*movabs<mode>_2): Likewise.
3429         * dwarf2out.c (modified_type_die): Pass the address space number
3430         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
3431         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
3432         * targhooks.c (default_addr_space_debug): New.
3433         * targhooks.h (default_addr_space_debug): Declare.
3434         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
3435         * doc/tm.texi: Rebuild.
3437         * gimple.c (check_loadstore): Return false when 0 is a valid address.
3438         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
3439         null when 0 is valid in the source address space.
3440         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3441         * targhooks.c (default_addr_space_zero_address_valid): New.
3442         * targhooks.h (default_addr_space_zero_address_valid): Declare.
3443         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
3444         * doc/tm.texi: Rebuild.
3446         * cselib.c (add_mem_for_addr): Compare address spaces when
3447         matching memories.
3448         (cselib_lookup_mem): Likewise.
3449         * fold-const.c (operand_equal_p): Check address spaces of
3450         pointer types before checking integer constants.
3452         PR tree-opt/66768
3453         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
3454         the correct type for the base.
3456 2015-11-09  Jeff Law  <law@redhat.com>
3458         * tree-into-ssa.c (names_to_release): No longer static.
3459         * tree-into-ssa.h (names_to_release): Declare.
3460         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
3461         (release_free_names_and_compact_live_names): New function extracted
3462         from pass_release_ssa_names::execute.
3463         (pass_release_ssa_names::execute): Use it.
3465 2015-11-09  Alan Modra  <amodra@gmail.com>
3467         * gensupport.c (add_mnemonic_string): Make len param a size_t.
3468         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
3469         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
3470         return value.
3472 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
3474         PR rtl-optimization/68182
3475         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
3476         branch with only one successor just like unconditional branches.
3478 2015-11-08  Jeff Law  <law@redhat.com>
3480         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
3481         non-FSM path has no edges marked with EDGE_DFS_BACK.
3482         (ssa_redirect_edges): No longer call mark_loop_for_removal.
3483         (thread_single_edge, def_split_header_continue_p): Remove.
3484         (bb_ends_with_multiway_branch): Likewise.
3485         (thread_through_loop_header): Remove cases of threading from
3486         latch through the header.  Simplify knowing we won't thread
3487         the latch.
3488         (thread_through_all_blocks): Simplify knowing that only the FSM
3489         threader needs to handle backedges.
3491 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
3493         * doc/extend.texi (type attributes): Document scalar_storage_order.
3494         (Structure-Packing Pragmas): Rename into...
3495         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
3496         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
3497         (Warnings): Document -Wno-scalar-storage-order.
3498         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
3499         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
3500         extract_bit_field and store_bit_field.
3501         (initialize_argument_information): Adjust call to store_expr.
3502         (load_register_parameters): Adjust call to extract_bit_field.
3503         * expmed.c (check_reverse_storage_order_support): New function.
3504         (check_reverse_float_storage_order_support): Likewise.
3505         (flip_storage_order): Likewise.
3506         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
3507         of the value if it is true.  Pass REVERSE to recursive call after
3508         adjusting the target offset.
3509         Do not use extraction or movstrict instruction if REVERSE is true.
3510         Pass REVERSE to store_fixed_bit_field.
3511         (store_bit_field): Add REVERSE parameter and pass to it to above.
3512         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
3513         store_split_bit_field and store_fixed_bit_field_1.
3514         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
3515         order of the value if it is true and adjust the target offset.
3516         (store_split_bit_field): Add REVERSE parameter and pass it to
3517         store_fixed_bit_field.  Adjust the target offset if it is true.
3518         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
3519         of the value if it is true.  Pass REVERSE to recursive call after
3520         adjusting the target offset.
3521         Do not use extraction or subreg instruction if REVERSE is true.
3522         Pass REVERSE to extract_fixed_bit_field.
3523         (extract_bit_field): Add REVERSE parameter and pass to it to above.
3524         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
3525         extract_split_bit_field and extract_fixed_bit_field_1.
3526         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
3527         order of the value if it is true and adjust the target offset.
3528         (extract_split_bit_field): Add REVERSE parameter and pass it to
3529         extract_fixed_bit_field.  Adjust the target offset if it is true.
3530         * expmed.h (flip_storage_order): Declare.
3531         (store_bit_field): Adjust prototype.
3532         (extract_bit_field): Likewise.
3533         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
3534         (emit_group_store): Adjust call to store_bit_field.
3535         (copy_blkmode_from_reg): Likewise.
3536         (copy_blkmode_to_reg): Likewise.
3537         (write_complex_part): Likewise.
3538         (read_complex_part): Likewise.
3539         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
3540         that it isn't true if the target is a register.
3541         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
3542         and flip the storage order of the value.
3543         <BIT_IOR_EXPR>: Flip the storage order of the value.
3544         (get_bit_range): Adjust call to get_inner_reference.
3545         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
3546         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
3547         with reverse storage order.
3548         (store_expr_with_bounds): Add REVERSE parameter and pass it to
3549         recursive calls and call to store_bit_field.  Force the value into a
3550         register if it is true and then flip the storage order of the value.
3551         (store_expr): Add REVERSE parameter and pass it to above.
3552         (categorize_ctor_elements_1): Adjust call to
3553         initializer_constant_valid_p.
3554         (store_constructor_field): Add REVERSE parameter and pass it to
3555         recursive calls and call to store_field.
3556         (store_constructor): Add REVERSE parameter and pass it to calls to
3557         store_constructor_field and store_expr.  Set it to true for an
3558         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
3559         (store_field): Add REVERSE parameter and pass it to recursive calls
3560         and calls to store_expr and store_bit_field.  Temporarily flip the
3561         storage order of the value with record type and integral mode and
3562         adjust the shift if it is true.
3563         (get_inner_reference): Add PREVERSEP parameter and set it to true
3564         upon encoutering a reference with reverse storage order.
3565         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
3566         (expand_constructor): Adjust call to store_constructor.
3567         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
3568         of the union type to store_expr in the MEM case and assert that it
3569         isn't set in the REG case.  Adjust call to store_field.
3570         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
3571         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
3572         get_inner_reference and extract_bit_field. Temporarily flip the
3573         storage order of the value with record type and integral mode and
3574         adjust the shift if it is true.  Flip the storage order of the value
3575         at the end if it is true.
3576         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
3577         get_inner_reference.  Do not fetch an inner reference if it is true.
3578         * expr.h (store_expr_with_bounds): Ajust prototype.
3579         (store_expr): Likewise.
3580         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
3581         REF_REVERSE_STORAGE_ORDER on the reference according to it.
3582         (optimize_bit_field_compare): Deal with reverse storage order.
3583         Adjust calls to get_inner_reference and make_bit_field_ref.
3584         (decode_field_reference): Add PREVERSEP parameter and adjust call to
3585         get_inner_reference.
3586         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
3587         to decode_field_reference and make_bit_field_ref.
3588         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
3589         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
3590         (fold_comparison): Adjust call to get_inner_reference.
3591         (split_address_to_core_and_offset): Adjust call to
3592         get_inner_reference.
3593         * gimple-expr.c (useless_type_conversion_p): Return false for array
3594         types with different TYPE_REVERSE_STORAGE_ORDER flag.
3595         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
3596         REF_REVERSE_STORAGE_ORDER flag.
3597         * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
3598         * output.h (assemble_real): Adjust prototype.
3599         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
3600         * stor-layout.c (finish_record_layout): Propagate the
3601         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
3602         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
3603         (TYPE_SATURATING): Adjust.
3604         (REF_REVERSE_STORAGE_ORDER): Document.
3605         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
3606         set it to true upon encoutering a reference with reverse storage order.
3607         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
3608         * tree-inline.c (remap_gimple_op_r): Propagate the
3609         REF_REVERSE_STORAGE_ORDER flag.
3610         (copy_tree_body_r): Likewise.
3611         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
3612         store_expr.
3613         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
3614         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
3615         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3616         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
3617         REF_REVERSE_STORAGE_ORDER flag.
3618         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
3619         (gimple_canonical_types_compatible_p): Likewise.
3620         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
3621         (TYPE_SATURATING): Adjust.
3622         (REF_REVERSE_STORAGE_ORDER): New flag.
3623         (reverse_storage_order_for_component_p): New inline predicate.
3624         (storage_order_barrier_p): Likewise.
3625         (get_inner_reference): Adjust prototype.
3626         * varasm.c: Include expmed.h.
3627         (assemble_variable_contents): Adjust call to output_constant.
3628         (assemble_real): Add REVERSE parameter.  Flip the storage
3629         order of the value if REVERSE is true.
3630         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
3631         (assemble_constant_contents): Adjust call to output_constant.
3632         (output_constant_pool_2): Adjust call to assemble_real.
3633         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
3634         TYPE_REVERSE_STORAGE_ORDER.
3635         (initializer_constant_valid_p): Add REVERSE parameter.
3636         (output_constant): Add REVERSE parameter.
3637         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
3638         <REAL_TYPE>: Adjust call to assemble_real.
3639         <COMPLEX_TYPE>: Pass it to recursive calls.
3640         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
3641         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
3642         (struct oc_local_state): Add REVERSE field.
3643         (output_constructor_array_range): Adjust calls to output_constant.
3644         (output_constructor_regular_field): Likewise.
3645         (output_constructor_bitfield): Adjust call to output_constructor.
3646         Flip the storage order of the value if REVERSE is true.
3647         (output_constructor): Add REVERSE parameter.  Set it to true for an
3648         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
3649         output_constructor_bitfield.
3650         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
3651         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
3652         * builtins.c (get_object_alignment_2): Likewise.
3653         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
3654         and get_ref_base_and_extent.
3655         * dbxout.c (dbxout_expand_expr): Likewise.
3656         * dwarf2out.c (add_var_loc_to_decl): Likewise.
3657         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
3658         (loc_list_from_tree): Likewise.
3659         (fortran_common): Likewise.
3660         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
3661         get_ref_base_and_extent.
3662         (get_base_constructor): Likewise.
3663         (fold_const_aggregate_ref_1): Likewise.
3664         * gimple-laddress.c (pass_laddress::execute): Adjust call to
3665         get_inner_reference.
3666         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
3667         get_inner_reference and bail out on reverse storage order.
3668         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
3669         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
3670         build_ref_for_offset.
3671         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
3672         get_ref_base_and_extent.
3673         (ipa_polymorphic_call_context): Likewise.
3674         (extr_type_from_vtbl_ptr_store): Likewise.
3675         (check_stmt_for_type_change): Likewise.
3676         (get_dynamic_type): Likewise.
3677         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
3678         get_ref_base_and_extent.
3679         (compute_complex_assign_jump_func): Likewise.
3680         (get_ancestor_addr_info): Likewise.
3681         (compute_known_type_jump_func): Likewise.
3682         (determine_known_aggregate_parts): Likewise.
3683         (ipa_get_adjustment_candidate): Likewise.
3684         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
3685         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
3686         (build_ref_for_offset): Adjust prototype.
3687         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
3688         get_inner_reference.
3689         * tree-affine.c (tree_to_aff_combination): Adjust call to
3690         get_inner_reference.
3691         (get_inner_reference_aff): Likewise.
3692         * tree-data-ref.c (split_constant_offset_1): Likewise.
3693         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
3694         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
3695         get_inner_reference.
3696         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
3697         (dump_access): Print new fields.
3698         (create_access): Adjust call to get_ref_base_and_extent and set the
3699         REVERSE flag according to the result.
3700         (completely_scalarize_record): Set the REVERSE flag.
3701         (scalarize_elem): Add REVERSE parameter.
3702         (build_access_from_expr_1): Preserve storage order barriers.
3703         (build_accesses_from_assign): Likewise.
3704         (build_ref_for_offset): Add REVERSE parameter and set the
3705         REF_REVERSE_STORAGE_ORDER flag accordingly.
3706         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
3707         the REF_REVERSE_STORAGE_ORDER flag if there are components.
3708         (analyze_access_subtree): Likewise.
3709         (create_artificial_child_access): Set the REVERSE flag.
3710         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
3711         (turn_representatives_into_adjustments): Propagate REVERSE flag.
3712         (ipa_sra_check_caller): Adjust call to get_inner_reference.
3713         * tree-ssa-alias.c (ao_ref_base): Adjust call to
3714         get_ref_base_and_extent.
3715         (aliasing_component_refs_p): Likewise.
3716         (stmt_kills_ref_p_1): Likewise.
3717         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3718         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
3719         Return true if reverse storage order.
3720         <BIT_FIELD_REF>: Likewise.
3721         <COMPONENT_REF>: Likewise.
3722         <ARRAY_REF>: Likewise.
3723         <ARRAY_RANGE_REF>: Likewise.
3724         (split_address_cost): Likewise.  Bail out if reverse storage order.
3725         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
3726         get_inner_reference.  Bail out if reverse storage order.
3727         (bswap_replace): Adjust call to get_inner_reference.
3728         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
3729         the REF_REVERSE_STORAGE_ORDER flag.
3730         <BIT_FIELD_REF>: Likewise.
3731         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
3732         barriers.
3733         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
3734         to the REF_REVERSE_STORAGE_ORDER flag.
3735         <BIT_FIELD_REF>: Likewise.
3736         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
3737         (contains_storage_order_barrier_p): New predicate.
3738         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
3739         Punt on storage order barriers if necessary.
3740         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
3741         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
3742         call to get_ref_base_and_extent.
3743         (do_structure_copy): Likewise.
3744         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
3745         get_inner_reference.
3746         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage order.
3747         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
3748         * ubsan.c (instrument_bool_enum_load): Likewise.
3749         (instrument_object_size): Likewise.
3750         * var-tracking.c (track_expr_p): Adjust call to
3751         get_ref_base_and_extent.
3752         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
3753         get_inner_reference.
3754         * config/s390/s390.c (s390_expand_atomic): Adjust call to
3755         store_bit_field.
3756         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
3757         extract_bit_field.
3758         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
3760 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
3762         * config/sparc/sparc.opt (mfix-at697f): Add final period.
3764 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
3766         PR rtl-optimization/67864
3767         * common/config/i386/i386-common.c (ix86_option_optimization_table)
3768         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
3769         at -Os and up.
3771 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3773         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
3774         internal functions.
3776 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3778         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
3779         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
3781 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3783         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
3784         * internal-fn.c: Don't undef it here.
3785         * tree-core.h: Likewise.
3787 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3789         * builtins.c (fold_builtin_nan): Delete.
3790         (fold_builtin_memcmp): Remove case where both arguments are constant.
3791         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
3792         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
3793         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
3794         * fold-const-call.c: Include fold-const.h.
3795         (host_size_t_cst_p): New function.
3796         (build_cmp_result, fold_const_builtin_nan): Likewise.
3797         (fold_const_call_1): New function, split out from...
3798         (fold_const_call): ...here (for all three interfaces).  Handle
3799         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
3801 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3803         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
3804         (fold_builtin_1): Don't call them.
3805         * fold-const-call.c: Include tm.h.
3806         (fold_const_call_ss): New variant for integer-to-integer folds.
3807         (fold_const_call): Call it.
3809 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3811         * builtins.c (fold_builtin_classify): Move constant cases to...
3812         * fold-const-call.c (fold_const_call_ss): ...here.
3814 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3816         * builtins.h (c_getstr): Move to...
3817         * fold-const.h (c_getstr): ...here.
3818         * builtins.c (c_getstr): Move to...
3819         * fold-const.c (c_getstr): ...here.
3821 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3823         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
3824         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
3826 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3828         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
3829         the dominance info; free it if we can't.
3830         (pass_call_cdce::execute): Don't free the dominance info here.
3832 2015-11-06  Jeff Law <law@redhat.com>
3834         * tree-ssa-threadedge.c (dummy_simplify): Remove.
3835         (thread_around_empty_blocks): Remove backedge_seen_p argument.
3836         If we thread to a backedge, then return false.  Update recursive
3837         call to eliminate backedge_seen_p argument.
3838         (thread_through_normal_block): Remove backedge_seen_p argument.
3839         Remove backedge_seen_p argument from calls to
3840         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
3841         If we thread to a backedge, then return 0.
3842         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
3843         pass it to thread_through_normal_block or thread_through_empty_blocks.
3844         For joiner handling, if we see a backedge, do not try normal
3845         threading.
3847 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
3849         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
3850         * graphite-poly.c (new_scop): Initialize original_schedule.
3851         (free_scop): Free original_schedule.
3852         * graphite-poly.h (struct scop): Add field original_schedule.
3853         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
3854         (build_poly_scop): Call build_scop_original_schedule.
3856 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
3858         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
3859         (build_pbb_minimal_scattering_polyhedrons): New.
3860         (build_scop_scattering): Remove.
3861         (build_scop_minimal_scattering): New.
3862         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
3863         (build_poly_scop): Call build_scop_minimal_scattering.
3865 2015-11-06  Jeff Law <law@redhat.com>
3867         * cfg-flags.def (IGNORE): New edge flag.
3868         * tree-vrp.c (identify_jump_threads): Mark and clear edges
3869         scheduled for removal with EDGE_IGNORE around call into
3870         jump threader.  Do no thread across edges with EDGE_IGNORE,
3871         but do allow threading across those with EDGE_DFS_BACK.
3873 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
3875         * doc/md.texi (multi-alternative constraints): Don't document
3876         alternatives inherently tied to reload for the user documentation.
3878 2015-11-06  Michael Collison  <michael.collison@linaro.org>
3879             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3881         Revert:
3882         2015-08-01  Michael Collison  <michael.collison@linaro.org
3883                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3885         * config/arm/arm.md (*arm_smin_cmp): New pattern.
3886         (*arm_umin_cmp): Likewise.
3888 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
3890         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
3891         * omp-low.c (check_omp_nesting_restrictions): Update for the
3892         various new OpenMP 4.5 nesting restrictions, clarified
3893         nesting glossary, closely nested region relationship clarified
3894         to mean explicit or implicit parallel regions (target/teams),
3895         use %</%> or %qs where appropriate.
3897 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
3898             Sebastian Pop  <s.pop@samsung.com>
3900         * graphite-scop-detection.c (loop_is_valid_scop): Call
3901         optimize_loop_nest_for_speed_p.
3903 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
3904             Sebastian Pop  <s.pop@samsung.com>
3906         * graphite-optimize-isl.c (optimize_isl): Call
3907         isl_options_set_schedule_maximize_band_depth.
3909 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
3910             Sebastian Pop  <s.pop@samsung.com>
3912         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
3913         and exit edges should not be a part of irreducible loop.
3914         (scop_detection::can_represent_loop_1): Loops should not be
3915         irreducible.
3916         (scop_detection::harmful_stmt_in_region): All the basic block
3917         should belong to reducible loops.
3919 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
3921         * config/aarch64/aarch64-simd-builtins.def: Update builtins
3922         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
3923         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
3924         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
3925         (aarch64_tbx4v8qi): Rename to...
3926         aarch64_tbx4<mode>): ... this.
3927         (aarch64_qtbl3<mode>): New pattern.
3928         (aarch64_qtbx3<mode>): New pattern.
3929         (aarch64_qtbl4<mode>): New pattern.
3930         (aarch64_qtbx4<mode>): New pattern.
3931         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
3932         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
3933         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
3934         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
3935         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
3936         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
3937         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
3938         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
3939         functions.
3941 2015-11-06  Mike Stump  <mikestump@comcast.net>
3943         PR debug/66728
3944         * dwarf2out.c (get_full_len): Return a value based upon the actual
3945         precision needed for the value.
3946         (add_const_value_attribute): Use a maximal wide-int for
3947         CONST_WIDE_INTs, not VOIDmode.
3948         (output_die): Don't ever output NULL with printf.
3950         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
3951         BLKmode nor VOIDmode values.
3953 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
3955         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
3956         and "range2".
3957         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
3958         * diagnostic-core.h (warning_at_rich_loc): New declaration.
3959         (error_at_rich_loc): New declaration.
3960         (permerror_at_rich_loc): New declaration.
3961         (inform_at_rich_loc): New declaration.
3962         * diagnostic-show-locus.c (adjust_line): Delete.
3963         (struct point_state): New struct.
3964         (class colorizer): New class.
3965         (class layout_point): New class.
3966         (class layout_range): New class.
3967         (struct line_bounds): New.
3968         (class layout): New class.
3969         (colorizer::colorizer): New ctor.
3970         (colorizer::~colorizer): New dtor.
3971         (layout::layout): New ctor.
3972         (layout::print_source_line): New method.
3973         (layout::print_annotation_line): New method.
3974         (layout::get_state_at_point): New method.
3975         (layout::get_x_bound_for_row): New method.
3976         (diagnostic_show_locus): Reimplement in terms of class layout.
3977         (diagnostic_print_caret_line): Delete.
3978         * diagnostic.c (diagnostic_initialize): Replace
3979         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
3980         (diagnostic_set_info_translated): Convert param from location_t
3981         to rich_location *.  Eliminate calls to set_location on the
3982         message in favor of storing the rich_location ptr there.
3983         (diagnostic_set_info): Convert param from location_t to
3984         rich_location *.
3985         (diagnostic_build_prefix): Break out array into...
3986         (diagnostic_kind_color): New variable.
3987         (diagnostic_get_color_for_kind): New function.
3988         (diagnostic_report_diagnostic): Colorize the option_text
3989         using the color for the severity.
3990         (diagnostic_append_note): Update for change in signature of
3991         diagnostic_set_info.
3992         (diagnostic_append_note_at_rich_loc): New function.
3993         (emit_diagnostic): Update for change in signature of
3994         diagnostic_set_info.
3995         (inform): Likewise.
3996         (inform_at_rich_loc): New function.
3997         (inform_n): Update for change in signature of diagnostic_set_info.
3998         (warning): Likewise.
3999         (warning_at): Likewise.
4000         (warning_at_rich_loc): New function.
4001         (warning_n): Update for change in signature of diagnostic_set_info.
4002         (pedwarn): Likewise.
4003         (permerror): Likewise.
4004         (permerror_at_rich_loc): New function.
4005         (error): Update for change in signature of diagnostic_set_info.
4006         (error_n): Likewise.
4007         (error_at): Likewise.
4008         (error_at_rich_loc): New function.
4009         (sorry): Update for change in signature of diagnostic_set_info.
4010         (fatal_error): Likewise.
4011         (internal_error): Likewise.
4012         (internal_error_no_backtrace): Likewise.
4013         (source_range::debug): New function.
4014         * diagnostic.h (struct diagnostic_info): Eliminate field
4015         "override_column".  Add field "richloc".
4016         (struct diagnostic_context): Add field "colorize_source_p".
4017         (diagnostic_override_column): Delete.
4018         (diagnostic_set_info): Convert param from location_t to
4019         rich_location *.
4020         (diagnostic_set_info_translated): Likewise.
4021         (diagnostic_append_note_at_rich_loc): New function.
4022         (diagnostic_num_locations): New function.
4023         (diagnostic_expand_location): Get the location from the
4024         rich_location.
4025         (diagnostic_print_caret_line): Delete.
4026         (diagnostic_get_color_for_kind): New declaration.
4027         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
4028         (error_cb): Update for change in signature of "error" callback.
4029         (fatal_at): Likewise.
4030         (warning_at): Likewise.
4031         * input.c (linemap_client_expand_location_to_spelling_point): New.
4032         * pretty-print.c (text_info::set_range): New method.
4033         (text_info::get_location): New method.
4034         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
4035         (struct text_info): Eliminate "locations" array in favor of
4036         "m_richloc", a rich_location *.
4037         (textinfo::set_location): Add a "caret_p" param, and reimplement
4038         in terms of a call to set_range.
4039         (textinfo::get_location): Eliminate inline implementation in favor of
4040         an out-of-line reimplementation.
4041         (textinfo::set_range): New method.
4042         * rtl-error.c (diagnostic_for_asm): Update for change in signature
4043         of diagnostic_set_info.
4044         * tree-diagnostic.c (default_tree_printer): Update for new
4045         "caret_p" param for textinfo::set_location.
4046         * tree-pretty-print.c (percent_K_format): Likewise.
4048 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4050         Properly apply.
4051         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4052         * config/aarch64/aarch64.c
4053         (aarch64_can_use_per_function_literal_pools_p): New.
4054         (aarch64_use_blocks_for_constant_p): Adjust declaration
4055         and use aarch64_can_use_function_literal_pools_p.
4056         (aarch64_select_rtx_section): Update.
4058 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4060         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
4061         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
4062         (arm_output_multireg_pop): Likewise.
4063         (output_move_double):  Likewise.
4064         (output_move_quad):  Likewise.
4065         (output_return_instruction): Likewise.
4066         (arm_print_operand): Remove support for %( and %. print modifiers.
4067         (arm_output_shift): Make unified asm.
4068         (arm_declare_function_name): Likewise.
4069         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
4070         (ASM_APP_OFF): Adjust.
4071         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
4072         (ASM_OUTPUT_REG_POP): Likewise.
4073         * config/arm/arm.md: Adjust uses of %., %(, %)
4074         * config/arm/sync.md: Likewise.
4075         * config/arm/thumb2.md: Likewise.
4076         * config/arm/ldmstm.md: Regenerate.
4077         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
4078         * doc/invoke.texi (masm-unified-syntax): Update documentation.
4080 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
4082         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
4084 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
4086         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
4087         add OEP_MATCH_SIDE_EFFECTS.
4088         * fold-const.c (operand_equal_p): Update documentation; handle
4089         OEP_MATCH_SIDE_EFFECTS.
4090         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
4091         OEP_MATCH_SIDE_EFFECTS.
4093 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
4094             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
4096         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
4097         * config/aarch64/aarch64-protos.h: Declare.
4098         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
4099         frsqrts.
4100         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
4101         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
4102         code when applicable.
4103         * config/aarch64/aarch64.md: Added enum entries.
4104         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
4106 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
4108         PR ipa/68057
4109         PR ipa/68220
4110         * ipa-polymorphic-call.c
4111         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
4112         issue when offset is out of range.
4113         (contains_type_p): Fix out of range check, clear dynamic flag.
4115 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
4117         * config.gcc (e6500): Fix cpu_is_64bit typo.
4119 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
4121         * tree-sra.c (completely_scalarize): Properly handle negative array
4122         indices using offset_int.
4124 2015-11-06  Richard Biener  <rguenther@suse.de>
4126         * alloc-pool.h (object_allocator::allocate): Default-initialize
4127         object.
4129 2015-11-06  Richard Biener  <rguenther@suse.de>
4131         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
4132         * lra.c (init_reg_info): Truncate copy_vec instead of
4133         re-allocating a new one and leaking the old.
4134         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
4135         bb_infos vec.
4136         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
4137         * postreload-gcse.c (free_mem): Free modify_mem_list and
4138         canon_modify_mem_list.
4140 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
4142         PR tree-optimization/68145
4143         * tree-vect-stmts.c (vectorizable_operation): Fix
4144         determination for booleans.
4146 2015-11-06  Tom de Vries  <tom@codesourcery.com>
4148         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
4149         cond_jump, instead of split after last nondebug insn before cond_jump.
4150         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
4151         returning.
4153 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4155         PR target/68088
4156         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
4157         subregs from accumulator and make sure it's a register.
4159 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
4161         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
4162         low part to scalar.
4163         (reduc_uplus_<mode>): Remove.
4164         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
4165         loongson_extract_lo_<mode>.
4166         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
4167         reduc_smax_<mode>, reduc_smax_<mode>, use vec
4168         loongson_extract_lo_<mode>.
4169         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
4171 2015-11-06  Richard Biener  <rguenther@suse.de>
4173         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
4174         members.
4175         (vect_stmt_in_region_p): Declare.
4176         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
4177         (destroy_bb_vec_info): Likewise.
4178         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
4179         (vect_get_and_check_slp_defs): Likewise.
4180         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
4181         (vect_slp_bb): Likewise.
4182         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
4183         in terms of vect_stmt_in_region_p.
4184         (vect_pattern_recog): Iterate over the BB region.
4185         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
4186         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
4187         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
4188         * config/i386/i386.c: Include gimple-iterator.h.
4189         * config/aarch64/aarch64.c: Likewise.
4191 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
4193         PR rtl-optimization/67753
4194         PR rtl-optimization/64164
4195         * function.c (assign_parm_setup_block): Avoid allocating a
4196         stack slot if we don't have an ABI-reserved one.  Emit the
4197         copy to target_reg in the conversion seq if the copy from
4198         entry_parm is in it too.  Don't use the conversion seq to copy
4199         a PARALLEL to a REG or a CONCAT.
4201 2015-11-06  Richard Biener  <rguenther@suse.de>
4203         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
4204         equal_keys.
4206 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
4207             Thomas Schwinge  <thomas@codesourcery.com>
4208             James Norris  <jnorris@codesourcery.com>
4211         * gimplify.c (gimplify_scan_omp_clauses): Add support for
4212         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
4213         (gimplify_adjust_omp_clauses): Likewise.
4214         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
4215         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
4216         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
4217         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
4218         (omp_clause_code_name): Likewise.
4219         (walk_tree_1): Handle OMP_CLAUSE_TILE.
4220         * tree.h (OMP_TILE_LIST): New macro.
4222 2015-11-05  Martin Sebor  <msebor@redhat.com>
4224         PR c++/67942
4225         * doc/invoke.texi (-Wplacement-new): Document new option.
4227 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
4229         PR tree-optimization/65963
4230         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
4231         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
4233 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
4235         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
4236         (noce_convert_multiple_sets): Likewise.
4237         (noce_process_if_block): Call them.
4239 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
4241         * gimple-fold.c: Include omp-low.h.
4242         (fold_internal_goacc_dim): New.
4243         (gimple_fold_call): Call it.
4245 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
4246             Ilya Verbin  <ilya.verbin@intel.com>
4248         * builtin-types.def
4249         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
4250         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
4251         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
4252         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
4253         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
4254         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
4255         (struct cgraph_simd_clone_arg): Adjust comment.
4256         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
4257         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
4258         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
4259         to GOMP_target_data_ext.
4260         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
4261         to GOMP_target_update_ext.
4262         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
4263         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
4264         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
4265         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
4266         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
4267         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
4268         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
4269         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
4270         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
4271         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
4272         * tree-core.h (enum omp_clause_schedule_kind): Add
4273         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
4274         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
4275         OMP_CLAUSE_SCHEDULE_LAST value.
4276         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
4277         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
4278         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
4279         OMP_FOR_CHECK.  Remove comment.
4280         * tree-pretty-print.c (dump_omp_clause): Handle
4281         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
4282         Simplify.  Print schedule clause modifiers.
4283         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
4284         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
4285         cases.
4286         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
4287         (omp_default_clause): Tweak for
4288         private/firstprivate/is_device_ptr variables on target
4289         construct and use_device_ptr on target data.
4290         (omp_check_private): Likewise.
4291         (omp_notice_variable): For references check whether what it refers
4292         to has mappable type, rather than the reference itself.
4293         (omp_is_private): Diagnose linear iteration variables on non-simd
4294         constructs.
4295         (omp_no_lastprivate): Return true only for Fortran.
4296         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
4297         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
4298         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
4299         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
4300         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
4301         lastprivate and linear when combined with distribute.  Gimplify
4302         variable low-bound for array reduction.  Look through
4303         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
4304         reductions.
4305         (gimplify_adjust_omp_clauses_1): For implicit references to
4306         variables with reference type and when not ref to scalar or
4307         ref to pointer, map what they refer to using tofrom and
4308         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
4309         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
4310         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
4311         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
4312         Diagnose the same var on both firstprivate and lastprivate on
4313         distribute construct.
4314         (gimplify_omp_for): Fix up handling of predetermined
4315         lastprivate or linear iter vars when combined with distribute.
4316         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
4317         functions.
4318         (gimplify_omp_workshare): Call optimize_target_teams.
4319         * omp-low.c (struct omp_region): Add sched_modifiers field.
4320         (struct omp_for_data): Likewise.
4321         (omp_any_child_fn_dumped): New variable.
4322         (extract_omp_for_data): Fill in sched_modifiers, and mask out
4323         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
4324         from sched_kind.
4325         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
4326         bits of OMP_CLAUSE_SCHED_KIND.
4327         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
4328         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
4329         for array section reductions.
4330         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
4331         for distribute parallel for, if there are lastprivate clauses on the
4332         for.
4333         (lower_rec_input_clauses): Handle non-zero low-bound on array
4334         section reductions.
4335         (lower_reduction_clauses): Likewise.
4336         (lower_send_clauses): Look through POINTER_PLUS_EXPR
4337         for array section reductions.
4338         (expand_parallel_call): Use nonmonotonic entrypoints for
4339         nonmonotonic: dynamic/guided.
4340         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
4341         child_fn if current_function_decl has assembler name set, but child_fn
4342         does not.  Dump the header and IL of the child function when not in SSA
4343         form.
4344         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
4345         arguments to BUILT_IN_GOMP_TARGET.
4346         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4347         Initialize the extra _looptemp_ clause to fd->loop.n2.
4348         (expand_omp_for): Use nonmonotonic entrypoints for
4349         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
4350         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
4351         again if we have dumped any child functions.
4352         (lower_omp_for_lastprivate): Determine the right count variable
4353         for distribute simd, or distribute parallel for{, simd}.
4354         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
4355         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
4356         support.
4357         (simd_clone_clauses_extract): Handle variable step
4358         for references and arguments passed by reference.
4359         (simd_clone_mangle): Mangle ref/uval/val variable steps.
4360         (simd_clone_adjust_argument_types): Handle
4361         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
4362         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
4363         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
4364         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
4365         (simd_clone_linear_addend): New function.
4366         (simd_clone_adjust): Handle variable step like similarly
4367         to constant step, use simd_clone_linear_addend to determine
4368         the actual step at runtime.
4370 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
4372         * target.def (goacc.dim_limit): New hook.
4373         * targhooks.h (default_goacc_dim_limit): Declare.
4374         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
4375         * doc/tm.texi: Rebuilt.
4376         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
4377         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
4378         (default_goacc_dim_limit): New.
4379         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4380         (nvptx_goacc_dim_limit) New.
4381         (TARGET_GOACC_DIM_LIMIT): Override.
4382         * tree-vrp.c: Include omp-low.h, target.h.
4383         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
4384         IFN_GOACC_DIM_POS.
4386 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
4388         * tree-vect-generic.c (do_compare): Use -1 for true
4389         result instead of 1.
4391 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4393         * config/aarch64/aarch64.c
4394         (aarch64_can_use_per_function_literal_pools_p): New.
4395         (aarch64_use_blocks_for_constant_p): Adjust declaration
4396         and use aarch64_can_use_function_literal_pools_p.
4397         (aarch64_select_rtx_section): Update.
4399 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
4401         * targhooks.c (default_get_mask_mode): Use BLKmode in
4402         case target doesn't support required vector mode.
4403         * stor-layout.c (layout_type); Check for BLKmode.
4405 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
4406             Sebastian Pop  <s.pop@samsung.com>
4408         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
4409         Remove use of parameter_rename_map.
4410         (copy_def): Remove.
4411         (copy_internal_parameters): Remove.
4412         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
4413         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
4414         (free_sese_info): Do not free parameter_rename_map.
4415         (set_rename): Do not use parameter_rename_map.
4416         (rename_uses): Update call to set_rename.
4417         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
4418         * sese.h (parameter_rename_map_t): Remove.
4419         (struct sese_info_t): Remove field parameter_rename_map.
4421 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
4422             Sebastian Pop  <s.pop@samsung.com>
4424         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
4425         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
4426         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
4427         anonymous namespace.
4428         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
4429         (isl_id_for_pbb): Use a buffer of size 10.
4430         (isl_id_for_ssa_name): Same.
4431         * sese.c (set_rename): Add more dumps.
4433 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4435         * omp-low.c (struct omp_context): Remove reduction_map field.
4436         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
4437         (new_omp_context, delete_omp_context, scan_omp_target): Remove
4438         reduction_map handling.
4439         (lower_omp_target): Remove obsolete openacc reduction handling.
4441 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4443         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
4445 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4446             Cesar Philippidis  <cesar@codesourcery.com>
4448         * config/nvptx/nvptx.c: Include gimple headers.
4449         (worker_red_size, worker_red_align, worker_red_name,
4450         worker_red_sym): New.
4451         (nvptx_option_override): Initialize worker reduction buffer.
4452         (nvptx_file_end): Write out worker reduction buffer var.
4453         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
4454         nvptx_expand_cmp_swap): New builtin expanders.
4455         (enum nvptx_builtins): New.
4456         (nvptx_builtin_decls): New.
4457         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
4458         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4459         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
4460         nvptx_lockless_update): New helpers.
4461         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
4462         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
4463         (nvptx_goacc_reduction): New.
4464         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
4465         TARGET_BUILTIN_DECL): Override.
4466         (TARGET_GOACC_REDUCTION): Override.
4468 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4469             Cesar Philippidis  <cesar@codesourcery.com>
4471         * internal-fn.def (GOACC_REDUCTION): New.
4472         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
4473         * internal-fn.c (expand_GOACC_REDUCTION): New.
4474         * target.def (goacc.reduction): New OpenACC hook.
4475         * targhooks.h (default_goacc_reduction): Declare.
4476         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
4477         * doc/tm.texi: Rebuilt.
4478         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
4479         scan_sharing_clauses): Remove oacc reduction handling here.
4480         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
4481         (oacc_lower_reduction_var_helper): Delete.
4482         (lower_oacc_reductions): New.
4483         (lower_reduction_clauses): Don't handle OpenACC reductions here.
4484         (lower_oacc_head_tail): Call lower_oacc_reductions.
4485         (oacc_gimple_assign, oacc_init_reduction_array,
4486         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
4487         oacc_process_reduction_data): Delete.
4488         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
4489         dummy OpenACC gang reduction for reductions at outer level.
4490         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
4491         (default_goacc_reduction): New.
4492         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
4494 2015-11-04  Martin Liska  <mliska@suse.cz>
4496         * cgraphunit.c (cgraph_node::expand_thunk): Call
4497         allocate_struct_function before init_function_start.
4498         (cgraph_node::expand): Use push_cfun and pop_cfun.
4499         * config/i386/i386.c (ix86_code_end): Call
4500         allocate_struct_function before init_function_start.
4501         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
4502         * function.c (init_function_start): Move preamble to all
4503         callers.
4504         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
4505         (execute_one_pass): Handle newly added TODO_discard_function.
4506         (execute_pass_list_1): Terminate if cfun equals to NULL.
4507         (execute_pass_list): Do not push and pop cfun, expect that
4508         cfun is set.
4509         * tree-pass.h (TODO_discard_function): Define.
4511 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
4513         * cfganal.c (inverted_post_order_compute): Remove conditional
4514         compilation, use flag_checking.
4515         * config.in: Regenerate.
4516         * configure: Regenerate.
4517         * configure.ac: Remove ENABLE_CHECKING.
4518         * genconditions.c: Do not #undef ENABLE_CHECKING.
4519         * sese.h (bb_in_region): Comment out broken check.
4520         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
4521         conditional compilation, use flag_checking.
4523 2015-11-04  Tom de Vries  <tom@codesourcery.com>
4525         PR tree-optimization/67742
4526         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
4527         field.
4528         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
4529         (create_variable_info_for_1): Add and handle handle_param parameter.
4530         Add restrict handling.
4531         (create_variable_info_for): Call create_variable_info_for_1 with extra
4532         arg.
4533         (make_param_constraints): Drop restrict_name parameter.  Ignore
4534         vi->only_restrict_pointers.
4535         (intra_create_variable_infos): Call create_variable_info_for_1 with
4536         extra arg.  Remove restrict handling.  Call make_param_constraints with
4537         one fewer arg.
4539 2015-11-04  Tom de Vries  <tom@codesourcery.com>
4541         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
4542         variable.
4544 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4546         * config/arm/coff.h: Remove.
4548 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
4550         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
4551         check for aggregate types and beef up comment for mode check.
4553 2015-11-03  Richard Biener  <rguenther@suse.de>
4555         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
4556         data references here.
4557         * tree-vect-loop.c: Include cgraph.h.
4558         (vect_analyze_loop_2): Collect data references here.
4559         * tree-vect-slp.c (find_bb_location): Inline ...
4560         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
4561         Factor in vect_slp_transform_bb.
4562         (vect_slp_transform_bb): Removed.
4563         (vect_slp_analyze_bb_1): Collect data references here.
4564         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
4565         vect_slp_bb.
4566         * tree-vectorizer.h (vect_slp_bb): Declare.
4567         (vect_slp_analyze_bb): Remove.
4568         (vect_slp_transform_bb): Remove.
4569         (find_bb_location): Remove.
4570         (vect_analyze_data_refs): Remove stmt count reference parameter.
4572 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
4574         * multiple_target.c (create_dispatcher_calls): Add target check
4575         on ifunc.
4576         (create_target_clone): Change assembler name for versioned declarations.
4578 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
4579             Chung-Lin Tang  <cltang@codesourcery.com>
4581         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
4582         * omp-low.c (check_omp_nesting_restrictions): Allow
4583         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
4584         contexts.
4586 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
4588         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
4589         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
4590         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
4591         builtin.
4592         (vmulxq_f32): Likewise.
4593         (vmulx_f64): New.
4594         (vmulxq_f64): Rewrite to call fmulx builtin.
4595         (vmulxs_f32): Likewise.
4596         (vmulxd_f64): Likewise.
4597         (vmulx_lane_f32): Remove.
4598         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
4600 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
4602         * config/aarch64/aarch64.md (*movhf_aarch64): Use
4603         aarch64_reg_or_fp_zero for second operand.
4605 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
4607         * gimple-expr.c: Include hash-set.h and rtl.h.
4608         (mark_addressable_queue): New var.
4609         (mark_addressable): Factor actual marking into...
4610         (mark_addressable_1): ... this.  Queue it up during expand.
4611         (mark_addressable_2): New.
4612         (flush_mark_addressable_queue): New.
4613         * gimple-expr.h (flush_mark_addressable_queue): Declare.
4614         * cfgexpand.c: Include gimple-expr.h.
4615         (pass_expand::execute): Flush mark_addressable queue.
4617 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
4619         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
4620         bb_no_side_effects_p tests...
4621         (tree_ssa_ifcombine_bb): ... here.
4623         PR tree-optimization/68083
4624         * tree-ssa-ifcombine.c: Include tree-ssa.h.
4625         (bb_no_side_effects_p): Test for undefined uses too.
4626         * tree-ssa.c (gimple_uses_undefined_value_p): New.
4627         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
4629 2015-11-02  Jeff Law <law@redhat.com>
4631         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
4632         cases where the loop latch edge is in the middle of an FSM path.
4634 2015-11-03  Tom de Vries  <tom@codesourcery.com>
4636         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
4637         (make_param_constraints): ... this.  Add and handle restrict_name
4638         parameter.  Handle is_full_var case.
4639         (intra_create_variable_infos): Use make_param_constraints.
4641 2015-11-03  Tom de Vries  <tom@codesourcery.com>
4643         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
4644         make_copy_constraint call with make_constraint_from call.
4646 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
4648         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
4649         PIE executables.
4651 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
4653         * builtins.h (fold_fma): Move to fold-const-call.h.
4654         * builtins.c: Include fold-const-call.h.
4655         (mathfn_built_in_2): New function, split out from...
4656         (mathfn_built_in_1): ...here.
4657         (do_real_to_int_conversion, fold_const_builtin_pow)
4658         (fold_const_builtin_logb, fold_const_builtin_significand)
4659         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
4660         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
4661         (fold_builtin_sincos): Use fold_const_call to handle constants.
4662         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
4663         checks for ERROR_MARK.  Use fold_const_call to handle constant
4664         folds for math functions.
4665         (fold_fma): Move to fold-const-call.c.
4666         * fold-const.c: Include fold-const-call.h.
4667         * Makefile.in (OBJS): Add fold-const-call.o.
4668         (PLUGIN_HEADERS): Add fold-const-call.h.
4669         * realmpfr.h (real_from_mpfr): Allow the format to be specified
4670         directly.
4671         * realmpfr.c (real_from_mpfr): Likewise.
4672         * fold-const-call.h, fold-const-call.c: New files.
4674 2015-11-02  Julian Brown  <julian@codesourcery.com>
4676         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
4677         brackets and semicolon.
4679 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
4681         Revert:
4682         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
4684         PR tree-optimization/65963
4685         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
4686         LSHIFT_EXPRs as equivalent MULT_EXPRs.
4688 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
4690         PR middle-end/68166
4691         * fold-const.c: Include "md5.h".
4693 2015-11-01  Jeff Law <law@redhat.com>
4695         * vmsdbgout.c: Revert unused header file reduction patch.
4697         * config/mcore/mcore.c: Include regs.h.
4699 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
4701         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
4703 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
4705         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
4706         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
4707         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
4709 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4711         * ggc-common.c: Restore needed header for checking=release.
4713 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4715         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
4717 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4719         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
4720         existing varinfo for arguments.
4722 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4724         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
4725         create_function_info_for.  Dump constraints generated during
4726         create_function_info_for. Move intra_create_variable_infos call and
4727         function-return-values-escape bit to ...
4728         (create_function_info_for): ... here, and merge
4729         intra_create_variable_infos call with argument loop.  Add and handle
4730         nonlocal_p parameter.
4732 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4734         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
4735         updating is alap, and seperated from preceding code.  Make sure
4736         insert_vi_for_tree is seperated from surrounding code.
4738 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4740         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
4742 2015-10-30  Jeff Law <law@redhat.com>
4743             Nathan Sidwell  <nathan@acm.org>
4745         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
4746         args.
4747         (MOVE_MAX): Set to 8.
4749 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
4751         * cgraph.c: Include context.h for offloading.
4752         * varpool.c: Include context.h and omp-low.h.
4754 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
4756         * rtl.h (contains_symbol_ref_p): Declare.
4757         (SYMBOL_REF_P): Define.
4758         * rtlanal.c (contains_symbol_ref_p: New function.
4759         * lra-constraints.c (contains_symbol_ref_p): Remove.
4760         * var-tracking.c (contains_symbol_ref): Remove.
4761         (track_expr_p): Use contains_symbol_ref_p instead of
4762         contains_symbol_ref.
4764 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
4766         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
4767         * fold-const.c (get_array_ctor_element_at_index): New.
4768         (fold): Remove binary-search through CONSTRUCTOR, call previous.
4770         * fold-const.h (get_array_ctor_element_at_index): New.
4772 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
4774         * Makefile.in (OBJS): Add multiple_target.o.
4775         * attrib.c (make_attribute): Moved from config/i386/i386.c
4776         * config/i386/i386.c (make_attribute): Deleted.
4777         * multiple_target.c (create_dispatcher_calls): New.
4778         (get_attr_len): Ditto.
4779         (get_attr_str): Ditto.
4780         (separate_attrs): Ditto.
4781         (is_valid_asm_symbol): Ditto.
4782         (create_new_asm_name): Ditto.
4783         (create_target_clone): Ditto.
4784         (expand_target_clones): Ditto.
4785         (ipa_target_clone): Ditto.
4786         (ipa_dispatcher_calls): Ditto.
4787         * passes.def (pass_target_clone): Two new ipa passes.
4788         * tree-pass.h (make_pass_target_clone): Ditto.
4789         * doc/extend.texi (target_clones): New attribute description.
4791 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
4793         PR rtl-optimization/68106
4794         * lra-remat.c (input_regno_present_p): Process hard regs
4795         explicitly present in machine description insns.
4796         (call_used_input_regno_present_p): Ditto.
4797         (calculate_gen_cands): Ditto.
4798         (do_remat): Ditto.
4800 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
4802         * config/arm/neon-testgen.ml: Fix comment typo.
4804 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4806         * rtlanal.c (reg_set_p): Expand function comment.
4808 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
4810         * alias.c: Remove unused headers.
4811         * asan.c: Likewise.
4812         * attribs.c: Likewise.
4813         * auto-inc-dec.c: Likewise.
4814         * auto-profile.c: Likewise.
4815         * bb-reorder.c: Likewise.
4816         * bitmap.c: Likewise.
4817         * bt-load.c: Likewise.
4818         * builtins.c: Likewise.
4819         * caller-save.c: Likewise.
4820         * calls.c: Likewise.
4821         * ccmp.c: Likewise.
4822         * cfg.c: Likewise.
4823         * cfganal.c: Likewise.
4824         * cfgbuild.c: Likewise.
4825         * cfgcleanup.c: Likewise.
4826         * cfgexpand.c: Likewise.
4827         * cfghooks.c: Likewise.
4828         * cfgloop.c: Likewise.
4829         * cfgloopanal.c: Likewise.
4830         * cfgloopmanip.c: Likewise.
4831         * cfgrtl.c: Likewise.
4832         * cgraph.c: Likewise.
4833         * cgraphbuild.c: Likewise.
4834         * cgraphclones.c: Likewise.
4835         * cgraphunit.c: Likewise.
4836         * cilk-common.c: Likewise.
4837         * combine-stack-adj.c: Likewise.
4838         * combine.c: Likewise.
4839         * compare-elim.c: Likewise.
4840         * convert.c: Likewise.
4841         * coverage.c: Likewise.
4842         * cppbuiltin.c: Likewise.
4843         * cprop.c: Likewise.
4844         * cse.c: Likewise.
4845         * cselib.c: Likewise.
4846         * data-streamer-in.c: Likewise.
4847         * data-streamer-out.c: Likewise.
4848         * data-streamer.c: Likewise.
4849         * dbxout.c: Likewise.
4850         * dce.c: Likewise.
4851         * ddg.c: Likewise.
4852         * debug.c: Likewise.
4853         * df-core.c: Likewise.
4854         * df-problems.c: Likewise.
4855         * df-scan.c: Likewise.
4856         * dfp.c: Likewise.
4857         * dojump.c: Likewise.
4858         * dominance.c: Likewise.
4859         * domwalk.c: Likewise.
4860         * double-int.c: Likewise.
4861         * dse.c: Likewise.
4862         * dumpfile.c: Likewise.
4863         * dwarf2asm.c: Likewise.
4864         * dwarf2cfi.c: Likewise.
4865         * dwarf2out.c: Likewise.
4866         * emit-rtl.c: Likewise.
4867         * except.c: Likewise.
4868         * explow.c: Likewise.
4869         * expmed.c: Likewise.
4870         * expr.c: Likewise.
4871         * final.c: Likewise.
4872         * fixed-value.c: Likewise.
4873         * fold-const.c: Likewise.
4874         * function.c: Likewise.
4875         * fwprop.c: Likewise.
4876         * gcse.c: Likewise.
4877         * generic-match-head.c: Likewise.
4878         * ggc-common.c: Likewise.
4879         * gimple-builder.c: Likewise.
4880         * gimple-expr.c: Likewise.
4881         * gimple-fold.c: Likewise.
4882         * gimple-iterator.c: Likewise.
4883         * gimple-low.c: Likewise.
4884         * gimple-match-head.c: Likewise.
4885         * gimple-pretty-print.c: Likewise.
4886         * gimple-ssa-isolate-paths.c: Likewise.
4887         * gimple-ssa-strength-reduction.c: Likewise.
4888         * gimple-streamer-in.c: Likewise.
4889         * gimple-streamer-out.c: Likewise.
4890         * gimple-walk.c: Likewise.
4891         * gimple.c: Likewise.
4892         * gimplify-me.c: Likewise.
4893         * gimplify.c: Likewise.
4894         * godump.c: Likewise.
4895         * graph.c: Likewise.
4896         * graphds.c: Likewise.
4897         * haifa-sched.c: Likewise.
4898         * hw-doloop.c: Likewise.
4899         * ifcvt.c: Likewise.
4900         * init-regs.c: Likewise.
4901         * internal-fn.c: Likewise.
4902         * ipa-chkp.c: Likewise.
4903         * ipa-comdats.c: Likewise.
4904         * ipa-cp.c: Likewise.
4905         * ipa-devirt.c: Likewise.
4906         * ipa-icf-gimple.c: Likewise.
4907         * ipa-icf.c: Likewise.
4908         * ipa-inline-analysis.c: Likewise.
4909         * ipa-inline-transform.c: Likewise.
4910         * ipa-inline.c: Likewise.
4911         * ipa-polymorphic-call.c: Likewise.
4912         * ipa-profile.c: Likewise.
4913         * ipa-prop.c: Likewise.
4914         * ipa-pure-const.c: Likewise.
4915         * ipa-ref.c: Likewise.
4916         * ipa-reference.c: Likewise.
4917         * ipa-split.c: Likewise.
4918         * ipa-utils.c: Likewise.
4919         * ipa-visibility.c: Likewise.
4920         * ipa.c: Likewise.
4921         * ira-build.c: Likewise.
4922         * ira-color.c: Likewise.
4923         * ira-conflicts.c: Likewise.
4924         * ira-costs.c: Likewise.
4925         * ira-emit.c: Likewise.
4926         * ira-lives.c: Likewise.
4927         * ira.c: Likewise.
4928         * jump.c: Likewise.
4929         * langhooks.c: Likewise.
4930         * lcm.c: Likewise.
4931         * lists.c: Likewise.
4932         * loop-doloop.c: Likewise.
4933         * loop-init.c: Likewise.
4934         * loop-invariant.c: Likewise.
4935         * loop-iv.c: Likewise.
4936         * loop-unroll.c: Likewise.
4937         * lower-subreg.c: Likewise.
4938         * lra-assigns.c: Likewise.
4939         * lra-coalesce.c: Likewise.
4940         * lra-constraints.c: Likewise.
4941         * lra-eliminations.c: Likewise.
4942         * lra-lives.c: Likewise.
4943         * lra-remat.c: Likewise.
4944         * lra-spills.c: Likewise.
4945         * lra.c: Likewise.
4946         * lto-cgraph.c: Likewise.
4947         * lto-compress.c: Likewise.
4948         * lto-opts.c: Likewise.
4949         * lto-section-in.c: Likewise.
4950         * lto-section-out.c: Likewise.
4951         * lto-streamer-in.c: Likewise.
4952         * lto-streamer-out.c: Likewise.
4953         * lto-streamer.c: Likewise.
4954         * mcf.c: Likewise.
4955         * mode-switching.c: Likewise.
4956         * modulo-sched.c: Likewise.
4957         * optabs.c: Likewise.
4958         * opts-global.c: Likewise.
4959         * passes.c: Likewise.
4960         * plugin.c: Likewise.
4961         * postreload-gcse.c: Likewise.
4962         * postreload.c: Likewise.
4963         * predict.c: Likewise.
4964         * print-tree.c: Likewise.
4965         * profile.c: Likewise.
4966         * real.c: Likewise.
4967         * realmpfr.c: Likewise.
4968         * recog.c: Likewise.
4969         * ree.c: Likewise.
4970         * reg-stack.c: Likewise.
4971         * regcprop.c: Likewise.
4972         * reginfo.c: Likewise.
4973         * regrename.c: Likewise.
4974         * regstat.c: Likewise.
4975         * reload.c: Likewise.
4976         * reload1.c: Likewise.
4977         * reorg.c: Likewise.
4978         * resource.c: Likewise.
4979         * rtl-chkp.c: Likewise.
4980         * rtl-error.c: Likewise.
4981         * rtlanal.c: Likewise.
4982         * rtlhooks.c: Likewise.
4983         * sanopt.c: Likewise.
4984         * sched-deps.c: Likewise.
4985         * sched-ebb.c: Likewise.
4986         * sched-rgn.c: Likewise.
4987         * sdbout.c: Likewise.
4988         * sel-sched-dump.c: Likewise.
4989         * sel-sched-ir.c: Likewise.
4990         * sel-sched.c: Likewise.
4991         * sese.c: Likewise.
4992         * shrink-wrap.c: Likewise.
4993         * simplify-rtx.c: Likewise.
4994         * stack-ptr-mod.c: Likewise.
4995         * statistics.c: Likewise.
4996         * stmt.c: Likewise.
4997         * stor-layout.c: Likewise.
4998         * store-motion.c: Likewise.
4999         * stringpool.c: Likewise.
5000         * symtab.c: Likewise.
5001         * target-globals.c: Likewise.
5002         * targhooks.c: Likewise.
5003         * toplev.c: Likewise.
5004         * tracer.c: Likewise.
5005         * trans-mem.c: Likewise.
5006         * tree-affine.c: Likewise.
5007         * tree-call-cdce.c: Likewise.
5008         * tree-cfg.c: Likewise.
5009         * tree-cfgcleanup.c: Likewise.
5010         * tree-chkp-opt.c: Likewise.
5011         * tree-chkp.c: Likewise.
5012         * tree-chrec.c: Likewise.
5013         * tree-complex.c: Likewise.
5014         * tree-data-ref.c: Likewise.
5015         * tree-dfa.c: Likewise.
5016         * tree-diagnostic.c: Likewise.
5017         * tree-dump.c: Likewise.
5018         * tree-eh.c: Likewise.
5019         * tree-emutls.c: Likewise.
5020         * tree-if-conv.c: Likewise.
5021         * tree-inline.c: Likewise.
5022         * tree-into-ssa.c: Likewise.
5023         * tree-iterator.c: Likewise.
5024         * tree-loop-distribution.c: Likewise.
5025         * tree-nested.c: Likewise.
5026         * tree-nrv.c: Likewise.
5027         * tree-object-size.c: Likewise.
5028         * tree-outof-ssa.c: Likewise.
5029         * tree-parloops.c: Likewise.
5030         * tree-phinodes.c: Likewise.
5031         * tree-predcom.c: Likewise.
5032         * tree-pretty-print.c: Likewise.
5033         * tree-profile.c: Likewise.
5034         * tree-scalar-evolution.c: Likewise.
5035         * tree-sra.c: Likewise.
5036         * tree-ssa-address.c: Likewise.
5037         * tree-ssa-alias.c: Likewise.
5038         * tree-ssa-ccp.c: Likewise.
5039         * tree-ssa-coalesce.c: Likewise.
5040         * tree-ssa-copy.c: Likewise.
5041         * tree-ssa-dce.c: Likewise.
5042         * tree-ssa-dse.c: Likewise.
5043         * tree-ssa-forwprop.c: Likewise.
5044         * tree-ssa-ifcombine.c: Likewise.
5045         * tree-ssa-live.c: Likewise.
5046         * tree-ssa-loop-ch.c: Likewise.
5047         * tree-ssa-loop-im.c: Likewise.
5048         * tree-ssa-loop-ivcanon.c: Likewise.
5049         * tree-ssa-loop-ivopts.c: Likewise.
5050         * tree-ssa-loop-manip.c: Likewise.
5051         * tree-ssa-loop-niter.c: Likewise.
5052         * tree-ssa-loop-prefetch.c: Likewise.
5053         * tree-ssa-loop-unswitch.c: Likewise.
5054         * tree-ssa-loop.c: Likewise.
5055         * tree-ssa-math-opts.c: Likewise.
5056         * tree-ssa-operands.c: Likewise.
5057         * tree-ssa-phiopt.c: Likewise.
5058         * tree-ssa-phiprop.c: Likewise.
5059         * tree-ssa-pre.c: Likewise.
5060         * tree-ssa-propagate.c: Likewise.
5061         * tree-ssa-reassoc.c: Likewise.
5062         * tree-ssa-scopedtables.c: Likewise.
5063         * tree-ssa-sink.c: Likewise.
5064         * tree-ssa-strlen.c: Likewise.
5065         * tree-ssa-structalias.c: Likewise.
5066         * tree-ssa-tail-merge.c: Likewise.
5067         * tree-ssa-ter.c: Likewise.
5068         * tree-ssa-threadupdate.c: Likewise.
5069         * tree-ssa-uncprop.c: Likewise.
5070         * tree-ssa-uninit.c: Likewise.
5071         * tree-ssa.c: Likewise.
5072         * tree-ssanames.c: Likewise.
5073         * tree-stdarg.c: Likewise.
5074         * tree-streamer-in.c: Likewise.
5075         * tree-streamer-out.c: Likewise.
5076         * tree-streamer.c: Likewise.
5077         * tree-switch-conversion.c: Likewise.
5078         * tree-tailcall.c: Likewise.
5079         * tree-vect-data-refs.c: Likewise.
5080         * tree-vect-generic.c: Likewise.
5081         * tree-vect-loop-manip.c: Likewise.
5082         * tree-vect-loop.c: Likewise.
5083         * tree-vect-patterns.c: Likewise.
5084         * tree-vect-slp.c: Likewise.
5085         * tree-vect-stmts.c: Likewise.
5086         * tree-vectorizer.c: Likewise.
5087         * tree-vrp.c: Likewise.
5088         * tree.c: Likewise.
5089         * tsan.c: Likewise.
5090         * ubsan.c: Likewise.
5091         * value-prof.c: Likewise.
5092         * var-tracking.c: Likewise.
5093         * varasm.c: Likewise.
5094         * varpool.c: Likewise.
5095         * vmsdbgout.c: Likewise.
5096         * vtable-verify.c: Likewise.
5097         * web.c: Likewise.
5098         * wide-int-print.cc: Likewise.
5099         * wide-int.cc: Likewise.
5100         * xcoffout.c: Likewise.
5102 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
5104         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
5105         between pass numbering and execution order.
5107 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5109         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
5110         check for dependencies.
5112 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
5114         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
5115         CDI_DOMINATORS.
5117 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
5119         * real.h (format_helper): New.
5120         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
5121         (real_from_target, real_nan, real_2expN, real_value_truncate)
5122         (significand_size, real_from_string2, exact_real_inverse)
5123         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
5124         (real_round, real_isinteger, real_from_integer): Replace
5125         machine_mode arguments with format_helper arguments.
5126         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
5127         (real_from_integer, real_nan, real_2expN, real_convert)
5128         (real_value_truncate, exact_real_truncate, real_to_target)
5129         (real_from_target, significand_size, real_powi, real_trunc)
5130         (real_floor, real_ceil, real_round, real_isinteger): Replace
5131         machine_mode arguments with format_helper arguments.
5132         (real_to_target_fmt, real_from_target_fmt): Delete.
5133         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
5134         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
5135         argument with real_format.
5136         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
5138 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
5140         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
5141         (fixed_to_decimal, fixed_convert_from_real)
5142         (real_convert_from_fixed): Fix mode arguments to real_2expN.
5144 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
5146         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
5147         SCALAR_FLOAT_MODE_P.
5149 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
5151         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
5152         (completely_scalarize): Comment zero-length arrays.
5153         (get_access_replacement): Correct comment re. precondition.
5155 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5157         * config/i386/i386.c (get_builtin_code_for_version): Set priority
5158         for PROCESSOR_ZNVER1.
5159         (enum processor_model): Add M_AMDFAM17H_znver1.
5160         (struct arch_names_table): Likewise.
5161         * doc/extend.texi: ADD znver1.
5163 2015-10-30  Richard Biener  <rguenther@suse.de>
5165         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
5166         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
5167         zeros to be folded to VECTOR_CSTs.
5168         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
5169         * fold-const.c (fold): Use build_vector_from_ctor.
5171 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
5173         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
5174         "mov %0.h[0], %1.h[0] to "neon_move".
5175         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
5176         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
5177         "mov_imm".
5178         (*cmovsi_insn_uxtw): Likewise.
5180 2015-10-30  Tom de Vries  <tom@codesourcery.com>
5182         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
5183         unsigned, and initialize, and use initial value instead of hardcoded
5184         constant.  Add generic constraints dumping section.  Don't dump global
5185         initializers constraints dumping section if empty.  Don't update
5186         variable from if unused.
5188 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
5190         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
5191         flag_checking and/or CHECKING_P to eliminate conditional compilation
5192         on ENABLE_CHECKING.
5193         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
5194         * config/bfin/bfin.c (hwloop_optimize): Likewise.
5195         * config/i386/i386.c (ix86_print_operand_address): Likewise.
5196         (output_387_binary_op): Likewise.
5197         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
5198         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
5199         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
5200         Likewise.
5201         * config/rs6000/rs6000.h: Likewise.
5202         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
5204 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
5206         * config/sh/sh.opt (mfdpic): Add missing period.
5208 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
5210         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5211         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
5212         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5213         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
5214         mcore_base_register_rtx_p, mcore_legitimate_index_p,
5215         mcore_legitimate_address_p): New functions.
5216         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5218 2015-10-29  Jeff Law  <law@redhat.com>
5220         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
5221         method.
5222         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
5223         * tree-ssa-threadedge.c
5224         (record_temporary_equivalences_from_stmts_at_dest): Remove
5225         backedge_seen argument and associated code which invalidated
5226         equivalences based on the value of that argument.
5227         (thread_through_normal_block): Corresponding changes.
5229 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
5231         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
5232         function earlier in the file.
5233         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
5234         df_regs_ever_live_p.
5236 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
5238         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
5239         by ignoring it.
5241 2015-10-29  Richard Henderson  <rth@redhat.com>
5243         PR target/68124
5244         PR rtl-opt/67609
5245         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
5246         sse check to the exact conditions of PR 67609.
5248 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
5250         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
5251         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
5252         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
5253         of the traditional names that TFmode uses for handling IEEE
5254         extended double. If -mfloat128, add KFmode functions for all of
5255         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
5256         make TFmode use the same emulation functions as KFmode.
5257         (init_float128_ibm): Likewise.
5258         (init_float128_ieee): Likewise.
5259         (rs6000_generate_compare): For IEEE 128-bit floating point
5260         comparisons, call the unordered comparison function instead of the
5261         ordered comparison function.
5262         (rs6000_expand_float128_convert): Deal with operands that are
5263         memory operands. Restructure the code to use a switch statement on
5264         the mode. Add support for TFmode defaulting to either IBM extended
5265         double or IEEE 128-bit floating point. If the underlying types are
5266         the same, use a move instead of a conversion function.
5267         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
5268         use for IEEE 128-bit floating point constants with -mfloat128.
5269         (rs6000_c_mode_for_suffix): Likewise.
5270         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
5271         128-bit floating point with IBM extended double floating point.
5272         (rs6000_invalid_binary_op): Likewise.
5273         (rs6000_gen_le_vsx_permute): On little endian systems generate a
5274         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
5275         types that can go in vector registers.
5276         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
5277         point types that can go in vector registers on little endian
5278         PowerPC systems.
5279         (mark_swaps_for_removal): Likewise.
5280         (rs6000_analyze_swaps): Likewise.
5281         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
5283         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
5284         rework IEEE 128-bit floating point insns to deal with TFmode being
5285         either IBM extended double or IEEE 128-bit floating point.
5286         (IFKF): Likewise.
5287         (IBM128): Update iterator to add condition that the mode is IBM
5288         extended double.
5289         (IEEE128): New iterator for IEEE 128-bit floating point.
5290         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
5291         (FLOAT128): Likewise.
5292         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
5293         iterator.
5294         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
5295         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
5296         instead of hard coding TFmode or KFmode.
5297         (negtf2_internal): Likewise.
5298         (neg<mode>2_internal): Likewise.
5299         (abs<mode>2): Likewise.
5300         (abstf2_internal): Likewise.
5301         (abs<mode>2_internal): Likewise.
5302         (ieee_128bit_neg<mode>2): Likewise.
5303         (ieee_128bit_neg<mode>2_internal): Likewise.
5304         (ieee_128bit_abs<mode>2): Likewise.
5305         (ieee_128bit_abs<mode>2_internal): Likewise.
5306         (ieee_128bit_nabs<mode>2): Likewise.
5307         (ieee_128bit_nabs<mode>2_internal): Likewise.
5308         (extendiftf2): Add explicit conversions between 128-bit floating
5309         point types. Drop the old conversions that had become unwieldy.
5310         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
5311         (extendifkf2): Likewise.
5312         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
5313         (extendtfkf2): Likewise.
5314         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
5315         (trunciftf2): Likewise.
5316         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
5317         (truncifkf2): Likewise.
5318         (float<SDI:mode><IFKF:mode>2): Likewise.
5319         (trunckftf2): Likewise.
5320         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
5321         (trunctfif2): Likewise.
5322         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
5323         (extenddftf2): Rework 128-bit floating point conversions to
5324         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
5325         KFmode expanders into one function.
5326         (extenddf<mode>2): Likewise.
5327         (extenddftf2_fprs): Likewise.
5328         (extenddf<mode>2_fprs): Likewise.
5329         (extenddftf2_vsx): Likewise.
5330         (extenddf<mode>2_vsx): Likewise.
5331         (extendsftf2): Likewise.
5332         (extendsf<mode>2): Likewise.
5333         (trunctfdf2): Likewise.
5334         (trunc<mode>df2): Likewise.
5335         (trunctfdf2_internal1): Likewise.
5336         (trunc<mode>df2_internal1): Likewise.
5337         (trunctfdf2_internal2): Likewise.
5338         (trunc<mode>df2_internal2): Likewise.
5339         (trunctfsf2): Likewise.
5340         (trunc<mode>sf2): Likewise.
5341         (trunctfsf2_fprs): Likewise.
5342         (trunc<mode>sf2_fprs): Likewise.
5343         (floatsit2f): Likewise.
5344         (floatsi<mode>2): Likewise.
5345         (fix_trunc_helper): Likewise.
5346         (fix_trunc_helper<mode>): Likewise.
5347         (fix_trunctfsi2): Likewise.
5348         (fix_trunc<mode>si2): Likewise.
5349         (fix_trunctfsi2_fprs): Likewise.
5350         (fix_trunc<mode>si2_fprs): Likewise.
5351         (fix_trunctfsi2_internal): Likewise.
5352         (fix_trunc<mode>si2_internal): Likewise.
5353         (fix_trunctfdi2): Likewise.
5354         (fix_trunc<mode>di2): Likewise.
5355         (fixuns_trunctf<mode>2): Likewise.
5356         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
5357         (floatditf2): Likewise.
5358         (floatdi<mode>2): Likewise.
5359         (floatuns<mode>tf2): Likewise.
5360         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
5361         (cmptf_internal1): Use a mode iterator to add support for both
5362         types (IFmode, TFmode) that support IBM extended double.
5363         (cmp<mode>_internal1): Likewise.
5364         (cmptf_internal2): Likewise.
5365         (cmp<mode>_internal2): Likewise.
5367         * doc/extend.texi (Floating Types): Document __ibm128 and
5368         __float128 on PowerPC.
5370         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5371         -mfloat128 and -mno-float128.
5373 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
5375         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
5376         floating point modes that can go in vector registers.
5377         (MODES_TIEABLE_P): Move tests for vector modes before tests for
5378         scalar floating point, so that IEEE 128-bit floating point that
5379         can go in vector registers bind with vectors and not FP.
5380         (struct rs6000_args): Add libcall field.
5382         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
5383         and -mfloat128-software switches.  Replace them with a binary
5384         -mfloat128 switch.
5385         (-mfloat128): Likewise.
5387         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
5388         128-bit floating point types in GPRs, even if the appropriate
5389         option enabling the type was not used.
5390         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
5391         debugging.
5392         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
5393         pre-decrement on IEEE 128-bit floating point values.
5394         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
5395         is IEEE 128-bit floating point.
5396         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
5397         128-bit floating point types that can go in vector registers.
5398         (rs6000_option_override_internal): Change -mfloat128-none and
5399         -mfloat128-software to -mfloat128, and move code to be near other
5400         VSX option handling.
5401         (rs6000_option_override_internal): Disable -mfloat128 if we don't
5402         have the Altivec ABI.
5403         (rs6000_init_builtins): Don't make TFmode use either IFmode or
5404         KFmode floating point nodes. Instead, have three separate nodes.
5405         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
5406         eventually moving the long double default to IEEE 128-bit floating
5407         point.
5408         (rs6000_opt_masks): Add -mfloat128.
5409         (struct rs6000_opt_var): Fix typo in comment.
5410         (init_cumulative_args): Initialize libcall field in
5411         CUMULATIVE_ARGS.
5412         (rs6000_function_arg): Treat library functions as if they had
5413         prototypes to prevent IEEE 128-bit support functions from passing
5414         arguments in both GPRs and vector registers.
5415         (rs6000_arg_partial_bytes): Likewise.
5417         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
5418         an option that can be turned on via -mcpu=<xxx>.
5420         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
5421         longer used.
5423         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5424         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
5425         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
5426         double is IBM extended double.
5428         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
5429         SUBREGs.
5431 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
5433         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
5434         * genconditions.c: Define CHECKING_P in the generated code.
5435         * genextract.c: Use flag_checking in insn_extract.
5436         * gengtype.c (main): Remove conditional compilation.
5437         * gengtype.h: Likewise.
5439 2015-10-29  Jeff Law  <law@redhat.com>
5441         PR tree-optimization/67892
5442         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
5443         in comment.
5444         (thread_through_normal_block): If we have seen a backedge, then
5445         do nothing.  No longer call find_jump_threads_backwards here.
5446         (thread_across_edge): Use find_jump_threads_backwards to find
5447         jump threads if the old style threader was not successful.
5448         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
5449         gsi_last_nondebug_bb.  Return NULL if the block does not end
5450         with a control statement.
5451         (find_jump_threads_backwards): Setup code moved here from
5452         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
5453         single edge argument instead of name & block.
5454         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
5455         prototype.
5457 2015-10-29  Tom de Vries  <tom@codesourcery.com>
5459         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
5460         types.
5462 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
5464         * omp-low.c (lower_omp_target): Remove unreachable code & merge
5465         ifs.
5467 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
5469         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
5471 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
5473         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
5474         guard_bb0 and use guard_bb throughout.
5476 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
5478         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
5479         unnecessary label.
5481 2015-10-29  Richard Biener  <rguenther@suse.de>
5483         PR middle-end/68142
5484         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
5485         overflow.
5487 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
5489         * alias.c: Reorder #include statements and remove duplicates.
5490         * asan.c: Likewise.
5491         * attribs.c: Likewise.
5492         * auto-inc-dec.c: Likewise.
5493         * auto-profile.c: Likewise.
5494         * bb-reorder.c: Likewise.
5495         * bt-load.c: Likewise.
5496         * builtins.c: Likewise.
5497         * caller-save.c: Likewise.
5498         * calls.c: Likewise.
5499         * ccmp.c: Likewise.
5500         * cfg.c: Likewise.
5501         * cfganal.c: Likewise.
5502         * cfgbuild.c: Likewise.
5503         * cfgcleanup.c: Likewise.
5504         * cfgexpand.c: Likewise.
5505         * cfghooks.c: Likewise.
5506         * cfgloop.c: Likewise.
5507         * cfgloopanal.c: Likewise.
5508         * cfgloopmanip.c: Likewise.
5509         * cfgrtl.c: Likewise.
5510         * cgraph.c: Likewise.
5511         * cgraphbuild.c: Likewise.
5512         * cgraphclones.c: Likewise.
5513         * cgraphunit.c: Likewise.
5514         * cilk-common.c: Likewise.
5515         * combine-stack-adj.c: Likewise.
5516         * combine.c: Likewise.
5517         * compare-elim.c: Likewise.
5518         * convert.c: Likewise.
5519         * coverage.c: Likewise.
5520         * cppbuiltin.c: Likewise.
5521         * cprop.c: Likewise.
5522         * cse.c: Likewise.
5523         * cselib.c: Likewise.
5524         * data-streamer-in.c: Likewise.
5525         * data-streamer-out.c: Likewise.
5526         * data-streamer.c: Likewise.
5527         * dbxout.c: Likewise.
5528         * dce.c: Likewise.
5529         * ddg.c: Likewise.
5530         * debug.c: Likewise.
5531         * df-core.c: Likewise.
5532         * df-problems.c: Likewise.
5533         * df-scan.c: Likewise.
5534         * dfp.c: Likewise.
5535         * dojump.c: Likewise.
5536         * dominance.c: Likewise.
5537         * double-int.c: Likewise.
5538         * dse.c: Likewise.
5539         * dumpfile.c: Likewise.
5540         * dwarf2asm.c: Likewise.
5541         * dwarf2cfi.c: Likewise.
5542         * dwarf2out.c: Likewise.
5543         * emit-rtl.c: Likewise.
5544         * except.c: Likewise.
5545         * explow.c: Likewise.
5546         * expmed.c: Likewise.
5547         * expr.c: Likewise.
5548         * final.c: Likewise.
5549         * fixed-value.c: Likewise.
5550         * fold-const.c: Likewise.
5551         * function.c: Likewise.
5552         * fwprop.c: Likewise.
5553         * gcse.c: Likewise.
5554         * generic-match-head.c: Likewise.
5555         * ggc-common.c: Likewise.
5556         * gimple-builder.c: Likewise.
5557         * gimple-expr.c: Likewise.
5558         * gimple-fold.c: Likewise.
5559         * gimple-iterator.c: Likewise.
5560         * gimple-low.c: Likewise.
5561         * gimple-match-head.c: Likewise.
5562         * gimple-pretty-print.c: Likewise.
5563         * gimple-ssa-isolate-paths.c: Likewise.
5564         * gimple-ssa-strength-reduction.c: Likewise.
5565         * gimple-streamer-in.c: Likewise.
5566         * gimple-streamer-out.c: Likewise.
5567         * gimple-walk.c: Likewise.
5568         * gimple.c: Likewise.
5569         * gimplify-me.c: Likewise.
5570         * gimplify.c: Likewise.
5571         * godump.c: Likewise.
5572         * graph.c: Likewise.
5573         * graphite-poly.c: Likewise.
5574         * haifa-sched.c: Likewise.
5575         * hw-doloop.c: Likewise.
5576         * ifcvt.c: Likewise.
5577         * incpath.c: Likewise.
5578         * init-regs.c: Likewise.
5579         * internal-fn.c: Likewise.
5580         * ipa-chkp.c: Likewise.
5581         * ipa-comdats.c: Likewise.
5582         * ipa-cp.c: Likewise.
5583         * ipa-devirt.c: Likewise.
5584         * ipa-icf-gimple.c: Likewise.
5585         * ipa-icf.c: Likewise.
5586         * ipa-inline-analysis.c: Likewise.
5587         * ipa-inline-transform.c: Likewise.
5588         * ipa-inline.c: Likewise.
5589         * ipa-polymorphic-call.c: Likewise.
5590         * ipa-profile.c: Likewise.
5591         * ipa-prop.c: Likewise.
5592         * ipa-pure-const.c: Likewise.
5593         * ipa-ref.c: Likewise.
5594         * ipa-reference.c: Likewise.
5595         * ipa-split.c: Likewise.
5596         * ipa-utils.c: Likewise.
5597         * ipa-visibility.c: Likewise.
5598         * ipa.c: Likewise.
5599         * ira-build.c: Likewise.
5600         * ira-color.c: Likewise.
5601         * ira-conflicts.c: Likewise.
5602         * ira-costs.c: Likewise.
5603         * ira-emit.c: Likewise.
5604         * ira-lives.c: Likewise.
5605         * ira.c: Likewise.
5606         * jump.c: Likewise.
5607         * langhooks.c: Likewise.
5608         * lcm.c: Likewise.
5609         * lists.c: Likewise.
5610         * loop-doloop.c: Likewise.
5611         * loop-init.c: Likewise.
5612         * loop-invariant.c: Likewise.
5613         * loop-iv.c: Likewise.
5614         * loop-unroll.c: Likewise.
5615         * lower-subreg.c: Likewise.
5616         * lra-assigns.c: Likewise.
5617         * lra-coalesce.c: Likewise.
5618         * lra-constraints.c: Likewise.
5619         * lra-eliminations.c: Likewise.
5620         * lra-lives.c: Likewise.
5621         * lra-remat.c: Likewise.
5622         * lra-spills.c: Likewise.
5623         * lra.c: Likewise.
5624         * lto-cgraph.c: Likewise.
5625         * lto-compress.c: Likewise.
5626         * lto-opts.c: Likewise.
5627         * lto-section-in.c: Likewise.
5628         * lto-section-out.c: Likewise.
5629         * lto-streamer-in.c: Likewise.
5630         * lto-streamer-out.c: Likewise.
5631         * lto-streamer.c: Likewise.
5632         * mode-switching.c: Likewise.
5633         * modulo-sched.c: Likewise.
5634         * omp-low.c: Likewise.
5635         * optabs.c: Likewise.
5636         * opts-global.c: Likewise.
5637         * passes.c: Likewise.
5638         * plugin.c: Likewise.
5639         * postreload-gcse.c: Likewise.
5640         * postreload.c: Likewise.
5641         * predict.c: Likewise.
5642         * print-tree.c: Likewise.
5643         * profile.c: Likewise.
5644         * real.c: Likewise.
5645         * realmpfr.c: Likewise.
5646         * recog.c: Likewise.
5647         * ree.c: Likewise.
5648         * reg-stack.c: Likewise.
5649         * regcprop.c: Likewise.
5650         * reginfo.c: Likewise.
5651         * regrename.c: Likewise.
5652         * regstat.c: Likewise.
5653         * reload.c: Likewise.
5654         * reload1.c: Likewise.
5655         * reorg.c: Likewise.
5656         * resource.c: Likewise.
5657         * rtl-chkp.c: Likewise.
5658         * rtl-error.c: Likewise.
5659         * rtlanal.c: Likewise.
5660         * rtlhooks.c: Likewise.
5661         * sanopt.c: Likewise.
5662         * sched-deps.c: Likewise.
5663         * sched-ebb.c: Likewise.
5664         * sched-rgn.c: Likewise.
5665         * sese.c: Likewise.
5666         * shrink-wrap.c: Likewise.
5667         * simplify-rtx.c: Likewise.
5668         * stack-ptr-mod.c: Likewise.
5669         * statistics.c: Likewise.
5670         * stmt.c: Likewise.
5671         * stor-layout.c: Likewise.
5672         * store-motion.c: Likewise.
5673         * stringpool.c: Likewise.
5674         * symtab.c: Likewise.
5675         * target-globals.c: Likewise.
5676         * targhooks.c: Likewise.
5677         * toplev.c: Likewise.
5678         * tracer.c: Likewise.
5679         * trans-mem.c: Likewise.
5680         * tree-affine.c: Likewise.
5681         * tree-call-cdce.c: Likewise.
5682         * tree-cfg.c: Likewise.
5683         * tree-cfgcleanup.c: Likewise.
5684         * tree-chkp-opt.c: Likewise.
5685         * tree-chkp.c: Likewise.
5686         * tree-chrec.c: Likewise.
5687         * tree-complex.c: Likewise.
5688         * tree-data-ref.c: Likewise.
5689         * tree-dfa.c: Likewise.
5690         * tree-diagnostic.c: Likewise.
5691         * tree-dump.c: Likewise.
5692         * tree-eh.c: Likewise.
5693         * tree-emutls.c: Likewise.
5694         * tree-if-conv.c: Likewise.
5695         * tree-inline.c: Likewise.
5696         * tree-into-ssa.c: Likewise.
5697         * tree-iterator.c: Likewise.
5698         * tree-loop-distribution.c: Likewise.
5699         * tree-nested.c: Likewise.
5700         * tree-nrv.c: Likewise.
5701         * tree-object-size.c: Likewise.
5702         * tree-outof-ssa.c: Likewise.
5703         * tree-parloops.c: Likewise.
5704         * tree-phinodes.c: Likewise.
5705         * tree-predcom.c: Likewise.
5706         * tree-pretty-print.c: Likewise.
5707         * tree-profile.c: Likewise.
5708         * tree-scalar-evolution.c: Likewise.
5709         * tree-sra.c: Likewise.
5710         * tree-ssa-address.c: Likewise.
5711         * tree-ssa-alias.c: Likewise.
5712         * tree-ssa-ccp.c: Likewise.
5713         * tree-ssa-coalesce.c: Likewise.
5714         * tree-ssa-copy.c: Likewise.
5715         * tree-ssa-dce.c: Likewise.
5716         * tree-ssa-dom.c: Likewise.
5717         * tree-ssa-dse.c: Likewise.
5718         * tree-ssa-forwprop.c: Likewise.
5719         * tree-ssa-ifcombine.c: Likewise.
5720         * tree-ssa-live.c: Likewise.
5721         * tree-ssa-loop-ch.c: Likewise.
5722         * tree-ssa-loop-im.c: Likewise.
5723         * tree-ssa-loop-ivcanon.c: Likewise.
5724         * tree-ssa-loop-ivopts.c: Likewise.
5725         * tree-ssa-loop-manip.c: Likewise.
5726         * tree-ssa-loop-niter.c: Likewise.
5727         * tree-ssa-loop-prefetch.c: Likewise.
5728         * tree-ssa-loop-unswitch.c: Likewise.
5729         * tree-ssa-loop.c: Likewise.
5730         * tree-ssa-math-opts.c: Likewise.
5731         * tree-ssa-operands.c: Likewise.
5732         * tree-ssa-phiopt.c: Likewise.
5733         * tree-ssa-phiprop.c: Likewise.
5734         * tree-ssa-pre.c: Likewise.
5735         * tree-ssa-propagate.c: Likewise.
5736         * tree-ssa-reassoc.c: Likewise.
5737         * tree-ssa-sccvn.c: Likewise.
5738         * tree-ssa-scopedtables.c: Likewise.
5739         * tree-ssa-sink.c: Likewise.
5740         * tree-ssa-strlen.c: Likewise.
5741         * tree-ssa-structalias.c: Likewise.
5742         * tree-ssa-tail-merge.c: Likewise.
5743         * tree-ssa-ter.c: Likewise.
5744         * tree-ssa-threadedge.c: Likewise.
5745         * tree-ssa-threadupdate.c: Likewise.
5746         * tree-ssa-uncprop.c: Likewise.
5747         * tree-ssa-uninit.c: Likewise.
5748         * tree-ssa.c: Likewise.
5749         * tree-ssanames.c: Likewise.
5750         * tree-stdarg.c: Likewise.
5751         * tree-streamer-in.c: Likewise.
5752         * tree-streamer-out.c: Likewise.
5753         * tree-streamer.c: Likewise.
5754         * tree-switch-conversion.c: Likewise.
5755         * tree-tailcall.c: Likewise.
5756         * tree-vect-data-refs.c: Likewise.
5757         * tree-vect-generic.c: Likewise.
5758         * tree-vect-loop-manip.c: Likewise.
5759         * tree-vect-loop.c: Likewise.
5760         * tree-vect-patterns.c: Likewise.
5761         * tree-vect-slp.c: Likewise.
5762         * tree-vect-stmts.c: Likewise.
5763         * tree-vectorizer.c: Likewise.
5764         * tree-vrp.c: Likewise.
5765         * tree.c: Likewise.
5766         * tsan.c: Likewise.
5767         * ubsan.c: Likewise.
5768         * value-prof.c: Likewise.
5769         * var-tracking.c: Likewise.
5770         * varasm.c: Likewise.
5771         * varpool.c: Likewise.
5772         * vtable-verify.c: Likewise.
5773         * web.c: Likewise.
5774         * wide-int-print.cc: Likewise.
5775         * wide-int.cc: Likewise.
5776         * xcoffout.c: Likewise.
5778 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
5780         * Makefile.in (NO_PIE_CFLAGS): New.
5781         (NO_PIE_FLAG): Likewise.
5782         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5783         (NO_PIE_FLAG_FOR_BUILD): Likewise.
5784         (BUILD_NO_PIE_CFLAGS): Likewise.
5785         (BUILD_NO_PIE_FLAG): Likewise.
5786         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
5787         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
5788         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
5789         $(BUILD_NO_PIE_CFLAGS).
5790         (BUILD_CXXFLAGS): Likewise.
5791         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
5792         $(BUILD_NO_PIE_FLAG).
5793         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
5794         (BUILD_NO_PIE_FLAG): Likewise.
5795         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5796         (NO_PIE_FLAG_FOR_BUILD): Likewise.
5797         * configure: Regenerated.
5799 2015-10-29  Richard Biener  <rguenther@suse.de>
5801         PR middle-end/56956
5802         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
5803         unsigned conditonal negation to ABS_EXPR.
5805 2015-10-29  Richard Biener  <rguenther@suse.de>
5807         * gimple-match-head.c (gimple_simplify): Remove premature checking
5808         of builtin_decl_implicit of function calls we simplify.
5810 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
5812         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
5813         (get_computation_cost_at): Ditto.
5814         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
5815         and inv_expr_id.
5817 2015-10-28  Tom de Vries  <tom@codesourcery.com>
5819         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
5820         superfluous code.
5822 2015-10-28  Jason Merrill  <jason@redhat.com>
5824         * Makefile.in (TAGS): Include libcpp and libiberty.
5826 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
5828         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
5829         (extract_omp_for_data): Remove OpenACC special handling of
5830         chunking.
5832         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
5833         (struct parallel): Update comment.
5834         (nvptx_reorg): Likewise.
5835         (nvptx_neuter): Cleanup whitespace.
5837 2015-10-28  Richard Henderson  <rth@redhat.com>
5839         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
5841 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5843         PR target/67839
5844         * config/avr/predicates.md (low_io_address_operand): Don't
5845         consider MODE when computing upper bound.
5846         (io_address_operand): Likewise.
5848 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
5850         * fold-const.c (operand_equal_p): Do not verify that types are
5851         compatible for MEM_REFs.
5853 2015-10-28  Richard Biener  <rguenther@suse.de>
5855         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
5856         in simplifying VEC_COND_EXPR conditions.
5858 2015-10-28  Tom de Vries  <tom@codesourcery.com>
5860         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
5861         into vi_next of a full_var.
5863 2015-10-28  Tom de Vries  <tom@codesourcery.com>
5865         * tree-ssa-structalias.c (new_var_info, make_heapvar)
5866         (make_constraint_from_restrict, make_constraint_from_global_restrict)
5867         (create_function_info_for, create_variable_info_for_1)
5868         (create_variable_info_for): Add and handle add_id parameter.
5869         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
5870         (init_base_vars): Add extra argument to calls to new_var_info.
5871         (get_vi_for_tree): Add extra argument to call to
5872         create_variable_info_for.
5873         (process_constraint, do_deref, process_all_all_constraints): Add extra
5874         argument to calls to new_scalar_tmp_constraint_exp.
5875         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
5876         argument to calls to make_heapvar.
5877         (make_restrict_var_constraints): Add extra argument to call to
5878         make_constraint_from_global_restrict.
5879         (intra_create_variable_infos): Add extra argument to call to
5880         create_variable_info_for_1.
5881         (ipa_pta_execute): Add extra argument to call to
5882         create_function_info_for.
5884 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5886         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
5887         (sibcall_value): Likewise.
5889 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
5891         * config/nvptx/nvptx.h (struct machine_function): Add
5892         axis_predicate.
5893         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
5894         nvptx_expand_oacc_join): Declare.
5895         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
5896         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
5897         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
5898         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
5899         UNSPECV_JOINING, UNSPECV_JOIN): New.
5900         (BITS, BITD): New mode iterators.
5901         (br_true_uni, br_false_uni): New.
5902         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
5903         (oacc_dim_size, oacc_dim_pos): New.
5904         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
5905         (oacc_fork, oacc_join): New.
5906         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
5907         (worker_load<mode>, worker_store<mode>): New.
5908         (nvptx_barsync): New.
5909         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
5910         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
5911         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
5912         worker_bcast_sym): New.
5913         (nvptx_option_override): Initialize worker broadcast buffer.
5914         (nvptx_emit_forking, nvptx_emit_joining): New.
5915         (nvptx_init_axis_predicate): New.
5916         (nvptx_declare_function_name): Init axis predicates.
5917         (nvptx_expand_call): Add fork/join markers around routine call.
5918         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
5919         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
5920         (nvptx_gen_vcast): New.
5921         (struct wcast_data_t): New.
5922         (enum propagate_mask): New.
5923         (nvptx_gen_wcast): New.
5924         (nvptx_print_operand): Add 'S' case.
5925         (struct parallel): New.
5926         (parallel::parallel, parallel::~parallel): New.
5927         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
5928         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
5929         nvptx_find_par, nvptx_discover_pars): New.
5930         (nvptx_propagate): New.
5931         (vprop_gen, nvptx_vpropagate): New.
5932         (wprop_gen, nvptx_wpropagate): New.
5933         (nvptx_wsync): New.
5934         (nvptx_single, nvptx_skip_par): New.
5935         (nvptx_process_pars, nvptx_neuter_pars): New.
5936         (ntptx_reorg): Split blocks, generate parallel structure, apply
5937         neutering.
5938         (nvptx_cannot_copy_insn_p): New.
5939         (nvptx_file_end): Emit worker broadcast decl.
5940         (nvptx_goacc_fork_join): New.
5941         (TARGET_CANNOT_COPY_INSN_P): Override.
5942         (TARGET_GOACC_FORK_JOIN): Override.
5944 2015-10-28  Richard Biener  <rguenther@suse.de>
5946         * fold-const.c (negate_expr_p): Adjust the division case to
5947         properly avoid introducing undefined overflow.
5948         (fold_negate_expr): Likewise.
5950 2015-10-28  Richard Biener  <rguenther@suse.de>
5952         PR tree-optimization/65962
5953         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5954         Avoid creating loop carried dependences also for outer loops
5955         of the loop a use to replace is in.
5957 2015-10-28  Richard Biener  <rguenther@suse.de>
5959         * common.opt (fchecking): New flag controlling flag_checking.
5960         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
5961         * timevar.c (timer::print): Adjust output.
5962         * doc/invoke.texi (fchecking): Document.
5964 2015-10-28  Richard Biener  <rguenther@suse.de>
5966         PR middle-end/68067
5967         * fold-const.c (negate_expr_p): We cannot negate plus or minus
5968         if overflow is not wrapping.  Likewise multiplication unless
5969         one operand is constant and not power of two.
5970         (fold_negate_expr): Adjust accordingly.
5972 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
5974         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
5975         fields.
5976         (is_oacc_parallel, is_oacc_kernels): New.
5977         (enclosing_target_ctx): May return NULL.
5978         (ctx_in_oacc_kernels_region): New.
5979         (check_oacc_kernel_gwv): New.
5980         (oacc_loop_or_target_p): Delete.
5981         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
5982         operands.  Strip reductions fro kernels.
5983         (scan_omp_target): Don't calculate gwv mask.
5984         (lower_oacc_head_mark, lower_oacc_loop_marker,
5985         lower_oacc_head_tail): New.
5986         (struct oacc_collapse): New.
5987         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
5988         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5989         Remove OpenACC handling.
5990         (expand_oacc_for): New.
5991         (expand_omp_for): Call expand_oacc_for.
5992         (lower_omp_for): Call lower_oacc_head_tail.
5994 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
5996         * attribs.c (check_attribute_tables): New function, broken out from...
5997         (init_attributes): Use it.
5998         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
5999         gcc_checking_assert and checking_* functions to eliminate
6000         ENABLE_CHECKING conditionals.
6001         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
6002         (pass_expand::execute): Likewise.
6003         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
6004         * cgraphunit.c (mark_functions_to_output): Likewise.
6005         (cgraph_node::expand_thunk): Likewise.
6006         (symbol_table::compile): Likewise.
6007         * ddg.c (add_cross_iteration_register_deps): Likewise.
6008         (create_ddg_all_sccs): Likewise.
6009         * df-core.c (df_finish_pass, df_analyze): Likewise.
6010         * diagnostic-core.h: Likewise.
6011         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
6012         * dominance.c (calculate_dominance_info): Likewise.
6013         * dwarf2out.c (add_AT_die_ref): Likewise.
6014         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
6015         (loc_list_from_tree, gen_lexical_block_die): Likewise.
6016         gen_type_die_with_usage, gen_type_die): Likewise.
6017         (dwarf2out_decl): Likewise.
6018         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
6019         * except.c (duplicate_eh_regions): Likewise.
6020         * fwprop.c (register_active_defs, update_df_init): Likewise.
6021         (fwprop_init, fwprop_done): Likewise.
6022         (update_uses): Likewise.
6023         * ggc-page.c (ggc_grow): Likewise.
6024         * gimplify.c (gimplify_body): Likewise.
6025         (gimplify_hasher::equal): Likewise.
6026         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
6027         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
6028         Likewise.
6029         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
6030         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
6031         * hash-table.h (::find_empty_slot_for_expand): Likewise.
6032         * ifcvt.c (if_convert): Likewise.
6033         * ipa-cp.c (ipcp_propagate_stage): Likewise.
6034         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
6035         (odr_type_p, odr_types_equivalent_p): Likewise.
6036         (add_type_duplicate, get_odr_type): Likewise.
6037         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
6038         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
6039         (sem_item_optimizer::verify_classes): Likewise.
6040         (sem_item_optimizer::traverse_congruence_split): Likewise.
6041         (sem_item_optimizer::checking_verify_classes): New.
6042         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
6043         method.
6044         * cfgrtl.c (commit_edge_insertions): Likewise.
6045         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
6046         (rtl_flow_call_edges_add): Likewise.
6047         * cgraph.c (symbol_table::create_edge): Likewise.
6048         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
6049         * cgraph.h (symtab_node): Likewise.
6050         (symtab_node::checking_verify_symtab_nodes): Define.
6051         (cgraph_node::checking_verify_cgraph_nodes): Define.
6052         * cfghooks.h (checking_verify_flow_info): Define.
6053         * cfgloop.h (checking_verify_loop_structure): Define.
6054         * dominance.h (checking_verify_dominators): Define.
6055         * et-forest.c: Fix comment.
6056         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
6057         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6058         ENABLE_CHECKING conditionals.
6059         * ipa-inline-transform.c (save_inline_function_body): Likewise.
6060         * ipa-inline.c (inline_small_functions): Likewise.
6061         (early_inliner): Likewise.
6062         * ipa-inline.h (estimate_edge_growth): Likewise.
6063         * ipa-visibility.c (function_and_variable_visibility): Likewise.
6064         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6065         (ipa_single_use): Likewise.
6066         * ira-int.h: Likewise.
6067         * ira.c (ira): Likewise.
6068         * loop-doloop.c (doloop_optimize_loops): Likewise.
6069         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
6070         * loop-invariant.c (move_loop_invariants): Likewise.
6071         * lra-assigns.c (lra_assign): Likewise.
6072         * lra-constraints.c (lra_constraints): Likewise.
6073         * lra-eliminations.c (lra_eliminate): Likewise.
6074         * lra-int.h (struct lra_reg): Likewise.
6075         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
6076         (lra_create_live_ranges_1): Likewise.
6077         * lra-remat.c (create_remat_bb_data): Likewise.
6078         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
6079         (lra): Likewise.
6080         (check_rtl): Always define. Remove incorrect guard around
6081         extract_constrain_insn call.
6082         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
6083         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6084         ENABLE_CHECKING conditionals.
6085         * lto-streamer-out.c (DFS::DFS): Likewise.
6086         (lto_output): Likewise.
6087         * lto-streamer.c (lto_streamer_init): Likewise.
6088         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
6089         expand_omp_target, execute_expand_omp): Likewise.
6090         (lower_omp_target): Likewise.
6091         * passes.c (execute_function_todo): Likewise.
6092         (execute_todo, execute_one_pass): Likewise.
6093         (verify_curr_properties): Always define.
6094         * predict.c (tree_estimate_probability: Use flag_checking,
6095         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6096         ENABLE_CHECKING conditionals.
6097         (propagate_freq): Likewise.
6098         * pretty-print.c (pp_format): Likewise.
6099         * real.c (real_to_decimal_for_mode): Likewise.
6100         * recog.c (split_all_insns): Likewise.
6101         * regcprop.c (kill_value_one_regno): Likewise.
6102         (copy_value): Likewise.
6103         (validate_value_data): Define unconditionally.
6104         * reload.c: Fix comment.
6105         * timevar.c: Include options.h
6106         * tree-ssa.h (checking_verify_ssa): Define.
6107         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
6108         * sched-deps.c (CHECK): Remove unused macro.
6109         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
6110         gcc_checking_assert and checking_* functions to eliminate
6111         ENABLE_CHECKING conditionals.
6112         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
6113         * sel-sched.c (struct moveop_static_params): Likewise.
6114         (find_best_reg_for_expr, move_cond_jump): Likewise.
6115         (move_op_orig_expr_not_found): Likewise.
6116         (code_motion_process_successors, move_op): Likewise.
6117         * ssa-iterators.h (first_readonly_imm_use): Likewise.
6118         (next_readonly_imm_use): Likewise.
6119         * store-motion.c (compute_store_table): Likewise.
6120         * symbol-summary.h (function_summary::function_summary): Likewise.
6121         * target.h (cumulative_args_t): Likewise.
6122         (get_cumulative_args, pack_cumulative_args): Likewise.
6123         * timevar.c: (timer::print): Likewise.
6124         * trans-mem.c (ipa_tm_execute): Likewise.
6125         * tree-cfg.c (move_stmt_op): Likewise.
6126         (move_sese_region_to_fn): Likewise.
6127         (gimple_flow_call_edges_add): Likewise.
6128         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
6129         Likewise.
6130         * tree-eh.c (remove_unreachable_handlers): Likewise.
6131         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
6132         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
6133         * tree-into-ssa.c (update_ssa): Likewise.
6134         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
6135         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
6136         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
6137         * tree-predcom.c (suitable_component_p): Likewise.
6138         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
6139         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
6140         * tree-ssa-live.c (verify_live_on_entry): Likewise.
6141         * tree-ssa-live.h (register_ssa_partition): Likewise.
6142         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
6143         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
6144         (tree_transform_and_unroll_loop): Likewise.
6145         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6146         * tree-ssa-operands.c (get_expr_operands): Likewise.
6147         * tree-ssa-propagate.c (replace_exp_1): Likewise.
6148         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
6149         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
6150         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
6151         * tree-ssanames.c (release_ssa_name_fn): Likewise.
6152         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
6153         * tree-vect-loop-manip.c
6154         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
6155         (slpeel_checking_verify_cfg_after_peeling): Likewise.
6156         (vect_do_peeling_for_loop_bound): Likewise.
6157         (vect_do_peeling_for_alignment): Likewise.
6158         * tree-vrp.c (supports_overflow_infinity): Likewise.
6159         (set_value_range): Likewise.
6160         * tree.c (free_lang_data_in_cgraph): Likewise.
6161         * value-prof.c (gimple_remove_histogram_value): Likewise.
6162         (free_hist): Likewise.
6163         * var-tracking.c (canonicalize_values_star): Likewise.
6164         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
6166 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6168         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
6169         IFN_GOACC_LOOP): New.
6170         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
6171         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
6172         IFN_UNIQUE_OACC_TAIL_MARK.
6173         (enum ifn_goacc_loop_kind): New.
6174         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
6175         IFN_UNIQUE_OACC_JOIN cases.
6176         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
6177         (expand_GOACC_LOOP): New.
6178         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
6179         * omp-low.c: Include gimple-pretty-print.h.
6180         (struct oacc_loop): New.
6181         (enum oacc_loop_flags): New.
6182         (oacc_thread_numbers): New.
6183         (oacc_xform_loop): New.
6184         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
6185         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
6186         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
6187         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
6188         oacc_loop_discovery): New.
6189         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
6190         oacc_loop_process): New.
6191         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
6192         (execute_oacc_device_lower): Discover & process loops.  Process
6193         internal fns.
6194         * target.def (goacc.fork_join): Change sense of hook, clarify
6195         documentation.
6196         * doc/tm.texi: Regenerated.
6198 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6200         * target-insns.def (oacc_fork, oacc_join): Define.
6201         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
6202         (goacc.fork_join): New GOACC hook.
6203         * targhooks.h (default_goacc_fork_join): Declare.
6204         * omp-low.c (default_goacc_forkjoin): New.
6205         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
6206         * doc/tm.texi: Regenerate.
6208 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6210         * omp-low.c (oacc_init_rediction_array): New.
6211         (oacc_initialize_reduction_data): Initialize array.
6213 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6215         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
6217 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6219         * internal-fn.c (expand_UNIQUE): New.
6220         * internal-fn.h (enum ifn_unique_kind): New.
6221         * internal-fn.def (IFN_UNIQUE): New.
6222         * target-insns.def (unique): Define.
6223         * gimple.h (gimple_call_internal_unique_p): New.
6224         * gimple.c (gimple_call_same_target_p): Check internal fn
6225         uniqueness.
6226         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
6227         * tree-ssa-threadedge.c
6228         (record_temporary_equivalences_from_stmts): Likewise.
6229         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
6231 2015-10-27  Richard Henderson  <rth@redhat.com>
6233         PR rtl-opt/67609
6234         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
6235         narrowing subregs on SSE and MMX registers.
6236         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
6237         appear to be sub-words of multi-register pseudos must be rejected.
6238         * doc/tm.texi: Regenerate.
6240 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6242         PR target/68102
6243         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
6244         operands[0] is a reg before taking its REGNO in split condition.
6245         (*movdi_aarch64): Likewise.
6247 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6249         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
6250         Handle floating point inner modes properly.
6252 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
6254         * tree-vect-looop.c
6255         (vectorizable_live_operation): Change iterator.
6257 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6258             Aditya Kumar  <aditya.k7@samsung.com>
6260         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
6261           function to schedule based on isl_schedule_node.
6262         (get_schedule_map_st): New schedule optimizer based on
6263         isl_schedule_node.
6264         (scop_get_domains): New. Return the isl_union_set containing the
6265         domains of all the pbbs.
6266         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
6268 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
6270         PR target/67215
6271         * calls.c (prepare_call_address): Don't handle -fno-plt here.
6272         * config/i386/i386.c (ix86_expand_call): Generate indirect call
6273         via GOT for -fno-plt.  Support indirect call via GOT for x32.
6274         * config/i386/predicates.md (sibcall_memory_operand): Allow
6275         GOT memory operand.
6277 2015-10-27  Richard Biener  <rguenther@suse.de>
6279         PR tree-optimization/68104
6280         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
6281         strided access check ...
6282         (vect_compute_data_refs_alignment): ... here.
6284 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
6285             Joseph Myers  <joseph@codesourcery.com>
6286             Mark Shinwell  <shinwell@codesourcery.com>
6287             Andrew Stubbs  <ams@codesourcery.com>
6288             Rich Felker <dalias@libc.org>
6290         * config.gcc: Handle --enable-fdpic.
6291         * config/sh/constraints.md (Ccl): New constraint.
6292         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
6293         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
6294         __SH_FDPIC__.
6295         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
6296         library functions.
6297         * config/sh/sh-protos.h (function_symbol_result): New struct.
6298         (function_symbol): Return function_symbol_result.
6299         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
6300         declarations.
6301         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
6302         target hook.
6303         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
6304         (sh_option_override): Force -fPIC if FDPIC is in effect.
6305         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
6306         UNSPEC_GOTOFFFUNCDESC cases.
6307         (prepare_move_operands): Use FDPIC initial GOT register for
6308         TLS-related GOT access; inhibit cross-section address offset constants
6309         for FDPIC.
6310         (sh_assemble_integer): New function.
6311         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
6312         PC-relative call sites.
6313         (expand_ashiftrt): Adapt invocation of function_symbol.
6314         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
6315         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
6316         UNSPEC_GOTOFFFUNCDESC.
6317         (legitimize_pic_address): Resolve function symbols to function
6318         descriptors for FDPIC.  Do not use GOT-relative addressing for local
6319         data that may be read-only on FDPIC.
6320         (sh_emit_storesi, sh_emit_storehi): New functions.
6321         (sh_trampoline_init): Generate FDPIC trampolines.
6322         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
6323         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
6324         (sh_output_mi_thunk): Generate FDPIC call.
6325         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
6326         FDPIC, generate call site labels to use PC-relative addressing rather
6327         than GOT-relative addressing.
6328         (sh_conditional_register_usage): Make PIC register fixed and call used
6329         when FDPIC is in effect.
6330         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
6331         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
6332         sh_get_fdpic_reg_initial_val): New functions.
6333         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
6334         Handle -mfdpic.
6335         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
6336         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
6337         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
6338         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
6339         FDPIC_SELF_SPECS.
6340         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
6341         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
6342         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
6343         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
6344         constants.
6345         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
6346         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
6347         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
6348         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
6349         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
6350         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
6351         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
6352         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
6353         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
6354         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
6355         block_move_real, block_lump_real, block_move_real_i4,
6356         block_lump_real_i4): Add support for FDPIC calls.
6357         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
6358         call_value_pop): Adjust for new function_symbol signature.
6359         * config/sh/sh.opt (-mfdpic): New option.
6360         * doc/install.texi (Options specification): Document --enable-fdpic.
6361         * doc/invoke.texi (SH Options): Document -mfdpic.
6364 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
6366         PR tree-optimization/65963
6367         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6368         LSHIFT_EXPRs as equivalent MULT_EXPRs.
6370 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6372         PR target/67929
6373         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
6374         * config/arm/constraints.md (Dp): Update callsite.
6375         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
6377 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6379         * builtins.c (fold_builtin_load_exponent): Rename to...
6380         (fold_const_builtin_load_exponent): ...this and only handle
6381         constant arguments.
6382         (fold_builtin_2): Update accordingly.
6383         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
6385 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6387         * builtins.c (fold_builtin_logb): Rename to...
6388         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
6389         (fold_builtin_significand): Rename to...
6390         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
6391         (fold_builtin_1): Update accordingly.
6393 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6395         * builtins.c (fold_builtin_fmin_fmax): Delete.
6396         (fold_builtin_2): Handle constant fmin and fmax arguments here.
6397         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
6399 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
6401         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
6402         for register extension into sign and zero register extension.
6403         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
6404         for sign and zero register extension.
6405         (cortexa57_addrcost_table): Likewise.
6406         (xgene1_addrcost_table): Likewise.
6408 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6410         * fold-const.c (fold_minmax): Delete.
6411         (fold_binary_loc): Don't call it.
6412         * match.pd: Add rules previously handled by fold_minmax.
6414 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6416         * builtins.c (fold_builtin_fma): Remove constant handling.
6417         (fold_builtin_3): Handle constant fma arguments here.
6419 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6421         * builtins.c (fold_builtin_fabs): Remove constant handling.
6422         (fold_builtin_abs): Likewise.
6424 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6426         * builtins.c (fold_builtin_copysign): Delete.
6427         (fold_builtin_2): Handle constant copysign arguments here.
6428         * match.pd: Add rules previously handled by fold_builtin_copysign.
6430 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6432         * builtins.c (fold_builtin_signbit): Delete.
6433         (fold_builtin_2): Handle constant signbit arguments here.
6434         * match.pd: Add rules previously handled by fold_builtin_signbit.
6436 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6438         * match.pd: Handle sqrt(x) cmp 0 specially.
6440 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
6442         * tree-vect-generic.c (expand_vector_operations_1): Check
6443         optab type before using it.
6445 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6447         * config/aarch64/aarch64-protos.h
6448         (struct tune_params): Add autoprefetcher_model field.
6449         * config/aarch64/aarch64.c: Include params.h
6450         (generic_tunings): Specify autoprefetcher_model value.
6451         (cortexa53_tunings): Likewise.
6452         (cortexa57_tunings): Likewise.
6453         (cortexa72_tunings): Likewise.
6454         (thunderx_tunings): Likewise.
6455         (xgene1_tunings): Likewise.
6456         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
6457         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
6458         (aarch64_override_options_internal): Set
6459         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
6461 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6463         * builtins.c (fold_builtin_exponent): Delete.
6464         (fold_builtin_2): Handle constant expN arguments here.
6465         * match.pd: Fold expN(logN(x)) -> x.
6467 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6469         * builtins.c (fold_builtin_powi): Delete.
6470         (fold_builtin_2): Handle constant powi arguments here.
6471         * match.pd: Add rules previously handled by fold_builtin_powi.
6473 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6475         * builtins.c (fold_builtin_pow): Delete in favor of...
6476         (fold_const_builtin_pow): ...this new function.  Only handle constant
6477         arguments.
6478         (fold_builtin_2): Update accordingly.
6479         * match.pd: Add rules previously handled by fold_builtin_pow.
6481 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6483         * builtins.c (fold_builtin_hypot): Delete.
6484         (fold_builtin_2): Handle constant hypot arguments here.
6485         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
6486         hypot(x, x) to fabs(x)*sqrt(2).
6488 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6490         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
6491         instead of make_ssa_name if not yet in SSA form.
6493 2015-10-27  Richard Biener  <rguenther@suse.de>
6495         * cfg.c (free_edge): Add function argument and use it instead of cfun.
6496         (clear_edges): Likewise.
6497         * cfg.h (clear_edges): Adjust prototype.
6498         * cfgexpand.c (pass_expand::execute): Adjust.
6499         * cfgloop.c (release_recorded_exits): Add function argument and use
6500         it instead of cfun.
6501         * cfgloop.h (release_recorded_exits): Adjust prototype.
6502         (loops_state_satisfies_p): Add overload with function argument.
6503         (loops_state_set): Likewise.
6504         (loops_state_clear): Likewise.
6505         (struct loop_iterator): Add function argument to constructor
6506         and iterator and use it instead of cfun.
6507         (FOR_EACH_LOOP_FN): New macro.
6508         (loop_optimizer_finalize): Add overload with function argument.
6509         * loop-init.c (loop_optimizer_init): Adjust.
6510         (fix_loop_structure): Likewise.
6511         (loop_optimizer_finaliz): Add function argument and use it
6512         instead of cfun.
6513         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
6514         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
6515         * cgraph.c (release_function_body): Do not push/pop cfun.
6516         * final.c (rest_of_clean_state): Adjust.
6517         * graphite.c (graphite_finalize): Likewise.
6518         * tree-ssa-copy.c (fini_copy_prop): Likewise.
6519         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
6520         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
6521         (tree_unroll_loops_completely): Likewise.
6522         (pass_complete_unrolli::execute): Likewise.
6523         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
6524         Add function argument and use it instead of cfun.
6525         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
6526         Adjust prototype.
6527         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
6528         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
6529         instead of cfun.
6530         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
6531         * tree-ssanames.c (fini_ssanames): Add function argument and use it
6532         instead of cfun.
6533         * tree-ssanames.c (fini_ssanames): Adjust prototype.
6534         * tree-vrp.c (execute_vrp): Adjust.
6535         * value-prof.c (free_histograms): Add function argument and use it
6536         instead of cfun.
6537         * value-prof.h (free_histograms): Adjust prototype.
6539 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
6541         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
6542         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
6543         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
6545 2015-10-27  Tom de Vries  <tom@codesourcery.com>
6547         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
6548         field_type.
6550 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
6552         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
6553         (inv_can_prop_to_addr_use): New function.
6554         (record_use): Call can_prop_to_addr_uses, set the new field.
6555         (get_inv_cost): Count cost if inv can't be propagated into its
6556         address uses.
6558 2015-10-26  Doug Evans  <dje@google.com>
6560         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
6562 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
6564         * match.pd (fold_widened_comparison): Apply simplifications to all
6565         integral types.
6567 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
6569         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
6570         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
6571         * doc/tm.texi: Regenerated.
6572         * reorg.c (dbr_schedule): Use new hook.
6573         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
6575 2015-10-26  Jeff Law  <law@redhat.com>
6577         PR tree-optimization/68013
6578         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6579         Make sure the first block in the path is in VISITED_BBs.
6581 2015-10-26  Richard Biener  <rguenther@suse.de>
6582         Dominik Vogt  <vogt@linux.vnet.ibm.com>
6584         PR middle-end/67443
6585         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
6586         Properly prune ref->ref for accesses outside of ref.
6588 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
6590         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
6591         new statements to be inserted if inplace.  Allow calls to have
6592         nonempty sequences.
6594 2015-10-26  Richard Biener  <rguenther@suse.de>
6596         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
6597         (do_valueize): New function.
6598         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
6599         replace_uses_by.
6600         * tree-ssa-threadedge.c: Remove builtins.h include, include
6601         gimple-fold.h
6602         (fold_assignment_stmt): Remove.
6603         (threadedge_valueize): New function.
6604         (record_temporary_equivalences_from_stmts): Use
6605         gimple_fold_stmt_to_constant_1, note additional cleanup
6606         opportunities.
6608 2015-10-26  Richard Biener  <rguenther@suse.de>
6610         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
6611         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
6613 2015-10-26  Alan Hayward <alan.hayward@arm.com>
6615         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
6616         VEC_COND_EXPR types.
6618 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6620         * auto-inc-dec.c (insert_move_insn_before): Delete.
6621         (attempt_change): Remember to cost the simple move in the
6622         FORM_PRE_ADD and FORM_POST_ADD cases.
6624 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
6626         PR target/68091
6627         * config/sh/sh.c (sh_vector_mode_supported_p): Use
6628         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
6630 2015-10-26  Tom de Vries  <tom@codesourcery.com>
6632         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
6633         factored out of ...
6634         (intra_create_variable_infos): ... here.
6636 2015-10-26  Tom de Vries  <tom@codesourcery.com>
6638         * tree-ssa-structalias.c (intra_create_variable_infos): Add
6639         restrict_pointer_p and recursive_restrict_p variables.
6641 2015-10-26  Tom de Vries  <tom@codesourcery.com>
6643         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
6644         get_vi_for_tree call.
6646 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6648         PR middle-end/67989
6649         * optabs.c (expand_atomic_compare_and_swap): Handle case when
6650         ptarget_oval or ptarget_bool are const0_rtx.
6652 2015-10-26  Christian Bruel  <christian.bruel@st.com>
6654         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
6655         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
6656         * cp/method.c (implicitly_declare_fn): Likewise.
6657         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
6658         * java/class.c (add_method_1): Likewise.
6660 2015-10-26  Richard Biener  <rguenther@suse.de>
6662         * alloc-pool.h (base_pool_allocator): Use placement new.
6663         (base_pool_allocator::remove): Likewise.  Compute size outside of
6664         flag_checking.
6666 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
6668         * builtins.c (do_real_to_int_conversion): New function.
6669         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
6670         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
6671         arguments here.
6672         * match.pd: Add rules previously handled by fold_fixed_mathfn
6673         and fold_builtin_int_roundingfn.
6675 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
6677         * match.pd: Use macros to define built-in operator lists.
6679 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
6680             Richard Biener  <rguenther@suse.de>
6682         * genmatch.c (dt_simplify::gen): Skip captures that are
6683         part of the result.
6684         (parser::parse_expr): Allow captures in results too.
6685         * builtins.c (fold_builtin_cexp): Delete.
6686         (fold_builtin_1): Handle constant cexp arguments here.
6687         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
6689 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
6691         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
6692         conditional compilation.
6693         (base_pool_allocator::remove): Use flag_checking.
6695 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
6697         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
6699         PR middle-end/68079
6700         * dojump.c (do_compare_and_jump): Canonicalize both function and
6701         method types.
6703 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
6705         PR target/68084
6706         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
6707         for =@ccae.
6709 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
6711         PR ipa/pr67600
6712         * ipa-polymorphic-call.c
6713         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
6714         instance offset with offset of outer type.
6716 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
6718         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
6720 2015-10-23  Caroline Tice  <cmtice@google.com>
6722         (from Richard Biener
6723         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
6724         call to iterative_hash_host_wide_int.
6726 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
6728         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
6729         Define as yes.
6731 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
6733         * tree-vect-generic.c (expand_vector_operations_1): Check
6734         optab exists before use it.
6736 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
6738         * tree-vect-generic.c (expand_vector_condition): Avoid
6739         uninitialized variable warning.
6741 2015-10-23  Jeff Law  <law@redhat.com>
6743         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
6744         here.  Instead...
6745         (execute_todo): Call it here.
6746         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
6747         statistics
6748         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
6750 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
6751             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6753         * config.gcc (enable_secureplt): Add *-linux*-musl*.
6755 2015-10-23  Jeff Law  <law@redhat.com>
6757         PR tree-optimization/67830
6758         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
6759         Explicitly verify the mask has no bits outside the type of
6760         the innermost operands.
6762 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
6763             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6765         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
6766         (MUSL_DYNAMIC_LINKER64): Define.
6767         (GNU_USER_DYNAMIC_LINKER32): Update.
6768         (GNU_USER_DYNAMIC_LINKER64): Update.
6769         (CHOOSE_DYNAMIC_LINKER): Update.
6771         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
6772         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
6773         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
6774         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
6775         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
6776         (CHOOSE_DYNAMIC_LINKER): Update.
6777         (INCLUDE_DEFAULTS): Redefine.
6779         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
6781 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
6783         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
6784         comparing addresses.
6786 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
6788         * fold-const.c (operand_equal_p): Handle matching of vector
6789         constructors.
6791 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
6793         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
6795 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
6796             Andrew Pinski  <apinski@cavium.com>
6798         PR rtl-optimization/67736
6799         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
6800         of gen_lowpart.
6802 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
6804         PR middle-end/68066
6805         * tree.c (build_truth_vector_type): Support BLK mode
6806         returned for boolean vector.
6808 2015-10-23  Alan Hayward <alan.hayward@arm.com>
6810         PR tree-optimization/65947
6811         * tree-vect-loop.c
6812         (vect_is_simple_reduction_1): Find condition reductions.
6813         (vect_model_reduction_cost): Add condition reduction costs.
6814         (get_initial_def_for_reduction): Add condition reduction initial var.
6815         (vect_create_epilog_for_reduction): Add condition reduction epilog.
6816         (vectorizable_reduction): Condition reduction support.
6817         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
6818         * doc/sourcebuild.texi (Vector-specific attributes): Document
6819         vect_max_reduc
6821 2015-10-23  Richard Biener  <rguenther@suse.de>
6823         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
6824         and builtins.def.
6826 2015-10-23  Richard Biener  <rguenther@suse.de>
6827             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6829         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
6830         into (A ^ B) - B to match.pd
6831         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
6833         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
6834         New simplifier.
6835         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
6836         New simplifier.
6837         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
6838         New simplifier.
6839         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
6840         New simplifier.
6841         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
6842         INTEGER_CST@1)): New simplifier.
6844 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
6846         * builtins.c (integer_valued_real_p): Move to fold-const.c.
6847         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
6848         (fold_builtin_ceil, fold_builtin_round): Delete.
6849         (fold_builtin_1): Handle constant trunc, floor, ceil and round
6850         arguments here.
6851         * convert.c (convert_to_real): Remove narrowing of rounding
6852         functions.
6853         * fold-const.h (integer_valued_real_unary_p)
6854         (integer_valued_real_binary_p, integer_valued_real_call_p)
6855         (integer_valued_real_single_p, integer_valued_real_p): Declare.
6856         * fold-const.c (tree_single_nonnegative_warnv_p): Move
6857         name_registered_for_update_p check to SSA_NAME case statement.
6858         Don't call tree_simple_nonnegative_warnv_p for SSA names.
6859         (integer_valued_real_unary_p, integer_valued_real_binary_p)
6860         (integer_valued_real_call_p, integer_valued_real_single_p)
6861         (integer_valued_real_invalid_p): New functions.
6862         (integer_valued_real_p): Move from fold-const.c and rework
6863         to call the functions above.  Handle SSA names.
6864         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
6865         * gimple-fold.c (gimple_assign_integer_valued_real_p)
6866         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
6867         (gimple_stmt_integer_valued_real_p): New functions.
6868         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
6869         Fold f(x)->x for the same f if x is known to be integer-valued.
6870         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
6871         the result.  Canonicalize floor(x) as trunc(x) if x is
6872         nonnegative.
6874 2015-10-23  Tom de Vries  <tom@codesourcery.com>
6876         * tree-ssa-structalias.c (intra_create_variable_infos): Use
6877         make_constraint_from.
6879 2015-10-23  Tom de Vries  <tom@codesourcery.com>
6881         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
6882         setting of is_full_var in case of a single field.
6884 2015-10-22  Martin Sebor  <msebor@redhat.com>
6886         PR driver/68043
6887         * config/i386/i386.opt: Add missing periods to the ends of sentences.
6888         * config/msp430/msp430.opt: Same.
6890 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
6892         * doc/extend.exp (Global Register Variables): Rewrite.
6894 2015-10-22  Jeff Law  <law@redhat.com>
6896         * genattrtab.c (main): If we do not have any annul-true or annul-false
6897         slots, then write out a dummy eligible_for_annul_true or
6898         eligible_for_annul_false as needed.
6900 2015-10-22  Nick Clifton  <nickc@redhat.com>
6902         * config/msp430/msp430.opt: Add -msilicon-errata and
6903         -msilicon-errata-warn.
6904         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
6905         assembler.
6906         * doc/invoke.texi: Document new options.
6908 2015-10-22  Richard Biener  <rguenther@suse.de>
6910         PR tree-optimization/58497
6911         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
6912         (expand_vector_operations_1): Use it.  Lower operations on
6913         all uniform vectors to scalar operations if the HW supports it.
6915 2015-10-22  Richard Biener  <rguenther@suse.de>
6917         PR tree-optimization/19049
6918         PR tree-optimization/65962
6919         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
6920         to strided accesses if single-element interleaving doesn't work.
6922 2015-10-22  Richard Biener  <rguenther@suse.de>
6924         PR middle-end/68046
6925         PR middle-end/61893
6926         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
6927         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
6928         (expand_unop): Likewise.
6930 2015-10-22  Richard Biener  <rguenther@suse.de>
6932         * fold-const.c (fold_addr_of_array_ref_difference): Properly
6933         convert operands before folding a MINUS_EXPR.
6934         (fold_binary_loc): Move simplification of MINUS_EXPR on
6935         converted POINTER_PLUS_EXPRs ...
6936         * match.pd: ... here.
6938 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
6940         * builtins.c (fold_builtin_tan): Delete.
6941         (fold_builtin_1): Handle constant tan arguments here.
6942         * match.pd: Simplify (tan (atan x)) to x.
6944 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
6946         * builtins.c (fold_builtin_cproj): Delete.
6947         (fold_builtin_1): Handle constant arguments here.
6948         (build_complex_cproj): Move and rename to...
6949         * tree.c: (build_complex_inf): ...this.
6950         * tree.h (build_complex_inf): Declare.
6951         * match.pd: Fold cproj(x)->x if x has no infinity.
6952         Use build_complex_inf for existing cproj rules.
6954 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6956         PR target/68015
6957         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
6958         already have a comparison result.
6960 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6962         PR target/63304
6963         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
6964         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
6965         (aarch64_classify_address): Likewise.
6966         (aarch64_secondary_reload): Likewise.
6967         (aarch64_override_options_after_change_1): Adjust.
6968         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
6969         Use aarch64_nopcrelative_literal_loads.
6970         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
6971         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
6972         Declare.
6974 2015-10-21  Martin Sebor  <msebor@redhat.com>
6976         PR driver/68043
6977         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
6978         (print_filtered_help): Reference aliased option's name and encourage
6979         readers to use it in preference to the alias if the former is not
6980         documented.  Mention when using an option is diagnosed.
6981         * gcc.c (display_help): End each sentence with a period.
6983         * common.opt: End each sentence that describes an option with
6984         a period.
6985         * config/aarch64/aarch64.opt: Same.
6986         * config/alpha/alpha.opt: Same.
6987         * config/arc/arc.opt: Same.
6988         * config/arm/arm.opt: Same.
6989         * config/avr/avr.opt: Same.
6990         * config/bfin/bfin.opt: Same.
6991         * config/c6x/c6x.opt: Same.
6992         * config/cr16/cr16.opt: Same.
6993         * config/cris/cris.opt: Same.
6994         * config/cris/linux.opt: Same.
6995         * config/darwin.opt: Same.
6996         * config/epiphany/epiphany.opt: Same.
6997         * config/fr30/fr30.opt: Same.
6998         * config/frv/frv.opt: Same.
6999         * config/ft32/ft32.opt: Same.
7000         * config/g.opt: Same.
7001         * config/h8300/h8300.opt: Same.
7002         * config/i386/cygming.opt: Same.
7003         * config/i386/djgpp.opt: Same.
7004         * config/i386/i386.opt: Same.
7005         * config/i386/interix.opt: Same.
7006         * config/i386/mingw-w64.opt: Same.
7007         * config/i386/mingw.opt: Same.
7008         * config/ia64/ia64.opt: Same.
7009         * config/ia64/ilp32.opt: Same.
7010         * config/iq2000/iq2000.opt: Same.
7011         * config/linux.opt: Same.
7012         * config/lm32/lm32.opt: Same.
7013         * config/lynx.opt: Same.
7014         * config/m32c/m32c.opt: Same.
7015         * config/m32r/m32r.opt: Same.
7016         * config/m68k/ieee.opt: Same.
7017         * config/m68k/m68k.opt: Same.
7018         * config/mcore/mcore.opt: Same.
7019         * config/mep/mep.opt: Same.
7020         * config/microblaze/microblaze.opt: Same.
7021         * config/mips/mips.opt: Same.
7022         * config/mmix/mmix.opt: Same.
7023         * config/mn10300/mn10300.opt: Same.
7024         * config/moxie/moxie.opt: Same.
7025         * config/msp430/msp430.opt: Same.
7026         * config/nios2/elf.opt: Same.
7027         * config/nios2/nios2.opt: Same.
7028         * config/nvptx/nvptx.opt: Same.
7029         * config/pa/pa-hpux.opt: Same.
7030         * config/pa/pa-hpux1010.opt: Same.
7031         * config/pa/pa-hpux1111.opt: Same.
7032         * config/pa/pa-hpux1131.opt: Same.
7033         * config/pa/pa.opt: Same.
7034         * config/pa/pa64-hpux.opt: Same.
7035         * config/pdp11/pdp11.opt: Same.
7036         * config/rl78/rl78.opt: Same.
7037         * config/rs6000/476.opt: Same.
7038         * config/rs6000/aix64.opt: Same.
7039         * config/rs6000/darwin.opt: Same.
7040         * config/rs6000/linux64.opt: Same.
7041         * config/rs6000/rs6000.opt: Same.
7042         * config/rs6000/sysv4.opt: Same.
7043         * config/s390/s390.opt: Same.
7044         * config/s390/tpf.opt: Same.
7045         * config/sh/sh.opt: Same.
7046         * config/sol2.opt: Same.
7047         * config/sparc/long-double-switch.opt: Same.
7048         * config/sparc/sparc.opt: Same.
7049         * config/spu/spu.opt: Same.
7050         * config/stormy16/stormy16.opt: Same.
7051         * config/tilegx/tilegx.opt: Same.
7052         * config/tilepro/tilepro.opt: Same.
7053         * config/v850/v850.opt: Same.
7054         * config/vax/vax.opt: Same.
7055         * config/visium/visium.opt: Same.
7056         * config/vms/vms.opt: Same.
7057         * config/vxworks.opt: Same.
7058         * config/xtensa/xtensa.opt: Same.
7060 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7061             Sebastian Pop  <s.pop@samsung.com>
7063         * graphite-scop-detection.c (parameter_index_in_region): Update call to
7064         invariant_in_sese_p_rec.
7065         * graphite-sese-to-poly.c (extract_affine): Same.
7066         * sese.c (invariant_in_sese_p_rec): Pass in an extra
7067         parameter has_vdefs.
7068         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
7069         variable depends on virtual definitions in the current region.
7070         * sese.h (invariant_in_sese_p_rec): Update declaration.
7072 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7073             Sebastian Pop  <s.pop@samsung.com>
7075         * graphite-scop-detection.c (build_scops): Do not handle scops
7076         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
7077         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
7079 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
7081         * config.in: Regenerate.
7082         * configure: Regenerate.
7083         * configure.ac (CHECKING_P): Define.
7084         * system.h: Use CHECKING_P.
7086 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7088         PR ipa/67056
7089         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
7090         is negative we don't know the type.
7091         (check_stmt_for_type_change): Skip constructors of non-polymorphic
7092         types as those won't help devirutalization.
7094 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7096         * fold-const.c (operand_equal_p): Add code matching empty constructors.
7098 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
7100         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
7101         comments.
7102         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
7103         Add comments on sign of the result.
7104         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
7105         Recurse on operand #1 instead of operand #0.
7106         <CEIL_MOD_EXPR>: Do not recurse.
7107         <ROUND_MOD_EXPR>: Likewise.
7109 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7111         * cfgrtl.c (pass_free_cfg::execute): Adjust.
7112         * final.c (dbr_sequence_length): Always define.
7113         (shorten_branches): Adjust.
7114         * genattr-common.c (main): Always define DELAY_SLOTS.
7115         * genattr.c (main): Unconditionally declare functions and define
7116         macros related to delay slots.
7117         * genattrtab.c (write_eligible_delay): Adjust.
7118         (main): Always write out delay slot functions.
7119         * opts.c (default_options_table): Adjust.
7120         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
7121         (redirect_with_delay_list_safe_p): Likewise.
7122         (fill_simple_delay_slots): Likewise.
7123         (fill_slots_from_thread): Likewise.
7124         (make_return_insns): Likewise.
7125         (dbr_schedule): Likewise.
7126         (rest_of_handle_delay_slots): Likewise.
7127         (pass_delay_slots::gate): Likewise.
7128         * toplev.c (process_options): Likewise.
7130 2015-10-21  Richard Henderson  <rth@redhat.com>
7132         * targhooks.c (default_addr_space_pointer_mode): Remove check
7133         for generic address space.
7134         (default_addr_space_address_mode): Likewise.
7135         (default_addr_space_valid_pointer_mode): Likewise.
7136         (default_addr_space_legitimate_address_p): Likewise.
7137         (default_addr_space_legitimize_address): Likewise.
7138         * target.def (addr_space.pointer_mode): Update documentation
7139         of default behavior.
7140         (addr_space.address_mode): Likewise.
7141         * tm.texi: Update.
7143         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
7144         address spaces.
7146 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7148         * builtins.c (fold_builtin_cabs): Delete.
7149         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
7150         * match.pd: Add rules previously handled by fold_builtin_cabs.
7152 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7154         * fold-const.h (fold_strip_sign_ops): Delete.
7155         * fold-const.c (fold_strip_sign_ops): Likewise.
7156         (fold_unary_loc, fold_binary_loc): Remove calls to it.
7157         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
7158         (fold_builtin_ccos): Delete.
7159         (fold_builtin_pow): Don't call fold_strip_sign_ops.
7160         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
7161         Remove fndecl argument.
7162         (fold_builtin_1): Update calls accordingly.  Handle constant
7163         cos, cosh, ccos and ccosh here.
7165 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7167         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
7168         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
7169         * common.opt (fssa-backprop): New option.
7170         * fold-const.h (negate_mathfn_p): Declare.
7171         * fold-const.c (negate_mathfn_p): Make public.
7172         * timevar.def (TV_TREE_BACKPROP): New.
7173         * tree-pass.h (make_pass_backprop): Declare.
7174         * passes.def (pass_backprop): Add.
7175         * gimple-ssa-backprop.c: New file.
7177 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7178             Sebastian Pop  <s.pop@samsung.com>
7180         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
7181         Do not call create_empty_if_region_on_edge when cond_expr is true.
7182         (translate_isl_ast_node_for): Check whether a guard has been generated.
7184 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7186         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
7187         (operator=): Removed.
7188         (dr_info): Make alias_set number the last argument with default
7189         value of invalid_alias_set.
7190         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
7191         of dr_info.
7192         (rewrite_reductions_out_of_ssa): Iterate only through the
7193         basic blocks which are inside region.
7194         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
7195         * sese.h (struct sese_l): Removed assignment operator.
7196         (split_region_for_bb): Removed dead code.
7198 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7200         * graphite-poly.h (struct dr_info): Removed conversion constructor.
7201         (struct scop): Renamed scop::region to scop::scop_info
7202         (scop_set_region): Same.
7203         (SCOP_REGION): Removed
7204         (SCOP_CONTEXT): Removed.
7205         (POLY_SCOP_P): Removed.
7206         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
7207         Rename scop->region to scop->scop_info.
7208         (add_parameters_to_ivs_params): Same.
7209         (graphite_regenerate_ast_isl): Same.
7210         * graphite-poly.c (new_scop): Same.
7211         (free_scop): Same.
7212         (print_scop_params): Same.
7213         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
7214         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
7215         (dot_all_scops_1): Rename scop->region to scop->scop_info.
7216         (scop_detection::nb_pbbs_in_loops): Same.
7217         (find_scop_parameters): Same.
7218         (try_generate_gimple_bb): Same.
7219         (gather_bbs::before_dom_children): Same.
7220         (gather_bbs::after_dom_children): Same.
7221         (build_scops): Same.
7222         * graphite-sese-to-poly.c (build_scop_scattering): Same.
7223         (extract_affine_chrec): Same.
7224         (extract_affine): Same.
7225         (set_scop_parameter_dim): Same.
7226         (build_loop_iteration_domains): Same.
7227         (create_pw_aff_from_tree): Same.
7228         (add_param_constraints): Same.
7229         (build_scop_iteration_domain): Same.
7230         (build_scop_drs): Same.
7231         (analyze_drs_in_stmts): Same.
7232         (insert_out_of_ssa_copy_on_edge): Same.
7233         (rewrite_close_phi_out_of_ssa):Same.
7234         (rewrite_reductions_out_of_ssa):Same.
7235         (handle_scalar_deps_crossing_scop_limits):Same.
7236         (rewrite_cross_bb_scalar_deps):Same.
7237         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
7238         (build_poly_scop):Same.
7239         (build_alias_set): Use pointer to dr_info.
7240         * graphite.c (print_graphite_scop_statistics):
7241         (graphite_transform_loops):
7242         * sese.h (struct sese_l): Remove conversion constructor.
7244 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7246         PR middle-end/67966
7247         * tree.c (verify_type): Verify that TYPE_MODE match
7248         between TYPE_CANONICAL and type.
7249         * expr.c (store_expr_with_bounds): Revert my previous change.
7250         * expmed.c (store_bit_field_1): Revert prevoius change.
7251         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
7252         to match for all types.
7254 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
7256         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
7257         nesting.
7259 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
7261         * doc/tm.texi: Regenerated.
7262         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
7263         * stor-layout.c (layout_type): Use mode to get vector mask size.
7264         * target.def (get_mask_mode): New.
7265         * targhooks.c (default_get_mask_mode): New.
7266         * targhooks.h (default_get_mask_mode): New.
7267         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
7268         for boolean vector.
7269         * tree.c (MAX_BOOL_CACHED_PREC): New.
7270         (nonstandard_boolean_type_cache): New.
7271         (build_nonstandard_boolean_type): New.
7272         (make_vector_type): Vector mask has no canonical type.
7273         (build_truth_vector_type): New.
7274         (build_same_sized_truth_vector_type): New.
7275         (truth_type_for): Support vector masks.
7276         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
7277         (build_truth_vector_type): New.
7278         (build_same_sized_truth_vector_type): New.
7279         (build_nonstandard_boolean_type): New.
7280         * tree-cfg.c (verify_gimple_comparison) Require boolean
7281         vector type for vector comparison.
7282         (verify_gimple_assign_ternary): Likewise.
7283         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
7284         condition operand.
7285         * tree-vect-stmts.c (vectorizable_condition): Use boolean
7286         vector type for vector comparison.
7287         * tree-vect-generic.c (elem_op_func): Add new operand to hold
7288         vector type.
7289         (do_unop): Adjust to modified function type.
7290         (do_binop): Likewise.
7291         (do_plus_minus): Likewise.
7292         (do_negate); Likewise.
7293         (expand_vector_piecewise): Likewise.
7294         (do_cond): Likewise.
7295         (do_compare): Use comparison instead of condition.
7296         (expand_vector_divmod): Use boolean vector type for comparison.
7297         (expand_vector_operations_1): Skip scalar mask operations.
7299 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
7301         * omp-low.c (simd_clone_create): Set in_other_partition
7302         for created clones.
7304 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
7306         * doc/extend.exp (Local Register Variables): Rewrite.
7308 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7310         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
7311         and x*x in cases where the operands are sign ops.  Extend these
7312         rules to handle copysign as a sign op (including for cos, cosh
7313         and pow, which already treated negate and abs as sign ops).
7315 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
7317         PR target/68018
7318         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
7319         for 64-bit MS_ABI targets also when default incoming stack boundary
7320         is overriden.
7322 2015-10-21  Richard Biener  <rguenther@suse.de>
7324         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
7325         cond stmts, enhanced and split out from ...
7326         (vn_phi_eq): ... here.
7328 2015-10-21  Richard Biener  <rguenther@suse.de>
7330         PR middle-end/68031
7331         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
7332         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
7333         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
7334         make sure they are not registered for update.
7336 2015-10-21  Richard Biener  <rguenther@suse.de>
7338         PR tree-optimization/68026
7339         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
7340         unsigned VARYING values.
7342 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
7344         * asan.c (asan_emit_stack_protection): Don't pass local stack to
7345         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
7346         NULL and use local stack than.
7347         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
7348         in addition to __asan_init.
7349         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
7350         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
7351         * asan.h (asan_intercepted_p): Handle new string builtins.
7352         * ubsan.c (ubsan_use_new_style_p): New function.
7353         (ubsan_instrument_float_cast): If location is unknown, assign
7354         input_location to loc. Propagate loc to ubsan_create_data if
7355         ubsan_use_new_style_p returned true.
7357 2015-10-21  Jeff Law  <law@redhat.com>
7359         * Makefile.in (OBJS): Remove sched-vis.c
7360         * sched-vis.c: Removed.  Code moved into...
7361         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
7362         * rtl.h: Remove prototypes for functions now living in print-rtl.c
7363         * print-rtl.h Add prototypes for new functions in print-rtl.c.
7364         * auto-inc-dec.c: Include print-rtl.h
7365         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
7366         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
7368         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
7369         ATTRIBUTE_UNUSED.
7371 2015-10-21  Richard Biener  <rguenther@suse.de>
7372             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7374         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
7375         to match.pd.
7376         Move (a * (1 << b)) is (a << b) to match.pd.
7377         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
7378         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
7379         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
7381         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
7382         New simplifier.
7383         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
7384         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
7385         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
7386         : New simplifier.
7387         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
7388         New simplifier.
7389         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
7391 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
7392             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7393             Alan Modra  <amodra@gmail.com>
7395         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
7396         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
7397         (LINK_SPEC): Add %(link_secure_plt).
7398         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
7399         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
7401 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
7402             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7404         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
7405         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
7407 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7409         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
7410         New function.
7411         (fusion_load_store): Use it.
7412         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
7413         ldp and stp in VD modes.
7414         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
7415         (store_pair<mode>, VD): Likewise.
7417 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
7419         PR rtl-optimization/67609
7420         * lra-splill.c (lra_final_code_change): Don't remove all
7421         sub-registers.
7423 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7425         * simplify-rtx.c (simplify_binary_operation): If either operand was
7426         a constant pool reference use them if all other simplifications failed.
7428 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7430         * config/aarch64/aarch64.md
7431         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
7432         * config/aarch64/aarch64-simd.md
7433         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
7434         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
7435         (aarch64_fpconst_pow_of_2): New function.
7436         (aarch64_vec_fpconst_pow_of_2): Likewise.
7437         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
7438         prototype.
7439         (aarch64_vec_fpconst_pow_of_2): Likewise.
7440         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
7441         (aarch64_fp_vec_pow2): Likewise.
7443 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
7445         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
7446         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
7447         * config/alpha/alpha.c (alpha_function_arg_advance): Update
7448         ALPHA_ARG_SIZE usage.
7449         (alpha_arg_partial_bytes): Ditto.
7451 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7453         PR target/66810
7454         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
7455         error_mark_node decls.
7457 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7459         PR target/67963
7460         PR target/67985
7461         * common/config/i386/i386-common.c (ix86_handle_option): Remove
7462         OPT_miamcu handling.
7463         * config/i386/i386.c (PTA_NO_80387): New macro.
7464         (processor_alias_table): Add PTA_NO_80387 to lakemont.
7465         (ix86_option_override_internal): Update MASK_80387 from
7466         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
7467         SSE math only if 80387 is supported.  Don't change
7468         MASK_FLOAT_RETURNS.
7469         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
7470         80387 is supported.
7471         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
7472         if TARGET_80387 is true and TARGET_IAMCU is false.
7473         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
7474         is true and TARGET_IAMCU_P is false.
7476 2015-10-20  Richard Biener  <rguenther@suse.de>
7478         PR tree-optimization/68017
7479         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
7481 2015-10-20  Martin Liska  <mliska@suse.cz>
7483         * cgraphclones.c (cgraph_node::create_virtual_clone):
7484         Verify cgraph_node.local.versionable instead of calling
7485         tree_versionable_function_p.
7486         * ipa-cp.c (determine_versionability): Save the information
7487         to ipa_node_params summary.
7488         (ipcp_versionable_function_p): Use it.
7489         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
7490         (ipcp_generate_summary): Do not compute cgraph_node
7491         versionability.
7492         * ipa-inline-analysis.c (inline_generate_summary): Compute
7493         versionability for all cgraph nodes.
7494         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
7495         ipa_node_params::versionability.
7496         * ipa-prop.h (struct ipa_node_params): Declare it.
7498 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7500         PR other/67868
7501         * varasm.c (assemble_variable): Move special vtv handling to..
7502         (handle_vtv_comdat_sections): .. here. New function.
7503         (output_object_block): Handle vtv sections.
7505 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7507         PR target/66912
7508         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
7510 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
7512         * doc/extend.texi: Update documentation WRT inline functions.
7514 2015-10-20  Alan Modra  <amodra@gmail.com>
7516         PR go/66870
7517         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
7518         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
7519         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
7521 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
7523         PR rtl-optimization/66790
7524         * df.h (DF_MIR): New macro.
7525         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
7526         (DF_MIR_INFO_BB): New macro.
7527         (DF_MIR_IN, DF_MIR_OUT): New macros.
7528         (struct df_mir_bb_info): New.
7529         (df_mir): New macro.
7530         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
7531         declarations.
7532         (df_mir_get_bb_info): New.
7533         * df-problems.c (struct df_mir_problem_data): New.
7534         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
7535         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
7536         df_mir_confluence_0, df_mir_confluence_n,
7537         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
7538         df_mir_bottom_dump, df_mir_verify_solution_start,
7539         df_mir_verify_solution_end): New.
7540         (problem_MIR): New.
7541         (df_mir_add_problem, df_mir_simulate_one_insn): New.
7542         * timevar.def (TV_DF_MIR): New.
7543         * ree.c: Include bitmap.h
7544         (add_removable_extension): Add an INIT_REGS parameter.  Use it
7545         to skip zero-extensions that may get an uninitialized register.
7546         (find_removable_extensions): Compute must-initialized registers
7547         using the MIR dataflow problem. Update the call to
7548         add_removable_extension.
7549         (find_and_remove_re): Call df_mir_add_problem.
7551 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
7553         * common/config/mn10300/mn10300-common.c
7554         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
7555         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
7557 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
7559         * doc/extend.texi (Explicit Register Variables): Simplify and
7560         avoid unnecessary and confusion abbreviations.  Update cross
7561         references.
7562         doc/implement-c.tex: Update cross reference.
7564 2015-10-19  Jeff Law  <law@redhat.com>
7566         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
7567         that create irreducible loops unless the path elimiantes a multiway
7568         branch.
7570 2015-10-19  Richard Biener  <rguenther@suse.de>
7572         PR tree-optimization/67975
7573         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
7574         * tree-cfg.c (extract_true_false_controlled_edges): Split out
7575         core worker from ...
7576         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
7577         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
7578         instead of block number for PHIs with two or one args.
7579         (vn_phi_eq): Compare edge predicates of PHIs that are in different
7580         blocks.
7582 2015-10-19  Richard Biener  <rguenther@suse.de>
7584         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
7585         (gimple_stmt_nonnegative_warnv_p): Use it.
7586         * match.pd (CPROJ): New operator list.
7587         (cproj (complex ...)): Move simplifications from ...
7588         * builtins.c (fold_builtin_cproj): ... here.
7590 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
7592         * config/i386/i386.c (ix86_expand_vector_move): Use
7593         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
7594         alignment.
7596 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
7598         * doc/invoke.texi: Replace @optindex with @opindex.
7600 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
7602         PR target/67995
7603         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
7604         arch= is set,  clear all bits in x_ix86_isa_flags, except for
7605         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
7607 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
7609         PR middle-end/68002
7610         * common.opt (fkeep-static-functions): New option.
7611         * doc/invoke.texi: Document it.
7612         * cgraphunit.c (cgraph_node::finalize_function): Use it.
7614 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7616         * sched-int.h (struct autopref_multipass_data_): Remove offset
7617         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
7618         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
7619         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
7620         (autopref_rank_data): New function.
7621         (autopref_rank_for_schedule): Use it.
7622         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
7624 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
7626         PR other/65800
7627         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
7629 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
7631         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
7632         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
7633         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
7634         (STANDARD_STARTFILE_PREFIX_1): New.
7635         (STANDARD_STARTFILE_PREFIX_2): New.
7637 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
7639         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
7640         (darwin_driver_init): Note a version-min when provided on the c/l.
7641         * config/darwin.h (%darwin_minversion): Remove.
7642         * config/i386/darwin.h: Likewise.
7643         * config/rs6000/darwin.h: Likewise.
7644         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
7645         rather than an arbitrary constant.
7647 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
7649         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
7650         PPC, detect conflicts between -arch and multilib settings.  Detect
7651         and warn about conflicts between multiple -arch definitions.
7653 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
7655         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
7657 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7659         * lra-constraints.c (add_next_usage_insn): Change argument type
7660         from rtx to rtx_insn *.
7662 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
7664         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
7665         for Lakemont.
7667 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
7669         * config/tilepro/gen-mul-tables.cc: Adjust include files.
7670         * config/tilegx/mul-tables.c: Regenerate.
7671         * config/tilepro/mul-tables.c: Regenerate.
7673         * config/tilegx/tilegx-c.c: Adjust include files.
7674         * config/tilegx/tilegx.c: Likewise.
7675         * config/tilepro/tilepro-c.c: Likewise.
7676         * config/tilepro/tilepro.c: Likewise.
7677         * config/aarch64/aarch64-builtins.c: Likewise.
7678         * config/aarch64/aarch64.c: Likewise.
7679         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7680         * config/alpha/alpha.c: Likewise.
7681         * config/arc/arc.c: Likewise.
7682         * config/arm/aarch-common.c: Likewise.
7683         * config/arm/arm-builtins.c: Likewise.
7684         * config/arm/arm-c.c: Likewise.
7685         * config/arm/arm.c: Likewise.
7686         * config/avr/avr-c.c: Likewise.
7687         * config/avr/avr-devices.c: Likewise.
7688         * config/avr/avr-log.c: Likewise.
7689         * config/avr/avr.c: Likewise.
7690         * config/bfin/bfin.c: Likewise.
7691         * config/c6x/c6x.c: Likewise.
7692         * config/cr16/cr16.c: Likewise.
7693         * config/cris/cris.c: Likewise.
7694         * config/darwin-c.c: Likewise.
7695         * config/darwin-driver.c: Likewise.
7696         * config/darwin.c: Likewise.
7697         * config/default-c.c: Likewise.
7698         * config/epiphany/epiphany.c: Likewise.
7699         * config/epiphany/mode-switch-use.c: Likewise.
7700         * config/epiphany/resolve-sw-modes.c: Likewise.
7701         * config/fr30/fr30.c: Likewise.
7702         * config/frv/frv.c: Likewise.
7703         * config/ft32/ft32.c: Likewise.
7704         * config/glibc-c.c: Likewise.
7705         * config/h8300/h8300.c: Likewise.
7706         * config/i386/host-cygwin.c: Likewise.
7707         * config/i386/host-mingw32.c: Likewise.
7708         * config/i386/i386-c.c: Likewise.
7709         * config/i386/i386.c: Likewise.
7710         * config/i386/msformat-c.c: Likewise.
7711         * config/i386/winnt-cxx.c: Likewise.
7712         * config/i386/winnt-stubs.c: Likewise.
7713         * config/i386/winnt.c: Likewise.
7714         * config/ia64/ia64-c.c: Likewise.
7715         * config/ia64/ia64.c: Likewise.
7716         * config/iq2000/iq2000.c: Likewise.
7717         * config/lm32/lm32.c: Likewise.
7718         * config/m32c/m32c-pragma.c: Likewise.
7719         * config/m32c/m32c.c: Likewise.
7720         * config/m32r/m32r.c: Likewise.
7721         * config/mcore/mcore.c: Likewise.
7722         * config/mep/mep-pragma.c: Likewise.
7723         * config/mep/mep.c: Likewise.
7724         * config/microblaze/microblaze-c.c: Likewise.
7725         * config/microblaze/microblaze.c: Likewise.
7726         * config/mips/mips-tables.opt
7727         * config/mips/mips.c: Likewise.
7728         * config/mmix/mmix.c: Likewise.
7729         * config/mn10300/mn10300.c: Likewise.
7730         * config/moxie/moxie.c: Likewise.
7731         * config/msp430/msp430-c.c: Likewise.
7732         * config/msp430/msp430.c: Likewise.
7733         * config/nds32/nds32-cost.c: Likewise.
7734         * config/nds32/nds32-fp-as-gp.c: Likewise.
7735         * config/nds32/nds32-intrinsic.c: Likewise.
7736         * config/nds32/nds32-isr.c: Likewise.
7737         * config/nds32/nds32-md-auxiliary.c: Likewise.
7738         * config/nds32/nds32-memory-manipulation.c: Likewise.
7739         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7740         * config/nds32/nds32-predicates.c: Likewise.
7741         * config/nds32/nds32.c: Likewise.
7742         * config/nios2/nios2.c: Likewise.
7743         * config/nvptx/mkoffload.c: Likewise.
7744         * config/nvptx/nvptx.c: Likewise.
7745         * config/pa/pa.c: Likewise.
7746         * config/pdp11/pdp11.c: Likewise.
7747         * config/rl78/rl78-c.c: Likewise.
7748         * config/rl78/rl78.c: Likewise.
7749         * config/rs6000/host-darwin.c: Likewise.
7750         * config/rs6000/rs6000-c.c: Likewise.
7751         * config/rs6000/rs6000-linux.c: Likewise.
7752         * config/rs6000/rs6000.c: Likewise.
7753         * config/rx/rx.c: Likewise.
7754         * config/s390/s390-c.c: Likewise.
7755         * config/s390/s390.c: Likewise.
7756         * config/sh/sh-c.c: Likewise.
7757         * config/sh/sh-mem.cc: Likewise.
7758         * config/sh/sh.c: Likewise.
7759         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7760         * config/sh/sh_treg_combine.cc: Likewise.
7761         * config/sol2-c.c: Likewise.
7762         * config/sol2-cxx.c: Likewise.
7763         * config/sol2-stubs.c: Likewise.
7764         * config/sol2.c: Likewise.
7765         * config/sparc/sparc-c.c: Likewise.
7766         * config/sparc/sparc.c: Likewise.
7767         * config/spu/spu-c.c: Likewise.
7768         * config/spu/spu.c: Likewise.
7769         * config/stormy16/stormy16.c: Likewise.
7770         * config/v850/v850-c.c: Likewise.
7771         * config/v850/v850.c: Likewise.
7772         * config/vax/vax.c: Likewise.
7773         * config/visium/visium.c: Likewise.
7774         * config/vms/vms-c.c: Likewise.
7775         * config/vms/vms.c: Likewise.
7776         * config/vxworks.c: Likewise.
7777         * config/winnt-c.c: Likewise.
7778         * config/xtensa/xtensa.c: Likewise.
7780 2015-10-16  Christian Bruel  <christian.bruel@st.com>
7782         PR target/67745
7783         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
7784         (FUNCTION_BOUNDARY_P): New macro:
7785         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
7786         New hook.
7787         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
7788         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
7789         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
7790         * function.c (allocate_struct_function): Call
7791         relayout_function hook.
7792         * passes.c (rest_of_decl_compilation): Likewise.
7794 2015-10-16  Christian Bruel  <christian.bruel@st.com>
7796         PR target/67745
7797         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
7798         * config/arm/arm.c (arm_option_override_internal): Call
7799         arm_override_options_after_change_1.
7800         (arm_override_options_after_change): New function.
7801         (arm_override_options_after_change_1): Likewise.
7802         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
7804 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7806         Revert:
7807         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
7808         empty constructors.
7810 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
7812         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
7813         argument is an ADDR_EXPR.
7815 2015-10-16  Richard Biener  <rguenther@suse.de>
7817         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
7818         and get rid of force_gimple_operand_gsi.
7819         (gimple_fold_builtin_memory_chk): Likewise.
7820         (gimple_fold_builtin_stxcpy_chk): Likewise.
7821         (rewrite_to_defined_overflow): Likewise.
7822         (gimple_convert_to_ptrofftype): New function.
7823         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
7825 2015-10-16  Richard Biener  <rguenther@suse.de>
7827         * tree-nested.h (build_addr): Adjust prototype.
7828         * tree-nested.c (build_addr): Remove context argument and use
7829         mark_addressable.
7830         (get_static_chain): Adjust calls to build_addr.
7831         (convert_nl_goto_reference): Likewise.
7832         (convert_tramp_reference_op): Likewise.
7833         (finalize_nesting_tree_1): Likewise.
7834         * value-prof.c (gimple_ic): Likewise.
7835         * gimple-low.c (lower_builtin_setjmp): Likewise.
7836         * tree-parloops.c (take_address_of): Likewise.
7837         (create_call_for_reduction_1): Likewise.
7838         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
7839         (gimple_gen_ic_func_profiler): Likewise.
7841 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7843         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
7844         empty constructors.
7846 2015-10-16  Michael Collison  <michael.collison@linaro.org>
7847             Andrew Pinski <andrew.pinski@caviumnetworks.com>
7849         * match.pd ((x < y) && (x < z) -> x < min (y,z),
7850         (x > y) and (x > z) -> x > max (y,z))
7852 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
7853             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7855         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
7856         (DYNAMIC_LINKER): Renamed to ...
7857         (GLIBC_DYNAMIC_LINKER): This.
7858         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
7860 2015-10-15  Marek Polacek  <polacek@redhat.com>
7862         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
7863         gimple_call_builtin instead of is_gimple_call.
7865 2015-10-15  Richard Biener  <rguenther@suse.de>
7867         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
7869 2015-10-15  Richard Biener  <rguenther@suse.de>
7871         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
7872         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
7873         * tree-vect-loop.c (get_initial_def_for_induction): Drop
7874         use of force_gimple_operand in favor of gimple_build.
7875         Use vect_get_new_ssa_name.
7876         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
7877         (vectorizable_mask_load_store): Likewise.
7878         (vectorizable_call): Likewise.
7879         (vectorizable_store): Likewise.
7880         (vectorizable_load): Likewise.
7881         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
7883 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
7885         PR tree-optimization/67945
7886         * tree-pass.h (PROP_gimple_opt_math): New property flag.
7887         * generic-match-head.c (canonicalize_math_p): New function.
7888         * gimple-match-head.c: Include tree-pass.h.
7889         (canonicalize_math_p): New function.
7890         * match.pd: Group math built-in rules into simplifications
7891         and canonicalizations.  Guard the latter with canonicalize_math_p.
7892         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
7893         PROP_gimple_opt_math property.
7895 2015-10-15  Marek Polacek  <polacek@redhat.com>
7897         PR tree-optimization/67953
7898         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
7900 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
7902         * config.gcc: Recognize "." in architecture base name for AArch64.
7904 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
7906         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
7907         ROUND_UP macro.
7908         * config/mips/mips.c (mips_setup_incoming_varargs): Use
7909         ROUND_DOWN to calculate off.
7910         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
7911         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
7912         rounded_size.
7914 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
7916         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
7918 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
7919             Torvald Riegel  <triegel@redhat.com>
7921         PR target/67281
7922         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
7923         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
7924         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
7925         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
7926         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
7927         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
7928         trechkpt, treclaim, tsr, ttest): New define_expands.
7929         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
7930         __TM_FENCE__ for htm.
7931         * doc/extend.texi: Update documentation for htm builtins.
7933 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
7935         PR target/67967
7936         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
7937         REG_CFA_EXPRESSION to aligned SSE stores.
7939 2015-10-14  Jeff Law  <law@redhat.com>
7941         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
7942         num_threaded_edges for successful FSM threads too.
7944 2015-10-14  Richard Biener  <rguenther@suse.de>
7946         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
7947         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
7948         (vect_get_vec_def_for_operand): Remove unused parameter.
7949         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
7950         (vect_create_epilog_for_reduction): Likewise.
7951         (vectorizable_reduction): Likewise.
7952         (vectorizable_live_operation): Likewise.
7953         * tree-vect-patterns.c (type_conversion_p): Likewise.
7954         (vect_recog_vector_vector_shift_pattern): Likewise.
7955         (check_bool_pattern): Likewise.
7956         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
7957         (vect_analyze_slp_cost_1): Likewise.
7958         * tree-vect-stmts.c (process_use): Likewise.
7959         (vect_get_vec_def_for_operand): Do not handle reductions.
7960         (vect_get_vec_defs): Adjust.
7961         (vectorizable_mask_load_store): Likewise.
7962         (vectorizable_call): Likewise.
7963         (vectorizable_simd_clone_call): Likewise.
7964         (vect_get_loop_based_defs): Likewise.
7965         (vectorizable_conversion): Likewise.
7966         (vectorizable_assignment): Likewise.
7967         (vectorizable_shift): Likewise.
7968         (vectorizable_operation): Likewise.
7969         (vectorizable_store): Likewise.
7970         (vectorizable_load): Likewise.
7971         (vect_is_simple_cond): Likewise.
7972         (vectorizable_condition): Likewise.
7973         (vect_is_simple_use): Remove unused parameters.
7974         (vect_is_simple_use_1): Adjust and rename.
7976 2015-10-14  Richard Biener  <rguenther@suse.de>
7978         PR tree-optimization/67915
7979         * match.pd: Handle comparisons of addresses of STRING_CSTs.
7980         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
7981         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
7982         stmt folding in favor of GIMPLE one.
7984 2015-10-14  Marek Polacek  <polacek@redhat.com>
7986         PR tree-optimization/67815
7987         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
7988         (reassociate_bb): Call it.
7990 2015-10-14  Richard Biener  <rguenther@suse.de>
7992         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7993         Reset info at start.
7994         (vect_analyze_group_access_1): Add debug print.
7995         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
7996         (vect_compute_single_scalar_iteration_cost): ... to this.
7997         (vect_analyze_loop_2): Adjust.
7998         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
7999         * tree-vectorizer.h: ... here.
8000         (add_stmt_info_to_vec): Remove.
8001         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
8003 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8005         * targhooks.c (default_target_option_pragma_parse): Do not warn if
8006         called on behalf of "#pragma GCC pop_options".
8008 2015-10-14  Tom de Vries  <tom@codesourcery.com>
8010         * cfganal.c (verify_no_unreachable_blocks): New function.
8011         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
8012         verify_no_unreachable_blocks.
8013         cfganal.h (verify_no_unreachable_blocks): Declare.
8015 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
8017         * common.opt: Add flag_checking.
8018         * system.h (CHECKING_P): Define.
8020 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
8021             Aldy Hernandez  <aldyh@redhat.com>
8022             Ilya Verbin  <ilya.verbin@intel.com>
8024         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
8025         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
8026         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
8027         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
8028         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
8029         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
8030         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
8031         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
8032         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
8033         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
8034         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
8035         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
8036         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
8037         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
8038         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
8039         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8040         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8041         (struct cgraph_simd_clone_arg): Adjust comment.
8042         * coretypes.h (struct gomp_ordered): New forward decl.
8043         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
8044         set critical clauses to it.
8045         (gimple_build_omp_ordered): Return gomp_ordered * instead of
8046         gimple *.  Add CLAUSES argument, set ordered clauses to it.
8047         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
8048         GIMPLE_OMP_ORDERED.
8049         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
8050         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
8051         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
8052         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
8053         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
8054         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
8055         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
8056         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
8057         renumber
8058         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
8059         (gomp_critical): Add clauses field.
8060         (gomp_ordered): New struct.
8061         (is_a_helper <gomp_ordered *>::test): New inline.
8062         (gimple_build_omp_critical): Add CLAUSES argument.
8063         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
8064         instead of gimple *.
8065         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
8066         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
8067         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
8068         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
8069         inline functions.
8070         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
8071         (dump_gimple_omp_target): Handle enter data and exit data.
8072         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
8073         (dump_gimple_omp_critical): Print clauses.
8074         (dump_gimple_omp_ordered): New function.
8075         (dump_gimple_omp_task): Handle taskloop.
8076         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
8077         GIMPLE_OMP_ORDERED.
8078         * gimple-walk.c (walk_gimple_op): Walk clauses on
8079         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
8080         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
8081         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
8082         (struct gimplify_omp_ctx): Add loop_iter_var,
8083         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
8084         and target_firstprivatize_array_bases fields.
8085         (delete_omp_context): Release loop_iter_var.
8086         (gimplify_bind_expr): Handle ORT_NONE.
8087         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
8088         ORT_COMBINED_TARGET.
8089         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
8090         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
8091         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
8092         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
8093         ctx->target_map_scalars_firstprivate.
8094         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
8095         data sharing clauses.  For data sharing clause with VLA decl
8096         on omp target/target data don't add firstprivate for the pointer.
8097         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
8098         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
8099         the addition of ORT_COMBINED_TARGET.
8100         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
8101         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
8102         pointers as zero length array sections and
8103         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
8104         data sharing.
8105         (omp_check_private): Handle omp_member_access_dummy_var vars.
8106         (find_decl_expr): New function.
8107         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
8108         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
8109         Handle OMP_CLAUSE_GANG separately.  Handle
8110         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8111         clauses.  Diagnose linear clause on combined
8112         distribute {, parallel for} simd construct, unless it is the loop
8113         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
8114         Handle map clauses with COMPONENT_REF.  Initialize
8115         ctx->target_map_scalars_firstprivate,
8116         ctx->target_firstprivatize_array_bases and
8117         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
8118         linear clause even to target region if combined.  Remove
8119         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
8120         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
8121         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
8122         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
8123         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
8124         For linear clause on worksharing loop combined with parallel add
8125         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
8126         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
8127         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
8128         taskloop if needed.
8129         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
8130         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
8131         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
8132         GOMP_MAP_POINTER.
8133         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
8134         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
8135         in target body.  Handle removal of struct mapping if struct is not
8136         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
8137         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
8138         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
8139         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
8140         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
8141         clause appear together.  Handle
8142         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
8143         clause if it has map-type-modifier always.  Handle
8144         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8145         clauses.
8146         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
8147         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
8148         callers.
8149         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
8150         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
8151         iterators in doacross loops.
8152         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
8153         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
8154         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
8155         for the addition of ORT_COMBINED_TARGET.
8156         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
8157         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
8158         and OMP_TARGET_EXIT_DATA.
8159         (gimplify_omp_ordered): New function.
8160         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
8161         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
8162         Gimplify clauses on OMP_CRITICAL.
8163         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
8164         expand_GOMP_SIMD_ORDERED_END): New functions.
8165         * internal-fn.def (GOMP_SIMD_ORDERED_START,
8166         GOMP_SIMD_ORDERED_END): New internal functions.
8167         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
8168         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
8169         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
8170         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
8171         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
8172         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
8173         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
8174         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
8175         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
8176         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
8177         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
8178         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
8179         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
8180         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
8181         adjust type.
8182         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
8183         GOMP_target_data_41, adjust type.
8184         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
8185         GOMP_target_update_41, adjust type.
8186         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
8187         field.
8188         (struct omp_for_data): Add ordered and simd_schedule fields.
8189         (omp_member_access_dummy_var, unshare_and_remap_1,
8190         unshare_and_remap, is_taskloop_ctx): New functions.
8191         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
8192         (extract_omp_for_data): Handle taskloops and doacross loops
8193         and simd schedule modifier.
8194         (omp_adjust_chunk_size): New function.
8195         (get_ws_args_for): Use it.
8196         (lookup_sfield): Change first argument to splay_tree_key,
8197         add overload with first argument tree.
8198         (maybe_lookup_field): Likewise.
8199         (use_pointer_for_field): Handle omp_member_access_dummy_var.
8200         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
8201         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
8202         (build_outer_var_ref): Add LASTPRIVATE argument, handle
8203         taskloops and omp_member_access_dummy_var vars.
8204         (build_sender_ref): Change first argument to splay_tree_key,
8205         add overload with first argument tree.
8206         (install_var_field): For mask & 8 use &DECL_UID as key instead
8207         of the tree itself.
8208         (fixup_child_record_type): Const qualify *.omp_data_i.
8209         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
8210         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
8211         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
8212         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
8213         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
8214         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
8215         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
8216         kinds.
8217         (add_taskreg_looptemp_clauses): New function.
8218         (scan_omp_parallel): Use it.
8219         (scan_omp_task): Likewise.
8220         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8221         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
8222         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8223         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
8224         sandwiched taskloop constructs.  Type check
8225         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
8226         region.  Diagnose depend(source) or depend(sink:...) on
8227         target constructs or task/taskloop.
8228         (handle_simd_reference): Use get_name.
8229         (lower_rec_input_clauses): Likewise.  Ignore all
8230         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
8231         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
8232         before passing it to omp_clause_{default,copy}_ctor.  Handle
8233         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
8234         lastprivate_firstprivate flag for linear that needs copyin and
8235         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
8236         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
8237         on taskloop lookup decl in outer context.  Pass true to
8238         build_outer_var_ref lastprivate argument.  Handle
8239         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
8240         outside of outer taskloop for.
8241         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
8242         OMP_CLAUSE_DECL.
8243         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
8244         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
8245         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
8246         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
8247         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
8248         abstract origin.  Handle omp_member_access_dummy_var vars.
8249         (expand_parallel_call): Use expand_omp_build_assign.
8250         (expand_task_call): Handle taskloop construct expansion.  Add
8251         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
8252         integers.  Add priority argument to GOMP_task* calls.  Or in
8253         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
8254         GOMP_task call.
8255         (expand_omp_build_assign): Add prototype.  Add AFTER
8256         argument, if true emit statements after *GSI_P and continue linking.
8257         (expand_omp_taskreg): Adjust expand_task_call caller.
8258         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
8259         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
8260         zero_iter2_bb and first_zero_iter2 arguments, handle computation
8261         of counts even for ordered loops.
8262         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
8263         (expand_omp_ordered_source, expand_omp_ordered_sink,
8264         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
8265         functions.
8266         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
8267         clauses on worksharing loop.  Handle DOACROSS loop expansion.
8268         (expand_omp_for_static_nochunk): Handle linear clauses on
8269         worksharing loop.  Adjust expand_omp_for_init_counts
8270         callers.
8271         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
8272         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
8273         expand_omp_for_init_counts callers.
8274         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
8275         functions.
8276         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
8277         Handle doacross loops.
8278         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8279         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
8280         GOMP_target_{41,update_41,enter_exit_data} libcalls.
8281         (expand_omp): Don't expand ordered depend constructs here, record
8282         ord_stmt instead for later expand_omp_for_generic.
8283         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8284         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
8285         clause as stand-alone directive.
8286         (lower_omp_ordered_clauses): New function.
8287         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
8288         don't lower anything.
8289         (lower_omp_for_lastprivate): Use last _looptemp_ clause
8290         on taskloop for comparison.
8291         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
8292         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
8293         expansion for linear adjustments.
8294         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8295         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
8296         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
8297         to tree * pointing to the stmt's clauses.
8298         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
8299         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8300         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
8301         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
8302         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
8303         clauses.  Always use short kind and 8-bit align shift.
8304         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
8305         (struct lower_omp_regimplify_operands_data): New type.
8306         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
8307         New functions.
8308         (lower_omp_1): Use lower_omp_regimplify_operands instead of
8309         gimple_regimplify_operands.
8310         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8311         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
8312         clause as stand-alone directive.
8313         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
8314         (simd_clone_mangle): Mangle the various linear kinds
8315         per the new ABI.
8316         (simd_clone_adjust_argument_types): Handle
8317         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
8318         (simd_clone_init_simd_arrays): Don't do anything for uval.
8319         (simd_clone_adjust): Handle
8320         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
8321         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
8322         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
8323         * omp-low.h (omp_member_access_dummy_var): New prototype.
8324         * passes.def (pass_simduid_cleanup): Schedule another copy of the
8325         pass after all optimizations.
8326         * tree.c (omp_clause_code_name): Add entries for
8327         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8328         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8329         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
8330         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
8331         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
8332         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
8333         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8334         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
8335         clauses.
8336         * tree-core.h (enum omp_clause_linear_kind): New.
8337         (struct tree_omp_clause): Change type of map_kind
8338         from unsigned char to unsigned int.  Add subcode.if_modifier
8339         and subcode.linear_kind fields.
8340         (enum omp_clause_code): Add
8341         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8342         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8343         (OMP_CLAUSE_REDUCTION): Document
8344         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8345         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
8346         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
8347         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
8348         operand.
8349         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
8350         operand.
8351         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
8352         codes.
8353         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
8354         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
8355         char.
8356         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
8357         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
8358         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
8359         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
8360         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
8361         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
8362         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
8363         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
8364         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
8365         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
8366         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
8367         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
8368         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
8369         * tree-inline.c (remap_gimple_stmt): Handle clauses on
8370         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
8371         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
8372         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
8373         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8374         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8375         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8376         (convert_local_omp_clauses): Likewise.
8377         * tree-pretty-print.c (dump_omp_clause): Handle
8378         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8379         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8380         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
8381         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
8382         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
8383         GOMP_MAP_FORCE_DEALLOC.  Handle
8384         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
8385         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
8386         and clauses on OMP_ORDERED and OMP_CRITICAL.
8387         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
8388         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
8389         (vectorize_loops): Adjust comments.
8390         (pass_simduid_cleanup::execute): Likewise.
8391         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
8392         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
8393         * wide-int.h (wi::gcd): New.
8395 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
8397         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
8398         (ix86_function_arg_advance): Ditto.
8399         (ix86_function_arg): Ditto.
8400         (ix86_gimplify_va_arg): Ditto.
8401         (ix86_class_max_nregs): Ditto.
8402         (inline_memory_move_cost): Ditto.
8403         (ix86_set_reg_reg_cost): Ditto.
8404         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
8406 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
8408         PR middle-end/67912
8409         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
8411 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
8413         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
8414         ROUND_UP macro and UNITS_PER_WORD * 2.
8415         * config/sparc/sparc.c (sparc_compute_frame_size):
8416         Use ROUND_UP and ROUND_DOWN macros where applicable.
8417         (function_arg_record_value, function_arg_record_value_1)
8418         (function_arg_record_value_1): Ditto.
8419         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
8420         alignment to double-word.
8421         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
8422         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
8423         rounded_size.
8425 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
8427         * rtl.h (print_insn): Fix prototype.
8429 2015-10-13  Tom de Vries  <tom@codesourcery.com>
8431         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
8432         -1.  Add assert that returned entry matches phi argument.
8433         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
8434         free_stmt_vec_info_vec ...
8435         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
8436         with -1.
8438 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
8440         PR tree-optimization/67909, 67947
8441         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
8442         really skip the inner loop.
8444 2015-10-13  Jeff Law  <law@redhat.com>
8446         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8447         Allow single block jump threading paths.
8449 2015-10-13  Tom de Vries  <tom@codesourcery.com>
8451         PR tree-optimization/67476
8452         * doc/invoke.texi (@item parloops-schedule): New item.
8453         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
8454         * tree-parloops.c: Include params-enum.h.
8455         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
8457 2015-10-13  Tom de Vries  <tom@codesourcery.com>
8459         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
8460         * params-enum.h: New file.
8461         * opts.c (handle_param): Handle case that param arg is a string.
8462         * params-list.h: Handle DEFPARAMENUM5 in params.def.
8463         * params.c (find_param): New function, factored out of ...
8464         (set_param_value): ... here.
8465         (param_string_value_p): New function.
8466         * params.h (struct param_info): Add value_names field.
8467         (find_param, param_string_value_p): Declare.
8469 2015-10-13  Tom de Vries  <tom@codesourcery.com>
8471         PR tree-optimization/67476
8472         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
8474 2015-10-13  Richard Biener  <rguenther@suse.de>
8476         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
8477         the data dependence vector.
8478         (vect_peeling_hash_insert): Get the peeling hash table as argument.
8479         (vect_peeling_hash_get_lowest_cost): Likewise.
8480         (vect_enhance_data_refs_alignment): Adjust.
8481         (struct _vect_peel_info, struct _vect_peel_extended_info,
8482         struct peel_info_hasher): Move from ...
8483         * tree-vectorizer.h: ... here.
8484         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
8485         (LOOP_VINFO_PEELING_HTAB): Likewise.
8486         (struct _loop_vec_info): Remove min_profitable_iters and
8487         peeling_htab members.
8488         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
8489         here.
8490         (destroy_loop_vec_info): Adjust.
8491         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
8492         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
8493         to estimate alias versioning cost.
8494         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
8496 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
8498         * real.h (real_isinteger): Declare.
8499         * real.c (real_isinteger): New function.
8500         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
8501         if y is an even integer.
8503 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8505         revert:
8506         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8507         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
8508         counts when these are more informative.
8510 2015-10-12  Jeff Law  <law@redhat.com>
8512         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
8513         (fsm_find_control_stmt_paths): Change name of first argument to
8514         more accurately relfect what it really is.  Handle simplification
8515         of GIMPLE_COND after finding a thread path for NAME.
8516         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
8517         nontrivial conditions to be handled by FSM threader.
8518         (thread_through_normal_block): Extract the name to looup via
8519         FSM threader from COND_EXPR.
8521         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
8522         restriction that traced SSA_NAME is a user variable.
8524 2015-10-12  Tom de Vries  <tom@codesourcery.com>
8526         PR tree-optimization/67476
8527         * omp-low.c (expand_omp_for_generic): Add missing phis.
8529 2015-10-12  Tom de Vries  <tom@codesourcery.com>
8531         PR tree-optimization/67476
8532         * omp-low.c (expand_omp_for_generic): Handle simple latch.
8534 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
8536         * config/aarch64/aarch64-simd-builtins.def: Update builtins
8537         tables: add tbl3 and tbx4.
8538         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
8539         (aarch64_tbx4v8qi): New.
8540         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
8541         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
8542         Rewrite using builtin functions.
8543         * config/aarch64/iterators.md (UNSPEC_TBX): New.
8545 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
8547         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
8548         ROUND_UP macro.
8549         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
8550         Use ROUND_UP and ROUND_DOWN macros where applicable.
8551         (rs6000_darwin64_record_arg_flush): Ditto.
8552         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
8553         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
8554         rounded_size.
8556 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
8558         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
8559         (AARCH64_ROUND_DOWN): Ditto.
8560         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
8562 2015-10-12  Richard Biener  <rguenther@suse.de>
8564         PR ipa/67783
8565         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
8566         code that analyzes IVs on each stmt but in a cheaper way avoiding
8567         quadratic behavior.
8569 2015-10-12  Nick Clifton  <nickc@redhat.com>
8571         * config/msp430/msp430.c (msp430_mcu_names): Rename to
8572         msp430_mcu_data, add fields for ISA and hardware multiply
8573         support.  Import latest data from the devices.csv file.
8574         (msp430_override_option): Use the data from the new array.
8575         (msp430_use_f5_series_hwmult): Likewise.
8576         (use_32bit_hwmult): Likewise.
8577         (msp430_no_hwmult): Likewise.
8578         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
8579         MCU names.
8580         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
8581         not recognised then no hardware multiply support is assumed and
8582         that only the MSP430 ISA is allowed.
8584 2015-10-12  Richard Biener  <rguenther@suse.de>
8586         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
8587         related code ...
8588         (vect_analyze_loop_2): ... here.
8590 2015-10-11  Jason Merrill  <jason@redhat.com>
8592         PR c++/67557
8593         * expr.c (store_field): Call store_constructor directly when
8594         storing a CONSTRUCTOR into a target smaller than its type.
8595         Guard against unsafe bitwise copy.
8597 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8599         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
8600         counts when these are more informative.
8602 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8604         * tree-profile.c (tree_profiling): Do not clear
8605         pure/const when not instrumenting.
8606         (pass tree_profile): Add dump of symtab.
8608 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8610         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
8611         addresses.
8612         (fold_addr_of_array_ref_difference): Likewise.
8614 2015-10-11  Jeff Law  <law@redhat.com>
8616         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
8617         tree-ssa-threadbackward.c.
8618         (fsm_find_control_statement_thread_paths): Likewise.
8619         (thread_through_normal_block): Break out FSM bits and move them
8620         into a new function in tree-ssa-threadbackward.c.  Call new function
8621         instead.
8622         Minimize header file usage.
8623         * tree-ssa-threadbackward.h: New file.
8624         * tree-ssa-threadbackward.c: Likewise.
8625         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
8627 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
8629         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
8631 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
8633         PR rtl-optimization/67864
8634         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
8635         fallthrough edges for conditional jumps.  Don't sort candidate
8636         edges if not optimizing for speed.
8638 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8640         * defaults.h (REVERSE_CONDITION): New default definition.
8641         * jump.c (reversed_comparison_code_parts): Adjust.
8643 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8645         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
8646         check HARD_FRAME_POINTER_IS_ARG_POINTER.
8648 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8650         * defaults.h (FRAME_ADDR_RTX): New default definition.
8651         * builtins.c (expand_builtin_return_addr): Adjust.
8653 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8655         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
8656         * builtins.c (expand_builtin_return_addr): Adjust.
8658 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8660         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
8661         * builtins.c (expand_builtin_return_addr): Adjust.
8662         * doc/tm.texi: Likewise.
8663         * doc/tm.texi.in: Likewise.
8664         * except.c (expand_builtin_unwind_init): Likewise.
8666 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8668         * builtins.c (expand_builtin_return_addr): Adjust.
8669         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
8671 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
8673         * tree.c (type_with_interoperable_signedness): New.
8674         (gimple_canonical_types_compatible_p): Use it.
8675         * tree.h (type_with_interoperable_signedness): Declare
8677 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
8679         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
8680         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
8681         when OEP_ADDRESS_OF is se.
8683 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
8684             Sebastian Pop  <s.pop@samsung.com>
8686         * graphite-dependences.c (scop_get_dependences): Add dump of the
8687         data dependence graph.
8688         * graphite-poly.c (print_isl_union_map): New.
8689         (debug_isl_union_map): New.
8690         * graphite-poly.h (print_isl_union_map): Declare.
8691         (debug_isl_union_map): Declare.
8693 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
8694             Sebastian Pop  <s.pop@samsung.com>
8696         * graphite-poly.c (print_iteration_domain): Remove verbosity.
8697         Remove OpenScop formatting.
8698         (print_iteration_domains): Same.
8699         (debug_iteration_domain): Same.
8700         (debug_iteration_domains): Same.
8701         (print_pdr): Same.
8702         (debug_pdr): Same.
8703         (dump_gbb_cases): Same.
8704         (dump_gbb_conditions): Same.
8705         (print_pdrs): Same.
8706         (debug_pdrs): Same.
8707         (print_pbb_body): Same.
8708         (print_pbb): Same.
8709         (print_scop_params): Same.
8710         (print_scop_context): Same.
8711         (print_scop): Same.
8712         (debug_pbb_domain): Same.
8713         (debug_pbb): Same.
8714         (debug_scop_context): Same.
8715         (debug_scop): Same.
8716         (debug_scop_params): Same.
8717         * graphite-poly.h: Same.
8718         * graphite.c (graphite_transform_loops): Same.
8720 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8722         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
8723         call that isn't needed.
8725 2015-10-09  Jeff Law  <law@redhat.com>
8727         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
8728         rather than moving each name to the freelist individually.
8730 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
8732         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
8733         * frame-header-opt.c: New file.
8734         * config/mips/mips-proto.h (mips_register_frame_header_opt):
8735         Add prototype.
8736         * config/mips/mips.c (mips_compute_frame_info): Check
8737         optimize_call_stack flag.
8738         (mips_option_override): Register new frame_header_opt pass.
8739         (mips_frame_info, mips_int_mask, mips_shadow_set,
8740         machine_function): Move these types to...
8741         * config/mips/mips.h: here.
8742         (machine_function): Add does_not_use_frame_header and
8743         optimize_call_stack fields.
8744         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
8745         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
8746         Document new flags.
8747         * config/mips/mips.opt (mframe-header-opt): Add new option.
8749 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
8751         * config/i386/i386.c
8752         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
8753         ROUND_DOWN where applicable.
8755 2015-10-09  Jeff Law  <law@redhat.com>
8757         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
8758         correct statement.
8760 2015-10-09  Renlin Li  <renlin.li@arm.com>
8762         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
8763         operands[0] and operands[2].
8764         (neon_vtrn<mode>_insn): Likewise.
8765         (neon_vzip<mode>_insn): Likewise.
8767 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8769         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
8770         ((X & C2) << C1): Expand to...
8771         (X {&,^,|} C2 << C1): ...This.
8772         ((X & C2) >> C1): Expand to...
8773         (X {&,^,|} C2 >> C1): ...This.
8775 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
8777         PR target/67895
8778         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
8779         Adjust embedded rounding/SAE specifier position.
8780         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
8781         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
8782         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
8783         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
8784         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
8785         Likewise.
8786         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
8788 2015-10-09  Martin Jambor  <mjambor@suse.cz>
8790         tree-optimization/67794
8791         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
8792         between types of state,ents but accept original definitions as a
8793         parameter.
8794         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
8795         iterate over definitions.
8797 2015-10-09  James Norris  <jnorris@codesourcery.com>
8799         * config/rs6000/rs6000.c (rs6000_offload_options): New.
8800         (TARGET_OFFLOAD_OPTIONS): New.
8802 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
8804         PR middle-end/67891
8805         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
8807         PR middle-end/67766
8808         * function.c (expand_function_end): Move return value
8809         promotion past the handling of PARALLELs and CONCATs.
8811         PR rtl-optimization/67828
8812         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
8813         (tree_may_unswitch_on): Don't unswitch on expressions
8814         involving undefined values.
8816 2015-10-09  Richard Biener  <rguenther@suse.de>
8818         * genmatch.c (print_operand): Fix formatting.
8819         (dt_node::append_simplify): Warn for multiple simplifiers
8820         that match the same pattern.
8821         * match.pd (log (exp @0)): Remove duplicates.
8823 2015-10-09  Richard Biener  <rguenth@suse.de>
8825         PR target/67366
8826         * gimple-fold.c (optabs-query.h): Include
8827         (gimple_fold_builtin_memory_op): Allow unaligned stores
8828         when movmisalign_optabs are available.
8830 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8832         PR target/67366
8833         * config/arm/arm.md (movmisalign<mode>): New.
8834         * config/arm/iterators.md (HSI): New.
8836 2015-10-09  Richard Biener  <rguenther@suse.de>
8838         PR tree-optimization/67891
8839         * gimple-match.h (gimple_simplified_result_is_gimple_val):
8840         New helper.
8841         (gimple_resimplify1): Declare.
8842         (gimple_resimplify2): Likewise.
8843         (gimple_resimplify3): Likewise.
8844         * gimple-match-head.c (gimple_resimplify1): Export.
8845         (gimple_resimplify2): Likewise.
8846         (gimple_resimplify3): Likewise.
8847         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
8848         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8849         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
8850         to avoid creating stmts without VN info.
8852 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
8854         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
8855         of availability.
8857 2015-10-08  Jeff Law  <law@redhat.com>
8859         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
8860         and release_ssa_name in two places.
8861         (gimple_stringop_fixed_value): Similarly.
8863         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
8864         release_defs.
8866         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
8867         unlink_stmt_vdef and release_ssa_name_fn.
8869         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
8870         release_defs.
8872 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
8874         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
8875         SSE register save area to 16 bytes only if the incoming stack
8876         boundary is no less than 16 bytes.
8878 2015-10-08  Jeff Law  <law@redhat.com>
8880         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
8881         release_ssa_name.  Fix typo in comment.
8883 2015-10-08  Nathan Sidwell  <nathan@acm.org>
8885         * config/nvptx/nvptx.h (struct machine_function): Add comment.
8886         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
8887         may return pointer as well as in memory.
8888         (nvptx_output_return): Likewise.
8890 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
8892         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
8893         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
8894         * match.pd: Add rules previously handled by fold_builtin_sqrt
8895         and fold_builtin_cbrt.
8897 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
8899         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
8900         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
8901         * fold-const.h (tree_unary_nonnegative_warnv_p)
8902         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8903         (tree_expr_nonnegative_warnv_p): Add depth parameters.
8904         * fold-const.c: Include gimple-fold.h and params.h.
8905         (tree_ssa_name_nonnegative_warnv_p): New function.
8906         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
8907         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8908         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
8909         Add a depth parameter and increment it for recursive calls to
8910         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
8911         to handle SSA names.
8912         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
8913         (gimple_stmt_nonnegative_warnv_p): Declare.
8914         * tree-vrp.c (remove_range_assertions): Remove assert that condition
8915         cannot be proven false.
8916         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
8917         (gimple_stmt_nonnegative_warnv_p): Move to...
8918         * gimple-fold.c: ...here.  Add depth parameters and pass them
8919         down to the tree routines.  Accept statements that aren't
8920         assignments or calls but just return false for them.
8921         (gimple_val_nonnegative_real_p): Delete.
8922         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
8923         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
8924         Check HONOR_NANs first.
8926 2015-10-08  Martin Jambor  <mjambor@suse.cz>
8928         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
8929         unnecessary MIN.
8931 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
8933         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
8934         in the tail of outer-loop.
8936 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
8938         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
8939         return UI_NONE.
8941 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
8943         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
8944         "cfghooks.h", add prototypes for introduced new functions.
8945         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
8946         checks on ability of loop unswitching to tree_unswitch_single_loop;
8947         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
8948         on innermost loop check.
8949         (tree_unswitch_single_loop): Add all required checks on ability of
8950         loop unswitching under zero recursive level guard.
8951         (tree_unswitch_outer_loop): New function.
8952         (find_loop_guard): Likewise.
8953         (empty_bb_without_guard_p): Likewise.
8954         (used_outside_loop_p): Likewise.
8955         (get_vop_from_header): Likewise.
8956         (hoist_guard): Likewise.
8957         (check_exit_phi): Likewise.
8959 2015-10-08  Marek Polacek  <polacek@redhat.com>
8961         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
8962         ops element.
8964 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8966         PR c/65345
8967         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
8968         create_tmp_var_raw instead of create_tmp_var.
8970 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
8972         * expr.c (store_expr_with_bounds): Handle aggregate moves from
8973         BLKmode.
8974         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
8975         to define gimple type system; compare aggregates only by size.
8977 2015-10-07  Jeff Law  <law@redhat.com>
8979         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
8980         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
8981         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
8982         unnecessarily.
8984 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
8985             Sebastian Pop  <s.pop@samsung.com>
8987         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
8988         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
8989         (generate_isl_schedule): Same.
8990         * graphite-optimize-isl.c (scop_get_domains): Same.
8991         (apply_schedule_map_to_scop): Same.
8992         * graphite-poly.c (print_iteration_domains): Same.
8993         (remove_gbbs_in_scop): Same.
8994         (new_scop): Same.
8995         (free_scop): Same.
8996         (print_scop): Same.
8997         * graphite-poly.h (struct scop): Rename bbs to pbbs.
8998         (SCOP_BBS): Remove.
8999         * graphite-scop-detection.c (compare_bb_depths): Remove.
9000         (graphite_sort_dominated_info): Remove.
9001         (try_generate_gimple_bb): Move out of scop_detection.
9002         (all_non_dominated_preds_marked_p): Remove.
9003         (build_scop_bbs_1): Remove.
9004         (build_scop_bbs): Remove.
9005         (nb_pbbs_in_loops): Do not use SCOP_BBS.
9006         (find_scop_parameters): Same.
9007         (sese_dom_walker): Rename gather_bbs.
9008         (before_dom_children): Call try_generate_gimple_bb and collect gbb
9009         and pbb.
9010         (build_scops): Call gather_bbs.
9011         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
9012         (add_conditions_to_constraints): Same.
9013         (build_scop_iteration_domain): Same.
9014         (build_scop_drs): Same.
9015         (new_pbb_from_pbb): Same.
9016         * sese.c (new_sese_info): Create bbs.
9017         * sese.h (struct sese_info_t): Add bbs.
9019 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
9021         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
9022         encoding in 64-bit mode.
9024 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
9026         PR target/66697
9027         * config/i386/i386.c (ix86_option_override_internal): Always use
9028         8-byte minimum stack boundary in 64-bit mode.
9029         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
9030         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
9031         Add a REG_CFA_EXPRESSION note if needed.
9032         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
9033         (ix86_handle_force_align_arg_pointer_attribute): New.
9034         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
9035         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
9036         with ix86_handle_force_align_arg_pointer_attribute.
9037         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
9039 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
9040             Sebastian Pop  <s.pop@samsung.com>
9042         * graphite-scop-detection.c (parameter_index_in_region): Remove
9043         use of SESE_ADD_PARAMS.
9044         (find_scop_parameters): Same.
9045         * sese.c (new_sese_info): Same.
9046         * sese.h (struct sese_info_t): Remove add_params.
9047         (SESE_ADD_PARAMS): Remove.
9049 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
9050             Sebastian Pop  <s.pop@samsung.com>
9052         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
9053         an sese_info_p.
9054         (copy_def): Same.
9055         (copy_internal_parameters): Same.
9056         (translate_isl_ast_to_gimple): Use an sese_l.
9057         (build_iv_mapping): Same.
9058         * graphite-poly.c (new_sese): Rename new_sese_info.
9059         (free_sese): Rename free_sese_info.
9060         * graphite-poly.h (struct scop): Use an sese_info_p.
9061         (scop_set_region): Same.
9062         * graphite-scop-detection.c (struct sese_l): Moved...
9063         (get_entry_bb): Moved...
9064         (get_exit_bb): Moved...
9065         (parameter_index_in_region_1): Use an sese_info_p.
9066         (parameter_index_in_region): Same.
9067         (scan_tree_for_params): Same.
9068         (find_params_in_bb): Same.
9069         (sese_dom_walker): Use an sese_l.
9070         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
9071         (reduction_phi_p): Same.
9072         (parameter_index_in_region_1): Use an sese_info_p.
9073         (propagate_expr_outside_region): Use an sese_l.
9074         * graphite.c: Replace uses of SCOP_REGION.
9075         * sese.c (sese_record_loop): Use an sese_info_p.
9076         (build_sese_loop_nests): Same.
9077         (sese_build_liveouts_use): Same.
9078         (sese_build_liveouts_bb): Same.
9079         (sese_build_liveouts_bb): Same.
9080         (sese_bad_liveouts_use): Same.
9081         (sese_reset_debug_liveouts_bb): Same.
9082         (sese_build_liveouts): Same.
9083         (new_sese): Renamed new_sese_info.
9084         (free_sese): Renamed free_sese_info.
9085         (set_rename): Use an sese_info_p.
9086         (graphite_copy_stmts_from_block): Same.
9087         (copy_bb_and_scalar_dependences): Same.
9088         (outermost_loop_in_sese_1): Use an sese_l.
9089         (outermost_loop_in_sese): Same.
9090         (if_region_set_false_region): Use an sese_info_p.
9091         (move_sese_in_condition): Same.
9092         (scalar_evolution_in_region): Use an sese_l.
9093         * sese.h (struct sese_l): ... here.
9094         (SESE_ENTRY): Remove.
9095         (SESE_ENTRY_BB): Remove.
9096         (SESE_EXIT): Remove.
9097         (SESE_EXIT_BB): Remove.
9098         (sese_contains_loop): Use an sese_info_p.
9099         (sese_nb_params): Same.
9100         (bb_in_sese_p): Use an sese_l.
9101         (stmt_in_sese_p): Same.
9102         (defined_in_sese_p): Same.
9103         (loop_in_sese_p): Same.
9104         (sese_loop_depth): Same.
9105         (struct ifsese_s): Use an sese_info_p.
9106         (gbb_loop_at_index): Use an sese_l.
9107         (nb_common_loops): Same.
9108         (scev_analyzable_p): Same.
9110 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
9112         * config/i386/i386.c (ix86_conditional_register_usage): Use
9113         CALL_USED_REGISTERS_MASK.
9114         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
9116 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
9118         PR bootstrap/67385
9119         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
9120         * configure: Regenerated.
9122 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
9124         PR target/67850
9125         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
9126         (ix86_set_current_function): This.
9127         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
9129 2015-10-07  Richard Biener  <rguenther@suse.de>
9131         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
9132         (vinfo_for_stmt): Adjust.
9133         (set_vinfo_for_stmt): Likewise.
9134         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
9135         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
9136         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
9137         of inner loop.
9138         (vect_analyze_loop_1): Remove.
9139         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
9140         inner loop when vectorizing an outer loop by splitting out from ...
9141         (vect_analyze_loop_form): ... here.
9143 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9145         PR c/65345
9146         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
9147         Use create_tmp_var_raw instead of create_tmp_var.
9149 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
9151         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
9152         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
9153         * real.c (CACHED_FRACTION): New helper macro.
9154         (dconst_third_ptr): Use it.
9155         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
9156         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
9157         dconst_sixth.
9158         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
9160 2015-10-06  Jeff Law  <law@redhat.com>
9162         PR tree-optimization/67816
9163         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
9164         from remove_jump_threads_starting_at.  Accept an edge rather than
9165         a basic block.
9166         * tree-ssa-threadupdate.c (removed_edges): New hash table.
9167         (remove_jump_threads_including): Note edges that get removed from
9168         the CFG for later pruning of jump threading paths including them.
9169         (thread_through_all_blocks): Remove paths which include edges that
9170         have been removed.
9171         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
9172         on each outgoing edges when optimizing away a control statement.
9174 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9176         * reorg.c (emit_delay_sequence): Store list of delay slot insns
9177         in a vector instead of rtx_insn_list.
9178         (add_to_delay_list): Likewise.
9179         (delete_from_delay_slot): Likewise.
9180         (optimize_skip): Likewise.
9181         (redirect_with_delay_list_safe_p): Likewise.
9182         (check_annul_list_true_false): Likewise.
9183         (steal_delay_list_from_target): Likewise.
9184         (steal_delay_list_from_fallthrough): Likewise.
9185         (redundant_insn): Likewise.
9186         (fill_simple_delay_slots): Likewise.
9187         (fill_slots_from_thread): Likewise.
9188         (fill_eager_delay_slots): Likewise.
9189         (relax_delay_slots): Likewise.
9191 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
9193         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
9194         For -mgpopt=local, also exclude unintialized common symbols.
9195         * doc/invoke.texi (Nios II Options): Document the change.
9197 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
9199         * config/aarch64/iterators.md (vwcore): Add missing cases for
9200          V4HF/V8HF modes.
9202 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
9203             Sebastian Pop  <s.pop@samsung.com>
9205         * graphite-poly.c (new_scop): Initialize drs.
9206         * graphite-poly.h (struct dr_info): New.
9207         (struct scop): Add drs.
9208         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
9209         (pdr_add_memory_accesses): Same.
9210         (build_poly_dr): Same.
9211         (build_alias_set): Same.
9212         (build_scop_drs): Same.
9213         (build_pbb_drs): Remove.
9214         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
9215         * tree-data-ref.h (data_reference): Remove alias_set.
9217 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
9218             Sebastian Pop  <s.pop@samsung.com>
9220         * graphite-poly.c (free_data_refs_aux): Remove.
9221         (free_gimple_poly_bb): Do not call free_data_refs_aux.
9222         * graphite-poly.h (struct base_alias_pair): Remove.
9223         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
9224         base_alias_pair and dr->aux.
9225         (build_alias_set): Same.
9226         * tree-data-ref.c (create_data_ref): Initialize alias_set.
9227         * tree-data-ref.h (data_reference): Add alias_set.
9229 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
9230             Sebastian Pop  <s.pop@samsung.com>
9232         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
9233         Do not set PDR_BASE_OBJECT_SET.
9234         * graphite-poly.h (poly_dr): Same.
9235         (PDR_BASE_OBJECT_SET): Remove.
9236         (new_poly_dr): Update decl.
9237         * graphite-sese-to-poly.c (build_poly_dr): Update call to
9238         new_poly_dr.
9239         (write_alias_graph_to_ascii_dimacs): Remove.
9240         (write_alias_graph_to_ascii_dot): Remove.
9241         (write_alias_graph_to_ascii_ecc): Remove.
9242         (dr_same_base_object_p): Remove.
9243         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
9244         code.
9245         (build_base_obj_set_for_drs): Remove.
9246         (dump_alias_graphs): Remove.
9247         (build_scop_drs): Remove dead code.
9249 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
9250             Peter Bergner  <bergner@vnet.ibm.com>
9252         PR target/67808
9253         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
9254         allow registers, but provide insns for the combiner to create for
9255         loads from memory. Separate VSX code from non-VSX code. For
9256         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
9257         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
9258         so that registers come before memory operations. Drop support from
9259         converting DFmode to TFmode, if the DFmode value is in a GPR
9260         register.
9261         (extenddftf2_fprs): Likewise.
9262         (extenddftf2_internal): Likewise.
9263         (extenddftf2_vsx): Likewise.
9264         (extendsftf2): In the expander, only allow registers, but provide
9265         insns for the combiner to create for stores and loads.
9267 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9269         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
9270         from the decl parameter.
9272 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
9274         PR 67861
9275         * gimple-fold.c (gimple_fold_builtin): Add break after
9276         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
9278 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
9280         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
9281         to scop->isl_context.
9283 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
9285         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
9286         (output_probe_stack_range): Rotate the loop and simplify.
9287         (thumb1_expand_prologue): Tweak sorry message.
9288         * config/arm/arm.md (probe_stack): Use bare string.
9290 2015-10-06  Nick Clifton  <nickc@redhat.com>
9292         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
9294 2015-10-06  Nick Clifton  <nickc@redhat.com>
9296         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
9297         (ATTR_PERSIST): New constant.
9298         (msp430_data_attr): New function - verifies an attribute that only
9299         applies to variables.
9300         (msp430_attributes): Add noinit and persistent attributes.
9301         (noinit_section): New variable.
9302         (presis_section): New variable.
9303         (TARGET_ASM_INIT_SECTIONS): Define.
9304         (msp430_init_sections): New function - initialises the noinit and
9305         persist section variables.
9306         (msp430_select_section): Add support for noinit and persist
9307         attributes.
9308         (msp430_section_type_flags): Likewise.
9309         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
9310         and persistent attributes.
9312 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9313             Sebastian Pop  <s.pop@samsung.com>
9315         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
9316         (no_violations): Remove.
9317         (subtract_commutative_associative_deps): Remove.
9318         (compute_deps): Do not call subtract_commutative_associative_deps.
9319         (transform_is_safe): Remove.
9320         (graphite_legal_transform): Remove.
9321         * graphite-poly.h (graphite_legal_transform): Remove.
9323 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
9325         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
9326         which are in this region are passed so gcc_assert and remove redundant
9327         computation.
9328         * sese.c (sese_build_liveouts): Pass only those bbs which are not
9329         in region.
9330         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
9331         gcc_assert on that and remove unnecessary computation.
9332         (sese_build_liveouts_use): Same.
9334 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9336         * graphite-dependences.c (scop_get_reads): Renamed scop->context
9337         to scop->param_context.
9338         (scop_get_must_writes): Same.
9339         (scop_get_may_writes): Same.
9340         (scop_get_original_schedule): Same.
9341         (scop_get_transformed_schedule): Same.
9342         (subtract_commutative_associative_deps): Same.
9343         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
9344         (generate_isl_context): Same.
9345         (generate_isl_schedule): Same.
9346         (scop_to_isl_ast): Same.
9347         (graphite_regenerate_ast_isl): Same.
9348         * graphite-optimize-isl.c (scop_get_domains): Same.
9349         (optimize_isl): Renamed scop->context to scop->param_context.
9350         * graphite-poly.c (new_poly_bb): Change the type of argument to
9351         gimple_poly_bb_p.
9352         (new_scop): Renamed scop->context to scop->param_context.
9353         (free_scop): Same.
9354         (print_scop_context): Same.
9355         * graphite-poly.h (new_poly_dr): Change the type of argument from
9356         void* to data_reference_p.
9357         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
9358         (new_poly_bb): Change the type of argument from void* to
9359         gimple_poly_bb_p.
9360         (pbb_set_black_box): Same.
9361         (struct scop): Rename context to param_context, ctx to isl_context.
9362         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
9363         Move declarations closer to assignment.
9364         (find_params_in_bb): Same.
9365         (find_scop_parameters): Same.
9366         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
9367         Global to be used for statement IDs.
9368         (isl_id_for_pbb): Use ssa_name_version_typesize.
9369         (simple_copy_phi_p): Move declarations closer to assignment.
9370         (build_pbb_scattering_polyhedrons): Same.
9371         (build_scop_scattering): Same.
9372         (isl_id_for_ssa_name): Same.
9373         (extract_affine_name): Same.
9374         (extract_affine_int): Same.
9375         (extract_affine): Same.
9376         (set_scop_parameter_dim): Use renamed member.
9377         (build_loop_iteration_domains): Same.
9378         (add_param_constraints): Same.
9379         (build_scop_iteration_domain): Same.
9380         (pdr_add_data_dimensions): Same.
9381         (build_poly_dr): Same.
9382         (build_scop_drs): Move declarations closer to assignment.
9383         (analyze_drs_in_stmts): Same.
9384         (insert_out_of_ssa_copy): Same.
9385         (insert_out_of_ssa_copy_on_edge): Same.
9386         (propagate_expr_outside_region): Same.
9387         (rewrite_phi_out_of_ssa): Same.
9388         (rewrite_degenerate_phi): Same.
9389         (rewrite_reductions_out_of_ssa): Same.
9390         (rewrite_cross_bb_scalar_dependence): Same.
9391         (handle_scalar_deps_crossing_scop_limits): Same.
9392         (rewrite_cross_bb_scalar_deps): Same.
9393         * graphite.c (graphite_transform_loops): Use renamed member.
9395 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
9397         PR c/65345
9398         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
9399         create_tmp_var_raw instead of create_tmp_var.
9401 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9403         PR c/65345
9404         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
9405         Use create_tmp_var_raw instead of create_tmp_var.
9407 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
9409         PR target/67849
9410         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
9411         split for upper-bank registers when target does not support
9412         AVX512VL.
9413         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
9414         split when target does not support AVX512VL.
9416 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
9418         PR c/65345
9419         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
9420         Adjust to use create_tmp_var_raw instead of create_tmp_var.
9422 2015-10-06  Nick Clifton  <nickc@redhat.com>
9424         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
9425         multiplication.
9427 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
9429         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
9430         (case ${target}): Add znver1.
9431         * config/i386/cpuid.h(bit_CLZERO):  Define.
9432         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
9433         -march=native recognize znver1 processors.
9434         * config/i386/i386-c.c (ix86_target_macros_internal): Add
9435         znver1, clzero def_and_undef.
9436         * config/i386/i386.c (struct processor_costs znver1_cost): New.
9437         (m_znver1): New definition.
9438         (m_AMD_MULTIPLE): Includes m_znver1.
9439         (processor_target_table): Add znver1 entry.
9440         (ix86_target_string) : Add clzero entry.
9441         (static const char *const cpu_names): Add znver1 entry.
9442         (ix86_option_override_internal): Add znver1 instruction sets.
9443         (PTA_CLZERO) :  New definition.
9444         (ix86_option_override_internal): Handle new clzerooption.
9445         (ix86_issue_rate): Add znver1.
9446         (ix86_adjust_cost): Add znver1.
9447         (ia32_multipass_dfa_lookahead): Add znver1.
9448         (has_dispatch): Add znver1.
9449         * config/i386/i386.h (TARGET_znver1): New definition.
9450         (TARGET_CLZERO): Define.
9451         (TARGET_CLZERO_P): Define.
9452         (struct ix86_size_cost): Add TARGET_ZNVER1.
9453         (enum processor_type): Add PROCESSOR_znver1.
9454         * config/i386/i386.md (define_attr "cpu"): Add znver1.
9455         (set_attr znver1_decode): New definitions for znver1.
9456         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
9457         (mclzero): New.
9458         * config/i386/mmx.md (set_attr znver1_decode): New definitions
9459         for znver1.
9460         * config/i386/sse.md (set_attr znver1_decode): Likewise.
9461         * config/i386/x86-tune.def:  Add znver1 tunings.
9462         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
9463         * doc/invoke.texi: Add details about znver1
9465 2015-10-06  Richard Biener  <rguenther@suse.de>
9467         PR tree-optimization/67859
9468         * tree-ssa-pre.c (create_expression_by_pieces): Properly
9469         discard not inserted stmts.
9471 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
9473         * doc/extend.texi (Template Instantiation): Reorder options and
9474         de-emphasize -frepo.
9475         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
9476         example instead of -frepo.
9478 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
9480         PR c/65345
9481         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
9482         use create_tmp_var_raw rather than create_tmp_var.
9484 2015-10-06  Richard Biener  <rguenther@suse.de>
9486         * tree-vectorizer.h (vec_info): New base class for...
9487         (_loop_vec_info): ... this and ...
9488         (_bb_vec_info): ... this.
9489         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
9490         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
9491         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
9492         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
9493         vect_destroy_datarefs): Adjust interface to take a vec_info *
9494         rather than both a loop_vec_info and a bb_vec_info argument.
9495         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
9496         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
9497         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
9498         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
9499         accordingly.
9500         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
9501         (destroy_loop_vec_info, vect_analyze_loop_2,
9502         vect_is_simple_reduction_1, get_initial_def_for_induction,
9503         vect_create_epilog_for_reduction, vectorizable_reduction,
9504         vectorizable_live_operation, vect_transform_loop): Adjust.
9505         * tree-vect-patterns.c (type_conversion_p,
9506         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
9507         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
9508         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
9509         check_bool_pattern, vect_recog_bool_pattern,
9510         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
9511         * tree-vect-slp.c (vect_get_and_check_slp_defs,
9512         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
9513         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
9514         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
9515         (new_bb_vec_info): Initialize base classs.
9516         * tree-vect-stmts.c (record_stmt_cost, process_use,
9517         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
9518         vectorizable_mask_load_store, vectorizable_call,
9519         vectorizable_simd_clone_call, vectorizable_conversion,
9520         vectorizable_assignment, vectorizable_shift,
9521         vectorizable_operation, vectorizable_store,
9522         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
9523         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
9524         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
9526 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
9528         PR c/65345
9529         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
9530         create_tmp_var_raw rather than create_tmp_var.
9532 2015-10-05  Marek Polacek  <polacek@redhat.com>
9534         * tree-ssa-loop-im.c
9535         (move_computations_dom_walker::before_dom_children): Don't set
9536         SSA_NAME_ANTI_RANGE_P.
9537         * tree-ssa-phiopt.c (value_replacement): Likewise.
9539 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9540             Sebastian Pop  <s.pop@samsung.com>
9542         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
9544 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9545             Sebastian Pop  <s.pop@samsung.com>
9547         * graphite-poly.c (new_gimple_poly_bb): ... here.
9548         (free_data_refs_aux): ... here.
9549         (free_gimple_poly_bb): ... here.
9550         (remove_gbbs_in_scop): ... here.
9551         (new_scop): Call new_sese.
9552         (free_scop): Call remove_gbbs_in_scop and free_sese.
9553         * graphite-poly.h (base_alias_pair): ... here.
9554         (new_gimple_poly_bb): Declare.
9555         (free_gimple_poly_bb): Declare.
9556         * graphite-scop-detection.c (parameter_index_in_region_1):
9557         (parameter_index_in_region): ... here.
9558         (scan_tree_for_params): ... here.
9559         (find_params_in_bb): ... here.
9560         (find_scop_parameters): ... here.
9561         (build_scops): Call find_scop_parameters.
9562         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
9563         (free_scops): Move...
9564         (single_pred_cond_non_loop_exit): Move...
9565         (sese_dom_walker::before_dom_children): Move...
9566         (sese_dom_walker::after_dom_children): Move...
9567         (build_poly_scop): Move...
9568         * graphite-sese-to-poly.h (base_alias_pair): Move...
9569         * graphite.c (free_scops): ... here.
9571 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9572             Sebastian Pop  <s.pop@samsung.com>
9574         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
9575         (trivially_empty_bb_p): Move...
9576         (same_close_phi_node): Move...
9577         (new_gimple_poly_bb): Move...
9578         (compare_bb_depths): Move...
9579         (graphite_sort_dominated_info): Move...
9580         (remove_duplicate_close_phi): Move...
9581         (make_close_phi_nodes_unique): Move...
9582         (canonicalize_loop_closed_ssa): Move...
9583         (canonicalize_loop_closed_ssa_form): Move...
9584         (loop_ivs_can_be_represented): Move...
9585         (single_pred_cond_non_loop_exit): Move...
9586         (graphite_can_represent_init): Move...
9587         (graphite_can_represent_scev): Move...
9588         (stmt_has_simple_data_refs_p): Move...
9589         (stmt_has_side_effects):  Move...
9590         (graphite_can_represent_stmt): Move...
9591         (scop_detection): ... here.
9592         (sese_dom_walker): ... and here.
9593         (build_scops): Call all moved functions.
9594         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
9595         (all_non_dominated_preds_marked_p): Move...
9596         (build_scop_bbs_1): Move...
9597         (build_scop_bbs): Move...
9598         (set_scop_parameter_dim): Move...
9599         (nb_pbbs_in_loops): Move...
9600         (build_poly_scop): Do not call all the moved functions.
9602 2015-10-05  Martin Jambor  <mjambor@suse.cz>
9603             Jan Hubicka  <hubicka@ucw.cz>
9605         * ipa-cp.c (ipcp_alignment_lattice): New type.
9606         (ipcp_param_lattices): Use the above to represent alignment.
9607         (ipcp_alignment_lattice::print): New function.
9608         (print_all_lattices): Use it to print alignment information.
9609         (ipcp_alignment_lattice::top_p): New function.
9610         (ipcp_alignment_lattice::bottom_p): Likewise.
9611         (ipcp_alignment_lattice::set_to_bottom): Likewise.
9612         (ipcp_alignment_lattice::meet_with_1): Likewise.
9613         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
9614         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
9615         (initialize_node_lattices): Likewise.
9616         (propagate_alignment_accross_jump_function): Work with the new class
9617         for alignment lattices.
9618         (propagate_constants_accross_call): Pass only the alignment lattice to
9619         propagate_alignment_accross_jump_function.
9620         (ipcp_store_alignment_results): Work with the new class for alignment
9621         lattices.
9623 2015-10-05  Marek Polacek  <polacek@redhat.com>
9625         PR tree-optimization/67821
9626         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
9628 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
9630         PR other/65021
9631         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
9632         function to...
9633         (mkoffload_cleanup): ... this.  Adjust all users.
9634         (maybe_unlink): Look at save_temps and verbose flags instead of
9635         debug flag.
9636         (main): Parse "-save-temps" flag.
9637         (generate_target_descr_file, generate_target_offloadend_file)
9638         (generate_host_descr_file, prepare_target_image): Pass it on.
9639         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
9640         (mkoffload_cleanup): New function.
9641         (maybe_unlink): Look at save_temps and verbose flags instead of
9642         debug flag.
9643         (main): Instead of calling utils_cleanup, register atexit handler
9644         for mkoffload_cleanup.
9645         (main): Parse "-save-temps" flag.
9646         (compile_native, main): Pass it on.
9647         * lto-wrapper.c (compile_offload_image): Likewise.
9649 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9651         * gimple.h (gimple_op_ptr): Require a non const gimple *.
9652         (gimple_assign_lhs_ptr): Likewise.
9653         (gimple_assign_rhs1_ptr): Likewise.
9654         (gimple_assign_rhs2_ptr): Likewise.
9655         (gimple_assign_rhs3_ptr): Likewise.
9656         (gimple_call_lhs_ptr): Likewise.
9657         (gimple_call_fn_ptr): Likewise.
9658         (gimple_call_chain_ptr): Likewise.
9659                 (gimple_call_arg_ptr): Likewise.
9660                 (gimple_cond_lhs_ptr): Likewise.
9661         (gimple_cond_rhs_ptr): Likewise.
9662         (gimple_switch_index_ptr): Likewise.
9663         (gimple_return_retval_ptr): Likewise.
9665 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9667         * gimple.h (gimple_asm_input_op_ptr): Remove.
9668         (gimple_asm_output_op_ptr): Likewise.
9670 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9672         * gimple.h (gimple_location_ptr): Remove.
9673         * tree-vrp.c (check_all_array_refs): Adjust.
9675 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9677         * tree-ssa-operands.c (build_uses): store tree * instead of
9678         tree.
9679         (finalize_ssa_uses): Adjust.
9680         (append_use): Likewise.
9681         (verify_ssa_operands): Likewise.
9683 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9685         * real.h (build_real_truncate): Declare.
9686         * tree.c (build_real_truncate): New function.
9687         (strip_float_extensions): Use it.
9688         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
9689         (fold_builtin_hypot, fold_builtin_pow): Likewise.
9690         * match.pd: Likewise.
9692 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
9693            Jiong Wang  <jiong.wang@arm.com>
9695         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
9697 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9699         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
9700         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
9701         (aarch64_print_operand, aarch64_float_const_representable_p)
9702         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
9703         instead of REAL_VALUE_FROM_CONST_DOUBLE.
9704         * config/arc/arc.c (arc_print_operand): Likewise.
9705         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
9706         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
9707         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
9708         Likewise.
9709         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
9710         (consttable_16): Likewise.
9711         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
9712         * config/avr/avr.c (avr_print_operand): Likewise.
9713         * config/bfin/bfin.md: Likewise (in a define_split).
9714         * config/c6x/c6x.md: Likewise (in a define_split).
9715         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
9716         (cr16_print_operand): Likewise.
9717         * config/cris/cris.c (cris_print_operand): Likewise.
9718         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
9719         * config/fr30/fr30.c (fr30_print_operand): Likewise.
9720         (fr30_const_double_is_zero): Likewise.
9721         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
9722         * config/frv/frv.md: Likewise (in a define_split).
9723         * config/frv/predicates.md (int_2word_operand): Likewise.
9724         * config/h8300/h8300.c (h8300_print_operand): Likewise.
9725         * config/i386/i386.c (standard_80387_constant_p): Likewise.
9726         (ix86_print_operand, ix86_split_to_parts): Likewise.
9727         * config/i386/i386.md: Likewise (in a define_split).
9728         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
9729         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
9730         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
9731         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
9732         (print_operand): Likewise.
9733         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
9734         * config/mep/mep.md: Likewise (in define_split).
9735         * config/microblaze/microblaze.c (microblaze_const_double_ok)
9736         (print_operand): Likewise.
9737         * config/mips/mips.md (consttable_float): Likewise.
9738         * config/mmix/mmix.c (mmix_intval): Likewise.
9739         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
9740         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
9741         * config/pa/pa.c (pa_singlemove_string): Likewise.
9742         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
9743         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
9744         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
9745         (output_toc): Likewise.
9746         * config/rs6000/rs6000.md: Likewise (in define_splits).
9747         * config/rx/rx.c (rx_print_operand): Likewise.
9748         * config/s390/s390.c (s390_output_pool_entry): Likewise.
9749         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9750         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
9751         (and also in define_splits).
9752         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
9753         (fp_high_losum_p): Likewise.
9754         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
9755         (*movsf_high): Likewise.
9756         * config/spu/spu.c (const_double_to_hwint): Likewise.
9757         * config/v850/v850.c (const_double_split): Likewise.
9758         * config/vax/vax.c (vax_float_literal): Likewise.
9759         * config/visium/visium.c (visium_expand_copysign): Likewise.
9760         * config/visium/visium.md: Likewise (in define_split).
9761         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9762         * config/xtensa/xtensa.c (print_operand): Likewise.
9763         (xtensa_output_literal): Likewise.
9764         * cprop.c (implicit_set_cond_p): Likewise.
9765         * dwarf2out.c (insert_float): Likewise.
9766         * expmed.c (expand_mult, make_tree): Likewise.
9767         * expr.c (compress_float_constant): Likewise.
9768         * rtlanal.c (split_double): Likewise.
9769         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9770         (simplify_const_unary_operation, simplify_binary_operation_1)
9771         (simplify_const_binary_operation): Likewise.
9772         (simplify_const_relational_operation): Likewise.
9773         * varasm.c (output_constant_pool_2): Likewise.
9775 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9777         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
9778         instead of CONST_DOUBLE_FROM_REAL_VALUE.
9779         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
9780         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
9781         instead of CONST_DOUBLE_FROM_REAL_VALUE.
9782         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
9783         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
9784         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
9785         (ix86_emit_swsqrtsf): Likewise.
9786         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
9787         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
9788         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
9789         * config/pa/pa.c (pa_expand_builtin): Likewise.
9790         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
9791         (rs6000_scale_v2df): Likewise.
9792         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
9793         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
9794         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
9795         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
9796         (vec_ctul): Likewise.
9797         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
9798         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
9799         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
9800         * cse.c (fold_rtx): Likewise.
9801         * emit-rtl.c (immed_double_const): Likewise (in comments).
9802         (init_emit_once): Likewise.
9803         * expr.c (compress_float_constant, expand_expr_real_1)
9804         (const_vector_from_tree): Likewise.
9805         * optabs.c (expand_float, expand_fix): Likewise.
9806         * reg-stack.c (reg_to_stack): Likewise.
9807         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9808         (simplify_const_unary_operation, simplify_binary_operation_1)
9809         (simplify_const_binary_operation, simplify_relational_operation)
9810         (simplify_immed_subreg): Likewise.
9812 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9814         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
9815         * doc/tm.texi: Regenerate.
9816         * real.h (REAL_ARITHMETIC): Delete.
9817         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
9818         (ix86_expand_round_sse4): Use real_arithmetic instead of
9819         REAL_ARITHMETIC.
9820         * config/i386/sse.md (round<mode>2): Likewise.
9821         * rtl.h (rtx_to_tree_code): Likewise (in comment).
9822         * explow.c (rtx_to_tree_code): Likewise (in comment).
9823         * match.pd: Likewise.
9824         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9825         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9826         (expand_pow_as_sqrts): Likewise.
9827         * tree-pretty-print.c (dump_generic_node): Remove code that
9828         was conditional on REAL_ARITHMETIC being undefined.
9830 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9832         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
9833         * doc/tm.texi: Regenerate.
9834         * real.h (real_less): Declare.
9835         (REAL_VALUES_LESS): Delete.
9836         * real.c (real_less): New function.
9837         (real_compare): Use it.
9838         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
9839         of REAL_VALUES_LESS.
9840         * config/microblaze/microblaze.c (microblaze_const_double_ok):
9841         Likewise.
9842         * fold-const.c (fold_convert_const_int_from_real): Likewise.
9843         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9844         (simplify_const_relational_operation): Likewise.
9845         * tree-call-cdce.c (check_pow): Likewise.
9846         (gen_conditions_for_pow_cst_base): Likewise.
9848 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9850         * real.h (REAL_VALUES_IDENTICAL): Delete.
9851         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
9852         instead of REAL_VALUES_IDENTICAL.
9853         * fold-const.c (operand_equal_p): Likewise.
9854         * ipa-icf.c (sem_variable::equals): Likewise.
9855         * tree-complex.c (some_nonzerop): Likewise.
9856         (expand_complex_multiplication): Likewise.
9857         * tree.c (simple_cst_equal): Likewise.
9858         * varasm.c (compare_constant): Likewise.
9860 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9862         * real.h (real_equal): Declare.
9863         (REAL_VALUES_EQUAL): Delete.
9864         * real.c (real_equal): New function.
9865         (real_compare): Use it.
9866         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
9867         * doc/tm.texi: Regenerate.
9868         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
9869         real_equal instead of REAL_VALUES_EQUAL.
9870         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
9871         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
9872         (fp_const_from_val): Likewise.
9873         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
9874         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
9875         (floating_exact_log2): Likewise.
9876         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9877         * config/vax/vax.c (vax_float_literal): Likewise.
9878         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9879         * cprop.c (implicit_set_cond_p): Likewise.
9880         * expmed.c (expand_mult): Likewise.
9881         * fold-const.c (const_binop): Likewise.
9882         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9883         (simplify_const_binary_operation): Likewise.
9884         (simplify_const_relational_operation): Likewise.
9885         * tree-call-cdce.c (check_pow): Likewise.
9886         (gen_conditions_for_pow_cst_base): Likewise.
9887         * tree-inline.c (estimate_num_insns): Likewise.
9888         * tree-ssa-dom.c (record_equality): Likewise.
9889         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9890         (gimple_expand_builtin_pow): Likewise.
9891         (pass_optimize_widening_mul::execute): Likewise.
9892         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
9893         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
9894         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
9896 2015-10-05  Richard Biener  <rguenther@suse.de>
9898         PR ipa/67783
9899         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
9900         consider loop header PHI defs as IVs.
9902 2015-10-05  Richard Biener  <rguenther@suse.de>
9904         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
9905         call handling ...
9906         (create_expression_by_pieces): ... here and build GIMPLE
9907         calls directly.  Use gimple_build API and avoid force_gimple_operand.
9908         (insert_into_preds_of_block): Simplify.
9909         (do_regular_insertion): Add comment.
9911 2015-10-04  Jason Merrill  <jason@redhat.com>
9913         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
9915 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
9917         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
9918         check for general register.
9919         (ix86_emit_save_regs): Ditto.
9920         (ix86_emit_save_regs_using_mov): Ditto.
9921         (ix86_emit_restore_regs_using_pop): Ditto.
9922         (ix86_emit_restore_regs_using_mov): Ditto.
9924 2015-10-03  Marek Polacek  <polacek@redhat.com>
9926         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
9927         (insn-dfatab.o): Likewise.
9929 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
9931         * config.gcc (xtensa*-*-uclinux*): New configuration.
9932         * config/xtensa/uclinux.h: New file.
9933         * config/xtensa/uclinux.opt: New file.
9935 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
9937         * doc/cpp.texi (Standard Predefined Macros): Document value of
9938         __cplusplus for C++14.
9940 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
9942         * gcc.c (process_command): Use spec_machine rather than
9943         spec_host_machine to build tooldir_prefix2.
9945 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
9946             Bernd Schmidt  <bernds@codesourcery.com>
9948         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
9949         (Token, Stmt): Remove structs.
9950         (decls, vars, fns): Remove variables.
9951         (alloc_comment, append_stmt, is_keyword): Remove macros.
9952         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
9953         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
9954         (parse_init, parse_file): Remove functions.
9955         (read_file): Accept a pointer to a length and store into it.
9956         (process): Don't try to parse the input file, just write it out as
9957         a string, but looking for maps.  Also write out the length.
9958         (main): Don't use "-S" to compile PTX code.
9960 2015-10-02  Jeff Law  <law@redhat.com>
9962         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
9963         fixups.
9965 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
9967         PR target/67822
9968         * config/nvptx/mkoffload.c (main): Scan the argument vector for
9969         -fopenmp, and skip generating an offloading image if specified.
9971 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
9973         * system.h (ROUND_UP): New macro definition.
9974         (ROUND_DOWN): Ditto.
9975         * ggc-page.c (ROUND_UP): Remove local macro definition.
9976         (PAGE_ALIGN): Implement using ROUND_UP macro.
9978         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
9979         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
9980         to align values.
9981         (ix86_compute_frame_layout): Ditto.
9982         (ix86_expand_prologue): Ditto.
9983         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
9984         to round down values.
9985         (expand_set_or_movmem_via_rep): Ditto.
9987 2015-10-02  Marek Polacek  <polacek@redhat.com>
9989         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
9991 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
9993         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
9994         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
9995         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
9996         (free_gimple_bb): Renamed free_gimple_poly_bb.
9997         (try_generate_gimple_bb): Hoist loop invariant code.
9998         (analyze_drs_in_stmts): Same.
9999         (build_scop_drs): Call renamed functions.
10000         (new_pbb_from_pbb): Same.
10001         (scop_ivs_can_be_represented): Delete as functionality now moved to
10002         graphite-scop-detection.c
10003         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
10005 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
10007         * graphite-scop-detection.c (stmt_has_side_effects): New function
10008           outlined from stmt_simple_for_scop_p.
10009         (graphite_can_represent_stmt): Same.
10010         (stmt_simple_for_scop_p): Moved code out of this function for better
10011         readability.
10013 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
10015         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
10016         F_AVX512IFMA.
10017         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
10019 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10021         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
10023 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
10025         PR rtl-optimization/67756
10026         * lra-constraints.c (match_reload): Add a new parameter.  Use it
10027         for creating a pseudo with the same value.
10028         (curr_insn_transform): Pass a new argument to match_reload.
10030 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
10032         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
10033         (expand_vec_perm_even_odd_1): Handle V64QImode.
10034         (ix86_expand_vec_perm_const_1): Try expansion with
10035         expand_vec_perm_even_odd_trunc as well.
10036         * config/i386/sse.md (VI124_AVX512F): Rename to ...
10037         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
10038         to V54QI.
10039         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
10040         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
10041         to V32HI and V16SI.
10042         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
10043         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
10044         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
10045         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
10046         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
10047         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
10049 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
10051         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
10052         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
10054 2015-10-02  Jason Merrill  <jason@redhat.com>
10056         PR c/59218
10057         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
10058         (diagnose_tm_1_op): Also diagnose volatile accesses in
10059         transaction_safe function.
10061 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
10063         * system.h (malloc.h): Don't include obsolete header.
10065 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10067         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
10068         (TLS_SECTION_ASM_FLAG): Delete.
10070 2015-10-02  Marek Polacek  <polacek@redhat.com>
10072         PR c/64249
10073         * doc/invoke.texi: Document -Wduplicated-cond.
10074         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
10075         (insn-dfatab.o): Likewise.
10076         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
10077         warning.
10079 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
10081         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
10082         sequences.
10084 2015-10-02  Renlin Li  <renlin.li@arm.com>
10086         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
10088 2015-10-02  Renlin Li  <renlin.li@arm.com>
10090         PR target/66776
10091         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
10093 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10095         PR rtl-optimization/67786
10096         PR rtl-optimization/67787
10097         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
10098         it modifies a reg used in the condition calculation.
10100 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
10102         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
10103         alternatives for reads from memory and moves from general-purpose
10104         registers.
10105         (*aarch64_combinez_be<mode>): Likewise.
10107 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
10109         PR target/51726
10110         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
10111         selectany within this function without need to keep attribute.
10112         (i386_pe_encode_section_info): Remove selectany-code.
10114 2015-10-02  Richard Biener  <rguenther@suse.de>
10116         * tree-ssa-sccvn.c (has_VN_INFO): New function.
10117         (free_scc_vn): Use it.
10118         (visit_use): Remove dead code and refactor to use gassign
10119         and use less indentation.
10121 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10123         PR target/67788
10124         PR target/67789
10125         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
10126         (rs6000_cannot_copy_insn_p): New function.
10127         * config/rs6000/rs6000.md (cannot_copy): New attribute.
10128         (load_toc_v4_PIC_1_normal): Set cannot_copy.
10129         (load_toc_v4_PIC_1_476): Ditto.
10131 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
10133         * graphite-scop-detection.c (struct sese_l): New conversion constructor
10134         so that this type can be pushed into a vec.
10135         (class scop_builder): use sese_l to collect scops.
10136         (get_scops): New getter function.
10137         (remove_intersecting_scops): Use sese_l instead of scops_p.
10138         (intersects): Same.
10139         (add_scop): Same.
10140         (subsumes): Same.
10141         (remove_subscops): Same.
10142         (build_scops): Add scops to vec<scops_p> once all the scops have been
10143         detected.
10145 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
10147         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
10148         Renamed type from gimple_bb_p to gimple_poly_bb_p.
10149         (translate_isl_ast_node_user): Same.
10150         * graphite-poly.c (new_poly_bb): Same.
10151         * graphite-poly.h (gbb_from_bb): Same.
10152         * sese.h: Same.
10153         * graphite-sese-to-poly.c (new_gimple_bb):
10154         gimple_bb_p -> gimple_poly_bb_p
10155         (build_scop_scattering): Same.
10156         (find_params_in_bb): Same.
10157         (add_conditions_to_domain): Same.
10158         (sese_dom_walker::before_dom_children): Same.
10159         (analyze_drs_in_stmts): Same.
10160         (new_pbb_from_pbb): Same.
10161         (free_data_refs_aux): New pointer to type base_alias_pair.
10162         * graphite-sese-to-poly.h: Same.
10163         * sese.c (if_region_set_false_region): Fixed Indentation.
10164         (move_sese_in_condition): Same.
10166 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
10167             Aditya Kumar  <aditya.k7@samsung.com>
10169         PR tree-optimization/66980
10170         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
10171         when data reference analysis has failed.
10173 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
10174             Aditya Kumar  <aditya.k7@samsung.com>
10176         PR tree-optimization/67754
10177         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
10178         scev analysis on the same loop nest as analyze_drs_in_stmts.
10179         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
10180         renamed...
10181         (try_generate_gimple_bb): Call outermost_loop_in_sese.
10182         (analyze_drs_in_stmts): Same.
10183         * sese.c (outermost_loop_in_sese): ...here.
10185 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
10186             Aditya Kumar  <aditya.k7@samsung.com>
10188         PR tree-optimization/67754
10189         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
10190         recursion on the inner loops.
10192 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10194         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
10195         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
10196         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
10197         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
10198         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
10200 2015-10-01  Marek Polacek  <polacek@redhat.com>
10202         PR c/65345
10203         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
10204         create_tmp_var_raw rather than create_tmp_var.
10206 2015-10-01  Marek Polacek  <polacek@redhat.com>
10208         PR tree-optimization/67769
10209         * tree-ssa-phiopt.c (conditional_replacement): Call
10210         reset_flow_sensitive_info_in_bb.
10211         (minmax_replacement): Likewise.
10212         (abs_replacement): Likewise.
10214 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
10216         * builtins.c: Don't include gomp-constants.h.
10217         (fold_builtin_1): Don't fold acc_on_device here.
10218         * gimple-fold.c: Include gomp-constants.h.
10219         (gimple_fold_builtin_acc_on_device): New.
10220         (gimple_fold_builtin): Call it.
10222 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10224         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
10225         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
10227 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
10229         * config/arm/aarch-common-protos.h
10230         (aarch_accumulator_forwarding): New.
10231         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10232         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
10233         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10234         * config/arm/cortex-a53.md: Rewrite.
10236 2015-10-01  Richard Biener  <rguenther@suse.de>
10238         * gimple-match.h (mprts_hook): Declare.
10239         * gimple-match.head.c (mprts_hook): Define.
10240         (maybe_push_res_to_seq): Use new hook.
10241         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10242         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
10243         (vn_ssa_aux::has_constants): Remove.
10244         * tree-ssa-sccvn.c: Include gimple-match.h.
10245         (VN_INFO_GET): Assert we don't re-use SSA names.
10246         (vn_get_expr_for): Remove.
10247         (expr_has_constants): Likewise.
10248         (stmt_has_constants): Likewise.
10249         (simplify_binary_expression): Likewise.
10250         (simplify_unary_expression): Likewise.
10251         (vn_lookup_simplify_result): New hook.
10252         (visit_copy): Adjust.
10253         (visit_reference_op_call): Likewise.
10254         (visit_phi): Likewise.
10255         (visit_use): Likewise.
10256         (process_scc): Likewise.
10257         (init_scc_vn): Likewise.
10258         (visit_reference_op_load): Likewise.  Use match-and-simplify and
10259         a gimple seq for inserted expressions.
10260         (try_to_simplify): Remove GENERIC stmt combining code.
10261         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
10262         * tree-ssa-pre.c (eliminate_insert): Adjust.
10263         (eliminate_dom_walker::before_dom_children): Likewise.
10265 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10267         * doc/invoke.texi (Optimization Options): Add
10268         -freorder-blocks-algorithm=.
10269         (Optimize Options) <-O>: Add -freorder-blocks.
10270         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
10271         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
10272         <-freorder-blocks>: Also enabled at levels -O and -Os.
10273         <-freorder-blocks-algorithm=>: Document new option.
10275 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10277         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
10278         with flag_reorder_blocks_algorithm.
10279         * common.opt (freorder-blocks-algorithm=): New flag.
10280         (reorder_blocks_algorithm): New enum.
10281         * flag-types.h (reorder_blocks_algorithm): New enum.
10282         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
10283         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
10285 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10287         * bb-reorder.c: Add intro comment.
10288         (reorder_basic_blocks_software_trace_cache): Print a header to
10289         the dump file.
10290         (edge_order): New function.
10291         (reorder_basic_blocks_simple): New function.
10292         (reorder_basic_blocks): Choose between the STC and the simple
10293         algorithms (always choose the former).
10295 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10297         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
10298         function, factored out from ...
10299         (reorder_basic_blocks): ... here.
10301 2015-10-01  Tom de Vries  <tom@codesourcery.com>
10303         * tree-cfg.c (dump_function_to_file): Dump function attributes using
10304         __attribute__(()) string.  Move dumping of function attributes to before
10305         function name.
10307 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
10309         PR target/66870
10310         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
10311         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
10312         based on gold linker version.
10313         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
10314         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
10315         * configure, config.in: Regenerate.
10317 2015-10-01  Alan Modra  <amodra@gmail.com>
10319         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
10320         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
10321         (rs6000_output_mi_thunk): Likewise.
10323 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
10325         * config/nvptx/mkoffload.c (process): Change offload data format.
10327 2015-09-30  Jeff Law  <law@redhat.com>
10329         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
10330         with constant conditions.
10331         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
10332         (remove_ctrl_stmt_and_useless_edges): No longer static.
10333         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
10334         (remove_ctrl_stmt_and_useless_edges): Likewise.
10336 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
10337             Cesar Philippidis  <cesar@codesourcery.com>
10339         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
10340         (TARGET_GOACC_VALIDATE_DIMS): Override.
10341         * target.def (TARGET_GOACC): New target hook prefix.
10342         (validate_dims): New hook.
10343         * targhooks.h (default_goacc_validate_dims): New.
10344         * omp-low.c (oacc_validate_dims): New.
10345         (execute_oacc_device_lower): New.
10346         (default_goacc_validate_dims): New.
10347         (pass_data_oacc_device_lower): New.
10348         (pass_oacc_device_lower): New pass.
10349         (make_pass_oacc_device_lower): New.
10350         * tree-pass.h (make_pass_oacc_device_lower): Declare.
10351         * passes.def (pass_oacc_device_lower): Add it.
10352         * doc/tm.texi: Rebuilt.
10353         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
10354         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
10356 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10358         PR rtl-optimization/67037
10359         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
10361 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
10363         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
10364         * passes.c: Include tree-ssanames.h.
10365         (execute_function_todo): Flush the pending free SSA_NAMEs after
10366         eliminating unreachable basic blocks.
10367         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
10368         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
10369         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
10370         (flush_ssanames_freelist): New function.
10371         (release_ssaname_fn): Put released names on the queue.
10372         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
10373         * tree-ssanames.h (flush_ssanames_freelist): Declare.
10375 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
10377         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
10378         (generate_target_descr_file, generate_target_offloadend_file)
10379         (generate_host_descr_file, prepare_target_image): Pass it on.
10380         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
10381         (compile_native, main): Pass it on.
10382         * lto-wrapper.c (compile_offload_image): Likewise.
10384 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
10385             Ilya Verbin  <ilya.verbin@intel.com>
10386             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10388         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
10389         (prepare_target_image, main): Refactor argv building to use
10390         obstacks.
10392 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10394         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
10395         * config/spu/spu.c (spu_expand_atomic_op): New function.
10396         * config/spu/spu.md (AINT): New mode iterator.
10397         (ATOMIC): New code iterator.
10398         (atomic_name, atomic_pred): New code predicates.
10399         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
10400         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
10401         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
10402         "atomic_<atomic_name>_fetch<mode>"): Likewise.
10404 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
10406         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
10407         debug insns.
10408         (scalar_chain::convert_reg): Likewise.
10410 2015-09-30  Richard Biener  <rguenther@suse.de>
10412         * builtins.c: Add comment that no new simplifications should
10413         be added here.
10415 2015-09-30  Marek Polacek  <polacek@redhat.com>
10417         PR tree-optimization/67690
10418         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
10419         reset_flow_sensitive_info_in_bb.
10420         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
10421         * tree-ssanames.c: Include "gimple-iterator.h".
10422         (reset_flow_sensitive_info_in_bb): New function.
10423         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
10425 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
10427         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
10428         variable, replacing it with...
10429         (offload_abi): ... this new variable.  Adjust all users.
10430         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
10432 2015-09-30  Matthias Klose  <doko@ubuntu.com>
10434         * configure.ac: Remove extraneous ;;.
10435         * configure: Regenerate.
10437 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
10439         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
10440         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
10441         predicate, disallow register for operand 2.
10443 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
10445         * graphite-dependences.c (scop_get_dependences): Moved in down
10446         in order to be visible to its caller.
10447         * graphite-poly.h: Removed compute_deps, and extend_schedule.
10449 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
10450             Aditya Kumar  <aditya.k7@samsung.com>
10452         PR tree-optimization/67754
10453         * graphite-optimize-isl.c (optimize_isl): Call
10454         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
10456 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10458         * builtins.c (expand_builtin_acc_on_device): Delete.
10459         (expand_builtin): Don't call it.
10460         (fold_builtin_1): Fold acc_on_device.
10462 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
10464         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
10465         (ix86_nsaved_sseregs): Likewise.
10467 2015-09-29  Jeff Law  <law@redhat.com>
10469         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
10470         computation of unused value.
10472         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
10473         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
10474         inline macro expansion.
10476         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
10478         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
10479         (gen_shl_sext): Likewise.
10480         * config/sh/sh.md (divsi3): Likewise.
10481         (imm->ext_dest_operand splitter): Likewise.
10483 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
10484             Aditya Kumar  <aditya.k7@samsung.com>
10486         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
10487         (nb_data_writes_in_bb): Remove.
10488         (split_pbb): Remove.
10489         (split_reduction_stmt): Remove.
10490         (is_reduction_operation_p): Remove.
10491         (phi_contains_arg): Remove.
10492         (follow_ssa_with_commutative_ops): Remove.
10493         (detect_commutative_reduction_arg): Remove.
10494         (detect_commutative_reduction_assign): Remove.
10495         (follow_inital_value_to_phi): Remove.
10496         (edge_initial_value_for_loop_phi): Remove.
10497         (initial_value_for_loop_phi): Remove.
10498         (used_outside_reduction): Remove.
10499         (detect_commutative_reduction): Remove.
10500         (translate_scalar_reduction_to_array_for_stmt): Remove.
10501         (remove_phi): Remove.
10502         (dr_indices_valid_in_loop): Remove.
10503         (close_phi_written_to_memory): Remove.
10504         (translate_scalar_reduction_to_array): Remove.
10505         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
10506         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
10507         (rewrite_commutative_reductions_out_of_ssa): Remove.
10508         (build_poly_scop): Remove call to
10509         rewrite_commutative_reductions_out_of_ssa.
10511 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
10513         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
10514         Add new insn types for vector load and store pairs.
10515         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
10516         types "neon_ldp{,_q}".
10517         * config/arm/cortex-a57.md (neon_load_c): Add insn types
10518         "neon_ldp{,_q}".
10519         (neon_store_complex): Add insn types "neon_stp{,_q}".
10520         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
10521         "neon_{ldp,stp}_q".
10523 2015-09-29  Jeff Law  <law@redhat.com>
10525         * config/rx/constraints.md (Int08): Fix undefined left shift
10526         behaviour.
10527         (Sint08, Sint16, Sint24): Likewise.
10528         * config/rx/rx.c (rx_get_stack_layout): Likewise.
10530         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
10531         behaviour.
10533         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
10534         left shift behaviour.
10535         * config/msp430/constraints.md ('L' constraint): Similarly.
10536         ('Ys' constraint): Similarly.
10538 2015-09-29  Richard Biener  <rguenther@suse.de>
10540         PR tree-optimization/67170
10541         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
10542         the translate function pointer parameter to get the
10543         bool whether to disambiguate only by reference.
10544         (walk_non_aliased_vuses): Likewise.
10545         * tree-ssa-alias.c (maybe_skip_until): Adjust.
10546         (get_continuation_for_phi_1): Likewise.
10547         (get_continuation_for_phi): Likewise.
10548         (walk_non_aliased_vuses): Likewise.
10549         * tree-ssa-sccvn.c (const_parms): New bitmap.
10550         (vn_reference_lookup_3): Adjust for interface change.
10551         Disambiguate parameters pointing to readonly memory.
10552         (free_scc_vn): Free const_parms.
10553         (run_scc_vn): Initialize const_parms from a fn spec attribute.
10555 2015-09-29  Richard Biener  <rguenther@suse.de>
10557         PR tree-optimization/67741
10558         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
10559         builtin calls with correct signature.
10561 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
10563         PR target/65105
10564         * config/i386/i386.c: Include dbgcnt.h.
10565         (has_non_address_hard_reg): New.
10566         (convertible_comparison_p): New.
10567         (scalar_to_vector_candidate_p): New.
10568         (remove_non_convertible_regs): New.
10569         (scalar_chain): New.
10570         (scalar_chain::scalar_chain): New.
10571         (scalar_chain::~scalar_chain): New.
10572         (scalar_chain::add_to_queue): New.
10573         (scalar_chain::mark_dual_mode_def): New.
10574         (scalar_chain::analyze_register_chain): New.
10575         (scalar_chain::add_insn): New.
10576         (scalar_chain::build): New.
10577         (scalar_chain::compute_convert_gain): New.
10578         (scalar_chain::replace_with_subreg): New.
10579         (scalar_chain::replace_with_subreg_in_insn): New.
10580         (scalar_chain::emit_conversion_insns): New.
10581         (scalar_chain::make_vector_copies): New.
10582         (scalar_chain::convert_reg): New.
10583         (scalar_chain::convert_op): New.
10584         (scalar_chain::convert_insn): New.
10585         (scalar_chain::convert): New.
10586         (convert_scalars_to_vector): New.
10587         (pass_data_stv): New.
10588         (pass_stv): New.
10589         (make_pass_stv): New.
10590         (ix86_option_override): Created and register stv pass.
10591         (flag_opts): Add -mstv.
10592         (ix86_option_override_internal): Likewise.
10593         * config/i386/i386.md (SWIM1248x): New.
10594         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
10595         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
10596         (*anddi3_doubleword): New.
10597         (*zext<mode>_doubleword): New.
10598         (*zextsi_doubleword): New.
10599         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
10600         (*<code>di3_doubleword): New.
10601         * config/i386/i386.opt (mstv): New.
10602         * dbgcnt.def (stv_conversion): New.
10604 2015-09-29  Tom de Vries  <tom@codesourcery.com>
10606         * tree-cfg.c (dump_function_to_file): Dump function attributes.
10608 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
10610         PR target/67716
10611         * config/sh/sh.c (sh_override_options_after_change): New.
10612         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
10613         (sh_option_override): Move align_loops, align_jumps and
10614         align_functions handling into sh_override_options_after_change.
10616 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
10618         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
10619         (nvptx_record_offload_symbol): Record function execution geometry.
10620         * config/nvptx/mkoffload.c (process): Include launch geometry in
10621         function data.
10622         * omp-low.c (oacc_launch_pack): New.
10623         (replace_oacc_fn_attrib): New.
10624         (set_oacc_fn_attrib): New.
10625         (get_oacc_fn_attrib): New.
10626         (expand_omp_target): Create keyed varargs for GOACC_parallel call
10627         generation.
10628         * omp-low.h (get_oacc_fn_attrib): Declare.
10629         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
10630         (DEF_FUNCTION_TYPE_VAR_11): Delete.
10631         * tree.h (OMP_CLAUSE_EXPR): New.
10632         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
10634 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
10635             Sebastian Pop  <s.pop@samsung.com>
10637         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
10639 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
10640             Sebastian Pop  <s.pop@samsung.com>
10642         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
10643         * graphite-scop-detection.c (struct sese_l): New type.
10644         (get_entry_bb): API for getting entry bb of SESE.
10645         (get_exit_bb): API for getting exit bb of SESE.
10646         (class debug_printer): New type.  Simple printer in debug mode.
10647         (trivially_empty_bb_p): New.  Return true when BB is empty or
10648         contains only debug instructions.
10649         (graphite_can_represent_expr): Call scalar_evoution_in_region
10650         instead of analyze_scalar_evolution.  Pass in scop instead of only
10651         the scop entry.
10652         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
10653         scop entry.
10654         (stmt_simple_for_scop_p): Same.
10655         (harmful_stmt_in_bb): Same.
10656         (graphite_can_represent_loop): Deleted.
10657         (struct scopdet_info): Deleted.
10658         (scopdet_basic_block_info): Deleted.
10659         (build_scops_1): Deleted.
10660         (bb_in_sd_region): Deleted.
10661         (find_single_entry_edge): Deleted.
10662         (find_single_exit_edge): Deleted.
10663         (create_single_entry_edge): Deleted.
10664         (sd_region_without_exit): Deleted.
10665         (create_single_exit_edge): Deleted.
10666         (unmark_exit_edges): Deleted.
10667         (mark_exit_edges): Deleted.
10668         (create_sese_edges): Deleted.
10669         (build_graphite_scops): Deleted.
10670         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
10671         (build_scops): Use the new scop_builder to build scops.
10672         (dot_all_scops_1): Use the new pretty printer.  Print loop father
10673         as well.
10674         (loop_body_is_valid_scop): New.  Return true if loop body is a
10675         valid scop.
10676         (class scop_builder): New.  Builds SCoPs for polyhedral
10677         optimizations.
10678         (scop_builder): New constructor.
10679         (static sese_l invalid_sese): sese_l with invalid edges.
10680         (get_sese): Get an sese (from a loop) if possible, invalid_sese
10681         otherwise.
10682         (get_nearest_dom_with_single_entry): Get nearest dominator of a
10683         basic_block with single entry.  Return NULL if we get to the
10684         beginning of a function.
10685         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
10686         a basic_block with single exit.  Return NULL if we get to the
10687         beginning of a function.
10688         (print_sese): Pretty-print SESE.
10689         (merge_sese): Merge two SESEs if possible and return the new SESE.
10690         (build_scop_depth): Start building the SCoP within a loop nest.
10691         (build_scop_breadth): Start building the SCoP at a single loop
10692         depth.  Merge adjacent SESEs if valid.
10693         (can_represent_loop_1): Returns true if Graphite can represent
10694         loop inside SCoP.  Helper for can_represent_loop.
10695         (can_represent_loop): Returns true if Graphite can represent LOOP
10696         and all its nested loops in SCoP.
10697         (loop_is_valid_scop): Returns true if LOOP and all its nests
10698         constitute a valid SCoP.
10699         (region_has_one_loop): Returns true of a region has only one loop.
10700         (add_scop): Add SCoP to the list of valid scops.  Removes an
10701         already existing scop if it intersects with or subsumed by this one.
10702         (harmful_stmt_in_region): Returns true if SCoP has any statment
10703         which cannot be represented by Graphite.
10704         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
10705         (remove_subscops): Remove any SCoP from the list of already found
10706         SCoPs, if subsumed by S1.
10707         (intersects): Return true if region bounded by SCoPs S1 and S2
10708         intersect.
10709         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
10710         * graphite.c (print_graphite_scop_statistics):
10711         (print_graphite_statistics): Print SCoP info while debugging.
10712         (graphite_initialize): Early exit in case number of loops in a
10713         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
10714         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
10715         (graphite_finalize):
10716         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
10717         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
10718         (recompute_all_dominators): Recalculate POST_DOMINATORS.
10719         * tree-cfg.c (print_loops): Print the function name while printing
10720         loops.
10722 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
10723             Sebastian Pop  <s.pop@samsung.com>
10725         PR tree-optimization/67700
10726         * graphite-sese-to-poly.c (parameter_index_in_region): Call
10727         invariant_in_sese_p_rec.
10728         (extract_affine): Same.
10729         (rewrite_cross_bb_scalar_deps): Call update_ssa.
10730         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
10731         * sese.h (invariant_in_sese_p_rec): Declare.
10733 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
10735         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
10737 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
10739         Revert:
10740         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10741                     Jiong Wang  <jiong.wang@arm.com>
10743         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
10744         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
10745         (REG_CLASS_NAMES): Likewise.
10746         (REG_CLASS_CONTENTS): Likewise.
10747         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
10748         (aarch64_register_move_cost): Likewise.
10749         (aarch64_load_symref_appropriately): Invoke the new added pattern if
10750         possible.
10751         * config/aarch64/constraints.md (Uc0): New constraint.
10753 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
10755         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
10757 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
10759         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
10760         SECTION_EXCLUDE in XO mapping class.
10762 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
10764         PR target/54236
10765         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
10766         and handle ne and eq codes.
10767         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
10768         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
10769         CONST_INT_P.  Use reverse_condition.
10770         (sh_split_treg_set_expr): Likewise.
10772 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
10774         * config/arm/types.md (type): Add rotate_imm.
10775         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
10776         ROR immediate case.
10777         (*rorsi3_insn_uxtw): Likewise.
10778         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
10779         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
10780         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
10782 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10784         PR rtl-optimization/67481
10785         * ifcvt.c (contains_ccmode_rtx_p): New function.
10786         (insn_valid_noce_process_p): Use it.
10788 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10790         PR rtl-optimization/67456
10791         PR rtl-optimization/67464
10792         PR rtl-optimization/67465
10793         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
10794         move in the mode of x.  Handle combination of complex and simple
10795         block pairs as well as the case when one is empty.
10797 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10799         * doc/gimple.texi: Update references to gimple_statement_base.
10800         * gdbhooks.py: Likewise.
10801         * gimple.h: Likewise.
10803 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
10805         * config/sparc/driver-sparc.c: map LEON to leon3
10807 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
10809         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
10810           and make it inverse to change default
10811         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
10812           supervisor mode
10813         * doc/invoke.texi: Document change of default
10815 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
10817         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
10818         true on %f0 for a target without FPU.
10819         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
10820         without FPU.
10821         (untyped_return): Do not load %f0 for a target without FPU.
10823 2015-09-28  Andrew Pinski  <apinski@cavium.com>
10825         * config/aarch64/aarch64.md (prefetch):
10826         Change the predicate of operand 0 to register_operand.
10828 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
10830         * config/i386/predicates.md (register_sse4nonimm_operand): New
10831         predicate.
10832         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
10833         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
10834         Use register_sse4nonimm_operand as operand 0 predicate.
10835         (*vec_extractv8hi_sse2): Remove insn pattern.
10836         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
10837         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
10839 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
10840             Kaz Kojima  <kkojima@gcc.gnu.org>
10842         PR target/67391
10843         * config/sh/sh-protos.h (sh_lra_p): Declare.
10844         * config/sh/sh.c (sh_lra_p): Make non-static.
10845         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
10846         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
10847         Expand into addsi3_scr if operands[2] if needed.
10848         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
10849         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
10850         (addsi3_scr, *addsi3): New insn_and_split patterns.
10852 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
10854         PR rtl-optimization/64164
10855         PR tree-optimization/67312
10856         PR middle-end/67340
10857         PR middle-end/67490
10858         PR bootstrap/67597
10859         * cfgexpand.c (parm_in_stack_slot_p): Remove.
10860         (ssa_default_def_partition): Remove.
10861         (get_rtl_for_parm_ssa_default_def): Remove.
10862         (set_rtl): Check that RTL assignments match expectations.
10863         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
10864         default def location for params and results.  Record SSA names
10865         or types in REG and MEM attrs, respectively.
10866         (set_parm_rtl): New.
10867         (expand_one_ssa_partition): Drop logic that assigned MEMs with
10868         unassigned addresses.
10869         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
10870         deferred stack alloc vars.
10871         (expand_used_vars): Skip partitions holding parm default defs.
10872         Move adjust_one_expanded_partition_var loop...
10873         (pass_expand::execute): ... here.  Drop redundant assert.
10874         Adjust comments before the final loop over all ssa names.
10875         Require assigned rtl of parms and results to match exactly.
10876         Reset its attributes to match them, not any other variables in
10877         the same partition.
10878         (expand_debug_expr): Use entry value for PARM's default defs
10879         only iff they have zero nondebug uses.
10880         * cfgexpand.h (parm_in_stack_slot_p): Remove.
10881         (get_rtl_for_parm_ssa_default_def): Remove.
10882         (set_parm_rtl): Declare.
10883         * doc/invoke.texi: Improve wording.
10884         * explow.c (promote_decl_mode): Fix promote_function_mode for
10885         result decls not by reference.
10886         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
10887         bypass TYPE_MODE to get the actual vector mode.
10888         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
10889         2015-08-19's changes as follows.  Drop include of
10890         basic-block.h and df.h.
10891         (rtl_for_parm): Remove.
10892         (maybe_reset_rtl_for_parm): Remove.
10893         (parm_in_unassigned_mem_p): Remove.
10894         (use_register_for_decl): Add logic for RESULT_DECLs matching
10895         assign_parms' behavior.
10896         (split_complex_args): Revert.
10897         (assign_parms_augmented_arg_list): Revert.  Add comment
10898         referencing the logic above.
10899         (assign_parm_adjust_stack_rtl): Revert.
10900         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
10901         of SET_DECL_RTL.  Set up a REG if the parm demands so.
10902         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
10903         calls into a single set_parm_rtl.  Set up a temporary RTL
10904         temporarily for expand_assignment.
10905         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
10906         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
10907         (assign_bounds): Revert.
10908         (assign_parms): Revert.  Use set_parm_rtl.
10909         (allocate_struct_function): Relayout result and parms of
10910         non-abstruct functions.
10911         (expand_function_start): Revert.  Use set_parm_rtl.  If the
10912         result is not a hard reg, create a pseudo from the promoted
10913         mode of the default def.  Promote static chain mode.
10914         * tree-outof-ssa.c (remove_ssa_form): Drop unused
10915         partition_has_default_def.  Set up
10916         partitions_for_parm_default_defs.
10917         (finish_out_of_ssa): Remove partition_has_default_def.
10918         Release partitions_for_parm_default_defs.
10919         * tree-outof-ssa.h (struct ssaexpand): Remove
10920         partition_has_default_def.  Add
10921         partitions_for_parm_default_defs.
10922         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
10923         stor-layout.h.
10924         (build_ssa_conflict_graph): Fix conflict-detection of default
10925         defs of even unused default defs of params and results.
10926         (for_all_parms): New.
10927         (create_default_def): New.
10928         (register_default_def): New.
10929         (coalesce_with_default): New.
10930         (create_outofssa_var_map): Create default defs for all parms
10931         and results, and register their partitions.  Add GIMPLE_RETURN
10932         operands as coalesce candidates with results.  Add default
10933         defs of each parm or result as coalesce candidates with its
10934         other defs.  Mark each result def, and each default def of
10935         parms, as used_in_copy.
10936         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
10937         with the ssa names, even anonymous ones.  Drop
10938         parm_in_stack_slot_p calls.  Require same signedness and
10939         alignment.
10940         (coalesce_ssa_name): Add coalesce candidates for all defs of
10941         each parm and result, even unused ones.
10942         (parm_default_def_partition_arg): New type.
10943         (set_parm_default_def_partition): New.
10944         (get_parm_default_def_partitions): New.
10945         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
10946         * tree-ssa-live.c (partition_view_init): Regard unused defs of
10947         parms and results as used.
10948         (verify_live_on_entry): Don't error out just because they're
10949         not live.
10951 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
10953         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
10954         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
10955         (output_fde): Don't output length for debug_frame on AIX.
10956         (output_call_frame_info): Don't output length for debug_frame on AIX.
10957         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
10958         HAVE_XCOFF_DWARF_EXTRAS.
10959         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
10960         HAVE_XCOFF_DWARF_EXTRAS.
10961         (output_compilation_unit_header): Don't output length on AIX.
10962         (output_pubnames): Don't output length on AIX.
10963         (output_aranges): Delete argument. Compute length locally. Don't
10964         output length on AIX.
10965         (output_line_info): Don't output length on AIX.
10966         (dwarf2out_finish): Don't compute aranges_length.
10967         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
10968         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
10969         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
10970         symbol decoration for AIX.
10971         (rs6000_xcoff_debug_unwind_info): New.
10972         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
10973         for SECTION_DEBUG.
10974         (rs6000_xcoff_declare_function_name): Emit different
10975         .function pseudo-op when DWARF2_DEBUG. Don't call
10976         xcoffout_declare_function for DWARF2_DEBUG.
10977         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
10978         Redefine.
10979         * config/rs6000/aix71.h: New.
10980         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
10981         locations support.
10982         * configure: Regenerate.
10983         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
10984         DWARF support.
10986 2015-09-26  Jeff Law  <law@redhat.com>
10988         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
10989         behaviour.
10990         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
10991         behaviour.
10993         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
10994         behaviour
10996         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
10997         undefined behaviour.
10999         * config/cris/cris.md (asrandb): Fix left shift undefined
11000         behaviour.
11001         (asrandw): Likewise.
11003 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
11005         PR target/61578
11006         * lra-constarints.c (match_reload): Check presence of the input pseudo
11007         in the output operand.
11009 2015-09-25  Tobias Burnus  <burnus@net-b.de>
11011         * doc/invoke.texi (-fsanitize): Minor wording tweak.
11013 2015-09-25  Tobias Burnus  <burnus@net-b.de>
11015         * doc/invoke.texi (-fsanitize): Update URLs.
11017 2015-09-25  Teresa Johnson  <tejohnson@google.com>
11019         * opts.c (finish_options): Unset -freorder-blocks-and-partition
11020         if not using profile.
11022 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11024         PR pretty-print/67567
11025         * pretty-print.c (pp_string): Add gcc_checking_assert.
11026         * pretty-print.h (output_buffer_append_r): Likewise.
11028 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
11030         PR target/67675
11031         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
11032         addr2 individually.  Don't emit logical or insn if one is known to
11033         be aligned approriately.
11034         (sh_expand_cmpnstr): Likewise.
11036 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
11038         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
11039         __builtin_aarch64_fp[sc]r arguments into a register.
11041 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
11043         * config.gcc (x86_archs): Replace lakemount with lakemont.
11044         (with_cpu): Likewise.
11045         (with_arch): Likewise.
11046         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11047         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
11048         __tune_lakemount__ with __tune_lakemont__.
11049         * config/i386/i386.c (lakemount_cost): Renamed to ...
11050         (lakemont_cost): This.
11051         (m_LAKEMOUNT): Renamed to ...
11052         (m_LAKEMONT): This.
11053         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
11054         (processor_target_table): Replace "lakemount" with "lakemont".
11055         (processor_alias_table): Likewise.
11056         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
11057         PROCESSOR_LAKEMONT.
11058         (ix86_adjust_cost): Likewise.
11059         (ia32_multipass_dfa_lookahead): Likewise.
11060         * config/i386/i386.h (processor_type): Likewise.
11061         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
11062         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
11063         Lakemount with Lakemont.
11065 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
11067         * config.gcc (x86_archs): Replace iamcu with lakemount.
11068         (with_cpu): Likewise.
11069         (with_arch): Likewise.
11070         * doc/invoke.texi: Likewise.
11071         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11072         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
11073         __tune_iamcu__ with __tune_lakemount__.
11074         * config/i386/i386.c (iamcu_cost): Renamed to ...
11075         (lakemount_cost): This.
11076         (m_IAMCU): Renamed to ...
11077         (m_LAKEMOUNT): This.
11078         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
11079         (processor_target_table): Replace "iamcu" with "lakemount".
11080         (processor_alias_table): Likewise.
11081         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
11082         PROCESSOR_LAKEMOUNT.
11083         (ix86_adjust_cost): Likewise.
11084         (ia32_multipass_dfa_lookahead): Likewise.
11085         * config/i386/i386.h (processor_type): Likewise.
11086         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
11088 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
11090         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
11091         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
11092         Declare.
11093         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
11094         (pa_expand_compare_and_swap_loop): New.
11095         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
11096         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
11097         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
11098         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
11099         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
11100         Revise.
11102 2015-09-24  Michael Collison  <michael.collison@linaro.org>
11104         PR other/57195
11105         * read-md.c (read_name): Allow mode iterators inside angle
11106         brackets in rtl expressions.
11108 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
11110         PR target/61578
11111         * ira-color.c (update_allocno_cost): Add parameter.
11112         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
11113         parameter.
11115 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11117         PR driver/67640
11118         * opts-common.c (prune_options): Discard all -fdiagnostics-color
11119         but the last one, which is moved to the front to be processed
11120         first.
11121         * opts.c (enable_warning_as_error): Reject options that do not
11122         control warnings.
11124 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
11126         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
11128 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
11130         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
11131         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
11132         (aarch64_cannot_force_const_mem): Likewise.
11133         (aarch64_classify_address): Likewise.
11134         (aarch64_classify_symbolic_expression): Likewise.
11135         (aarch64_print_operand): Likewise.
11136         (aarch64_classify_symbol): Likewise.
11137         (aarch64_mov_operand_p): Likewise.
11138         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
11139         (aarch64_mov_operand): Likewise.
11141 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
11143         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
11144         for info->spe_gp_size.
11146 2015-09-24  Richard Biener  <rguenther@suse.de>
11148         PR lto/67699
11149         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
11150         abstract origins.
11152 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
11154         * tree-object-size.c (plus_stmt_object_size)
11155         (cond_expr_object_size): Change the formal parameters from gimple
11156         to gimple *.
11157         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
11158         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
11159         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
11161 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11163         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
11164         Check for ld -type pie on Solaris 11.x and 12.
11165         * configure: Regenerate.
11166         * config.in: Regenerate.
11168         * gcc.c (LD_PIE_SPEC): Allow redefinition.
11170         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
11171         (STARTFILE_SPEC): Use it.
11172         (ENDFILE_CRTEND_SPEC): Define.
11173         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
11174         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
11175         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
11176         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
11177         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
11178         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
11179         (ENDFILE_ARCH_SPEC): Define.
11180         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
11182 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11184         * configure.ac (gcc_cv_solaris_crts): New test.
11185         * configure. Regenerate.
11186         * config.in: Regenerate.
11187         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
11188         HAVE_SOLARIS_CRTS variant.
11190 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11192         * tree-inline.h (count_insns_seq): Delete prototype.
11193         (estimate_num_insns_seq): Define prototype.
11194         * tree-inline.c (count_insns_seq): Delete.
11195         (estimate_num_insns_seq): Remove static qualifier.
11196         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
11197         with estimate_num_insns_seq.
11199 2015-09-24  Richard Biener  <rguenther@suse.de>
11201         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
11202         members.
11203         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
11204         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
11205         offset.
11206         (ao_ref_init_from_vn_reference): Record clique and base in the
11207         built base.
11208         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
11210 2015-09-24  Richard Biener  <rguenther@suse.de>
11212         PR tree-optimization/48885
11213         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
11214         as not including any restrict tags from other pointers.
11216 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
11218         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
11219         character when appending to offload_targets.
11221         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
11222         offload targets by commas, not colons.
11223         * config.in: Regenerate.
11224         * configure: Likewise.
11225         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
11226         instead of setting up the default offload targets here...
11227         (process_command): ..., do it here.
11228         libgomp/
11229         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
11230         targets are separated by commas.
11231         * config.h.in: Regenerate.
11233 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
11234             Nathan Sidwell  <nathan@codesourcery.com>
11236         * omp-low.h (omp_reduction_init_op): Declare.
11237         * omp-low.c (omp_reduction_init_op): New, broken out of ...
11238         (omp_reduction_init): ... here.  Call it.
11239         * tree-parloops.c (initialize_reductions): Use
11240         omp_reduction_init_op.
11242 2015-09-23   Richard Biener  <rguenther@suse.de>
11244         PR middle-end/67662
11245         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
11246         undefined overflow unless they will cancel out.
11248 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
11250         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
11251         insn emit.
11253 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11255         PR c/49655
11256         * opts.h (write_langs): Declare.
11257         * opts-global.c (write_langs): Make it extern.
11259 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
11261         PR target/67391
11262         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
11263         overlapping regs when matching the pattern.
11265 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
11267         * config/aarch64/aarch64-simd.md
11268         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
11269         (aarch64_float_truncate_hi_v4sf_le): New.
11270         (aarch64_float_truncate_hi_v4sf_be): Likewise.
11272 2015-09-23  Richard Biener  <rguenther@suse.de>
11274         * tree-ssa-structalias.c (intra_create_variable_infos): Build
11275         representatives for all restrict qualified pointer destinations.
11277 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
11279         * config/i386/i386.md (define_code_attr mshift): New.
11280         (define_mode_iterator SWI1248_AVX512BW): Rename ...
11281         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
11282         only.
11283         (define_insn "*k<logic><mode>"): Use new iterator name.
11284         (define_insn "*<mshift><mode>3"): New.
11286 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
11288         PR middle-end/67649
11289         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
11290         mark the block as accessible.
11292 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
11294         * function.c (thread_prologue_and_epilogue_insns): Delete
11295         orig_entry_edge argument to try_shrink_wrapping.
11296         * shrink-wrap.c (can_get_prologue): New function.
11297         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
11298         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
11299         can_get_prologue where needed.  Remove code that finds a single
11300         edge for the prologue.  Remove code that tests if any reg clobbered
11301         by the prologue is live on the prologue edge.  Remove code that finds
11302         the new prologue edge after duplicating blocks.  Make a new prologue
11303         block and edge.
11304         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
11306 2015-09-22  Jeff Law  <law@redhat.com>
11308         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
11309         behavior.
11311 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
11313         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
11314         -Wtemplates, -Wnamespaces): Document.
11316 2015-09-22  Tom de Vries  <tom@codesourcery.com>
11318         PR tree-optimization/67671
11319         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
11320         pointer references as restrict.
11322 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
11324         * config/nios2/nios2.c (nios2_legitimize_address): When handling
11325         'reg + reloc' cases, allow first operand to be non-REG, and use
11326         force_reg() to enforce address pattern.
11328 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
11330         PR target/67480
11331         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
11332         (define_mode_iterator VI12_AVX_AVX512F): New.
11333         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
11334         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
11335         (define_insn "*<code><mode>3"): ... Into new pattern using
11336         VI12_AVX_AVX512F iterators without masking.
11338 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11340         * config.gcc: Support "skylake-avx512".
11341         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11342         PROCESSOR_SKYLAKE_AVX512.
11343         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
11344         (processor_target_table): Add "skylake-avx512".
11345         (PTA_SKYLAKE_AVX512): Define.
11346         (ix86_option_override_internal): Add "skylake_avx512".
11347         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
11348         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
11349         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
11350         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
11351         * doc/invoke.texi (skylake-avx512): New.
11353 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11355         * config/i386/i386.md (define_insn "kunpckhi"): Fix
11356         operand in pattern.
11357         (define_insn "kunpcksi"): Ditto.
11358         (define_insn "kunpckdi"): Ditto.
11360 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11362         * config/i386/i386.md (define_split not/xor SWI1248x): Use
11363         iterator instead of fixed modes.
11365 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11367         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11368         Adjust declaration.
11369         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
11370         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
11371         out_result.  Update to support update-fetch operations.
11372         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
11373         Adjust for change to aarch64_gen_atomic_ldop.
11374         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
11375         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
11376         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
11377         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
11378         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
11380 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11382         * config/aarch64/aarch64-protos.h
11383         (aarch64_atomic_ldop_supported_p): Declare.
11384         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
11385         (enum aarch64_atomic_load_op_code): New.
11386         (aarch64_emit_atomic_load_op): New.
11387         (aarch64_gen_atomic_ldop): Update to support load-operate
11388         patterns.
11389         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
11390         to an expander.
11391         (aarch64_atomic_<atomic_optab><mode>): New.
11392         (aarch64_atomic_<atomic_optab><mode>_lse): New.
11393         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
11394         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
11395         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
11397 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11399         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
11400         (UNSPECV_ATOMIC_LDOP_OR): New.
11401         (UNSPECV_ATOMIC_LDOP_BIC): New.
11402         (UNSPECV_ATOMIC_LDOP_XOR): New.
11403         (UNSPECV_ATOMIC_LDOP_PLUS): New.
11404         (ATOMIC_LDOP): New.
11405         (atomic_ldop): New.
11406         (aarch64_atomic_load<atomic_ldop><mode>): New.
11408 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11410         * config/aarch64/aarch64.md
11411         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
11412         pattern.
11414 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11416         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11417         Declare.
11418         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
11419         (aarch64_gen_atomic_ldop): New.
11420         (aarch64_split_atomic_op): Fix whitespace and add a comment.
11421         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
11422         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
11423         (atomic_exchange<mode>): Replace with an expander.
11424         (aarch64_atomic_exchange<mode>): New.
11425         (aarch64_atomic_exchange<mode>_lse): New.
11426         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
11427         (aarch64_atomic_swp<mode>): New.
11429 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11431         * tree-inline.c (expand_call_inline): Use inform for extra note.
11432         Do not give a note with UNKNOWN_LOCATION.
11433         Replace input_location with gimple_location (stmt).
11434         Use true/false instead of TRUE/FALSE.
11436 2015-09-22  Tom de Vries  <tom@codesourcery.com>
11438         PR tree-optimization/67666
11439         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
11440         with single field non-conservative.
11442 2015-09-21  David S. Miller  <davem@davemloft.net>
11444         PR/67622
11445         Revert:
11446         2015-09-11  David S. Miller  <davem@davemloft.net>
11448         * config/sparc/constraints.md: Make "U" constraint a real register
11449         constraint.
11450         * config/sparc/sparc.c (TARGET_LRA_P): Define.
11451         (D_MODES, DF_MODES): Add missing cast.
11452         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
11453         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
11454         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
11455         cost to 8.
11456         * config/sparc/sparc.h (PROMOTE_MODE): Define.
11457         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
11458         provide these insn when flag_pic.
11460         2015-09-17  David S. Miller  <davem@davemloft.net>
11462         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
11463         Declare.
11464         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
11465         function.
11466         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11467         (HARD_REGNO_CALLER_SAVE_MODE): Define.
11468         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
11469         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
11470         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
11471         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
11472         provide when flag_pic.
11474 2015-09-21  Jeff Law  <law@redhat.com>
11476         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
11477         behavior.
11479 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11481         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
11483 2015-09-21  Richard Biener  <rguenther@suse.de>
11485         * passes.c (rest_of_decl_compilation): Do not call
11486         dwarf2out_early_global_decl for aliases.
11488 2015-09-21  Richard Biener  <rguenther@suse.de>
11490         PR debug/67664
11491         * dwarf2out.c (add_location_or_const_value_attribute): Remove
11492         attribute parameter.  Early exit if either DW_AT_const_value
11493         or DW_AT_location are present already.
11494         (gen_variable_die): Adjust caller.
11495         (dwarf2out_late_global_decl): Likewise.
11497 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
11499         PR target/67657
11500         * config/sh/sh.c (sh_remove_overlapping_post_inc,
11501         sh_peephole_emit_move_insn): Add new functions.
11502         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
11503         sh_peephole_emit_move_insn): Declere them.
11504         * config/sh/sh.md: Use them in various peephole2 patterns.
11506 2015-09-21  Richard Biener  <rguenther@suse.de>
11508         PR middle-end/67651
11509         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
11510         address with -fno-delete-null-pointer-checks.
11512 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
11514         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
11515         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
11516         (reduc_uplus_v16qi): Remove.
11518         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
11519         (reduc_<VEC_reduc_name>_v2df): Remove.
11520         (reduc_<VEC_reduc_name>_v4sf): Remove.
11521         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
11523         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
11524         gen_ function by removing * prefix.
11525         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
11527 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11529         PR middle-end/60832
11530         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
11531         Print i_bound without converting it to a tree.
11533 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
11535         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
11536         operands[4] operands[5] swap with std::swap, removed tmp variable.
11537         (arm_evpc_neon_vzip): Replaced in0/in1 and
11538         out0/out1 swaps with std::swap, removed x variable.
11539         (arm_evpc_neon_vtrn): Replaced in0/int1 and
11540         out0/out1 swaos with std::swap, removed x variable.
11541         (arm_expand_vec_perm_const_1): Replaced
11542         d->op0/d->op1 swap with std::swap, removed x variable.
11543         (arm_evpc_neon_vuzp): Replaced in0/in1 and
11544         out0/out1 swaps with std::swap, removed x variable.
11546 2015-09-21  Jonathan Yong  <10walls@gmail.com>
11548         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
11549         sysroot/usr/lib/32api for additional win32 libraries,
11550         fixes failing Cygwin bootstrapping.
11552 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
11554         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
11556 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
11558         PR target/67126
11559         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
11560         (*mov_t_msb_neg): Rewrite negc pattern.
11562 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11564         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
11565         immediate generation code.
11567 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11569         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
11570         redundant immediate generation code.
11572 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11574         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
11575         (AARCH64_NUM_BITMASKS): Remove.
11576         (aarch64_bitmasks_cmp): Remove.
11577         (aarch64_build_bitmask_table): Remove.
11579 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11581         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
11582         slow immediate matching loops with a faster algorithm.
11584 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11586         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
11587         faster algorithm.
11589 2015-09-20  Jeff Law  <law@redhat.com>
11591         PR tree-optimization/47679
11592         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
11593         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
11594         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
11595         (thread_through_normal_block): Use record_temporary_equivalences.
11597 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
11599         * coretypes.h (gimple): Change typedef to be a forward declaration.
11600         * gimple.h (gimple_statement_base): rename to gimple.
11601         * (all functions and types using gimple): Adjust.
11602         * *.[ch]: Likewise.
11604 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
11605             David Edelsohn  <dje.gcc@gmail.com>
11607         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
11608         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11609         (EH_FRAME_THROUGH_COLLECT2): Define.
11610         (EH_TABLES_CAN_BE_READ_ONLY): Define.
11611         (ASM_OUTPUT_DWARF_PCREL): Define.
11612         (ASM_OUTPUT_DWARF_DATAREL): Define.
11614 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
11616         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
11617         of TARGET_ELF32.
11619 2015-09-18  Jeff Law  <law@redhat.com>
11621         PR tree-optimization/47679
11622         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
11623         it here ...
11624         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
11625         object.  Update constructor.
11626         (pass_dominator::execute):  Corresponding chagnes to declaration
11627         and initialization of avail_exprs_stack.  Update constructor call
11628         for dom_opt_dom_walker object.
11629         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
11630         it down to children as needed.
11631         (record_equivalences_from_incoming_edge): Likewise.
11632         (eliminate_redundant_computations): Likewise.
11633         (record_equivalences_from_stmt): Likewise.
11634         (simplify_stmt_for_jump_threading): Likewise.
11635         (record_temporary_equivalences): Likewise.
11636         (optimize_stmt): Likewise.
11637         (dom_opt_dom_walker::thread_across_edge): Update access to
11638         avail_exprs_stack object and pass it to children as needed.
11639         (dom_opt_dom_walker::before_dom_children): Similarly.
11640         (dom_opt_dom_walker::after_dom_children): Similarly.
11641         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
11642         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
11643         Add avail_expr_stack argument.  Pass it to children as needed.
11644         (dummy_simplify): Likewise.
11645         (simplify_control_stmt_condition): Likewise.
11646         (thread_around_empty_blocks): Likewise.
11647         (thread_through_normal_block): Likewise.
11648         (thread_across_edge): Likewise.
11649         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11650         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
11652         PR tree-optimization/47679
11653         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
11654         it here ...
11655         (dom_opt_dom_walker): New private member holding the const_and_copies
11656         object.  Update constructor.
11657         (pass_dominator::execute): Corresponding changes to declaration
11658         and initialization of const_and_copies.  Update constructor call
11659         for the dom_opt_dom_walker object.
11660         (record_temporary_equivalences): Accept const_and_copies argument
11661         pass it down to children as needed.
11662         (record_equality): Likewise.
11663         (record_equivalences_from_incoming_edge): Likewise.
11664         (cprop_into_successor_phis, optimize_stmt): Likewise.
11665         (eliminate_redundant_computations): Likewise.
11666         (dom_opt_dom_walker::thread_across_edge): Update access to
11667         const_and_copies object and pass it to children as needed.
11668         (dom_opt_dom_walker::before_dom_children): Similarly.
11669         (dom_opt_dom_walker::after_dom_children): Similarly.
11671         PR tree-optimization/47679
11672         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
11673         it into the avail_exprs_stack class.
11674         (pass_dominator::execute): Corresponding changes to declaration
11675         and initialization of avail_exprs.  Pass avail_exprs to
11676         dump_dominator_optimization_stats.
11677         (record_cond): Extract avail_exprs from avail_exprs_stack.
11678         (lookup_avail_expr): Similarly.
11679         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
11680         position in file.
11681         (dump_dominator_optimization_stats): Make static and prototype.
11682         Add argument for the hash table to dump.
11683         (debug_dominator_optimization_stats): Remove.
11684         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
11685         prototype.
11686         (debug_dominator_optimization_stats): Similarly.
11687         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
11688         "void" in prototype for pop_to_marker method.  Add accessor method
11689         for the underlying avail_exprs table.
11691         * tree-ssa-threadedge.c: Remove trailing whitespace.
11693 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
11695         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
11696         unsigned.
11697         (pa_ldil_cint_p): Likewise.
11698         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
11699         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
11700         Update callers.
11701         * config/pa/pa.md: Likewise.
11703 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
11705         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
11706         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
11707         (diagnostic_show_locus): Likewise.
11708         (diagnostic_print_caret_line): Likewise.
11709         * diagnostic-show-locus.c: New file.
11711 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
11713         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
11714         "back" parameter. Declare label in #if block.
11716 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
11718         PR middle-end/67619
11719         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
11720         the address to a register.
11722 2015-09-18  Jeff Law  <law@redhat.com>
11724         PR tree-optimization/47679
11725         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
11726         * tree-ssa-dom.c: Remove unnecessary header includes.
11727         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
11728         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
11729         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
11730         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
11731         (pass_phi_only_cprop::execute): Likewise.
11732         (make_pass_phi_only_cprop): Likewise.
11733         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
11734         uses of file scoped statics by passing the required objects
11735         as parameters wherever needed.
11737 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
11738             David Edelsohn  <dje.gcc@gmail.com>
11740         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
11741         EH_FRAME_THROUGH_COLLECT2.
11742         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
11743         DW_EH_PE_datarel.
11744         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
11745         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
11746         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
11747         * except.c (switch_to_exception_section): Use a read-only section
11748         even if EH_FRAME_SECTION_NAME is undefined.
11749         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
11750         * collect2.c (write_c_file_stat): Provide dbase on AIX.
11751         (scan_prog_file): Don't export __dso_handle nor
11752         __gcc_unwind_dbase.
11753         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11754         (EH_TABLES_CAN_BE_READ_ONLY): Define.
11755         (ASM_OUTPUT_DWARF_PCREL): Define.
11756         (ASM_OUTPUT_DWARF_DATAREL): Define.
11757         (EH_FRAME_THROUGH_COLLECT2): Define.
11758         (EH_FRAME_IN_DATA_SECTION): Delete.
11759         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
11760         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
11761         Declare.
11762         (rs6000_asm_output_dwarf_datarel): Declare.
11763         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
11764         (rs6000_aix_asm_output_dwarf_datarel): New.
11765         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
11766         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
11767         (EH_FRAME_THROUGH_COLLECT2): Define.
11768         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
11769         (EH_FRAME_THROUGH_COLLECT2): Define.
11770         (EH_TABLES_CAN_BE_READ_ONLY): Define.
11771         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
11772         (EH_FRAME_THROUGH_COLLECT2): New.
11773         (ASM_OUTPUT_DWARF_DATAREL): New.
11774         * doc/tm.texi: Regenerate.
11776 2015-09-18  Richard Biener  <rguenther@suse.de>
11778         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
11779         we're in early phase.
11780         (schedule_generic_params_dies_gen): Likewise.
11781         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
11782         work as possible, retaining unhandled cases.
11783         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
11784         clear out generic_type_instances at the end.
11785         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
11786         (dwarf2out_early_finish): ... here.  Do most of
11787         gen_remaining_tmpl_value_param_die_attribute here.
11789 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
11791         PR tree-optimization/67283
11792         * tree-sra.c (type_consists_of_records_p): Rename to...
11793         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11794         (completely_scalarize_record): Rename to...
11795         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
11796         (scalarize_elem): New.
11797         (analyze_all_variable_accesses): Follow renamings.
11799 2015-09-18  Richard Biener  <rguenther@suse.de>
11801         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
11802         in early-dwarf.
11804 2015-09-18  Richard Biener  <rguenther@suse.de>
11806         PR tree-optimization/66142
11807         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
11808         treat MEM[&x] and x the same.
11809         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
11810         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
11811         when we simplified sth.
11812         (vn_reference_maybe_forwprop_address): Likewise.
11813         (valueize_refs_1): When we simplified through
11814         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
11815         set valueized_anything to true.
11816         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
11817         one ref kills the other instead of just a offset-based test.
11818         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
11819         for the operand_equal_p test to compare bases and also compare
11820         sizes.
11822 2015-09-17  Christian Bruel  <christian.bruel@st.com>
11824         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
11826 2015-09-17  Richard Henderson  <rth@redhat.com>
11828         PR libstdc++/65913
11829         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
11830         pointers that encode the alignment of the object.
11832 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
11834         PR rtl-optimization/66790
11835         * df-problems.c (LIVE): Amend documentation.
11837 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
11839         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
11840         and optabs-tree.o.
11841         (GTFILES): Replace optabs.c with optabs-libfunc.c.
11842         * genopinit.c (main): Add an include guard to insn-opinit.h.
11843         Protect the rtx_code parts with NUM_RTX_CODE.
11844         * optabs.h: Split parts out to...
11845         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
11846         * optabs.c: Split parts out to...
11847         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
11848         * cilk-common.c: Include optabs-query.h rather than optabs.h.
11849         * fold-const.c: Likewise.
11850         * target-globals.c: Likewise.
11851         * tree-if-conv.c: Likewise.
11852         * tree-ssa-forwprop.c: Likewise.
11853         * tree-ssa-loop-prefetch.c: Likewise.
11854         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
11855         Remove unncessary include files.
11856         * tree-ssa-phiopt.c: Likewise.
11857         * tree-ssa-reassoc.c: Likewise.
11858         * tree-switch-conversion.c: Likewise.
11859         * tree-vect-data-refs.c: Likewise.
11860         * tree-vect-generic.c: Likewise.
11861         * tree-vect-loop.c: Likewise.
11862         * tree-vect-patterns.c: Likewise.
11863         * tree-vect-slp.c: Likewise.
11864         * tree-vect-stmts.c: Likewise.
11865         * tree-vrp.c: Likewise.
11866         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
11867         rather than optabs.h.
11868         * expr.c: Include optabs-tree.h.
11869         * function.c: Likewise.
11871 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
11873         PR middle-end/65958
11874         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
11875         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
11876         * config/arm/arm.c: Include common/common-target.h.
11877         (use_return_insn): Return 0 if the static chain register was saved
11878         above a non-APCS frame.
11879         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
11880         (struct scratch_reg): New.
11881         (get_scratch_register_on_entry): New function.
11882         (release_scratch_register_on_entry): Likewise.
11883         (arm_emit_probe_stack_range): Likewise.
11884         (output_probe_stack_range): Likewise.
11885         (arm_expand_prologue): Factor out code dealing with the IP register
11886         for nested function and adjust it for stack checking.
11887         Invoke arm_emit_probe_stack_range if static builtin stack checking
11888         is enabled.
11889         (thumb1_expand_prologue): Sorry out if static builtin stack checking
11890         is enabled.
11891         (arm_expand_epilogue): Add the saved static chain register, if any, to
11892         the amount of pre-pushed registers to pop.
11893         (arm_frame_pointer_required): Return true if static stack checking is
11894         enabled and we want to catch the exception with the EABI unwinder.
11895         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
11896         (UNSPEC_PROBE_STACK_RANGE): Likewise.
11897         * config/arm/arm.md (probe_stack): New insn.
11898         (probe_stack_range): Likewise.
11900 2015-09-17  Richard Biener  <rguenther@suse.de>
11902         * genmatch.c (parser::parse_expr): Improve error message
11903         for mis-placed flags.
11905 2015-09-17  Richard Biener  <rguenther@suse.de>
11907         * passes.c (rest_of_decl_compilation): Always call early_global_decl
11908         debug hook when we created a varpool node.
11909         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
11910         dwarf2out_early_global_decl, when not just add location or
11911         value attributes to existing DIEs.
11913 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
11915         * config/aarch64/aarch64.md (copysigndf3): New.
11916         (copysignsf3): Likewise.
11918 2015-09-17  David S. Miller  <davem@davemloft.net>
11920         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
11921         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
11922         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11923         (HARD_REGNO_CALLER_SAVE_MODE): Define.
11924         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
11925         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
11926         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
11927         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
11928         provide when flag_pic.
11930 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
11932         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
11933         object_allocator change.
11935 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
11937         PR tree-optimization/66388
11938         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
11939         (dump_iv): Dump no_overflow information.
11940         (alloc_iv): Initialize new field for struct iv.
11941         (mark_bivs): Count number of no_overflow bivs.
11942         (find_deriving_biv_for_expr, record_biv_for_address_use): New
11943         functions.
11944         (idx_find_step): Call new functions above.
11945         (add_candidate_1, add_candidate): New paramter.
11946         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
11947         (get_computation_aff): Simplify convertion of cand for BIV.
11948         (get_computation_cost_at): Step cand's base if necessary.
11950 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
11952         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
11953         parameter.
11954         (tree_simplify_using_condition): Ditto.
11955         (simplify_using_initial_conditions): Ditto.
11956         (loop_exits_before_overflow): Pass new argument to function
11957         simplify_using_initial_conditions.  Remove case for type conversions
11958         simplification.
11959         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
11960         parameter.
11961         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
11962         in iv base using loop initial conditions.
11964 2015-09-16  Jeff Law  <law@redhat.com>
11966         PR tree-optimization/47679
11967         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
11968         (free_all_edge_infos): Use it.
11969         (allocate_edge_info): Free preexisting edge info data.
11970         (pass_dominator::execute): Set up initial edge info structures.
11971         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
11972         thread_across_edge.
11973         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
11974         If non-null, then push/pop markers appropriately.
11975         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11976         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
11977         thread-across_edge.
11979 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
11981         * config/ft32/ft32.c: Fix the memory address space predicate.
11983 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
11985         PR target/67573
11986         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
11987         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
11989 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11991         * toplev.h (check_global_declaration): Remove declaration.
11992         * toplev.c (check_global_declaration): Move to ...
11993         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
11994         (analyze_functions): Update call.
11996 2015-09-16  David S. Miller  <davem@davemloft.net>
11998         * lra-constraints.c (simplify_operand_subreg): Do not assume that
11999         lowpart of a SUBREG has offset zero.
12001 2015-09-16  Jeff Law  <law@redhat.com>
12003         PR tree-optimization/47679
12004         * tree-ssa-dom.c (enum expr_kind): Moved from here to
12005         tree-ssa-scopedtables.h.
12006         (struct hashable_expr, class expr_hash_elt): Likewise.
12007         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
12008         Move associated methods into tree-ssa-scopedtables.c.
12009         (avail_expr_hash, initialize_expr_from_cond): Similarly.
12010         (hashable_expr_equal_p, add_expr_commutative): Likewise.
12011         (add_hashable_expr): Likewise.
12012         (record_cond): Delete element directly.
12013         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
12014         private copy ctor and assignment operator methods.
12015         (expr_elt_hasher): Inline trivial methods.
12016         (initialize_expr_from_cond): Prototype.
12017         * tree-ssa-scopedtables.c: Add necessary includes, functions and
12018         methods that were previously in tree-ssa-dom.c.  Improve various
12019         comments.
12021 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
12023         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
12025 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
12027         PR bootstrap/67587
12028         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12029         fixup_partitions.
12031 2015-09-16  Richard Biener  <rguenther@suse.de>
12033         PR middle-end/67253
12034         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
12035         location of possibly shared trees.
12037 2015-09-16  Richard Biener  <rguenther@suse.de>
12039         PR middle-end/67271
12040         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
12042 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
12044         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
12045         offset and size computations instead of HOST_WIDE_INT.
12047 2015-09-16  Richard Biener  <rguenther@suse.de>
12049         PR middle-end/67442
12050         * fold-const.c (extract_muldiv_1): Properly extend multiplication
12051         result before builting a tree via wide_int_to_tree.
12053 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
12055         * Makefile.in: Add memory-block.cc
12056         (pool_allocator::initialize): Use fixed block size.
12057         (pool_allocator::release): Use memory_block_pool.
12058         (pool_allocator::allocate): Likewise.
12059         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
12060         object pools.
12061         * cfg.c (initialize_original_copy_tables): Likewise.
12062         * cselib.c (elt_list_pool, elt_loc_list_pool,
12063         cselib_val_pool): Likewise.
12064         * df-problems.c (df_chain_alloc): Likewise.
12065         * df-scan.c (df_scan_alloc): Likewise.
12066         * dse.c (cse_store_info_pool, rtx_store_info_pool,
12067         read_info_type_pool, insn_info_type_pool, bb_info_pool,
12068         group_info_pool, deferred_change_pool): Likewise.
12069         * et-forest.c (et_nodes, et_occurrences): Likewise.
12070         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
12071         ipcp_agg_lattice_pool): Likewise.
12072         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
12073         * ipa-profile.c (histogram_pool): Likewise.
12074         * ipa-prop.c (ipa_refdesc_pool): Likewise.
12075         * ira-build.c (live_range_pool, allocno_pool, object_pool,
12076         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
12077         * ira-color.c (update_cost_record_pool): Likewise.
12078         * lra-lives.c (lra_live_range_pool): Likewise.
12079         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
12080         * memory-block.cc: New file.
12081         * memory-block.h: New file.
12082         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
12083         * sched-deps.c (sched_deps_init): Likewise.
12084         * sel-sched-ir.c (sched_lists_pool): Likewise.
12085         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
12086         * tree-sra.c (access_pool): Likewise.
12087         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
12088         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
12089         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
12090         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12091         * tree-ssa-strlen.c (strinfo_pool): Likewise.
12092         * tree-ssa-structalias.c (variable_info_pool): Likewise.
12093         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
12094         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
12096 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
12098         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
12099         definition.
12100         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
12101         call0 ABI.
12103 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
12105         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
12106         to pass TLS call argument, according to current ABI.
12107         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
12108         callx0 for TLS call, according to current ABI.
12110 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
12112         * tree-eh.c (lower_try_finally_dup_block): Clear location information
12113         on stack restore statements.
12114         (decide_copy_try_finally): Do not consider a stack restore statement as
12115         coming from sources.
12117 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
12119         * config/alpha/alpha.c (alpha_expand_block_clear): Use
12120         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
12122 2015-09-15  Jeff Law  <law@redhat.com>
12124         PR tree-optimization/47679
12125         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
12126         methods and private members.
12127         (avail_exprs_stack): Similarly.  Change type of global
12128         from a pair of expr_hash_elt_t to the new class.
12129         (expr_elt_hasher::hash): Corresponding changes.
12130         (expr_elt_hasher::equal): Similarly.
12131         (avail_expr_hash): Similarly.
12132         (pass_dominator::execute): Similarly.
12133         (dom_opt_dom_walker::thread_across_edge): Similarly.
12134         (record_cond): Similarly.
12135         (dom_opt_dom_walker::before_dom_children): Similarly.
12136         (dom_opt_dom_walker::after_dom_children): Similarly.
12137         (lookup_avail_expr): Likewise.
12138         (initialize_hash_element): Now a expr_hash_elt constructor.
12139         (initialize_hash_element_from_expr): Similarly.
12140         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
12141         (free_expr_hash_elt): Call dtor for the element.
12142         (remove_local_expressions_from_table): Now the "pop_to_marker"
12143         method in the available_exprs_stack class.
12144         (avail_expr_stack::record_expr): Method factored out.
12145         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
12146         Fix formatting.
12147         (hashable_expr_equal_p): Fix formatting.
12149 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
12151         * input.h (location_get_source_line): Drop "expanded_location"
12152         param in favor of a file and line number.
12153         * input.c (location_get_source_line): Likewise.
12154         (dump_location_info): Update for change in signature of
12155         location_get_source_line.
12156         * diagnostic.c (diagnostic_print_caret_line): Likewise.
12158 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
12160         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
12161         Bump to 4KB for SJLJ exceptions.
12162         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
12163         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
12164         * doc/tm.texi: Regenerate.
12166 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12168         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
12169         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
12170         Update prototype.
12172 2015-09-15  Richard Biener  <rguenther@suse.de>
12174         PR tree-optimization/67470
12175         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
12176         structure for PHI hoisting by inserting a forwarder block
12177         if appropriate.
12179 2015-09-15  Christian Bruel  <christian.bruel@st.com>
12181         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
12182         (arm_option_print): New function.
12184 2015-09-15  Christian Bruel  <christian.bruel@st.com>
12186         PR target/52144
12187         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
12188         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
12189         Remove flags parameter.
12190         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
12191         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
12192         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
12193         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
12194         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
12195         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
12196         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
12197         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
12199 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12201         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
12203         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
12204         AARCH64_VALID_SIMD_DREG_MODE.
12206 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12208         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
12209         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
12210         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
12211         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
12212         aarch64_ld4_lane<mode>): Combine together, making...
12213         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12214         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12215         aarch64_st4_lane<mode>): Combine together, making...
12216         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12217         * config/aarch64/iterators.md (nregs): Add comment.
12219 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12221         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
12222         Change operand mode from <V_TWO_ELEM> to BLK.
12223         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
12224         (aarch64_vec_store_lanesoi_lane<mode): Likewise
12225         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12226         (aarch64_ld2_lane<mode>): Likewise.
12227         (aarch64_st2_lane<VQ:mode>): Likewise.
12228         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
12230 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12232         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
12233         Change operand mode from <V_FOUR_ELEM> to BLK.
12234         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
12235         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
12236         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12237         (aarch64_ld4_lane<mode>): Likewise.
12238         (aarch64_st4_lane<mode>): Likewise.
12239         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
12241 2015-09-15  Richard Biener  <rguenther@suse.de>
12243         PR middle-end/67563
12244         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
12245         transfer EH info from old to new stmt.
12246         (replace_call_with_value): Likewise.
12247         (replace_call_with_call_and_fold): Likewise.
12248         (gimple_fold_builtin_memory_op): Likewise.
12249         (gimple_fold_builtin_memset): Likewise.
12250         (gimple_fold_builtin_stpcpy): Likewise.
12251         (gimple_fold_call): Likewise.
12253 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12255         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
12256         comment.
12257         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
12258         (aarch64_simd_intEI_type_node): Likewise.
12259         (aarch64_simd_builtin_std_type): Remove EImode case.
12260         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
12261         * config/aarch64/aarch64-modes.def: Remove EImode.
12263 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12265         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
12266         Change operand mode from <V_THREE_ELEM> to BLK.
12267         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
12268         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
12269         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12270         (aarch64_ld3_lane<mode>): Likewise.
12271         (aarch64_st3_lane<mode>): Likewise.
12272         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
12274 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12276         * config/aarch64/aarch64-simd.md
12277         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
12278         Change all TImode operands to BLKmode.
12279         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
12280         Change all EImode operands to BLKmode.
12281         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
12282         Change all OImode operands to BLKmode.
12284         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
12285         and call set_mem_size.
12286         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
12288         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
12290 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12292         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
12293         to...
12294         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
12296         (vec_store_lanesci_lane<mode>): Rename to...
12297         (aarch64_vec_store_lanesci_lane<mode>): ...this.
12299         (vec_store_lanesxi_lane<mode>): Rename to...
12300         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
12302         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12303         aarch64_st4_lane<mode>): Follow renaming.
12305 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12307         * config/s390/s390.c (s390_const_operand_ok): Add missing
12308         brackets.
12310 2015-09-15  Richard Biener  <rguenther@suse.de>
12312         PR lto/67568
12313         * lto-streamer.h (lto_location_cache::current_sysp): Properly
12314         initialize.
12315         * lto-streamer-out.c (clear_line_info): Likewise.
12317 2015-09-15  Richard Biener  <rguenther@suse.de>
12319         * doc/match-and-simplify.texi: Fix wording.
12321 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
12323         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
12324         unnecessary type conversion in op1.
12326 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
12328         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
12329         (dup_block_and_redirect): Delete function.
12330         (can_dup_for_shrink_wrapping): New function.
12331         (fix_fake_fallthrough_edge): New function.
12332         (try_shrink_wrapping): Rewrite function.
12333         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
12335 2015-09-14  Rich Felker  <dalias@libc.org>
12337         * configure.ac: Change target pattern for sh TLS support
12338         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
12339         * configure: Regenerate.
12341 2015-09-14  Jeff Law  <law@redhat.com>
12343         PR tree-optimization/47679
12344         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
12345         type rather than void *.
12347 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12349         PR fortran/67460
12350         * diagnostic.c (diagnostic_initialize): Do not set
12351         some_warnings_are_errors.
12352         (diagnostic_finish): Use DK_WERROR count instead.
12353         (diagnostic_report_diagnostic): Do not set
12354         some_warnings_are_errors.
12355         * diagnostic.h (struct diagnostic_context): Remove
12356         some_warnings_are_errors.
12358 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
12360         * config/sparc/predicates.md (const_all_ones_operand): Use
12361         CONSTM1_RTX to simplify definition.
12363 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
12365         PR target/67061
12366         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
12367         Handle call insns.
12369 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
12371         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
12372         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
12373         OPT_fshow_column to handled saved option cases.
12374         (append_compiler_options): Do not skip the above added options.
12376 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12378         PR target/63304
12379         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
12380         nopcrelative_literal_loads.
12381         (aarch64_classify_address): Likewise.
12382         (aarch64_constant_pool_reload_icode): Define.
12383         (aarch64_secondary_reload): Handle secondary reloads for
12384         literal pools.
12385         (aarch64_override_options): Handle nopcrelative_literal_loads.
12386         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
12387         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
12388         Define.
12389         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
12390         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
12391         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
12392         predicate.
12393         * doc/invoke.texi (mpc-relative-literal-loads): Document.
12395 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
12397         PR middle-end/67401
12398         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
12399         sync_compare_and_swap_optab libcall to target_oval.
12401 2015-09-14  Marek Polacek  <polacek@redhat.com>
12403         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
12404         value.
12405         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
12407 2015-09-11  Mark Wielaard  <mjw@redhat.com>
12409         PR c/28901
12410         * toplev.c (check_global_declaration): Check and use
12411         warn_unused_const_variable.
12412         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
12413         (-Wunused-variable): Remove non-constant. For C implies
12414         -Wunused-const-variable.
12415         (-Wunused-const-variable): New.
12417 2015-09-14  Richard Biener  <rguenther@suse.de>
12419         * doc/match-and-simplify.texi: Update for changed syntax
12420         of inner ifs and the new switch expression.
12422 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
12424         * config/i386/haswell.md: New file describing Haswell pipeline.
12425         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
12426         haswell-like processors.
12427         (ix86_reassociation_width): Increase reassociation width for 64-bit
12428         Haswell processor family.
12429         * config/i386/i386.md: Introduce haswell cpu and include new md file.
12431 2015-09-14  Richard Biener  <rguenther@suse.de>
12433         * doc/match-and-simplify.texi: Fixup some formatting issues
12434         and document the 's' flag.
12436 2015-09-13  Olivier Hainque  <hainque@adacore.com>
12437             Eric Botcazou  <ebotcazou@adacore.com>
12439         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
12440         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
12441         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
12442         (TARGET_CPU_gr5): Likewise.
12443         (TARGET_CPU_gr6): Likewise.
12444         (MULTILIB_DEFAULTS): Likewise.
12445         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
12446         for mcpu=gr5 and mcpu=gr6.
12447         (MULTILIB_DIRNAMES): Adjust accordingly.
12449 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12451         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
12452         (mem_ref_p): Likewise.
12453         (outermost_indep_loop): Adjust.
12454         (mem_ref_in_stmt): Likewise.
12455         (determine_max_movement): Likewise.
12456         (mem_ref_alloc): Likewise.
12457         (record_mem_ref_loc): Likewise.
12458         (set_ref_stored_in_loop): Likewise.
12459         (mark_ref_stored): Likewise.
12460         (gather_mem_refs_stmt): Likewise.
12461         (mem_refs_may_alias_p): Likewise.
12462         (for_all_locs_in_loop): Likewise.
12463         (struct rewrite_mem_ref_loc): Likewise.
12464         (rewrite_mem_refs): Likewise.
12465         (struct first_mem_ref_loc_1): Likewise.
12466         (first_mem_ref_loc): Likewise.
12467         (struct sm_set_flag_if_changed): Likewise.
12468         (execute_sm_if_changed_flag_set): Likewise.
12469         (execute_sm): Likewise.
12470         (hoist_memory_references):
12471         (struct ref_always_accessed): Likewise.
12472         (ref_always_accessed_p): Likewise.
12473         (refs_independent_p): Likewise.
12474         (record_dep_loop): Likewise.
12475         (ref_indep_loop_p_1): Likewise.
12476         (ref_indep_loop_p_2): Likewise.
12477         (ref_indep_loop_p): Likewise.
12478         (can_sm_ref_p): Likewise.
12479         (find_refs_for_sm): Likewise.
12480         (tree_ssa_lim_finalize): Likewise.
12482 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12484         * dwarf2out.c (dw_attr_ref): Remove typedef.
12485         (dw_line_info_ref): Likewise.
12486         (pubname_ref): Likewise.
12487         (dw_ranges_ref): Likewise.
12488         (dw_ranges_by_label_ref): Likewise.
12489         (comdat_type_node_ref): Likewise.
12490         (get_AT): Adjust.
12491         (get_AT_low_pc): Likewise.
12492         (get_AT_hi_pc): Likewise.
12493         (get_AT_string): Likewise.
12494         (get_AT_flag): Likewise.
12495         (get_AT_unsigned): Likewise.
12496         (get_AT_ref): Likewise.
12497         (get_AT_file): Likewise.
12498         (remove_AT): Likewise.
12499         (print_die): Likewise.
12500         (check_die): Likewise.
12501         (die_checksum): Likewise.
12502         (attr_checksum_ordered): Likewise.
12503         (struct checksum_attributes): Likewise.
12504         (collect_checksum_attributes): Likewise.
12505         (die_checksum_ordered): Likewise.
12506         (same_die_p): Likewise.
12507         (is_declaration_die): Likewise.
12508         (clone_die): Likewise.
12509         (clone_as_declaration): Likewise.
12510         (copy_declaration_context): Likewise.
12511         (break_out_comdat_types): Likewise.
12512         (copy_decls_walk): Likewise.
12513         (output_location_lists): Likewise.
12514         (external_ref_hasher::hash): Likewise.
12515         (optimize_external_refs_1): Likewise.
12516         (build_abbrev_table): Likewise.
12517         (size_of_die): Likewise.
12518         (unmark_all_dies): Likewise.
12519         (size_of_pubnames): Likewise.
12520         (output_die_abbrevs): Likewise.
12521         (output_die): Likewise.
12522         (output_pubnames): Likewise.
12523         (add_ranges_num): Likewise.
12524         (add_ranges_by_labels): Likewise.
12525         (add_high_low_attributes): Likewise.
12526         (gen_producer_string): Likewise.
12527         (dwarf2out_set_name): Likewise.
12528         (new_line_info_table): Likewise.
12529         (prune_unused_types_walk_attribs): Likewise.
12530         (prune_unused_types_update_strings): Likewise.
12531         (prune_unused_types): Likewise.
12532         (resolve_addr): Likewise.
12533         (optimize_location_lists_1): Likewise.
12534         (index_location_lists): Likewise.
12535         (dwarf2out_finish): Likewise.
12537 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12539         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
12541 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12543         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
12544         (dump_asserts_for): Adjust.
12545         (register_new_assert_for): Likewise.
12546         (process_assert_insertions): Likewise.
12547         (insert_range_assertions): Likewise.
12549 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12551         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
12552         and remove typedef.
12553         (new_temp_expr_table): Adjust.
12554         (free_temp_expr_table): Likewise.
12555         (version_to_be_replaced_p): Likewise.
12556         (make_dependent_on_partition): Likewise.
12557         (add_to_partition_kill_list): Likewise.
12558         (remove_from_partition_kill_list): Likewise.
12559         (add_dependence): Likewise.
12560         (finished_with_expr): Likewise.
12561         (process_replaceable): Likewise.
12562         (kill_expr): Likewise.
12563         (kill_virtual_exprs): Likewise.
12564         (mark_replaceable): Likewise.
12565         (find_replaceable_in_bb): Likewise.
12566         (find_replaceable_exprs): Likewise.
12567         (debug_ter): Likewise.
12569 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12571         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
12572         (struct btr_user): Rename from btr_user_s.
12573         (struct btr_def): Rename from btr_def_s.
12574         (find_btr_def_group): Adjust.
12575         (add_btr_def): Likewise.
12576         (new_btr_user): Likewise.
12577         (note_other_use_this_block): Likewise.
12578         (compute_defs_uses_and_gen): Likewise.
12579         (link_btr_uses): Likewise.
12580         (build_btr_def_use_webs): Likewise.
12581         (block_at_edge_of_live_range_p): Likewise.
12582         (btr_def_live_range): Likewise.
12583         (combine_btr_defs): Likewise.
12584         (move_btr_def): Likewise.
12585         (migrate_btr_def): Likewise.
12586         (migrate_btr_defs): Likewise.
12588 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12590         * var-tracking.c (shared_hash_def): Rename to shared_hash.
12591         (shared_hash): Remove typedef.
12592         (struct dataflow_set): Adjust.
12593         (shared_hash_unshare): Likewise.
12594         (dataflow_set_merge): Likewise.
12595         (vt_initialize): Likewise.
12596         (vt_finalize): Likewise.
12598 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12600         * var-tracking.c (struct location_chain): Rename from
12601         location_chain_def.
12602         (struct variable_part): Adjust.
12603         (variable_htab_free): Likewise.
12604         (unshare_variable): Likewise.
12605         (get_init_value): Likewise.
12606         (get_addr_from_local_cache): Likewise.
12607         (drop_overlapping_mem_locs): Likewise.
12608         (val_reset): Likewise.
12609         (struct variable_union_info): Likewise.
12610         (variable_union): Likewise.
12611         (find_loc_in_1pdv): Likewise.
12612         (insert_into_intersection): Likewise.
12613         (intersect_loc_chains): Likewise.
12614         (canonicalize_loc_order_check): Likewise.
12615         (canonicalize_values_mark): Likewise.
12616         (canonicalize_values_star): Likewise.
12617         (canonicalize_vars_star): Likewise.
12618         (variable_merge_over_cur): Likewise.
12619         (remove_duplicate_values): Likewise.
12620         (variable_post_merge_new_vals): Likewise.
12621         (variable_post_merge_perm_vals): Likewise.
12622         (find_mem_expr_in_1pdv): Likewise.
12623         (dataflow_set_preserve_mem_locs): Likewise.
12624         (dataflow_set_remove_mem_locs): Likewise.
12625         (variable_part_different_p): Likewise.
12626         (onepart_variable_different_p): Likewise.
12627         (find_src_set_src): Likewise.
12628         (dump_var): Likewise.
12629         (set_slot_part): Likewise.
12630         (clobber_slot_part): Likewise.
12631         (delete_slot_part): Likewise.
12632         (vt_expand_var_loc_chain): Likewise.
12633         (emit_note_insn_var_location): Likewise.
12634         (vt_finalize): Likewise.
12636 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12638         * dse.c (store_info_t): Remove typedef.
12639         (group_info_t): Likewise.
12640         (const_group_info_t): Likewise.
12641         (deferred_change_t): Likewise.
12642         (get_group_info): Adjust.
12643         (free_store_info): Likewise.
12644         (canon_address): Likewise.
12645         (clear_rhs_from_active_local_stores): Likewise.
12646         (record_store): Likewise.
12647         (replace_read): Likewise.
12648         (check_mem_read_rtx): Likewise.
12649         (scan_insn): Likewise.
12650         (remove_useless_values): Likewise.
12651         (dse_step1): Likewise.
12652         (dse_step2_init): Likewise.
12653         (dse_step2_nospill): Likewise.
12654         (scan_stores_nospill): Likewise.
12655         (scan_reads_nospill): Likewise.
12656         (dse_step3_exit_block_scan): Likewise.
12657         (dse_step3): Likewise.
12658         (dse_step5_nospill): Likewise.
12659         (dse_step6): Likewise.
12661 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12663         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
12664         (alias_set_entry): Remove typedef.
12665         (alias_set_subset_of): Adjust.
12666         (alias_sets_conflict_p): Likewise.
12667         (init_alias_set_entry): Likewise.
12668         (get_alias_set): Likewise.
12669         (new_alias_set): Likewise.
12670         (record_alias_subset): Likewise.
12672 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
12674         * doc/install.texi (Downloading the source): Mark up
12675         contrib/download_prerequisites properly and drop leading "./".
12677 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12679         * config/arc/arc.h: Remove define of STRUCT_VALUE.
12680         * config/lm32/lm32.h: Likewise.
12681         * config/mep/mep.h: Likewise.
12682         * config/visium/visium.h: Likewise.
12683         * system.h: Poison STRUCT_VALUE macro.
12685 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
12687         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
12688         CONSTANT_P operands.
12690 2015-09-11  David S. Miller  <davem@davemloft.net>
12692         * config/sparc/constraints.md: Make "U" constraint a real register
12693         constraint.
12694         * config/sparc/sparc.c (TARGET_LRA_P): Define.
12695         (D_MODES, DF_MODES): Add missing cast.
12696         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12697         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12698         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12699         cost to 8.
12700         * config/sparc/sparc.h (PROMOTE_MODE): Define.
12701         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12702         provide these insn when flag_pic.
12704 2015-09-11  Jeff Law  <law@redhat.com>
12706         PR tree-optimization/47679
12707         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
12708         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
12709         member with m_.  Update inline member functions as necessary.  Add
12710         toplevel comment.
12711         * tree-ssa-scopedtables.c: Update const_and_copies's member
12712         functions to use m_ prefix to access the stack.
12714 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
12716         * graphite-optimize-isl.c (disable_tiling): Remove.
12717         (get_schedule_for_band): Do not use disable_tiling.
12718         (get_prevector_map): Delete function.
12719         (enable_polly_vector): Remove.
12720         (get_schedule_for_band_list): Remove dead code.
12722 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
12724         * graphite-optimize-isl.c (get_tile_map): Refactor.
12725         (get_schedule_for_band): Same.
12726         (getScheduleForBand): Same.
12727         (get_prevector_map): Same.
12728         (get_schedule_for_band_list): Same.
12729         (get_schedule_map): Same.
12730         (get_single_map): Same.
12731         (apply_schedule_map_to_scop): Same.
12732         (optimize_isl): Same.
12734 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12736         PR target/63304
12737         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
12738         (movtf): Delete.
12739         * config/aarch64/iterators.md (GPF_TF_F16): New.
12740         (GPF_F16): Delete.
12742 2015-09-10  Nathan Sidwell  <nathan@acm.org>
12744         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
12745         (nvptx_reorg): Adjust comments.
12747 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
12749         PR bootstrap/67363
12750         * configure.ac: Check if setenv and unsetenv are declared.
12751         * configure: Rebuild.
12752         * config.in: Rebuild.
12753         * system.h: Declare setenv and unsetenv if not declared.
12755 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12757         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
12758         commentary to simplify permute mask adjustment equation.
12759         (special_handling_values): Add SH_VPERM.
12760         (const_load_sequence_p): New function.
12761         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
12762         the mask loaded from the constant pool.
12763         (adjust_vperm): New function.
12764         (handle_special_swappables): Call adjust_vperm.
12765         (dump_swap_insn_table): Handle SH_VPERM.
12767 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
12769         * shrink-wrap.c (requires_stack_frame_p): Remove static.
12770         * shrink-wrap.h (requires_stack_frame_p): Put back.
12772 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
12774         * reload1.c (elimination_costs_in_insn): Locally turn
12775         -Wmaybe-uninitialized into a warning.
12777 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
12779         * shrink-wrap.c (requires_stack_frame_p): Make static.
12780         (prepare_shrink_wrap): Likewise.
12781         (dup_block_and_redirect): Likewise.
12782         * shrink-wrap.h: Remove declarations of those functions.
12784 2015-09-10  Mark Wielaard  <mjw@redhat.com>
12786         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
12788 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
12790         PR target/67506
12791         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
12792         missing simplify_gen_subreg.
12794 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12796         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
12797         the vector element is bigger than 64 bit.
12799 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12801         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
12802         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
12804 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12806         * config/s390/s390.c: Add V1TImode to constant pool modes.
12808 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12810         PR target/67439
12811         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
12812         predicate.  Set predicable_short_it attr to "no".
12814 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
12816         PR rtl-optimization/67421
12817         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
12818         left wide shift tranformation.
12820 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
12822         * common/config/arc/arc-common.c: Remove references to A5.
12823         * config/arc/arc-opts.h: Likewise.
12824         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
12825         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
12826         * config/arc/t-arc-newlib: Likewise.
12828 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
12830         * config/arc/arc.md (length): Fix attribute length for conditional
12831         executed instructions with long immediate.
12833 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12835         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
12836         type for second alternative.
12838 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
12840         * doc/invoke.texi (Downloading GCC): Mention
12841         contrib/download_prerequisites script.
12843 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
12845         PR c++/67523
12846         * gimplify.c (gimplify_omp_for): If inner stmt is not found
12847         for combined loop, assert seen_error () and return GS_ERROR.
12849         PR middle-end/67521
12850         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
12851         if decl is already in outer->variables.
12853         PR middle-end/67517
12854         * gimplify.c (gimplify_scan_omp_clauses): Instead of
12855         asserting that decl is not specified in octx->variables,
12856         break out of the loop if it is.
12858         PR c++/67514
12859         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
12860         iterator is not explicitly determined, but is defined inside
12861         of the combined workshare region, handle it like if it has
12862         DECL_EXPR in OMP_FOR_PRE_BODY.
12864 2015-09-09  Nathan Sidwell  <nathan@acm.org>
12866         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
12867         (*cmp<mode>): Add assembler spacing.
12868         (setcc_int<mode>, set_cc_float<mode>): Likewise.
12869         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
12870         level.
12871         (write_func_decl_from_insn): Refactor argument loops & comma emission.
12872         (nvptx_expand_call): Likewise.
12873         (nvptx_output_call_insn): Likewise.
12874         (nvptx_reorg_subreg): Add spacing.
12876 2015-09-09  Marek Polacek  <polacek@redhat.com>
12878         PR middle-end/67512
12879         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
12880         for comparisons.
12882 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
12884         PR c++/53184
12885         * doc/invoke.texi ([Wsubobject-linkage]): Document.
12887 2015-09-09  Tom de Vries  <tom@codesourcery.com>
12889         * params-list.h: Add missing copyright notice.
12891 2015-09-09  Nathan Sidwell  <nathan@acm.org>
12893         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
12894         sel_truesi, not andsi.
12896 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12898         * config/arm/arm.md (*subsi3_compare0): Rename to...
12899         (subsi3_compare0): ... This.
12900         (modsi3): New define_expand.
12901         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
12902         when operand is power of 2.
12904 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12906         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
12907         (*neg<mode>2_compare0): Rename to...
12908         (neg<mode>2_compare0): ... This.
12909         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
12910         Move check for speed inside the if-then-elses.  Reflect
12911         CSNEG sequence in MOD by power of 2 case.
12913 2015-09-09  Alan Modra  <amodra@gmail.com>
12915         PR target/67378
12916         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
12917         reload replacement for PRE_MODIFY address reg.
12919 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
12921         PR tree-optimization/53852
12922         * config.in: Regenerate.
12923         * configure: Regenerate.
12924         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
12925         * graphite-optimize-isl.c (optimize_isl): Stop computation when
12926         PARAM_MAX_ISL_OPERATIONS is reached.
12927         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
12928         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
12929         result equal to isl_stat_ok as the status now can be isl_error_quota.
12930         (subtract_commutative_associative_deps): Same.
12931         (compute_deps): Same.
12933 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
12934             Sebastian Pop  <s.pop@samsung.com>
12936         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
12937         Return the parameter if it was saved in corresponding
12938         parameter_rename_map of the region.
12939         (copy_def): Copy def from sese region to the newly created region.
12940         (copy_internal_parameters): Copy all the internal parameters defined
12941         within a region to the newly created region.
12942         (graphite_regenerate_ast_isl): Copy parameters to the new region before
12943         translating isl to gimple.
12944         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
12945         the loop-nest does not have any data-references.
12946         (build_graphite_scops): Create a scop only when there is at least one
12947         loop inside it.
12948         (contains_only_close_phi_nodes): Deleted.
12949         (print_graphite_scop_statistics): Deleted
12950         (print_graphite_statistics): Deleted
12951         (limit_scops): Deleted.
12952         (build_scops): Removed call to limit_scops.
12953         * sese.c (new_sese): Construct.
12954         (free_sese): Destruct.
12955         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
12956         added.
12957         (set_rename): Pass sese region so that parameters inside the region can
12958         be added to its parameter_rename_map.
12959         (rename_uses): Pass sese region.
12960         (graphite_copy_stmts_from_block): Do not copy parameters that have been
12961         generated in the header of the scop. For each SSA_NAME in the
12962         parameter_rename_map rename its usage.
12963         (invariant_in_sese_p_rec): Return false if tree t is defined outside
12964         sese region.
12965         (scalar_evolution_in_region): If the tree t is invariant just return t.
12966         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
12967         struct sese to keep track of all the parameters which need renaming.
12968         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
12969         any data-refs.
12970         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
12972 2015-09-08  Tom de Vries  <tom@codesourcery.com>
12974         * Makefile.in (generated_files): Add params.list.
12975         (params.list, s-params.list): Add rule.
12976         * params.h (enum compiler_param): Include params-list.h.  Move define
12977         DEFPARAM, include params.def and undef DEFPARAM ...
12978         * params-list.h: ... here.  New file.
12980 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
12982         * pretty-print.h (printer_fn): Fix typo in comment.
12984 2015-09-07  Jeff Law  <law@redhat.com>
12986         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
12988 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12990         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
12991         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
12992         (arm_neon_fp16_hw): New.
12994 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12996         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
12997         UNITS_PER_WORD >= 4.
12999 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13001         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
13002         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
13003         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
13004         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
13005         (aarch64_float_extend_lo_v2df): Rename to...
13006         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
13008         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
13009         (float_extend_lo): Add v4sf.
13011         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
13012         * config/aarch64/iterators.md (VQ_HSF): New iterator.
13013         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
13014         (Vwide): New mode_attr.
13016 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13018         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
13019         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
13020         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
13021         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
13022         V4HF and V8HF variants to iterator.
13024         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
13026         * config/aarch64/iterators.md (VDQF_F16): New.
13027         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
13029 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13031         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
13032         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13033         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
13034         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
13035         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
13036         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13037         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
13038         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
13039         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
13040         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
13041         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
13042         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13043         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
13044         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
13045         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
13046         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
13047         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
13048         vld1q_dup_f16): New.
13050 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13052         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
13053         Reparameterize to...
13054         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
13055         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
13056         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
13058         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
13059         v8hf variant.
13060         (float_truncate_lo_): Use BUILTIN_VDF iterator.
13062         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
13064         * config/aarch64/iterators.md (VDF, Vdtype): New.
13065         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
13067 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13069         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
13070         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
13071         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
13072         Add __builtin_aarch64_simd_hf.
13073         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
13074         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
13075         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
13076         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
13077         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
13078         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
13079         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
13080         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
13081         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
13083         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
13084         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
13085         (VDC, Vdbl): Add V4HF.
13087 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13089         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
13090         V4HFmode and V8HFmode.
13091         (aarch64_split_simd_move): Add case for V8HFmode.
13092         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
13093         (aarch64_simd_builtin_std_type): Handle HFmode.
13094         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
13096         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
13097         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
13098         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
13100         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
13101         Float16x8_t.
13103         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
13104         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
13105         New typedefs.
13106         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
13107         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
13108         vst1q_lane_f16): New.
13109         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
13110         (VALLDI_F16, VALL_F16): New.
13111         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
13112         Add cases for V4HF and V8HF.
13113         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
13115 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13117         * config/arm/arm-builtins.c (VAR11, VAR12): New.
13118         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
13119         vld4_dup): Add v4hf variant.
13120         (vget_high, vget_low): Add v8hf variant.
13121         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
13122         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
13123         v4hf and v8hf variants.
13125         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
13126         (VDX): Add V4HF.
13127         (V_DOUBLE): Add case for V4HF.
13128         (VQX): Add V8HF.
13129         (V_HALF): Add case for V8HF.
13130         (VDQX): Add V4HF, V8HF.
13131         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
13132         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
13134         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
13135         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
13136         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
13137         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
13138         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
13139         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
13140         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
13141         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
13142         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
13144         (neon_vcreate, neon_vreinterpretv8qi<mode>,
13145         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
13146         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
13147         Change VDX to VD_RE.
13149         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
13150         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
13151         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
13153         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
13154         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
13155         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
13156         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
13157         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
13158         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
13159         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
13160         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
13161         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
13163 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13165         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
13166         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
13167         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
13168         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
13169         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13170         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
13171         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
13172         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
13173         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
13174         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
13175         New.
13177 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13179         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
13181         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
13183         * config/arm/arm-builtins.c (v8hf_UP): New.
13184         (arm_init_simd_builtin_types): Initialise Float16x8_t.
13186         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
13188         * config/arm/arm_neon.h (float16x8_t): New typedef.
13190 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13192         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
13193         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
13194         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
13195         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
13196         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13197         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
13198         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
13199         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
13200         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13201         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
13203 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
13205         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
13206         non-alphanumeric characters in the symbol name.
13208 2015-09-07  Marek Polacek  <polacek@redhat.com>
13210         PR inline-asm/67448
13211         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
13212         a memory input.
13214 2015-09-07  Marek Polacek  <polacek@redhat.com>
13216         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
13218 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
13220         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
13221         not warn.
13223 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
13225         PR middle-end/67452
13226         * tree-ssa-live.c: Include cfgloop.h.
13227         (remove_unused_locals): Clear loop->simduid if simduid is about
13228         to be removed from cfun->local_decls.
13230 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13232         PR target/65210
13233         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
13234         attribute as well.
13236 2015-09-04  Tom de Vries  <tom@codesourcery.com>
13238         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
13240 2015-09-04  Jeff Law  <law@redhat.com>
13242         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
13243         unnecessary constructor.  It's now trivial and implemented inside...
13244         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
13245         constructor.  Add comments to various methods.  Remove unused
13246         private fields.
13247         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
13248         * tree-vrp.c (identify_jump_threads): Likewise.
13249         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
13250         indentation issues.
13251         (thread_across_edge): Similarly.
13252         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
13253         arguments in constructor call.
13255 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
13257         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
13258         temp path contains a '-'.
13260 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
13261             Petr Murzin  <petr.murzin@intel.com>
13262             Kirill Yukhin  <kirill.yukhin@intel.com>
13264         * config/i386/i386-builtin-types.def
13265         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
13266         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
13267         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
13268         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
13269         * config/i386/i386.c
13270         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
13271         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13272         IX86_BUILTIN_SCATTERALTDIV16SI.
13273         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
13274         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
13275         __builtin_ia32_scatteraltdiv8si.
13276         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
13277         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13278         IX86_BUILTIN_SCATTERALTDIV16SI.
13279         (ix86_vectorize_builtin_scatter): New.
13280         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
13281         ix86_vectorize_builtin_scatter.
13283 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
13284             Petr Murzin  <petr.murzin@intel.com>
13285             Kirill Yukhin  <kirill.yukhin@intel.com>
13287         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
13288         * doc/tm.texi: Regenerate.
13289         * target.def: Add scatter builtin.
13290         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
13291         for loads/stores in case of gather/scatter accordingly.
13292         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13293         STMT_VINFO_GATHER_P(S).
13294         (vect_check_gather): Rename to ...
13295         (vect_check_gather_scatter): this.
13296         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
13297         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
13298         (vect_check_gather_scatter): Use it instead of vect_check_gather.
13299         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
13300         variable and new checkings for it accordingly.
13301         * tree-vect-stmts.c
13302         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13303         STMT_VINFO_GATHER_P(S).
13304         (vect_check_gather_scatter): Use it instead of vect_check_gather.
13305         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
13307 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
13309         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
13310         define_insn.
13311         (mulv16qi3): New define_expand.
13313 2015-09-03  Martin Sebor  <msebor@redhat.com>
13315         PR c/66516
13316         * doc/extend.texi (Other Builtins): Document when the address
13317         of a built-in function can be taken.
13319 2015-09-03  Richard Biener  <rguenther@suse.de>
13321         * dwarf2out.c (flush_limbo_die_list): Split out from ...
13322         (dwarf2out_early_finish): ... here.
13323         (dwarf2out_finish): Do not call dwarf2out_early_finish but
13324         flush_limbo_die_list.  Assert we have no deferred asm names.
13326 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13328         * optabs.c (expand_binop): Don't create a broadcast vector with a
13329         source element wider than the inner mode.
13331 2015-09-03  Richard Biener  <rguenther@suse.de>
13333         * varasm.c (output_constant): Use fold_convert instead of
13334         wide_int_to_tree.
13336 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13338         PR tree-optimization/65637
13339         * omp-low.c (expand_omp_for_static_chunk): Handle case that
13340         fin_bb has 2 predecessors.
13342 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13344         PR tree-optimization/65637
13345         * omp-low.c (find_phi_with_arg_on_edge): New function.
13346         (expand_omp_for_static_chunk): Fix inner loop phi.
13348 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13350         PR tree-optimization/65637
13351         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
13352         that head is NULL.
13354 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13356         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
13358 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13360         * doc/invoke.texi (parloops-chunk-size): Add item.
13361         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
13362         * tree-parloops.c: Include params.h.
13363         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
13364         param parloops-chunk-size is used.
13366 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13368         PR middle-end/67351
13369         * fold-const.c (fold_binary_loc) : Move
13370         Transform (x >> c) << c into x & (-1<<c) or
13371         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
13372         types using simplify and match.
13373         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
13374         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
13376 2015-09-03  Richard Biener  <rguenther@suse.de>
13378         PR ipa/66705
13379         * tree-ssa-structalias.c (ctor_for_analysis): New function.
13380         (create_variable_info_for_1): Use ctor_for_analysis instead
13381         of get_constructor.
13382         (create_variable_info_for): Likewise.
13384 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
13386         PR ipa/67280
13387         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
13388         in new callgraph edge.
13390 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
13392         PR target/59810
13393         PR target/63652
13394         PR target/63653
13395         * config/aarch64/aarch64-simd.md
13396         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
13397         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
13398         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
13399         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
13401 2015-09-02  Alan Modra  <amodra@gmail.com>
13403         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
13404         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
13405         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
13407 2015-09-02  Alan Modra  <amodra@gmail.com>
13409         PR target/67417
13410         * config/rs6000/predicates.md (current_file_function_operand): Don't
13411         return true for weak symbols.
13412         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
13414 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
13415             Andrew Bennett  <andrew.bennett@imgtec.com>
13417         * config/mips/mips-opts.h (mips_cb_setting): New enum.
13418         * config/mips/mips-protos.h: Add definitions for
13419         mips_output_jump and mips_output_equal_conditional_branch
13420         * config/mips/mips.c (MIPS_JR): Change to support the
13421         JIC instruction.
13422         (mips_emit_compare): Add support for the MIPS R6 conditional
13423         compact branches.
13424         (mips_process_sync_loop): Likewise.
13425         (mips_output_order_conditional_branch): Likewise.
13426         (mips16_build_call_stub): Change MIPS_CALL to
13427         mips_output_jump.
13428         (mips_print_operand_punctuation): Update 's' case to only
13429         apply to micromips r2.
13430         (mips_adjust_insn_length): Add support for forbidden slot
13431         hazards.
13432         (mips_avoid_hazard): Likewise.
13433         (mips_reorg_process_insns): Likewise.
13434         (mips_output_jump): New function.
13435         (mips_output_equal_conditional_branch): Likewise.
13436         (mips_output_conditional_branch): Use jrc/bc if compact
13437         branch support is enabled.  Ensure the forbidden slots
13438         between the two branch instructions is filled with a nop.
13439         (mips_option_override): Add support to process the compact
13440         branch option and set the correct defaults.  Prevent
13441         non-explict relocs being using for MIPS R6.
13442         (mips_trampoline_init): Add compact branch support.
13443         (mips_mult_zero_zero_cost): Allow zero initialisation of
13444         accumulators with TARGET_DSP.
13445         * config/mips/mips.h (TARGET_CB_NEVER): New define.
13446         (TARGET_CB_MAYBE): New define.
13447         (TARGET_CB_ALWAYS): New define.
13448         (ISA_HAS_DELAY_SLOTS): New define.
13449         (ISA_HAS_COMPACT_BRANCHES): New define.
13450         (ISA_HAS_JRC): New define.
13451         (MIPS_BRANCH_C): New define.
13452         (MIPS_CALL): Removed.
13453         (MICROMIPS_J): Removed.
13454         * config/mips/mips.md (compact_form): New attr.
13455         (hazard): Add support for forbidden slots.
13456         (define_delay): Add support for compact branches.
13457         (*branch_order<mode>): Likewise.
13458         (*branch_order<mode>_inverted): Likewise.
13459         (*branch_equality<mode>): Likewise.
13460         (*branch_equality<mode>_inverted): Likewise.
13461         (*jump_absolute): Likewise.
13462         (*jump_pic): Likewise.
13463         (indirect_jump): Use mips_output_jump to produce assembly output.
13464         (tablejump_<mode>"): Likewise.
13465         (*<optab>"): Likewise.
13466         (<optab>_internal): Likewise.
13467         (sibcall_internal): Likewise.
13468         (sibcall_value_internal): Likewise.
13469         (sibcall_value_multiple_internal): Likewise.
13470         (call_internal): Likewise.
13471         (call_split): Likewise.
13472         (call_internal_direct): Likewise.
13473         (call_direct_split): Likewise.
13474         (call_value_internal): Likewise.
13475         (call_value_split): Likewise.
13476         (call_value_internal_direct): Likewise.
13477         (call_value_direct_split): Likewise.
13478         (call_value_multiple_internal): Likewise.
13479         (call_value_multiple_split): Likewise.
13480         (mips_get_fcsr_mips16_<mode>): Likewise.
13481         (mips_set_fcsr_mips16_<mode>): Likewise.
13482         (tls_get_tp_mips16_<mode>): Likewise.
13483         * config/mips/mips.opt: Add -mcompact-branches option.
13484         * config/mips/predicates.md (order_operator): Ensure the
13485         conditional compact branches are only used if the ISA them.
13486         * doc/invoke.texi: Document -mcompact-branches option.
13488 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
13490         PR target/61578
13491         * lra-lives.c (process_bb_lives): Process move pseudos with the
13492         same value for copies and preferences
13493         * lra-constraints.c (match_reload): Create match reload pseudo
13494         with the same value from single dying input pseudo.
13496 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
13498         PR target/67405
13499         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
13501 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
13503         * trans-mem.c: Add contributed-by.
13504         * trans-mem.h: Same.
13506 2015-09-01  Richard Biener  <rguenther@suse.de>
13508         * expr.c (expand_expr_real_1): For expanding TERed defs
13509         set the current location to that of the def if not UNKNOWN.
13511 2015-09-01  David Sherwood  <david.sherwood@arm.com>
13513         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
13515 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13517         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
13518         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
13519         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
13520         Include rtl-iter.h.
13521         (noce_simple_bbs): New function.
13522         (noce_try_move): Bail if basic blocks are not simple.
13523         (noce_try_store_flag): Likewise.
13524         (noce_try_store_flag_constants): Likewise.
13525         (noce_try_addcc): Likewise.
13526         (noce_try_store_flag_mask): Likewise.
13527         (noce_try_cmove): Likewise.
13528         (noce_try_minmax): Likewise.
13529         (noce_try_abs): Likewise.
13530         (noce_try_sign_mask): Likewise.
13531         (noce_try_bitop): Likewise.
13532         (bbs_ok_for_cmove_arith): New function.
13533         (noce_emit_all_but_last): Likewise.
13534         (noce_emit_insn): Likewise.
13535         (noce_emit_bb): Likewise.
13536         (noce_try_cmove_arith): Handle non-simple basic blocks.
13537         (insn_valid_noce_process_p): New function.
13538         (contains_mem_rtx_p): Likewise.
13539         (bb_valid_for_noce_process_p): Likewise.
13540         (noce_process_if_block): Allow non-simple basic blocks
13541         where appropriate.
13543 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
13545         * tree-ssa-dom.c (record_equivalences_from_phis,
13546         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
13547         (lookup_avail_expr): Likewise, and remove comment and unused temp.
13549 2015-09-01  Nick Clifton  <nickc@redhat.com>
13551         * config/msp430/msp430.opt (mcpu): Fix typo.
13553 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13555         * config/aarch64/aarch64.c (aarch64_set_current_function):
13556         Re-layout any vector parameters have non-simd layout.
13557         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
13558         Delete.
13559         (aarch64_simd_expand_args): Delete call to the above.
13561 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
13563         * doc/invoke.texi (asan-stack): Add space before option.
13565 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
13567         * tree.h (zerop): New function.
13568         * tree.c (zerop): Likewise.
13569         (element_precision): Handle expressions.
13570         * match.pd (define_predicates): Add zerop.
13571         (x <= +Inf): Fix comment.
13572         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
13573         * fold-const.c (fold_binary_loc): ... here. Remove.
13575 2015-08-31  Richard Biener  <rguenther@suse.de>
13577         PR middle-end/67381
13578         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
13580 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
13582         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
13583         (CEXPI): New operator list.
13584         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
13585         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
13586         Converted from ...
13587         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
13589 2015-08-31  Tom de Vries  <tom@codesourcery.com>
13591         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
13592         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
13593         parameter.
13594         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
13595         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
13596         (rewrite_into_loop_closed_ssa): ... here.
13597         (replace_uses_in_dominated_bbs): Remove function.
13598         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
13599         rewrite_into_loop_closed_ssa_1.
13601 2015-08-31  Michael Matz  <matz@suse.de>
13603         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
13604         enter entry and exit blocks for reverse post order.
13606 2015-08-31  Richard Biener  <rguenther@suse.de>
13608         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
13609         (lto_location_cache::current_sysp): Likewise.
13610         (output_block::current_sysp): Likewise.
13611         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
13612         (lto_location_cache::apply_location_cache): Properly record
13613         system header locations.
13614         (lto_location_cache::input_location): Input whether a file
13615         is a system header.
13616         * lto-streamer-out.c (lto_output_location): Stream whether a file
13617         is a system header.
13619 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13621         PR bootstrap/67363
13622         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
13624 2015-08-31  Tom de Vries  <tom@codesourcery.com>
13626         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
13627         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
13628         Improve function header comments.
13630 2015-08-30  Michael Collison  <michael.collison@linaro.org>
13632         PR other/67320
13633         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
13634         standard names
13636 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13638         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
13639         special_handling bitfield.
13640         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
13641         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
13642         that represents a general xxpermdi.
13643         (insn_is_swappable_p): Add handling for vec_concat of two
13644         doublewords, which maps to a specific xxpermdi.
13645         (adjust_xxpermdi): New function.
13646         (adjust_concat): Likewise.
13647         (handle_special_swappables): Call adjust_xxpermdi and
13648         adjust_concat.
13649         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
13651 2015-08-30  Rich Felker <dalias@libc.org>
13653         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
13654         case instead of sh[123456ble]-*-*.
13656 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
13658         * ira.c (print_unform_and_important_classes,
13659         print_translated_classes): Remove reg_class_names static array.
13660         (print_unform_and_important_classes): Rename to ...
13661         (print_uniform_and_important_classes): ... this.
13662         (ira_debug_allocno_classes): Update accordingly.
13664 2015-08-29  Tom de Vries  <tom@codesourcery.com>
13666         PR tree-optimization/46193
13667         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
13668         clause.
13670 2015-08-28  Jeff Law  <law@redhat.com>
13672         PR lto/66752
13673         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13674         unable to find X NE 0 in the tables, return X as the simplified
13675         condition.
13676         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13677         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
13678         to VISISTED_BBS.
13679         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13680         after removing the control flow statement and unnecessary edges.
13682 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
13684         Revert:
13685         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
13687         PR tree-optimization/67283
13688         * tree-sra.c (type_consists_of_records_p): Rename to...
13689         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13691         (completely_scalarize_record): Rename to...
13692         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
13693         code to:
13694         (scalarize_elem): New.
13696 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
13698         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
13699         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
13700         (aarch64_symbol_type): Likewise.
13701         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13702         Likewise.
13703         (aarch64_expand_mov_immediate): Likewise.
13704         (aarch64_print_operand): Likewise.
13705         (aarch64_classify_tls_symbol): Likewise.
13707 2015-08-28  Richard Biener  <rguenther@suse.de>
13709         * cgraphunit.c (symbol_table::compile): Move early debug generation
13710         and finish...
13711         (symbol_table::finalize_compilation_unit): ... back here and
13712         add a !seen_error () guard.
13714 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
13716         * toplev.c (process_options): Do not use flag_loop_block,
13717         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
13718         flag_loop_optimize_isl.
13720 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
13722         * Makefile.in (OBJS): Remove graphite-blocking.o and
13723         graphite-interchange.o.
13724         * common.opt (floop-strip-mine, floop-interchange, floop-block):
13725         Alias of floop-nest-optimize.
13726         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
13727         Document as alias of -floop-nest-optimize.
13728         * graphite-blocking.c: Remove.
13729         * graphite-interchange.c: Remove.
13730         * graphite-optimize-isl.c: Include dumpfile.h.
13731         (getScheduleForBand): Add dump for tiled loops.  Use
13732         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
13733         * graphite-poly.c (scop_max_loop_depth): Remove.
13734         (print_scattering_function_1): Remove.
13735         (print_scattering_function): Remove.
13736         (print_scattering_functions): Remove.
13737         (debug_scattering_function): Remove.
13738         (debug_scattering_functions): Remove.
13739         (apply_poly_transforms): Remove use of flag_loop_block,
13740         flag_loop_strip_mine, and flag_loop_interchange.
13741         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
13742         PBB_ORIGINAL.
13743         (print_pdr_access_layout): Remove.
13744         (print_pdr): Print ISL representation.
13745         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
13746         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
13747         (free_scop): Same.
13748         (openscop_print_pbb_domain): Remove.
13749         (print_pbb): Remove call to print_scattering_function.
13750         (openscop_print_scop_context): Remove.
13751         (print_scop_context): Do not print matrices anymore.
13752         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
13753         SCOP_TRANSFORMED_SCHEDULE.
13754         (print_isl_set): Add printing of a new line.
13755         (print_isl_map): Same.
13756         (print_isl_aff): Same.
13757         (print_isl_constraint): Same.
13758         (loop_to_lst): Remove.
13759         (scop_to_lst): Remove.
13760         (lst_indent_to): Remove.
13761         (print_lst): Remove.
13762         (debug_lst): Remove.
13763         (dot_lst_1): Remove.
13764         (dot_lst): Remove.
13765         (reverse_loop_at_level): Remove.
13766         (reverse_loop_for_pbbs): Remove.
13767         * graphite-poly.h (pdr_dim_iter_domain): Remove.
13768         (pdr_nb_params): Remove.
13769         (pdr_alias_set_dim): Remove.
13770         (pdr_subscript_dim): Remove.
13771         (pdr_iterator_dim): Remove.
13772         (pdr_parameter_dim): Remove.
13773         (same_pdr_p): Remove.
13774         (struct poly_scattering): Remove.
13775         (struct poly_bb): Remove _original, _transformed, _saved.
13776         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
13777         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
13778         (PBB_NB_LOCAL_VARIABLES): Remove.
13779         (PBB_NB_SCATTERING_TRANSFORM): Remove.
13780         (schedule_to_scattering): Remove.
13781         (number_of_write_pdrs): Remove.
13782         (pbb_dim_iter_domain): Remove.
13783         (pbb_nb_params): Remove.
13784         (pbb_nb_scattering_orig): Remove.
13785         (pbb_nb_scattering_transform): Remove.
13786         (pbb_nb_dynamic_scattering_transform): Remove.
13787         (pbb_nb_local_vars): Remove.
13788         (pbb_iterator_dim): Remove.
13789         (pbb_parameter_dim): Remove.
13790         (psco_scattering_dim): Remove.
13791         (psct_scattering_dim): Remove.
13792         (psct_local_var_dim): Remove.
13793         (psco_iterator_dim): Remove.
13794         (psct_iterator_dim): Remove.
13795         (psco_parameter_dim): Remove.
13796         (psct_parameter_dim): Remove.
13797         (psct_dynamic_dim): Remove.
13798         (psct_static_dim): Remove.
13799         (psct_add_local_variable): Remove.
13800         (new_lst_loop): Remove.
13801         (new_lst_stmt): Remove.
13802         (free_lst): Remove.
13803         (copy_lst): Remove.
13804         (lst_add_loop_under_loop): Remove.
13805         (lst_depth): Remove.
13806         (lst_dewey_number): Remove.
13807         (lst_dewey_number_at_depth): Remove.
13808         (lst_pred): Remove.
13809         (lst_succ): Remove.
13810         (lst_find_pbb): Remove.
13811         (find_lst_loop): Remove.
13812         (lst_find_first_pbb): Remove.
13813         (lst_empty_p): Remove.
13814         (lst_find_last_pbb): Remove.
13815         (lst_contains_p): Remove.
13816         (lst_contains_pbb): Remove.
13817         (lst_create_nest): Remove.
13818         (lst_remove_from_sequence): Remove.
13819         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
13820         (lst_niter_for_loop): Remove.
13821         (pbb_update_scattering): Remove.
13822         (lst_update_scattering_under): Remove.
13823         (lst_update_scattering): Remove.
13824         (lst_insert_in_sequence): Remove.
13825         (lst_replace): Remove.
13826         (lst_substitute_3): Remove.
13827         (lst_distribute_lst): Remove.
13828         (lst_remove_all_before_including_pbb): Remove.
13829         (lst_remove_all_before_excluding_pbb): Remove.
13830         (struct scop): Remove original_schedule, transformed_schedule, and
13831         saved_schedule.
13832         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
13833         (SCOP_SAVED_SCHEDULE): Remove.
13834         (poly_scattering_new): Remove.
13835         (poly_scattering_free): Remove.
13836         (poly_scattering_copy): Remove.
13837         (store_scattering_pbb): Remove.
13838         (store_lst_schedule): Remove.
13839         (restore_lst_schedule): Remove.
13840         (store_scattering): Remove.
13841         (restore_scattering_pbb): Remove.
13842         (restore_scattering): Remove.
13843         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
13844         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
13845         compute the scattering polyhedron dimension from the dimension of
13846         pbb->domain.
13847         (build_scop_scattering): Update call to
13848         build_pbb_scattering_polyhedrons.
13849         (build_poly_scop): Remove call to scop_to_lst.
13850         * graphite.c (graphite_transform_loops): Add call to print_scop.
13851         (gate_graphite_transforms): Remove use of flag_loop_block,
13852         flag_loop_interchange, and flag_loop_strip_mine.
13854 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
13856         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
13857         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
13858         -floop-nest-optimize.
13859         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
13860         (generate_luj_sepclass): Remove.
13861         (generate_luj_options): Remove.
13862         (set_options): Remove opt_luj.
13863         (scop_to_isl_ast): Remove opt_luj.
13864         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
13865         flag_loop_unroll_jam.
13866         (getPrevectorMap_full): Remove.
13867         (getScheduleForBandList): Remove map_sepcl.
13868         (getScheduleMap): Same.
13869         (apply_schedule_map_to_scop): Remove sepcl.
13870         (optimize_isl): Same.
13871         * graphite-poly.c (apply_poly_transforms): Remove check for
13872         flag_loop_unroll_jam.
13873         (new_poly_bb): Remove map_sepclass.
13874         * graphite-poly.h (struct poly_bb): Same.
13875         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
13876         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
13877         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
13878         * toplev.c (process_options): Remove flag_loop_unroll_jam.
13880 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
13882         PR target/67317
13883         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
13884         (addqi3_cc): Ditto.
13885         (UNSPEC_ADD_CARRY): Remove.
13886         (addqi3_cconly_overflow): New expander.
13887         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
13888         Adjust for changed add<mode>3_carry.
13889         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
13890         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
13891         (<plusminus_insn><mode>3_carry): Remove expander.
13892         (*<plusminus_insn><mode>3_carry): Split insn pattern to
13893         add<mode>3_carry and sub<mode>3_carry.
13894         (plusminus_carry_mnemonic): Remove code attribute.
13895         (add<mode>3_carry): Canonicalize insn pattern.
13896         (*addsi3_carry_zext): Ditto.
13897         (sub<mode>3_carry): Ditto.
13898         (*subsi3_carry_zext): Ditto.
13899         (adcx<mode>3): Remove insn pattern.
13900         (addcarry<mode>): New insn pattern.
13901         (subborrow<mode>): Ditto.
13902         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
13903         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
13904         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
13905         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
13906         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
13907         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
13908         Rewrite expander to not clobber carry flag chains.
13910 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
13912         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
13913         instead of a rotate.
13915 2015-08-27  Marek Polacek  <polacek@redhat.com>
13917         PR middle-end/67005
13918         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
13919         an entry into an irreducible region.
13921 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13923         * configure: Regenerate.
13925 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
13927         PR tree-optimization/67283
13928         * tree-sra.c (type_consists_of_records_p): Rename to...
13929         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13931         (completely_scalarize_record): Rename to...
13932         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13933         (scalarize_elem): New.
13935 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
13937         * tree-sra.c (completely_scalarize_var): Rename to...
13938         (create_total_scalarization_access): ... Here. Drop call to
13939         completely_scalarize_record.
13941         (analyze_all_variable_accesses): Replace completely_scalarize_var
13942         with create_total_scalarization_access and completely_scalarize_record.
13944 2015-08-27  Alan Modra  <amodra@gmail.com>
13946         PR target/67356
13947         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
13948         for operand 1.
13950 2015-08-27  Richard Biener  <rguenther@suse.de>
13952         * passes.c (rest_of_decl_compilation): Guard early_global_decl
13953         call with !seen_error ().
13954         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
13955         early debug generation and finish...
13956         (symbol_table::compile): ... here to put it after a !seen_error ()
13957         guard.
13959 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13961         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
13962         Solaris 12+.
13964 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13965             Andre Vieira  <andre.simoesdiasvieira@arm.com>
13967         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
13968         (*cb<optab><mode>1): Likewise.
13969         (*tb<optab><mode>1): Likewise.
13970         (*cb<optab><mode>1): Likewise.
13971         * config/aarch64/iterators.md (inv_cb): New code attribute.
13972         (inv_tb): Likewise.
13973         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
13974         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
13976 2015-08-27  Richard Biener  <rguenther@suse.de>
13978         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
13980 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13982         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
13983         trap to fix ICE.
13985 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
13987         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
13988         Add declaration.
13990         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
13991         comment.
13992         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
13993         floating point in VSX registers.
13994         (rs6000_output_move_128bit): Always print out the set insn if we
13995         can't generate an appropriate 128-bit move.
13996         (rs6000_generate_compare): Add support for IEEE 128-bit floating
13997         point in VSX registers comparisons.
13998         (rs6000_expand_float128_convert): Likewise.
14000         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
14001         predicate for only GPR hard registers.
14003         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
14004         modes to iterators. Add new iterators for moving 128-bit values in
14005         scalar FPR registers and VSX registers.
14006         (FMOVE128): Likewise.
14007         (FMOVE128_FPR): Likewise.
14008         (FMOVE128_GPR): Likewise.
14009         (FMOVE128_VSX): Likewise.
14010         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
14011         in VSX registers.
14012         (IFKF): Likewise.
14013         (IBM128): Likewise.
14014         (TFIFKF): Likewise.
14015         (RELOAD): Add IEEE 128-bit floating point modes.
14016         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
14017         floating point in VSX registers modes.
14018         (signbit<mode>2, IBM128 iterator): Likewise.
14019         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
14020         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
14021         (negtf2): Likewise.
14022         (neg<mode>2, TFIFKF iterator): Likewise.
14023         (negtf2_internal): Likewise.
14024         (abstf2): Likewise.
14025         (abs<mode>2, TFIFKF iterator): Likewise.
14026         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
14027         VSX insn support for negate, absolute value, and negative absolute
14028         value.
14029         (ieee_128bit_vsx_neg<mode>2): Likewise.
14030         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
14031         (ieee_128bit_vsx_abs<mode>2): Likewise.
14032         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
14033         (ieee_128bit_vsx_nabs<mode>2): Likewise.
14034         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
14035         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
14036         floating point in VSX registers.
14037         (unpack<mode>_dm): Likewise.
14038         (unpack<mode>_nodm): Likewise.
14039         (pack<mode>): Likewise.
14040         (unpackv1ti): Likewise.
14041         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
14042         (packv1ti): Likewise.
14043         (pack<mode>, FMOVE128_VSX iterator): Likewise.
14044         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
14045         registers.
14046         (extenddftf2_internal): Likewise.
14047         (trunctfdf2): Likewise.
14048         (trunctfdf2_internal2): Likewise.
14049         (fix_trunc_helper): Likewise.
14050         (fix_trunctfdi2"): Likewise.
14051         (floatditf2): Likewise.
14052         (floatuns<mode>tf2): Likewise.
14053         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
14054         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
14055         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
14056         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
14057         (float<SDI:mode><IFKF:mode>2): Likewise.
14058         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
14060 2015-08-26  Renlin Li  <renlin.li@arm.com>
14062         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
14064 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14065             Jiong Wang  <jiong.wang@arm.com>
14067         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
14068         (tlsie_tiny_<mode>): New define_insn.
14069         (tlsie_tiny_sidi): Likewise.
14070         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
14071         SYMBOL_TINY_TLSIE.
14072         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
14073         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14074         SYMBOL_TINY_TLSIE.
14075         (aarch64_expand_mov_immediate): Likewise.
14076         (aarch64_print_operand): Likewise.
14077         (arch64_classify_tls_symbol): Likewise.
14079 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14081         * config/arm/arm-arches.def: Replace single value flags with
14082         an initializer built from ARM_FSET_MAKE_CPU1.
14083         * config/arm/arm-cores.def: Likewise.
14084         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
14085         derivation from the ARM_CORE macro definition, use the given value
14086         instead.
14087         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
14088         ARM_ARCH macro definition, use the given value instead.
14090 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14092         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
14093         feature set.
14094         (struct builtin_description): Replace field mask with field
14095         features.
14096         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
14097         (IWMMXT2_BUILTIN): Likewise.
14098         (IWMMXT2_BUILTIN2): Likewise.
14099         (FP_BUILTIN): Likewise.
14100         (CRC32_BUILTIN): Likewise.
14101         (CRYPTO_BUILTIN): Likewise.
14102         (iwmmx_mbuiltin): Likewise.
14103         (iwmmx2_mbuiltin): Likewise.
14104         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
14105         struct builtin_description.
14107 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14109         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
14110         (struct builtin_description): Change type of mask to unsigned
14111         long.
14112         * config/arm/arm-protos.h (insn_flags): Declare as type
14113         arm_feature_set.
14114         (tune_flags): Likewise.
14115         * config/arm/arm.c (feature_count): New.
14116         (insn_flags): Define as type arm_feature_set.
14117         (tune_flags): Likewise.
14118         (struct processors): Define field flags as type arm_feature_set.
14119         (all_cores): Update for change to struct processors.
14120         (all_architectures): Likewise.
14121         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
14122         macros.
14123         (arm_option_override_internal): Likewise.
14124         (arm_option_override): Likewise.
14126 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14127             Jiong Wang  <jiong.wang@arm.com>
14129         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
14130         tls size for tiny, small, large memory model.
14131         (aarch64_load_symref_appropriately): Support new symbol types.
14132         (aarch64_expand_mov_immediate): Likewise.
14133         (aarch64_print_operand): Likewise.
14134         (aarch64_classify_tls_symbol): Likewise.
14135         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
14136         (aarch64_symbol_type): Likewise.
14137         * config/aarch64/aarch64.md (tlsle): Deleted.
14138         (tlsle12_<mode>): New define_insn.
14139         (tlsle24_<mode>): Likewise.
14140         (tlsle32_<mode>): Likewise.
14141         (tlsle48_<mode>): Likewise.
14142         * doc/sourcebuild.texi (AArch64-specific attributes): Document
14143         "aarch64_tlsle32".
14145 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14147         * config/arm/arm-protos.h (FL_NONE): New.
14148         (FL_ANY): New.
14149         (arm_feature_set): New.
14150         (ARM_FSET_MAKE): New.
14151         (ARM_FSET_MAKE_CPU1): New.
14152         (ARM_FSET_MAKE_CPU2): New.
14153         (ARM_FSET_CPU1): New.
14154         (ARM_FSET_CPU2): New.
14155         (ARM_FSET_EMPTY): New.
14156         (ARM_FSET_ANY): New.
14157         (ARM_FSET_HAS_CPU1): New.
14158         (ARM_FSET_HAS_CPU2): New.
14159         (ARM_FSET_HAS_CPU): New.
14160         (ARM_FSET_ADD_CPU1): New.
14161         (ARM_FSET_ADD_CPU2): New.
14162         (ARM_FSET_DEL_CPU1): New.
14163         (ARM_FSET_DEL_CPU2): New.
14164         (ARM_FSET_UNION): New.
14165         (ARM_FSET_INTER): New.
14166         (ARM_FSET_XOR): New.
14167         (ARM_FSET_EXCLUDE): New.
14168         (AFM_FSET_IS_EMPTY): New.
14169         (ARM_FSET_CPU_SUBSET): New.
14171 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
14173         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14174         SYMBOL_TLSLE to SYMBOL_TLSLE24.
14175         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14176         Likewise.
14177         (aarch64_expand_mov_immediate): Likewise.
14178         (aarch64_print_operand): Likewise.
14179         (aarch64_classify_symbol): Likewise.
14181 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
14183         * config/aarch64/aarch64.opt (mtls-size): New entry.
14184         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
14185         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
14186         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
14188 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14190         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
14191         ARM_CORE entry.  Fix some white-space.
14192         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
14193         ARM_CORE definition.
14195 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14197         * fold-const.c (fold_binary_loc) : Move Optimize
14198         root(x)*root(y) as root(x*y) to match.pd.
14199         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
14200         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
14201         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
14202         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
14203         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
14204         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
14205         (mult (exps:s @0) (exps:s @1)) : New simplifier.
14206         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
14207         (rdiv @0 (exps:s @1)) : New simplifier.
14209 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
14211         * gcc.c (driver::finalize): Only assign to extra_specs if
14212         [EXTRA_SPECS].
14214 2015-08-25  Marek Polacek  <polacek@redhat.com>
14216         PR middle-end/67330
14217         * varasm.c (declare_weak): Return after giving an error.
14219 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
14221         * gcc-main.c (main): Add params to driver ctor.
14222         * gcc.c (class env_manager): New.
14223         (env): New global.
14224         (env_manager::init): New.
14225         (env_manager::get): New.
14226         (env_manager::xput): New.
14227         (env_manager::restore): New.
14228         Poison getenv and putenv.
14229         (DEFAULT_TARGET_SYSTEM_ROOT): New.
14230         (target_system_root): Update initialization to use
14231         DEFAULT_TARGET_SYSTEM_ROOT.
14232         (struct spec_list): Add field "default_ptr".
14233         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
14234         (init_spec): Likewise.
14235         (set_spec): Clear field "default_ptr".
14236         (read_specs): Free "spec" and "buffer".
14237         (xputenv): Reimplement in terms of env_manager.
14238         (process_command): Replace ::getenv calls with calls to the
14239         env_manager singleton.
14240         (process_brace_body): Free string in three places.
14241         (driver::driver): New.
14242         (driver::~driver): New.
14243         (used_arg): Convert from a function to...
14244         (class used_arg_t): ...this class, and...
14245         (used_arg): ...this new global instance.
14246         (used_arg_t::finalize): New function.
14247         (getenv_spec_function): Add "const" to local "value".  Replace
14248         ::getenv call with call to the env_manager singleton.
14249         (path_prefix_reset): New function.
14250         (driver::finalize): New function.
14251         * gcc.h (driver::driver): New.
14252         (driver::~driver): New.
14253         (driver::finalize): New.
14255 2015-08-25  Nathan Sidwell  <nathan@acm.org>
14257         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
14258         target doesn't have one.
14260 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
14262         PR target/67346
14263         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
14265 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
14267         PR target/67344
14268         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
14269         a define_insn, remove second alternative.
14271 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
14272             Joseph Myers  <joseph@codesourcery.com>
14274         * gcc.c (struct switchstr): Expand comment.
14276 2015-08-25  Nathan Sidwell  <nathan@acm.org>
14278         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
14279         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
14281 2015-08-25  Richard Biener  <rguenther@suse.de>
14283         PR middle-end/67306
14284         * genmatch.c (expr::gen_transform): Verify the result of
14285         builtin_decl_implicit.
14286         (dt_simplify::gen_1): Likewise.
14288 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14290         * config/arm/constraints.md: Also list Cs and US ARM-specific
14291         constraints as used.
14293 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
14295         PR target/66609
14296         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
14297         UNSPEC_PCREL.
14298         (nonpic_symbol_mentioned_p): Likewise.
14299         (sh_delegitimize_address): Likewise.
14300         (sh_function_ok_for_sibcall): Take into account weak symbols.
14301         (sh_expand_sym_label2reg): New.
14302         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
14303         * config/sh/sh.md (UNSPEC_PCREL): New enum.
14304         (call_pcrel): Use sh_expand_sym_label2reg.
14305         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14306         (symPCREL_label2reg) New expand.
14308 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
14310         * graphite-poly.c: Change type of region from void* to sese.
14311         * graphite-poly.h (struct scop): Changing the type of scop::region
14312         from void* to sese. Change accessor macro accordingly.
14313         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
14315 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
14317         * graphite-scop-detection.c (stmt_simple_for_scop_p):
14318         Constrain only on INTEGER_TYPE.
14320 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
14322         PR target/67211
14323         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
14324         -mefficient-unaligned-vsx on ISA 2.7.
14326         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
14327         option to a masked option.
14329         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
14330         logic for -mefficient-unaligned-vsx so that it is set via an arch
14331         ISA option, instead of being set if -mtune=power8 is set. Move
14332         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
14333         near other default option handling.
14335 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14337         * genflags.c (gen_macro): Delete.
14338         (gen_proto): Don't create GEN.*CALL.* macros.
14339         * gensupport.h (get_file_location): Declare.
14340         * gensupport.c (rtx_locs): New variable.
14341         (read_md_rtx): Record rtx locations.
14342         (get_file_location): New function.
14343         * target-insns.def (call, call_pop, call_value, call_value_pop)
14344         (sibcall, sibcall_value): New patterns.
14345         * gentarget-def.c (parse_argument): New function.
14346         (def_target_insn): Use it.  Handle optional operands.  Raise an
14347         error if an .md pattern has the wrong number of operands for the
14348         pattern name.  Remove the names of unused operands from the prototype.
14349         * builtins.c (expand_builtin_apply): Use targetm functions
14350         instead of HAVE_call_value and GEN_CALL_VALUE.
14351         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
14352         and sibcall_value_pop.
14353         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
14354         of GEN_CALL.
14355         * config/alpha/alpha.md (untyped_call): Likewise.
14356         * config/iq2000/iq2000.md (untyped_call): Likewise.
14357         * config/m68k/m68k.md (untyped_call): Likewise.
14358         * config/mips/mips.md (untyped_call): Likewise.
14359         * config/pa/pa.md (untyped_call): Likewise.
14360         * config/rs6000/rs6000.md (untyped_call): Likewise.
14361         * config/sparc/sparc.md (untyped_call): Likewise.
14362         * config/tilegx/tilegx.md (untyped_call): Likewise.
14363         * config/tilepro/tilepro.md (untyped_call): Likewise.
14364         * config/visium/visium.md (untyped_call): Likewise.
14365         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
14366         gen_call_value instead of GEN_CALL_VALUE.
14367         * config/arm/arm.md (untyped_call): Likewise.
14368         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
14369         GEN_CALL.
14371 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14373         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
14374         (have_cbranchcc4): New variable.
14375         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
14376         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
14377         (if_convert): Initialize have_cbranchcc4.
14379 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14381         * builtins.c (expand_cmpstrn): Rename to...
14382         (expand_cmpstrn_or_cmpmem): ...this.
14383         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
14384         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
14385         Remove mode argument.
14386         (expand_builtin): Update accordingly.
14388 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14390         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
14391         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
14392         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
14393         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
14394         Add predicates for operands 0 and 3.
14395         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
14396         operand.
14397         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
14398         immediate_operand to nonmemory_operand.
14400 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14402         * df-scan.c (df_insn_info_init_fields): New function, split out
14403         from...
14404         (df_insn_create_insn_record): ...here.
14405         (df_insn_info_free_fields): New function, split out from...
14406         (df_insn_info_delete): ...here.
14407         (df_insn_rescan): Use the new functions instead of freeing and
14408         reallocating the df_insn_info.
14410 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14412         * doc/install.texi (Binaries): Remove links no longer valid.
14414 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
14416         * config/nvptx/mkoffload.c (process): Replace
14417         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
14419 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
14421         PR target/67329
14422         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
14424 2015-08-24  Renlin Li  <renlin.li@arm.com>
14426         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
14427         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
14428         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
14429         * config/arm/constraints.md ("j"): Add check for high code.
14431 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14433         PR tree-optimization/65468
14434         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
14435         chunk_size is one.
14437 2015-08-24  Nathan Sidwell  <nathan@acm.org>
14439         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
14440         change to nvptx_type_from_mode call. Use arg_promotion for both
14441         split and non-split args.
14443 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14445         * target-insns.def (movstr): New pattern.
14446         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
14447         (expand_movstr): Use targetm rather than HAVE_movstr/
14448         CODE_FOR_movstr.
14450 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14452         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
14453         cast syntax.
14455 2015-08-24  Andrew Pinski  <apinski@cavium.com>
14457         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
14458         AARCH64_EXTRA_TUNING_OPTION.
14459         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
14460         New enum.
14461         (aarch64_extra_tuning_flags): Base the shifted value on the index
14462         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
14463         * config/aarch64/aarch64.c: Remove the last argument to
14464         AARCH64_EXTRA_TUNING_OPTION.
14466 2015-08-23  Nathan Sidwell  <nathan@acm.org>
14468         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
14469         decls.
14470         (nvptx_declare_function_name): Insert formatting tabs for
14471         consistency.
14473 2015-08-23  Tom de Vries  <tom@codesourcery.com>
14475         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
14476         parm_decl, rather than generating a dummy default def in cfun.
14477         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
14478         ssa_name from cfun and child_fn do not share a stmt as def stmt.
14479         (move_stmt_op): Handle PARM_DECl.
14480         (gather_ssa_name_hash_map_from): New function.
14481         (move_sese_region_to_fn): Add default defs for function params, and add
14482         them to vars_map.  Release copied ssa names.
14483         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
14485 2015-08-23  Tom de Vries  <tom@codesourcery.com>
14487         * doc/sourcebuild.texi: Rename vect_no_int_max with
14488         vect_no_int_min_max.  Update description.
14490 2015-08-22  Andrew Pinski  <apinski@cavium.com>
14492          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
14493         * config/aarch64/aarch64-protos.h
14494         (aarch64_fusion_pairs_index): New enum.
14495         (aarch64_fusion_pairs): Base the shifted value on the index instead
14496         Rewrite AARCH64_FUSE_ALL to be based on the end index.
14497         of the argument to AARCH64_FUSION_PAIR.
14498         * config/aarch64/aarch64.c: Remove the last argument to
14499         AARCH64_FUSION_PAIR.
14501 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
14503         * dominance.c (new_zero_array): Define.
14504         (dom_info): Redefine as class with proper encapsulation.
14505         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
14506         Add new members.
14507         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
14508         allocations/deallocations.  Pass function as parameter (instead of
14509         using cfun).
14510         (dom_info::get_idom): Define accessor method.
14511         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
14512         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
14513         (calculate_dominance_info): Adjust to use dom_info class.
14514         (verify_dominators): Likewise.
14516 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
14518         * print-rtl.c (print_rtx): Check the correct range for
14519         flag_dump_unnumbered_links to behave as documented.
14521         PR rtl-optimization/67227
14522         PR rtl-optimization/64164
14523         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
14524         (nonoverlapping_memrefs_p): Test offsets and sizes when given
14525         identical gimple_reg exprs.
14527 2015-08-21  Nathan Sidwell  <nathan@acm.org>
14529         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
14530         expansion.
14531         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
14532         crtl->stack_alignment_needed to determine alignment.
14533         (nvptx_get_drap_rtx): New.
14534         (TARGET_GET_DRAP_RTX): Override.
14535         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
14537 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14539         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
14541 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14543         * configure.ac: Remove uwin* cases.
14544         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
14545         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
14546         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
14547         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
14548         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
14549         i[34567]86-*-uwin*, powerpc-*-beos*.
14551 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
14553         * gencodes.c (gencodes): Print the comma for the preceding
14554         enum value rather than the current one.  Use aliased enum values
14555         rather than #defines for compiled-out patterns.
14556         (main): Update accordingly.  Replace LAST_INSN_CODE with
14557         NUM_INSN_CODES.
14558         * lra.c (insn_code_data): Update accordingly.
14559         (finish_insn_code_data_once, get_static_insn_data): Likewise.
14560         * recog.h (target_recog): Likewise.
14561         (preprocess_insn_constraints): Change parameter to unsigned int.
14562         * recog.c (preprocess_insn_constraints): Likewise.
14563         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
14564         * tree-vect-stmts.c (vectorizable_operation): Simplify.
14566 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
14568         PR rtl-optimization/61657
14569         * loop-iv.c (iv_number_of_iterations): Declare up and down as
14570         unsigned.  Remove superflous uint64_t cast.
14572 2014-08-21  Felix Yang  <felix.yang@huawei.com>
14573             Jiji Jiang  <jiangjiji@huawei.com>
14575         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
14576         argument and get builtin function code directly from CALL.
14577         (gimple_stringop_fixed_value): Modified accordingly.
14578         (gimple_stringops_transform, gimple_stringops_values_to_profile):
14579         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
14581 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14583         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
14585 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14587         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
14588         to match.pd.
14589         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
14590         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
14591         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
14592         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
14593         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
14594         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
14595         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
14596         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
14597         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
14598         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
14600         * match.pd (SIN ) : New Operator.
14601         (TAN) : New Operator.
14602         (mult (SQRT@1 @0) @1) : New simplifier.
14603         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
14604         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
14605         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
14606         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
14607         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
14608         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
14609         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
14610         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
14611         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
14612         (rdiv @0 (POW:s @1 @2)) : New simplifier.
14614 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
14616         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
14617         loop if EXPR is simplified to const value.
14619 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
14621         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
14622         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
14624 2015-08-21  Richard Biener  <rguenther@suse.de>
14626         PR middle-end/67285
14627         * gimple-fold.c (replace_stmt_with_simplification): Assert
14628         seq is empty when replacing a call with itself but different
14629         arguments.
14630         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
14631         a call require that it is const.
14633 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14635         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
14636         * builtins.c (get_object_alignment_2): Adjust.
14637         * varasm.c (align_variable): Likewise.
14638         (get_variable_align): Likewise.
14639         (build_constant_desc): Likewise.
14640         (force_const_mem): Likewise.
14641         * doc/tm.texi.in: Likewise.
14642         * doc/tm.texi: Regenerate.
14644 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14646         * genconfig.c (main): Always define HAVE_cc0.
14647         * recog.c (rest_of_handle_peephole2): Adjust.
14649 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14651         * reorg.c (relax_delay_slots): Don't use #if to check value of
14652         HAVE_cc0.
14654 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14656         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
14657         * targhooks.c (default_have_conditional_execution): Adjust.
14659 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
14661         * rtl.h (rtvec_all_equal_p): Declare.
14662         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
14663         * rtl.c (rtvec_all_equal_p): New function.
14664         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
14665         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
14666         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
14667         * config/arm/arm.c (neon_vdup_constant): Likewise.
14668         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
14669         * config/tilegx/constraints.md (W, Y): Likewise.
14670         * config/tilepro/constraints.md (W, Y): Likewise.
14671         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
14672         (classify_immediate): Use unwrap_const_vec_duplicate.
14673         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
14674         (reg_or_v2s8bit_operand): Likewise.
14675         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
14676         (reg_or_v4s8bit_operand): Likewise.
14678 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14680         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
14681         (vec_shasigma_be): New #define.
14682         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
14683         (VPMSUMH): Likewise.
14684         (VPMSUMW): Likewise.
14685         (VPMSUMD): Likewise.
14686         (VPMSUM): New BU_P8V_OVERLOAD_2.
14687         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
14688         entries for VEC_MADD and VEC_VPMSUM.
14690 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
14692         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
14693         Multiply argument avr_n_flash by 64 to match unit of "KiB".
14694         (avr_pgm_check_var_decl): Same.
14696 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
14698         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
14699         initialization of HFmode scalar type (float16_t) to...
14700         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
14701         code.
14703         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
14705         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
14706         having an -mfp16-format.
14708 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
14710         * config/i386/predicates.md (vector_all_ones_operand): Use
14711         CONSTM1_RTX to simplify definition.
14713 2015-08-20  Richard Biener  <rguenther@suse.de>
14715         * toplev.c (compile_file): Remove loop calling late_global_decl
14716         on all symbols.
14717         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
14718         on decls we assembled.
14720 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
14722         * common/config/aarch64/aarch64-common.c
14723         (AARCH64_CPU_NAME_LENGTH): Delete.
14724         (aarch64_option_extension): New.
14725         (all_extensions): Likewise.
14726         (processor_name_to_arch): Likewise.
14727         (arch_to_arch_name): Likewise.
14728         (all_cores): New.
14729         (all_architectures): Likewise.
14730         (aarch64_get_extension_string_for_isa_flags): Likewise.
14731         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
14732         architecture names.
14733         * config/aarch64/aarch64-protos.h
14734         (aarch64_get_extension_string_for_isa_flags): New.
14735         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
14736         (aarch64_option_print): Get the string to print from
14737         aarch64_get_extension_string_for_isa_flags.
14738         (aarch64_declare_function_name): Likewise.
14739         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
14740         (MCPU_TO_MARCH_SPEC): This.
14741         (ASM_CPU_SPEC): Use it.
14742         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
14743         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
14744         (EXTRA_SPEC_FUNCTIONS): Use it.
14746 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
14748         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
14749         expansion when !ISA_HAS_LWL_LWR.
14750         (mips_block_move_straight): Update the size of elements copied to
14751         account for alignment when !ISA_HAS_LWL_LWR.
14752         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
14754 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
14756         * expr.c (expand_expr_real_2): Check gimple statement during
14757         LSHIFT_EXPR expand.
14759 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
14761         * common.opt (fstack-protector): Initialize to -1.
14762         (fstack-protector-all): Likewise.
14763         (fstack-protector-strong): Likewise.
14764         (fstack-protector-explicit): Likewise.
14765         * configure.ac: Add --enable-default-ssp.
14766         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
14767         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
14768         -1.
14769         * doc/install.texi: Document --enable-default-ssp.
14770         * config.in: Regenerated.
14771         * configure: Likewise.
14773 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
14775         PR rtl-optimization/64164
14776         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
14777         (parm_in_stack_slot_p): ... this.  Disregard mode, what
14778         matters is whether the parm will live in a pseudo or a stack
14779         slot.
14780         (expand_one_ssa_partition): Deal with params without a default
14781         def.  Disregard mode.
14782         * cfgexpand.h: Renamed function declaration.
14783         * tree-ssa-coalesce.c: Adjust.
14784         * function.c (split_complex_args): Allocate stack slot for
14785         unassigned parms before splitting.
14786         (parm_in_unassigned_mem_p): New.  Use it instead of
14787         parm_maybe_byref_p throughout this file.
14788         (assign_parm_setup_block): Use it.  Accept pseudos in the
14789         expand-assigned rtl.
14790         (assign_parm_setup_reg): Drop BLKmode requirement.
14791         (assign_parm_setup_stack): Allocate and fill in the address of
14792         unassigned MEM parms.
14794 2015-08-19  David Sherwood  <david.sherwood@arm.com>
14796         * genmodes.c (emit_mode_unit_size_inline): New function.
14797         (emit_mode_unit_precision_inline): New function.
14798         (emit_insn_modes_h): Emit new #define.  Emit new functions.
14799         (emit_mode_unit_size): New function.
14800         (emit_mode_unit_precision): New function.
14801         (emit_mode_adjustments): Add mode_unit_size adjustments.
14802         (emit_insn_modes_c): Emit new arrays.
14803         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
14804         use new inline methods.
14806 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14808         * config/aarch64/aarch64.c (bit_count): Delete prototype
14809         and definition.
14810         (aarch64_print_operand): Use popcount_hwi instead of the above.
14812 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14814         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
14815         comment.
14817 2015-08-19  Marek Polacek  <polacek@redhat.com>
14819         PR middle-end/67133
14820         * gimple-ssa-isolate-paths.c
14821         (insert_trap_and_remove_trailing_statements): Rename to ...
14822         (insert_trap): ... this.  Don't remove trailing statements; split
14823         block instead.
14824         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
14826 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
14828         PR other/67042
14829         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
14830         conditionalize the whole on __GNUC__.  Add fallback code
14831         depending neither on undefined nor implementation-defined behaviour.
14833 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
14835         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
14836         whitespaces with tab.
14838 2015-08-19  Florian Weimer  <fweimer@redhat.com>
14840         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
14841         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
14842         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
14843         Move Name_Ids instantiation to the Prj.Proc package, to avoid
14844         trampolines.
14846 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14848         * config/arm/arm.c (bounds_check): Use %wd print format
14849         for HOST_WIDE_INT arguments.
14851 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
14853         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
14854         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
14855         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
14856         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
14857         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
14858         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
14859         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
14860         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
14861         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
14862         typedefs.
14864 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
14866         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
14867         function.c, graphite-scop-detection.c, haifa-sched.c,
14868         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
14869         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
14870         varasm.c: Remove typedefs of structs.
14872 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
14874         * config/rs6000/altivec.h (vec_adde): New define.
14875         (vec_addec): Likewise.
14876         (vec_double): Likewise.
14877         (vec_bperm): Likewise.
14878         (vec_gb): Likewise.
14879         * config/rs6000/rs6000-builtin.def (ADDE): New
14880         BU_ALTIVEC_OVERLOAD_3.
14881         (ADDEC): Likewise.
14882         (DOUBLE): New BU_VSX_OVERLOAD_1.
14883         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
14884         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
14885         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
14886         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
14887         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
14888         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
14889         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
14890         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
14891         and P8V_BUILTIN_VEC_VBPERMQ.
14893 2015-08-18  Jason Merrill  <jason@redhat.com>
14895         * print-tree.c (print_node): Handle TREE_BINFO.
14897 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14899         PR middle-end/36757
14900         * builtins.c (expand_builtin_signbit): Add asserts to make sure
14901         we can expand BUILT_IN_SIGNBIT inline.
14902         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
14903         * doc/extend.texi: Document the type-generic __builtin_signbit.
14905 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
14907         PR rtl-optimization/67218
14908         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
14909         (simplify_unary_operation_1): Use it.
14911 2015-08-18  Marek Polacek  <polacek@redhat.com>
14913         PR middle-end/67222
14914         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
14915         if the call isn't valid.
14916         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
14917         gimple_call_builtin_p.
14918         (call_may_clobber_ref_p_1): Likewise.
14919         (stmt_kills_ref_p): Likewise.
14921 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
14923         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
14924         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
14925         (mips_hard_regno_scratch_ok): Likewise.
14926         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
14927         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
14929 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
14931         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
14932         (determine_value_range): Call refine_value_range_using_guard for
14933         each loop initial condition to improve value range.
14935 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
14937         * config/i386/i386.c: Remove include of fibheap.h.
14939 2015-08-17  Richard Biener  <rguenther@suse.de>
14941         PR tree-optimization/67221
14942         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
14943         (sccvn_dom_walker::before_dom_children): Mark backedges of
14944         non-executable blocks as not executable.
14946 2015-08-17  David Sherwood  <david.sherwood@arm.com>
14948         * config/arm/arm.c (neon_element_bits): Replace call to
14949         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
14950         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
14951         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
14952         (neon_vdup_lane<mode>): Likewise.
14953         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
14954         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
14955         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
14956         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
14957         * config/spu/spu.c (arith_immediate_p): Likewise.
14958         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
14959         * expr.c (expand_expr_real_2): Likewise.
14960         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
14961         * simplify-rtx.c (simplify_immed_subreg): Likewise.
14962         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
14963         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
14964         New variable.
14965         * fold-const.c (fold_binary_loc): Replace call to
14966         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
14967         GET_MODE_UNIT_PRECISION (m).
14969 2015-08-17  Mike Stump  <mikestump@comcast.net>
14971         * config/arm/arm.c (arm_block_move_unaligned_straight):
14972         Emit normal move instead of unaligned load when source or destination
14973         are appropriately aligned.
14975 2015-08-17  Richard Biener  <rguenther@suse.de>
14976             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14978         PR middle-end/16107
14979         * match.pd (div (coss (op @0) : New simplifier.
14981 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
14983         PR rtl-optimization/64164
14984         PR bootstrap/66978
14985         PR middle-end/66983
14986         PR rtl-optimization/67000
14987         PR middle-end/67034
14988         PR middle-end/67035
14989         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14990         * tree-ssa-copyrename.c: Removed.
14991         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
14992         -ftree-coalesce-vars.
14993         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14994         * common.opt (ftree-copyrename): Ignore.
14995         (ftree-coalesce-inlined-vars): Likewise.
14996         * doc/invoke.texi: Remove the ignored options above.
14997         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14998         * tree-ssa-coalesce.h: ... here.
14999         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15000         headers required by it.
15001         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15002         across variables when flag_tree_coalesce_vars.  Check register
15003         use and promoted modes to allow coalescing.  Do not coalesce
15004         maybe-byref parms with SSA_NAMEs of other variables, or
15005         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
15006         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15007         with its member functions to tree-ssa-coalesce.c.
15008         (var_map_base_init): Likewise.  Renamed to
15009         compute_samebase_partition_bases.
15010         (partition_view_normal): Drop want_bases parameter.
15011         (partition_view_bitmap): Likewise.
15012         * tree-ssa-live.h: Adjust declarations.
15013         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
15014         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15015         default defs at the entry point.
15016         (dump_part_var_map): New.
15017         (compute_optimized_partition_bases): New, called by...
15018         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15019         of compute_samebase_partition_bases.  Adjust.
15020         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15021         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
15022         (ssa_default_def_partition): New.
15023         (get_rtl_for_parm_ssa_default_def): New.
15024         (align_local_variable, add_stack_var): Support anonymous SSA
15025         names.
15026         (defer_stack_allocation): Likewise.  Declare earlier.
15027         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15028         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15029         Do no record deferred-allocation marker in
15030         SA.partition_to_pseudo.
15031         (expand_stack_vars): Adjust check for the marker in it.
15032         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
15033         redundant MEM attr setting.
15034         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
15035         from...
15036         (expand_one_stack_var): ... this.  New wrapper to check and
15037         skip already expanded SSA partitions.
15038         (record_alignment_for_reg_var): New, factored out of...
15039         (expand_one_var): ... this.
15040         (expand_one_ssa_partition): New.
15041         (adjust_one_expanded_partition_var): New.
15042         (expand_one_register_var): Check and skip already expanded SSA
15043         partitions.
15044         (expand_used_vars): Don't create DECLs for anonymous SSA
15045         names.  Expand all SSA partitions, then adjust all SSA names.
15046         (pass::execute): Replace the loops that set
15047         SA.partition_to_pseudo from partition leaders and cleared
15048         DECL_RTL for multi-location variables, and that which used to
15049         rename vars and set attrs, with one that clears DECL_RTL and
15050         checks that PARMs and RESULTs default_defs match DECL_RTL.
15051         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15052         * emit-rtl.c: Include stor-layout.h.
15053         (set_reg_attrs_for_parm): Handle NULL decl.
15054         (set_reg_attrs_for_decl_rtl): Take mode from expression if
15055         it's not a DECL.
15056         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
15057         rather than its possibly-NULL DECL.
15058         * explow.c (promote_ssa_mode): New.
15059         * explow.h (promote_ssa_mode): Declare.
15060         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15061         (read_complex_part): Export.
15062         * expr.h (read_complex_part): Declare.
15063         * cfgexpand.h (parm_maybe_byref_p): Declare.
15064         * function.c: Include cfgexpand.h.
15065         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15066         (use_register_for_parm_decl): Wrapper for the above to
15067         special-case the result_ptr.
15068         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15069         (split_complex_args): Take assign_parm_data_all argument.
15070         Pass it to rtl_for_parm.  Set up rtl and context for split
15071         args.  Reset complex parm before fetching its default decl
15072         rtl.
15073         (assign_parms_unsplit_complex): Use the default-def complex
15074         parm rtl if it matches the components.
15075         (assign_parms_augmented_arg_list): Adjust.
15076         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15077         multiple locations.  Recognize split complex args.
15078         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15079         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
15080         (assign_parm_setup_block): Prefer SSA-assigned location, and
15081         fill in its address if the memory location of a maybe-byref
15082         parm was not assigned by cfgexpand.
15083         (assign_parm_setup_reg): Likewise.  Adjust its mode as
15084         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
15085         sure passed_pointer parms don't need conversion.  Copy address
15086         or value as needed.
15087         (assign_parm_setup_stack): Prefer SSA-assigned location.
15088         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
15089         rtl before testing for pointer bounds.  Special-case result_ptr.
15090         (expand_function_start): Maybe reset DECL_RTL of result.
15091         Prefer SSA-assigned location for result and static chain.
15092         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
15093         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
15094         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15095         anonymous SSA names.  Use promote_ssa_mode.
15096         (get_temp_reg): Likewise.
15097         (remove_ssa_form): Adjust.
15098         * stor-layout.c (layout_decl): Don't set mem attributes of
15099         non-MEMs.
15100         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15101         and get its reg_usage for reg invalidation.
15102         (compute_bb_dataflow): Pass it insn.
15103         (emit_notes_in_bb): Likewise.
15105 2015-08-14  Marek Polacek  <polacek@redhat.com>
15107         * tree-core.h (tree_base): Fix typo.
15109 2015-08-14  Marek Polacek  <polacek@redhat.com>
15111         PR middle-end/67133
15112         * gimple.c (infer_nonnull_range_by_attribute): Check that the
15113         nonnull argument position is not outside function arguments.
15115 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
15117         PR target/67143
15118         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
15119         'lconst_atomic' with 'const_atomic'.
15120         (atomic_fetch_<optab><mode>): Likewise.
15121         (atomic_<optab>_fetch<mode>): Likewise.
15122         * config/aarch64/iterators.md (lconst-atomic): Move below
15123         'const_atomic'.
15124         (const_atomic): New.
15126 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
15127             Bernd Schmidt  <bernds@codesourcery.com>
15129         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
15130         debug options.
15131         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
15132         (DWARF2_DEBUGGING_INFO): Don't define.
15133         * debug.h (dwarf2_lineno_debug_hooks): Declare.
15134         * toplev.c (process_options): Add a case for it.
15135         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
15136         (dwarf2out_init): Skip most initializations if
15137         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
15138         case.
15139         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
15140         DWARF2_LINENO_DEBUGGING_INFO.
15141         * opts.c (set_debug_level): Likewise.
15143 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
15145         * config/arm/types.md (is_neon_type): Add missing types.
15147 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
15149         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
15150         for skylake.
15151         * config/i386/i386.c (PTA_SKYLAKE): New macros.
15152         (processor_alias_table): Add skylake description.
15153         (enum processor_model): Add skylake processor.
15154         (arch_names_table): Add skylake record.
15155         * doc/invoke.texi: Add skylake item.
15157 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
15159         * ira-int.h: Include recog.h.
15160         * ira-build.c: Don't include recog.h.
15161         * ira-color.c: Likewise.
15162         * ira-conflicts.c: Likewise.
15163         * ira-costs.c: Likewise.
15164         * ira-emit.c: Likewise.
15165         * ira-lives.c: Likewise.
15166         * ira.c: Likewise.
15167         * sched-deps.c: Likewise.
15168         * sel-sched.c: Likewise.
15169         * target-globals.c: Likewise.
15171 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
15173         PR bootstrap/55035
15174         * reload1.c (elimination_costs_in_insn): Make it obvious to the
15175         compiler that the n_dups and n_operands loop bounds are invariant.
15177 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15179         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
15180         expressions in A and B.
15182 2015-08-13  Richard Biener  <rguenther@suse.de>
15184         * tree.c (nonnull_arg_p): Move from ...
15185         * tree-vrp.c (nonnull_arg_p): ... here.
15186         * tree.h (nonnull_arg_p): Declare.
15187         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
15188         here, register ptr != 0 for nonnull_arg_p pointer arguments.
15189         Properly initialize static chain and by-reference result pointer.
15190         (run_scc_vn): Adjust.
15192 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
15194         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
15195         TUNE_I6400.
15197 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
15199         * config/aarch64/aarch64-protos.h
15200         (aarch64_gen_atomic_cas): Declare.
15201         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
15202         Choose appropriate instruction pattern for the target.
15203         (aarch64_gen_atomic_cas): New.
15204         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
15205         (atomic_compare_and_swap<mode>_1): Rename to
15206         aarch64_compare_and_swap<mode>.  Fix some indentation.
15207         (aarch64_compare_and_swap<mode>_lse): New.
15208         (aarch64_atomic_cas<mode>): New.
15210 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
15212         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
15213         (TARGET_LSE): New.
15215 2015-08-13  Richard Biener  <rguenther@suse.de>
15217         PR tree-optimization/67191
15218         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
15219         assert we value-numbered last stmts operand because it can validly
15220         trigger for unreachable code.
15222 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15224         PR rtl-optimization/67103
15225         * ifcvt.c (noce_try_store_flag_constants): Move
15226         x = (-(test != 0) & (b - a)) + a transformation to...
15227         (noce_try_cmove): ... Here.  Try it if normal conditional
15228         move fails.
15230 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
15232         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
15233         pseudo-processors.
15234         * config/mips/mips.md (processor): Remove w32 and w64.
15236 2015-08-13  Richard Biener  <rguenther@suse.de>
15238         PR tree-optimization/66502
15239         PR tree-optimization/67167
15240         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
15241         backedge arguments.
15242         (vn_phi_lookup): Adjust.
15243         (vn_phi_insert): Likewise.
15244         (visit_phi): Prefer to value-number to another PHI node
15245         over value-numbering to a PHI argument.
15246         (init_scc_vn): Mark DFS back edges.
15248 2015-08-13  Richard Biener  <rguenther@suse.de>
15250         * gimple.h (gcall::code_): New constant static member.
15251         (gcond::code_): Likewise.
15252         * gimple.c (gcall::code_): Define.
15253         (gcond::code_): Likewise.
15254         (is_a_helper <const gcond *>): Add.
15255         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
15256         and forward to a new gcall overload with less checking and a
15257         cheaper way to access the operand.
15258         (gimple_call_lhs_ptr): Likewise.
15259         (gimple_call_set_lhs): Likewise.
15260         (gimple_call_internal_p): Likewise.
15261         (gimple_call_with_bounds_p): Likewise.
15262         (gimple_call_set_with_bounds): Likewise.
15263         (gimple_call_internal_fn): Likewise.
15264         (gimple_call_set_ctrl_altering): Likewise.
15265         (gimple_call_ctrl_altering_p): Likewise.
15266         (gimple_call_fntype): Likewise.
15267         (gimple_call_fn): Likewise.
15268         (gimple_call_fn_ptr): Likewise.
15269         (gimple_call_set_fndecl): Likewise.
15270         (gimple_call_fndecl): Likewise.
15271         (gimple_call_chain): Likewise.
15272         (gimple_call_num_args): Likewise.
15273         (gimple_call_arg): Likewise.
15274         (gimple_call_arg_ptr): Likewise.
15275         (gimple_call_set_arg): Likewise.
15276         (gimple_call_noreturn_p): Likewise.
15277         (gimple_cond_code): Likewise.
15278         (gimple_cond_lhs): Likewise.
15279         (gimple_cond_rhs): Likewise.
15280         (gimple_has_lhs): Reduce checking.
15282 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15284         PR middle-end/25529
15285         * match.pd (div (mult @0 @1) @1) : New simplifier.
15287 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
15289         PR target/67071
15290         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
15291         predicate to allow construction of vector constants using the
15292         VSLDOI vector shift instruction.
15294         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
15295         declaration.
15297         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
15298         the number of bytes to be shifted left and filled in with either
15299         all zero or all one bits.
15300         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
15301         methods exist.
15302         (output_vec_const_move): On power8, generate XXLORC to generate
15303         a vector constant with all 1's. Do a split if we need to use a
15304         VSLDOI instruction.
15306         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
15307         properly test for the MSB.
15309         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
15310         vector constants that can be created with VSLDOI.
15312 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
15314         revert:
15315         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15316         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15317         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15318         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15319         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15320         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15321         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15322         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15323         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15325 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
15327         * config/xtensa/constraints.md (define_constraint "Y"): New
15328         constraint.
15329         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
15330         * config/xtensa/linux.h (ASM_SPEC): Likewise.
15331         * config/xtensa/predicates.md (move_operand): Match constants
15332         and symbols in the presence of TARGET_AUTO_LITPOOLS.
15333         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
15334         immediate references to TLS data.
15335         (xtensa_emit_move_sequence): Don't force constants to memory in
15336         the presence of TARGET_AUTO_LITPOOLS.
15337         (print_operand): Add 'y' format, same as default, but capable of
15338         printing SF mode constants as well.
15339         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
15340         (movsf_internal): Add movi pattern that loads literal.
15341         (movsf, movdf): Don't force constants to memory in the presence
15342         of TARGET_AUTO_LITPOOLS.
15343         (movdf_internal): Add 'Y' constraint.
15344         * config/xtensa/xtensa.opt (mauto-litpools): New option.
15345         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
15347 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
15349         * config/arm/arm-fpus.def: Replace booleans with feature flags.
15350         Update comment.
15351         * config/arm/arm.c (ARM_FPU): Update macro.
15352         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
15353         (TARGET_FP16): Likewise.
15354         (TARGET_CRYPTO): Likewise.
15355         (TARGET_NEON): Likewise.
15356         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
15357         field features.
15359 2015-08-12  Tom de Vries  <tom@codesourcery.com>
15361         PR other/67092
15362         PR other/67098
15363         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
15364         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
15365         accordingly.  Mention default for --with-stage1-ldflags.
15367 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
15369         * config/arm/arm.h (arm_fpu_feature_set): New.
15370         (ARM_FPU_FSET_HAS): New.
15371         (FPU_FL_NONE): New.
15372         (FPU_FL_NEON): New.
15373         (FPU_FL_FP16): New.
15374         (FPU_FL_CRYPTO): New.
15376 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15378         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
15379         after -mcmodel=large -fPIC sorry.
15381 2015-08-12  Richard Biener  <rguenther@suse.de>
15383         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
15384         comparison operand order and commutative ternary op operand order.
15385         (sccvn_dom_walker::cond_stack): New state to track temporary
15386         expressions.
15387         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
15388         no longer valid.
15389         (sccvn_dom_walker::record_cond): Add a single temporary conditional
15390         expression.
15391         (sccvn_dom_walker::record_conds): Add a temporary conditional
15392         expressions and all related expressions also true/false.
15393         (sccvn_dom_walker::before_dom_children): Record temporary
15394         expressions based on the controlling condition of a single
15395         predecessor.  When trying to simplify a conditional statement
15396         lookup expressions we might have inserted earlier.
15398 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
15400         PR target/67127
15401         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
15402         to ARM core registers.
15404 2015-08-12  Nathan Sidwell  <nathan@acm.org>
15406         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
15407         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
15409 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
15411         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
15412         line with comments.
15413         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
15415 2015-08-12  Richard Biener  <rguenther@suse.de>
15417         * gimple.h (remove_pointer): New trait.
15418         (GIMPLE_CHECK2): New inline template function.
15419         (gassign::code_): New constant static member.
15420         (is_a_helper<const gassign *>): Add.
15421         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
15422         and forward to a new gassign overload with less checking and a
15423         cheaper way to access the operand.
15424         (gimple_assign_lhs_ptr): Likewise.
15425         (gimple_assign_set_lhs): Likewise.
15426         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
15427         Likewise.
15428         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
15429         Likewise.
15430         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
15431         Likewise.
15432         (gimple_assign_rhs_code): Likewise.
15433         * gimple.c (gassign::code_): Define.
15435 2015-08-12  Richard Biener  <rguenther@suse.de>
15437         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15438         Eliminate edges marked as not executable by SCCVN.
15439         * tree-ssa-sccvn.c: Include gimple-iterator.h.
15440         (cond_dom_walker): Rename to sccvn_dom_walker.
15441         (sccvn_dom_walker::before_dom_children): Value-number defs
15442         of all stmts.
15443         (run_scc_vn): Remove loop value-numbering all SSA names.
15444         Drop not visited SSA names to varying.
15446 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
15448         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15449         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15450         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15451         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15452         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15453         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15454         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15455         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15456         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15458 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
15460         PR target/66954
15461         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
15462         to enum feature_priority and feature_list.
15463         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
15464         and isa_names_table.
15466 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
15468         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
15469         vect_induction_def.
15471 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15473         PR c/66098
15474         PR c/66711
15475         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
15476         account when deciding what was the command-line status.
15478 2015-08-11  Nathan Sidwell  <nathan@acm.org>
15480         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
15482         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
15483         we're not the only contributor to target phi.
15485 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
15487         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
15488         FIXED_REG0.
15490 2015-08-11  Tom de Vries  <tom@codesourcery.com>
15492         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
15494 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
15496         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
15497         with CPU_SLM.
15498         * config/i386/i386.md (cpu): Remove knl.
15500 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15502         PR libgomp/65742
15503         PR middle-end/66332
15504         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
15505         open-coded sequence.
15506         * omp-low.c (oacc_process_reduction_data): Remove handline of
15507         GOMP_DEVICE_HOST_NONSHM.
15509         * lto-streamer-in.c (lto_input_mode_table): Adjust to
15510         GET_MODE_INNER changes.
15512 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15513             Ilya Verbin  <ilya.verbin@intel.com>
15515         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
15517 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15519         * doc/options.texi (EnabledBy): Document that the argument must be
15520         a Common option.
15521         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
15522         Not enabled by -Wall.
15523         * optc-gen.awk: Give nicer error messages. Detect if the argument
15524         of EnabledBy is not a Common option.
15525         * common.opt (Wnull-dereference): Not enabled by -Wall.
15526         * opt-functions.awk (lang_enabled_by): Nicer error messages.
15528 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
15530         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
15531         model == 0x4f as Broadwell.
15533 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
15535         PR rtl-optimization/67028
15536         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
15537         Add test to see if a const_int fits in the new mode.
15539 2015-08-07  DJ Delorie  <dj@redhat.com>
15541         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
15543 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
15545         PR rtl-optimization/67029
15546         * ira-color.c: Include "recog.h" before including "ira-int.h".
15547         * target-globals.c: Likewise.
15548         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
15549         adds an alternative_mask argument and use it instead of
15550         preferred_alternatives.
15551         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
15552         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
15553         * sched-deps.c: Include "ira-int.h" after including "ira.h".
15554         (sched_analyze_insn): Update call to
15555         ira_implicitly_set_insn_hard_regs.
15556         * sel-sched.c: Include "ira-int.h" after including "ira.h".
15557         (implicit_clobber_conflict_p): Update call to
15558         ira_implicitly_set_insn_hard_regs.
15560 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
15562         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
15564 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
15566         PR target/67002
15567         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
15568         currently_expanding_to_rtl is set.
15570 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
15572         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
15573         * configure: Regenerate.
15575 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15576             Jiong Wang  <jiong.wang@arm.com>
15578         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
15579         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
15580         (REG_CLASS_NAMES): Likewise.
15581         (REG_CLASS_CONTENTS): Likewise.
15582         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
15583         (aarch64_register_move_cost): Likewise.
15584         (aarch64_load_symref_appropriately): Invoke the new added pattern if
15585         possible.
15586         * config/aarch64/constraints.md (Uc0): New constraint.
15588 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
15590         * config/aarch64/constraints.md (Usf): Add the test of
15591         aarch64_is_noplt_call_p.
15593 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
15595         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
15596         declaration.
15597         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
15598         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
15599         (call_symbol): Likewise.
15601 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
15603         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
15604         for vectorizing multiplication patterns.
15605         * tree-vectorizer.h: Adjust the number of patterns.
15607 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
15609         * config/i386/sse.md (*vec_concatv2df): Declare added
15610         alternatives as sselog type.
15612 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15614         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
15615         all GPRs.
15617 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15619         * config/s390/s390.c (s390_expand_tbegin): Expand either
15620         tbegin_1_z13 or tbegin_1 depending on VX flag.
15621         * config/s390/s390.md ("tbegin_1_z13"): New expander.
15623 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15625         * config/s390/s390.opt: Clarify description for -mzvector
15626         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
15627         -mzvector.
15629 2015-08-06  Richard Biener  <rguenther@suse.de>
15631         * gimple.h (gimple_call_set_fn): Access op member directly.
15632         (gimple_call_chain_ptr): Likewise.
15633         (gimple_call_set_chain): Likewise.
15634         (gimple_cond_lhs_ptr): Likewise.
15635         (gimple_cond_set_lhs): Likewise.
15636         (gimple_cond_rhs_ptr): Likewise.
15637         (gimple_cond_set_rhs): Likewise.
15638         (gimple_cond_true_label): Likewise.
15639         (gimple_cond_set_true_label): Likewise.
15640         (gimple_cond_set_false_label): Likewise.
15641         (gimple_cond_false_label): Likewise.
15642         (gimple_label_label): Likewise.
15643         (gimple_label_set_label): Likewise.
15644         (gimple_goto_set_dest): Likewise.
15645         (gimple_asm_input_op): Likewise.
15646         (gimple_asm_input_op_ptr): Likewise.
15647         (gimple_asm_set_input_op): Likewise.
15648         (gimple_asm_output_op): Likewise.
15649         (gimple_asm_output_op_ptr): Likewise.
15650         (gimple_asm_set_output_op): Likewise.
15651         (gimple_asm_clobber_op): Likewise.
15652         (gimple_asm_set_clobber_op): Likewise.
15653         (gimple_asm_label_op): Likewise.
15654         (gimple_asm_set_label_op): Likewise.
15655         (gimple_switch_index): Likewise.
15656         (gimple_switch_index_ptr): Likewise.
15657         (gimple_return_retval_ptr): Likewise.
15658         (gimple_return_retval): Likewise.
15659         (gimple_return_set_retval): Likewise.
15660         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
15661         (gimple_switch_label): Likewise.
15662         (gimple_switch_set_label): Likewise.
15664 2015-08-06  Richard Biener  <rguenther@suse.de>
15666         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
15667         bool comparison canonicalization and restrict to integers.
15669 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
15671         * coretypes.h (enum symbol_visibility): Relocate here.
15672         * flag-types.h (enum symbol_visibility): Remove.
15673         * tree-core.h (enum symbol_visibility): Remove.
15675 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
15677         PR target/66870
15678         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
15679         for no_split_stack function attribute along with
15680         flag_split_stack.
15681         (rs6000_expand_split_stack_prologue): Likewise.
15683 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15684             Jeff Law  <law@redhat.com>
15686         PR c/16351
15687         * doc/invoke.texi (Wnull-dereference): New.
15688         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
15689         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
15690         Warn for potential NULL dereferences.
15691         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
15692         * ubsan.c (instrument_nonnull_arg): Call
15693         infer_nonnull_range_by_attribute.
15694         (instrument_nonnull_return): Likewise.
15695         * common.opt (Wnull-dereference); New.
15696         * gimple.c (infer_nonnull_range): Remove bool arguments.
15697         (infer_nonnull_range_by_dereference): New.
15698         (infer_nonnull_range_by_attribute): New.
15699         * gimple.h: Update declarations.
15701 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15703         * gensupport.c (sequence_num): Replace with...
15704         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
15705         ...these new variables.
15706         (init_rtx_reader_args_cb): Update accordingly.
15707         (get_num_code_insns): Likewise.
15708         (read_md_rtx): Rework to use a while loop and get_c_test.
15709         Use the new counters.  Remove redundant DEFINE_SUBST case.
15710         * genoutput.c (gen_split): Delete.
15711         (main): Don't call it.
15713 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15715         * gensupport.h (get_c_test): Declare.
15716         * gensupport.c (get_c_test): New function.
15717         * genconditions.c (main): Use it.
15718         * genrecog.c (validate_pattern): Likewise.
15719         (match_pattern_1): Likewise.  Remove c_test argument.
15720         (match_pattern): Update accordingly and remove c_test argument.
15721         (main): Update accordingly.
15723 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15725         * gensupport.h (get_num_insn_codes): Declare.
15726         * gensupport.c (get_num_insn_codes): New function.
15727         * genattrtab.c (optimize_attrs): Rename max_insn_code to
15728         num_insn_codes.
15729         (main): Likewise.  Use get_num_insn_codes.
15730         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
15732 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15734         PR middle-end/66311
15735         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
15736         is zero- rather than sign-extended.
15738 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15740         * target-insns.def (can_extend): Delete.
15742 2015-08-05  Richard Biener  <rguenther@suse.de>
15744         PR tree-optimization/67121
15745         * tree-if-conv.c (combine_blocks): Clear range-info produced
15746         by stmts no longer executed conditionally.
15748 2015-08-05  Nick Clifton  <nickc@redhat.com>
15750         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
15751         to allow identical far pointers to remain.
15753 2015-08-05  Richard Biener  <rguenther@suse.de>
15755         PR middle-end/67120
15756         * match.pd: Compare address bases with == if they are decls
15757         or SSA names, not operand_equal_p.  Otherwise fail.
15759 2015-08-05  Richard Biener  <rguenther@suse.de>
15761         PR tree-optimization/67055
15762         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
15763         NULL gimple_block.
15765         * g++.dg/torture/pr67055.C: New testcase.
15767 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
15769         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
15770         noavx512vl.
15771         (define_attr "enabled"): Handle avx521vl and noavx512vl.
15772         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
15773         AVX-512 alternative out of SSE.
15774         (define_insn "*vec_concatv2df"): Ditto.
15776 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
15778         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
15779         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
15780         CODE_FOR_avx_ptestv4di.
15781         * config/i386/sse.md (define_mode_iterator V_AVX): New.
15782         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
15783         (define_insn "avx_ptest256"): Merge this ...
15784         (define_insn "sse4_1_ptest"): And this ...
15785         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
15787 2015-08-05  Richard Biener  <rguenther@suse.de>
15789         PR tree-optimization/67109
15790         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
15791         against too big groups.  Print whether this is a load or store
15792         group.  Rename from ...
15793         (vect_analyze_group_access): ... this which is now a wrapper
15794         dissolving an invalid group.
15795         (vect_analyze_data_ref_accesses): Print whether this is a load
15796         or store group.
15798 2015-08-05  Richard Biener  <rguenther@suse.de>
15800         PR middle-end/67107
15801         * match.pd: Guard const_binop result checking against NULL_TREE
15802         result.
15804 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
15806         * cse.c (cse_insn): Restoring old behaviour for src_eqv
15807          when dest and value in the REG_EQUAL are same and dest
15808          is STRICT_LOW_PART.
15810 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
15812         * config/moxie/moxie.h (PRINT_OPERAND,
15813           PRINT_OPERAND_ADDRESS): Remove macros.
15814         * config/moxie/moxie-protos.h (moxie_print_operand,
15815           moxie_print_operand_address): Remove declaration.
15816         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
15817           TARGET_PRINT_OPERAND_ADDRESS): Define.
15818           (moxie_print_operand, moxie_print_operand_address): Make static.
15820 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15822         PR target/66731
15823         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
15824         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
15826 2015-08-04  Richard Biener  <rguenther@suse.de>
15828         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
15829         generated code.
15830         (dt_operand::gen_gimple_expr): Adjust.
15832 2015-08-04  Richard Biener  <rguenther@suse.de>
15834         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
15835         bool compares on RHS.
15836         * match.pd: Add X ==/!= !X is false/true pattern.
15838 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
15840         * config/aarch64/aarch64.c: Change inner loop statement cost
15841         to be consistent with other targets.
15843 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
15845         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
15846         targets.
15848 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
15850         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
15851         (machine_function): Remove pseudos field.
15853 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15855         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15856         Exit early and use target_option_current_node if processing current
15857         pragma.
15859 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15861         * doc/extend.texi (AArch64 Function Attributes): New node.
15862         (AArch64 Pragmas): Likewise.
15864 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15866         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15867         Initialize simd builtins if TARGET_SIMD.
15868         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
15869         Make sure that the builtins are initialized only once no matter how
15870         many times the function is called.
15871         (aarch64_init_builtins): Unconditionally initialize crc builtins.
15872         (aarch64_relayout_simd_param): New function.
15873         (aarch64_simd_expand_args): Use above during argument expansion.
15874         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
15875         simd builtins if TARGET_SIMD.
15876         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
15877         prototype.
15878         (aarch64_relayout_simd_types): Likewise.
15880 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15882         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
15883         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
15884         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
15885         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
15886         static keyword.
15887         (aarch64_reset_previous_fndecl): New function.
15888         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
15889         the string.
15890         * config/aarch64/aarch64-c.c: New file.
15891         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
15892         Push and pop options at beginning and end.  Remove ifdef
15893         __ARM_FEATURE_CRC32.
15894         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
15895         Add pragma +nothing+simd and +nothing+crypto where appropriate.
15896         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
15897         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
15898         Define prototype.
15899         (aarch64_register_pragmas): Likewise.
15900         (aarch64_reset_previous_fndecl): Likewise.
15901         (aarch64_process_target_attr): Likewise.
15902         (aarch64_override_options_internal): Likewise.
15904 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15906         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
15907         New function.
15908         (aarch64_can_inline_p): Likewise.
15909         (TARGET_CAN_INLINE_P): Define.
15911 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15913         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
15914         Remove static.  Handle OPT_mgeneral_regs_only,
15915         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
15916         OPT_momit_leaf_frame_pointer.
15917         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
15918         (aarch64_attr_opt_type): New enum.
15919         (aarch64_attribute_info): New struct.
15920         (aarch64_handle_attr_arch): New function.
15921         (aarch64_handle_attr_cpu): Likewise.
15922         (aarch64_handle_attr_tune): Likewise.
15923         (aarch64_handle_attr_isa_flags): Likewise.
15924         (aarch64_attributes): New table.
15925         (aarch64_process_one_target_attr): New function.
15926         (num_occurences_in_str): Likewise.
15927         (aarch64_process_target_attr): Likewise.
15928         (aarch64_option_valid_attribute_p): Likewise.
15929         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
15930         * config/aarch64/aarch64-protos.h: Include input.h
15931         (aarch64_handle_option): Declare prototype.
15933 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15935         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
15936         * config/aarch64/aarch64.c: Include target-globals.h
15937         (aarch64_previous_fndecl): New variable.
15938         (aarch64_set_current_function): New function.
15939         (TARGET_SET_CURRENT_FUNCTION): Define.
15941 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15943         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
15944         (explicit_arch): Likewise.
15945         (x_aarch64_isa_flags): Likewise.
15946         (mgeneral-regs-only): Mark as Save.
15947         (mfix-cortex-a53-835769): Likewise.
15948         (mcmodel=): Likewise.
15949         (mstrict-align): Likewise.
15950         (momit-leaf-frame-pointer): Likewise.
15951         (mtls-dialect): Likewise.
15952         (master=): Likewise.
15953         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
15954         (aarch64_isa_flags): Remove extern declaration.
15955         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
15956         to indicate success or failure.
15957         (aarch64_validate_march): Likewise.
15958         (aarch64_validate_mtune): Likewise.
15959         (aarch64_isa_flags): Delete.
15960         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
15961         instead of aarch64_isa_flags.
15962         (aarch64_get_tune_cpu): New function.
15963         (aarch64_get_arch): Likewise.
15964         (aarch64_override_options): Use above and set up explicit_tune_core
15965         and explicit_arch.
15966         (aarch64_print_extension): Move earlier in file.  Add isa_flags
15967         argument and use that instead of the global aarch64_isa_flags.
15968         (aarch64_option_save): New function.
15969         (aarch64_option_restore): Likewise.
15970         (aarch64_option_print): Likewise.
15971         (aarch64_declare_function_name): Likewise.
15972         (aarch64_start_file): Delete.
15973         (TARGET_ASM_FILE_START): Do not define.
15974         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
15975         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
15976         Declare prototype.
15978 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15980         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
15981         flag_omit_leaf_frame_pointer to 2.
15983 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15985         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
15986         define to 0 or 1.
15987         (TARGET_FIX_ERR_A53_835769): New macro.
15988         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
15989         handling of opts->x_aarch64_fix_a53_err835769.
15990         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
15991         than aarch64_fix_a53_err835769.
15992         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
15993         * config/aarch64/aarch64-linux.h: Likewise.
15995 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
15997         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
15998         ix86_expand_int_movcc as boolean.
16000 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16002         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
16003         (aarch64_cpu_string): Likewise.
16004         (aarch64_tune_string): Likewise.
16005         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
16006         (aarch64_parse_extension): Return aarch64_parse_opt_result.
16007         Add extra argument to put result into.
16008         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
16009         (aarch64_parse_cpu): Add arguments to put results into. Return
16010         aarch64_parse_opt_result.
16011         (aarch64_parse_tune): Likewise.
16012         (aarch64_override_options_after_change_1): New function.
16013         (aarch64_override_options_internal): New function.
16014         (aarch64_validate_mcpu): Likewise.
16015         (aarch64_validate_march): Likewise.
16016         (aarch64_validate_mtune): Likewise.
16017         (aarch64_override_options): Update to reflect above changes.
16018         Move some logic into aarch64_override_options_internal.
16019         Initialize target_option_default_node and target_option_current_node.
16020         (aarch64_override_options_after_change): Move logic into
16021         aarch64_override_options_after_change_1 and call it with global_options.
16022         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
16023         flag values from that.
16025 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16027         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16028         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
16029         * config/aarch64/aarch64.c (struct processor): Add arch field.
16030         (all_architectures): Handle above, move above all_cores.
16031         (all_cores): Handle above.
16032         (aarch64_parse_arch): Handle above changes.
16033         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
16034         above.  Update comments.
16035         (armv8.1-a): Likewise.
16036         * config/aarch64/aarch64-cores.def: Update according to above.
16037         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
16038         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
16039         aarch64_arch_driver_info.
16041 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16043         * config/aarch64/aarch64.c (struct processor): Add ident field.
16044         Rename core sched_core.
16045         (all_cores): Handle above changes.
16046         (all_architectures): Likewise.
16047         (aarch64_parse_arch): Likewise.
16048         (aarch64_override_options): Likewise.
16050 2015-08-04  Richard Biener  <rguenther@suse.de>
16052         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16053         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
16054         comparisons embedded in [VEC_]COND_EXPRs.
16056 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
16058         * tree-if-conv.c: Fix various typos in comments.
16059         * tree-vect-stmts.c: Likewise.
16061 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16063         PR tree-optimization/67043
16064         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
16065         preheader after hoisting invariant in it.
16066         (find_defs): Force recomputation of all luids.
16068 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
16070         * config/rs6000/htm.md (tabort.): Restrict the source operand to
16071         using a base register.
16073 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
16075         * main.c (main): Pass in NULL for toplev's external_timer.
16076         * timevar.c: Include coretypes.h.
16077         (class timer::named_items): New.
16078         (timer::named_items::named_items): New.
16079         (timer::named_items::~named_items): New.
16080         (timer::named_items::push): New.
16081         (timer::named_items::pop): New.
16082         (timer::named_items::print): New.
16083         (timer::timer): Initialize field "m_jit_client_items".
16084         (timer::~timer): New.
16085         (timer::push): Move bulk of implementation to...
16086         (timer::push_internal): ...here.  New function.
16087         (timer::pop): Move bulk of implementation to...
16088         (timer::pop_internal): ...here.  New function.
16089         (timer::push_client_item): New.
16090         (timer::pop_client_item): New.
16091         (timer::print_row): New function, taken from timer::print.
16092         (timer::print): Print "GCC items" header if we also have client
16093         items.  Move row-printing to timer::print_row.  Print any client
16094         items.
16095         (timer::get_topmost_item_name): New method.
16096         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
16097         (TV_JIT_CLIENT_CODE): New.
16098         * timevar.h (timer::push_client_item): New declaration.
16099         (timer::pop_client_item): New declaration.
16100         (timer::get_topmost_item_name): New method.
16101         (timer::push_internal): New declaration.
16102         (timer::pop_internal): New declaration.
16103         (timer::print_row): New declaration.
16104         (timer::named_items): New declaration.
16105         (timer::m_jit_client_items): New field.
16106         (timer): Add friend class named_items.
16107         (auto_timevar::auto_timevar): Add timer param.
16108         (auto_timevar::~auto_timevar): Use field "m_timer".
16109         (auto_timevar::m_timer): New field.
16110         * toplev.c (initialize_rtl): Add g_timer as param when
16111         constructing auto_timevar instance.
16112         (toplev::toplev): Add "external_timer" param, and use it to
16113         initialize the "g_timer" global if non-NULL.
16114         (toplev::~toplev): If this created "g_timer", delete it.
16115         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
16116         with "external_timer" timer *.
16118 2015-08-03  Alexander Basov <coohpt@gmail.com>
16120         PR middle-end/64744
16121         PR middle-end/48470
16122         PR middle-end/43404
16123         * cfgexpand.c (expand_one_var): Add check if stack is going to
16124         be used in naked function.
16125         * expr.c (expand_expr_addr_expr_1): Remove excess checking
16126         whether expression should not reside in MEM.
16127         * function.c (use_register_for_decl): Do not use registers for
16128         non-register things (volatile, float, BLKMode) in naked functions.
16130 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
16132         PR target/67060
16133         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
16134         Adjust splits to match new pattern.
16136 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
16138         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
16139         (VEC_M): Likewise.
16140         (VEC_N): Likewise.
16141         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
16142         point in VSX registers.
16144         * config/rs6000/constraints.md (wb constraint): Document unused
16145         w<x> constraint.
16146         (we constraint): Likewise.
16147         (wo constraint): Likewise.
16148         (wp constraint): New constraint for IEEE 128-bit floating point in
16149         VSX registers.
16150         (wq constraint): Likewise.
16152         * config/rs6000/predicates.md (easy_fp_constant): Add support for
16153         IEEE 128-bit floating point in VSX registers.
16154         (easy_scalar_constant): Likewise.
16156         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
16157         constraints (wp, wq) for IEEE 128-bit floating point in VSX
16158         registers.
16159         (rs6000_init_hard_regno_mode_ok): Likewise.
16161         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
16162         floating point in VSX registers.
16163         (VSX_L): Likewise.
16164         (VSX_M): Likewise.
16165         (VSX_M2): Likewise.
16166         (VSm): Likewise.
16167         (VSs): Likewise.
16168         (VSr): Likewise.
16169         (VSa): Likewise.
16170         (VSv): Likewise.
16171         (vsx_le_permute_<mode>): Add support to properly swap bytes for
16172         IEEE 128-bit floating point in VSX registers on little endian.
16173         (vsx_le_undo_permute_<mode>): Likewise.
16174         (vsx_le_perm_load_<mode>): Likewise.
16175         (vsx_le_perm_store_<mode>): Likewise.
16176         (splitters for IEEE 128-bit fp moves): Likewise.
16178         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
16179         wq constraints.
16181         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
16182         floating point in VSX registers.
16183         (VM2): Likewise.
16185         * doc/md.text (Machine Constraints): Document wp and wq
16186         constraints on PowerPC.
16188 2015-08-03  Jeff Law  <law@redhat.com>
16190         PR middle-end/66314
16191         PR gcov-profile/66899
16192         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
16193         iterate over the jump threading paths when an element in the
16194         jump threading paths array is eliminated.
16196 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
16198         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
16200 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
16202         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
16203         is_use_properly_guarded the variable def_preds.  Free its
16204         contents before returning.
16205         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
16206         (is_use_properly_guarded): Replace local variable def_preds with
16207         a parameter.  Adjust accordingly.  Only update *def_preds if it's
16208         the empty vector.
16210 2015-08-03  Richard Biener  <rguenther@suse.de>
16212         * genmatch.c (simplify::for_subst_vec): New member.
16213         (binary_ok): New helper for for lowering.
16214         (lower_for): Delay substituting operators into result expressions
16215         if we can merge the results eventually again.
16216         (capture_info::walk_result): Adjust for user_id appearing as
16217         result expression operator.
16218         (expr::gen_transform): Likewise.
16219         (dt_simplify::gen_1): Likewise.
16220         (dt_simplify::gen): Pass not substituted operators to tail
16221         functions or initialize local variable with it.
16222         (decision_tree::gen): Adjust function signature.
16223         * match.pd: Fix tests against global code and add default
16224         cases to switch stmts.
16226 2015-08-03  Richard Biener  <rguenther@suse.de>
16228         * genmatch.c (dt_simplify::gen): Create captures array
16229         with an initializer.
16231 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16233         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
16234         the host compiler is affected by placement new aliasing bug.
16235         * configure: Regenerate.
16236         * Makefile.in (ALIASING_FLAGS): New variable.
16237         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
16239 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16241         PR target/66731
16242         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
16243         (negmulsf3_vfp): Likewise.
16244         (muldf3negdf_vfp): Disable for -frounding-math.
16245         (mulsf3negsf_vfp): Likewise.
16246         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
16247         fix MULT cost with -frounding-math.
16249 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16251         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
16252         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
16253         explicit.  Prefer to add the flag whenever possible.
16254         (noce_process_if_block): Try noce_try_store_flag_constants before
16255         noce_try_cmove.
16257 2015-08-03  Richard Biener  <rguenther@suse.de>
16259         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
16260         New hash-map to record equivalent transforms.
16261         (dt_node::analyze): Populate the equivalent transforms hash-map.
16262         (dt_simplify::info): Add reference to hash-map entry.
16263         (dt_simplify::gen): If we have split out a function for the
16264         transform, generate a call to it.
16265         (sinfo_hashmap_traits::hash): New function.
16266         (compare_op): New helper function for ...
16267         (sinfo_hashmap_traits::equal_keys): ... this new function.
16268         (decision_tree::gen): Split out common equivalent transforms
16269         into functions.
16271 2015-08-03  Richard Biener  <rguenther@suse.de>
16273         * gimple-fold.c (fold_gimple_assign): Remove folding of
16274         the comparison in COND_EXPRs.
16276 2015-08-03  Richard Biener  <rguenther@suse.de>
16278         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
16279         on the rhs of assignments first simplify the embedded
16280         GENERIC condition.
16282 2015-08-03  Richard Biener  <rguenther@suse.de>
16284         PR tree-optimization/66917
16285         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
16286         field.
16287         (DR_VECT_AUX): New macro.
16288         (set_dr_misalignment): Adjust.
16289         (dr_misalignment): Likewise.
16290         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16291         Compute whether the base is at least element aligned.
16292         * tree-vect-stmts.c (ensure_base_align): Adjust.
16293         (vectorizable_store): If the base is not element aligned
16294         preserve alignment of the original access if misalignment is unknown.
16295         (vectorizable_load): Likewise.
16297 2015-08-02  Martin Sebor  <msebor@redhat.com>
16299         * c-family/c.opt (-Wframe-address): New warning option.
16300         * doc/invoke.texi (Wframe-address): Document it.
16301         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
16302         Clarify possible effects of calling the functions with non-zero
16303         arguments and mention -Wframe-address.
16304         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
16306 2015-08-01  Michael Collison  <michael.collison@linaro.org
16307             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16309         * config/arm/arm.md (*arm_smin_cmp): New pattern.
16310         (*arm_umin_cmp): Likewise.
16312 2015-08-01  Caroline Tice  <cmtice@google.com>
16314         PR 66521
16315         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
16316         global variables.
16317         (vtbl_find_mangled_name):  New function.
16318         (vtbl_register_mangled_name):  New function.
16319         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
16320         mangled name in mangled name vectors.
16321         (find_or_create_vtbl_map_node):  Ditto.
16322         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
16323         update recursion_depth on function entry; pass it to every recursive
16324         call; automatically exit if depth > 25 (give up looking at that point).
16325         (verify_bb_vtables):  Initialize recursion_depth and pass it to
16326         var_is_used_for_virtual_call_p.
16327         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
16328         global variable decls.
16329         (vtbl_register_mangled_name): New extern function decl.
16331 2015-08-01  Tom de Vries  <tom@codesourcery.com>
16333         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
16334         function.
16335         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
16336         Declare.
16337         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
16338         operation_no_trapping_overflow.  Allow non-overflow operations.
16339         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
16340         operations.
16342 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
16344         PR target/67049
16345         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
16347 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16349         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
16350         Enable for TARGET_32BIT.
16351         (*if_move_neg): Likewise.
16353 2015-07-31  Nick Clifton  <nickc@redhat.com>
16355         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
16356         Returns true for __model__.
16357         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
16359 2015-07-31  Alan Modra  <amodra@gmail.com>
16361         PR target/66870
16362         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
16363         (rs6000_emit_prologue): Set it.
16364         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
16366 2015-07-31  Richard Biener  <rguenther@suse.de>
16368         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
16369         -> X == (C1 ^ C2) which is already implemented in match.pd.
16370         Remove redundant dispatching to fold_relational_const.
16371         Move unordered self and NaN compares ...
16372         * match.pd: ... as patterns here.  Remove some stray captures
16373         and add a comment.
16375 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
16377         * config/i386/i386.c
16378         (bdesc_special_args): Convert mask type from signed to unsigned for
16379         masked builtins.
16380         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
16381         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
16382         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
16383         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
16384         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
16385         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
16386         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
16387         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
16388         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
16389         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
16390         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
16391         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
16392         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
16393         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
16394         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
16395         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
16396         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
16397         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
16398         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
16399         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
16400         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
16401         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
16402         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
16403         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
16404         * config/i386/i386-builtin-types.def
16405         (V16QI_FTYPE_V16SI): Remove.
16406         (V8DF_FTYPE_V8SI): Ditto.
16407         (V8HI_FTYPE_V8DI): Ditto.
16408         (V8SI_FTYPE_V8DI): Ditto.
16409         (V8SF_FTYPE_V8DF): Ditto.
16410         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
16411         (V16HI_FTYPE_V16SI): Ditto.
16412         (V16SF_FTYPE_V16HI): Ditto.
16413         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
16414         (V16SF_FTYPE_V16SI): Ditto.
16415         (V4DI_FTYPE_V4DI): Ditto.
16416         (V16SI_FTYPE_V16SF): Ditto.
16417         (V16SF_FTYPE_FLOAT): Ditto.
16418         (V8DF_FTYPE_DOUBLE): Ditto.
16419         (V8DI_FTYPE_INT64): Ditto.
16420         (V8DI_FTYPE_V4DI): Ditto.
16421         (V16QI_FTYPE_V8DI): Ditto.
16422         (UINT_FTYPE_V4SF): Ditto.
16423         (UINT64_FTYPE_V4SF): Ditto.
16424         (UINT_FTYPE_V2DF): Ditto.
16425         (UINT64_FTYPE_V2DF): Ditto.
16426         (V16SI_FTYPE_V16SI): Ditto.
16427         (V8DI_FTYPE_V8DI): Ditto.
16428         (V16SI_FTYPE_PV4SI): Ditto.
16429         (V16SF_FTYPE_PV4SF): Ditto.
16430         (V8DI_FTYPE_PV2DI): Ditto.
16431         (V8DF_FTYPE_PV2DF): Ditto.
16432         (V4DI_FTYPE_PV2DI): Ditto.
16433         (V4DF_FTYPE_PV2DF): Ditto.
16434         (V16SI_FTYPE_PV2SI): Ditto.
16435         (V16SF_FTYPE_PV2SF): Ditto.
16436         (V8DI_FTYPE_PV4DI): Ditto.
16437         (V8DF_FTYPE_PV4DF): Ditto.
16438         (V8SF_FTYPE_FLOAT): Ditto.
16439         (V4SF_FTYPE_FLOAT): Ditto.
16440         (V4DF_FTYPE_DOUBLE): Ditto.
16441         (V8SF_FTYPE_PV4SF): Ditto.
16442         (V8SI_FTYPE_PV4SI): Ditto.
16443         (V4SI_FTYPE_PV2SI): Ditto.
16444         (V8SF_FTYPE_PV2SF): Ditto.
16445         (V8SI_FTYPE_PV2SI): Ditto.
16446         (V16SF_FTYPE_PV8SF): Ditto.
16447         (V16SI_FTYPE_PV8SI): Ditto.
16448         (V8DI_FTYPE_V8SF): Ditto.
16449         (V4DI_FTYPE_V4SF): Ditto.
16450         (V2DI_FTYPE_V4SF): Ditto.
16451         (V64QI_FTYPE_QI): Ditto.
16452         (V32HI_FTYPE_HI): Ditto.
16453         (V8UHI_FTYPE_V8UHI): Ditto.
16454         (V16UHI_FTYPE_V16UHI): Ditto.
16455         (V32UHI_FTYPE_V32UHI): Ditto.
16456         (V2UDI_FTYPE_V2UDI): Ditto.
16457         (V4UDI_FTYPE_V4UDI): Ditto.
16458         (V8UDI_FTYPE_V8UDI): Ditto.
16459         (V4USI_FTYPE_V4USI): Ditto.
16460         (V8USI_FTYPE_V8USI): Ditto.
16461         (V16USI_FTYPE_V16USI): Ditto.
16462         (V2DF_FTYPE_V2DF_UINT64): Ditto.
16463         (V2DI_FTYPE_V2DF_V2DF): Ditto.
16464         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
16465         (V8DF_FTYPE_V8DF_V8DI): Ditto.
16466         (V4SF_FTYPE_V4SF_UINT64): Ditto.
16467         (V4SI_FTYPE_V4SF_V4SF): Ditto.
16468         (V16SF_FTYPE_V16SF_V16SI): Ditto.
16469         (V64QI_FTYPE_V32HI_V32HI): Ditto.
16470         (V32HI_FTYPE_V16SI_V16SI): Ditto.
16471         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
16472         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
16473         (V32HI_FTYPE_V64QI_V64QI): Ditto.
16474         (V32HI_FTYPE_V32HI_V32HI): Ditto.
16475         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
16476         (V16SI_FTYPE_V16SI_V4SI): Ditto.
16477         (V16SI_FTYPE_V16SI_V16SI): Ditto.
16478         (V16SI_FTYPE_V32HI_V32HI): Ditto.
16479         (V16SI_FTYPE_V16SI_SI): Ditto.
16480         (V8DI_FTYPE_V8DI_V8DI): Ditto.
16481         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
16482         (V8DI_FTYPE_V16SI_V16SI): Ditto.
16483         (V8DI_FTYPE_V8DI_V2DI): Ditto.
16484         (QI_FTYPE_QI): Ditto.
16485         (SI_FTYPE_SI): Ditto.
16486         (DI_FTYPE_DI): Ditto.
16487         (QI_FTYPE_QI_QI): Ditto.
16488         (QI_FTYPE_QI_INT): Ditto.
16489         (HI_FTYPE_HI_INT): Ditto.
16490         (SI_FTYPE_SI_INT): Ditto.
16491         (DI_FTYPE_DI_INT): Ditto.
16492         (HI_FTYPE_V16QI_V16QI): Ditto.
16493         (SI_FTYPE_V32QI_V32QI): Ditto.
16494         (DI_FTYPE_V64QI_V64QI): Ditto.
16495         (QI_FTYPE_V8HI_V8HI): Ditto.
16496         (HI_FTYPE_V16HI_V16HI): Ditto.
16497         (SI_FTYPE_V32HI_V32HI): Ditto.
16498         (QI_FTYPE_V4SI_V4SI): Ditto.
16499         (QI_FTYPE_V8SI_V8SI): Ditto.
16500         (QI_FTYPE_V2DI_V2DI): Ditto.
16501         (QI_FTYPE_V4DI_V4DI): Ditto.
16502         (QI_FTYPE_V8DI_V8DI): Ditto.
16503         (HI_FTYPE_V16SI_V16SI): Ditto.
16504         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
16505         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
16506         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
16507         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
16508         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
16509         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
16510         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
16511         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
16512         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
16513         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
16514         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
16515         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
16516         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
16517         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
16518         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
16519         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
16520         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
16521         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
16522         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
16523         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
16524         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
16525         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
16526         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
16527         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
16528         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
16529         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
16530         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
16531         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
16532         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
16533         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
16534         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
16535         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
16536         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
16537         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
16538         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
16539         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
16540         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
16541         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
16542         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
16543         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
16544         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
16545         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
16546         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
16547         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
16548         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
16549         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
16550         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
16551         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
16552         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
16553         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
16554         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
16555         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
16556         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
16557         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
16558         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
16559         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
16560         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
16561         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
16562         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
16563         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
16564         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
16565         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
16566         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
16567         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
16568         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
16569         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
16570         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
16571         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
16572         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
16573         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
16574         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
16575         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
16576         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
16577         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
16578         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
16579         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
16580         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
16581         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
16582         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
16583         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
16584         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
16585         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
16586         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
16587         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
16588         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
16589         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
16590         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
16591         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
16592         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
16593         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
16594         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
16595         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
16596         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
16597         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
16598         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
16599         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
16600         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
16601         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
16602         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
16603         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
16604         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
16605         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
16606         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
16607         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
16608         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
16609         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
16610         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
16611         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
16612         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
16613         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
16614         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
16615         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
16616         (HI_FTYPE_HI): Ditto.
16617         (HI_FTYPE_V16QI): Ditto.
16618         (SI_FTYPE_V32QI): Ditto.
16619         (DI_FTYPE_V64QI): Ditto.
16620         (QI_FTYPE_V8HI): Ditto.
16621         (HI_FTYPE_V16HI): Ditto.
16622         (SI_FTYPE_V32HI): Ditto.
16623         (QI_FTYPE_V4SI): Ditto.
16624         (QI_FTYPE_V8SI): Ditto.
16625         (HI_FTYPE_V16SI): Ditto.
16626         (QI_FTYPE_V2DI): Ditto.
16627         (QI_FTYPE_V4DI): Ditto.
16628         (QI_FTYPE_V8DI): Ditto.
16629         (V16QI_FTYPE_HI): Ditto.
16630         (V32QI_FTYPE_SI): Ditto.
16631         (V64QI_FTYPE_DI): Ditto.
16632         (V8HI_FTYPE_QI): Ditto.
16633         (V16HI_FTYPE_HI): Ditto.
16634         (V32HI_FTYPE_SI): Ditto.
16635         (V4SI_FTYPE_QI): Ditto.
16636         (V4SI_FTYPE_HI): Ditto.
16637         (V8SI_FTYPE_QI): Ditto.
16638         (V8SI_FTYPE_HI): Ditto.
16639         (V2DI_FTYPE_QI): Ditto.
16640         (V4DI_FTYPE_QI): Ditto.
16641         (HI_FTYPE_HI_HI): Ditto.
16642         (SI_FTYPE_SI_SI): Ditto.
16643         (DI_FTYPE_DI_DI): Ditto.
16644         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
16645         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
16646         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
16647         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
16648         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
16649         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
16650         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
16651         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
16652         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
16653         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
16654         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
16655         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
16656         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
16657         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
16658         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
16659         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
16660         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
16661         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
16662         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
16663         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
16664         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
16665         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
16666         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
16667         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
16668         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
16669         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
16670         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
16671         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
16672         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
16673         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
16674         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
16675         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
16676         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
16677         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
16678         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
16679         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
16680         (V16SI_FTYPE_HI): Ditto.
16681         (V8DI_FTYPE_QI): Ditto.
16682         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
16683         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
16684         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
16685         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
16686         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
16687         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
16688         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
16689         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
16690         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
16691         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
16692         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
16693         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
16694         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
16695         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
16696         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
16697         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
16698         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
16699         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
16700         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
16701         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
16702         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
16703         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
16704         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
16705         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
16706         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
16707         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
16708         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
16709         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
16710         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
16711         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
16712         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
16713         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
16714         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
16715         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
16716         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
16717         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
16718         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
16719         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
16720         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
16721         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
16722         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
16723         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
16724         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
16725         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
16726         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
16727         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
16728         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
16729         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
16730         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
16731         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
16732         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
16733         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
16734         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
16735         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
16736         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
16737         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
16738         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
16739         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
16740         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
16741         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
16742         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
16743         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
16744         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
16745         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
16746         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
16747         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
16748         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
16749         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
16750         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
16751         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
16752         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
16753         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
16754         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
16755         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
16756         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
16757         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
16758         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
16759         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
16760         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
16761         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
16762         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
16763         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
16764         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
16765         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
16766         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
16767         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
16768         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
16769         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
16770         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
16771         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
16772         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
16773         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
16774         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
16775         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
16776         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
16777         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
16778         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
16779         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
16780         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
16781         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
16782         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
16783         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
16784         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
16785         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
16786         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
16787         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
16788         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
16789         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
16790         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
16791         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
16792         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
16793         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
16794         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
16795         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
16796         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
16797         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
16798         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
16799         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
16800         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
16801         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
16802         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
16803         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
16804         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
16805         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
16806         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
16807         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
16808         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
16809         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
16810         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
16811         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
16812         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
16813         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
16814         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
16815         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
16816         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
16817         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
16818         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
16819         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
16820         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
16821         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
16822         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
16823         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
16824         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
16825         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
16826         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
16827         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
16828         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
16829         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
16830         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
16831         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
16832         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
16833         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
16834         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
16835         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
16836         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
16837         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
16838         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
16839         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
16840         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
16841         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
16842         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
16843         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
16844         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
16845         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
16846         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
16847         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
16848         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
16849         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
16850         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
16851         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
16852         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
16853         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
16854         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
16855         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
16856         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
16857         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
16858         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
16859         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
16860         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
16861         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
16862         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
16863         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
16864         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
16865         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
16866         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
16867         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
16868         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
16869         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
16870         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
16871         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
16872         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
16873         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
16874         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
16875         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
16876         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
16877         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
16878         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
16879         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
16880         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
16881         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
16882         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
16883         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
16884         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
16885         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
16886         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
16887         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
16888         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
16889         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
16890         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
16891         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
16892         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
16893         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
16894         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
16895         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
16896         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
16897         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
16898         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
16899         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
16900         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
16901         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
16902         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
16903         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
16904         (QI_FTYPE_V8DF_INT_QI): Ditto.
16905         (QI_FTYPE_V4DF_INT_QI): Ditto.
16906         (QI_FTYPE_V2DF_INT_QI): Ditto.
16907         (HI_FTYPE_V16SF_INT_HI): Ditto.
16908         (QI_FTYPE_V8SF_INT_QI): Ditto.
16909         (QI_FTYPE_V4SF_INT_QI): Ditto.
16910         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
16912 2015-07-31  Richard Biener  <rguenther@suse.de>
16914         * gimple-fold.c (fold_gimple_assign): Remove folding of
16915         GIMPLE_BINARY_RHS.
16917 2015-07-31  Tom de Vries  <tom@codesourcery.com>
16919         PR tree-optimization/66846
16920         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
16921         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
16922         (expand_omp_target) [ENABLE_CHECKING]: Same.
16923         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
16924         cfun if !LOOPS_NEED_FIXUP.
16925         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
16926         that omp_for already has its own loop struct.
16927         * tree-parloops.c (create_phi_for_local_result)
16928         (create_call_for_reduction): Handle simple latch bb.
16929         (create_parallel_loop): Add simple latch bb to preserve
16930         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
16931         (gen_parallel_loop): Remove call to cancel_loop_tree.
16932         (parallelize_loops): Skip loops that are inner loops of parallelized
16933         loops.
16934         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
16935         verify_loop_structure.
16937 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
16939         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
16940         * config/v850/v850.md (RV_REGNUM): New constants.
16941         * config/v850/v850.c (v850_libcall_value): New functions.
16942         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
16943         (TARGET_LIBCALL_VALUE): Define.
16945 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
16947         * rtl.h (lowpart_subreg): Move in file.
16948         * loop-iv.c (lowpart_subreg): Move to...
16949         * simplify-rtx.c (lowpart_subreg): ...here.
16950           (simplify_binary_operation_1): Use lowpart_subreg instead of
16951           simplify_gen_subreg.
16952         * expr.c (expand_expr_real_2): Ditto.
16953         * emit-rtl.c (gen_lowpart_common): Ditto.
16954         * combine.c (gen_lowpart_for_combine): Ditto.
16955         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
16956           expand_debug_source_expr): Ditto.
16958 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
16960         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
16961         (expand_builtin_atomic_clear): Remove support for atomic_clear
16962         pattern.
16964 2015-07-30  Richard Biener  <rguenther@suse.de>
16966         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
16967         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
16968         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
16969         redundant operand canonicalization.
16971 2015-07-30  David Sherwood  <david.sherwood@arm.com>
16973         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
16974         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
16975         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
16976         * config/arm/arm.c (neon_valid_immediate): Likewise.
16977         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
16978         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
16979         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
16980         (expand_vec_perm_vpshufb2_vpermq): Likewise.
16981         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
16982         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
16983         * config/i386/sse.md
16984         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
16985         (*ssse3_palignr<mode>_perm): Likewise.
16986         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
16987         * config/spu/spu.c (arith_immediate_p): Likewise.
16988         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
16989         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
16991 2015-07-30  Richard Biener  <rguenther@suse.de>
16993         * genmatch.c (decision_tree::gen_gimple): Merge with ...
16994         (decision_tree::gen_generic): ... this into ...
16995         (decision_tree::gen): ... this.
16996         (main): Adjust callers.
16998 2015-07-30  Richard Biener  <rguenther@suse.de>
17000         * genmatch.c (verbose): New global.
17001         (warning_at): Add overload with source_location.
17002         (capture_info::capture_info): Add bool whether generating gimple
17003         or generic.  Add gimple member.
17004         (capture_info::cinfo): Add capture member.
17005         (capture_info::walk_match): Record capture.  Warn on
17006         non-captured leafs.
17007         (capture_info::walk_c_expr): Add more fragments captures cannot
17008         escape through.  Warn on escaped captures.
17009         (dt_simplify::gen_1): Warn on operands we force to have no
17010         side-effects.
17011         (main): Initialize verbose.
17012         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
17014 2015-07-30  Richard Biener  <rguenther@suse.de>
17016         PR middle-end/67053
17017         * match.pd: Allow both operands to independently have conversion
17018         when simplifying compares of addresses.
17020 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
17022         PR target/66217
17023         PR target/67045
17024         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
17025         around those cases that need one.
17027 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
17029         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
17031 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
17033         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
17034         New.  Copied from config/i386/gnu-user.h.
17035         (ASM_COMMENT_START): Likewise.
17036         (DBX_REGISTER_NUMBER): Likewise.
17038 2015-07-29  Richard Biener  <rguenther@suse.de>
17040         * gimple-fold.c (fold_gimple_cond): Remove.
17041         (fold_stmt_1): Do not call it.
17043 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
17045         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
17046         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
17048         * config/aarch64/aarch64-modes.def: Add HFmode.
17050         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17051         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
17053         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
17054         aarch64_promoted_type): New.
17056         (aarch64_float_const_representable_p): Disable HFmode.
17057         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
17058         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
17059         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
17061         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
17062         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
17064         * config/aarch64/iterators.md (GPF_F16): New.
17066 2015-07-29  Richard Biener  <rguenther@suse.de>
17068         * match.pd: Merge address comparison patterns and make them
17069         handle some more cases.
17071 2015-07-29  Richard Biener  <rguenther@suse.de>
17073         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
17074         (parser::parse_capture): Add bool argument on whether to reject
17075         unknown captures.
17076         (parser::parse_expr): Adjust.
17077         (parser::parse_op): Likewise.
17078         (parser::parse_pattern): Likewise.
17080 2015-07-29  Richard Biener  <rguenther@suse.de>
17082         * gimple-fold.c (has_use_on_stmt): New function.
17083         (replace_stmt_with_simplification): Use it to allow
17084         abnormals originally referenced in the stmt.
17085         (fold_stmt_1): Canonicalize operand order.
17087 2015-07-28  David Sherwood  <david.sherwood@arm.com>
17089         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
17090         GET_MODE_INNER unconditionally.
17091         * config/spu/spu.c (arith_immediate_p): Likewise.
17092         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
17093         * expmed.c (synth_mult): Remove check for VOIDmode result from
17094         GET_MODE_INNER.
17095         (expand_mult_const): Likewise.
17096         * fold-const.c (fold_binary_loc): Replace call to element_precision
17097         with call to GET_MODE_PRECISION.
17098         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
17099         m->name.
17100         (emit_mode_inner): Likewise.
17101         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
17102         result check.
17103         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
17104         (GET_MODE_UNIT_PRECISION): Likewise.
17105         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
17106         * simplify-rtx.c (simplify_immed_subreg): Likewise.
17107         * stor-layout.c (bitwise_type_for_mode): Update assert.
17108         (element_precision): Remove.
17110 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17112         * target-insns.def (reload_load_address): New targetm instruction
17113         pattern.
17114         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
17116 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17118         * target-insns.def (atomic_test_and_set): New targetm instruction
17119         pattern.
17120         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
17121         HAVE_*/gen_* interface.
17123 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17125         * target-insns.def (can_extend, ptr_extend): New targetm instruction
17126         patterns.
17127         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
17128         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
17129         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
17130         * rtlanal.c (nonzero_bits1): Likewise.
17131         (num_sign_bit_copies1): Likewise.
17133 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17135         * target-insns.def (eh_return): New targetm instruction pattern.
17136         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
17137         interface.
17138         * function.c (thread_prologue_and_epilogue_insns): Remove
17139         preprocessor condition.
17141 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17143         * target-insns.def (indirect_jump): New targetm instruction pattern.
17144         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
17145         interface.
17147 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17149         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
17150         instead of nonimmediate_operand.  Remove C condiition.
17152 2015-07-28  Richard Biener  <rguenther@suse.de>
17154         * match.pd: Add more simplification of address comparisons.
17156 2015-07-28  Richard Biener  <rguenther@suse.de>
17158         * match.pd: Re-order two cases in comparison with max/min
17159         value simplification to make it apply for bools.
17161 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17163         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
17164         Handle simple SIGN_EXTEND or ZERO_EXTEND.
17165         (aarch64_rtx_costs): Properly strip extend or extract before
17166         passing down to rtx costs again.
17168 2015-07-28  Nick Clifton  <nickc@redhat.com>
17170         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
17171         Optimizes the case where -mes0 is active and a constant symbolic
17172         address is used.
17173         * config/rl78/rl78-protos.h: Prototype the new function.
17174         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
17176 2015-07-28  Tom de Vries  <tom@codesourcery.com>
17178         * tree-parloops.c (reduc_stmt_res): New function.
17179         (initialize_reductions, add_field_for_reduction)
17180         (create_phi_for_local_result, create_loads_for_reductions)
17181         (create_stores_for_reduction, build_new_reduction): Handle case that
17182         reduc_stmt is a phi.
17183         (gather_scalar_reductions): Allow double_reduc reductions.
17185 2015-07-28  Richard Biener  <rguenther@suse.de>
17187         * fold-const.c (fold_comparison): Remove equality folding
17188         of decl addresses ...
17189         * match.pd: ... here and merge with existing pattern.
17191 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17193         PR tree-optimization/66828
17194         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
17195         from int64_t to uint64_t.
17197 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17199         * opts-common.c (read_cmdline_option): List DriverOnly enum values
17200         as valid only in the error message of the driver, not in the
17201         messages of the language compilers.
17203 2015-07-27  Tom de Vries  <tom@codesourcery.com>
17205         * tree-parloops.c (gather_scalar_reductions): Simplify function
17206         structure.
17208 2015-07-27  Marek Polacek  <polacek@redhat.com>
17210         * ipa-devirt.c (types_same_for_odr): Fix typo.
17212 2015-07-27  Jason Merrill  <jason@redhat.com>
17214         PR debug/66468
17215         * dwarf2out.c (gen_inlined_subroutine_die): Check
17216         cgraph_function_possibly_inlined_p.
17218 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
17220         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
17221         Place integer variant first.
17222         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17224 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
17226         PR/63870
17227         * config/arm/arm-builtins.c (enum arm_builtins):
17228         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
17229         (ARM_BUILTIN_NEON_BASE): Rename macro to....
17230         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
17231         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
17232         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
17234 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
17236         PR/63870
17237         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
17238         Add qualifier_lane_index.
17239         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
17240         (arm_getlane_qualifiers): Use qualifier_lane_index.
17241         (arm_lanemac_qualifiers): Rename to...
17242         (arm_mac_n_qualifiers): ...this.
17243         (LANEMAC_QUALIFIERS): Rename to...
17244         (MAC_N_QUALIFIERS): ...this.
17245         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
17246         (arm_setlane_qualifiers): Use qualifier_lane_index.
17247         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
17248         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
17249         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
17250         (arm_expand_neon_builtin): Handle qualifier_lane_index.
17252         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
17253         * config/arm/arm.c (bounds_check): Likewise, improve error message.
17254         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
17255         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
17256         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
17257         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
17258         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
17259         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
17260         qualifiers to TERNOP_IMM.
17261         (vdup_lane): Change qualifiers to GETLANE.
17262         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
17263         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
17264         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
17265         vqdmlsl_n): Change qualifiers to MAC_N.
17267         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
17268         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
17269         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
17270         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
17271         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
17272         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
17273         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
17274         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
17275         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
17276         Remove call to neon_lane_bounds.
17278 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
17280         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
17281         Place integer variant first.
17283 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
17285         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
17286         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
17287         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
17288         for armv6kz targets.
17289         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
17290         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
17291         (FL_FOR_ARCH6ZK): Remove.
17292         (FL_FOR_ARCH6KZ): New.
17293         (arm_arch6zk): New declaration.
17294         * config/arm/arm-tables.opt: Regenerate.
17295         * config/arm/arm.c (arm_arch6kz): New.
17296         (arm_option_override): Set arm_arch6kz.
17297         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
17298         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
17299         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
17301 2015-07-27  Marek Polacek  <polacek@redhat.com>
17303         PR c++/66555
17304         PR c/54979
17305         * doc/invoke.texi: Document -Wtautological-compare.
17307 2015-07-27  Richard Biener  <rguenther@suse.de>
17309         * genmatch.c (decision_tree::gen_gimple): Split out large
17310         subtrees into separate functions.
17311         (decision_tree::gen_generic): Likewise.
17313 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
17315         * config/alpha/alpha.c: Use SUBREG_P predicate.
17316         * config/alpha/predicates.md: Ditto.
17318 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17320         * config.host (s390*-*-*): Include driver-native.c only when
17321         building with s390* as host *and* target.
17323 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
17325         PR target/66930
17326         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
17327         T bit register modified_between_p check.
17329 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
17331         * config/i386/i386.c: Use SUBREG_P predicate.
17332         * config/i386/i386.md: Ditto.
17333         * config/i386/sse.md: Ditto.
17334         * config/i386/predicates.md: Ditto.
17336 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
17338         PR target/67004
17339         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
17340         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
17342 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
17344         * Makefile.in: Remove use of TREEBROWSER.
17345         * config.in: Regenerated.
17346         * configure: Regenerated.
17347         * configure.ac: Remove definition of TREEBROWSER.
17348         * tree-browser.c: Removed.
17349         * tree-browser.def: Removed.
17351 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
17353         * graphite-scop-detection.c: Include gimple-pretty-print.h.
17354         (stmt_simple_for_scop_p): Print when a stmt is not handled in
17355         Graphite.
17356         (scopdet_basic_block_info): Print when a loop or bb cannot be
17357         represented in Graphite.
17359 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
17361         PR target/66648
17362         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
17363         execution guard when min_size is less than size_needed.
17365 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
17367         * doc/install.texi: Document supported versions of ISL.
17369 2015-07-25  Jeff Law  <law@redhat.com>
17371         Revert:
17372         PR lto/66752
17373         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17374         unable to find X NE 0 in the tables, return X as the simplified
17375         condition.
17376         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17377         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
17378         to VISISTED_BBS.  */
17379         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17380         after removing the control flow statement and unnecessary edges.
17382 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
17384         Revert:
17385         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
17387         PR rtl-optimization/64164
17388         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17389         * tree-ssa-copyrename.c: Removed.
17390         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17391         -ftree-coalesce-vars.
17392         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17393         * common.opt (ftree-copyrename): Ignore.
17394         (ftree-coalesce-inlined-vars): Likewise.
17395         * doc/invoke.texi: Remove the ignored options above.
17396         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17397         * tree-ssa-coalesce.h: ... here.
17398         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17399         headers required by it.
17400         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17401         across variables when flag_tree_coalesce_vars.  Check register
17402         use and promoted modes to allow coalescing.  Moved to
17403         tree-ssa-coalesce.c.
17404         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17405         with its member functions to tree-ssa-coalesce.c.
17406         (var_map_base_init): Likewise.  Renamed to
17407         compute_samebase_partition_bases.
17408         (partition_view_normal): Drop want_bases parameter.
17409         (partition_view_bitmap): Likewise.
17410         * tree-ssa-live.h: Adjust declarations.
17411         * tree-ssa-coalesce.c: Include explow.h.
17412         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17413         default defs at the entry point.
17414         (dump_part_var_map): New.
17415         (compute_optimized_partition_bases): New, called by...
17416         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17417         of compute_samebase_partition_bases.  Adjust.
17418         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17419         * cfgexpand.c (leader_merge): New.
17420         (get_rtl_for_parm_ssa_default_def): New.
17421         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17422         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17423         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17424         redundant MEM attr setting.
17425         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17426         from...
17427         (expand_one_stack_var): ... this.  New wrapper to check and
17428         skip already expanded SSA partitions.
17429         (record_alignment_for_reg_var): New, factored out of...
17430         (expand_one_var): ... this.
17431         (expand_one_ssa_partition): New.
17432         (adjust_one_expanded_partition_var): New.
17433         (expand_one_register_var): Check and skip already expanded SSA
17434         partitions.
17435         (expand_used_vars): Don't create DECLs for anonymous SSA
17436         names.  Expand all SSA partitions, then adjust all SSA names.
17437         (pass::execute): Replace the loops that set
17438         SA.partition_to_pseudo from partition leaders and cleared
17439         DECL_RTL for multi-location variables, and that which used to
17440         rename vars and set attrs, with one that clears DECL_RTL and
17441         checks that PARMs and RESULTs default_defs match DECL_RTL.
17442         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17443         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17444         * explow.c (promote_ssa_mode): New.
17445         * explow.h (promote_ssa_mode): Declare.
17446         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17447         * function.c: Include cfgexpand.h.
17448         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17449         (use_register_for_parm_decl): Wrapper for the above to
17450         special-case the result_ptr.
17451         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17452         (split_complex_args): Take assign_parm_data_all argument.
17453         Pass it to rtl_for_parm.  Set up rtl and context for split
17454         args.
17455         (assign_parms_augmented_arg_list): Adjust.
17456         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17457         multiple locations.  Recognize split complex args.
17458         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17459         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17460         (assign_parm_setup_block): Prefer SSA-assigned location.
17461         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17462         if stack_parm is NULL.
17463         (assign_parm_setup_stack): Prefer SSA-assigned location.
17464         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17465         rtl before testing for pointer bounds.  Special-case result_ptr.
17466         (expand_function_start): Maybe reset DECL_RTL of result.
17467         Prefer SSA-assigned location for result and static chain.
17468         Factor out DECL_RESULT and SET_DECL_RTL.
17469         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17470         anonymous SSA names.  Use promote_ssa_mode.
17471         (get_temp_reg): Likewise.
17472         (remove_ssa_form): Adjust.
17473         * stor-layout.c (layout_decl): Don't set mem attributes of
17474         non-MEMs.
17475         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17476         and get its reg_usage for reg invalidation.
17477         (compute_bb_dataflow): Pass it insn.
17478         (emit_notes_in_bb): Likewise.
17480 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
17482         * config/i386/i386.c (ix86_va_start): Remove
17483         unneeded !TARGET_64BIT check.
17484         (ix86_gimplify_va_arg): Ditto.
17486 2015-07-24  Tom de Vries  <tom@codesourcery.com>
17488         * graphite-sese-to-poly.c (build_poly_scop): Always call
17489         rewrite_commutative_reductions_out_of_ssa.
17491 2015-07-24  Tom de Vries  <tom@codesourcery.com>
17493         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
17494         flag_associative_math to FLOAT_TYPE_P.  Honour
17495         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
17497 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17499         PR c++/64079
17500         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
17501         and "%qD" in warning_at instead of "%q+D" in warning.
17503 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
17505         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
17506         (ix86_function_abi): Cleanup.
17508 2015-07-24  Michael Darling  <darlingm@gmail.com>
17510         PR other/66259
17511         * acinclude.m4: Reflects renaming of configure.in to configure.ac
17512         * configure: Likewise
17513         * configure.ac: Likewise
17514         * doc/install.texi: Likewise
17515         * doc/tm.texi: Likewise
17516         * doc/tm.texi.in: Likewise
17518 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17520         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
17521         manually swapping values.
17522         * cse.c (fold_rtx): Likewise.
17523         * lra-eliminations.c (form_sum): Likewise.
17525 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
17527         PR target/64003
17528         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
17529         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
17530         (*jcc_1, *jcc_2, jump, simple_return_internal)
17531         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
17532         Set length_nobnd attribute instead of length attribute.
17533         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
17534         (length_nobnd): Remove attribute.
17535         (length): Remove length_nobnd processing.
17537 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
17539         * gimplify.c (omp_default_clause): New function.  Reorganize flow
17540         for clarity. Broken out of ...
17541         (omp_notice_variable): ... here.
17543 2015-07-24  Gary Funck  <gary@intrepid.com>
17545         PR middle-end/66984
17546         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
17547         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
17549 2015-07-24  Tom de Vries  <tom@codesourcery.com>
17551         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
17552         exit-first loop transform.
17554 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
17556         PR 66714
17557         * tree-cfg.c (struct replace_decls_d): New struct.
17558         (replace_block_vars_by_duplicates_1): New function.
17559         (replace_block_vars_by_duplicates): Use it to replace the decls
17560         in the value exprs by duplicates.
17562 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17564         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
17565         -shared, -symbolic, -rdynamic.
17567 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17569         PR target/65711
17570         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
17571         -dynamic-linker within %{!static %{!shared, and -rdynamic within
17572         %{!static.
17574 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
17576         PR ipa/66566
17577         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
17578         edge summary is available.
17580 2015-07-24  Richard Biener  <rguenther@suse.de>
17582         * genmatch.c (struct dt_node): Add statistic fields.
17583         (dt_node::analyze): New method.
17584         (decision_tree::gen_gimple): Call analyze on the root node
17585         and print statistics to stderr.
17586         (decision_tree::gen_generic): Likewise.
17588 2015-07-24  Richard Biener  <rguenther@suse.de>
17590         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
17591         against the highest or lowest possible integer ...
17592         * match.pd: ... as patterns here.
17594 2015-07-24  Richard Biener  <rguenther@suse.de>
17596         * genmatch.c (struct capture_info): Add same_as field.
17597         (capture_info::capture_info): Initialize same_as.
17598         (capture_info::walk_match): Compute same_as.
17599         (capture_info::walk_result): Compute stuff for the leader.
17600         (capture_info::walk_c_expr): Likewise.
17601         (dt_simplify::gen_1): Only look at leaders when deciding
17602         to force no side-effects or emit side-effects of omitted operands.
17604 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17606         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
17607         reg note to the GPR -> FPR save instructions.
17609 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17611         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
17612         cheaper.
17613         (s390_expand_insv): Don't generate risbg pattern for constant zero
17614         sources.
17615         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
17616         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
17617         splitters.
17619 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17621         * config/s390/s390.c (s390_reorg): Clean up handling of processors
17622         with
17623         -mtune=
17624         (s390_issue_rate): Likewise.
17625         (s390_sched_reorder): Likewise.
17626         (s390_sched_variable_issue): Likewise.
17627         (s390_loop_unroll_adjust): Likewise.
17628         (s390_option_override):  Likewise.
17630 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17632         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
17633         processor capabilities with -march=native.
17634         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
17635         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
17636         (S390_TARGET_BITS_STRING): Macro to simplify specs.
17638 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17640         * config/s390/s390.c (s390_issue_rate): Handle
17641         PROCESSOR_2094_Z9_EC.
17642         (s390_option_override): Likewise.
17643         (s390_adjust_priority): Likewise.
17645 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17647         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
17648         when cross compiling.
17650 2015-07-24  Richard Biener  <rguenther@suse.de>
17652         * fold-const.c (maybe_canonicalize_comparison_1): Move
17653         A code CST canonicalization ...
17654         * match.pd: ... to a pattern here.
17656 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
17658         Revert:
17659         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
17660         PR target/63521
17661         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
17662         (HONOR_REG_ALLOC_ORDER): Define.
17664 2015-07-24  Richard Biener  <rguenther@suse.de>
17666         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
17667         * fold-const.c (fold_comparison): Move parameter does not
17668         alias &local simplification ...
17669         * match.pd: ... as a pattern here.
17671 2015-07-24  Richard Biener  <rguenther@suse.de>
17673         * gimple-fold.c (replace_stmt_with_simplification): Special-case
17674         valueizing call operands.
17675         * gimple-match-head.c (maybe_push_res_to_seq): Take
17676         number of call arguments from ops array.
17677         (do_valueize): New function.
17678         (gimple_simplify): Return true if valueization changed
17679         any operand even if the result didn't simplify further.
17681 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17683         PR middle-end/25530
17684         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
17686 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17688         PR middle-end/25529
17689         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
17691 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
17693         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
17694         instruction.
17696 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
17698         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
17699         clean up.
17701 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
17703         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
17704         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
17705         targets here.
17706         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
17707         ms_va_list_type_node initialization.
17709 2015-07-23  Jeff Law  <law@redhat.com>
17711         PR lto/66752
17712         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17713         unable to find X NE 0 in the tables, return X as the simplified
17714         condition.
17715         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17716         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
17717         to VISISTED_BBS.  */
17718         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17719         after removing the control flow statement and unnecessary edges.
17721 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17723         * tree-pass.h (get_current_pass_name): Removed.
17725 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
17727         PR rtl-optimization/64164
17728         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17729         * tree-ssa-copyrename.c: Removed.
17730         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17731         -ftree-coalesce-vars.
17732         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17733         * common.opt (ftree-copyrename): Ignore.
17734         (ftree-coalesce-inlined-vars): Likewise.
17735         * doc/invoke.texi: Remove the ignored options above.
17736         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17737         * tree-ssa-coalesce.h: ... here.
17738         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17739         headers required by it.
17740         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17741         across variables when flag_tree_coalesce_vars.  Check register
17742         use and promoted modes to allow coalescing.  Moved to
17743         tree-ssa-coalesce.c.
17744         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17745         with its member functions to tree-ssa-coalesce.c.
17746         (var_map_base_init): Likewise.  Renamed to
17747         compute_samebase_partition_bases.
17748         (partition_view_normal): Drop want_bases parameter.
17749         (partition_view_bitmap): Likewise.
17750         * tree-ssa-live.h: Adjust declarations.
17751         * tree-ssa-coalesce.c: Include explow.h.
17752         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17753         default defs at the entry point.
17754         (dump_part_var_map): New.
17755         (compute_optimized_partition_bases): New, called by...
17756         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17757         of compute_samebase_partition_bases.  Adjust.
17758         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17759         * cfgexpand.c (leader_merge): New.
17760         (get_rtl_for_parm_ssa_default_def): New.
17761         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17762         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17763         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17764         redundant MEM attr setting.
17765         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17766         from...
17767         (expand_one_stack_var): ... this.  New wrapper to check and
17768         skip already expanded SSA partitions.
17769         (record_alignment_for_reg_var): New, factored out of...
17770         (expand_one_var): ... this.
17771         (expand_one_ssa_partition): New.
17772         (adjust_one_expanded_partition_var): New.
17773         (expand_one_register_var): Check and skip already expanded SSA
17774         partitions.
17775         (expand_used_vars): Don't create DECLs for anonymous SSA
17776         names.  Expand all SSA partitions, then adjust all SSA names.
17777         (pass::execute): Replace the loops that set
17778         SA.partition_to_pseudo from partition leaders and cleared
17779         DECL_RTL for multi-location variables, and that which used to
17780         rename vars and set attrs, with one that clears DECL_RTL and
17781         checks that PARMs and RESULTs default_defs match DECL_RTL.
17782         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17783         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17784         * explow.c (promote_ssa_mode): New.
17785         * explow.h (promote_ssa_mode): Declare.
17786         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17787         * function.c: Include cfgexpand.h.
17788         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17789         (use_register_for_parm_decl): Wrapper for the above to
17790         special-case the result_ptr.
17791         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17792         (split_complex_args): Take assign_parm_data_all argument.
17793         Pass it to rtl_for_parm.  Set up rtl and context for split
17794         args.
17795         (assign_parms_augmented_arg_list): Adjust.
17796         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17797         multiple locations.  Recognize split complex args.
17798         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17799         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17800         (assign_parm_setup_block): Prefer SSA-assigned location.
17801         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17802         if stack_parm is NULL.
17803         (assign_parm_setup_stack): Prefer SSA-assigned location.
17804         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17805         rtl before testing for pointer bounds.  Special-case result_ptr.
17806         (expand_function_start): Maybe reset DECL_RTL of result.
17807         Prefer SSA-assigned location for result and static chain.
17808         Factor out DECL_RESULT and SET_DECL_RTL.
17809         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17810         anonymous SSA names.  Use promote_ssa_mode.
17811         (get_temp_reg): Likewise.
17812         (remove_ssa_form): Adjust.
17813         * stor-layout.c (layout_decl): Don't set mem attributes of
17814         non-MEMs.
17815         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17816         and get its reg_usage for reg invalidation.
17817         (compute_bb_dataflow): Pass it insn.
17818         (emit_notes_in_bb): Likewise.
17820 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
17822         PR target/66217
17823         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
17824         prototype.
17825         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
17826         (rs6000_emit_2insn_and): Handle dot forms.
17827         * config/rs6000/rs6000.md (and<mode>3): Adjust.
17828         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
17829         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
17831 2015-07-23  Richard Biener  <rguenther@suse.de>
17833         * generic-match-head.c: Include cgraph.h.
17834         * gimple-match-head.c: Likewise.
17835         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
17836         SSA names.
17837         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
17838         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
17839         pattern.
17841 2015-07-23  Richard Biener  <rguenther@suse.de>
17843         * gimple-fold.c (fold_gimple_cond): Do not require folding
17844         results to pass valid_gimple_rhs_p.
17845         * tree-cfg.h (fold_cond_expr_cond): Remove.
17846         * tree-cfg.c (fold_cond_expr_cond): Likewise.
17847         (make_edges): Do not call it.
17848         * tree-inline.c (tree_function_versioning): Likewise.
17850 2015-07-23  Tom de Vries  <tom@codesourcery.com>
17852         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
17853         vect_force_simple_reduction.
17854         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
17855         (vect_is_simple_reduction_1): Add and handle
17856         need_wrapping_integral_overflow parameter.
17857         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
17858         need_wrapping_integral_overflow parameter.
17859         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
17860         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
17861         decl.
17863 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
17865         PR tree-optimization/66926,66951
17866         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
17867         INNER_LOOP and fix up condition for renaming virtual operands.
17869 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17871         * combine.c (try_combine): Use std::swap instead of manually
17872         swapping.
17874 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
17876         * config/mips/i6400.md: New file.
17877         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
17878         (mips64r6): Likewise.
17879         (i6400): Define.
17880         * config/mips/mips-tables.opt: Regenerate.
17881         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
17882         (mips_issue_rate): Add support for i6400.
17883         (mips_multipass_dfa_lookahead): Likewise.
17884         * config/mips/mips.h (TUNE_I6400): Define.
17885         * config/mips/mips.md: Include i6400.md.
17886         (processor): Add i6400.
17887         * doc/invoke.texi (-march=@var{arch}): Add i6400.
17889 2015-07-23  Richard Biener  <rguenther@suse.de>
17891         PR middle-end/66916
17892         * match.pd: Guard widen and sign-change comparison simplification
17893         with single_use.
17895 2015-07-23  Richard Biener  <rguenther@suse.de>
17897         PR tree-optimization/66945
17898         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
17899         ::before_dom_children): Force the propagators idea of
17900         non-executable edges to materialize, not what the folder
17901         chooses.
17903 2015-07-23  Richard Biener  <rguenther@suse.de>
17905         * gimple.h (gimple_cond_make_false): Use 0 != 0.
17906         (gimple_cond_make_true): Use 1 != 0.
17908 2015-07-22  DJ Delorie  <dj@redhat.com>
17910         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
17911         slashes.
17913         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
17914         (ashrhi3): Likewise.
17915         (lshrhi3): Likewise.
17916         (movhi): Take advantage of zero-extend to load small constants.
17917         (movpsi): Likewise.
17918         (and<mode>3): Likewise.
17919         (zero_extendqihi2): Likewise.
17920         (zero_extendqisi2): New.
17921         * config/msp430/constraints.md (N,O): New.
17922         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
17924 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
17926         PR target/66954
17927         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
17928         to enum feature_priority and feature_list.
17929         (fold_builtin_cpu): Add F_AES to enum processor_features
17930         and isa_names_table.
17932 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
17934         PR driver/66737
17935         * config/i386/linux-common.h (MPX_SPEC): Use linker option
17936         for 64bit target only.
17938 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
17940         * config/nvptx/nvptx.c: Expand some comments.
17942 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
17944         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
17945         (cortex_a53_advsimd): ...This.
17947 2015-07-22  Richard Biener  <rguenther@suse.de>
17949         * genmatch.c (expr::gen_transform): Clarify error message
17950         and display location.
17952 2015-07-22  Richard Biener  <rguenther@suse.de>
17954         * genmatch.c (struct operand): Add location member.
17955         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
17956         constructors.
17957         (struct simplify): Remove match_location and result_location
17958         members.
17959         (elsehwere): Adjust.
17961 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
17963         * config/mips/m5100.md: New file.
17964         * config/mips/mips-cpus.def (m5100, m5101): Define.
17965         * config/mips/mips-tables.opt: Regenerate.
17966         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
17967         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
17968         -march=m5101 to -mips32r5.
17969         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
17970         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
17971         !-msoft-float.
17972         * config/mips/mips.md: Include m5100.md.
17973         (processor): Add m5100.
17974         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
17976 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
17978         * config/mips/mips-cpus.def (interaptiv): Define.
17979         * config/mips/mips-tables.opt: Regenerate.
17980         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
17981         -mips32r2.
17982         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
17983         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
17985 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
17987         PR target/63521
17988         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
17989         (HONOR_REG_ALLOC_ORDER): Define.
17991 2015-07-22  Richard Biener  <rguenther@suse.de>
17993         PR tree-optimization/66952
17994         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
17995         blocks we end up executing unconditionally reset all SSA
17996         info such as range and alignment.
17997         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
17998         * tree-ssanames.c (reset_flow_sensitive_info): New function.
18000 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
18002         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
18003         typo in attribute.
18005 2015-07-22  Richard Biener  <rguenther@suse.de>
18007         * genmatch.c (parser::parse_result): Properly handle
18008         match with result operands and conditions.
18010 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
18012         PR target/63870
18013         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18014         Add qualifier_struct_load_store_lane_index.
18015         (aarch64_types_loadstruct_lane_qualifiers): Use
18016         qualifier_struct_load_store_lane_index for lane index argument for
18017         last argument.
18018         (aarch64_types_storestruct_lane_qualifiers): Ditto.
18019         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18020         (aarch64_simd_expand_args): Add new argument describing mode of
18021         builtin. Check lane bounds for arguments with
18022         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18023         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
18024         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18025         (aarch64_simd_expand_builtin): Handle arguments with
18026         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
18027         aarch64_simd_expand_args.
18028         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
18029         vst[234]_lane with BUILTIN_VALLDIF.
18030         * config/aarch64/aarch64-simd.md:
18031         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
18032         endianness reversal on lane index.
18033         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
18034         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
18035         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
18036         (vec_store_lanesci_lane<mode>): Ditto.
18037         (vec_store_lanesxi_lane<mode>): Ditto.
18038         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
18039         reversal of lane index.
18040         (aarch64_ld3_lane<mode>): Ditto.
18041         (aarch64_ld4_lane<mode>): Ditto.
18042         (aarch64_st2_lane<mode>): Ditto.
18043         (aarch64_st3_lane<mode>): Ditto.
18044         (aarch64_st4_lane<mode>): Ditto.
18045         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
18046         to qmode. Add new mode parameter. Update uses.
18047         (__LD3_LANE_FUNC): Ditto.
18048         (__LD4_LANE_FUNC): Ditto.
18049         (__ST2_LANE_FUNC): Ditto.
18050         (__ST3_LANE_FUNC): Ditto.
18051         (__ST4_LANE_FUNC): Ditto.
18053 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
18055         * doc/invoke.texi (Language Independent Options): Rename node to
18056         Diagnostic Message Formatting Options.
18058 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
18060         PR ipa/66424.
18061         * lra-remat.c (operand_to_remat): Prevent using insns with input
18062         subregs processed separately by IRA.
18064 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
18066         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
18067         straight loops.
18068         (single_imm_use): Check for iterator node.
18069         (num_imm_uses): Likewise.
18070         * tree-ssa-operands.c (has_zero_uses_1): Delete.
18071         (single_imm_use_1): Check for iterator node.
18073 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
18074             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18076         * configure.ac: Add check for new options in isl-0.15.
18077         * config.in, configure: Rebuilt.
18078         * graphite-blocking.c: Include <isl/constraint.h>
18079         * graphite-interchange.c,  graphite-poly.c: Likewise.
18080         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
18081         * graphite.c: Likewise.
18082         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
18083         <isl/union_set.h>.
18084         * graphite-dependences.c: Include <isl/constraint.h>.
18085         (max_number_of_out_dimensions): Returns isl_stat.
18086         (extend_schedule_1): Likewise
18087         (extend_schedule): Corresponding changes.
18088         * graphite-optimize-isl.c: Include <isl/constraint.h> and
18089         <isl/union_set.h>.
18090         (getSingleMap): Change return type of isl_stat.
18091         (optimize_isl): Conditionally use
18092         isl_options_set_schedule_serialize_sccs.
18093         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
18094         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
18096 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
18098         PR target/66956
18099         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
18100         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
18102 2015-07-21  Richard Biener  <rguenther@suse.de>
18104         PR tree-optimization/66948
18105         * genmatch.c (capture_info::walk_match): Also recurse to
18106         captures.  Properly compute expr state from captures of
18107         captures.
18108         * match.pd: Add single-use guards to
18109         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
18111 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
18113         * config/nvptx/mkoffload.c (process): Add static destructor call.
18115 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18117         PR middle-end/66915
18118         * match.pd (A - B -> A + (-B)): Don't allow folding
18119         when type if a fixed-point type.
18121 2015-07-20  DJ Delorie  <dj@redhat.com>
18123         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
18124         (iorqi3_real): Likewise for set1.
18126 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
18128         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
18129         for !TARGET_64BIT.
18131 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
18133         * graphite-isl-ast-to-gimple.c:
18134         Refactor so that each function can access 'region'. This will help
18135         maintain a parameter rename_map within a region.
18137 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
18139         * config/rs6000/rs6000.md (*lt0_disi): New.
18141 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
18143         PR target/66217
18144         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
18145         "available letters" comment.
18146         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
18147         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
18148         and_2rld_operand):  Delete.
18149         (and_operand): Adjust.
18150         (rotate_mask_operator): New.
18151         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
18152         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
18153         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
18154         extract_ME): Delete.
18155         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18156         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
18157         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
18158         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18159         rs6000_emit_2insn_and): New.
18160         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
18161         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
18162         includes_rldic_lshift_p, includes_rldicr_lshift_p,
18163         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
18164         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18165         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
18166         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
18167         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18168         rs6000_emit_2insn_and): New.
18169         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
18170         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
18171         handling.
18172         <NOT>: Don't fall through to next case.
18173         <AND>: Handle the various rotate-and-mask cases directly.
18174         <IOR>: Always cost as one insn.
18175         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
18176         (and<mode>3): Adjust expander for the new patterns.
18177         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
18178         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
18179         (*and<mode>3_imm_dot_shifted): New.
18180         (*and<mode>3_mask): Delete, rewrite as ...
18181         (and<mode>3_mask): ... New.
18182         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
18183         (andsi3_internal0_nomc): Delete.
18184         (*andsi3_internal6): Delete.
18185         (*and<mode>3_2insn): New.
18186         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18187         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18188         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
18189         *insvdi_internal3): Delete.
18190         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
18191         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
18192         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
18193         *ior<mode>_mask): New.
18194         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
18195         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18196         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18197         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18198         Delete.
18199         (ashr<mode>3): Delete expander.
18200         (*ashr<mode>3): Rename to ...
18201         (ashr<mode>3): ... This.
18202         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
18203         (*rotldi3_internal4, *rotldi3_internal5 and split,
18204         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
18205         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
18206         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
18207         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
18208         (splitter for loading a mask): Adjust.
18209         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
18211 2015-07-20  Marek Polacek  <polacek@redhat.com>
18213         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
18214         output_add_clobbers, output_added_clobbers_hard_reg_p,
18215         gen_rtx_scratch): Remove declarations.
18217 2015-07-20  Marek Polacek  <polacek@redhat.com>
18219         PR c++/55095
18220         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
18222 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18224         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
18225         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
18227 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18229         * combine.c (combine_simplify_rtx): Move simplification step
18230         before various transformations/substitutions.
18232 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
18234         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
18235         (struct int_traits): Likewise.
18237 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18239         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
18240         function to vmsdbgout_function_decl.
18242 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
18244         PR target/66922
18245         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
18246         from misaligned positions.
18247         (ix86_expand_pinsr): Reject insertions to misaligned positions.
18249 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
18251         PR middle-end/46851
18252         PR middle-end/60340
18253         * Makefile.in: Removed omega.o.
18254         * common.opt: Document flag fcheck-data-deps as deprecated.
18255         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
18256         its associated params: omega-max-vars, omega-max-geqs,
18257         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
18258         omega-max-keys, omega-eliminate-redundant-constraints.
18259         * doc/loop.texi: Remove all the section on Omega.
18260         * graphite-blocking.c: Include missing params.h: it used to be
18261         included through tree-data-ref.h and omega.h.
18262         * graphite-isl-ast-to-gimple.c: Same.
18263         * graphite-optimize-isl.c: Same.
18264         * graphite-sese-to-poly.c: Same.
18265         * graphite.c: Same.
18266         * omega.c: Remove.
18267         * omega.h: Remove.
18268         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
18269         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
18270         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
18271         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
18272         * passes.def: Remove pass_check_data_deps.
18273         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
18274         (dump_conflict_function): Same.
18275         (dump_subscript): Same.
18276         (print_direction_vector): Same.
18277         (print_dir_vectors): Same.
18278         (print_lambda_vector): Same.
18279         (print_dist_vectors): Same.
18280         (dump_data_dependence_relation): Same.
18281         (dump_data_dependence_relations): Same.
18282         (dump_dist_dir_vectors): Same.
18283         (dump_ddrs): Same.
18284         (init_omega_eq_with_af): Removed.
18285         (omega_extract_distance_vectors): Removed.
18286         (omega_setup_subscript): Removed.
18287         (init_omega_for_ddr_1): Removed.
18288         (init_omega_for_ddr): Removed.
18289         (ddr_consistent_p): Removed.
18290         (compute_affine_dependence): Do not use omega to check data
18291         dependences.
18292         (compute_data_dependences_for_bb): Removed.
18293         (analyze_all_data_dependences): Removed.
18294         (tree_check_data_deps): Removed.
18295         * tree-data-ref.h: Do not include omega.h.
18296         (compute_data_dependences_for_bb): Removed.
18297         (tree_check_data_deps): Removed.
18298         * tree-ssa-loop.c (pass_check_data_deps): Removed.
18299         (make_pass_check_data_deps): Removed.
18300         * tree-ssa-phiopt.c: Include params.h.
18301         * tree-vect-data-refs.c: Same.
18302         * tree-vect-slp.c: Same.
18304 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
18306         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
18307         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
18308         (mem->fpreg splitters): Ditto.
18309         (general_operand->nonimmediate_operand splitter): Use explicit modes.
18310         Disable DFmode for TARGET_64BIT.
18312 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
18314         PR target/66906
18315         * config/i386/i386.c (ix86_expand_prologue): Replicate static
18316         chain on the stack.
18318 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
18320         * config/nvptx/mkoffload.c (process): Constify host data.
18321         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18322         Constify host data.
18323         (generate_host_descr_file): Likewise.
18325 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
18326             Sebastian Pop  <s.pop@samsung.com>
18328         PR middle-end/61929
18329         * graphite-dependences.c (add_pdr_constraints): Renamed
18330         pdr->extent to pdr->subscript_sizes.
18331         * graphite-interchange.c (build_linearized_memory_access): Add
18332         back all gcc_assert's that the "isl_int to isl_val conversion"
18333         patch has removed.  Refactored.
18334         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
18335         * graphite-poly.c (new_poly_dr): Same.
18336         (free_poly_dr): Same.
18337         * graphite-poly.h (struct poly_dr): Same.
18338         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
18339         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
18340         * graphite-scop-detection.h: Fix space.
18341         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
18342         back all gcc_assert's removed by a previous patch.
18343         (wrap): Remove the_isl_ctx global variable that the same patch has
18344         added.
18345         (build_loop_iteration_domains): Same.
18346         (add_param_constraints): Same.
18347         (pdr_add_data_dimensions): Same.  Refactored.
18348         (build_poly_dr): Renamed extent to subscript_sizes.
18350 2015-07-17  Marek Polacek  <polacek@redhat.com>
18352         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
18353         * match.pd: ... here.
18355 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
18357         * config/nvptx/mkoffload.c (process): Constify target data.
18358         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18359         Constify target data.
18360         (generate_target_offloadend_file): Likewise.
18362 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
18364         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
18365         to allow renaming of PHI arguments on edges incoming from outer
18366         loop header, add corresponding check before start PHI iterator.
18367         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
18368         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
18369         with true force_vectorize.  Set-up dominator for outer loop too.
18370         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
18371         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
18372         was marked with force_vectorize and has restricted cfg.
18373         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
18374         inner loop.
18375         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
18376         do peeling for outer loops.
18378 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
18379             Matthias Klose  <doko@ubuntu.com>
18381         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
18382         build-sysroot, sysroot from the `Miscenalleous configure options' to
18383         the `Directories' section and strip trailing `/' from with_sysroot.
18384         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
18385         * configure: Regenerated.
18387 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
18389         PR target/66824
18390         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
18391         (TARGET_HARD_DF_REGS): Ditto.
18392         (TARGET_HARD_XF_REGS): Ditto.
18393         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
18394         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
18395         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
18396         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
18397         (*movsf_internal): Add alternatives 16 and 17. Enable
18398         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
18400 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
18402         PR rtl-optimization/66891
18403         * calls.c (expand_call): Wrap precompute_register_parameters with
18404         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
18406 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
18408         * config/nvptx/mkoffload.c (process): Constify mapping variables.
18409         Define target data struct and initialize it.
18411 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
18413         PR rtl-optimization/66626
18414         * ira.h (emit-rtl.h): Include.
18415         (non_spilled_static_chain_regno_p): New.
18416         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
18417         unless it is non spilled static chain pseudo.
18418         (assign_hard_rego): Spill memory profitable allocno unless it is
18419         non spilled static chain pseudo.
18420         (allocno_spill_priority_compare): Put non spilled static chain
18421         pseudo at the end of sorted array.
18422         (improve_allocation): Do nothing if we have static chain and
18423         non-local goto.
18424         (allocno__priority_compare_func): Put non spilled static chain
18425         pseudo at the beginning of sorted array.
18426         (move_spill_restore): Ignore non spilled static chain pseudo.
18427         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
18428         to non spilled static chain pseudo.
18429         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
18430         pseudo at the beginning of sorted array.
18431         (spill_for): Spill non spilled static chain pseudo last.
18432         * lra-constraints.c (lra_constraints): Remove static chain pseudo
18433         check for equivalence.
18435 2015-07-16  Martin Liska  <mliska@suse.cz>
18437         PR ipa/66896.
18438         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
18439         dst_ctx if it does not exist.
18441 2015-07-16  Martin Liska  <mliska@suse.cz>
18443         * hash-set.h (remove): New function.
18444         (iterator): New iteration class for hash_set.
18446 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18448         * genattrtab.c (make_canonical): Add a file_location parameter.
18449         Use fatal_at rather than fatal.
18450         (get_attr_value): Likewise.  Update call to make_canonical.
18451         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
18452         (make_internal_attr): Update calls accordingly.
18454 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18456         * read-md.h (message_with_line, error_with_line): Delete.
18457         * read-md.c (message_with_line, error_with_line): Delete.
18458         * gensupport.h: Include read-md.h.
18459         (md_rtx_info): New structure.
18460         (read_md_rtx): Use it.  Return a bool success value.
18461         * gensupport.c (read_md_rtx): Likewise.
18462         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
18463         (main): Update after interface changes.
18464         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
18465         (main): Update after interface changes.
18466         * genattrtab.c (insn_code_number): Delete.
18467         (optimize_attrs): Add a max_insn_code parameter and use it instead
18468         of insn_code_number.
18469         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
18470         Use *_at rather than *_with_line functions.
18471         (gen_insn): Likewise.
18472         (gen_delay): Likewise.
18473         (gen_insn_reserv): Likewise.
18474         (gen_bypass): Take an md_rtx_info rather than an rtx.
18475         (main): Update after interface changes.  Use a local max_insn_code
18476         variable instead of insn_code_number.
18477         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
18478         an rtx.  Use fatal_at rather than fatal.
18479         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
18480         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
18481         (gen_absence_set, gen_final_absence_set, gen_automaton)
18482         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
18483         (main): Update after interface changes.
18484         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
18485         and code number.
18486         (main): Update after interface changes.
18487         * genconditions.c (main): Use new read_md_rtx interface.
18488         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
18489         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
18490         (main): Update after interface changes.
18491         * genemit.c (insn_code_number, insn_index_number): Delete.
18492         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18493         Use fatal_at rather than fatal.
18494         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
18495         rather than fatal.
18496         (gen_split): Likewise.
18497         (main): Update after interface changes.
18498         * genextract.c (line_no): Delete.
18499         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18500         Update call to walk_rtx.
18501         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
18502         rather than message_with_line.
18503         (walk_rtx): Add an md_rtx_info argument.  Update call to
18504         VEC_safe_set_locstr.
18505         (main): Update after interface changes.
18506         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
18507         and lineno.  Use error_at rather than separate message_with_line
18508         calls and have_error assignments.
18509         (main): Update after interface changes.
18510         * genmddump.c (main): Use new read_md_rtx interface.
18511         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
18512         (main): Update after interface changes.
18513         * genoutput.c (next_code_number): Delete.
18514         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18515         (gen_peephole, gen_expand, gen_split): Likewise.
18516         (note_constraint): Likewise.  Use *_at rather than *_with_line
18517         functions.
18518         (main): Update after interface changes.
18519         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
18520         rtx and lineno.
18521         (main): Update after interface changes.
18522         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
18523         than an rtx and lineno.
18524         (process_define_constraint): Likewise.
18525         (process_define_register_constraint): Likewise.
18526         (main): Update after interface changes.
18527         * genrecog.c (next_insn_code, pattern_lineno): Delete.
18528         (validate_pattern): Replace top-level rtx with an md_rtx_info.
18529         Use *_at rather than *_with_line functions.
18530         (match_pattern_2): Likewise.
18531         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
18532         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
18533         Use *_at rather than *_with_line functions.
18534         * gentarget-def.c (add_insn): New function.
18535         (main): Use it.  Use new read_md_rtx interface.
18537 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18539         * gensupport.h (compute_test_codes): Take a file_location rather
18540         than a line number.
18541         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
18542         rather than *_with_line functions.
18543         (process_define_predicate): Update call to compute_test_codes.
18544         * genpreds.c (validate_exp): Take a file_location rather than a
18545         line number.  Use *_at functions rather than *_with_line functions.
18546         (process_define_predicate): Update call to validate_exp.
18547         (constraint_data): Replace lineno field with a file_location.
18548         (add_constraint): Take a file_location rather than a line number.
18549         Use *_at functions rather than *_with_line functions.  Fix error
18550         message for address constraints.  Update after changes to
18551         validate_exp, constraint_data and compute_test_codes.
18552         (process_define_constraint): Update accordingly.
18553         (process_define_register_constraint): Likewise.
18555 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18557         * genoutput.c (data): Use a file_location to record the source
18558         position.
18559         (nothing): Delete.
18560         (idata, idata_end): Remove initialization.
18561         (constraint_data): Replace lineno with a file_location.
18562         (output_insn_data): Update after changes to data.
18563         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
18564         (scan_operands): Likewise, using *_at rather than *_with_line
18565         functions.
18566         (process_template): Likewise.
18567         (validate_insn_alternatives): Likewise.
18568         (validate_insn_operands): Likewise.
18569         (validate_optab_operands): Likewise.
18570         (init_insn_for_nothing): Initialize idata and idata_end.
18571         (note_constraint): Update after changes to constraint_data,
18572         using at rather than with_line functions.
18573         (mdep_constraint_len): Take a file_location rather than a
18574         line number.  Use at rather than with_line functions.
18576 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18578         * read-md.h (fatal_at): Declare.
18579         * read-md.c (fatal_at): New function.
18580         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
18581         to record the source position.
18582         (check_attr_test): Take a file_location instead of a line number.
18583         Use fatal_at instead of fatal.
18584         (check_attr_value): Update after above changes, using "at"
18585         rather than "with_line" reporting functions.
18586         (convert_set_attr_alternative): Likewise.
18587         (gen_attr): Likewise.
18588         (check_defs): Likewise.  Don't assign to read_md_filename.
18589         (gen_insn): Update initialization after above changes.
18590         (gen_delay): Likewise.
18591         (write_insn_cases): Print the filename for a define_peephole.
18592         (gen_insn_reserv): Take a line number as argument and update
18593         the call to check_attr_test.
18594         (main): Pass a line number to gen_insn_reserv.
18596 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18598         * read-md.h (file_location): New structure.
18599         (directive_handler_t): Take a file_location rather than a line number.
18600         (message_at, error_at): Declare.
18601         (read_skip_construct): Delete.
18602         * read-md.c (message_with_line_1): Replace with...
18603         (message_at_1): ...this new function.
18604         (message_at, error_at): New functions.
18605         (message_with_line, error_with_line): Update to use message_at_1.
18606         (handle_enum): Take a file_location rather than a line number
18607         and use error_at for error reporting.
18608         (handle_include): Likewise.
18609         (read_skip_construct): Likewise.  Make static.
18610         (handle_file): Update after above changes.  Pass a file_location
18611         rather than a line number to handle_directive.
18612         * gensupport.c (queue_elem): Replace separate filename and lineno
18613         with a file_location.
18614         (queue_pattern): Replace filename and lineno arguments with a
18615         file_location.  Update after change to queue_elem.
18616         (process_define_predicate): Replace lineno argument with a
18617         file_location and use error_at for error reporting.  Update
18618         after above changes.
18619         (process_rtx): Likewise.
18620         (subst_pattern_match): Likewise.
18621         (get_alternatives_number): Likewise.
18622         (alter_predicate_for_insn): Likewise.
18623         (rtx_handle_directive): Likewise.
18624         (is_predicable): Update after above changes, using error_at rather
18625         than error_with_line.
18626         (has_subst_attribute): Likewise.
18627         (identify_predicable_attribute): Likewise.
18628         (alter_attrs_for_subst_insn): Likewise.
18629         (process_one_cond_exec): Likewise.
18630         (process_substs_on_one_elem): Likewise.
18631         (process_define_subst): Likewise.
18632         (check_define_attr_duplicates): Likewise.
18633         (read_md_rtx): Update after change to queue_elem.
18635 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18637         * genoutput.c (next_index_number): Delete.
18638         (data): Remove index_number.
18639         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
18640         (main): Remove manipulation of next_index_number.
18642 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18644         * genattrtab.c (check_attr_value): Remove handling of null attrs.
18645         (make_canonical): Likewise.
18647 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
18649         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
18650         instead of adjust_address_nv.
18651         (restore_stack_nonlocal): Likewise.
18652         (nonlocal_goto): Likewise.
18654 2015-07-16  Tom de Vries  <tom@codesourcery.com>
18656         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
18657         not have a corresponding loop header phi.
18659 2015-07-16  Tom de Vries  <tom@codesourcery.com>
18661         * tree-parloops.c (create_loads_for_reductions): Handle case that
18662         reduction is unused.
18664 2015-07-16  Richard Biener  <rguenther@suse.de>
18666         PR tree-optimization/66894
18667         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
18668         about deriving NE_EXPR from truncated values.
18670 2015-07-16  Martin Liska  <mliska@suse.cz>
18672         * alloc-pool.h
18673         (object_allocator): Add new class.
18674         (pool_allocator::initialize): Use the underlying class.
18675         (pool_allocator::allocate): Likewise.
18676         (pool_allocator::remove): Likewise.
18677         (operator new): A new generic allocator.
18678         * asan.c (struct asan_mem_ref): Remove unused members.
18679         (asan_mem_ref_new): Replace new operator with
18680         object_allocator::allocate.
18681         (free_mem_ref_resources): Change deallocation.
18682         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
18683         with object_allocator.
18684         * config/sh/sh.c (add_constant): Replace new operator with
18685         object_allocator::allocate.
18686         (sh_reorg): Change call to a release method.
18687         * cselib.c (struct elt_list): Remove unused members.
18688         (new_elt_list): Replace new operator with
18689         object_allocator::allocate.
18690         (new_elt_loc_list): Likewise.
18691         (new_cselib_val): Likewise.
18692         (unchain_one_elt_list): Change delete operator with remove method.
18693         (unchain_one_elt_loc_list): Likewise.
18694         (unchain_one_value): Likewise.
18695         (cselib_finish): Release newly added static allocators.
18696         * cselib.h (struct cselib_val): Remove unused members.
18697         (struct elt_loc_list): Likewise.
18698         * df-problems.c (df_chain_alloc): Replace pool_allocator with
18699         object_allocator.
18700         * df-scan.c (struct df_scan_problem_data): Likewise.
18701         (df_scan_alloc): Likewise.
18702         * df.h (struct dataflow): Likewise.
18703         * dse.c (struct read_info_type): Likewise.
18704         (struct insn_info_type): Likewise.
18705         (struct dse_bb_info_type): Likewise.
18706         (struct group_info): Likewise.
18707         (struct deferred_change): Likewise.
18708         (get_group_info): Likewise.
18709         (delete_dead_store_insn): Likewise.
18710         (free_read_records): Likewise.
18711         (replace_read): Likewise.
18712         (check_mem_read_rtx): Likewise.
18713         (scan_insn): Likewise.
18714         (dse_step1): Likewise.
18715         (dse_step7): Likewise.
18716         * et-forest.c (struct et_occ): Remove unused members.
18717         (et_new_occ): Use allocate instead of new operator.
18718         (et_new_tree): Likewise.
18719         (et_free_tree): Call release method explicitly.
18720         (et_free_tree_force): Likewise.
18721         (et_free_pools): Likewise.
18722         (et_split): Use remove instead of delete operator.
18723         * et-forest.h (struct et_node): Remove unused members.
18724         * ipa-cp.c: Change pool_allocator to object_allocator.
18725         * ipa-inline-analysis.c: Likewise.
18726         * ipa-profile.c: Likewise.
18727         * ipa-prop.c: Likewise.
18728         * ipa-prop.h: Likewise.
18729         * ira-build.c (initiate_cost_vectors): Cast return value.
18730         (ira_allocate_cost_vector): Likewise.
18731         * ira-color.c (struct update_cost_record): Remove unused members.
18732         * lra-int.h (struct lra_live_range): Likewise.
18733         (struct lra_copy): Likewise.
18734         (struct lra_insn_reg): Likewise.
18735         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
18736         * lra.c (new_insn_reg): Replace new operator with allocate method.
18737         (free_insn_regs): Same for operator delete.
18738         (finish_insn_regs): Release new static allocator.
18739         (finish_insn_recog_data): Likewise.
18740         (lra_free_copies): Replace delete operator with remove method.
18741         (lra_create_copy): Replace operator new with allocate method.
18742         (invalidate_insn_data_regno_info): Same for remove method.
18743         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
18744         (free_debug_insn_changes): Replace delete operator with remove method.
18745         (replace_oldest_value_reg): Replace operator new with allocate method.
18746         (pass_cprop_hardreg::execute): Release new static variable.
18747         * sched-deps.c (sched_deps_init): Change pool_allocator to
18748         object_allocator.
18749         * sel-sched-ir.c: Likewise.
18750         * sel-sched-ir.h: Likewise.
18751         * stmt.c (expand_case): Likewise.
18752         (expand_sjlj_dispatch_table): Likewise.
18753         * tree-sra.c (struct access): Remove unused members.
18754         (struct assign_link): Likewise.
18755         (sra_deinitialize): Release newly added static pools.
18756         (create_access_1):Replace operator new with allocate method.
18757         (build_accesses_from_assign): Likewise.
18758         (create_artificial_child_access): Likewise.
18759         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
18760         pool_allocator to object_allocator.
18761         * tree-ssa-pre.c: Likewise.
18762         * tree-ssa-reassoc.c: Likewise.
18763         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
18764         * tree-ssa-strlen.c: Likewise.
18765         * tree-ssa-structalias.c: Likewise.
18766         * var-tracking.c (onepart_pool_allocate): New function.
18767         (unshare_variable): Use the newly added function.
18768         (variable_merge_over_cur): Likewise.
18769         (variable_from_dropped): Likewise.
18770         (variable_was_changed): Likewise.
18771         (set_slot_part): Likewise.
18772         (emit_notes_for_differences_1): Likewise.
18773         (vt_finalize): Release newly added static pools.
18775 2015-07-16  Martin Jambor  <mjambor@suse.cz>
18777         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
18778         all uses.  Fix two typos in its general comment.
18779         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
18781 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
18783         * config/i386/linux-common.h (LINK_MPX): New.
18784         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
18785         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
18786         indicating '-z bndplt' support by linker.
18787         * configure: Regenerate.
18788         * config.in: Regenerate.
18790 2015-07-16  Richard Biener  <rguenther@suse.de>
18792         * fold-const.c (fold_widened_comparison): Remove.
18793         (fold_sign_changed_comparison): Likewise.
18794         (fold_comparison): Move widened and sign-changed comparison
18795         simplification ...
18796         * match.pd: ... to patterns here.
18797         * generic-match-head.c: Include target.h.
18798         * gimple-match-head.c: Likewise.
18800 2015-07-16  Richard Biener  <rguenther@suse.de>
18802         * tree-ssa-dom.c (dom_valueize): New function.
18803         (record_temporary_equivalences): Also record equivalences
18804         for dominating stmts that have uses of equivalences we are
18805         about to record.
18807 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
18809         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
18810         add_autoinc_candidates.
18811         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
18812         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
18813         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
18814         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
18815         Call new function.
18816         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
18817         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
18818         Remove parameter struct iv*.  Call add_autoinc_candidates here.
18819         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
18820         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
18821         Call new function.
18822         (find_iv_candidates): Call new functions.
18824 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
18826         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
18827         uninitialized-variable warning.
18829 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
18831         PR target/65249
18832         * config/sh/sh.md (movdi): Split simple reg move to two movsi
18833         when the destination is R0.
18835 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
18837         PR target/66866
18838         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
18839         * config/i386/i386.c (ix86_expand_pextr): New function.
18840         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
18841         for non-lowpart subregs.
18842         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
18843         (insv<mode>): Use SWI248 mode iterator.
18844         (insv<mode>_1): Ditto.
18846 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
18847             Sebastian Pop  <s.pop@samsung.com>
18849         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
18850         iterator to use_stmt.
18852 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
18853             Sebastian Pop <s.pop@samsung.com>
18855         * graphite-scop-detection.c (build_scops_1): Discard scops for
18856         which entry==exit.
18858 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
18859             Sebastian Pop <s.pop@samsung.com>
18861         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
18862         case of a return statement in scop.
18864 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
18865             Sebastian Pop <s.pop@samsung.com>
18867         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
18868         INTEGER_TYPE parameters.
18869         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
18870         VECTOR_CST in scan_tree_for_params.
18871         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
18873 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
18875         * gimple-pretty-print.h: Don't include pretty-print.h.
18876         * tree-streamer.h: Don't include lto-streamer.h.
18877         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
18878         * gimple-streamer-in.c: Remove redundant includes.
18879         * gimple-streamer-out.c: Likewise.
18880         * ipa-devirt.c: Likewise.
18881         * ipa-icf.c: Likewise.
18882         * ipa-inline-analysis.c: Likewise.
18883         * ipa-polymorphic-call.c: Likewise.
18884         * ipa-profile.c: Likewise.
18885         * ipa-prop.c: Likewise.
18886         * ipa-pure-const.c: Likewise.
18887         * lto-cgraph.c: Likewise.
18888         * lto-streamer-in.c: Likewise.
18889         * lto-streamer-out.c: Likewise.
18890         * lto-streamer.c: Likewise.
18891         * tree-streamer-in.c: Likewise.
18892         * tree-streamer-out.c: Likewise.
18893         * tree-streamer.c: Likewise.
18895 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
18897         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
18898         include input.h.
18899         * opts.c: Remove multiline #include comment.
18901 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
18903         * config/nvptx/mkoffload.c (process): Add C++ protection to
18904         emitted code.
18906 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18908         PR target/66854
18909         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
18910         null before IEEE 128-bit floating point support patch.
18912 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18914         * simplify-rtx.c (simplify_ternary_operation): Add simplification
18915         for (!c) != {0,...,0} ? a : b for vector modes.
18917 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
18918             Martin Jambor  <mjambor@suse.cz>
18920         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
18921         struct func_body_info* instead of struct ipa_node_params*, expecting
18922         fbi->info to be filled in.  Replace throughout.  Adjust call to
18923         ipa_load_from_parm_agg.
18924         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
18925         instead of struct ipa_node_params*.  Adjust calls to other functions
18926         so that they pass either fbi or fbi->info.
18927         (set_switch_stmt_execution_predicate): Likewise.
18928         (will_be_nonconstant_predicate): Likewise.
18929         (compute_bb_predicates): Likewise.
18930         (estimate_function_body_sizes): Move asserts earlier.  Fill in
18931         struct func_body_info, replace parms_info with fbi.info.  Adjust
18932         calls to functions that now accept struct func_body_info.
18933         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
18934         (struct func_body_info): Likewise.
18935         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
18936         remove static.  Adjust callers.
18937         (ipa_load_from_parm_agg): Remove.
18938         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
18939         (func_body_info): Likewise.
18940         (ipa_load_from_parm_agg): Adjust prototype.
18942 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18944         * gensupport.c (rtx_handle_directive): Adjust.
18945         * read-rtl.c (apply_iterators): Take vector to add rtxs to
18946         instead of expr list rtx.
18947         (add_define_attr_for_define_subst): Likewise.
18948         (add_define_subst_attr): Likewise.
18949         (read_subst_mapping): Likewise.
18950         (read_rtx): Likewise.
18951         * rtl.h (read_rtx): Adjust.
18953 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18955         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
18957 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
18959         PR target/58066
18960         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
18961         (*tls_local_dynamic_base_64_<mode>): Ditto.
18962         (*tls_local_dynamic_base_64_largepic): Ditto.
18963         (tls_global_dynamic_64_<mode>): Update expander pattern.
18964         (tls_local_dynamic_base_64_<mode>): Ditto.
18966 2015-07-15  Richard Biener  <rguenther@suse.de>
18968         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
18969         and bool_var == 1 -> bool_var simplifications ...
18970         * match.pd: ... to patterns here.  Factor out negate_expr_p
18971         cases from the A - B -> A + (-B) patterns as negate_expr_p
18972         predicate and add a -(A + B) -> (-B) - A pattern.
18974 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
18976         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
18978 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
18979             Robert Suchanek  <robert.suchanek@imgtec.com>
18981         * config/mips/mips.c (mips_int_mask): New enum.
18982         (mips_shadow_set): Likewise.
18983         (int_mask): New variable.
18984         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
18985         (machine_function): Add int_mask and use_shadow_register_set.
18986         (mips_attribute_table): Add attribute handlers for interrupt and
18987         use_shadow_register_set.
18988         (mips_interrupt_mask): New static function.
18989         (mips_handle_interrupt_attr): Likewise.
18990         (mips_handle_use_shadow_register_set_attr): Likewise.
18991         (mips_use_shadow_register_set): Change return type to enum
18992         mips_shadow_set.  Add argument handling for use_shadow_register_set
18993         attribute.
18994         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
18995         compare with mips_shadow_set enum.
18996         (mips_compute_frame_info): Add interrupt mask and
18997         use_shadow_register_set to per-function information structure.
18998         Add a stack slot for EPC unconditionally.
18999         (mips_expand_prologue): Compare use_shadow_register_set value
19000         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
19001         masked interrupt register but in EIC mode use K0 and save Cause in K0.
19002         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
19003         copying the stack pointer from the shadow register set.
19004         * config/mips/mips.h (SR_IM0): New define.
19005         * config/mips/mips.md (mips_rdpgpr): Rename to...
19006         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
19007         * doc/extend.texi (Declaring Attributes of Functions): Document
19008         optional arguments for interrupt and use_shadow_register_set
19009         attributes.
19011 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
19013         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
19014         interrupt attribute.
19015         (mips_expand_prologue): Disable the floating point unit in an ISR.
19016         * config/mips/mips.h (SR_COP1): New define.
19018 2015-07-15  Richard Biener  <rguenther@suse.de>
19020         * genmatch.c (parser::peek, parser::peek_ident): Add argument
19021         to tell how many tokens to peek ahead (default 1).
19022         (parser::eat_token, parser::eat_ident): Return token consumed.
19023         (parser::parse_result): Parse new switch statement.
19024         * match.pd: Use case statements where appropriate.
19026 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
19028         PR rtl-optimization/58066
19029         * calls.c (expand_call): Precompute register parameters before stack
19030         alignment is performed.
19032 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
19034         PR rtl-optimization/66838
19035         * postreload.c (reload_cse_move2add): Also process
19036         CALL_INSN_FUNCTION_USAGE when resetting information of
19037         call-clobbered registers.
19039 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19040             Cesar Philippidis  <cesar@codesourcery.com>
19041             Chung-Lin Tang  <cltang@codesourcery.com>
19043         * config/nios2/constraints.md (U, v): New constraints.
19044         * config/nios2/predicates.md (rdprs_dcache_operand): New.
19045         (ldstex_memory_operand): New.
19046         * config/nios2/sync.md: New file.
19047         * config/nios2/nios2.md (unspecv): Add new builtin function
19048         UNSPECV codes.
19049         (rdprs, flushd, flushda, wrpie, eni): New patterns.
19050         (top-level): Include sync.md.
19051         * config/nios2/nios2.c (N2_FTYPES): Add function types for
19052         new builtins.
19053         (N2_BUILTINS): Add arch field setting, add new builtins.
19054         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
19055         for arch field.
19056         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
19057         Also handle ldex/stex/ldsex/stsex builtins.
19058         (nios2_expand_rdprs_builtin): New function.
19059         (nios2_expand_cache_builtin): New function.
19060         (nios2_expand_wrpie_builtin): New function.
19061         (nios2_expand_eni_builtin): New function.
19062         (nios2_expand_builtin): Add arch field handling and new builtin
19063         cases.
19064         * doc/extend.texi (Altera Nios II Built-in Functions): Document
19065         new builtins.
19066         * doc/md.texi (Machine Constraints): Document U and v constraints.
19068 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19069             Cesar Philippidis  <cesar@codesourcery.com>
19070             Chung-Lin Tang  <cltang@codesourcery.com>
19072         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
19073         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
19074         callee_save_reg_size and uses_anonymous_args fields.
19075         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
19076         (nios2_create_cfa_notes): New function.
19077         (nios2_adjust_stack): New function for adjusting stack.
19078         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
19079         Use nios2_adjust_stack.
19080         (nios2_expand_epilogue): Likewise.
19081         (nios2_expand_return): New function.
19082         (nios2_can_use_return_insn): Update for CDX pop.n usage.
19083         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
19084         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
19085         * config/nios2/nios2.md (return): Use nios2_expand_return.
19087 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19088             Cesar Philippidis  <cesar@codesourcery.com>
19089             Chung-Lin Tang  <cltang@codesourcery.com>
19091         * config/nios2/predicates.md (pop_operation): New.
19092         (ldwm_operation, stwm_operation): New.
19093         (nios2_hard_register_operand): New.
19094         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
19095         (ldstwm_operation_p): Declare.
19096         (gen_ldstwm_peep): Declare.
19097         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
19098         (base_reg_adjustment_p): New.
19099         (pop_operation_p): New.
19100         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
19101         (nios2_ldstwm_regset_p): New.
19102         (ldstwm_operation_p): New.
19103         (gen_ldst): New.
19104         (nios2_ldst_parallel): New.
19105         (struct ldswm_operand): Declare.
19106         (compare_ldstwm_operands): New.
19107         (can_use_cdx_ldstw): New.
19108         (gen_ldstwm_peep): New.
19109         * config/nios2/nios2-ldstwm.sml: New.
19110         * config/nios2/nios2.md: Include ldstwm.md.
19111         * config/nios2/ldstwm.md: Generated.
19113 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19114             Cesar Philippidis  <cesar@codesourcery.com>
19115             Chung-Lin Tang  <cltang@codesourcery.com>
19117         * config/nios2/nios2.h (LABEL_ALIGN): Define.
19118         (REG_ALLOC_ORDER): Define.
19119         (ADJUST_REG_ALLOC_ORDER): Define.
19120         (HONOR_REG_ALLOC_ORDER): Define.
19121         (CDX_REG_P): Define.
19122         (ANDCLEAR_INT): Define.
19123         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
19124         (nios2_label_align): Declare.
19125         (nios2_cdx_narrow_form_p): Declare.
19126         (nios2_adjust_reg_alloc_order): Declare.
19127         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
19128         operation.
19129         (nios2_large_unspec_reloc_p): New function, split from...
19130         (nios2_legitimate_pic_operand_p): ...here.
19131         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
19132         (nios2_print_operand_punct_valid_p): New.
19133         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
19134         (split_mem_address): New.
19135         (split_alu_insn): New.
19136         (cdxreg): New.
19137         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
19138         (enum nios2_add_insn_kind): New.
19139         (nios2_add_insn_names, nios2_add_insn_narrow): New.
19140         (nios2_add_insn_classify): New.
19141         (nios2_add_insn_asm): New.
19142         (nios2_cdx_narrow_form_p): New.
19143         (label_align, min_labelno, max_labelno): New.
19144         (nios2_reorg): New.
19145         (nios2_label_align): New.
19146         (nios2_adjust_reg_alloc_order): New.
19147         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19148         (TARGET_MACHINE_DEPENDENT_REORG): Define.
19149         * config/nios2/constraints.md (P): New constraint.
19150         * config/nios2/predicates.md (const_and_operand): New.
19151         (and_operand): New.
19152         (stack_memory_operand): New.
19153         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
19154         (length): Update to use nios2_cdx_narrow_form_p().
19155         (type): Add new insn type values.
19156         (control, alu, st, ld, shift): Update insn reservations with
19157         new insn type values.
19158         (*high, *lo_sum): Define new insn patterns for constant generation.
19159         (movqi_internal, movhi_internal, movsi_internal): Reduce
19160         alternatives, update asm template to handle CDX variants, update
19161         type attributes.
19162         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
19163         template, update type attributes.
19164         (extendhisi2, extendqi<mode>2): Likewise.
19165         (addsi3): Change to use function for asm string.
19166         (subsi3): Add CDX notation to asm template, update type attributes.
19167         (negsi3, one_cmplsi3): Likewise.
19168         (andsi3): New pattern, specialized from logical patterns.
19169         (<code>si3): Remove and case, combine alternatives, update asm
19170         template.
19171         (<shift_op>si3): Add CDX notation, update type attributes.
19172         (rotrsi3): Update type attribute.
19173         (*merge, extzv, insv): New insn patterns.
19174         (return): Change to define_expand.
19175         (simple_return): Add CDX notation, update type attributes.
19176         (indirect_jump): Add CDX notation.
19177         (jump): Update asm cases, update length attribute expression.
19178         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
19179         (nios2_cbranch): Update asm cases and length attribute expression
19180         to handle CDX variants.
19181         (nios2_cmp<code>): Update asm template.
19182         (nop): Add CDX notation, update type attributes.
19183         (trap): Add CDX notation.
19184         (ctrapsi4): Update asm cases and length attribute expression to
19185         handle CDX variant.
19186         * doc/md.texi (Machine Constraints): Document P constraint.
19188 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19189             Cesar Philippidis  <cesar@codesourcery.com>
19190             Chung-Lin Tang  <cltang@codesourcery.com>
19192         * config/nios2/nios2.h (SMALL_INT12): New macro.
19193         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
19194         (nios2_valid_addr_expr_p): Use it.
19195         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
19196         with implicit "io" instructions on R2.
19197         * config/nios2/constraints.md (w): New constraint.
19198         * config/nios2/predicates.md (ldstio_memory_operand): New.
19199         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
19200         operand predicate and constraint.
19201         (ld<bh>io_signed, st<bhw>io>): Likewise.
19202         * doc/md.texi (Machine Constraints): Document w constraint.
19204 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19205             Cesar Philippidis  <cesar@codesourcery.com>
19206             Chung-Lin Tang  <cltang@codesourcery.com>
19208         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
19209         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
19210         Nios II architecture level.
19211         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
19212         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
19213         (OPTION_DEFAULT_SPECS): Define.
19214         (ASM_SPEC): Add -march= spec strings.
19215         * config/nios2/nios2.c (nios2_option_override): Check for
19216         conflicts involving new options.
19217         * config.gcc (nios2*-*-*): Support --with-arch=.
19218         * doc/invoke.texi (Option Summary, Nios II Options): Document
19219         -march=, -mbmx, and -mcdx.
19221 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
19223         PR rtl-optimization/66626
19224         * lra-constraints.c (lra_constraints): Prevent equivalence
19225         substitution for static chain pseudo in functions with nonlocal
19226         goto.
19228 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19230         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
19231         (nios2_emit_stack_limit_check): Add size parameter.  Handle
19232         -fstack-limit-symbol as well as -fstack-limit-register.
19233         (nios2_expand_prologue): Emit only a single stack limit check,
19234         even if multiple stack adjustments are required.
19235         (nios2_option_override): Diagnose unsupported combination of -fpic
19236         and -stack-limit-symbol.
19238 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
19240         * Makefile.in (top_srcdir): New.
19241         * configure.ac: Use AM_ZLIB.
19242         * configure: Regeneated.
19244 2015-07-14  Matthias Klose  <doko@ubuntu.com>
19246         PR target/66840
19247         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
19249 2015-07-14  Richard Biener  <rguenther@suse.de>
19251         PR tree-optimization/66863
19252         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
19253         what we record for conversion use stmt lhs inequalities.
19255 2015-07-14  Richard Biener  <rguenther@suse.de>
19257         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
19258         (decision_tree::gen_gimple): Likewise.
19260 2015-07-14  Tom de Vries  <tom@codesourcery.com>
19262         * gcc.c (greater_than_spec_func): Declare forward.
19263         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
19264         -ftree-parallelize-loops={0,1}.
19265         (static_spec_functions): Add greater_than_spec_func function with name
19266         "gt".
19267         (greater_than_spec_func): New function.
19269 2015-07-14  Richard Biener  <rguenther@suse.de>
19271         * tree-ssa-dom.c (record_temporary_equivalences): Merge
19272         wideing type conversion case from record_equivalences_from_incoming_edge
19273         and use record_equality to record equivalences.
19274         (record_equivalences_from_incoming_edge): Call
19275         record_temporary_equivalences.
19277 2015-07-14  Richard Biener  <rguenther@suse.de>
19279         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
19280         (struct if_expr): New.
19281         (struct with_expr): Likewise.
19282         (is_a_helper): Add helpers for if_expr and with_expr.
19283         (struct simplify): Add simplify_kind enum and member.  Remove
19284         ifexpr_vec member.
19285         (simplify::simplify): Adjust.
19286         (lower_commutative): Adjust.
19287         (lower_opt_convert): Likewise.
19288         (lower_cond): Likewise.
19289         (replace_id): Handle with_expr and if_expr.
19290         (lower_for): Adjust.
19291         (dt_simplify::gen_1): New recursive worker, split out from ...
19292         (dt_simplify::gen): ... here.  Deal with if and with expansion
19293         recursively.
19294         (capture_info::capture_info): Take context argument
19295         (capture_info::walk_result): Only analyze specific result.
19296         (parser::parse_result): New function.
19297         (parser::parse_simplify): Adjust to parse ifs with then end
19298         else case.
19299         (parser::parse_if): Simplify.
19300         (parser::parse_pattern): Pass down simplify kind.
19301         * match.pd: Convert if structure to new syntax.
19303 2015-07-13  Marek Polacek  <polacek@redhat.com>
19305         * rtl.c (rtx_equal_p_cb): Fix typo.
19307 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
19309         * omega.h: Don't include config.h, don't include params.h again if
19310         omega.h has already been included.
19311         * graphite-poly.h: Include sese.h.
19312         * graphite.c: Don't include sese.h, remove needless includes and
19313         minimize includes outside #ifdef HAVE_isl block.
19314         * graphite-blocking.c: Don't include sese.h, remove needless includes,
19315         and wrap entire file in #ifdef HAVE_isl
19316         * graphite-dependences.c: Likewise.
19317         * graphite-interchange.c: Likewise.
19318         * graphite-isl-ast-to-gimple.c: Likewise.
19319         * graphite-optimize-isl.c: Likewise.
19320         * graphite-poly.c: Likewise.
19321         * graphite-scop-detection.c: Likewise.
19322         * graphite-sese-to-poly.c: Likewise.
19324 2015-07-13  Tom de Vries  <tom@codesourcery.com>
19326         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
19328 2015-07-13  Renlin Li  <renlin.li@arm.com>
19330         PR rtl/66556
19331         * simplify-rtx.c (simplify_const_relational_operation): Add
19332         side_effects_p checks.
19334 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
19336         * bitmap.h: Fix double word typos.
19337         * builtins.c: Same.
19338         * calls.c: Same.
19339         * cfgloopmanip.c: Same.
19340         * cgraph.c: Same.
19341         * cgraph.h: Same.
19342         * cgraphclones.c: Same.
19343         * combine.c: Same.
19344         * config/aarch64/aarch64-protos.h: Same.
19345         * config/aarch64/aarch64.c: Same.
19346         * config/aarch64/aarch64.md: Same.
19347         * config/arm/arm.md: Same.
19348         * config/arm/arm1020e.md: Same.
19349         * config/arm/arm1026ejs.md: Same.
19350         * config/arm/arm926ejs.md: Same.
19351         * config/arm/fa526.md: Same.
19352         * config/arm/fa606te.md: Same.
19353         * config/arm/fa626te.md: Same.
19354         * config/arm/fa726te.md: Same.
19355         * config/arm/fmp626.md: Same.
19356         * config/darwin.c: Same.
19357         * config/epiphany/epiphany.c: Same.
19358         * config/frv/frv.c: Same.
19359         * config/ft32/ft32.c: Same.
19360         * config/gnu-user.h: Same.
19361         * config/h8300/constraints.md: Same.
19362         * config/i386/i386.c: Same.
19363         * config/i386/i386.md: Same.
19364         * config/iq2000/iq2000.md: Same.
19365         * config/mips/mips.c: Same.
19366         * config/mmix/mmix.md: Same.
19367         * config/moxie/moxie.c: Same.
19368         * config/nds32/nds32.md: Same.
19369         * config/pa/pa.h: Same.
19370         * config/rs6000/aix.h: Same.
19371         * config/rs6000/rs6000.h: Same.
19372         * config/sh/sh.c: Same.
19373         * config/tilegx/tilegx.md: Same.
19374         * config/tilepro/gen-mul-tables.cc: Same.
19375         * cse.c: Same.
19376         * dbxout.c: Same.
19377         * doc/invoke.texi: Same.
19378         * dse.c: Same.
19379         * dwarf2out.c: Same.
19380         * final.c: Same.
19381         * gcc.c: Same.
19382         * genmatch.c: Same.
19383         * gimplify.c: Same.
19384         * hash-table.h: Same.
19385         * internal-fn.c: Same.
19386         * ipa-cp.c: Same.
19387         * ipa-devirt.c: Same.
19388         * ipa-icf.c: Same.
19389         * ipa-icf.h: Same.
19390         * ipa-profile.c: Same.
19391         * ipa-prop.c: Same.
19392         * ipa-prop.h: Same.
19393         * ira.c: Same.
19394         * omp-low.c: Same.
19395         * reg-stack.c: Same.
19396         * regcprop.c: Same.
19397         * reorg.c: Same.
19398         * rtl.h: Same.
19399         * sbitmap.h: Same.
19400         * tree-eh.c: Same.
19401         * tree-inline.c: Same.
19402         * tree-sra.c: Same.
19403         * tree-ssa-dom.c: Same.
19404         * tree-ssa-loop-ivopts.c: Same.
19405         * tree-ssa-structalias.c: Same.
19406         * tree-ssa-tail-merge.c: Same.
19407         * tree-ssa-ter.c: Same.
19408         * tree-ssa-threadupdate.c: Same.
19409         * tree-ssa-uninit.c: Same.
19410         * tree-ssanames.c: Same.
19411         * tree-vect-loop-manip.c: Same.
19412         * tree-vrp.c: Same.
19413         * tree.c: Same.
19414         * valtrack.c: Same.
19415         * vec.h: Same.
19417 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
19419         PR middle-end/66726
19420         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
19421         tree_ssa_phiopt_worker): Call it.
19423 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
19425         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
19426         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
19427         REG_EQUAL note.
19429 2015-07-11  Marek Polacek  <polacek@redhat.com>
19431         PR middle-end/66353
19432         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
19433         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
19434         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
19435         rather than bb_has_abnormal_call_pred.
19436         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
19437         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
19438         rather than bb_has_abnormal_call_pred.
19440 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
19442         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
19443         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
19444         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19445         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
19446         v850_legitimate_address_p): New functions.
19447         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
19449 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
19451         PR target/66819
19452         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
19453         indirect sibcall with register arguments if register available
19454         for argument passing.
19455         (init_cumulative_args): Set cfun->machine->arg_reg_available
19456         to (cum->nregs > 0) or to true if function has a variable
19457         argument list.
19458         (function_arg_advance_32): Set cfun->machine->arg_reg_available
19459         to false if cum->nregs <= 0.
19460         * config/i386/i386.h (machine_function): Add arg_reg_available.
19462 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
19464         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
19465         and gen_higpart instead of gen_rtx_SUBREG.
19466         * config/i386/i386.md
19467         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
19468         (read-modify peephole2): Use gen_lowpart instead of
19469         gen_rtx_SUBREG for operand 5.
19471 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
19473         * config/tilepro/gen-mul-tables.cc (main): Change include list for
19474         generated files.
19475         * config/tilepro/mul-tables.c: Regenerate.
19476         * config/tilegx/mul-tables.c: Regenerate.
19478 2015-07-10  Richard Biener  <rguenther@suse.de>
19480         * fold-const.c (distribute_bit_expr): Remove.
19481         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
19482         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
19483         to A & (B | C) and simplifying A << C1 << C2 to ...
19484         * match.pd: ... patterns here.
19486 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
19488         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19489         Mark mem as READONLY and NOTRAP for PIC symbol.
19491 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
19493         * gimple-predict.h: New file.
19494         (gimple_predict_predictor, gimple_predict_set_predictor,
19495         gimple_predict_outcome, gimple_predict_set_outcome,
19496         gimple_build_predict): Relocate here.
19497         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
19498         gimple_predict_outcome, gimple_predict_set_outcome): Move to
19499         gimple-predict.h.
19500         * gimple.c (gimple_build_predict): Move to gimple-predict.h
19501         * basic-block.h: Don't include cfghooks.h.
19502         * backend.h: Don't include predict.h.
19503         * cfghooks.h: Include predict.h.
19504         * gimple-pretty-print.c: Include gimple-predict.h.
19505         * gimplify.c: Likwise.
19506         * predict.c: Adjust includes.
19507         * tree-inline.c: Likewise.
19508         * asan.c: Likewise.
19509         * auto-inc-dec.c: Likewise.
19510         * auto-profile.c: Likewise.
19511         * bb-reorder.c: Likewise.
19512         * builtins.c: Likewise.
19513         * caller-save.c: Likewise.
19514         * calls.c: Likewise.
19515         * cfganal.c: Likewise.
19516         * cfgbuild.c: Likewise.
19517         * cfg.c: Likewise.
19518         * cfgcleanup.c: Likewise.
19519         * cfgexpand.c: Likewise.
19520         * cfghooks.c: Likewise.
19521         * cfgloopanal.c: Likewise.
19522         * cfgloop.c: Likewise.
19523         * cfgloopmanip.c: Likewise.
19524         * cfgrtl.c: Likewise.
19525         * cgraph.c: Likewise.
19526         * cgraphunit.c: Likewise.
19527         * combine.c: Likewise.
19528         * cprop.c: Likewise.
19529         * cse.c: Likewise.
19530         * dce.c: Likewise.
19531         * dojump.c: Likewise.
19532         * dse.c: Likewise.
19533         * except.c: Likewise.
19534         * expmed.c: Likewise.
19535         * expr.c: Likewise.
19536         * final.c: Likewise.
19537         * fold-const.c: Likewise.
19538         * function.c: Likewise.
19539         * fwprop.c: Likewise.
19540         * gcc-plugin.h: Likewise.
19541         * gcse.c: Likewise.
19542         * genattrtab.c: Likewise.
19543         * genemit.c: Likewise.
19544         * gengtype.c: Likewise.
19545         * genopinit.c: Likewise.
19546         * genoutput.c: Likewise.
19547         * genpreds.c: Likewise.
19548         * genrecog.c: Likewise.
19549         * gimple-fold.c: Likewise.
19550         * gimple-iterator.c: Likewise.
19551         * gimple-ssa-isolate-paths.c: Likewise.
19552         * gimple-ssa-strength-reduction.c: Likewise.
19553         * graph.c: Likewise.
19554         * graphite-blocking.c: Likewise.
19555         * graphite.c: Likewise.
19556         * graphite-dependences.c: Likewise.
19557         * graphite-interchange.c: Likewise.
19558         * graphite-isl-ast-to-gimple.c: Likewise.
19559         * graphite-optimize-isl.c: Likewise.
19560         * graphite-poly.c: Likewise.
19561         * graphite-scop-detection.c: Likewise.
19562         * graphite-sese-to-poly.c: Likewise.
19563         * haifa-sched.c: Likewise.
19564         * ifcvt.c: Likewise.
19565         * internal-fn.c: Likewise.
19566         * ipa-cp.c: Likewise.
19567         * ipa-profile.c: Likewise.
19568         * ipa-split.c: Likewise.
19569         * ipa-utils.c: Likewise.
19570         * ira-build.c: Likewise.
19571         * ira-color.c: Likewise.
19572         * ira-conflicts.c: Likewise.
19573         * ira-costs.c: Likewise.
19574         * ira-emit.c: Likewise.
19575         * ira-lives.c: Likewise.
19576         * jump.c: Likewise.
19577         * loop-doloop.c: Likewise.
19578         * loop-init.c: Likewise.
19579         * loop-invariant.c: Likewise.
19580         * loop-unroll.c: Likewise.
19581         * lower-subreg.c: Likewise.
19582         * lra-assigns.c: Likewise.
19583         * lra.c: Likewise.
19584         * lra-coalesce.c: Likewise.
19585         * lra-constraints.c: Likewise.
19586         * lra-lives.c: Likewise.
19587         * lto-cgraph.c: Likewise.
19588         * lto-streamer-in.c: Likewise.
19589         * mode-switching.c: Likewise.
19590         * modulo-sched.c: Likewise.
19591         * omp-low.c: Likewise.
19592         * optabs.c: Likewise.
19593         * passes.c: Likewise.
19594         * postreload.c: Likewise.
19595         * postreload-gcse.c: Likewise.
19596         * profile.c: Likewise.
19597         * recog.c: Likewise.
19598         * regstat.c: Likewise.
19599         * reload1.c: Likewise.
19600         * reorg.c: Likewise.
19601         * rtlanal.c: Likewise.
19602         * sched-ebb.c: Likewise.
19603         * sel-sched-ir.c: Likewise.
19604         * sese.c: Likewise.
19605         * shrink-wrap.c: Likewise.
19606         * simplify-rtx.c: Likewise.
19607         * stmt.c: Likewise.
19608         * store-motion.c: Likewise.
19609         * tracer.c: Likewise.
19610         * trans-mem.c: Likewise.
19611         * tree-call-cdce.c: Likewise.
19612         * tree-cfg.c: Likewise.
19613         * tree-cfgcleanup.c: Likewise.
19614         * tree-chkp.c: Likewise.
19615         * tree-complex.c: Likewise.
19616         * tree-eh.c: Likewise.
19617         * tree-if-conv.c: Likewise.
19618         * tree-loop-distribution.c: Likewise.
19619         * tree-outof-ssa.c: Likewise.
19620         * tree-parloops.c: Likewise.
19621         * tree-predcom.c: Likewise.
19622         * tree-pretty-print.c: Likewise.
19623         * tree-profile.c: Likewise.
19624         * tree-sra.c: Likewise.
19625         * tree-ssa.c: Likewise.
19626         * tree-ssa-coalesce.c: Likewise.
19627         * tree-ssa-dce.c: Likewise.
19628         * tree-ssa-dom.c: Likewise.
19629         * tree-ssa-forwprop.c: Likewise.
19630         * tree-ssa-ifcombine.c: Likewise.
19631         * tree-ssa-loop-ch.c: Likewise.
19632         * tree-ssa-loop-im.c: Likewise.
19633         * tree-ssa-loop-ivcanon.c: Likewise.
19634         * tree-ssa-loop-ivopts.c: Likewise.
19635         * tree-ssa-loop-manip.c: Likewise.
19636         * tree-ssa-loop-prefetch.c: Likewise.
19637         * tree-ssa-loop-unswitch.c: Likewise.
19638         * tree-ssa-math-opts.c: Likewise.
19639         * tree-ssa-phiopt.c: Likewise.
19640         * tree-ssa-pre.c: Likewise.
19641         * tree-ssa-reassoc.c: Likewise.
19642         * tree-ssa-sink.c: Likewise.
19643         * tree-ssa-tail-merge.c: Likewise.
19644         * tree-ssa-threadedge.c: Likewise.
19645         * tree-ssa-threadupdate.c: Likewise.
19646         * tree-switch-conversion.c: Likewise.
19647         * tree-tailcall.c: Likewise.
19648         * tree-vect-data-refs.c: Likewise.
19649         * tree-vect-loop.c: Likewise.
19650         * tree-vect-loop-manip.c: Likewise.
19651         * tree-vectorizer.c: Likewise.
19652         * tree-vrp.c: Likewise.
19653         * ubsan.c: Likewise.
19654         * value-prof.c: Likewise.
19655         * varasm.c: Likewise.
19656         * var-tracking.c: Likewise.
19657         * config/aarch64/aarch64-builtins.c: Likewise.
19658         * config/aarch64/aarch64.c: Likewise.
19659         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19660         * config/alpha/alpha.c: Likewise.
19661         * config/arc/arc.c: Likewise.
19662         * config/arm/arm.c: Likewise.
19663         * config/avr/avr.c: Likewise.
19664         * config/bfin/bfin.c: Likewise.
19665         * config/c6x/c6x.c: Likewise.
19666         * config/cr16/cr16.c: Likewise.
19667         * config/cris/cris.c: Likewise.
19668         * config/darwin.c: Likewise.
19669         * config/darwin-c.c: Likewise.
19670         * config/epiphany/epiphany.c: Likewise.
19671         * config/epiphany/mode-switch-use.c: Likewise.
19672         * config/epiphany/resolve-sw-modes.c: Likewise.
19673         * config/fr30/fr30.c: Likewise.
19674         * config/frv/frv.c: Likewise.
19675         * config/ft32/ft32.c: Likewise.
19676         * config/h8300/h8300.c: Likewise.
19677         * config/i386/i386.c: Likewise.
19678         * config/i386/winnt.c: Likewise.
19679         * config/ia64/ia64.c: Likewise.
19680         * config/iq2000/iq2000.c: Likewise.
19681         * config/lm32/lm32.c: Likewise.
19682         * config/m32c/m32c.c: Likewise.
19683         * config/m32r/m32r.c: Likewise.
19684         * config/m68k/m68k.c: Likewise.
19685         * config/mcore/mcore.c: Likewise.
19686         * config/mep/mep.c: Likewise.
19687         * config/microblaze/microblaze.c: Likewise.
19688         * config/mips/mips.c: Likewise.
19689         * config/mmix/mmix.c: Likewise.
19690         * config/mn10300/mn10300.c: Likewise.
19691         * config/moxie/moxie.c: Likewise.
19692         * config/msp430/msp430.c: Likewise.
19693         * config/nds32/nds32.c: Likewise.
19694         * config/nds32/nds32-cost.c: Likewise.
19695         * config/nds32/nds32-fp-as-gp.c: Likewise.
19696         * config/nds32/nds32-intrinsic.c: Likewise.
19697         * config/nds32/nds32-isr.c: Likewise.
19698         * config/nds32/nds32-md-auxiliary.c: Likewise.
19699         * config/nds32/nds32-memory-manipulation.c: Likewise.
19700         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19701         * config/nds32/nds32-predicates.c: Likewise.
19702         * config/nios2/nios2.c: Likewise.
19703         * config/nvptx/nvptx.c: Likewise.
19704         * config/pa/pa.c: Likewise.
19705         * config/pdp11/pdp11.c: Likewise.
19706         * config/rl78/rl78.c: Likewise.
19707         * config/rs6000/rs6000.c: Likewise.
19708         * config/rx/rx.c: Likewise.
19709         * config/s390/s390.c: Likewise.
19710         * config/sh/sh.c: Likewise.
19711         * config/sh/sh-mem.cc: Likewise.
19712         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19713         * config/sh/sh_treg_combine.cc: Likewise.
19714         * config/sparc/sparc.c: Likewise.
19715         * config/spu/spu.c: Likewise.
19716         * config/stormy16/stormy16.c: Likewise.
19717         * config/tilegx/tilegx.c: Likewise.
19718         * config/tilepro/tilepro.c: Likewise.
19719         * config/v850/v850.c: Likewise.
19720         * config/vax/vax.c: Likewise.
19721         * config/visium/visium.c: Likewise.
19722         * config/xtensa/xtensa.c: Likewise.
19724 2015-07-10  Richard Biener  <rguenther@suse.de>
19726         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
19727         (decision_tree::gen_gimple): Likewise.
19728         (decision_tree::gen_generic): Likewise.
19730 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
19732         PR target/66813
19733         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
19734         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
19736 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
19738         PR middle-end/66820
19739         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
19740         or ORT_TASK contexts.
19741         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
19742         is non-zero.
19744 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19746         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
19747         above function.
19749 2015-07-10  Tom de Vries  <tom@codesourcery.com>
19751         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
19752         insert nit + 1 bound.
19754 2015-07-10  Richard Biener  <rguenther@suse.de>
19756         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
19757         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
19758         (if_convertible_loop_p_1): For this always compute bb predicates.
19759         (if_convertible_loop_p): And free them.
19761 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19763         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
19764         in dump message.
19766 2015-07-10  Richard Biener  <rguenther@suse.de>
19768         PR tree-optimization/66823
19769         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
19770         inverted predicate.
19772 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
19774         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
19775         to handle mips[32|64]r3 and mips[32|64]r5.
19777 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
19779         PR middle-end/66633
19780         * tree-nested.c (get_static_chain): Or in a flag into
19781         info->static_chain_added.
19782         (get_frame_field, get_nonlocal_debug_decl): Likewise.
19783         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
19784         2015-07-01 changes.
19785         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
19786         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
19787         add it to clauses.
19789         PR tree-optimization/66718
19790         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
19791         field.
19792         (vect_simd_lane_linear): New function.
19793         (vectorizable_simd_clone_call): Support using linear arguments for
19794         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
19796 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
19798         PR target/66821
19799         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
19801 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
19803         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
19804         Use machine mode, not enum machine_mode in the prototype.
19806         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
19807         classify 128-bit floating point support.
19808         (FLOAT128_IBM_P): Likewise.
19809         (FLOAT128_VECTOR_P): Likewise.
19810         (FLOAT128_2REG_P): Likewise.
19811         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
19812         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
19813         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
19814         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
19816         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
19817         tests against TFmode/TDmode, since those modes do not use VSX
19818         addresses.
19819         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
19820         support.
19821         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
19822         tests against TFmode, etc.
19823         (invalid_e500_subreg): Add tests against IFmode/KFmode.
19824         (reg_offset_addressing_ok_p): Likewise.
19825         (rs6000_legitimate_offset_address_p): Likewise.
19826         (rs6000_legitimize_address): Likewise.
19827         (rs6000_legitimize_reload_address): Likewise.
19828         (rs6000_legitimate_address_p): Clean up tests against TFmode and
19829         TDmode to use the new helper macros, which will include IFmode and
19830         KFmode.
19831         (rs6000_emit_move): Likewise.
19832         (rs6000_darwin64_record_arg_recurse): Likewise.
19833         (print_operand): Likewise.
19834         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
19835         that uses a single vector register as a vector and not as a
19836         floating point register in terms of the calling sequence.
19837         (rs6000_discover_homogeneous_aggregate): Likewise.
19838         (rs6000_return_in_memory): Likewise.
19839         (init_cumulative_args): Likewise.
19840         (rs6000_function_arg_boundary): Likewise.
19841         (rs6000_function_arg_advance_1): Likewise.
19842         (rs6000_function_arg): Likewise.
19843         (rs6000_pass_by_reference): Likewise.
19844         (rs6000_gimplify_va_arg): Likewise.
19845         (rs6000_secondary_reload_memory): Use machine_mode not enum
19846         machine mode.
19847         (rs6000_split_multireg_move): Use new helper macros.
19848         (spe_func_has_64bit_regs_p): Likewise.
19849         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
19850         (output_toc): Use new helper macros.
19851         (rs6000_register_move_cost): Likewise.
19852         (rs6000_function_value): Add IEEE 128-bit floating point calling
19853         sequence support.
19854         (rs6000_libcall_value): Likewise.
19855         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
19856         floating point support.
19857         (rs6000_vector_mode_supported_p): Likewise.
19859 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
19861         PR rtl-optimization/66782
19862         * lra-int.h (struct lra_insn_recog_data): Add comment about
19863         clobbered hard regs for arg_hard_regs.
19864         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
19865         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
19866         Add condition for processing used hard regs.
19867         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
19868         Process clobbered hard regs.
19870 2015-07-09  Michael Matz  <matz@suse.de>
19872         * genmatch.c (fprintf_indent): New function.
19873         (operand::gen_transform): Add indent parameter.
19874         (expr::gen_transform, c_expr::gen_transform,
19875         capture::gen_transform): Ditto and use fprintf_indent.
19876         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
19877         (dt_operand::gen, dt_operand::gen_predicate,
19878         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
19879         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
19880         (decision_tree::gen_gimple): Adjust calls and indent generated
19881         code.
19882         (decision_tree::gen_generic): Ditto.
19883         (write_predicate): Ditto.
19885 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
19887         PR target/66814
19888         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
19889         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
19890         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
19891         {GENERAL,SSE,MMX}_REG_P where appropriate.
19893 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
19895         * lto-streamer.h: Don't include target.h and alloc-pool.h.
19896         * builtins.c: Adjust includes.
19897         * gimple.c: Likewise.
19898         * ipa-icf.c: Likewise.
19899         * lto-opts.c: Likewise.
19900         * ipa-reference.c: Likewise.
19901         * lto-section-out.c: Likewise.
19902         * lto-streamer-in.c: Likewise.
19903         * lto-streamer-out.c: Likewise.
19904         * opts-global.c: Likewise.
19905         * symtab.c: Likewise.
19906         * tree-chkp.c: Likewise.
19907         * tree-ssa-live.c: Likewise.
19908         * tree-streamer-in.c: Likewise.
19909         * tree-streamer-out.c: Likewise.
19910         * config/darwin.c: Likewise.
19911         * config/i386/winnt.c: Likewise.
19913 2015-07-09  Richard Biener  <rguenther@suse.de>
19915         * genmatch.c (struct expr): Add force_single_use flag.
19916         (expr::expr): Add copy constructor.
19917         (capture_info::walk_match): Gather force_single_use captures.
19918         (expr::gen_transform): Use possibly NULLified sequence.
19919         (dt_simplify::gen): Apply single-use restrictions by NULLifying
19920         seq if any constrained expr is not single-use.
19921         (parser::parse_expr): Refactor to allow multiple flags.  Handle
19922         's' flag to force an expression have a single-use if the pattern
19923         simplifies to more than one statement.
19924         * match.pd: Convert most single_use conditionals to :s flags.
19926 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
19928         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
19929         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19930         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
19932 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
19934         * flags.h: Don't include flag-types.h or options.h.
19935         * opts-common.c: Adjust includes.
19936         * opts-global.c: Likewise.
19937         * common/config/epiphany/epiphany-common.c: Likewise.
19939 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
19941         PR target/66818
19942         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
19943         for IA MCU.
19945 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
19947         PR target/66817
19948         * config/i386/i386.c (ix86_return_in_memory): Return true
19949         if int_size_in_bytes returns negative for IA MCU.
19951 2015-07-09  Marek Polacek  <polacek@redhat.com>
19953         PR tree-optimization/66718
19954         * Makefile.in (OBJS): Add gimple-laddress.o.
19955         * passes.def: Schedule pass_laddress.
19956         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
19957         * tree-pass.h (make_pass_laddress): Declare.
19958         * gimple-laddress.c: New file.
19960 2015-07-09  Richard Biener  <rguenther@suse.de>
19962         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
19964 2015-07-09  Richard Biener  <rguenther@suse.de>
19966         PR tree-optimization/66807
19967         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
19969 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
19971         * function.c (stack_protect_epilogue): Use if rather than switch for
19972         check targetm.have_stack_protect_test.
19974 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19976         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
19977         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
19978         * config/arc/arc.h: Likewise.
19979         * config/arm/arm.h: Likewise.
19980         * config/bfin/bfin.h: Likewise.
19981         * config/epiphany/epiphany.h: Likewise.
19982         * config/frv/frv.h: Likewise.
19983         * config/ia64/ia64.h: Likewise.
19984         * config/iq2000/iq2000.h: Likewise.
19985         * config/lm32/lm32.h: Likewise.
19986         * config/m32r/m32r.h: Likewise.
19987         * config/mcore/mcore.h: Likewise.
19988         * config/mep/mep.h: Likewise.
19989         * config/microblaze/microblaze.h: Likewise.
19990         * config/mips/mips.h: Likewise.
19991         * config/mmix/mmix.h: Likewise.
19992         * config/mn10300/mn10300.h: Likewise.
19993         * config/nds32/nds32.h: Likewise.
19994         * config/nios2/nios2.h: Likewise.
19995         * config/pa/pa.h: Likewise.
19996         * config/rl78/rl78.h: Likewise.
19997         * config/sh/sh.h: Likewise.
19998         * config/sparc/sparc.h: Likewise.
19999         * config/stormy16/stormy16.h: Likewise.
20000         * config/tilegx/tilegx.h: Likewise.
20001         * config/tilepro/tilepro.h: Likewise.
20002         * config/v850/v850.h: Likewise.
20003         * config/xtensa/xtensa.h: Likewise.
20004         * doc/tm.texi: Regenerate.
20005         * doc/tm.texi.in: Adjust.
20006         * combine.c (simplify_set): Likewise.
20007         (simplify_comparison): Likewise.
20008         * expr.c (store_constructor): Likewise.
20009         * internal-fn.c (expand_arith_overflow): Likewise.
20010         * reload.c (push_reload): Likewise.
20011         (find_reloads): Likewise.
20012         (find_reloads_subreg_address): Likewise.
20013         * reload1.c (eliminate_regs_1): Likewise.
20014         * rtlanal.c (nonzero_bits1): Likewise.
20015         (num_sign_bit_copies1): Likewise.
20016         * simplify-rtx.c (simplify_truncation): Likewise.
20018 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20020         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
20021         of AUTO_INC_DEC with the preprocessor.
20022         * combine.c (combine_instructions): Likewise.
20023         (can_combine_p): Likewise.
20024         (try_combine): Likewise.
20025         * emit-rtl.c (try_split): Likewise.
20026         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20027         * lower-subreg.c (resolve_simple_move): Likewise.
20028         * lra.c (update_inc_notes): Likewise.
20029         * recog.c (asm_operand_ok): Likewise.
20030         (constrain_operands): Likewise.
20031         * regrename.c (scan_rtx_address): Likewise.
20032         * reload.c (update_auto_inc_notes): Likewise.
20033         (reg_inc_found_and_valid_p): Likewise.
20034         * reload1.c (reload): Likewise.
20035         (emit_input_reload_insns): Likewise.
20036         (delete_output_reload): Likewise.
20037         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20038         * valtrack.c (cleanup_auto_inc_dec): Likewise.
20040 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20042         * rtl.h: Always define AUTO_INC_DEC.
20043         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
20044         * combine.c (combine_instructions): Likewise.
20045         (can_combine_p): Likewise.
20046         (try_combine): Likewise.
20047         * emit-rtl.c (try_split): Likewise.
20048         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20049         * lower-subreg.c (resolve_simple_move): Likewise.
20050         * lra.c (update_inc_notes): Likewise.
20051         * recog.c (asm_operand_ok): Likewise.
20052         (constrain_operands): Likewise.
20053         * regrename.c (scan_rtx_address): Likewise.
20054         * reload.c (update_auto_inc_notes): Likewise.
20055         (find_equiv_reg): Likewise.
20056         * reload1.c (reload): Likewise.
20057         (reload_as_needed): Likewise.
20058         (choose_reload_regs): Likewise.
20059         (emit_input_reload_insns): Likewise.
20060         (delete_output_reload): Likewise.
20061         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20062         * valtrack.c (cleanup_auto_inc_dec): Likewise.
20064 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20066         * combine.c (can_combine_def_p): Don't check the value of
20067         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
20068         (combinable_i3pat): Likewise.
20069         (mark_used_regs_combine): Likewise.
20070         * regrename.c (rename_chains): Likewise.
20071         * reload.c (find_reloads_address): Likewise.
20072         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20074 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20076         * combine.c (update_rsp_from_reg_equal): Don't check if
20077         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
20078         (reg_nonzero_bits_for_combine): Likewise.
20079         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
20080         1.
20081         * config/frv/frv.h: Likewise.
20082         * config/lm32/lm32.h: Likewise.
20083         * config/mep/mep.h: Likewise.
20084         * config/mips/mips.h: Likewise.
20085         * config/rs6000/rs6000.h: Likewise.
20086         * config/sh/sh.h: Likewise.
20087         * config/tilegx/tilegx.h (enum reg_class): Likewise.
20088         * config/tilepro/tilepro.h: Likewise.
20089         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
20090         * doc/tm.texi: Regenerate.
20091         * doc/tm.texi.in: Adjust.
20092         * rtlanal.c (nonzero_bits1): Likewise.
20094 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20096         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
20097         with the preprocessor.
20098         (combine_instructions): Likewise.
20099         (try_combine): Likewise.
20100         (subst): Likewise.
20101         (distribute_notes): Likewise.
20103 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20105         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
20106         defined.
20107         (simplify_set): Likewise.
20108         * cse.c (cse_insn): Likewise.
20109         * fold-const.c (fold_single_bit_test): Likewise.
20110         (fold_unary_loc): Likewise.
20111         * postreload.c (reload_cse_simplify_set): Likewise.
20112         (reload_cse_simplify_operands): Likewise.
20114 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
20116         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
20117         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
20119 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
20121         PR target/66746
20122         * config/i386/x86intrin.h: Include <adxintrin.h> even if
20123         __iamcu__ is defined.
20125 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
20127         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
20129 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
20131         PR target/66523
20132         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
20133         names from preservation.
20135 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
20137         PR target/66806
20138         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
20139         change for IAMCU.
20140         (function_arg_advance_32): Don't pass vectors in registers for
20141         IAMCU.
20142         (function_arg_32): Likewise.
20143         (ix86_return_in_memory): Don't return vectors in registers for
20144         IAMCU.
20146 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
20148         PR middle-end/66334
20149         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
20150         hard regno live at the start of BB with incoming abnormal edges.
20151         * lra-lives.c (process_bb_lives): Ditto.
20153 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
20155         PR libgomp/65099
20156         * config/nvptx/mkoffload.c (main): Create an offload image only in
20157         64-bit configurations.
20159 2015-07-08  Martin Liska  <mliska@suse.cz>
20161         PR bootstrap/66744
20162         * tree-sra.c (create_access_1): Call ctor without brackets.
20163         (create_artificial_child_access): Likewise.
20165 2015-07-08  Richard Biener  <rguenther@suse.de>
20167         PR tree-optimization/66793
20168         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
20169         Properly split the block after stmts ending it.
20171 2015-07-08  Richard Biener  <rguenther@suse.de>
20173         PR tree-optimization/66794
20174         * passes.c (execute_function_todo): Assert that post-dominators
20175         are not computed.
20176         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
20177         Free post-dominators.
20179 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20181         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
20182         with early exit.
20184 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
20186         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
20187         more than or equal 8 and less than 32 when optimizing for size.
20189 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20191         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
20192         COSTS_N_INSNS (1) and increment it appropriately throughout the
20193         function.
20195 2015-07-08  Richard Biener  <rguenther@suse.de>
20197         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
20199 2015-07-08  Alan Modra  <amodra@gmail.com>
20201         * target.def (rtx_costs): Remove "code" param, add "mode".
20202         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
20203         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
20204         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
20205         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
20206         call.  Track mode when given in rtx.
20207         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
20208         (default_address_cost): Pass Pmode to rtx_cost.
20209         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
20210         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
20211         with NULL set.
20212         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
20213         (notreg_cost): Add mode param.  Use it.
20214         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
20215         mode param and pass to set_src_cost.  Update all calls.
20216         (hash_scan_set): Formatting.
20217         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
20218         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
20219         * hooks.h: Ditto.
20220         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
20221         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
20222         emit_store_flag): Update set_src_cost and rtx_cost calls.
20223         * auto-inc-dec.c (attempt_change): Likewise.
20224         * calls.c (precompute_register_parameters): Likewise.
20225         * combine.c (expand_compound_operation, make_extraction,
20226         force_to_mode, distribute_and_simplify_rtx): Likewise.
20227         * dojump.c (prefer_and_bit_test): Likewise.
20228         * dse.c (find_shift_sequence): Likewise.
20229         * expr.c (compress_float_constant): Likewise.
20230         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
20231         * ifcvt.c (noce_try_sign_mask): Likewise.
20232         * loop-doloop.c (doloop_optimize): Likewise.
20233         * loop-invariant.c (create_new_invariant): Likewise.
20234         * lower-subreg.c (shift_cost, compute_costs): Likewise.
20235         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
20236         lshift_cheap_p): Likewise.
20237         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
20238         try_replace_in_use, reload_cse_move2add): Likewise.
20239         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
20240         Likewise.
20241         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
20242         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20243         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
20244         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
20245         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
20246         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
20247         to rtx_cost calls.
20248         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
20249         * config/arc/arc.c (arc_rtx_costs): Likewise.
20250         * config/arm/arm.c (arm_rtx_costs): Likewise.
20251         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
20252         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
20253         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
20254         * config/cris/cris.c (cris_rtx_costs): Likewise.
20255         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
20256         * config/frv/frv.c (frv_rtx_costs): Likewise.
20257         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
20258         * config/i386/i386.c (ix86_rtx_costs): Likewise.
20259         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
20260         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
20261         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
20262         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
20263         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
20264         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
20265         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
20266         * config/mep/mep.c (mep_rtx_cost): Likewise.
20267         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
20268         * config/mips/mips.c (mips_rtx_costs): Likewise.
20269         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
20270         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
20271         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
20272         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
20273         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
20274         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
20275         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
20276         * config/pa/pa.c (hppa_rtx_costs): Likewise.
20277         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
20278         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
20279         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
20280         * config/s390/s390.c (s390_rtx_costs): Likewise.
20281         * config/sh/sh.c (sh_rtx_costs): Likewise.
20282         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
20283         * config/spu/spu.c (spu_rtx_costs): Likewise.
20284         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
20285         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
20286         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
20287         * config/v850/v850.c (v850_rtx_costs): Likewise.
20288         * config/vax/vax.c (vax_rtx_costs): Likewise.
20289         * config/visium/visium.c (visium_rtx_costs): Likewise.
20290         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
20291         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
20292         "code" param, and pass as outer_code to first rtx_cost call.  Pass
20293         mode to rtx_cost calls.
20294         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
20295         calls.
20296         (aarch64_rtx_costs_wrapper): Update.
20297         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
20298         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
20299         rtx_cost calls.
20300         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
20301         and rtx_cost calls.
20302         (avr_operand_rtx_cost): Similarly.
20303         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
20304         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
20305         * config/mips/mips.c (mips_stack_address_p): Comment typo.
20306         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
20307         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
20308         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
20309         rtx_cost.
20310         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
20311         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
20312         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
20313         * doc/tm.texi: Regenerate.
20315 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
20317         * tree-core.h: Include symtab.h.
20318         * rtl.h: Include hard-reg-set.h but not flags.h.
20319         (HARD_CONST): Remove condition compilation involving HARD_CONST since
20320         hard-reg-set.h is always included.
20321         * regs.h: Don't include hard-reg-set.h or rtl.h.
20322         * cfg.h: Include dominance.h.
20323         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
20324         * backend.h: New.  Aggregate commonly used backend header files.
20325         * gimple-ssa.h: Don't include tree-hasher.h.
20326         * ssa.h: New.  Aggregate commonly used SSA header files.
20327         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
20328         * sel-sched-ir.h: Flatten includes.
20329         * lra-int.h: Flatten completely.
20330         * sel-sched-dump.h: Flatten includes.
20331         * ira-int.h: Flatten includes.
20332         * gimple-streamer.h: Remove all includes.
20333         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
20334         * resource.h: Flatten hard-reg-set.h and df.h.
20335         * sched-int.h: Flatten insn-arrt.h and df.h.
20336         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
20337         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
20338         * genattrtab.c (write_header): Adjust generated includes.
20339         * genautomata.c (main): Likewise.
20340         * genconditions.c (write-header): Likewise.
20341         * genemit.c (main): Likewise.
20342         * gengtype.c (open_base_files): Likewise.
20343         * genopinit.c (main): Likewise.
20344         * genoutput.c (output_prologue): Likewise.
20345         * genpeep.c (main): Likewise.
20346         * genpreds.c (write_insn_preds_c): Likewise.
20347         * genrecog.c (write_header): Likewise.
20348         * alias.c: Adjust includes.
20349         * asan.c: Likewise.
20350         * attribs.c: Likewise.
20351         * auto-inc-dec.c: Likewise.
20352         * auto-profile.c: Likewise.
20353         * bb-reorder.c: Likewise.
20354         * bt-load.c: Likewise.
20355         * builtins.c: Likewise.
20356         * caller-save.c: Likewise.
20357         * calls.c: Likewise.
20358         * ccmp.c: Likewise.
20359         * cfg.c: Likewise.
20360         * cfganal.c: Likewise.
20361         * cfgbuild.c: Likewise.
20362         * cfgcleanup.c: Likewise.
20363         * cfgexpand.c: Likewise.
20364         * cfghooks.c: Likewise.
20365         * cfgloop.c: Likewise.
20366         * cfgloopanal.c: Likewise.
20367         * cfgloopmanip.c: Likewise.
20368         * cfgrtl.c: Likewise.
20369         * cgraph.c: Likewise.
20370         * cgraphbuild.c: Likewise.
20371         * cgraphclones.c: Likewise.
20372         * cgraphunit.c: Likewise.
20373         * cilk-common.c: Likewise.
20374         * combine-stack-adj.c: Likewise.
20375         * combine.c: Likewise.
20376         * compare-elim.c: Likewise.
20377         * convert.c: Likewise.
20378         * coverage.c: Likewise.
20379         * cppbuiltin.c: Likewise.
20380         * cprop.c: Likewise.
20381         * cse.c: Likewise.
20382         * cselib.c: Likewise.
20383         * data-streamer-in.c: Likewise.
20384         * data-streamer-out.c: Likewise.
20385         * data-streamer.c: Likewise.
20386         * dbxout.c: Likewise.
20387         * dce.c: Likewise.
20388         * ddg.c: Likewise.
20389         * debug.c: Likewise.
20390         * df-core.c: Likewise.
20391         * df-problems.c: Likewise.
20392         * df-scan.c: Likewise.
20393         * dfp.c: Likewise.
20394         * dojump.c: Likewise.
20395         * dominance.c: Likewise.
20396         * domwalk.c: Likewise.
20397         * double-int.c: Likewise.
20398         * dse.c: Likewise.
20399         * dumpfile.c: Likewise.
20400         * dwarf2asm.c: Likewise.
20401         * dwarf2cfi.c: Likewise.
20402         * dwarf2out.c: Likewise.
20403         * emit-rtl.c: Likewise.
20404         * et-forest.c: Likewise.
20405         * except.c: Likewise.
20406         * explow.c: Likewise.
20407         * expmed.c: Likewise.
20408         * expr.c: Likewise.
20409         * final.c: Likewise.
20410         * fixed-value.c: Likewise.
20411         * fold-const.c: Likewise.
20412         * function.c: Likewise.
20413         * fwprop.c: Likewise.
20414         * gcc-plugin.h: Likewise.
20415         * gcse-common.c: Likewise.
20416         * gcse.c: Likewise.
20417         * generic-match-head.c: Likewise.
20418         * ggc-page.c: Likewise.
20419         * gimple-builder.c: Likewise.
20420         * gimple-expr.c: Likewise.
20421         * gimple-fold.c: Likewise.
20422         * gimple-iterator.c: Likewise.
20423         * gimple-low.c: Likewise.
20424         * gimple-match-head.c: Likewise.
20425         * gimple-pretty-print.c: Likewise.
20426         * gimple-ssa-isolate-paths.c: Likewise.
20427         * gimple-ssa-strength-reduction.c: Likewise.
20428         * gimple-streamer-in.c: Likewise.
20429         * gimple-streamer-out.c: Likewise.
20430         * gimple-walk.c: Likewise.
20431         * gimple.c: Likewise.
20432         * gimplify-me.c: Likewise.
20433         * gimplify.c: Likewise.
20434         * godump.c: Likewise.
20435         * graph.c: Likewise.
20436         * graphite-blocking.c: Likewise.
20437         * graphite-dependences.c: Likewise.
20438         * graphite-interchange.c: Likewise.
20439         * graphite-isl-ast-to-gimple.c: Likewise.
20440         * graphite-optimize-isl.c: Likewise.
20441         * graphite-poly.c: Likewise.
20442         * graphite-scop-detection.c: Likewise.
20443         * graphite-sese-to-poly.c: Likewise.
20444         * graphite.c: Likewise.
20445         * haifa-sched.c: Likewise.
20446         * hw-doloop.c: Likewise.
20447         * ifcvt.c: Likewise.
20448         * init-regs.c: Likewise.
20449         * internal-fn.c: Likewise.
20450         * ipa-chkp.c: Likewise.
20451         * ipa-comdats.c: Likewise.
20452         * ipa-cp.c: Likewise.
20453         * ipa-devirt.c: Likewise.
20454         * ipa-icf-gimple.c: Likewise.
20455         * ipa-icf.c: Likewise.
20456         * ipa-inline-analysis.c: Likewise.
20457         * ipa-inline-transform.c: Likewise.
20458         * ipa-inline.c: Likewise.
20459         * ipa-polymorphic-call.c: Likewise.
20460         * ipa-profile.c: Likewise.
20461         * ipa-prop.c: Likewise.
20462         * ipa-pure-const.c: Likewise.
20463         * ipa-ref.c: Likewise.
20464         * ipa-reference.c: Likewise.
20465         * ipa-split.c: Likewise.
20466         * ipa-utils.c: Likewise.
20467         * ipa-visibility.c: Likewise.
20468         * ipa.c: Likewise.
20469         * ira-build.c: Likewise.
20470         * ira-color.c: Likewise.
20471         * ira-conflicts.c: Likewise.
20472         * ira-costs.c: Likewise.
20473         * ira-emit.c: Likewise.
20474         * ira-lives.c: Likewise.
20475         * ira.c: Likewise.
20476         * jump.c: Likewise.
20477         * langhooks.c: Likewise.
20478         * lcm.c: Likewise.
20479         * loop-doloop.c: Likewise.
20480         * loop-init.c: Likewise.
20481         * loop-invariant.c: Likewise.
20482         * loop-iv.c: Likewise.
20483         * loop-unroll.c: Likewise.
20484         * lower-subreg.c: Likewise.
20485         * lra-assigns.c: Likewise.
20486         * lra-coalesce.c: Likewise.
20487         * lra-constraints.c: Likewise.
20488         * lra-eliminations.c: Likewise.
20489         * lra-lives.c: Likewise.
20490         * lra-remat.c: Likewise.
20491         * lra-spills.c: Likewise.
20492         * lra.c: Likewise.
20493         * lto-cgraph.c: Likewise.
20494         * lto-compress.c: Likewise.
20495         * lto-opts.c: Likewise.
20496         * lto-section-in.c: Likewise.
20497         * lto-section-out.c: Likewise.
20498         * lto-streamer-in.c: Likewise.
20499         * lto-streamer-out.c: Likewise.
20500         * lto-streamer.c: Likewise.
20501         * mcf.c: Likewise.
20502         * mode-switching.c: Likewise.
20503         * modulo-sched.c: Likewise.
20504         * omega.c: Likewise.
20505         * omp-low.c: Likewise.
20506         * optabs.c: Likewise.
20507         * opts-global.c: Likewise.
20508         * passes.c: Likewise.
20509         * plugin.c: Likewise.
20510         * postreload-gcse.c: Likewise.
20511         * postreload.c: Likewise.
20512         * predict.c: Likewise.
20513         * print-rtl.c: Likewise.
20514         * print-tree.c: Likewise.
20515         * profile.c: Likewise.
20516         * real.c: Likewise.
20517         * realmpfr.c: Likewise.
20518         * recog.c: Likewise.
20519         * ree.c: Likewise.
20520         * reg-stack.c: Likewise.
20521         * regcprop.c: Likewise.
20522         * reginfo.c: Likewise.
20523         * regrename.c: Likewise.
20524         * regstat.c: Likewise.
20525         * reload.c: Likewise.
20526         * reload1.c: Likewise.
20527         * reorg.c: Likewise.
20528         * resource.c: Likewise.
20529         * rtl-chkp.c: Likewise.
20530         * rtlanal.c: Likewise.
20531         * rtlhooks.c: Likewise.
20532         * sanopt.c: Likewise.
20533         * sched-deps.c: Likewise.
20534         * sched-ebb.c: Likewise.
20535         * sched-rgn.c: Likewise.
20536         * sched-vis.c: Likewise.
20537         * sdbout.c: Likewise.
20538         * sel-sched-dump.c: Likewise.
20539         * sel-sched-ir.c: Likewise.
20540         * sel-sched.c: Likewise.
20541         * sese.c: Likewise.
20542         * shrink-wrap.c: Likewise.
20543         * simplify-rtx.c: Likewise.
20544         * stack-ptr-mod.c: Likewise.
20545         * stmt.c: Likewise.
20546         * stor-layout.c: Likewise.
20547         * store-motion.c: Likewise.
20548         * stringpool.c: Likewise.
20549         * symtab.c: Likewise.
20550         * target-globals.c: Likewise.
20551         * targhooks.c: Likewise.
20552         * toplev.c: Likewise.
20553         * tracer.c: Likewise.
20554         * trans-mem.c: Likewise.
20555         * tree-affine.c: Likewise.
20556         * tree-browser.c: Likewise.
20557         * tree-call-cdce.c: Likewise.
20558         * tree-cfg.c: Likewise.
20559         * tree-cfgcleanup.c: Likewise.
20560         * tree-chkp-opt.c: Likewise.
20561         * tree-chkp.c: Likewise.
20562         * tree-chrec.c: Likewise.
20563         * tree-complex.c: Likewise.
20564         * tree-data-ref.c: Likewise.
20565         * tree-dfa.c: Likewise.
20566         * tree-diagnostic.c: Likewise.
20567         * tree-dump.c: Likewise.
20568         * tree-eh.c: Likewise.
20569         * tree-emutls.c: Likewise.
20570         * tree-if-conv.c: Likewise.
20571         * tree-inline.c: Likewise.
20572         * tree-into-ssa.c: Likewise.
20573         * tree-iterator.c: Likewise.
20574         * tree-loop-distribution.c: Likewise.
20575         * tree-nested.c: Likewise.
20576         * tree-nrv.c: Likewise.
20577         * tree-object-size.c: Likewise.
20578         * tree-outof-ssa.c: Likewise.
20579         * tree-parloops.c: Likewise.
20580         * tree-phinodes.c: Likewise.
20581         * tree-predcom.c: Likewise.
20582         * tree-pretty-print.c: Likewise.
20583         * tree-profile.c: Likewise.
20584         * tree-scalar-evolution.c: Likewise.
20585         * tree-sra.c: Likewise.
20586         * tree-ssa-address.c: Likewise.
20587         * tree-ssa-alias.c: Likewise.
20588         * tree-ssa-ccp.c: Likewise.
20589         * tree-ssa-coalesce.c: Likewise.
20590         * tree-ssa-copy.c: Likewise.
20591         * tree-ssa-copyrename.c: Likewise.
20592         * tree-ssa-dce.c: Likewise.
20593         * tree-ssa-dom.c: Likewise.
20594         * tree-ssa-dse.c: Likewise.
20595         * tree-ssa-forwprop.c: Likewise.
20596         * tree-ssa-ifcombine.c: Likewise.
20597         * tree-ssa-live.c: Likewise.
20598         * tree-ssa-loop-ch.c: Likewise.
20599         * tree-ssa-loop-im.c: Likewise.
20600         * tree-ssa-loop-ivcanon.c: Likewise.
20601         * tree-ssa-loop-ivopts.c: Likewise.
20602         * tree-ssa-loop-manip.c: Likewise.
20603         * tree-ssa-loop-niter.c: Likewise.
20604         * tree-ssa-loop-prefetch.c: Likewise.
20605         * tree-ssa-loop-unswitch.c: Likewise.
20606         * tree-ssa-loop.c: Likewise.
20607         * tree-ssa-math-opts.c: Likewise.
20608         * tree-ssa-operands.c: Likewise.
20609         * tree-ssa-phiopt.c: Likewise.
20610         * tree-ssa-phiprop.c: Likewise.
20611         * tree-ssa-pre.c: Likewise.
20612         * tree-ssa-propagate.c: Likewise.
20613         * tree-ssa-reassoc.c: Likewise.
20614         * tree-ssa-sccvn.c: Likewise.
20615         * tree-ssa-scopedtables.c: Likewise.
20616         * tree-ssa-sink.c: Likewise.
20617         * tree-ssa-strlen.c: Likewise.
20618         * tree-ssa-structalias.c: Likewise.
20619         * tree-ssa-tail-merge.c: Likewise.
20620         * tree-ssa-ter.c: Likewise.
20621         * tree-ssa-threadedge.c: Likewise.
20622         * tree-ssa-threadupdate.c: Likewise.
20623         * tree-ssa-uncprop.c: Likewise.
20624         * tree-ssa-uninit.c: Likewise.
20625         * tree-ssa.c: Likewise.
20626         * tree-ssanames.c: Likewise.
20627         * tree-stdarg.c: Likewise.
20628         * tree-streamer-in.c: Likewise.
20629         * tree-streamer-out.c: Likewise.
20630         * tree-streamer.c: Likewise.
20631         * tree-switch-conversion.c: Likewise.
20632         * tree-tailcall.c: Likewise.
20633         * tree-vect-data-refs.c: Likewise.
20634         * tree-vect-generic.c: Likewise.
20635         * tree-vect-loop-manip.c: Likewise.
20636         * tree-vect-loop.c: Likewise.
20637         * tree-vect-patterns.c: Likewise.
20638         * tree-vect-slp.c: Likewise.
20639         * tree-vect-stmts.c: Likewise.
20640         * tree-vectorizer.c: Likewise.
20641         * tree-vrp.c: Likewise.
20642         * tree.c: Likewise.
20643         * tsan.c: Likewise.
20644         * ubsan.c: Likewise.
20645         * valtrack.c: Likewise.
20646         * value-prof.c: Likewise.
20647         * var-tracking.c: Likewise.
20648         * varasm.c: Likewise.
20649         * varpool.c: Likewise.
20650         * vmsdbgout.c: Likewise.
20651         * vtable-verify.c: Likewise.
20652         * web.c: Likewise.
20653         * wide-int.cc: Likewise.
20654         * xcoffout.c: Likewise.
20655         * config/aarch64/aarch64-builtins.c: Likewise.
20656         * config/aarch64/aarch64.c: Likewise.
20657         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20658         * config/alpha/alpha.c: Likewise.
20659         * config/arc/arc.c: Likewise.
20660         * config/arm/aarch-common.c: Likewise.
20661         * config/arm/arm-builtins.c: Likewise.
20662         * config/arm/arm-c.c: Likewise.
20663         * config/arm/arm.c: Likewise.
20664         * config/avr/avr-c.c: Likewise.
20665         * config/avr/avr-log.c: Likewise.
20666         * config/avr/avr.c: Likewise.
20667         * config/bfin/bfin.c: Likewise.
20668         * config/c6x/c6x.c: Likewise.
20669         * config/cr16/cr16.c: Likewise.
20670         * config/cris/cris.c: Likewise.
20671         * config/darwin-c.c: Likewise.
20672         * config/darwin.c: Likewise.
20673         * config/epiphany/epiphany.c: Likewise.
20674         * config/epiphany/mode-switch-use.c: Likewise.
20675         * config/epiphany/resolve-sw-modes.c: Likewise.
20676         * config/fr30/fr30.c: Likewise.
20677         * config/frv/frv.c: Likewise.
20678         * config/ft32/ft32.c: Likewise.
20679         * config/h8300/h8300.c: Likewise.
20680         * config/i386/i386-c.c: Likewise.
20681         * config/i386/i386.c: Likewise.
20682         * config/i386/msformat-c.c: Likewise.
20683         * config/i386/winnt-cxx.c: Likewise.
20684         * config/i386/winnt-stubs.c: Likewise.
20685         * config/i386/winnt.c: Likewise.
20686         * config/ia64/ia64-c.c: Likewise.
20687         * config/ia64/ia64.c: Likewise.
20688         * config/iq2000/iq2000.c: Likewise.
20689         * config/lm32/lm32.c: Likewise.
20690         * config/m32c/m32c-pragma.c: Likewise.
20691         * config/m32c/m32c.c: Likewise.
20692         * config/m32r/m32r.c: Likewise.
20693         * config/m68k/m68k.c: Likewise.
20694         * config/mcore/mcore.c: Likewise.
20695         * config/mep/mep-pragma.c: Likewise.
20696         * config/mep/mep.c: Likewise.
20697         * config/microblaze/microblaze-c.c: Likewise.
20698         * config/microblaze/microblaze.c: Likewise.
20699         * config/mips/mips.c: Likewise.
20700         * config/mmix/mmix.c: Likewise.
20701         * config/mn10300/mn10300.c: Likewise.
20702         * config/moxie/moxie.c: Likewise.
20703         * config/msp430/msp430-c.c: Likewise.
20704         * config/msp430/msp430.c: Likewise.
20705         * config/nds32/nds32-cost.c: Likewise.
20706         * config/nds32/nds32-fp-as-gp.c: Likewise.
20707         * config/nds32/nds32-intrinsic.c: Likewise.
20708         * config/nds32/nds32-isr.c: Likewise.
20709         * config/nds32/nds32-md-auxiliary.c: Likewise.
20710         * config/nds32/nds32-memory-manipulation.c: Likewise.
20711         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20712         * config/nds32/nds32-predicates.c: Likewise.
20713         * config/nds32/nds32.c: Likewise.
20714         * config/nios2/nios2.c: Likewise.
20715         * config/nvptx/nvptx.c: Likewise.
20716         * config/pa/pa.c: Likewise.
20717         * config/pdp11/pdp11.c: Likewise.
20718         * config/rl78/rl78-c.c: Likewise.
20719         * config/rl78/rl78.c: Likewise.
20720         * config/rs6000/rs6000-c.c: Likewise.
20721         * config/rs6000/rs6000.c: Likewise.
20722         * config/rx/rx.c: Likewise.
20723         * config/s390/s390-c.c: Likewise.
20724         * config/s390/s390.c: Likewise.
20725         * config/sh/sh-c.c: Likewise.
20726         * config/sh/sh-mem.cc: Likewise.
20727         * config/sh/sh.c: Likewise.
20728         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20729         * config/sh/sh_treg_combine.cc: Likewise.
20730         * config/sol2-c.c: Likewise.
20731         * config/sol2-cxx.c: Likewise.
20732         * config/sol2-stubs.c: Likewise.
20733         * config/sol2.c: Likewise.
20734         * config/sparc/sparc-c.c: Likewise.
20735         * config/sparc/sparc.c: Likewise.
20736         * config/spu/spu-c.c: Likewise.
20737         * config/spu/spu.c: Likewise.
20738         * config/stormy16/stormy16.c: Likewise.
20739         * config/tilegx/mul-tables.c: Likewise.
20740         * config/tilegx/tilegx-c.c: Likewise.
20741         * config/tilegx/tilegx.c: Likewise.
20742         * config/tilepro/mul-tables.c: Likewise.
20743         * config/tilepro/tilepro-c.c: Likewise.
20744         * config/tilepro/tilepro.c: Likewise.
20745         * config/v850/v850-c.c: Likewise.
20746         * config/v850/v850.c: Likewise.
20747         * config/vax/vax.c: Likewise.
20748         * config/visium/visium.c: Likewise.
20749         * config/vms/vms-c.c: Likewise.
20750         * config/vms/vms.c: Likewise.
20751         * config/vxworks.c: Likewise.
20752         * config/xtensa/xtensa.c: Likewise.
20754 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
20756         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
20757         Remove operand constraints.  Change operand 2 predicate to
20758         nonmemory operand.  Limit const_int values to mode bitsize.  Only
20759         allow const_int values less than 32 when optimizing for size.
20760         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
20761         Remove operand constraints.
20762         (*bt<mode>): Use SImode for const_int values less than 32.
20763         (regmode): Remove mode attribute.
20765 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
20767         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20768         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
20769           moxie_legitimate_address_p): New functions.
20770           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20772 2015-07-07  Tom de Vries  <tom@codesourcery.com>
20774         PR tree-optimization/66642
20775         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
20776         header comment.  Rename split_edge variable to edge_at_split.  Split
20777         exit edge to create new loop exit bb.  Insert loop exit phis in new
20778         loop exit bb.
20780 2015-07-07  Tom de Vries  <tom@codesourcery.com>
20782         * tree-cfg.c (get_virtual_phi): New function.
20783         * tree-cfg.h (get_virtual_phi): Declare.
20784         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
20785         (rewrite_virtuals_into_loop_closed_ssa): New function.
20786         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
20787         Declare.
20788         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
20789         (transform_to_exit_first_loop_alt): Use
20790         rewrite_virtuals_into_loop_closed_ssa.
20792 2015-07-07  Richard Biener  <rguenther@suse.de>
20794         * fold-const.c (fold_binary_loc): Move
20795         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
20796         * match.pd: ... here.
20797         Add (X * C1) % C2 -> 0 simplification pattern derived from
20798         extract_muldiv_1.
20800 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
20802         PR target/66780
20803         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
20804         change for target/65249.
20806 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
20808         * symtab.c (address_matters_1): Fix typo in comment above.
20809         (can_increase_alignment_p): Likewise.
20811 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20813         * function.c (free_after_compilation): Clear PROP_cfg in
20814         f->curr_properties.
20816 2015-07-07  Richard Biener  <rguenther@suse.de>
20818         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
20819         add which use to.
20820         (add_control_edge): Remove excessive vertical space in dumping.
20821         (process_ssa_edge_worklist): Simulate at most one statement and
20822         return whether we did.  Do not simulate PHIs if they are in a
20823         BB not yet simulated.
20824         (ssa_propagate): Adjust to always drain the BB worklist whenever
20825         a BB is available there, likewise the VARYING edges list before
20826         the interesting edge list.
20828 2015-07-07  Christian Bruel  <christian.bruel@st.com>
20830         PR target/52144
20831         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
20833 2015-07-07  Richard Biener  <rguenther@suse.de>
20835         PR middle-end/66739
20836         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
20837         A - B.
20839 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
20841         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
20842         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
20843         Copy operand 0 to a temporary if !ext_register_operand.  Remove
20844         ancient extract_bit_field workaround.
20845         (insv<mode>_1): Rename from mov<mode>_insv_1.
20846         (*insvqi): Rename from *movqi_insv_2.
20847         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
20848         for renamed insvsi_1.
20849         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
20851 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
20853         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
20854         call to nvptx_reorg_subreg.
20856 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
20858         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
20859         * graphite-dependencies.c, graphite-interchange.c,
20860         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
20861         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
20862         Likewise.
20864 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
20866         * match.pd: Remove element_mode inside HONOR_*.
20867         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
20868         (~X | X -> -1, ~X ^ X -> -1): Merge.
20869         * tree.c (build_each_one_cst): New function.
20870         * tree.h (build_each_one_cst): Likewise.
20872 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
20874         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20875         PROCESSOR_IAMCU.
20877 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
20879         * config.gcc <mips*-*-*>: Add fused-madd.opt.
20880         * config/mips/mips.opt (mfused-madd): Remove.
20881         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
20882         * config/mips/mips.h (TARGET_MIPS8000): New.
20883         (ISA_HAS_FP_MADD4_MSUB4): Remove.
20884         (ISA_HAS_FP_MADDF_MSUBF): Remove.
20885         (ISA_HAS_FP_MADD3_MSUB3): Remove.
20886         (ISA_HAS_NMADD4_NMSUB4): Remove.
20887         (ISA_HAS_NMADD3_NMSUB3): Remove.
20888         (ISA_HAS_FUSED_MADD4): New.
20889         (ISA_HAS_UNFUSED_MADD4): New.
20890         (ISA_HAS_FUSED_MADDF): New.
20891         (ISA_HAS_FUSED_MADD3): New.
20892         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
20893         (*fma<mode>4_madd3) New.
20894         (*fma<mode>4_madd4) New.
20895         (*fma<mode>4_maddf) New.
20896         (fms<mode>4) New.
20897         (*fms<mode>4_msub3) New.
20898         (*fms<mode>4_msub4) New.
20899         (fnma<mode>4) New.
20900         (*fnma<mode>4_nmadd3) New.
20901         (*fnma<mode>4_nmadd4) New.
20902         (fnms<mode>4) New.
20903         (*fnms<mode>4_nmsub3) New.
20904         (*fnms<mode>4_nmsub4) New.
20905         (*madd4<mode>) Modify to be unfused only.
20906         (*msub4<mode>) Modify to be unfused only.
20907         (*nmadd4<mode>) Modify to be unfused only.
20908         (*nmsub4<mode>) Modify to be unfused only.
20909         (*madd3<mode>) Remove.
20910         (*msub3<mode>) Remove.
20911         (*nmadd3<mode>) Remove.
20912         (*nmsub3<mode>) Remove.
20913         (*nmadd3<mode>_fastmath) Remove.
20914         (*nmsub3<mode>_fastmath) Remove.
20915         (*nmadd4<mode>_fastmath) Update condition.
20916         (*nmsub4<mode>_fastmath) Update condition.
20918 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
20920         PR target/65956
20921         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
20922         alignment attribute, exploring one level down for records and arrays.
20924 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
20926         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
20927         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
20928         Copy operand 1 to a temporary if !ext_register_operand.  Remove
20929         ancient extract_bit_field workaround.
20930         (*extv<mode>): Rename from *mov<mode>_extv_1.
20931         (*extvqi): Rename from *movqi_extv_1.
20932         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
20933         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
20934         to a temporary if !ext_register_operand.  Remove ancient
20935         extract_bit_field workaround.
20936         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
20937         (*extzvqi): Rename from *movqi_extzv_2.
20938         (*testqi_ext_3): Remove modes from const_int_operand predicated
20939         operands.  Add "n" constraint.
20940         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
20941         operand.  Add "J" constraint.
20942         (*btsq, *btrq, *btcq peephole2s): Remove mode from
20943         const_0_to_63 predicated operand.
20944         (regmode): New insn attribute.
20945         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
20946         to nonmemory_operand.  Use regmode insn attribute.
20947         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
20948         (*jcc_bt<mode>_mask): Remove mode from operand 3.
20949         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
20950         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
20951         operands.  Use "N" constraint instead of "n".
20953 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
20955         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
20957 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
20959         PR target/66749
20960         * config/i386/i386.c (iamcu_cost): New.
20961         (m_IAMCU): Likewise.
20962         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
20963         (processor_target_table): Add an entry for "iamcu".
20964         (processor_alias_table): Likewise.
20965         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
20966         (ix86_adjust_cost): Likewise.
20967         (ia32_multipass_dfa_lookahead): Likewise.
20968         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
20969         * config/i386/x86-tune.def: Updated for m_IAMCU.
20971 2015-07-06  Richard Biener  <rguenther@suse.de>
20973         PR tree-optimization/66772
20974         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
20975         values are available in the PHI node BB when there are
20976         still unexecutable edges.
20978 2015-07-06  Richard Biener  <rguenther@suse.de>
20980         PR tree-optimization/66767
20981         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
20982         Make sure to build the alignment test on a SSA name without
20983         final alignment info valid only if the alignment test
20984         evaluates to true.
20986 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
20988         PR target/66620
20989         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
20990         loop start when inserting LSETUP.
20992 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
20994         PR target/53383
20995         * config/i386/i386.c (ix86_option_override_internal): Allow
20996         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
20998 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21000         * read-md.c (decimal_string): Rename to ...
21001         (md_decimal_string): ... this.
21002         (handle_enum): Reflect this.
21004 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21006         PR target/66731
21007         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
21009 2015-07-06  Richard Biener  <rguenther@suse.de>
21011         PR middle-end/66759
21012         * match.pd: Add missing constraint of y to REAL_CST in
21013         REAL_CST - x CMP y to y - CST CMP x simplification.
21015 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
21017         PR tree-optimization/66757
21018         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
21020 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
21021             Sandra Loosemore <sandra@codesourcery.com>
21023         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
21024         Delete extern declaration.
21025         (gprel_constant_p): Add extern declaration.
21026         * config/nios2/constraints.md ("S"): Use gprel_constant_p
21027         instead of nios2_symbol_ref_in_small_data_p.
21028         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
21029         (nios2_symbol_ref_in_small_data_p): Make static.
21030         (gprel_constant_p): Make non-static.
21032 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
21034         * doc/fragments.texi (Target Fragment): Convert debian.org
21035         link to use https.
21036         * doc/install.texi (Configuration): Ditto.
21038 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
21040         PR tree-optimization/66718
21041         * tree-vect-stmts.c (vectorizable_call): Replace uses of
21042         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
21044         PR tree-optimization/66718
21045         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
21046         vectorizable_load, vectorizable_condition): Move vectype,
21047         nunits, ncopies computation after checking what kind of statement
21048         stmt is.
21050 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21052         * target-insns.def (extv, extzv, insv): New targetm instruction
21053         patterns.
21054         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
21055         interface.
21056         * recog.c (simplify_while_replacing): Likewise.
21058 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21060         * target-insns.def (doloop_begin, doloop_end): New targetm
21061         instruction patterns.
21062         * loop-init.c: Include target.h.
21063         (pass_loop2::gate): Use the new targetm patterns instead of
21064         HAVE_*/gen_* interface.
21065         (pass_rtl_doloop::gate): Likewise.
21066         (pass_rtl_doloop::execute): Remove preprocessor condition.
21067         * hw-doloop.c: Build unconditionally.
21068         * loop-doloop.c: Likewise.
21069         (doloop_optimize): Use the new targetm patterns instead of
21070         HAVE_*/gen_* interface.
21071         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
21072         * modulo-sched.c (doloop_register_get): Likewise.
21074 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21076         * target-insns.def (clear_cache): New targetm instruction pattern.
21077         * builtins.c (expand_builtin___clear_cache): Use it instead of
21078         HAVE_*/gen_* interface.
21080 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21082         * target-insns.def (allocate_stack, check_stack, probe_stack)
21083         (probe_stack_address, split_stack_prologue, split_stack_space_check):
21084         New targetm instruction patterns.
21085         * explow.c (allocate_dynamic_stack_space): Use them instead of
21086         HAVE_*/gen_* interface.
21087         (emit_stack_probe): Likewise.
21088         (probe_stack_range): Likewise.
21089         * function.c (thread_prologue_and_epilogue_insns): Likewise.
21091 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21093         * target-insns.def (stack_protect_set, stack_protect_test): New
21094         targetm instruction patterns.
21095         * cfgexpand.c (stack_protect_prologue): Use them instead of
21096         HAVE_*/gen_* interface.
21097         * function.c (stack_protect_epilogue): Likewise.
21099 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21101         * expr.h (gen_move_insn_uncast): Delete.
21102         * expr.c (gen_move_insn_uncast): Delete.
21104 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21106         * target-insns.def (restore_stack_block, restore_stack_function)
21107         (restore_stack_nonlocal, save_stack_block, save_stack_function)
21108         (save_stack_nonlocal): New targetm instruction patterns.
21109         * builtins.c (expand_builtin_apply): Use them instead of
21110         HAVE_*/gen_* interface.
21111         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
21113 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21115         * target-insns.def (trap): New targetm instruction pattern.
21116         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
21117         interface.
21118         * explow.c (allocate_dynamic_stack_space): Likewise.
21119         * ifcvt.c (find_if_header): Likewise.
21121 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21123         * target-insns.def (prefetch): New targetm instruction pattern.
21124         * tree-ssa-loop-prefetch.c: Include targeth.
21125         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
21126         of HAVE_*/gen_* interface.
21127         * builtins.c (expand_builtin_prefetch): Likewise.
21128         * toplev.c (process_options): Likewise.
21130 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21132         * target-insns.def (untyped_call, untyped_return): New targetm
21133         instruction patterns.
21134         * builtins.c (expand_builtin_apply): Use them instead of
21135         HAVE_*/gen_* interface.
21136         (result_vector): Define unconditionally.
21138 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21140         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
21141         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
21142         (nonlocal_goto_receiver): New targetm instruction patterns.
21143         * builtins.c (expand_builtin_setjmp_setup): Use them instead
21144         of HAVE_*/gen_* interface.
21145         (expand_builtin_setjmp_receiver): Likewise.
21146         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
21147         * except.c (expand_dw2_landing_pad_for_region): Likewise.
21149 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21151         * target.def: Add code_for_* hooks.
21152         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
21153         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
21154         * target-insns.def (casesi, tablejump): New targetm instruction
21155         patterns.
21156         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
21157         (do_tablejump): Likewise.
21158         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
21159         (expand_sjlj_dispatch_table): Likewise.
21160         * targhooks.c (default_case_values_threshold): Likewise.
21162 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
21164         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
21165         Use rtx_insn * instead of rtx.
21166         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
21167         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
21168         (nios2_call_tls_get_addr): Likewise.
21169         (nios2_emit_expensive_div): Likewise.
21170         (nios2_emit_move_sequence): Change return type to bool.
21171         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
21172         Change return type to bool.
21174 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21176         PR target/66747
21177         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
21179 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
21181         PR target/66114
21182         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
21183         of register_operand.  Remove constraint.
21185 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
21187         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
21188         the first argument.
21190 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
21192         * attribs.c (decl_attributes): Guard inform with the return value
21193         of the preceding warning.
21195 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
21197         * doc/invoke.texi (moverride): Move to correct section.
21199 2015-07-03  Richard Biener  <rguenther@suse.de>
21201         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
21202         Copy from tree.c
21203         (dt_operand::gen_gimple_expr): After valueizing operands
21204         re-canonicalize operand order for commutative tree codes.
21206 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
21208         PR target/66746.
21209         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
21210         is defined.
21211         (__crc32w): Likewise.
21212         (__crc32d): Likewise.
21213         (__rdpmc): Likewise.
21214         (__rdtscp): Likewise.
21215         (_rdpmc): Likewise.
21216         (_rdtscp): Likewise.
21217         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
21218         is defined.
21220 2015-07-03  Richard Biener  <rguenther@suse.de>
21222         * fold-const.c (fold_mathfn_compare): Remove.
21223         (fold_inf_compare): Likewise.
21224         (fold_comparison): Move floating point comparison simplifications...
21225         * match.pd: ... to patterns here.  Introduce simple_comparisons
21226         operator list and use it for patterns formerly in fold_comparison.
21228 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
21230         PR tree-optimization/66119
21231         * toplev.c (process_options): Don't set up default values for
21232         the sra_max_scalarization_size_{speed,size} parameters.
21233         * tree-sra (analyze_all_variable_accesses): If no values
21234         have been set for the sra_max_scalarization_size_{speed,size}
21235         parameters, call get_move_ratio to get target defaults.
21237 2015-07-03  Richard Biener  <rguenther@suse.de>
21239         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
21240         * match.pd: ... here.
21242 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
21244         PR target/37072
21245         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
21246         is not actually the default on FreeBSD.
21248 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21250         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
21251         definition.
21252         (CMPGE_8HI): Likewise.
21253         (CMPGE_4SI): Likewise.
21254         (CMPGE_2DI): Likewise.
21255         (CMPGE_U16QI): Likewise.
21256         (CMPGE_U8HI): Likewise.
21257         (CMPGE_U4SI): Likewise.
21258         (CMPGE_U2DI): Likewise.
21259         (CMPLE_16QI): Likewise.
21260         (CMPLE_8HI): Likewise.
21261         (CMPLE_4SI): Likewise.
21262         (CMPLE_2DI): Likewise.
21263         (CMPLE_U16QI): Likewise.
21264         (CMPLE_U8HI): Likewise.
21265         (CMPLE_U4SI): Likewise.
21266         (CMPLE_U2DI): Likewise.
21267         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21268         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
21269         ALTIVEC_BUILTIN_VEC_CMPLE.
21270         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
21271         floating-point vector modes.
21272         (vector_nlt<mode>): New define_expand.
21273         (vector_nltu<mode>): Likewise.
21274         (vector_ngt<mode>): Likewise.
21275         (vector_ngtu<mode>): Likewise.
21277 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
21279         PR rtl-optimization/66706
21280         * combine.c (make_compound_operation): If an AND of SUBREG of
21281         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
21283 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
21285         * tree-pass.h (make_pass_ch_vect): New.
21286         * passes.def: Add pass_ch_vect just before pass_if_conversion.
21288         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
21289         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
21290         make_pass_ch_vect): New.
21291         (pass_ch): Extend ch_base.
21293         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
21294         (ch_base::copy_headers): ...here.
21296 2015-07-02  Richard Biener  <rguenther@suse.de>
21298         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
21299         * fold-const.c (get_pointer_modulus_and_residue): Remove.
21300         (fold_binary_loc): Implement (T)ptr & CST in terms of
21301         get_pointer_alignment_1.
21302         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
21303         Make sure to build the alignment test on a SSA name without
21304         final alignment info valid only after the prologue.
21306 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
21308         * config/cris/cris.md ("epilogue"): Remove condition.
21309         ("prologue"): Ditto.
21311 2015-07-02  Richard Biener  <rguenther@suse.de>
21313         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
21314         parameter to record a condition that is false.
21315         (record_conditions): When recording an extra NE_EXPR that is
21316         true also record a EQ_EXPR that is false.
21318 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
21320         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
21321         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
21322         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
21323         (set_iv, find_interesting_uses_address, add_candidate_1): New
21324         argument to alloc_iv.
21325         (find_interesting_uses_op, find_interesting_uses_cond): Don't
21326         duplicate struct iv.
21327         (free_loop_data): Don't free struct iv explicitly.
21328         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
21330 2015-07-01  DJ Delorie  <dj@redhat.com>
21332         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
21333         (LIB_SPEC): Add.
21334         (SUPPORTS_DISCRIMINATOR): Define.
21336 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
21338         PR bootstrap/66685
21339         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
21340         there are no CALLs in the same pattern.
21342 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21344         PR rtl-optimization/61047
21345         * rtlanal.c (get_initial_register_offset): New function.
21346         (rtx_addr_can_trap_p_1): Check offsets of stack references.
21348 2015-07-01  Richard Biener  <rguenther@suse.de>
21350         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
21351         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
21352         ~X CMP C -> X CMP' ~C to ...
21353         * match.pd: ... patterns here.
21355 2015-07-01  Nick Clifton  <nickc@redhat.com>
21357         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
21358         a 16-bit value into a 20-bit memory slot.
21360 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
21362         * doc/sourcebuild.texi (AArch64-specific attributes): Document
21363         "aarch64_tiny", "aarch64_small", "aarch64_large",
21364         "aarch64_little_endian", "aarch64_big_endian".
21366 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
21368         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
21369         Document "aarch64_small_fpic".
21371 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
21373         * configure.ac: Add check for aarch64 assembler -fpic relocation
21374         modifier support.
21375         * configure: Regenerate.
21376         * config.in: Regenerate.
21377         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
21378         to -fPIC if not support of -fpic relocation modifier in assembler.
21380 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
21382         PR bootstrap/66685
21383         * rtl.c (classify_insn): Handle returns in PARALLELs.
21385 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
21387         PR middle-end/66633
21388         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
21389         to true if the function is nested and if not optimizing.
21390         (convert_local_omp_clauses): Initialize need_frame to true if the
21391         function contains nested functions and if not optimizing.
21393 2015-07-01  Richard Biener  <rguenther@suse.de>
21395         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
21396         (X & Y) ^ Y -> ~X & Y transforms to ...
21397         * match.pd: ... here.
21399 2015-07-01  Richard Biener <rguenther@suse.de>
21401         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
21402         of converts to avoid uninteresting noise from the conversion
21403         simplifying patterns.
21405 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
21407         * config/c6x/c6x.c (try_rename_operands): Do not depend on
21408         gcc_assert evaluating its argument for side-effect.
21410 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
21412         PR target/64833
21413         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
21414         flag_pic is set.
21416 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
21418         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
21419         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
21420         (hash_scc): Add this_ref_p and ref_p parameters and pass them
21421         to the inner DFS walk.
21423 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
21425         * target-insns.def (jump): New targetm instruction pattern.
21426         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
21427         instead of gen_jump.
21428         (fix_up_crossing_landing_pad): Likewise.
21429         (add_labels_and_missing_jumps): Likewise.
21430         (fix_crossing_conditional_branches): Likewise.
21431         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
21432         (force_nonfallthru_and_redirect): Likewise.
21433         * cse.c (cse_insn): Likewise.
21434         * expmed.c (expand_divmod): Likewise.
21435         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
21436         * haifa-sched.c (init_before_recovery): Likewise.
21437         (sched_create_recovery_edges): Likewise.
21438         * ifcvt.c (find_cond_trap): Likewise.
21439         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
21440         (expand_float, expand_fix): Likewise.
21441         * stmt.c (emit_jump): Likewise.
21443 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
21445         * defaults.h (HAVE_load_multiple, gen_load_multiple)
21446         (HAVE_store_multiple, gen_store_multiple): Delete.
21447         * target-insns.def (load_multiple, store_multiple): New targetm
21448         instruction patterns.
21449         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
21450         of HAVE_*/gen_* interface.
21452 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
21454         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
21455         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
21456         (gen_mem_signal_fence): Delete.
21457         * target-insns.def (mem_signal_fence, mem_thread_fence)
21458         (memory_barrier): New targetm instruction patterns.
21459         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
21460         interface.
21461         (expand_mem_signal_fence): Likewise.
21463 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
21465         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
21466         * target-insns.def (epilogue, prologue, sibcall_prologue): New
21467         targetm instruction patterns.
21468         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
21469         interface.
21470         * calls.c (expand_call): Likewise.
21471         * cfgrtl.c (cfg_layout_finalize): Likewise.
21472         * df-scan.c (df_get_entry_block_def_set): Likewise.
21473         (df_get_exit_block_use_set): Likewise.
21474         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
21475         * final.c (final_start_function): Likewise.
21476         * function.c (thread_prologue_and_epilogue_insns): Likewise.
21477         (reposition_prologue_and_epilogue_notes): Likewise.
21478         * reorg.c (find_end_label): Likewise.
21479         * toplev.c (process_options): Likewise.
21481 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
21483         * typed-splay-tree.h: New file.
21485 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
21487         PR debug/66691
21488         * lra-int.h (lra_substitute_pseudo): Add a parameter.
21489         (lra_substitute_pseudo_within_insn): Ditto.
21490         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
21491         of constant.
21492         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
21493         to lra_substitute_pseudo.
21494         * lra-lives.c (process_bb_lives): Add an argument to
21495         lra_substitute_pseudo_within_insn call.
21496         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
21497         argument to lra_substitute_pseudo and
21498         lra_substitute_pseudo_within_insn calls.
21499         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
21501 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
21503         * configure: Regenerated.
21505 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
21507         * config.gcc: Support i[34567]86-*-elfiamcu target.
21508         * config/i386/iamcu.h: New.
21509         * config/i386/i386.opt: Add -miamcu.
21510         * doc/invoke.texi: Document -miamcu.
21511         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
21512         off x87/MMX/SSE/AVX codegen for -miamcu.
21513         * config/i386/i386-c.c (ix86_target_macros_internal): Define
21514         __iamcu/__iamcu__ for -miamcu.
21515         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
21516         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
21517         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
21518         * config/i386/i386.c (ix86_option_override_internal): Ignore and
21519         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
21520         MCU by default.  Default long double to 64-bit for Intel MCU.
21521         Turn on -freg-struct-return for Intel MCU.  Issue an error when
21522         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
21523         AVX is turned on.
21524         (function_arg_advance_32): Pass value whose size is no larger
21525         than 8 bytes in registers for Intel MCU.
21526         (function_arg_32): Likewise.
21527         (ix86_return_in_memory): Return value whose size is no larger
21528         than 8 bytes in registers for Intel MCU.
21529         (iamcu_alignment): New function.
21530         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
21531         true.
21532         (ix86_local_alignment): Don't increase alignment for Intel MCU.
21533         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
21534         true.
21536 2015-06-30  Marek Polacek  <polacek@redhat.com>
21538         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
21539         both operands of the resulting expression.
21541         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
21542         the final expression with the operand's type and then convert
21543         it to the type of the expression.
21545 2015-06-30  Richard Biener  <rguenther@suse.de>
21547         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
21548         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
21549         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
21550         * match.pd: ... to patterns here.
21552 2015-06-30  Richard Biener  <rguenther@suse.de>
21554         PR tree-optimization/66704
21555         * tree-vect-data-refs.c (vect_setup_realignment): Use
21556         make_ssa_name for non-SSA name source.
21558 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
21560         PR middle-end/66702
21561         * omp-low.c (simd_clone_adjust): Handle addressable linear
21562         or uniform parameters or non-gimple type uniform parameters.
21564 2015-06-30  Richard Biener  <rguenther@suse.de>
21566         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
21567         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
21568         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
21569         * match.pd: ... here.
21570         Add a few cases of A - B -> A + (-B) when B "easily" negates.
21571         Move (x & y) | x -> x and friends before
21572         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
21574 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
21576         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
21577         -mfix-ut699 is not specified.
21578         (leon3_load): Rename into...
21579         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
21580         is specified.
21582 2015-06-30  Marek Polacek  <polacek@redhat.com>
21584         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
21585         * match.pd: ... here.
21587 2015-06-30  Richard Biener  <rguenther@suse.de>
21589         * target-insns.def (canonicalize_funcptr_for_compare): Add.
21590         * fold-const.c (build_range_check): Replace uses of
21591         HAVE_canonicalize_funcptr_for_compare.
21592         (fold_widened_comparison): Likewise.
21593         (fold_sign_changed_comparison): Likewise.
21594         * dojump.c: Include "target.h".
21595         (do_compare_and_jump): Replace uses of
21596         HAVE_canonicalize_funcptr_for_compare and
21597         gen_canonicalize_funcptr_for_compare.
21598         * expr.c (do_store_flag): Likewise.
21600 2015-06-30  Tom de Vries  <tom@codesourcery.com>
21602         PR tree-optimization/66652
21603         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
21604         max_loop_iterations to determine if nit + 1 overflows.
21606 2015-06-30  Richard Biener  <rguenther@suse.de>
21608         * tree-vrp.c (register_edge_assert_for_2): Also register
21609         asserts for dominating conversion results.
21611 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
21613         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
21614         field in struct iv.
21616 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
21618         PR target/66509
21619         * configure.ac: Fix filds and fildq test for 64-bit.
21620         * configure: Regenerated.
21622 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
21624         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
21625         (nvptx_reorg): Here.  Keep the non-subreg pieces.
21627 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
21629         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
21630         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
21632 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
21634         * config/i386/i386.md (*jcc_1): Use %! in asm template.
21635         Set attribute "length_nobnd" instead of "length".
21636         (*jcc_2): Ditto.
21637         (jump): Ditto.
21638         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
21640 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
21642         * config/nios2/nios2.c (nios2_delegitimize_address): Make
21643         assert less restrictive.
21645 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21647         PR fortran/66605
21648         * cgraphunit.c (cgraph_node::finalize_function): Do not call
21649         do_warn_unused_parameter.
21650         * function.c (do_warn_unused_parameter): Move from here.
21651         * function.h (do_warn_unused_parameter): Do not declare.
21653 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
21655         PR target/65697
21656         * gcc.target/arm/armv-sync-comp-swap.c: New.
21657         * gcc.target/arm/armv-sync-op-acquire.c: New.
21658         * gcc.target/arm/armv-sync-op-full.c: New.
21659         * gcc.target/arm/armv-sync-op-release.c: New.
21661 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
21663         PR target/65697
21664         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
21665         initial acquire barrier with final barrier.
21667 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
21669         PR target/65697
21670         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
21671         initial acquire barrier with final barrier.
21673 2015-06-29  Richard Henderson  <rth@redhat.com>
21675         * config/i386/constraints.md (Bf): New constraint.
21676         * config/i386/i386-c.c (ix86_target_macros): Define
21677         __GCC_ASM_FLAG_OUTPUTS__.
21678         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
21679         as flags outputs.
21680         * doc/extend.texi (FlagOutputOperands): Document them.
21682 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
21684         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
21685         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
21686         unspec name.
21687         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
21688         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
21689         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
21690         (aarch64_symbol_context): Ditto.
21691         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
21692         and use new pattern name.
21693         (aarch64_expand_mov_immediate): Ditto.
21694         (aarch64_print_operand): Ditto.
21695         (aarch64_classify_tls_symbol): Ditto.
21697 2015-06-29  Marek Polacek  <polacek@redhat.com>
21698             Marc Glisse  <marc.glisse@inria.fr>
21700         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
21701         * match.pd: ... pattern here.
21703 2015-06-29  Tom de Vries  <tom@codesourcery.com>
21705         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
21706         function structure.
21708 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
21710         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
21711         feature description, split out the native option, add a link to
21712         the feature documentation, rearrange and slightly rewrite text.
21713         (Aarch64 options, -mcpu): Likewise.
21714         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
21715         +rdma implies Adv. SIMD.
21717 2015-06-29  Marek Polacek  <polacek@redhat.com>
21719         PR c/66322
21720         * function.c (stack_protect_epilogue): Remove a cast to int.
21721         * doc/invoke.texi: Update -Wswitch-bool description.
21723 2015-06-29  Richard Biener  <rguenther@suse.de>
21725         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
21726         * fold-const.c (fold_binary_loc): Move &A - &B simplification
21727         via ptr_difference_const ...
21728         * match.pd: ... here.
21729         When matching (X ^ Y) == Y also match with swapped operands.
21731 2015-06-29  Richard Biener  <rguenther@suse.de>
21733         * lto-streamer.h (LTO_major_version): Bump to 5.
21735 2015-06-29  Richard Biener  <rguenther@suse.de>
21737         PR tree-optimization/66677
21738         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
21739         STMT_VINFO_VEC_STMT clobbering less strict.
21741 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
21743         PR middle-end/64130
21744         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
21745         division, compute max and min when value ranges for dividend and
21746         divisor are available.
21748 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
21749             Sandra Loosemore <sandra@codesourcery.com>
21751         * regrename.h (regrename_do_replace): Change to return bool.
21752         * regrename.c (rename_chains): Check return value of
21753         regname_do_replace.
21754         (regrename_do_replace): Re-validate the modified insns and
21755         return bool status.
21756         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
21757         Update to match rename_chains changes.
21758         * config/c6x/c6x.c (try_rename_operands): Assert that
21759         regrename_do_replace returns true.
21761 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
21763         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
21764         operand 2 here.  Use copy_addr_to_reg to copy non-index
21765         register operand 2 to a temporary.
21766         (<mode>_stx): Ditto for operand 1.
21767         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
21768         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
21769         (ix86_store_bounds): Ditto.
21771 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
21773         * print-tree.c (print_node) [TREE_VEC]: Print its length.
21775 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
21777         * gimple.c (gimple_call_set_fndecl): Remove.
21778         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
21779         build1_loc directly instead of build_fold_addr_expr_loc.
21781 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
21783         * hash-map.h (hash_map::traverse): Use the definition of the
21784         Key typedef rather than the typedef itself.
21786 2015-06-26  Martin Jambor  <mjambor@suse.cz>
21788         PR debug/66301
21789         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
21790         NULL instead of calling dump_enabled_p.
21792 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
21794         * config/aarch64/aarch64.opt: (override): New.
21795         * doc/invoke.texi (override): Document.
21796         * config/aarch64/aarch64.c (aarch64_flag_desc): New
21797         (aarch64_fusible_pairs): Likewise.
21798         (aarch64_tuning_flags): Likewise.
21799         (aarch64_tuning_override_function): Likewise.
21800         (aarch64_tuning_override_functions): Likewise.
21801         (aarch64_parse_one_option_token): Likewise.
21802         (aarch64_parse_boolean_options): Likewise.
21803         (aarch64_parse_fuse_string): Likewise.
21804         (aarch64_parse_tune_string): Likewise.
21805         (aarch64_parse_one_override_token): Likewise.
21806         (aarch64_parse_override_string): Likewise.
21807         (aarch64_override_options): Parse the -override string if it
21808         is present.
21810 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
21812         * config/aarch64/aarch64-protos.h (tune_params): Remove
21813         const from members.
21814         (aarch64_tune_params): Remove const, change to no longer be
21815         a pointer.
21816         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
21817         change to no longer be a pointer, initialize to generic_tunings.
21818         (aarch64_min_divisions_for_recip_mul): Change dereference of
21819         aarch64_tune_params to member access.
21820         (aarch64_reassociation_width): Likewise.
21821         (aarch64_rtx_mult_cost): Likewise.
21822         (aarch64_address_cost): Likewise.
21823         (aarch64_branch_cost): Likewise.
21824         (aarch64_rtx_costs): Likewise.
21825         (aarch64_register_move_cost): Likewise.
21826         (aarch64_memory_move_cost): Likewise.
21827         (aarch64_sched_issue_rate): Likewise.
21828         (aarch64_builtin_vectorization_cost): Likewise.
21829         (aarch64_override_options): Take a copy of the selected tuning
21830         struct in to aarch64_tune_params, rather than just setting
21831         a pointer, change dereferences of aarch64_tune_params to member
21832         accesses.
21833         (aarch64_override_options_after_change): Change dereferences of
21834         aarch64_tune_params to member access.
21835         (aarch64_macro_fusion_p): Likewise.
21836         (aarch_macro_fusion_pair_p): Likewise.
21837         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
21839 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
21841         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
21842         (aarch64_tune_flags): Likewise.
21843         (AARCH64_TUNE_FMA_STEERING): Likewise.
21844         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
21845         to AARCH64_FL_USE_FMA_STEERING_PASS.
21846         (cortex-a57.cortex-a53): Likewise.
21847         (cortex-a72): Use cortexa72_tunings.
21848         (cortex-a72.cortex-a53): Likewise.
21849         (exynos-m1): Likewise.
21850         * config/aarch64/aarch64-protos.h (tune_params): Add
21851         a field: extra_tuning_flags.
21852         * config/aarch64/aarch64-tuning-flags.def: New.
21853         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
21854         (aarch64_extra_tuning_flags): Likewise.
21855         (aarch64_tune_params): Declare here.
21856         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
21857         (cortexa53_tunings): Likewise.
21858         (cortexa57_tunings): Likewise.
21859         (thunderx_tunings): Likewise.
21860         (xgene1_tunings): Likewise.
21861         (cortexa72_tunings): New.
21862         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
21863          (gate): Check against aarch64_tune_params.
21864         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
21865         aarch64-protos.h.
21867 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
21869         * config/aarch64/aarch64-fusion-pairs.def: New.
21870         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
21871         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
21872         aarch64_fusion_pairs.
21873         (AARCH64_FUSE_MOV_MOVK): Likewise.
21874         (AARCH64_FUSE_ADRP_ADD): Likewise.
21875         (AARCH64_FUSE_MOVK_MOVK): Likewise.
21876         (AARCH64_FUSE_ADRP_LDR): Likewise.
21877         (AARCH64_FUSE_CMP_BRANCH): Likewise.
21879 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
21881         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
21882         SYMBOL_SMALL_GOT_28K.
21883         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
21884         relocation modifiers.
21885         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
21886         (ldr_got_small_28k_<mode>): New.
21887         (ldr_got_small_28k_sidi): New.
21888         * config/aarch64/iterators.md (got_modifier): New mode iterator.
21889         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
21890         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
21891         SYMBOL_SMALL_GOT_28K.
21892         (aarch64_rtx_costs): Add costs for new instruction sequences.
21893         (initialize_aarch64_code_model): Initialize new model.
21894         (aarch64_classify_symbol): Recognize new model and new symbol classification.
21895         (aarch64_asm_preferred_eh_data_format): Support new model.
21896         (aarch64_load_symref_appropriately): Generate new instruction
21897         sequences for -fpic.
21898         (TARGET_USE_PSEUDO_PIC_REG): New definition.
21899         (aarch64_use_pseudo_pic_reg): New function.
21901 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
21903         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
21904         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
21905         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
21906         (aarch64_expand_mov_immediate): Ditto.
21907         (aarch64_print_operand): Ditto.
21908         (aarch64_classify_symbol): Ditto.
21910 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
21912         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
21914 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
21916         PR bootstrap/66638
21917         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
21918         assertion failed.  Remove assertion itself.
21920 2015-06-26  Richard Biener  <rguenther@suse.de>
21922         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
21923         and -A CMP CST -> A CMP -CST which is redundant with a pattern
21924         in match.pd.
21925         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
21926         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
21927         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
21928         * match.pd: ... patterns here.
21930 2015-06-26  Marek Polacek  <polacek@redhat.com>
21932         * match.pd ((x | y) & ~(x & y) -> x ^ y,
21933         (x | y) & (~x ^ y) -> x & y): New patterns.
21935 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
21937         * rtl.h (emit): Add an optional boolean parameter to control
21938         whether barriers are emitted.
21939         * emit-rtl.c (emit): Likewise.
21940         * gensupport.c (get_emit_function): Return null rather than "emit".
21941         * genemit.c (gen_emit_seq): Handle the null return value.
21942         Don't emit barriers after the final instruction in the sequence.
21943         * gentarget-def.c (main): Don't emit barriers after the instruction.
21945 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21947         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
21948         TARGET_UNIFIED_ASM.
21950 2015-06-26  Richard Biener  <rguenther@suse.de>
21952         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
21954 2015-06-26  Richard Biener  <rguenther@suse.de>
21956         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
21957         irrespective on whether the inner operation has a single use
21958         of both off are constant.
21960 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
21961             Segher Boessenkool  <segher@kernel.crashing.org>
21963         PR target/66412
21964         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
21965         before doing PUT_MODE or PUT_CODE on operands to avoid
21966         in-place RTX modification.
21968 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21970         * gentarget-def.c (def_target_insn): Cast return of strtol to
21971         unsigned int.
21973 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
21975         * gimple.h (gimple_call_set_fn): Move inline function.
21976         * gimple.c (gimple_call_set_fn): Relocate here.
21978 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
21980         PR target/65979
21981         PR target/66611
21982         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
21983         the replacement insn will work.
21985 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21987         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
21988         by default.
21990 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
21992         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
21993         * cgraph.h: Include ipa-ref.h and plugin-api.h.
21994         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
21995         (symtab_node::address_can_be_compared_p): Move function.
21996         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
21997         definition here.
21998         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
21999         * auto-profile.c: Likewise.
22000         * bb-reorder.c: Likewise.
22001         * builtins.c: Likewise.
22002         * calls.c: Likewise.
22003         * cfgexpand.c: Likewise.
22004         * cgraphbuild.c: Likewise.
22005         * cgraphclones.c: Likewise.
22006         * cgraphunit.c: Likewise.
22007         * combine.c: Likewise.
22008         * coverage.c: Likewise.
22009         * data-streamer-in.c: Likewise.
22010         * data-streamer-out.c: Likewise.
22011         * data-streamer.c: Likewise.
22012         * dbxout.c: Likewise.
22013         * dwarf2out.c: Likewise.
22014         * except.c: Likewise.
22015         * expr.c: Likewise.
22016         * final.c: Likewise.
22017         * fold-const.c: Likewise.
22018         * ggc-page.c: Likewise.
22019         * gimple-fold.c: Likewise.
22020         * gimple-iterator.c: Likewise.
22021         * gimple-pretty-print.c: Likewise.
22022         * gimple-streamer-in.c: Likewise.
22023         * gimple-streamer-out.c: Likewise.
22024         * gimple.c: Likewise.
22025         * gimplify.c: Likewise.
22026         * ipa-chkp.c: Likewise.
22027         * ipa-comdats.c: Likewise.
22028         * ipa-cp.c: Likewise.
22029         * ipa-devirt.c: Likewise.
22030         * ipa-icf-gimple.c: Likewise.
22031         * ipa-icf.c: Likewise.
22032         * ipa-inline-analysis.c: Likewise.
22033         * ipa-inline-transform.c: Likewise.
22034         * ipa-inline.c: Likewise.
22035         * ipa-polymorphic-call.c: Likewise.
22036         * ipa-profile.c: Likewise.
22037         * ipa-prop.c: Likewise.
22038         * ipa-pure-const.c: Likewise.
22039         * ipa-ref.c: Likewise.
22040         * ipa-reference.c: Likewise.
22041         * ipa-split.c: Likewise.
22042         * ipa-utils.c: Likewise.
22043         * ipa-visibility.c: Likewise.
22044         * ipa.c: Likewise.
22045         * langhooks.c: Likewise.
22046         * lto-cgraph.c: Likewise.
22047         * lto-compress.c: Likewise.
22048         * lto-opts.c: Likewise.
22049         * lto-section-in.c: Likewise.
22050         * lto-section-out.c: Likewise.
22051         * lto-streamer-in.c: Likewise.
22052         * lto-streamer-out.c: Likewise.
22053         * lto-streamer.c: Likewise.
22054         * omp-low.c: Likewise.
22055         * opts-global.c: Likewise.
22056         * passes.c: Likewise.
22057         * predict.c: Likewise.
22058         * print-tree.c: Likewise.
22059         * profile.c: Likewise.
22060         * ree.c: Likewise.
22061         * sanopt.c: Likewise.
22062         * stor-layout.c: Likewise.
22063         * symtab.c: Likewise.
22064         * toplev.c: Likewise.
22065         * trans-mem.c: Likewise.
22066         * tree-cfg.c: Likewise.
22067         * tree-chkp.c: Likewise.
22068         * tree-eh.c: Likewise.
22069         * tree-emutls.c: Likewise.
22070         * tree-inline.c: Likewise.
22071         * tree-nested.c: Likewise.
22072         * tree-parloops.c: Likewise.
22073         * tree-pretty-print.c: Likewise.
22074         * tree-profile.c: Likewise.
22075         * tree-sra.c: Likewise.
22076         * tree-ssa-alias.c: Likewise.
22077         * tree-ssa-live.c: Likewise.
22078         * tree-ssa-loop-ivcanon.c: Likewise.
22079         * tree-ssa-loop-ivopts.c: Likewise.
22080         * tree-ssa-pre.c: Likewise.
22081         * tree-ssa-sccvn.c: Likewise.
22082         * tree-ssa-strlen.c: Likewise.
22083         * tree-ssa-structalias.c: Likewise.
22084         * tree-streamer-in.c: Likewise.
22085         * tree-streamer-out.c: Likewise.
22086         * tree-streamer.c: Likewise.
22087         * tree-switch-conversion.c: Likewise.
22088         * tree-tailcall.c: Likewise.
22089         * tree-vect-data-refs.c: Likewise.
22090         * tree-vect-stmts.c: Likewise.
22091         * tree-vectorizer.c: Likewise.
22092         * tree.c: Likewise.
22093         * tsan.c: Likewise.
22094         * ubsan.c: Likewise.
22095         * value-prof.c: Likewise.
22096         * varasm.c: Likewise.
22097         * varpool.c: Likewise.
22098         * config/arm/arm.c: Likewise.
22099         * config/bfin/bfin.c: Likewise.
22100         * config/c6x/c6x.c: Likewise.
22101         * config/cris/cris.c: Likewise.
22102         * config/darwin-c.c: Likewise.
22103         * config/darwin.c: Likewise.
22104         * config/i386/i386.c: Likewise.
22105         * config/i386/winnt.c: Likewise.
22106         * config/microblaze/microblaze.c: Likewise.
22107         * config/mips/mips.c: Likewise.
22108         * config/rs6000/rs6000.c: Likewise.
22109         * config/rx/rx.c: Likewise.
22110         * config/s390/s390.c: Likewise.
22111         * config/tilegx/mul-tables.c: Likewise.
22113 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22115         * config/aarch64/aarch64.c, config/alpha/alpha.c,
22116         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
22117         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
22118         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
22119         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22120         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22121         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22122         config/microblaze/microblaze.c, config/mips/mips.c,
22123         config/mmix/mmix.c, config/mn10300/mn10300.c,
22124         config/moxie/moxie.c, config/msp430/msp430.c,
22125         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22126         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22127         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22128         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22129         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22130         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22131         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
22132         target-def.h include.
22133         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
22135 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22137         * Makefile.in (TARGET_DEF): Add target-insns.def.
22138         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
22139         (build/gentarget-def.o): New rule.
22140         (genprogrtl): Add target-def.
22141         * target-insns.def, gentarget-def.c: New files.
22142         * target.def: Add targetm.have_* and targetm.gen_* hooks,
22143         based on the contents of target-insns.def.
22144         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
22145         (HAVE_return, gen_return): Delete.
22146         * target-def.h: Include insn-target-def.h.
22147         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
22148         instead of direct calls.  Rely on them to do the appropriate assertions.
22149         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
22150         (convert_jumps_to_returns): Use targetm interface instead of
22151         direct calls.
22152         (thread_prologue_and_epilogue_insns): Likewise.
22153         * reorg.c (find_end_label, dbr_schedule): Likewise.
22154         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
22155         * shrink-wrap.c (convert_to_simple_return): Likewise.
22156         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
22158 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22160         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
22161         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22162         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
22163         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
22164         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22165         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22166         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22167         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
22168         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
22169         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22170         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22171         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22172         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22173         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22174         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22175         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
22176         includes to end.
22178 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22180         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
22181         (unbounded_int_hashmap_traits::key_type): Likewise.
22182         * hash-map.h (hash_map): Get the key type from the traits.
22183         * hash-traits.h (default_hash_traits): By default, inherit from the
22184         template parameter.
22185         * alias.c (alias_set_traits): Delete.
22186         (alias_set_entry_d::children): Use alias_set_hash as the first
22187         template parameter.
22188         (record_alias_subset): Update accordingly.
22189         * except.c (tree_hash_traits): Delete.
22190         (type_to_runtime_map): Use tree_hash as the first template parameter.
22191         (init_eh): Update accordingly.
22192         * genmatch.c (capture_id_map_hasher): Delete.
22193         (cid_map_t): Use nofree_string_hash as first template parameter.
22194         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
22195         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
22196         Use symbol_compare_hash as the first template parameter in
22197         subdivide_hash_map.
22198         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
22199         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
22200         template parameter.
22201         * passes.c (pass_registry_hasher): Delete.
22202         (name_to_pass_map): Use nofree_string_hash as the first template
22203         parameter.
22204         (register_pass_name): Update accordingly.
22205         * sanopt.c (sanopt_tree_map_traits): Delete.
22206         (sanopt_tree_triplet_map_traits): Delete.
22207         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
22208         template parameter.
22209         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
22210         the first template parameter.
22211         * sese.c (rename_map_hasher): Delete.
22212         (rename_map_type): Use tree_ssa_name_hash as the first template
22213         parameter.
22214         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
22215         (function_summary::m_map): Use map_hash as the first template
22216         parameter.
22217         (function_summary::release): Update accordingly.
22218         * tree-if-conv.c (phi_args_hash_traits): Delete.
22219         (predicate_scalar_phi): Use tree_operand_hash as the first template
22220         parameter to phi_arg_map.
22221         * tree-inline.h (dependence_hasher): Delete.
22222         (copy_body_data::dependence_map): Use dependence_hash as the first
22223         template parameter.
22224         * tree-inline.c (remap_dependence_clique): Update accordingly.
22225         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
22226         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
22227         parameter.
22228         (addr_stridxptr): Update accordingly.
22229         * value-prof.c (profile_id_traits): Delete.
22230         (cgraph_node_map): Use profile_id_hash as the first template
22231         parameter.
22232         (init_node_map): Update accordingly.
22233         * config/alpha/alpha.c (string_traits): Delete.
22234         (machine_function::links): Use nofree_string_hash as the first
22235         template parameter.
22236         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
22237         * config/m32c/m32c.c (pragma_traits): Delete.
22238         (pragma_htab): Use nofree_string_hash as the first template parameter.
22239         (m32c_note_pragma_address): Update accordingly.
22240         * config/mep/mep.c (pragma_traits): Delete.
22241         (pragma_htab): Use nofree_string_hash as the first template parameter.
22242         (mep_note_pragma_flag): Update accordingly.
22243         * config/mips/mips.c (mips16_flip_traits): Delete.
22244         (mflip_mips16_htab): Use nofree_string_hash as the first template
22245         parameter.
22246         (mflip_mips16_use_mips16_p): Update accordingly.
22247         (local_alias_traits): Delete.
22248         (mips16_local_aliases): Use nofree_string_hash as the first template
22249         parameter.
22250         (mips16_local_alias): Update accordingly.
22252 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22254         * hash-map-traits.h (default_hashmap_traits): Delete.
22256 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22258         * hash-map-traits.h (unbounded_hashmap_traits): New class.
22259         (unbounded_int_hashmap_traits): Likewise.
22260         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
22262 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22264         * ipa-icf.h (symbol_compare_hash): New class.
22265         (symbol_compare_hashmap_traits): Use it.
22266         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
22267         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
22268         (mem_alloc_description::reverse_mem_map_t): Remove redundant
22269         default_hashmap_traits.
22270         * sanopt.c (sanopt_tree_triplet_hash): New class.
22271         (sanopt_tree_triplet_map_traits): Use it.
22273 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22275         * gengtype-parse.c (require_template_declaration): Allow '+' in
22276         template parameters.  Consolidate cases.
22277         * hash-traits.h (int_hash): New class.
22278         * alias.c (alias_set_hash): New structure.
22279         (alias_set_traits): Use it.
22280         * symbol-summary.h (function_summary::map_hash): New class.
22281         (function_summary::summary_hashmap_traits): Use it.
22282         * tree-inline.h (dependence_hash): New class.
22283         (dependence_hasher): Use it.
22284         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
22285         * value-prof.c (profile_id_hash): New class.
22286         (profile_id_traits): Use it.
22288 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22290         * config/mips/mips.c (mips16_flip_traits): Use it.
22291         (local_alias_traits, mips16_local_aliases): Convert from a map of
22292         rtxes to a map of symbol names.
22293         (mips16_local_alias): Update accordingly.
22295 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22297         * hash-traits.h (string_hash, nofree_string_hash): New classes.
22298         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
22299         * passes.c (pass_registry_hasher): Likewise.
22300         * config/alpha/alpha.c (string_traits): Likewise.
22301         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
22302         * config/m32c/m32c.c (pragma_traits): Likewise.
22303         * config/mep/mep.c (pragma_traits): Likewise.
22305 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22307         * tree-hash-traits.h (tree_hash): New class.
22308         * except.c: Include tree-hash-traits.h.
22309         (tree_hash_traits): Use tree_hash.
22311 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22313         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
22314         * sese.c: Include tree-hash-traits.h.
22315         (rename_map_hasher): Use tree_ssa_name_hasher.
22317 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22319         * tree-hash-traits.h (tree_decl_hash): New class.
22320         * tree-ssa-strlen.c: Include tree-hash-traits.h.
22321         (stridxlist_hash_traits): Use tree_decl_hash.
22323 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22325         * tree-hash-traits.h: New file.
22326         (tree_operand_hash): New class.
22327         * sanopt.c: Include tree-hash-traits.h.
22328         (sanopt_tree_map_traits): Use tree_operand_hash.
22329         * tree-if-conv.c: Include tree-hash-traits.h.
22330         (phi_args_hash_traits): Use tree_operand_hash.
22331         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
22332         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
22334 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22336         * hash-map-traits.h: Include hash-traits.h.
22337         (simple_hashmap_traits): New class.
22338         * mem-stats.h (hash_map): Change the default traits to
22339         simple_hashmap_traits<default_hash_traits<Key> >.
22341 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22343         * hash-table.h: Update comments.
22345 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22347         * hash-traits.h (default_hash_traits): New structure.
22348         * hash-set.h (default_hashset_traits): Delete.
22349         (hash_set): Use default_hash_traits<Key> instead of
22350         default_hashset_traits.  Delete hash_entry type and use Key directly.
22351         * ipa-devirt.c (pair_traits): Delete.
22352         (default_hash_traits <type_pair>): Override.
22353         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
22354         (odr_types_equivalent_p, add_type_duplicate): Likewise.
22356 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22358         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
22360 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22362         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
22363         (has_is_empty, is_empty_helper): Delete.
22364         (has_mark_deleted, mark_deleted_helper): Delete.
22365         (has_mark_empty, mark_empty_helper): Delete.
22366         (hash_table::is_deleted): Call the Descriptor unconditionally.
22367         (hash_table::is_empty): Likewise.
22368         (hash_table::mark_deleted): Likewise.
22369         (hash_table::mark_empty): Likewise.
22371 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22373         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
22374         redundant typedefs and members.
22375         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
22376         redundant typedefs.
22377         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
22378         * ipa-devirt.c (odr_name_hasher): Likewise.
22379         (polymorphic_call_target_hasher): Likewise.
22380         * ira-costs.c (cost_classes_hasher): Likewise.
22381         * statistics.c (stats_counter_hasher): Likewise.
22382         * trans-mem.c (log_entry_hasher): Likewise.
22383         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
22384         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
22385         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
22386         * var-tracking.c (variable_hasher): Likewise.
22387         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
22388         Remove redundant typedefs and members.
22390 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22392         * hash-traits.h (ggc_cache_hasher): Rename to...
22393         (ggc_cache_remove): ...this and remove typedefs.
22394         (ggc_cache_ptr_hash): New class.
22395         * hash-table.h: Update commentary.
22396         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
22397         rather than ggc_cache_hasher.
22398         (const_wide_int_hasher, reg_attr_hasher): Likewise.
22399         (const_double_hasher, const_fixed_hasher): Likewise.
22400         * function.c (insn_cache_hasher): Likewise.
22401         * trans-mem.c (tm_wrapper_hasher): Likewise.
22402         * tree.h (tree_decl_map_cache_hasher): Likewise.
22403         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
22404         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
22405         * ubsan.c (tree_type_map_cache_hasher): Likewise.
22406         * varasm.c (tm_clone_hasher): Likewise.
22407         * config/i386/i386.c (dllimport_hasher): Likewise.
22408         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
22409         (tree_hasher): Likewise.
22411 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22413         * hash-traits.h (ggc_hasher): Rename to...
22414         (ggc_remover): ...this and remove typedefs.
22415         (ggc_cache_hasher): Update accordingly.  Add typedefs.
22416         (ggc_ptr_hash): New class.
22417         * hash-table.h: Update comment.
22418         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
22419         ggc_hasher.
22420         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
22421         (tree_descriptor_hasher): Likewise.
22422         * cgraph.c (function_version_hasher): Likewise.
22423         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
22424         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
22425         (dw_loc_list_hasher, addr_hasher): Likewise.
22426         * function.h (used_type_hasher): Likewise.
22427         * function.c (temp_address_hasher): Likewise.
22428         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
22429         * libfuncs.h (libfunc_hasher): Likewise.
22430         * lto-streamer.h (decl_state_hasher): Likewise.
22431         * optabs.c (libfunc_decl_hasher): Likewise.
22432         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
22433         * varasm.c (section_hasher, object_block_hasher): Likewise.
22434         (const_rtx_desc_hasher): Likewise.
22435         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
22436         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
22438 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22440         * hash-traits.h (free_ptr_hash): New class.
22441         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
22442         rather than typed_free_remove.  Remove redudant typedefs.
22443         (external_ref_hasher): Likewise.
22444         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
22445         (ehspec_hasher): Likewise.
22446         * ggc-common.c (saving_hasher): Likewise.
22447         * gimplify.c (gimplify_hasher): Likewise.
22448         * haifa-sched.c (delay_i2_hasher): Likewise.
22449         * loop-invariant.c (invariant_expr_hasher): Likewise.
22450         * loop-iv.c (biv_entry_hasher): Likewise.
22451         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
22452         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
22453         * tree-cfg.c (locus_discrim_hasher): Likewise.
22454         * tree-eh.c (finally_tree_hasher): Likewise.
22455         * tree-into-ssa.c (var_info_hasher): Likewise.
22456         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
22457         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
22458         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
22459         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
22460         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
22461         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
22462         (shared_bitmap_hasher): Likewise.
22463         * tree-ssa-threadupdate.c (redirection_data): Likewise.
22464         * tree-vectorizer.h (peel_info_hasher): Likewise.
22465         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
22466         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
22468 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22470         * hash-table.h: Update comments.
22471         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
22472         (nofree_ptr_hash): New class.
22473         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
22474         than typed_noop_remove.  Remove redudant typedefs.
22475         * attribs.c (attribute_hasher): Likewise.
22476         * cfg.c (bb_copy_hasher): Likewise.
22477         * cselib.c (cselib_hasher): Likewise.
22478         * dse.c (invariant_group_base_hasher): Likewise.
22479         * dwarf2cfi.c (trace_info_hasher): Likewise.
22480         * dwarf2out.c (macinfo_entry_hasher): Likewise.
22481         (comdat_type_hasher, loc_list_hasher): Likewise.
22482         * gcse.c (pre_ldst_expr_hasher): Likewise.
22483         * genmatch.c (id_base): Likewise.
22484         * genrecog.c (test_pattern_hasher): Likewise.
22485         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
22486         * haifa-sched.c (delay_i1_hasher): Likewise.
22487         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
22488         * ipa-icf.h (congruence_class_group_hash): Likewise.
22489         * ipa-profile.c (histogram_hash): Likewise.
22490         * ira-color.c (allocno_hard_regs_hasher): Likewise.
22491         * lto-streamer.h (string_slot_hasher): Likewise.
22492         * lto-streamer.c (tree_entry_hasher): Likewise.
22493         * plugin.c (event_hasher): Likewise.
22494         * postreload-gcse.c (expr_hasher): Likewise.
22495         * store-motion.c (st_expr_hasher): Likewise.
22496         * tree-sra.c (uid_decl_hasher): Likewise.
22497         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
22498         (ssa_name_var_hash): Likewise.
22499         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
22500         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
22501         * tree-ssa-pre.c (pre_expr_d): Likewise.
22502         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
22503         * vtable-verify.h (registration_hasher): Likewise.
22504         * vtable-verify.c (vtbl_map_hasher): Likewise.
22505         * config/arm/arm.c (libcall_hasher): Likewise.
22506         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
22507         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
22508         * config/sol2.c (comdat_entry_hasher): Likewise.
22509         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
22510         (print_fold_checksum, fold_checksum_tree): Likewise.
22511         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
22512         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
22513         (fold_build_call_array_loc): Likewise.
22514         * tree-ssa-ccp.c (gimple_htab): Likewise.
22515         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
22516         rather than pointer_type.
22518 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22520         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
22521         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
22523 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22525         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
22526         (ggc_hasher::ggc_mx): Likewise.
22527         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
22528         that duplicate ggc_hasher ones.
22530 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22532         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
22533         (gt_cleare_cache): Check here for deleted and empty entries.
22534         Replace handle_cache_entry with a call to keep_cache_entry.
22535         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
22536         (ggc_cache_hasher::keep_cache_entry): New function.
22537         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
22538         (tm_wrapper_hasher::keep_cache_entry): New function.
22539         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
22540         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
22541         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
22542         (type_cache_hasher::keep_cache_entry): New function.
22543         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
22544         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
22545         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
22546         (tree_type_map_cache_hasher::keep_cache_entry): New function.
22547         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
22548         (tm_clone_hasher::keep_cache_entry): New function.
22549         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
22550         (dllimport_hasher::keep_cache_entry): New function.
22552 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22554         * hash-table.h: Include hash-traits.h.
22555         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
22556         (ggc_cache_hasher): Move to...
22557         * hash-traits.h: ...this new file.
22559 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22561         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
22562         struct cl_optimization.
22563         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
22564         * tree.c (make_node_stat): Allocate cl_optimization struct.
22565         (copy_node_stat): Allocate and copy cl_optimization struct.
22567 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22569         * function.h (struct incoming_args): Move struct.
22570         (pass_by_reference, reference_callee_copied): Remove prototypes.
22571         * emit-rtl.h (struct incoming_args): Relocate struct here.
22572         * calls.h (pass_by_reference, reference_callee_copied): Relocate
22573         prototypes here.
22574         * function.c (pass_by_reference, reference_callee_copied): Move.
22575         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
22576         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
22577         * ipa-chkp.c: Include calls.h.
22579 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
22581         * alias.h (alias_set_type): Move typedef.
22582         * coretypes.h (alias_set_type): Relocate typedef here.
22583         * rtl.h: Don't include alias.h.
22585 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22587         * cgraph.h (cgraph_rtl_info): Move to rtl.h
22588         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
22589         and instance.
22590         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
22591         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
22592         doesn't exist.
22593         * calls.c: Include hard-reg-set.h before rtl.h.
22594         * ira.c: Likewise.
22596 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
22597             Vladimir Makarov  <vmakarov@redhat.com>
22599         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
22600         Add assert.
22602 2015-06-25  Richard Biener  <rguenther@suse.de>
22604         * fold-const.c (fold_binary_loc): Move simplification of
22605         (X <<>> C1) & C2 ...
22606         * match.pd: ... here.
22608 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
22610         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
22612 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22614         * match.pd: Add patterns for vec_conds between 1 and 0.
22616 2015-06-25  Richard Biener  <rguenther@suse.de>
22618         * tree-vect-stmts.c (vectorizable_conversion): Do not set
22619         STMT_VINFO_VEC_STMT for SLP.
22620         (vectorizable_store): Likewise.
22621         (vectorizable_load): Likewise.
22622         (vect_transform_stmt): Catch SLP vectorization clobbering
22623         STMT_VINFO_VEC_STMT.
22625 2015-06-25  Richard Biener  <rguenther@suse.de>
22627         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
22628         dumping.
22629         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
22630         cleanup resulting dead code and parameters.
22631         (vect_transform_slp_perm_load): Adjust.
22633 2015-06-25  Nick Clifton  <nickc@redhat.com>
22635         * config/bfin/bfin.c (bfin_expand_prologue): Set
22636         current_function_static_stack_size if flag_stack_usage_info is set.
22637         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
22638         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
22639         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
22640         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
22642 2015-06-25  Tom de Vries  <tom@codesourcery.com>
22644         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
22645         comment that the generated IV is unsigned.
22647 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22649         PR target/29693
22650         * config/arm/arm.c (arm_dbx_register_number): Return
22651         DWARF_FRAME_REGISTERS by default.
22653 2015-06-25  Tom de Vries  <tom@codesourcery.com>
22655         * dominance.c (calculate_dominance_info): Fix verify_dominators call
22656         argument.  Call verify_dominator when reusing dominator info.
22658 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
22660         PR target/66563
22661         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
22662         an additional element of the unspec vector.  Modify indices
22663         of operands.
22664         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
22665         * config/sh/sh.c (prepare_move_operands): Pass incremented
22666         const_int to gen_GOTaddr2picreg.
22667         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
22669 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
22671         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
22672         Condition on TARGET_FLOAT.
22674 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
22676         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
22677         and (no)crypto.
22679 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
22681         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
22683         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
22684         aarch64_err_no_fpadvsimd.
22686         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
22687         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
22688         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
22689         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
22690         Turn error into assert, test TARGET_FLOAT.
22691         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
22692         TARGET_FLOAT.
22694 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
22696         PR debug/66482
22697         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
22699 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
22701         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
22703 2015-06-24  Renlin Li <renlin.li@arm.com>
22705         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
22706         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
22708 2015-06-24  Richard Biener  <rguenther@suse.de>
22710         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
22711         (main): Likewise.
22712         (lower_opt_convert): Support lowering of conditional view_convert.
22713         (parser::parse_operation): Likewise.
22714         (parser::parse_for): Likewise.
22716 2015-06-24  Renlin Li  <renlin.li@arm.com>
22718         * varasm.c (emit_local): Use unsigned int for align variable.
22720 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22722         PR target/63408
22723         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
22724         for negative numbers.
22726 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22728         PR rtl-optimization/66306
22729         * reload.c (find_reloads): Swap the match_dup info for
22730         commutative operands.
22732 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22734         * config/s390/vx-builtins.md
22735         ("vec_scatter_element<mode>_<non_vec_int>")
22736         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
22737         attribute with bhfgq.
22739 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22741         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
22743 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22745         * config/s390/s390-builtin-types.def: Add flag to indicate the
22746         options under which the function type is needed.
22747         * config/s390/s390-builtins.def: Add flag to indicate the options
22748         under which the builtin is enabled.
22749         * config/s390/s390-builtins.h: Add flags parameter to macro
22750         definitions.
22751         (bflags_for_builtin): New function.
22752         (flags_for_builtin): Renamed to ...
22753         (opflags_for_builtin): ... this.
22754         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
22755         flags_for_builtin to bflags_for_builtin and
22756         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
22757         * config/s390/s390.c: Add initialization of bflags_builtin and
22758         opflags_builtin arrays.
22759         Remove code for flags_builtin.
22760         (s390_init_builtins): Only create builtin function types if one of
22761         their flags is active.
22762         Only create builtins if all of their flags are active.
22763         (s390_expand_builtin): Rename flags_for_builtin to
22764         opflags_for_builtin.
22766 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22768         * config/s390/vecintrin.h: Remove internal builtins.
22770 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22772         * config/s390/s390.c (s390_secondary_reload): Fix check for
22773         GENERAL_REGS register class.
22775 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22777         * config/s390/s390.c (s390_support_vector_misalignment): Call
22778         default implementation for !TARGET_VX.
22780 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22782         * config/s390/s390.c (s390_legitimate_constant_p): Add
22783         TARGET_VX check.
22785 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22787         * config/s390/s390.c (s390_vector_abi): New variable definition.
22788         (s390_check_type_for_vector_abi): New function.
22789         (TARGET_ASM_FILE_END): New macro definition.
22790         (s390_asm_file_end): New function.
22791         (s390_function_arg): Call s390_check_type_for_vector_abi.
22792         (s390_gimplify_va_arg): Likewise.
22793         * configure: Regenerate.
22794         * configure.ac: Check for .gnu_attribute Binutils feature.
22796 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
22798         PR target/65803
22799         * config/bfin/bfin.c (hwloop_optimize): Initialize
22800         JUMP_LABEL for newly created jump.
22802 2015-06-23  Tristan Gingold  <gingold@adacore.com>
22804         * collect-utils.c (collect_wait): Unlink the response file here
22805         instead of...
22806         (do_wait): ...here.
22807         (utils_cleanup): ...and here.
22809 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
22811         * df-scan.c: Don't include target-def.h.
22812         * targhooks.c: Likewise.
22813         * config/arm/arm-c.c: Likewise.
22814         * config/i386/i386-c.c: Likewise.
22815         * config/nds32/nds32-cost.c: Likewise.
22816         * config/nds32/nds32-fp-as-gp.c: Likewise.
22817         * config/nds32/nds32-intrinsic.c: Likewise.
22818         * config/nds32/nds32-isr.c: Likewise.
22819         * config/nds32/nds32-md-auxiliary.c: Likewise.
22820         * config/nds32/nds32-memory-manipulation.c: Likewise.
22821         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22822         * config/nds32/nds32-predicates.c: Likewise.
22824 2015-06-23  Richard Biener  <rguenther@suse.de>
22826         PR tree-optimization/66636
22827         * tree-vect-stmts.c (vectorizable_store): Properly compute the
22828         def type for further defs for strided stores.
22830 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
22832         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
22833         conditional selects.
22834         (setcc_int<mode>, setcc_float<mode>): Reformat.
22836 2015-06-23  Marek Polacek  <polacek@redhat.com>
22838         * match.pd ((x + y) - (x | y) -> x & y,
22839         (x + y) - (x & y) -> x | y): New patterns.
22841 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
22843         PR 65711
22844         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
22845         '-dynamic-linker' within %{!shared: ...}.
22847 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
22849         PR target/66560
22850         * config/i386/predicates.md (addsub_vm_operator): New predicate.
22851         (addsub_vs_operator): Ditto.
22852         (addsub_vs_parallel): Ditto.
22853         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
22854         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
22855         Put minus RTX before plus and adjust vec_merge selector.
22856         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
22857         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
22858         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
22859         (addsub vec_merge splitters): New combiner splitters.
22860         (addsub vec_select/vec_concat splitters): Ditto.
22862 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
22864         PR tree-optimization/66449
22865         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
22866         POINTER_PLUS_EXPR for pointers.
22868 2015-06-23  Alan Modra  <amodra@gmail.com>
22870         * rtlanal.c (commutative_operand_precedence): Correct comments.
22871         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
22872         declaration.  Return an int.  Distinguish REG,REG return from
22873         others.
22874         (struct simplify_plus_minus_op_data): Make local to function.
22875         (simplify_plus_minus): Don't set canonicalized if merely sorting
22876         registers.  Avoid packing ops if nothing changes.  White space fixes.
22878 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
22880         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
22881         -fdump-ada-spec is passed but not if -fsyntax-only is.
22883 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
22885         PR bootstrap/63740
22886         * lra-lives.c (process_bb_lives): Check insn copying the same
22887         reload pseudo and don't create a copy for it.
22889 2015-06-22  Tom de Vries  <tom@codesourcery.com>
22891         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
22892         for cond_stmt.
22894 2015-06-22  Tom de Vries  <tom@codesourcery.com>
22896         * builtins.def (DEF_GOMP_BUILTIN): Test
22897         'flag_tree_parallelize_loops > 1' instead of
22898         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
22900 2015-06-22  Tom de Vries  <tom@codesourcery.com>
22902         * dominance.c (calculate_dominance_info): Verify dominators if
22903         early-out.
22905 2015-06-22  Marek Polacek  <polacek@redhat.com>
22907         * match.pd ((x ^ y) ^ (x | y) -> x & y,
22908         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
22909         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
22910         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
22912 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
22914         PR target/65871
22915         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
22916         cost of embedded comparison.
22918 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22920         PR target/65914
22921         * config/rs6000/predicates.md (altivec_register_operand): Permit
22922         virtual stack registers.
22923         (vsx_register_operand): Likewise.
22924         (vfloat_operand): Likewise.
22925         (vint_operand): Likewise.
22926         (vlogical_operand): Likewise.
22928 2015-06-22  Richard Biener  <rguenther@suse.de>
22930         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
22931         and single_scalar_iteration_cost members.
22932         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
22933         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
22934         (vect_get_single_scalar_iteration_cost): Remove.
22935         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
22936         Use LOOP_VINFO_SCALAR_ITERATION_COST.
22937         * tree-vect-loop.c (destroy_loop_vec_info): Free
22938         scalar_cost_vec.
22939         (vect_get_single_scalar_iteration_cost): Compute result into
22940         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
22941         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
22942         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
22943         (vect_estimate_min_profitable_iters): Use them.
22945 2015-06-22  Christian Bruel  <christian.bruel@st.com>
22947         PR target/52144
22948         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
22949         (TARGET_INSERT_ATTRIBUTES): Define.
22950         (thumb_flipper): New var.
22951         * config/arm/arm.opt (-mflip-thumb): New switch.
22953 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
22954             Martin Liska  <mliska@suse.cz>
22956         PR ipa/65908
22957         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
22958         construction of arg_types.
22959         (sem_function::sem_function): Likewise.
22960         (sem_function::~sem_function): Remove destruction of arg_types.
22961         (sem_function::compatible_parm_types_p): New function.
22962         (sem_function::equals_wpa): Reorg matching of return values
22963         and parameter types.
22964         (sem_function::equals_private): Reorg mathcing of argument types.
22965         (sem_function::parse_tree_args): Remove.
22966         * ipa-icf.h (init_wpa): Do not call it.
22967         (parse_tree_args): Remove.
22968         (compatible_parm_types_p): Declare.
22969         (result_type): Remove.
22970         (arg_types): Remove.
22972 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
22974         PR ipa/66351
22975         * ipa-polymorphic-call.c
22976         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
22977         initializing alias oracle; fix formating; set base_alias_set if it
22978         is known.
22980 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
22982         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
22983         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
22984         (find_inc): Likewise.
22985         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
22986         swapping.
22987         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
22988         * df-scan.c (df_swap_refs): Remove.
22989         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
22990         * dominance.c (link_roots): Use std::swap instead of manually swapping.
22991         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
22992         * fold-const.c (fold_relational_const): Likewise.
22993         * genattrtab.c (simplify_test_exp): Likewise.
22994         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
22995         gimple_simplify): Likewise.
22996         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
22997         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
22998         * ipa-devirt.c (add_type_duplicate): Likewise.
22999         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
23000         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
23001         * lra.c (lra_create_copy): Likewise.
23002         * lto-streamer-out.c (DFS::DFS): Likewise.
23003         * modulo-sched.c (get_sched_window): Likewise.
23004         * omega.c (omega_pretty_print_problem): Likewise.
23005         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
23006         * reload1.c (reloads_unique_chain_p): Likewise.
23007         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
23008         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
23009         use std::swap.
23010         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
23011         manually swapping.
23012         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
23013         predicate_mem_writes): Likewise.
23014         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
23015         * tree-predcom.c (combine_chains): Likewise.
23016         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
23017         refs_may_alias_p_1): Likewise.
23018         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
23019         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23020         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
23021         number_of_iterations_cond): Likewise.
23022         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23023         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
23024         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
23025         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
23026         * tree-vrp.c (extract_range_from_binary_expr_1,
23027         extract_range_from_unary_expr_1): Likewise.
23029 2015-06-20  Marek Polacek  <polacek@redhat.com>
23031         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
23033 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
23035         PR target/66591
23036         * config/sh/sh.c (prepare_move_operands): Replace subreg
23037         index term with R0 for base and index addressing.
23039 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
23041         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
23042         op1 is an fp zero.
23043         (movsf_aarch64): Change condition from register_operand to
23044         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
23045         load1.  Change type for alternative 7 to store1.
23046         (movdf_aarch64): Likewise.
23048 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
23050         * config/vax/vax.md: Adjust sign/zero extend patterns to
23051         handle SUBREGs in operands[1].
23053 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23055         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
23056         of manually swapping.
23057         (expand_vec_perm_interleave2): Likewise.
23059 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
23061         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
23062         reuse bounds created for abnormal ssa names.
23064 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
23066         * config/nvptx/nvptx.md (allocate_stack): Rename to...
23067         (allocate_stack_<mode>): ... this, and add :P on both
23068         match_operand and unspec.
23069         (allocate_stack): New expander.
23071 2015-06-19  Christian Bruel  <christian.bruel@st.com>
23073         PR target/66541
23074         PR target/52144
23075         * config/arm/arm.c (arm_set_current_function): Handle
23076         explicit default options.
23078 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
23080         * config/i386/i386.md (*movsicc_noc_zext): New insn.
23081         (zero-extended cmove with mem peephole2): New pattern.
23082         (cmove with mem peephole2): Merge patterns.
23084 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
23086         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
23088 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
23090         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
23091         * config/mips/mips.md (*madd4<mode>): Ditto.
23092         (*nmadd3<mode>) Ditto.
23093         (*nmadd4<mode>_fastmath): Ditto.
23094         (*nmadd3<mode>_fastmath): Ditto.
23095         (*nmsub4<mode>): Ditto.
23096         (*nmsub3<mode>): Ditto.
23097         (*nmsub4<mode>_fastmath): Ditto.
23098         (*nmsub3<mode>_fastmath): Ditto.
23100 2015-06-18  Michael Matz  <matz@suse.de>
23102         PR middle-end/66253
23103         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
23104         grouped strided stores.
23105         (vectorizable_load): Don't use the DR from first_stmt in
23106         the non-SLP grouped strided case.
23108 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23110         PR target/66569
23111         * function.c (assign_bounds): Add arguments assign_regs,
23112         assign_special, assign_bt.
23113         (assign_parms): For vararg functions handle bounds in BT
23114         and special slots after incoming vararg bounds.
23116 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23118         PR middle-end/66568
23119         * cfgexpand.c (expand_return): Handle missing bounds.
23120         (expand_gimple_stmt_1): Likewise.
23121         * tree-chkp.c (chkp_expand_zero_bounds): New.
23122         * tree-chkp.h (chkp_expand_zero_bounds): New.
23124 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23126         PR middle-end/66567
23127         * ipa-chkp.c (chkp_maybe_create_clone): Require
23128         functions to be instrumentable.
23129         * tree-chkp.c (chkp_replace_function_pointer): Use
23130         chkp_instrumentable_p instead of attribute check.
23132 2015-06-18  Richard Biener  <rguenther@suse.de>
23134         PR tree-optimization/66510
23135         * tree-vect-stmts.c (vectorizable_load): Properly compute the
23136         number of vector loads for SLP permuted loads.
23137         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
23138         check the stride for loop vectorization.
23139         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
23140         vectorization factor.
23141         (vect_analyze_group_access): If the group size is not a power
23142         of two require a epilogue loop.
23143         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
23144         compute and optimizing and alias test pruning after final
23145         vectorization factor computation.
23146         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
23147         vector alignment.
23148         (vect_transform_slp_perm_load): Properly compute the original
23149         number of vector load stmts.
23151 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
23153         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
23154         "unlikely character , in @var" warning.
23156 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
23158         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
23159         (ix86_function_arg_advance): Ditto.
23160         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
23162 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
23164         * function.h (struct rtl_data): Remove struct and accessor macros.
23165         * emit-rtl.h (struct rtl_data): Relocate to here.
23166         * Makefile.in (GTFILES): Add emit-rtl.h.
23167         * df-core.c: Include emit-rtl.h.
23168         * genattrtab.c: Likewise.
23169         * genconditions.c: Likewise.
23170         * genpreds.c: Likewise.
23171         * genrecog.c: Likewise.
23172         * regcprop.c: Likewise.
23173         * resource.c: Likewise.
23174         * sched-rgn.c: Likewise.
23175         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23176         * config/i386/winnt.c: Likewise.
23178 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
23180         PR middle-end/66429
23181         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
23182         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
23183         and has_force_vectorize_loops flags from cfun into
23184         child_cfun.
23185         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
23186         if simduid is non-NULL.
23187         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
23188         * passes.def (pass_simduid_cleanup): Add new pass after loop
23189         passes.
23190         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
23191         indirection from htab argument's type.
23192         (shrink_simd_arrays): New function.
23193         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
23194         Don't call adjust_simduid_builtins if there are no loops.
23195         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
23196         (pass_simduid_cleanup::execute): New method.
23197         (make_pass_simduid_cleanup): New function.
23199 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
23201         * tree-core.h (tree_target_option): Make opts field a pointer to a
23202         cl_target_option instead of an instance of the struct.
23203         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
23204         the structure.
23205         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
23206         TARGET_OPTION_NODE.
23207         (copy_node_stat): Allocate and copy struct cl_target_option.
23209 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
23211         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
23212         Remove conditional exposure of prototypes.
23213         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
23214         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
23215         definitions in tree.h with functions.
23216         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
23217         anon_aggrname_p.
23218         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
23220 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
23222         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
23223         (*cmp<mode>_signed): ... this.
23224         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
23225         (*cmp<mode>_unsigned): ... this.  Remove %b.
23227 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
23229         * coretypes.h: Include input.h and as-a.h.
23230         * rtl.h: Include input.h and as-a.h for generator files.
23231         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
23232         * vec.c: Don't include diagnostic-core.h.
23233         * alias.c: Do not include input.h, line-map.h or is-a.h.
23234         * asan.c: Likewise.
23235         * attribs.c: Likewise.
23236         * auto-inc-dec.c: Likewise.
23237         * auto-profile.c: Likewise.
23238         * bb-reorder.c: Likewise.
23239         * bt-load.c: Likewise.
23240         * builtins.c: Likewise.
23241         * caller-save.c: Likewise.
23242         * calls.c: Likewise.
23243         * ccmp.c: Likewise.
23244         * cfg.c: Likewise.
23245         * cfganal.c: Likewise.
23246         * cfgbuild.c: Likewise.
23247         * cfgcleanup.c: Likewise.
23248         * cfgexpand.c: Likewise.
23249         * cfghooks.c: Likewise.
23250         * cfgloop.c: Likewise.
23251         * cfgloop.h: Likewise.
23252         * cfgloopanal.c: Likewise.
23253         * cfgloopmanip.c: Likewise.
23254         * cfgrtl.c: Likewise.
23255         * cgraph.c: Likewise.
23256         * cgraphbuild.c: Likewise.
23257         * cgraphclones.c: Likewise.
23258         * cgraphunit.c: Likewise.
23259         * cilk-common.c: Likewise.
23260         * combine-stack-adj.c: Likewise.
23261         * combine.c: Likewise.
23262         * compare-elim.c: Likewise.
23263         * convert.c: Likewise.
23264         * coverage.c: Likewise.
23265         * cppbuiltin.c: Likewise.
23266         * cprop.c: Likewise.
23267         * cse.c: Likewise.
23268         * cselib.c: Likewise.
23269         * data-streamer-in.c: Likewise.
23270         * data-streamer-out.c: Likewise.
23271         * data-streamer.c: Likewise.
23272         * dbxout.c: Likewise.
23273         * dce.c: Likewise.
23274         * ddg.c: Likewise.
23275         * debug.c: Likewise.
23276         * df-core.c: Likewise.
23277         * df-problems.c: Likewise.
23278         * df-scan.c: Likewise.
23279         * df.h: Likewise.
23280         * dfp.c: Likewise.
23281         * diagnostic-core.h: Likewise.
23282         * diagnostic.c: Likewise.
23283         * dojump.c: Likewise.
23284         * dominance.c: Likewise.
23285         * domwalk.c: Likewise.
23286         * double-int.c: Likewise.
23287         * dse.c: Likewise.
23288         * dumpfile.c: Likewise.
23289         * dumpfile.h: Likewise.
23290         * dwarf2asm.c: Likewise.
23291         * dwarf2cfi.c: Likewise.
23292         * dwarf2out.c: Likewise.
23293         * emit-rtl.c: Likewise.
23294         * et-forest.c: Likewise.
23295         * except.c: Likewise.
23296         * explow.c: Likewise.
23297         * expmed.c: Likewise.
23298         * expr.c: Likewise.
23299         * final.c: Likewise.
23300         * fixed-value.c: Likewise.
23301         * fold-const.c: Likewise.
23302         * function.c: Likewise.
23303         * fwprop.c: Likewise.
23304         * gcc-plugin.h: Likewise.
23305         * gcse.c: Likewise.
23306         * generic-match-head.c: Likewise.
23307         * ggc-page.c: Likewise.
23308         * gimple-builder.c: Likewise.
23309         * gimple-expr.c: Likewise.
23310         * gimple-fold.c: Likewise.
23311         * gimple-iterator.c: Likewise.
23312         * gimple-low.c: Likewise.
23313         * gimple-match-head.c: Likewise.
23314         * gimple-pretty-print.c: Likewise.
23315         * gimple-ssa-isolate-paths.c: Likewise.
23316         * gimple-ssa-strength-reduction.c: Likewise.
23317         * gimple-streamer-in.c: Likewise.
23318         * gimple-streamer-out.c: Likewise.
23319         * gimple-streamer.h: Likewise.
23320         * gimple-walk.c: Likewise.
23321         * gimple.c: Likewise.
23322         * gimplify-me.c: Likewise.
23323         * gimplify.c: Likewise.
23324         * godump.c: Likewise.
23325         * graph.c: Likewise.
23326         * graphite-blocking.c: Likewise.
23327         * graphite-dependences.c: Likewise.
23328         * graphite-interchange.c: Likewise.
23329         * graphite-isl-ast-to-gimple.c: Likewise.
23330         * graphite-optimize-isl.c: Likewise.
23331         * graphite-poly.c: Likewise.
23332         * graphite-scop-detection.c: Likewise.
23333         * graphite-sese-to-poly.c: Likewise.
23334         * graphite.c: Likewise.
23335         * haifa-sched.c: Likewise.
23336         * hw-doloop.c: Likewise.
23337         * ifcvt.c: Likewise.
23338         * init-regs.c: Likewise.
23339         * input.c: Likewise.
23340         * internal-fn.c: Likewise.
23341         * ipa-chkp.c: Likewise.
23342         * ipa-comdats.c: Likewise.
23343         * ipa-cp.c: Likewise.
23344         * ipa-devirt.c: Likewise.
23345         * ipa-icf-gimple.c: Likewise.
23346         * ipa-icf.c: Likewise.
23347         * ipa-inline-analysis.c: Likewise.
23348         * ipa-inline-transform.c: Likewise.
23349         * ipa-inline.c: Likewise.
23350         * ipa-polymorphic-call.c: Likewise.
23351         * ipa-profile.c: Likewise.
23352         * ipa-prop.c: Likewise.
23353         * ipa-pure-const.c: Likewise.
23354         * ipa-ref.c: Likewise.
23355         * ipa-reference.c: Likewise.
23356         * ipa-split.c: Likewise.
23357         * ipa-utils.c: Likewise.
23358         * ipa-visibility.c: Likewise.
23359         * ipa.c: Likewise.
23360         * ira-build.c: Likewise.
23361         * ira-color.c: Likewise.
23362         * ira-conflicts.c: Likewise.
23363         * ira-costs.c: Likewise.
23364         * ira-emit.c: Likewise.
23365         * ira-lives.c: Likewise.
23366         * ira.c: Likewise.
23367         * jump.c: Likewise.
23368         * langhooks.c: Likewise.
23369         * lcm.c: Likewise.
23370         * loop-doloop.c: Likewise.
23371         * loop-init.c: Likewise.
23372         * loop-invariant.c: Likewise.
23373         * loop-iv.c: Likewise.
23374         * loop-unroll.c: Likewise.
23375         * lower-subreg.c: Likewise.
23376         * lra-assigns.c: Likewise.
23377         * lra-coalesce.c: Likewise.
23378         * lra-constraints.c: Likewise.
23379         * lra-eliminations.c: Likewise.
23380         * lra-lives.c: Likewise.
23381         * lra-remat.c: Likewise.
23382         * lra-spills.c: Likewise.
23383         * lra.c: Likewise.
23384         * lto-cgraph.c: Likewise.
23385         * lto-compress.c: Likewise.
23386         * lto-opts.c: Likewise.
23387         * lto-section-in.c: Likewise.
23388         * lto-section-out.c: Likewise.
23389         * lto-streamer-in.c: Likewise.
23390         * lto-streamer-out.c: Likewise.
23391         * lto-streamer.c: Likewise.
23392         * mcf.c: Likewise.
23393         * mode-switching.c: Likewise.
23394         * modulo-sched.c: Likewise.
23395         * omega.c: Likewise.
23396         * omp-low.c: Likewise.
23397         * optabs.c: Likewise.
23398         * opts-global.c: Likewise.
23399         * opts.h: Likewise.
23400         * passes.c: Likewise.
23401         * plugin.c: Likewise.
23402         * postreload-gcse.c: Likewise.
23403         * postreload.c: Likewise.
23404         * predict.c: Likewise.
23405         * pretty-print.h: Likewise.
23406         * print-rtl.c: Likewise.
23407         * print-tree.c: Likewise.
23408         * profile.c: Likewise.
23409         * real.c: Likewise.
23410         * realmpfr.c: Likewise.
23411         * recog.c: Likewise.
23412         * ree.c: Likewise.
23413         * reg-stack.c: Likewise.
23414         * regcprop.c: Likewise.
23415         * reginfo.c: Likewise.
23416         * regrename.c: Likewise.
23417         * regstat.c: Likewise.
23418         * reload.c: Likewise.
23419         * reload1.c: Likewise.
23420         * reorg.c: Likewise.
23421         * resource.c: Likewise.
23422         * rtl-chkp.c: Likewise.
23423         * rtl-error.c: Likewise.
23424         * rtlanal.c: Likewise.
23425         * rtlhooks.c: Likewise.
23426         * sanopt.c: Likewise.
23427         * sched-deps.c: Likewise.
23428         * sched-ebb.c: Likewise.
23429         * sched-rgn.c: Likewise.
23430         * sched-vis.c: Likewise.
23431         * sdbout.c: Likewise.
23432         * sel-sched-dump.c: Likewise.
23433         * sel-sched-ir.c: Likewise.
23434         * sel-sched.c: Likewise.
23435         * sese.c: Likewise.
23436         * shrink-wrap.c: Likewise.
23437         * simplify-rtx.c: Likewise.
23438         * stack-ptr-mod.c: Likewise.
23439         * statistics.c: Likewise.
23440         * stmt.c: Likewise.
23441         * stor-layout.c: Likewise.
23442         * store-motion.c: Likewise.
23443         * streamer-hooks.c: Likewise.
23444         * stringpool.c: Likewise.
23445         * symtab.c: Likewise.
23446         * target-globals.c: Likewise.
23447         * targhooks.c: Likewise.
23448         * toplev.c: Likewise.
23449         * tracer.c: Likewise.
23450         * trans-mem.c: Likewise.
23451         * tree-affine.c: Likewise.
23452         * tree-browser.c: Likewise.
23453         * tree-call-cdce.c: Likewise.
23454         * tree-cfg.c: Likewise.
23455         * tree-cfgcleanup.c: Likewise.
23456         * tree-chkp-opt.c: Likewise.
23457         * tree-chkp.c: Likewise.
23458         * tree-chrec.c: Likewise.
23459         * tree-complex.c: Likewise.
23460         * tree-data-ref.c: Likewise.
23461         * tree-dfa.c: Likewise.
23462         * tree-diagnostic.c: Likewise.
23463         * tree-dump.c: Likewise.
23464         * tree-eh.c: Likewise.
23465         * tree-emutls.c: Likewise.
23466         * tree-if-conv.c: Likewise.
23467         * tree-inline.c: Likewise.
23468         * tree-into-ssa.c: Likewise.
23469         * tree-iterator.c: Likewise.
23470         * tree-loop-distribution.c: Likewise.
23471         * tree-nested.c: Likewise.
23472         * tree-nrv.c: Likewise.
23473         * tree-object-size.c: Likewise.
23474         * tree-outof-ssa.c: Likewise.
23475         * tree-parloops.c: Likewise.
23476         * tree-phinodes.c: Likewise.
23477         * tree-predcom.c: Likewise.
23478         * tree-pretty-print.c: Likewise.
23479         * tree-profile.c: Likewise.
23480         * tree-scalar-evolution.c: Likewise.
23481         * tree-sra.c: Likewise.
23482         * tree-ssa-address.c: Likewise.
23483         * tree-ssa-alias.c: Likewise.
23484         * tree-ssa-ccp.c: Likewise.
23485         * tree-ssa-coalesce.c: Likewise.
23486         * tree-ssa-copy.c: Likewise.
23487         * tree-ssa-copyrename.c: Likewise.
23488         * tree-ssa-dce.c: Likewise.
23489         * tree-ssa-dom.c: Likewise.
23490         * tree-ssa-dse.c: Likewise.
23491         * tree-ssa-forwprop.c: Likewise.
23492         * tree-ssa-ifcombine.c: Likewise.
23493         * tree-ssa-live.c: Likewise.
23494         * tree-ssa-loop-ch.c: Likewise.
23495         * tree-ssa-loop-im.c: Likewise.
23496         * tree-ssa-loop-ivcanon.c: Likewise.
23497         * tree-ssa-loop-ivopts.c: Likewise.
23498         * tree-ssa-loop-manip.c: Likewise.
23499         * tree-ssa-loop-niter.c: Likewise.
23500         * tree-ssa-loop-prefetch.c: Likewise.
23501         * tree-ssa-loop-unswitch.c: Likewise.
23502         * tree-ssa-loop.c: Likewise.
23503         * tree-ssa-math-opts.c: Likewise.
23504         * tree-ssa-operands.c: Likewise.
23505         * tree-ssa-phiopt.c: Likewise.
23506         * tree-ssa-phiprop.c: Likewise.
23507         * tree-ssa-pre.c: Likewise.
23508         * tree-ssa-propagate.c: Likewise.
23509         * tree-ssa-reassoc.c: Likewise.
23510         * tree-ssa-sccvn.c: Likewise.
23511         * tree-ssa-scopedtables.c: Likewise.
23512         * tree-ssa-sink.c: Likewise.
23513         * tree-ssa-strlen.c: Likewise.
23514         * tree-ssa-structalias.c: Likewise.
23515         * tree-ssa-tail-merge.c: Likewise.
23516         * tree-ssa-ter.c: Likewise.
23517         * tree-ssa-threadedge.c: Likewise.
23518         * tree-ssa-threadupdate.c: Likewise.
23519         * tree-ssa-uncprop.c: Likewise.
23520         * tree-ssa-uninit.c: Likewise.
23521         * tree-ssa.c: Likewise.
23522         * tree-ssanames.c: Likewise.
23523         * tree-stdarg.c: Likewise.
23524         * tree-streamer-in.c: Likewise.
23525         * tree-streamer-out.c: Likewise.
23526         * tree-streamer.c: Likewise.
23527         * tree-switch-conversion.c: Likewise.
23528         * tree-tailcall.c: Likewise.
23529         * tree-vect-data-refs.c: Likewise.
23530         * tree-vect-generic.c: Likewise.
23531         * tree-vect-loop-manip.c: Likewise.
23532         * tree-vect-loop.c: Likewise.
23533         * tree-vect-patterns.c: Likewise.
23534         * tree-vect-slp.c: Likewise.
23535         * tree-vect-stmts.c: Likewise.
23536         * tree-vectorizer.c: Likewise.
23537         * tree-vrp.c: Likewise.
23538         * tree.c: Likewise.
23539         * tsan.c: Likewise.
23540         * ubsan.c: Likewise.
23541         * valtrack.c: Likewise.
23542         * value-prof.c: Likewise.
23543         * var-tracking.c: Likewise.
23544         * varasm.c: Likewise.
23545         * varpool.c: Likewise.
23546         * vmsdbgout.c: Likewise.
23547         * vtable-verify.c: Likewise.
23548         * web.c: Likewise.
23549         * wide-int.cc: Likewise.
23550         * xcoffout.c: Likewise.
23551         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
23552         * common/common-targhooks.c: Likewise.
23553         * config/aarch64/aarch64-builtins.c: Likewise.
23554         * config/aarch64/aarch64.c: Likewise.
23555         * config/alpha/alpha.c: Likewise.
23556         * config/arc/arc.c: Likewise.
23557         * config/arm/aarch-common.c: Likewise.
23558         * config/arm/arm-builtins.c: Likewise.
23559         * config/arm/arm-c.c: Likewise.
23560         * config/arm/arm.c: Likewise.
23561         * config/avr/avr-c.c: Likewise.
23562         * config/avr/avr-log.c: Likewise.
23563         * config/avr/avr.c: Likewise.
23564         * config/bfin/bfin.c: Likewise.
23565         * config/c6x/c6x.c: Likewise.
23566         * config/cr16/cr16.c: Likewise.
23567         * config/cris/cris.c: Likewise.
23568         * config/darwin-c.c: Likewise.
23569         * config/darwin.c: Likewise.
23570         * config/default-c.c: Likewise.
23571         * config/epiphany/epiphany.c: Likewise.
23572         * config/epiphany/mode-switch-use.c: Likewise.
23573         * config/epiphany/resolve-sw-modes.c: Likewise.
23574         * config/fr30/fr30.c: Likewise.
23575         * config/frv/frv.c: Likewise.
23576         * config/ft32/ft32.c: Likewise.
23577         * config/glibc-c.c: Likewise.
23578         * config/h8300/h8300.c: Likewise.
23579         * config/i386/i386-c.c: Likewise.
23580         * config/i386/i386.c: Likewise.
23581         * config/i386/msformat-c.c: Likewise.
23582         * config/i386/winnt-cxx.c: Likewise.
23583         * config/i386/winnt-stubs.c: Likewise.
23584         * config/i386/winnt.c: Likewise.
23585         * config/ia64/ia64-c.c: Likewise.
23586         * config/ia64/ia64.c: Likewise.
23587         * config/iq2000/iq2000.c: Likewise.
23588         * config/lm32/lm32.c: Likewise.
23589         * config/m32c/m32c-pragma.c: Likewise.
23590         * config/m32c/m32c.c: Likewise.
23591         * config/m32r/m32r.c: Likewise.
23592         * config/m68k/m68k.c: Likewise.
23593         * config/mcore/mcore.c: Likewise.
23594         * config/mep/mep-pragma.c: Likewise.
23595         * config/mep/mep.c: Likewise.
23596         * config/microblaze/microblaze-c.c: Likewise.
23597         * config/microblaze/microblaze.c: Likewise.
23598         * config/mips/mips.c: Likewise.
23599         * config/mmix/mmix.c: Likewise.
23600         * config/mn10300/mn10300.c: Likewise.
23601         * config/moxie/moxie.c: Likewise.
23602         * config/msp430/msp430-c.c: Likewise.
23603         * config/msp430/msp430.c: Likewise.
23604         * config/nds32/nds32-cost.c: Likewise.
23605         * config/nds32/nds32-fp-as-gp.c: Likewise.
23606         * config/nds32/nds32-intrinsic.c: Likewise.
23607         * config/nds32/nds32-isr.c: Likewise.
23608         * config/nds32/nds32-md-auxiliary.c: Likewise.
23609         * config/nds32/nds32-memory-manipulation.c: Likewise.
23610         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23611         * config/nds32/nds32-predicates.c: Likewise.
23612         * config/nds32/nds32.c: Likewise.
23613         * config/nios2/nios2.c: Likewise.
23614         * config/nvptx/nvptx.c: Likewise.
23615         * config/pa/pa.c: Likewise.
23616         * config/pdp11/pdp11.c: Likewise.
23617         * config/rl78/rl78-c.c: Likewise.
23618         * config/rl78/rl78.c: Likewise.
23619         * config/rs6000/rs6000-c.c: Likewise.
23620         * config/rs6000/rs6000.c: Likewise.
23621         * config/rx/rx.c: Likewise.
23622         * config/s390/s390-c.c: Likewise.
23623         * config/s390/s390.c: Likewise.
23624         * config/sh/sh-c.c: Likewise.
23625         * config/sh/sh-mem.cc: Likewise.
23626         * config/sh/sh.c: Likewise.
23627         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23628         * config/sh/sh_treg_combine.cc: Likewise.
23629         * config/sol2-c.c: Likewise.
23630         * config/sol2-cxx.c: Likewise.
23631         * config/sol2-stubs.c: Likewise.
23632         * config/sol2.c: Likewise.
23633         * config/sparc/sparc-c.c: Likewise.
23634         * config/sparc/sparc.c: Likewise.
23635         * config/spu/spu-c.c: Likewise.
23636         * config/spu/spu.c: Likewise.
23637         * config/stormy16/stormy16.c: Likewise.
23638         * config/tilegx/mul-tables.c: Likewise.
23639         * config/tilegx/tilegx-c.c: Likewise.
23640         * config/tilegx/tilegx.c: Likewise.
23641         * config/tilepro/mul-tables.c: Likewise.
23642         * config/tilepro/tilepro-c.c: Likewise.
23643         * config/tilepro/tilepro.c: Likewise.
23644         * config/v850/v850-c.c: Likewise.
23645         * config/v850/v850.c: Likewise.
23646         * config/vax/vax.c: Likewise.
23647         * config/visium/visium.c: Likewise.
23648         * config/vms/vms-c.c: Likewise.
23649         * config/vms/vms.c: Likewise.
23650         * config/vxworks.c: Likewise.
23651         * config/winnt-c.c: Likewise.
23652         * config/xtensa/xtensa.c: Likewise.
23654 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
23656         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
23657         function.
23658         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
23660 2015-06-17  Richard Biener  <rguenther@suse.de>
23662         PR tree-optimization/66251
23663         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
23664         stmts for SLP strided stores.
23666         Revert
23667         2015-05-22  Richard Biener  <rguenther@suse.de>
23669         PR tree-optimization/66251
23670         * tree-vect-stmts.c (vectorizable_conversion): Properly
23671         set STMT_VINFO_VEC_STMT even for the SLP case.
23673         2015-05-26  Michael Matz  <matz@suse.de>
23675         PR middle-end/66251
23676         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
23677         STMT_VINFO_VEC_STMT, also with SLP.
23679 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
23681         PR target/56766
23682         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
23683         (*avx_addsubv4df3_1s): Ditto.
23684         (*sse3_addsubv2df3_1): Ditto.
23685         (*sse3_addsubv2df3_1s): Ditto.
23686         (*avx_addsubv8sf3_1): Ditto.
23687         (*avx_addsubv8sf3_1s): Ditto.
23688         (*sse3_addsubv4sf3_1): Ditto.
23689         (*sse3_addsubv4sf3_1s): Ditto.
23691 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
23693         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
23694         (SYSROOT_SUFFIX_SPEC): Update.
23695         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
23696         (STARTFILE_PREFIX_SPEC): Update.
23697         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
23698         (MULTILIB_REQUIRED): New.
23699         (MULTILIB_OSDIRNAMES): New.
23700         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
23701         (MULTILIB_REQUIRED): New.
23702         (MULTILIB_OSDIRNAMES): New.
23704 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
23706         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
23707         * config/aarch64/aarch64-options-extensions.def: Update "fP",
23708         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
23709         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
23710         (AARCH64_FL_PAN): New.
23711         (AARCH64_FL_LOR): New.
23712         (AARCH64_FL_RDMA): New.
23713         (AARCH64_FL_FOR_ARCH8_1): New.
23714         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
23715         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
23717 2015-06-16  Martin Liska  <mliska@suse.cz>
23719         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
23720         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
23721         guard.
23723 2015-06-16  Richard Biener  <rguenther@suse.de>
23725         * tree-vect-stmts.c (vectorizable_store): Adjust.
23726         (vectorizable_load): Likewise.
23727         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
23728         Simplify.
23729         (vect_create_data_ref_ptr): Likewise.
23730         (bump_vector_ptr): Adjust.
23732 2015-06-16  Richard Biener  <rguenther@suse.de>
23734         * tree-vect-stmts.c (vectorizable_load): Properly start loads
23735         with the first element if this is grouped loads.
23737 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
23739         * config/arm/arm-protos.h (struct tune_params): Rename
23740         log_op_non_sc to log_op_non_short_circuit, and rename enum
23741         values to expand SC to SHORT_CIRCUIT.
23742         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
23743         to LOG_OP_NON_SHORT_CIRCUIT.
23744         (arm_fastmul_tune):Likewise
23745         (arm_strongarm_tune): Likewise.
23746         (arm_xscale_tune): Likewise.
23747         (arm_9e_tune): Likewise.
23748         (arm_marvell_pj4_tune): Likewise.
23749         (arm_v6t2_tune): Likewise.
23750         (arm_cortex_tune): Likewise.
23751         (arm_cortex_a8_tune): Likewise.
23752         (arm_cortex_a7_tune): Likewise.
23753         (arm_cortex_a15_tune): Likewise.
23754         (arm_cortex_a53_tune): Likewise.
23755         (arm_cortex_a57_tune): Likewise.
23756         (arm_xgene1_tune): Likewise.
23757         (arm_cortex_a5_tune): Likewise.
23758         (arm_cortex_a9_tune): Likewise.
23759         (arm_cortex_a12_tune): Likewise.
23760         (arm_v7m_tune): Likewise.
23761         (arm_cortex_m7_tune): Likewise.
23762         (arm_v6m_tune): Likewise.
23763         (arm_fa726te_tune): Likewise.
23765 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
23767         * altivec.md: Delete UNSPEC_VMLADDUHM.
23768         (mulv4si3_p8): New pattern.
23769         (mulv4si3): Use it for POWER8.
23770         (mulv8hi3): Use vmladduhm with zero addend.
23771         (altivec_vmladduhm): Descriptive RTL.
23773 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
23775         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
23776         to use neon_move instead of mov_imm.
23777         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
23778         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
23780         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
23781         aarch64_float_const_zero_rtx_p check before TFmode check.
23782         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
23783         an fp zero.
23784         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
23785         code and attributes to match.  Change condition from register_operand
23786         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
23787         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
23788         to store2.
23790 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
23792         PR debug/66535
23793         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
23794         there is no parent.
23796 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
23798         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
23799         HOST_WIDE_INT parameter.
23801 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
23803         PR ipa/66181
23804         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
23805         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
23806         TYPE_NO_FORCE_BLK.
23807         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
23809 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
23811         * rtl.h (classify_insn): Declare.
23812         * emit-rtl.c (classify_insn): Move to...
23813         * rtl.c: ...here and add generator support.
23814         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
23815         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
23816         * genemit.c (gen_emit_seq): New function.
23817         (gen_expand, gen_split): Use it.
23819 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
23821         * tree.c (make_vector_stat): Fix comment to state that the
23822         function returns a VECTOR_CST.
23824 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
23826         * gensupport.h (add_implicit_parallel): Declare.
23827         * genrecog.c (add_implicit_parallel): Move to...
23828         * gensupport.c (add_implicit_parallel): ...here.
23829         (process_one_cond_exec): Use it.
23830         * genemit.c (gen_insn): Likewise.
23832 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
23834         PR bootstrap/66448
23835         * passes.c (rest_of_decl_compilation): Do not register globals for
23836         early debug if they are declared in built-ins.
23838 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
23840         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
23842 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23844         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
23845         manually swapping.
23846         (noce_try_cmove_arith): Likewise.
23847         (noce_get_alt_condition): Likewise.
23849 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
23851         * common/config/i386/i386-common.c
23852         (OPTION_MASK_ISA_MWAITX_SET): New.
23853         (ix86_handle_option): Handle mwaitx.
23854         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
23855         (x86_64-*-*): Likewise.
23856         * config/i386/mwaitxintrin.h: New header.
23857         * config/i386/cpuid.h (bit_MWAITX):  Define.
23858         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23859         MWAITX support.
23860         * config/i386/i386.opt (mwaitx): New.
23861         * config/i386/i386-builtin-types.def
23862         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
23863         * config/i386/i386-c.c: Define __MWAITX__ if needed.
23864         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
23865         (PTA_MWAITX): New.
23866         (ix86_option_override_internal): Handle new option.
23867         (processor_alias_table): Added PTA_MWAITX.
23868         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
23869         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
23870         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
23871         IX86_BUILTIN_MONITORX  built-ins.
23872         * config/i386/i386.h (TARGET_MWAITX): New.
23873         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
23874         UNSPEC_MONITORX.
23875         (mwaitx):  New pattern.
23876         (monitorx_<mode>): New pattern.
23877         * config/i386/x86intrin.h: Include mwaitxintrin.h.
23878         * doc/extend.texi: Document monitorx and mwaitx builtins.
23879         * doc/invoke.texi: Document -mmwaitx option.
23881 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
23883         * emit-rtl.c (need_atomic_barrier_p): Mask model with
23884         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
23886 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
23888         * dbxout.c (xcoff_debug_hooks): Provide a function for
23889         register_main_translation_unit hook.
23891 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
23893         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
23894         variants cases from switch.
23895         (rs6000_post_atomic_barrier): Same.
23896         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
23897         (rs6000_expand_atomic_exchange): Same.
23898         (rs6000_expand_atomic_op): Same.
23899         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
23900         SYNC variants cases from switch.
23901         (atomic_load): Same.
23902         (atomic_store): Same.
23904 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
23906         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
23907         CONST_INT for goto.
23909 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
23911         PR bootstrap/66448
23912         * dwarf2out.c (check_die): Check for common duplicate attributes.
23913         (add_location_or_const_value_attribute): Do not add duplicate
23914         attributes.
23915         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
23916         time around.
23917         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
23918         (gen_type_die_with_usage): Call check_die.
23919         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
23921 2015-06-11  Jason Merrill  <jason@redhat.com>
23923         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
23924         dies.
23926 2015-06-11  Marek Polacek  <polacek@redhat.com>
23928         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
23930 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
23932         PR bootstrap/66252
23933         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
23934         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
23935         (*addx_extend_sp32): Fix pasto.
23936         (*subx_extend): Rename into...
23937         (*subx_extend_sp32): ...this.
23938         (*adddi3_extend_sp32): Add earlyclobber.
23939         (*subdi3_insn_sp32): Likewise.
23940         (*subdi3_extend_sp32): Likewise.
23941         (*and_not_di_sp32): Likewise.
23942         (*or_not_di_sp32): Likewise.
23943         (*xor_not_di_sp32): Likewise.
23944         (*negdi2_sp32): Likewise.
23945         (*one_cmpldi2_sp32): Likewise.
23947 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
23949         * debug.h (struct gcc_debug_hooks): Add a
23950         register_main_translation_unit hook.
23951         * debug.c (do_nothing_debug_hooks): Provide a function for this
23952         new hook.
23953         * dbxout.c (dbx_debug_hooks): Likewise.
23954         * sdbout.c (sdb_debug_hooks): Likewise.
23955         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
23956         * dwarf2out.c (main_translation_unit): New global variable.
23957         (dwarf2out_register_main_translation_unit): New function
23958         implementing the new hook.
23959         (dwarf2_debug_hooks): Assign
23960         dwarf2out_register_main_translation_unit to this new hook.
23961         (dwarf2out_init): Associate any main translation unit to
23962         comp_unit_die ().
23964 2015-06-11  Marek Polacek  <polacek@redhat.com>
23966         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
23968 2015-06-11  Marek Polacek  <polacek@redhat.com>
23970         * match.pd: Use single_use throughout.
23972 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23974         * config/arm/arm.c (arm_option_params_internal): When optimising
23975         for speed set max_insns_skipped when arm_restrict_it.
23977 2015-06-11  Christian Bruel  <christian.bruel@st.com>
23979         PR target/52144
23980         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
23981          macros in ...
23982         (arm_cpu_builtins): New function.
23983         (arm_pragma_target_parse): Call arm_cpu_builtins.
23984         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
23985         (arm_register_target_pragmas): Likewise.
23986         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
23987          Call arm_register_target_pragmas.
23988         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
23989         (arm_pragma_target_parse): Likewise.
23991 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
23993         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
23994         of the second operand.
23996 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
23998         PR target/66473
23999         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
24000         to prepare mask operand for AVX512 modes.
24002 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
24004         PR target/66474
24005         * doc/md.texi (Machine Constraints): Document that on the PowerPC
24006         if you use a constraint that targets a VSX register, you must use
24007         %x<n> in the template.
24009 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
24011         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
24012         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
24013         (define_insn "trap"): New definition.
24015 2015-06-10  Richard Biener  <rguenther@suse.de>
24017         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
24018         out from ...
24019         (vect_supported_load_permutation_p): ... here.  Handle
24020         supportable permutations in reductions.
24021         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
24022         for vectorizing strided group loads.
24024 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
24026         PR target/66470
24027         * config/i386/i386.c (ix86_split_long_move): For collisions
24028         involving direct tls segment refs, move the UNSPEC_TP possibly
24029         wrapped in ZERO_EXTEND out of the address for lea, to each of
24030         the memory loads.
24032 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24034         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
24035         dmb sy. Adjust tabs.
24037 2015-06-10  Tom de Vries  <tom@codesourcery.com>
24039         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
24041 2015-06-10  Martin Liska  <mliska@suse.cz>
24043         PR bootstrap/66471
24044         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
24045         all enum values in mem_alloc_origin.
24046         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
24047         name.
24048         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
24049         * bitmap.c (bitmap_register): Likewise.
24050         (dump_bitmap_statistics): Likewise.
24051         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
24052         (ggc_record_overhead): Likewise.
24053         * hash-map.h: Likewise.
24054         * hash-set.h: Likewise.
24055         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
24056         * hash-table.h: Likewise.
24057         * vec.c (vec_prefix::register_overhead): Likewise.
24058         (vec_prefix::release_overhead): Likewise.
24059         (dump_vec_loc_statistics): Likewise.
24061 2015-06-09  Christian Bruel  <christian.bruel@st.com>
24063         PR target/52144
24064         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
24065         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
24066         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
24067         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
24068         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
24069         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
24070         (arm_valid_target_attribute_p): Likewise.
24071         (arm_set_current_function, arm_can_inline_p): Likewise.
24072         (arm_valid_target_attribute_rec): Likewise.
24073         (arm_previous_fndecl): New variable.
24074         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
24075         (TARGET_CAN_INLINE_P): Define.
24076         (arm_asm_trampoline_template): Emit mode.
24077         (arm_file_start): Don't set unified syntax.
24078         (arm_declare_function_name): Set unified syntax and mode.
24079         (arm_option_override): Init target_option_default_node.
24080         and target_option_current_node.
24081         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
24082         (*call_symbol): Likewise.
24083         * doc/extend.texi: Document ARM/Thumb target attribute.
24084         * doc/invoke.texi: Likewise.
24086 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
24088         Revert:
24089         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
24090         PR rtl-optimization/64164
24091         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24092         * tree-ssa-copyrename.c: Removed.
24093         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
24094         -ftree-coalesce-vars.
24095         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24096         * common.opt (ftree-copyrename): Ignore.
24097         (ftree-coalesce-inlined-vars): Likewise.
24098         * doc/invoke.texi: Remove the ignored options above.
24099         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24100         * tree-ssa-coalesce.h: ... here.
24101         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24102         headers required by it.
24103         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24104         across variables when flag_tree_coalesce_vars.  Check register
24105         use and promoted modes to allow coalescing.  Moved to
24106         tree-ssa-coalesce.c.
24107         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24108         with its member functions to tree-ssa-coalesce.c.
24109         (var_map_base_init): Likewise.  Renamed to
24110         compute_samebase_partition_bases.
24111         (partition_view_normal): Drop want_bases parameter.
24112         (partition_view_bitmap): Likewise.
24113         * tree-ssa-live.h: Adjust declarations.
24114         * tree-ssa-coalesce.c: Include explow.h.
24115         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24116         default defs at the entry point.
24117         (dump_part_var_map): New.
24118         (compute_optimized_partition_bases): New, called by...
24119         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24120         of compute_samebase_partition_bases.  Adjust.
24121         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24122         * cfgexpand.c (leader_merge): New.
24123         (get_rtl_for_parm_ssa_default_def): New.
24124         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24125         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24126         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
24127         redundant MEM attr setting.
24128         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
24129         from...
24130         (expand_one_stack_var): ... this.  New wrapper to check and
24131         skip already expanded SSA partitions.
24132         (record_alignment_for_reg_var): New, factored out of...
24133         (expand_one_var): ... this.
24134         (expand_one_ssa_partition): New.
24135         (adjust_one_expanded_partition_var): New.
24136         (expand_one_register_var): Check and skip already expanded SSA
24137         partitions.
24138         (expand_used_vars): Don't create DECLs for anonymous SSA
24139         names.  Expand all SSA partitions, then adjust all SSA names.
24140         (pass::execute): Replace the loops that set
24141         SA.partition_to_pseudo from partition leaders and cleared
24142         DECL_RTL for multi-location variables, and that which used to
24143         rename vars and set attrs, with one that clears DECL_RTL and
24144         checks that PARMs and RESULTs default_defs match DECL_RTL.
24145         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24146         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24147         * explow.c (promote_ssa_mode): New.
24148         * explow.h (promote_ssa_mode): Declare.
24149         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24150         * function.c: Include cfgexpand.h.
24151         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24152         (use_register_for_parm_decl): Wrapper for the above to
24153         special-case the result_ptr.
24154         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24155         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24156         multiple locations.
24157         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24158         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
24159         (assign_parm_setup_block): Prefer SSA-assigned location.
24160         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
24161         if stack_parm is NULL.
24162         (assign_parm_setup_stack): Prefer SSA-assigned location.
24163         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
24164         rtl before testing for pointer bounds.  Special-case result_ptr.
24165         (expand_function_start): Maybe reset DECL_RTL of result.
24166         Prefer SSA-assigned location for result and static chain.
24167         Factor out DECL_RESULT and SET_DECL_RTL.
24168         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24169         anonymous SSA names.  Use promote_ssa_mode.
24170         (get_temp_reg): Likewise.
24171         (remove_ssa_form): Adjust.
24172         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24173         and get its reg_usage for reg invalidation.
24174         (compute_bb_dataflow): Pass it insn.
24175         (emit_notes_in_bb): Likewise.
24176         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24177         fail assert on conversion between unsigned types.
24179 2015-06-09  Tom de Vries  <tom@codesourcery.com>
24181         PR tree-optimization/65460
24182         * omp-low.c (expand_omp_target): Set parallelized_function on
24183         cgraph_node for child_fn.
24185 2015-06-09  Tom de Vries  <tom@codesourcery.com>
24187         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
24188         parallelized_function before add_new_function.
24190 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
24192         * gcc-plugin.h: Move decls to plugin.h and include it.
24193         * plugin.h: Relocate decls from gcc-plugin.h
24194         * ggc-page.c: Include required header files.
24195         * passes.c: Likewise.
24196         * cgraphunit.c: Likewise.
24198 2015-06-09  Tom de Vries  <tom@codesourcery.com>
24200         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
24202 2015-06-09  Jason Merrill  <jason@redhat.com>
24204         PR bootstrap/66448
24205         * toplev.c (check_global_declaration): Don't warn about a clone.
24207 2015-06-09  Marek Polacek  <polacek@redhat.com>
24209         PR tree-optimization/66299
24210         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
24211         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
24212         patterns.
24214 2015-06-09  Richard Biener  <rguenther@suse.de>
24216         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
24217         (vect_analyze_slp_instance): Instead do not falsely drop
24218         load permutations.
24220 2015-06-09  Richard Biener  <rguenther@suse.de>
24222         PR middle-end/66423
24223         * match.pd: Handle A % (unsigned)(1 << B).
24225 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
24227         * varasm.c (output_object_block_htab): Remove.
24228         (output_object_block_compare): New.
24229         (output_object_blocks): Sort named object_blocks before outputting
24230         them.
24232 2015-06-09  Richard Biener  <rguenther@suse.de>
24234         PR tree-optimization/66419
24235         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
24236         consider GROUP_GAP when detecting a perfect subchain.
24238 2015-06-09  Nick Clifton  <nickc@redhat.com>
24240         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
24241         place read only data in the .frodata section.
24243 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
24245         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
24246         (atomic_store<mode>): Likewise.
24248 2015-06-09  Richard Biener  <rguenther@suse.de>
24250         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
24252 2015-06-09  Richard Biener  <rguenther@suse.de>
24254         PR middle-end/66413
24255         * tree-inline.c (insert_init_debug_bind): Unshare value.
24257 2015-06-09  Richard Biener  <rguenther@suse.de>
24259         PR tree-optimization/66396
24260         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
24261         Rename virtual operands.
24263 2015-06-09  Tom de Vries  <tom@codesourcery.com>
24265         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
24266         always return false.
24268 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
24270         PR rtl-optimization/64164
24271         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24272         * tree-ssa-copyrename.c: Removed.
24273         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
24274         -ftree-coalesce-vars.
24275         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24276         * common.opt (ftree-copyrename): Ignore.
24277         (ftree-coalesce-inlined-vars): Likewise.
24278         * doc/invoke.texi: Remove the ignored options above.
24279         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24280         * tree-ssa-coalesce.h: ... here.
24281         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24282         headers required by it.
24283         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24284         across variables when flag_tree_coalesce_vars.  Check register
24285         use and promoted modes to allow coalescing.  Moved to
24286         tree-ssa-coalesce.c.
24287         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24288         with its member functions to tree-ssa-coalesce.c.
24289         (var_map_base_init): Likewise.  Renamed to
24290         compute_samebase_partition_bases.
24291         (partition_view_normal): Drop want_bases parameter.
24292         (partition_view_bitmap): Likewise.
24293         * tree-ssa-live.h: Adjust declarations.
24294         * tree-ssa-coalesce.c: Include explow.h.
24295         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24296         default defs at the entry point.
24297         (dump_part_var_map): New.
24298         (compute_optimized_partition_bases): New, called by...
24299         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24300         of compute_samebase_partition_bases.  Adjust.
24301         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24302         * cfgexpand.c (leader_merge): New.
24303         (get_rtl_for_parm_ssa_default_def): New.
24304         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24305         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24306         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
24307         redundant MEM attr setting.
24308         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
24309         from...
24310         (expand_one_stack_var): ... this.  New wrapper to check and
24311         skip already expanded SSA partitions.
24312         (record_alignment_for_reg_var): New, factored out of...
24313         (expand_one_var): ... this.
24314         (expand_one_ssa_partition): New.
24315         (adjust_one_expanded_partition_var): New.
24316         (expand_one_register_var): Check and skip already expanded SSA
24317         partitions.
24318         (expand_used_vars): Don't create DECLs for anonymous SSA
24319         names.  Expand all SSA partitions, then adjust all SSA names.
24320         (pass::execute): Replace the loops that set
24321         SA.partition_to_pseudo from partition leaders and cleared
24322         DECL_RTL for multi-location variables, and that which used to
24323         rename vars and set attrs, with one that clears DECL_RTL and
24324         checks that PARMs and RESULTs default_defs match DECL_RTL.
24325         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24326         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24327         * explow.c (promote_ssa_mode): New.
24328         * explow.h (promote_ssa_mode): Declare.
24329         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24330         * function.c: Include cfgexpand.h.
24331         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24332         (use_register_for_parm_decl): Wrapper for the above to
24333         special-case the result_ptr.
24334         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24335         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24336         multiple locations.
24337         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24338         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
24339         (assign_parm_setup_block): Prefer SSA-assigned location.
24340         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
24341         if stack_parm is NULL.
24342         (assign_parm_setup_stack): Prefer SSA-assigned location.
24343         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
24344         rtl before testing for pointer bounds.  Special-case result_ptr.
24345         (expand_function_start): Maybe reset DECL_RTL of result.
24346         Prefer SSA-assigned location for result and static chain.
24347         Factor out DECL_RESULT and SET_DECL_RTL.
24348         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24349         anonymous SSA names.  Use promote_ssa_mode.
24350         (get_temp_reg): Likewise.
24351         (remove_ssa_form): Adjust.
24352         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24353         and get its reg_usage for reg invalidation.
24354         (compute_bb_dataflow): Pass it insn.
24355         (emit_notes_in_bb): Likewise.
24356         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24357         fail assert on conversion between unsigned types.
24359 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
24361         PR debug/58315
24362         * tree-inline.c (reset_debug_binding): New.
24363         (reset_debug_bindings): Likewise.
24364         (expand_call_inline): Call it.
24366 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
24368         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
24369         TYPE_STRING_FLAG.
24371 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
24373         * lto-streamer-out.c (lto_output_location): Stream
24374         reserved locations correctly.
24375         * lto-streamer-in.c (lto_output_location): Likewise.
24377 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
24379         * coretypes.h: Include hash-table.h and hash-set.h for host files.
24380         * ggc.h: Don't include statistics.h>
24381         * hash-map.h: Remove all includes.
24382         * hash-set.h: Likewise.
24383         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
24384         the include list. Remove <new>.
24385         * inchash.h: Remove all includes.
24386         * mem-stats.h: Likewise.
24387         * vec.h: No special processing for generators or ggc.
24388         * alias.c : Adjust include files.
24389         * alloc-pool.c : Likewise.
24390         * alloc-pool.h : Likewise.
24391         * asan.c : Likewise.
24392         * attribs.c : Likewise.
24393         * auto-inc-dec.c : Likewise.
24394         * auto-profile.c : Likewise.
24395         * bb-reorder.c : Likewise.
24396         * bitmap.c : Likewise.
24397         * bitmap.h : Likewise.
24398         * bt-load.c : Likewise.
24399         * builtins.c : Likewise.
24400         * caller-save.c : Likewise.
24401         * calls.c : Likewise.
24402         * ccmp.c : Likewise.
24403         * cfg.c : Likewise.
24404         * cfganal.c : Likewise.
24405         * cfgbuild.c : Likewise.
24406         * cfgcleanup.c : Likewise.
24407         * cfgexpand.c : Likewise.
24408         * cfghooks.c : Likewise.
24409         * cfgloop.c : Likewise.
24410         * cfgloop.h : Likewise.
24411         * cfgloopanal.c : Likewise.
24412         * cfgloopmanip.c : Likewise.
24413         * cfgrtl.c : Likewise.
24414         * cgraph.c : Likewise.
24415         * cgraphbuild.c : Likewise.
24416         * cgraphclones.c : Likewise.
24417         * cgraphunit.c : Likewise.
24418         * cilk-common.c : Likewise.
24419         * combine-stack-adj.c : Likewise.
24420         * combine.c : Likewise.
24421         * compare-elim.c : Likewise.
24422         * context.c : Likewise.
24423         * convert.c : Likewise.
24424         * coverage.c : Likewise.
24425         * cppbuiltin.c : Likewise.
24426         * cprop.c : Likewise.
24427         * cse.c : Likewise.
24428         * cselib.c : Likewise.
24429         * data-streamer-in.c : Likewise.
24430         * data-streamer-out.c : Likewise.
24431         * data-streamer.c : Likewise.
24432         * data-streamer.h : Likewise.
24433         * dbxout.c : Likewise.
24434         * dce.c : Likewise.
24435         * ddg.c : Likewise.
24436         * debug.c : Likewise.
24437         * df-core.c : Likewise.
24438         * df-problems.c : Likewise.
24439         * df-scan.c : Likewise.
24440         * df.h : Likewise.
24441         * dfp.c : Likewise.
24442         * dojump.c : Likewise.
24443         * dominance.c : Likewise.
24444         * domwalk.c : Likewise.
24445         * double-int.c : Likewise.
24446         * dse.c : Likewise.
24447         * dumpfile.c : Likewise.
24448         * dwarf2asm.c : Likewise.
24449         * dwarf2cfi.c : Likewise.
24450         * dwarf2out.c : Likewise.
24451         * emit-rtl.c : Likewise.
24452         * et-forest.c : Likewise.
24453         * except.c : Likewise.
24454         * except.h : Likewise.
24455         * explow.c : Likewise.
24456         * expmed.c : Likewise.
24457         * expr.c : Likewise.
24458         * final.c : Likewise.
24459         * fixed-value.c : Likewise.
24460         * fold-const.c : Likewise.
24461         * function.c : Likewise.
24462         * fwprop.c : Likewise.
24463         * gcc-plugin.h : Likewise.
24464         * gcc.c : Likewise.
24465         * gcse-common.c : Likewise.
24466         * gcse.c : Likewise.
24467         * genattrtab.c : Likewise.
24468         * genautomata.c : Likewise.
24469         * genconditions.c : Likewise.
24470         * genemit.c : Likewise.
24471         * generic-match-head.c : Likewise.
24472         * genextract.c : Likewise.
24473         * gengtype-state.c : Likewise.
24474         * gengtype.c : Likewise.
24475         * genhooks.c : Likewise.
24476         * genmatch.c : Likewise.
24477         * genmodes.c : Likewise.
24478         * genrecog.c : Likewise.
24479         * gensupport.c : Likewise.
24480         * ggc-common.c : Likewise.
24481         * ggc-internal.h : Likewise.
24482         * ggc-none.c : Likewise.
24483         * ggc-page.c : Likewise.
24484         * gimple-builder.c : Likewise.
24485         * gimple-expr.c : Likewise.
24486         * gimple-fold.c : Likewise.
24487         * gimple-iterator.c : Likewise.
24488         * gimple-low.c : Likewise.
24489         * gimple-match-head.c : Likewise.
24490         * gimple-pretty-print.c : Likewise.
24491         * gimple-ssa-isolate-paths.c : Likewise.
24492         * gimple-ssa-strength-reduction.c : Likewise.
24493         * gimple-ssa.h : Likewise.
24494         * gimple-streamer-in.c : Likewise.
24495         * gimple-streamer-out.c : Likewise.
24496         * gimple-streamer.h : Likewise.
24497         * gimple-walk.c : Likewise.
24498         * gimple.c : Likewise.
24499         * gimplify-me.c : Likewise.
24500         * gimplify.c : Likewise.
24501         * godump.c : Likewise.
24502         * graph.c : Likewise.
24503         * graphds.c : Likewise.
24504         * graphite-blocking.c : Likewise.
24505         * graphite-dependences.c : Likewise.
24506         * graphite-interchange.c : Likewise.
24507         * graphite-isl-ast-to-gimple.c : Likewise.
24508         * graphite-optimize-isl.c : Likewise.
24509         * graphite-poly.c : Likewise.
24510         * graphite-scop-detection.c : Likewise.
24511         * graphite-sese-to-poly.c : Likewise.
24512         * graphite.c : Likewise.
24513         * haifa-sched.c : Likewise.
24514         * hard-reg-set.h : Likewise.
24515         * hw-doloop.c : Likewise.
24516         * ifcvt.c : Likewise.
24517         * inchash.c : Likewise.
24518         * incpath.c : Likewise.
24519         * init-regs.c : Likewise.
24520         * input.c : Likewise.
24521         * internal-fn.c : Likewise.
24522         * ipa-chkp.c : Likewise.
24523         * ipa-comdats.c : Likewise.
24524         * ipa-cp.c : Likewise.
24525         * ipa-devirt.c : Likewise.
24526         * ipa-icf-gimple.c : Likewise.
24527         * ipa-icf.c : Likewise.
24528         * ipa-inline-analysis.c : Likewise.
24529         * ipa-inline-transform.c : Likewise.
24530         * ipa-inline.c : Likewise.
24531         * ipa-polymorphic-call.c : Likewise.
24532         * ipa-profile.c : Likewise.
24533         * ipa-prop.c : Likewise.
24534         * ipa-pure-const.c : Likewise.
24535         * ipa-ref.c : Likewise.
24536         * ipa-reference.c : Likewise.
24537         * ipa-split.c : Likewise.
24538         * ipa-utils.c : Likewise.
24539         * ipa-visibility.c : Likewise.
24540         * ipa.c : Likewise.
24541         * ira-build.c : Likewise.
24542         * ira-color.c : Likewise.
24543         * ira-conflicts.c : Likewise.
24544         * ira-costs.c : Likewise.
24545         * ira-emit.c : Likewise.
24546         * ira-lives.c : Likewise.
24547         * ira.c : Likewise.
24548         * jump.c : Likewise.
24549         * langhooks.c : Likewise.
24550         * lcm.c : Likewise.
24551         * libfuncs.h : Likewise.
24552         * lists.c : Likewise.
24553         * loop-doloop.c : Likewise.
24554         * loop-init.c : Likewise.
24555         * loop-invariant.c : Likewise.
24556         * loop-iv.c : Likewise.
24557         * loop-unroll.c : Likewise.
24558         * lower-subreg.c : Likewise.
24559         * lra-assigns.c : Likewise.
24560         * lra-coalesce.c : Likewise.
24561         * lra-constraints.c : Likewise.
24562         * lra-eliminations.c : Likewise.
24563         * lra-lives.c : Likewise.
24564         * lra-remat.c : Likewise.
24565         * lra-spills.c : Likewise.
24566         * lra.c : Likewise.
24567         * lto-cgraph.c : Likewise.
24568         * lto-compress.c : Likewise.
24569         * lto-opts.c : Likewise.
24570         * lto-section-in.c : Likewise.
24571         * lto-section-out.c : Likewise.
24572         * lto-streamer-in.c : Likewise.
24573         * lto-streamer-out.c : Likewise.
24574         * lto-streamer.c : Likewise.
24575         * lto-streamer.h : Likewise.
24576         * mcf.c : Likewise.
24577         * mode-switching.c : Likewise.
24578         * modulo-sched.c : Likewise.
24579         * omega.c : Likewise.
24580         * omp-low.c : Likewise.
24581         * optabs.c : Likewise.
24582         * opts-global.c : Likewise.
24583         * opts.h : Likewise.
24584         * passes.c : Likewise.
24585         * plugin.c : Likewise.
24586         * postreload-gcse.c : Likewise.
24587         * postreload.c : Likewise.
24588         * predict.c : Likewise.
24589         * print-rtl.c : Likewise.
24590         * print-tree.c : Likewise.
24591         * profile.c : Likewise.
24592         * read-md.c : Likewise.
24593         * read-md.h : Likewise.
24594         * read-rtl.c : Likewise.
24595         * real.c : Likewise.
24596         * realmpfr.c : Likewise.
24597         * recog.c : Likewise.
24598         * ree.c : Likewise.
24599         * reg-stack.c : Likewise.
24600         * regcprop.c : Likewise.
24601         * reginfo.c : Likewise.
24602         * regrename.c : Likewise.
24603         * regstat.c : Likewise.
24604         * reload.c : Likewise.
24605         * reload1.c : Likewise.
24606         * reorg.c : Likewise.
24607         * resource.c : Likewise.
24608         * rtl-chkp.c : Likewise.
24609         * rtl.c : Likewise.
24610         * rtl.h : Likewise.
24611         * rtlanal.c : Likewise.
24612         * rtlhash.c : Likewise.
24613         * rtlhash.h : Likewise.
24614         * rtlhooks.c : Likewise.
24615         * sanopt.c : Likewise.
24616         * sched-deps.c : Likewise.
24617         * sched-ebb.c : Likewise.
24618         * sched-rgn.c : Likewise.
24619         * sched-vis.c : Likewise.
24620         * sdbout.c : Likewise.
24621         * sel-sched-dump.c : Likewise.
24622         * sel-sched-ir.c : Likewise.
24623         * sel-sched-ir.h : Likewise.
24624         * sel-sched.c : Likewise.
24625         * sese.c : Likewise.
24626         * shrink-wrap.c : Likewise.
24627         * shrink-wrap.h : Likewise.
24628         * simplify-rtx.c : Likewise.
24629         * stack-ptr-mod.c : Likewise.
24630         * statistics.c : Likewise.
24631         * stmt.c : Likewise.
24632         * stor-layout.c : Likewise.
24633         * store-motion.c : Likewise.
24634         * stringpool.c : Likewise.
24635         * symtab.c : Likewise.
24636         * target-globals.c : Likewise.
24637         * targhooks.c : Likewise.
24638         * tlink.c : Likewise.
24639         * toplev.c : Likewise.
24640         * tracer.c : Likewise.
24641         * trans-mem.c : Likewise.
24642         * tree-affine.c : Likewise.
24643         * tree-affine.h : Likewise.
24644         * tree-browser.c : Likewise.
24645         * tree-call-cdce.c : Likewise.
24646         * tree-cfg.c : Likewise.
24647         * tree-cfgcleanup.c : Likewise.
24648         * tree-chkp-opt.c : Likewise.
24649         * tree-chkp.c : Likewise.
24650         * tree-chrec.c : Likewise.
24651         * tree-complex.c : Likewise.
24652         * tree-data-ref.c : Likewise.
24653         * tree-dfa.c : Likewise.
24654         * tree-diagnostic.c : Likewise.
24655         * tree-dump.c : Likewise.
24656         * tree-eh.c : Likewise.
24657         * tree-eh.h : Likewise.
24658         * tree-emutls.c : Likewise.
24659         * tree-hasher.h : Likewise.
24660         * tree-if-conv.c : Likewise.
24661         * tree-inline.c : Likewise.
24662         * tree-inline.h : Likewise.
24663         * tree-into-ssa.c : Likewise.
24664         * tree-iterator.c : Likewise.
24665         * tree-loop-distribution.c : Likewise.
24666         * tree-nested.c : Likewise.
24667         * tree-nrv.c : Likewise.
24668         * tree-object-size.c : Likewise.
24669         * tree-outof-ssa.c : Likewise.
24670         * tree-parloops.c : Likewise.
24671         * tree-phinodes.c : Likewise.
24672         * tree-predcom.c : Likewise.
24673         * tree-pretty-print.c : Likewise.
24674         * tree-profile.c : Likewise.
24675         * tree-scalar-evolution.c : Likewise.
24676         * tree-sra.c : Likewise.
24677         * tree-ssa-address.c : Likewise.
24678         * tree-ssa-alias.c : Likewise.
24679         * tree-ssa-ccp.c : Likewise.
24680         * tree-ssa-coalesce.c : Likewise.
24681         * tree-ssa-copy.c : Likewise.
24682         * tree-ssa-copyrename.c : Likewise.
24683         * tree-ssa-dce.c : Likewise.
24684         * tree-ssa-dom.c : Likewise.
24685         * tree-ssa-dse.c : Likewise.
24686         * tree-ssa-forwprop.c : Likewise.
24687         * tree-ssa-ifcombine.c : Likewise.
24688         * tree-ssa-live.c : Likewise.
24689         * tree-ssa-loop-ch.c : Likewise.
24690         * tree-ssa-loop-im.c : Likewise.
24691         * tree-ssa-loop-ivcanon.c : Likewise.
24692         * tree-ssa-loop-ivopts.c : Likewise.
24693         * tree-ssa-loop-manip.c : Likewise.
24694         * tree-ssa-loop-niter.c : Likewise.
24695         * tree-ssa-loop-prefetch.c : Likewise.
24696         * tree-ssa-loop-unswitch.c : Likewise.
24697         * tree-ssa-loop.c : Likewise.
24698         * tree-ssa-math-opts.c : Likewise.
24699         * tree-ssa-operands.c : Likewise.
24700         * tree-ssa-phiopt.c : Likewise.
24701         * tree-ssa-phiprop.c : Likewise.
24702         * tree-ssa-pre.c : Likewise.
24703         * tree-ssa-propagate.c : Likewise.
24704         * tree-ssa-reassoc.c : Likewise.
24705         * tree-ssa-sccvn.c : Likewise.
24706         * tree-ssa-scopedtables.c : Likewise.
24707         * tree-ssa-sink.c : Likewise.
24708         * tree-ssa-strlen.c : Likewise.
24709         * tree-ssa-structalias.c : Likewise.
24710         * tree-ssa-tail-merge.c : Likewise.
24711         * tree-ssa-ter.c : Likewise.
24712         * tree-ssa-threadedge.c : Likewise.
24713         * tree-ssa-threadupdate.c : Likewise.
24714         * tree-ssa-uncprop.c : Likewise.
24715         * tree-ssa-uninit.c : Likewise.
24716         * tree-ssa.c : Likewise.
24717         * tree-ssanames.c : Likewise.
24718         * tree-stdarg.c : Likewise.
24719         * tree-streamer-in.c : Likewise.
24720         * tree-streamer-out.c : Likewise.
24721         * tree-streamer.c : Likewise.
24722         * tree-streamer.h : Likewise.
24723         * tree-switch-conversion.c : Likewise.
24724         * tree-tailcall.c : Likewise.
24725         * tree-vect-data-refs.c : Likewise.
24726         * tree-vect-generic.c : Likewise.
24727         * tree-vect-loop-manip.c : Likewise.
24728         * tree-vect-loop.c : Likewise.
24729         * tree-vect-patterns.c : Likewise.
24730         * tree-vect-slp.c : Likewise.
24731         * tree-vect-stmts.c : Likewise.
24732         * tree-vectorizer.c : Likewise.
24733         * tree-vectorizer.h : Likewise.
24734         * tree-vrp.c : Likewise.
24735         * tree.c : Likewise.
24736         * tsan.c : Likewise.
24737         * ubsan.c : Likewise.
24738         * valtrack.c : Likewise.
24739         * valtrack.h : Likewise.
24740         * value-prof.c : Likewise.
24741         * var-tracking.c : Likewise.
24742         * varasm.c : Likewise.
24743         * varpool.c : Likewise.
24744         * vec.c: Likewise.
24745         * vmsdbgout.c : Likewise.
24746         * vtable-verify.c : Likewise.
24747         * vtable-verify.h : Likewise.
24748         * web.c : Likewise.
24749         * wide-int.cc : Likewise.
24750         * xcoffout.c : Likewise.
24751         * config/aarch64/aarch64-builtins.c : Likewise.
24752         * config/aarch64/aarch64.c : Likewise.
24753         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
24754         * config/alpha/alpha.c : Likewise.
24755         * config/arc/arc.c : Likewise.
24756         * config/arm/aarch-common.c : Likewise.
24757         * config/arm/arm-builtins.c : Likewise.
24758         * config/arm/arm-c.c : Likewise.
24759         * config/arm/arm.c : Likewise.
24760         * config/avr/avr-c.c : Likewise.
24761         * config/avr/avr-log.c : Likewise.
24762         * config/avr/avr.c : Likewise.
24763         * config/bfin/bfin.c : Likewise.
24764         * config/c6x/c6x.c : Likewise.
24765         * config/cr16/cr16.c : Likewise.
24766         * config/cris/cris.c : Likewise.
24767         * config/darwin-c.c : Likewise.
24768         * config/darwin.c : Likewise.
24769         * config/default-c.c : Likewise.
24770         * config/epiphany/epiphany.c : Likewise.
24771         * config/epiphany/mode-switch-use.c : Likewise.
24772         * config/epiphany/resolve-sw-modes.c : Likewise.
24773         * config/fr30/fr30.c : Likewise.
24774         * config/frv/frv.c : Likewise.
24775         * config/ft32/ft32.c : Likewise.
24776         * config/glibc-c.c : Likewise.
24777         * config/h8300/h8300.c : Likewise.
24778         * config/i386/i386-c.c : Likewise.
24779         * config/i386/i386.c : Likewise.
24780         * config/i386/msformat-c.c : Likewise.
24781         * config/i386/winnt-cxx.c : Likewise.
24782         * config/i386/winnt-stubs.c : Likewise.
24783         * config/i386/winnt.c : Likewise.
24784         * config/ia64/ia64-c.c : Likewise.
24785         * config/ia64/ia64.c : Likewise.
24786         * config/iq2000/iq2000.c : Likewise.
24787         * config/lm32/lm32.c : Likewise.
24788         * config/m32c/m32c-pragma.c : Likewise.
24789         * config/m32c/m32c.c : Likewise.
24790         * config/m32r/m32r.c : Likewise.
24791         * config/m68k/m68k.c : Likewise.
24792         * config/mcore/mcore.c : Likewise.
24793         * config/mep/mep-pragma.c : Likewise.
24794         * config/mep/mep.c : Likewise.
24795         * config/microblaze/microblaze-c.c : Likewise.
24796         * config/microblaze/microblaze.c : Likewise.
24797         * config/mips/mips.c : Likewise.
24798         * config/mmix/mmix.c : Likewise.
24799         * config/mn10300/mn10300.c : Likewise.
24800         * config/moxie/moxie.c : Likewise.
24801         * config/msp430/msp430-c.c : Likewise.
24802         * config/msp430/msp430.c : Likewise.
24803         * config/nds32/nds32-cost.c : Likewise.
24804         * config/nds32/nds32-fp-as-gp.c : Likewise.
24805         * config/nds32/nds32-intrinsic.c : Likewise.
24806         * config/nds32/nds32-isr.c : Likewise.
24807         * config/nds32/nds32-md-auxiliary.c : Likewise.
24808         * config/nds32/nds32-memory-manipulation.c : Likewise.
24809         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
24810         * config/nds32/nds32-predicates.c : Likewise.
24811         * config/nds32/nds32.c : Likewise.
24812         * config/nios2/nios2.c : Likewise.
24813         * config/nvptx/nvptx.c : Likewise.
24814         * config/pa/pa.c : Likewise.
24815         * config/pdp11/pdp11.c : Likewise.
24816         * config/rl78/rl78-c.c : Likewise.
24817         * config/rl78/rl78.c : Likewise.
24818         * config/rs6000/rs6000-c.c : Likewise.
24819         * config/rs6000/rs6000.c : Likewise.
24820         * config/rx/rx.c : Likewise.
24821         * config/s390/s390-c.c : Likewise.
24822         * config/s390/s390.c : Likewise.
24823         * config/sh/sh-c.c : Likewise.
24824         * config/sh/sh-mem.cc : Likewise.
24825         * config/sh/sh.c : Likewise.
24826         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
24827         * config/sh/sh_treg_combine.cc : Likewise.
24828         * config/sol2-c.c : Likewise.
24829         * config/sol2-cxx.c : Likewise.
24830         * config/sol2-stubs.c : Likewise.
24831         * config/sol2.c : Likewise.
24832         * config/sparc/sparc-c.c : Likewise.
24833         * config/sparc/sparc.c : Likewise.
24834         * config/spu/spu-c.c : Likewise.
24835         * config/spu/spu.c : Likewise.
24836         * config/stormy16/stormy16.c : Likewise.
24837         * config/tilegx/mul-tables.c : Likewise.
24838         * config/tilegx/tilegx-c.c : Likewise.
24839         * config/tilegx/tilegx.c : Likewise.
24840         * config/tilepro/mul-tables.c : Likewise.
24841         * config/tilepro/tilepro-c.c : Likewise.
24842         * config/tilepro/tilepro.c : Likewise.
24843         * config/v850/v850-c.c : Likewise.
24844         * config/v850/v850.c : Likewise.
24845         * config/vax/vax.c : Likewise.
24846         * config/visium/visium.c : Likewise.
24847         * config/vms/vms-c.c : Likewise.
24848         * config/vms/vms.c : Likewise.
24849         * config/vxworks.c : Likewise.
24850         * config/winnt-c.c : Likewise.
24851         * config/xtensa/xtensa.c : Likewise.
24853 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
24855         PR lto/65378
24856         * ipa-utils.h (warn_types_mismatch): Update prototype.
24857         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
24858         parameters.
24859         (type_mismatch_p): New function.
24860         (warn_types_mismatch): Reorg to work better on non-C++ types.
24861         (odr_types_equivalent_p): Add loc1/loc2 parameters.
24862         (add_type_duplicate): Update.
24864 2015-06-08  Tom de Vries  <tom@codesourcery.com>
24866         PR rtl-optimization/66444
24867         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
24868         call_used_regs.
24870 2015-06-08  Richard Biener  <rguenther@suse.de>
24872         PR tree-optimization/66422
24873         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
24874         block after inserted gcc_unreachable.
24876 2015-06-08  Nick Clifton  <nickc@redhat.com>
24878         * config/rx/rx.c (rx_function_value): Do not promote vector types.
24879         (rx_promote_function_mode): Likewise.
24880         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
24882 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
24884         * genattrtab.c (insn_alternatives): Change type from int *
24885         to uint64_t *.
24886         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
24887         (get_attr_value): Change type of num_alt to uint64_t.
24888         (compute_alternative_mask): Change return type from
24889         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
24890         (make_alternative_compare, mk_attr_alt): Change argument type
24891         from int to uint64_t.
24892         (simplify_test_exp): Change type of i from int to uint64_t.
24893         Shift ((uint64_t) 1) instead of 1 up.
24894         (main): Adjust oballocvec first argument from int to uint64_t.
24895         Shift ((uint64_t) 1) instead of 1 up.
24897 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
24899         PR other/65366
24900         * gdbhooks.py: Import sys.
24901         (intptr): New function.  Replace int(...) by intptr(...).
24903 2015-06-08  Richard Biener  <rguenther@suse.de>
24905         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
24906         adjustment for gaps at the end of a SLP load group properly.
24907         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
24908         all permutations we can generate.
24909         (vect_transform_slp_perm_load): Use the correct group-size.
24911 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
24913         * genmatch.c (expr::gen_transform): For conditions, guess the type
24914         from the second operand.
24916 2015-06-08  Tom de Vries  <tom@codesourcery.com>
24918         PR tree-optimization/66442
24919         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
24920         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
24921         if the loop latch is not a singleton.  Use
24922         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
24924 2015-06-08  Marek Polacek  <polacek@redhat.com>
24926         PR sanitizer/66452
24927         * toplev.c (check_global_declaration): Don't warn about artificial
24928         decls.
24930 2015-06-08  Tom de Vries  <tom@codesourcery.com>
24932         PR tree-optimization/66436
24933         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
24934         dump file.
24935         * gimplify.c: Add tree-dump.h include.
24936         (gimplify_function_tree): Dump function to gimple dump file.
24937         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
24938         dump file.
24940 2015-06-08  Tom de Vries  <tom@codesourcery.com>
24942         PR tree-optimization/66435
24943         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
24944         function.
24946 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
24948         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
24949         of ptr_type_node to not be ptr_to_node.
24950         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
24951         TREE_TYPE of pointers.
24952         * gimple-expr.c (useless_type_conversion): Reorder the check for
24953         function pointers and TYPE_CANONICAL.
24955 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
24957         PR bootstrap/66319
24958         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
24959         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
24960         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
24961         later.
24962         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
24963         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
24964         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
24965         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
24966         and non iso if unix2003.
24968 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
24970         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
24972 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
24974         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
24975         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
24976         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
24977         except.c, final.c, function.c, gcse-common.c, genemit.c,
24978         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
24979         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
24980         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
24981         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
24982         more derived ones.
24984 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
24986         * combine.c (combine_split_insns): Remove cast.
24987         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
24988         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
24989         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
24990         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
24991         * genemit.c (gen_split): Change return type of generated functions to
24992         rtx_insn.
24993         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
24994         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
24995         gen_peephole2_* functions.
24996         (print_subroutine, main): Likewise.
24997         * recog.c (peephole2_optimize): Remove cast.
24998         (peep2_next_insn): Promote return type to rtx_insn.
24999         * recog.h (peep2_next_insn): Fix prototype.
25000         * rtl.h (try_split, split_insns): Likewise.
25002 2015-06-06  DJ Delorie  <dj@redhat.com>
25004         * config/msp430/msp430.c (msp430_asm_integer): Support addition
25005         and subtraction too.
25007 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
25009         PR target/66410
25010         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
25011         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
25012         instead of Snd.  Disparage Sid/z alternative with '^'.
25014 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
25016         * dwarf2out.c: Remove deferred_locations*.
25017         (dwarf2_debug_hooks): Add early_finish hook.
25018         Remove global_decl hook.
25019         Add early_global_decl and late_global_decl hook.
25020         New global early_dwarf.
25021         New structure set_early_dwarf.
25022         (output_die): Indicate whether a DIE was generated early
25023         when generating assembly with -dA.
25024         (struct limbo_die_struct): Document created_for field.
25025         Remove file_table_last_lookup.
25026         (remove_AT): Return TRUE if successful.
25027         (remove_child_TAG): Clear die_parent.
25028         (reparent_child): New function abstracted from...
25029         (splice_child_die): ...here.
25030         (new_die): ICE if a DIE ends up in limbo too late.
25031         (check_die): New.
25032         (defer_location): Remove.
25033         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
25034         (fill_variable_array_bounds): New.
25035         (decl_start_label): Call fill_variable_array_bounds.
25036         (gen_formal_parameter_die): Rewrite to reuse previously generated
25037         DIEs.
25038         (gen_subprogram_die): Same.
25039         (gen_variable_die): Same.
25040         (gen_const_die): Same.
25041         (gen_label_die): Same.
25042         (gen_lexical_block_die): Same.
25043         (decl_will_get_specification_p): New.
25044         (local_function_static): New.
25045         (gen_struct_or_union_type_die): Fill in variable-length fields.
25046         (gen_typedef_die): Fill in variable-length typedefs.
25047         (gen_tagged_type_die): Gracefully return on error_mark_node.
25048         Handle re-entrancy.
25049         (gen_type_die_with_usage): Handle variable-length types.
25050         Remove duplicate code for ARRAY_TYPE case.
25051         (process_scope_var): Only process imported modules during early
25052         dwarf.
25053         (dwarf2out_early_global_decl): New.
25054         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
25055         (dwarf2out_type_decl): Set early_dwarf while calling
25056         dwarf2out_decl.
25057         (dwarf2out_decl): Verify that we did not recreate a previously
25058         generated DIE.
25059         Do not return on DECL_EXTERNALs in VAR_DECLs.
25060         Abstract some code to local_function_static.
25061         (lookup_filename): Remove use of file_table_last_lookup.
25062         Gracefully exit on missing file_name.
25063         (dwarf2out_finish): Verify limbo list.
25064         Remove deferred_locations_list use.
25065         Move deferred_asm_name and limbo flushing to...
25066         (dwarf2out_early_finish): ...here.  New.
25067         (dwarf2out_c_finalize): Remove set of deferred_location_list,
25068         deferred_asm_name, and file_table_last_lookup.
25069         * cgraph.h (referred_to_p): Add default argument.
25070         * cgraphunit.c (referred_to_p): Add and handle include_self
25071         argument.
25072         (analyze_functions): Add first_time argument.
25073         Call check_global_declaration for all symbols.
25074         Call late_global_decl for nodes for moribund nodes.
25075         (finalize_compilation_unit): Add new argument to
25076         analyze_functions.
25077         Call early_global_decl for functions.
25078         Call early_finish debug hook.
25079         * dbxout.c (dbxout_early_global_decl): New.
25080         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
25081         (dbx_debug_hooks): Add new hooks.
25082         (xcoff_debug_hooks): Same.
25083         * debug.c (do_nothing_debug_hooks): Add early_finish field.
25084         Add early and late debug hooks.
25085         Remove global_decl hook.
25086         * debug.h (struct gcc_debug_hooks): Add early_finish,
25087         early_global_decl, and late_global_decl fields.
25088         Remove global_decl field.
25089         Document gcc_debug_hooks.
25090         * gengtype.c (output_typename): Remove.
25091         * godump.c (go_early_global_decl): New.
25092         (go_late_global_decl): New.
25093         (go_global_decl): Remove.
25094         (dump_go_spec_init): Remove global_decl.  Add
25095         {early,late}_global_decl.
25096         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
25097         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
25098         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
25099         (write_global_declarations): Remove.
25100         (global_decl_processing): New.
25101         * langhooks.h (struct lang_hooks_for_decls): Remove
25102         final_write_globals field.
25103         Add post_compilation_parsing_cleanups field.
25104         * passes.c (rest_of_decl_compilation): Call early_global_decl.
25105         * sdbout.c: Add early and late_global_decl hooks.  Remove
25106         sdbout_global_decl hook.
25107         Add early_finish field for sdb_debug_hooks.
25108         (sdbout_global_decl): Remove.
25109         (sdbout_early_global_decl): New.
25110         (sdbout_late_global_decl): New.
25111         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
25112         * toplev.c (check_global_declaration): Rename from
25113         check_global_declaration_1.
25114         Adapt to use symtab infrastructure.
25115         (check_global_declarations): Remove.
25116         (emit_debug_global_declarations): Remove.
25117         (compile_file): Remove call to final_write_globals langhook.
25118         Run the actual compilation process.
25119         Perform any post compilation parser cleanups.
25120         Generate late debug info.
25121         * toplev.h (check_global_declaration): New.
25122         (check_global_declaration_1): Remove.
25123         (check_global_declarations): Remove.
25124         (write_global_declarations): Remove.
25125         (emit_debug_global_declarations): Remove.
25126         (global_decl_processing): New.
25127         * tree-core.h (struct tree_block): Add DIE field.
25128         * tree.h (BLOCK_DIE): New.
25129         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
25130         throughout.
25131         (vmsdbgout_early_global_decl): New.
25132         (vmsdbgout_late_global_decl): New.
25133         Add early_finish debug hook field to vmsdbg_debug_hooks.
25134         Remove vmsdbgout_decl to vmsdbgout_function_decl.
25135         Add early and late_global_decl debug hooks.
25137 2015-06-05  Julian Brown  <julian@codesourcery.com>
25138             Sandra Loosemore  <sandra@codesourcery.com>
25140         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
25141         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
25142         to print-sysroot-suffix.sh script.
25144 2015-06-05  Tom de Vries  <tom@codesourcery.com>
25146         merge from gomp4 branch:
25147         2015-05-28  Tom de Vries  <tom@codesourcery.com>
25149         PR tree-optimization/65443
25150         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
25151         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
25152         (try_transform_to_exit_first_loop_alt): New function.
25153         (transform_to_exit_first_loop): Use
25154         try_transform_to_exit_first_loop_alt.
25156 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
25158         * builtins.c (expand_builtin_atomic_compare_exchange): Call
25159         emit_cmp_and_jump_insns with the mode of target.
25161 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
25163         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
25165 2015-06-04  DJ Delorie  <dj@redhat.com>
25167         * config/msp430/msp430.md (movsi_s): New.  Special case for
25168         storing a 20-bit symbol into a 32-bit register.
25169         * config/msp430/msp430.c (msp430_subreg): Add support for it.
25170         * config/msp430/predicates.md (msp430_symbol_operand): New.
25172 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
25174         * c-family/c-common.c (noplt): New attribute.
25175         (handle_noplt_attribute): New handler.
25176         * calls.c (prepare_call_address): Check for noplt
25177         attribute.
25178         * config/i386/i386.c (ix86_expand_call): Check
25179         for noplt attribute.
25180         (ix86_nopic_noplt_attribute_p): New function.
25181         (ix86_output_call_insn): Output indirect call for non-pic
25182         no plt calls.
25183         * doc/extend.texi (noplt): Document new attribute.
25184         * doc/invoke.texi: Document new attribute.
25186 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
25188         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
25189         real.h, and fixed-value.h when included in host source files.
25190         * double-int.h: Remove redundant #includes listed above.
25191         * fixed-value.h: Likewise.
25192         * real.h: Likewise.
25193         * wide-int.h: Likewise.
25194         * inchash.h: Likewise.
25195         * rtl.h: Add some include files When included from a generator file.
25196         * target.h: Remove wide-int.h and insn-modes.h from the include list.
25197         * internal-fn.h: Don't include coretypes.h.
25198         * alias.c: Adjust includes for restructured coretypes.h.
25199         * asan.c: Likewise.
25200         * attribs.c: Likewise.
25201         * auto-inc-dec.c: Likewise.
25202         * auto-profile.c: Likewise.
25203         * bb-reorder.c: Likewise.
25204         * bt-load.c: Likewise.
25205         * builtins.c: Likewise.
25206         * caller-save.c: Likewise.
25207         * calls.c: Likewise.
25208         * ccmp.c: Likewise.
25209         * cfg.c: Likewise.
25210         * cfganal.c: Likewise.
25211         * cfgbuild.c: Likewise.
25212         * cfgcleanup.c: Likewise.
25213         * cfgexpand.c: Likewise.
25214         * cfghooks.c: Likewise.
25215         * cfgloop.c: Likewise.
25216         * cfgloop.h: Likewise.
25217         * cfgloopanal.c: Likewise.
25218         * cfgloopmanip.c: Likewise.
25219         * cfgrtl.c: Likewise.
25220         * cgraph.c: Likewise.
25221         * cgraphbuild.c: Likewise.
25222         * cgraphclones.c: Likewise.
25223         * cgraphunit.c: Likewise.
25224         * cilk-common.c: Likewise.
25225         * combine-stack-adj.c: Likewise.
25226         * combine.c: Likewise.
25227         * compare-elim.c: Likewise.
25228         * convert.c: Likewise.
25229         * coverage.c: Likewise.
25230         * cppbuiltin.c: Likewise.
25231         * cprop.c: Likewise.
25232         * cse.c: Likewise.
25233         * cselib.c: Likewise.
25234         * data-streamer-in.c: Likewise.
25235         * data-streamer-out.c: Likewise.
25236         * data-streamer.c: Likewise.
25237         * dbxout.c: Likewise.
25238         * dce.c: Likewise.
25239         * ddg.c: Likewise.
25240         * debug.c: Likewise.
25241         * df-core.c: Likewise.
25242         * df-problems.c: Likewise.
25243         * df-scan.c: Likewise.
25244         * df.h: Likewise.
25245         * dfp.c: Likewise.
25246         * dojump.c: Likewise.
25247         * dominance.c: Likewise.
25248         * domwalk.c: Likewise.
25249         * double-int.c: Likewise.
25250         * dse.c: Likewise.
25251         * dumpfile.c: Likewise.
25252         * dwarf2asm.c: Likewise.
25253         * dwarf2cfi.c: Likewise.
25254         * dwarf2out.c: Likewise.
25255         * dwarf2out.h: Likewise.
25256         * emit-rtl.c: Likewise.
25257         * et-forest.c: Likewise.
25258         * except.c: Likewise.
25259         * explow.c: Likewise.
25260         * expmed.c: Likewise.
25261         * expr.c: Likewise.
25262         * final.c: Likewise.
25263         * fixed-value.c: Likewise.
25264         * fold-const.c: Likewise.
25265         * function.c: Likewise.
25266         * fwprop.c: Likewise.
25267         * gcc-plugin.h: Likewise.
25268         * gcse.c: Likewise.
25269         * generic-match-head.c: Likewise.
25270         * ggc-page.c: Likewise.
25271         * gimple-builder.c: Likewise.
25272         * gimple-expr.c: Likewise.
25273         * gimple-fold.c: Likewise.
25274         * gimple-iterator.c: Likewise.
25275         * gimple-low.c: Likewise.
25276         * gimple-match-head.c: Likewise.
25277         * gimple-pretty-print.c: Likewise.
25278         * gimple-ssa-isolate-paths.c: Likewise.
25279         * gimple-ssa-strength-reduction.c: Likewise.
25280         * gimple-streamer-in.c: Likewise.
25281         * gimple-streamer-out.c: Likewise.
25282         * gimple-streamer.h: Likewise.
25283         * gimple-walk.c: Likewise.
25284         * gimple.c: Likewise.
25285         * gimplify-me.c: Likewise.
25286         * gimplify.c: Likewise.
25287         * godump.c: Likewise.
25288         * graph.c: Likewise.
25289         * graphite-blocking.c: Likewise.
25290         * graphite-dependences.c: Likewise.
25291         * graphite-interchange.c: Likewise.
25292         * graphite-isl-ast-to-gimple.c: Likewise.
25293         * graphite-optimize-isl.c: Likewise.
25294         * graphite-poly.c: Likewise.
25295         * graphite-scop-detection.c: Likewise.
25296         * graphite-sese-to-poly.c: Likewise.
25297         * graphite.c: Likewise.
25298         * haifa-sched.c: Likewise.
25299         * hooks.h: Likewise.
25300         * hw-doloop.c: Likewise.
25301         * ifcvt.c: Likewise.
25302         * incpath.c: Likewise.
25303         * init-regs.c: Likewise.
25304         * internal-fn.c: Likewise.
25305         * ipa-chkp.c: Likewise.
25306         * ipa-comdats.c: Likewise.
25307         * ipa-cp.c: Likewise.
25308         * ipa-devirt.c: Likewise.
25309         * ipa-icf-gimple.c: Likewise.
25310         * ipa-icf.c: Likewise.
25311         * ipa-inline-analysis.c: Likewise.
25312         * ipa-inline-transform.c: Likewise.
25313         * ipa-inline.c: Likewise.
25314         * ipa-polymorphic-call.c: Likewise.
25315         * ipa-profile.c: Likewise.
25316         * ipa-prop.c: Likewise.
25317         * ipa-pure-const.c: Likewise.
25318         * ipa-ref.c: Likewise.
25319         * ipa-reference.c: Likewise.
25320         * ipa-split.c: Likewise.
25321         * ipa-utils.c: Likewise.
25322         * ipa-visibility.c: Likewise.
25323         * ipa.c: Likewise.
25324         * ira-build.c: Likewise.
25325         * ira-color.c: Likewise.
25326         * ira-conflicts.c: Likewise.
25327         * ira-costs.c: Likewise.
25328         * ira-emit.c: Likewise.
25329         * ira-lives.c: Likewise.
25330         * ira.c: Likewise.
25331         * jump.c: Likewise.
25332         * langhooks.c: Likewise.
25333         * lcm.c: Likewise.
25334         * loop-doloop.c: Likewise.
25335         * loop-init.c: Likewise.
25336         * loop-invariant.c: Likewise.
25337         * loop-iv.c: Likewise.
25338         * loop-unroll.c: Likewise.
25339         * lower-subreg.c: Likewise.
25340         * lra-assigns.c: Likewise.
25341         * lra-coalesce.c: Likewise.
25342         * lra-constraints.c: Likewise.
25343         * lra-eliminations.c: Likewise.
25344         * lra-lives.c: Likewise.
25345         * lra-remat.c: Likewise.
25346         * lra-spills.c: Likewise.
25347         * lra.c: Likewise.
25348         * lto-cgraph.c: Likewise.
25349         * lto-compress.c: Likewise.
25350         * lto-opts.c: Likewise.
25351         * lto-section-in.c: Likewise.
25352         * lto-section-out.c: Likewise.
25353         * lto-streamer-in.c: Likewise.
25354         * lto-streamer-out.c: Likewise.
25355         * lto-streamer.c: Likewise.
25356         * mcf.c: Likewise.
25357         * mode-switching.c: Likewise.
25358         * modulo-sched.c: Likewise.
25359         * omega.c: Likewise.
25360         * omp-low.c: Likewise.
25361         * optabs.c: Likewise.
25362         * opts-global.c: Likewise.
25363         * passes.c: Likewise.
25364         * plugin.c: Likewise.
25365         * postreload-gcse.c: Likewise.
25366         * postreload.c: Likewise.
25367         * predict.c: Likewise.
25368         * print-rtl.c: Likewise.
25369         * print-tree.c: Likewise.
25370         * profile.c: Likewise.
25371         * real.c: Likewise.
25372         * realmpfr.c: Likewise.
25373         * realmpfr.h: Likewise.
25374         * recog.c: Likewise.
25375         * ree.c: Likewise.
25376         * reg-stack.c: Likewise.
25377         * regcprop.c: Likewise.
25378         * reginfo.c: Likewise.
25379         * regrename.c: Likewise.
25380         * regs.h: Likewise.
25381         * regstat.c: Likewise.
25382         * reload.c: Likewise.
25383         * reload1.c: Likewise.
25384         * reorg.c: Likewise.
25385         * resource.c: Likewise.
25386         * rtl-chkp.c: Likewise.
25387         * rtlanal.c: Likewise.
25388         * rtlhooks.c: Likewise.
25389         * sanopt.c: Likewise.
25390         * sched-deps.c: Likewise.
25391         * sched-ebb.c: Likewise.
25392         * sched-rgn.c: Likewise.
25393         * sched-vis.c: Likewise.
25394         * sdbout.c: Likewise.
25395         * sel-sched-dump.c: Likewise.
25396         * sel-sched-ir.c: Likewise.
25397         * sel-sched.c: Likewise.
25398         * sese.c: Likewise.
25399         * shrink-wrap.c: Likewise.
25400         * shrink-wrap.h: Likewise.
25401         * simplify-rtx.c: Likewise.
25402         * stack-ptr-mod.c: Likewise.
25403         * statistics.c: Likewise.
25404         * stmt.c: Likewise.
25405         * stor-layout.c: Likewise.
25406         * store-motion.c: Likewise.
25407         * stringpool.c: Likewise.
25408         * symtab.c: Likewise.
25409         * target-globals.c: Likewise.
25410         * targhooks.c: Likewise.
25411         * toplev.c: Likewise.
25412         * tracer.c: Likewise.
25413         * trans-mem.c: Likewise.
25414         * tree-affine.c: Likewise.
25415         * tree-affine.h: Likewise.
25416         * tree-browser.c: Likewise.
25417         * tree-call-cdce.c: Likewise.
25418         * tree-cfg.c: Likewise.
25419         * tree-cfgcleanup.c: Likewise.
25420         * tree-chkp-opt.c: Likewise.
25421         * tree-chkp.c: Likewise.
25422         * tree-chrec.c: Likewise.
25423         * tree-complex.c: Likewise.
25424         * tree-data-ref.c: Likewise.
25425         * tree-dfa.c: Likewise.
25426         * tree-diagnostic.c: Likewise.
25427         * tree-dump.c: Likewise.
25428         * tree-eh.c: Likewise.
25429         * tree-emutls.c: Likewise.
25430         * tree-if-conv.c: Likewise.
25431         * tree-inline.c: Likewise.
25432         * tree-into-ssa.c: Likewise.
25433         * tree-iterator.c: Likewise.
25434         * tree-loop-distribution.c: Likewise.
25435         * tree-nested.c: Likewise.
25436         * tree-nrv.c: Likewise.
25437         * tree-object-size.c: Likewise.
25438         * tree-outof-ssa.c: Likewise.
25439         * tree-parloops.c: Likewise.
25440         * tree-phinodes.c: Likewise.
25441         * tree-predcom.c: Likewise.
25442         * tree-pretty-print.c: Likewise.
25443         * tree-pretty-print.h: Likewise.
25444         * tree-profile.c: Likewise.
25445         * tree-scalar-evolution.c: Likewise.
25446         * tree-sra.c: Likewise.
25447         * tree-ssa-address.c: Likewise.
25448         * tree-ssa-alias.c: Likewise.
25449         * tree-ssa-ccp.c: Likewise.
25450         * tree-ssa-coalesce.c: Likewise.
25451         * tree-ssa-copy.c: Likewise.
25452         * tree-ssa-copyrename.c: Likewise.
25453         * tree-ssa-dce.c: Likewise.
25454         * tree-ssa-dom.c: Likewise.
25455         * tree-ssa-dse.c: Likewise.
25456         * tree-ssa-forwprop.c: Likewise.
25457         * tree-ssa-ifcombine.c: Likewise.
25458         * tree-ssa-live.c: Likewise.
25459         * tree-ssa-loop-ch.c: Likewise.
25460         * tree-ssa-loop-im.c: Likewise.
25461         * tree-ssa-loop-ivcanon.c: Likewise.
25462         * tree-ssa-loop-ivopts.c: Likewise.
25463         * tree-ssa-loop-manip.c: Likewise.
25464         * tree-ssa-loop-niter.c: Likewise.
25465         * tree-ssa-loop-prefetch.c: Likewise.
25466         * tree-ssa-loop-unswitch.c: Likewise.
25467         * tree-ssa-loop.c: Likewise.
25468         * tree-ssa-loop.h: Likewise.
25469         * tree-ssa-math-opts.c: Likewise.
25470         * tree-ssa-operands.c: Likewise.
25471         * tree-ssa-phiopt.c: Likewise.
25472         * tree-ssa-phiprop.c: Likewise.
25473         * tree-ssa-pre.c: Likewise.
25474         * tree-ssa-propagate.c: Likewise.
25475         * tree-ssa-reassoc.c: Likewise.
25476         * tree-ssa-sccvn.c: Likewise.
25477         * tree-ssa-scopedtables.c: Likewise.
25478         * tree-ssa-sink.c: Likewise.
25479         * tree-ssa-strlen.c: Likewise.
25480         * tree-ssa-structalias.c: Likewise.
25481         * tree-ssa-tail-merge.c: Likewise.
25482         * tree-ssa-ter.c: Likewise.
25483         * tree-ssa-threadedge.c: Likewise.
25484         * tree-ssa-threadupdate.c: Likewise.
25485         * tree-ssa-uncprop.c: Likewise.
25486         * tree-ssa-uninit.c: Likewise.
25487         * tree-ssa.c: Likewise.
25488         * tree-ssanames.c: Likewise.
25489         * tree-stdarg.c: Likewise.
25490         * tree-streamer-in.c: Likewise.
25491         * tree-streamer-out.c: Likewise.
25492         * tree-streamer.c: Likewise.
25493         * tree-switch-conversion.c: Likewise.
25494         * tree-tailcall.c: Likewise.
25495         * tree-vect-data-refs.c: Likewise.
25496         * tree-vect-generic.c: Likewise.
25497         * tree-vect-loop-manip.c: Likewise.
25498         * tree-vect-loop.c: Likewise.
25499         * tree-vect-patterns.c: Likewise.
25500         * tree-vect-slp.c: Likewise.
25501         * tree-vect-stmts.c: Likewise.
25502         * tree-vectorizer.c: Likewise.
25503         * tree-vrp.c: Likewise.
25504         * tree.c: Likewise.
25505         * tsan.c: Likewise.
25506         * ubsan.c: Likewise.
25507         * valtrack.c: Likewise.
25508         * value-prof.c: Likewise.
25509         * var-tracking.c: Likewise.
25510         * varasm.c: Likewise.
25511         * varpool.c: Likewise.
25512         * vmsdbgout.c: Likewise.
25513         * vtable-verify.c: Likewise.
25514         * web.c: Likewise.
25515         * wide-int-print.cc: Likewise.
25516         * wide-int-print.h: Likewise.
25517         * wide-int.cc: Likewise.
25518         * xcoffout.c: Likewise.
25519         * config/aarch64/aarch64-builtins.c: Likewise.
25520         * config/aarch64/aarch64.c: Likewise.
25521         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25522         * config/alpha/alpha.c: Likewise.
25523         * config/arc/arc.c: Likewise.
25524         * config/arm/aarch-common.c: Likewise.
25525         * config/arm/arm-builtins.c: Likewise.
25526         * config/arm/arm-c.c: Likewise.
25527         * config/arm/arm.c: Likewise.
25528         * config/avr/avr-c.c: Likewise.
25529         * config/avr/avr-log.c: Likewise.
25530         * config/avr/avr.c: Likewise.
25531         * config/bfin/bfin.c: Likewise.
25532         * config/c6x/c6x.c: Likewise.
25533         * config/cr16/cr16.c: Likewise.
25534         * config/cris/cris.c: Likewise.
25535         * config/darwin-c.c: Likewise.
25536         * config/darwin.c: Likewise.
25537         * config/default-c.c: Likewise.
25538         * config/epiphany/epiphany.c: Likewise.
25539         * config/epiphany/mode-switch-use.c: Likewise.
25540         * config/epiphany/resolve-sw-modes.c: Likewise.
25541         * config/fr30/fr30.c: Likewise.
25542         * config/frv/frv.c: Likewise.
25543         * config/ft32/ft32.c: Likewise.
25544         * config/glibc-c.c: Likewise.
25545         * config/h8300/h8300.c: Likewise.
25546         * config/i386/i386-c.c: Likewise.
25547         * config/i386/i386.c: Likewise.
25548         * config/i386/msformat-c.c: Likewise.
25549         * config/i386/winnt-cxx.c: Likewise.
25550         * config/i386/winnt-stubs.c: Likewise.
25551         * config/i386/winnt.c: Likewise.
25552         * config/ia64/ia64-c.c: Likewise.
25553         * config/ia64/ia64.c: Likewise.
25554         * config/iq2000/iq2000.c: Likewise.
25555         * config/lm32/lm32.c: Likewise.
25556         * config/m32c/m32c-pragma.c: Likewise.
25557         * config/m32c/m32c.c: Likewise.
25558         * config/m32r/m32r.c: Likewise.
25559         * config/m68k/m68k.c: Likewise.
25560         * config/mcore/mcore.c: Likewise.
25561         * config/mep/mep-pragma.c: Likewise.
25562         * config/mep/mep.c: Likewise.
25563         * config/microblaze/microblaze-c.c: Likewise.
25564         * config/microblaze/microblaze.c: Likewise.
25565         * config/mips/mips.c: Likewise.
25566         * config/mmix/mmix.c: Likewise.
25567         * config/mn10300/mn10300.c: Likewise.
25568         * config/moxie/moxie.c: Likewise.
25569         * config/msp430/msp430-c.c: Likewise.
25570         * config/msp430/msp430.c: Likewise.
25571         * config/nds32/nds32-cost.c: Likewise.
25572         * config/nds32/nds32-fp-as-gp.c: Likewise.
25573         * config/nds32/nds32-intrinsic.c: Likewise.
25574         * config/nds32/nds32-isr.c: Likewise.
25575         * config/nds32/nds32-md-auxiliary.c: Likewise.
25576         * config/nds32/nds32-memory-manipulation.c: Likewise.
25577         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25578         * config/nds32/nds32-predicates.c: Likewise.
25579         * config/nds32/nds32.c: Likewise.
25580         * config/nios2/nios2.c: Likewise.
25581         * config/nvptx/nvptx.c: Likewise.
25582         * config/pa/pa.c: Likewise.
25583         * config/pdp11/pdp11.c: Likewise.
25584         * config/rl78/rl78-c.c: Likewise.
25585         * config/rl78/rl78.c: Likewise.
25586         * config/rs6000/rs6000-c.c: Likewise.
25587         * config/rs6000/rs6000.c: Likewise.
25588         * config/rx/rx.c: Likewise.
25589         * config/s390/s390-c.c: Likewise.
25590         * config/s390/s390.c: Likewise.
25591         * config/sh/sh-c.c: Likewise.
25592         * config/sh/sh-mem.cc: Likewise.
25593         * config/sh/sh.c: Likewise.
25594         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25595         * config/sh/sh_treg_combine.cc: Likewise.
25596         * config/sol2-c.c: Likewise.
25597         * config/sol2-cxx.c: Likewise.
25598         * config/sol2-stubs.c: Likewise.
25599         * config/sol2.c: Likewise.
25600         * config/sparc/sparc-c.c: Likewise.
25601         * config/sparc/sparc.c: Likewise.
25602         * config/spu/spu-c.c: Likewise.
25603         * config/spu/spu.c: Likewise.
25604         * config/stormy16/stormy16.c: Likewise.
25605         * config/tilegx/mul-tables.c: Likewise.
25606         * config/tilegx/tilegx-c.c: Likewise.
25607         * config/tilegx/tilegx.c: Likewise.
25608         * config/tilepro/mul-tables.c: Likewise.
25609         * config/tilepro/tilepro-c.c: Likewise.
25610         * config/tilepro/tilepro.c: Likewise.
25611         * config/v850/v850-c.c: Likewise.
25612         * config/v850/v850.c: Likewise.
25613         * config/vax/vax.c: Likewise.
25614         * config/visium/visium.c: Likewise.
25615         * config/vms/vms-c.c: Likewise.
25616         * config/vms/vms.c: Likewise.
25617         * config/vxworks.c: Likewise.
25618         * config/winnt-c.c: Likewise.
25619         * config/xtensa/xtensa.c: Likewise.
25620         * common/config/bfin/bfin-common.c: Likewise.
25622 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
25624         * tree.h (tree_code_for_canonical_type_merging): New function.
25625         * tree.c (gimple_canonical_types_compatible_p): Use
25626         tree_code_for_canonical_type_merging..
25628 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25630         PR c++/66192
25631         PR target/66200
25632         * doc/tm.texi: Regenerate.
25633         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
25634         * target.def (TARGET_RELAXED_ORDERING): Likewise.
25635         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
25636         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
25637         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
25638         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
25639         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
25640         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
25641         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
25643 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25645         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
25646         register fma steering pass.
25647         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
25648         AARCH64_TUNE_FMA_STEERING.
25650 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
25652         * tree.c (verify_type_variant): Verify that type and variant is
25653         compatible.
25654         (gimple_canonical_types_compatible_p): Look for main variants.
25656 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
25658         * config.gcc (powerpc*-*-*): Add support for a new configure
25659         option --with-advance-toolchain=<xxx> which overrides using the
25660         default header files, libraries and dynamic linker.
25662         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
25663         specs to support the configure --with-advance-toolchain=<xxx>
25664         option.
25665         (INCLUDE_EXTRA_SPEC): Likewise.
25666         (LINK_OS_EXTRA_SPEC32): Likewise.
25667         (LINK_OK_EXTRA_SPEC64): Likewise.
25668         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
25669         (DYNAMIC_LINKER_PREFIX): Likewise.
25670         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
25671         toolchain support.
25672         (GLIBC_DYNAMIC_LINKER32): Likewise.
25673         (GLIBC_DYNAMIC_LINKER64): Likewise.
25674         (LINK_OS_LINUX_SPEC32): Likewise.
25675         (LINK_OS_LINUX_SPEC64): Likewise.
25677         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
25678         configuration option.
25680 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
25682         PR target/66275
25683         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
25684         to determine current function ABI.
25685         (ix86_function_value_regno_p): Ditto.
25687 2015-06-03  Martin Liska  <mliska@suse.cz>
25689         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
25690         * bitmap.h (struct bitmap_usage): Likewise.
25691         * ggc-common.c (struct ggc_usage): Likewise.
25692         * mem-stats.h (struct mem_location): Likewise.
25693         (struct mem_usage): Likewise.
25694         * vec.c (struct vec_usage): Likewise.
25696 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
25698         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
25699         -Bsymbolic.
25701 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
25703         * doc/plugins.texi (enum plugin_event): New event.
25704         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
25705         and PLUGIN_FINISH_FUNCTION.
25706         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
25707         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
25709 2015-06-03  Richard Biener  <rguenther@suse.de>
25711         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
25712         compute GROUP_GAP for the first element.
25713         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
25714         on in-group gaps.
25716 2015-06-03  Nick Clifton  <nickc@redhat.com>
25718         * config/rl78/rl78-real.md: Add peepholes to avoid a register
25719         copy when calling a function.
25720         * config/rl78/rl78.c (need_to_save): Do not push the frame
25721         pointer in an interrupt handler prologue if it is never used.
25723 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25725         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
25727 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
25729         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
25730         reference when cloning alias node.
25732 2015-06-03  Martin Liska  <mliska@suse.cz>
25734         * alloc-pool.h (struct pool_usage): Correct space padding.
25735         * ggc-page.c (ggc_print_statistics): Align columns in a report.
25736         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
25737         * tree.c (dump_tree_statistics): Align columns in a report.
25739 2015-06-03  Martin Liska  <mliska@suse.cz>
25741         * alloc-pool.c (allocate_pool_descriptor): Remove.
25742         (struct pool_output_info): Likewise.
25743         (print_alloc_pool_statistics): Likewise.
25744         (dump_alloc_pool_statistics): Likewise.
25745         * alloc-pool.h (struct pool_usage): New struct.
25746         (pool_allocator::initialize): Change usage of memory statistics
25747         to a new interface.
25748         (pool_allocator::release): Likewise.
25749         (pool_allocator::allocate): Likewise.
25750         (pool_allocator::remove): Likewise.
25751         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
25752         for a pool allocator.
25753         * mem-stats.h (struct mem_location): Add new ctor.
25754         (struct mem_usage): Add counter for number of
25755         instances.
25756         (mem_alloc_description::register_descriptor): New overload of
25757         * mem-stats.h (mem_location::to_string): New function.
25758         * bitmap.h (struct bitmap_usage): Use this new function.
25759         * ggc-common.c (struct ggc_usage): Likewise.
25760         the function.
25762 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
25764         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
25765         of GCC_INSN_FLAGS_H block.
25767 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
25769         * explow.c (plus_constant): Update check after force_const_mem call
25770         to see if the value returned is not a NULL_RTX.
25772 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
25774         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
25775         remove instumentation thunks calling reachable functions.
25776         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
25777         * lto/lto-partition.c (privatize_symbol_name_1): New.
25778         (privatize_symbol_name): Privatize both decl and orig_decl
25779         names for instrumented functions.
25780         * cgraph.c (cgraph_node::verify_node): Add transparent
25781         alias chain check for instrumented node.
25783 2015-06-03  Marek Polacek  <polacek@redhat.com>
25785         PR c/64223
25786         PR c/29358
25787         * tree.c (attribute_value_equal): Handle attribute format.
25788         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
25790 2015-06-03  Richard Biener  <rguenther@suse.de>
25792         PR tree-optimization/63916
25793         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
25794         Forward-propagate non-invariant addresses by splicing their
25795         reference ops if the result isn't going to be used by PRE.
25796         (vn_reference_lookup_3): Remove pointless assert.
25798 2015-06-03  Richard Biener  <rguenther@suse.de>
25800         PR tree-optimization/66375
25801         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
25802         add to the evolution before following SSA edges.
25804 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
25806         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
25807         (dump_use, dump_cand, find_induction_variables): Pass new argument
25808         to dump_iv.
25809         (record_use): Preserve the ssa name information in IV.
25811 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
25813         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
25814         NO_MODE_TEST.
25815         (add_mode_tests): Don't add mode tests if the predicate only
25816         accepts scalar constant integers.  Otherwise, allow the mode
25817         of "op" to be VOIDmode if the predicate does accept such integers.
25819 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
25821         PR target/66258
25822         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
25823         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
25824         (aarch64_secondary_reload): Likewise
25825         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
25826         to !TARGET_FLOAT.
25827         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
25828         Likewise.
25830 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
25831             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25833         PR target/65768
25834         * cprop.c (try_replace_reg): Check cost of constants before propagating.
25836 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25838         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
25839         provide access to the IBM extended double floating point mode if
25840         long double is IEEE 128-bit floating point.
25841         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
25842         point if long double is the IBM extended double type.
25844         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
25845         enable adding IEEE 128-bit floating point support.
25846         (-mfloat128-software): Likewise.
25847         (-mfloat128-sw): Likewise.
25849         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
25850         128-bit floating point types to occupy any register if
25851         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
25852         -mfloat128-software is enabled.
25853         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
25854         support.
25855         (rs6000_option_override_internal): Add -mfloat128-* support.
25856         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
25858         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
25859         and float128 type nodes.
25860         (ieee128_float_type_node): Likewise.
25861         (ibm128_float_type_node): Likewise.
25863 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25865         PR target/66136
25866         * config/aarch64/geniterators.sh: Rewrite in awk.
25868 2015-06-02  Martin Liska  <mliska@suse.cz>
25870         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
25871         values to avoid -Wmaybe-uninitialized errors.
25873 2015-06-02  Richard Biener  <rguenther@suse.de>
25875         PR debug/65549
25876         * dwarf2out.c (lookup_context_die): New function.
25877         (resolve_addr): Avoid forcing a full DIE for the
25878         target of a DW_TAG_GNU_call_site during late compilation.
25879         Instead create a stub DIE without a type if we have a
25880         context DIE present.
25882 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
25884         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
25886 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
25888         PR tree-optimization/48052
25889         * cfgloop.h (struct control_iv): New.
25890         (struct loop): New field control_ivs.
25891         * tree-ssa-loop-niter.c : Include "stor-layout.h".
25892         (number_of_iterations_lt): Set no_overflow information.
25893         (number_of_iterations_exit): Init control iv in niter struct.
25894         (record_control_iv): New.
25895         (estimate_numbers_of_iterations_loop): Call record_control_iv.
25896         (loop_exits_before_overflow): New.  Interface factored out of
25897         scev_probably_wraps_p.
25898         (scev_probably_wraps_p): Factor loop niter related code into
25899         loop_exits_before_overflow.
25900         (free_numbers_of_iterations_estimates_loop): Free control ivs.
25901         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
25903 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
25905         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
25906         the target doesn't belong to the current function.
25908 2015-06-02  Marek Polacek  <polacek@redhat.com>
25910         PR middle-end/66345
25911         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
25912         get_maxval_strlen does not produce an INTEGER_CST.
25914 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
25916         * config/arc/constraints.md: Use lower-case names in match_code.
25917         * config/mmix/constraints.md: Likewise.
25919 2015-06-02  Richard Biener  <rguenther@suse.de>
25921         PR tree-optimization/65961
25922         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
25923         check and clarify dump message.
25924         (vect_build_slp_tree): If all children are built up from scalars
25925         build up the parent from scalars instead.
25926         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
25928 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
25930         PR other/65366
25931         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
25932         instead of print ... .
25934 2015-06-02  Alan Modra  <amodra@gmail.com>
25936         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
25937         2014-08-11 change.
25939 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
25941         PR tree-optimization/52563
25942         PR tree-optimization/62173
25943         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
25944         (alloc_iv, set_iv): New parameter.
25945         (determine_biv_step): Delete.
25946         (find_bivs): Inline original determine_biv_step.  Pass new
25947         argument to set_iv.
25948         (idx_find_step): Use no_overflow information for conversion.
25949         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
25950         resolve_mixers handle folded_casts.
25951         (instantiate_scev_name): Change bool parameter to bool pointer.
25952         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
25953         (instantiate_array_ref, instantiate_scev_not): Ditto.
25954         (instantiate_scev_3, instantiate_scev_2): Ditto.
25955         (instantiate_scev_1, instantiate_scev_r): Ditto.
25956         (instantiate_scev_convert, ): Change parameter.  Pass argument
25957         to chrec_convert_aggressive.
25958         (instantiate_scev): Change argument.
25959         (resolve_mixers): New parameter and set it.
25960         (scev_const_prop): New argument.
25961         * tree-scalar-evolution.h (resolve_mixers): New parameter.
25962         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
25963         of chrec_conert_1.
25964         (chrec_convert): New parameter.  Move definition below.
25965         (chrec_convert_aggressive): New parameter and set it.  Call
25966         convert_affine_scev.
25967         * tree-chrec.h (chrec_convert): New parameter.
25968         (chrec_convert_aggressive): Ditto.
25970 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
25972         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
25973         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
25974         the LHS of a no-return call if its type has variable size.
25975         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
25976         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
25978 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
25980         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
25981         * config.in: Regenerate.
25983 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
25985         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
25986         consecutive accesses within outer-loop with force_vectorize
25987         for references with zero step in inner-loop.
25989 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
25991         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
25992         rather than from gcc/build directory.
25994 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
25996         PR target/65697
25997         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
25998         for __sync memory models, emit initial loads and final barriers as
25999         appropriate.
26001 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
26003         PR target/65697
26004         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
26005         (aarch64_split_atomic_op): Check for __sync memory models, emit
26006         appropriate initial loads and final barriers.
26008 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
26010         * Makefile.in: Fix gcov dependencies that should
26011         not point to a build folder.
26013 2015-06-01  Richard Biener  <rguenther@suse.de>
26015         Revert
26016         2015-05-29  Richard Biener  <rguenther@suse.de>
26018         PR tree-optimization/66314
26019         * tree-ssa-threadupdate.c (create_block_for_threading): Add
26020         parameter that says which loop the new block belongs to.
26021         (ssa_create_duplicates): Blocks duplicated for the threaded
26022         path belong to the loop of the thread destination.
26024 2015-06-01  Martin Liska  <mliska@suse.cz>
26026         * sched-deps.c: Include pool-alloc.h before
26027         cselib.h header file is included.
26029 2015-06-01  Richard Biener  <rguenther@suse.de>
26031         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
26032         functions.
26034 2015-06-01  Martin Liska  <mliska@suse.cz>
26036         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
26037         a function local variable.
26039 2015-06-01  Martin Liska  <mliska@suse.cz>
26041         * alloc-pool.c (create_alloc_pool): Remove.
26042         (empty_alloc_pool): Likewise.
26043         (free_alloc_pool): Likewise.
26044         (free_alloc_pool_if_empty): Likewise.
26045         (pool_alloc): Likewise.
26046         (pool_free): Likewise.
26047         * alloc-pool.h: Remove old declarations.
26049 2015-06-01  Martin Liska  <mliska@suse.cz>
26051         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
26052         (ira_create_object): Likewise.
26053         (ira_create_allocno): Likewise.
26054         (ira_create_live_range): Likewise.
26055         (copy_live_range): Likewise.
26056         (ira_finish_live_range): Likewise.
26057         (ira_free_allocno_costs): Likewise.
26058         (finish_allocno): Likewise.
26059         (finish_allocnos): Likewise.
26060         (initiate_prefs): Likewise.
26061         (ira_create_pref): Likewise.
26062         (finish_pref): Likewise.
26063         (finish_prefs): Likewise.
26064         (initiate_copies): Likewise.
26065         (ira_create_copy): Likewise.
26066         (finish_copy): Likewise.
26067         (finish_copies): Likewise.
26068         (finish_prefs): Likewise.
26070 2015-06-01  Martin Liska  <mliska@suse.cz>
26072         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
26073         (allocate_and_init_ipcp_value): Likewise.
26074         (ipcp_lattice::add_value): Likewise.
26075         (merge_agg_lats_step): Likewise.
26076         (ipcp_driver): Likewise.
26077         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
26078         (ipa_free_all_structures_after_iinln): Likewise.
26079         * ipa-prop.h: Likewise.
26081 2015-06-01  Martin Liska  <mliska@suse.cz>
26083         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
26084         pool allocator.
26085         (set_hint_predicate): Likewise.
26086         (inline_summary_alloc): Likewise.
26087         (reset_inline_edge_summary): Likewise.
26088         (reset_inline_summary): Likewise.
26089         (set_cond_stmt_execution_predicate): Likewise.
26090         (set_switch_stmt_execution_predicate): Likewise.
26091         (compute_bb_predicates): Likewise.
26092         (estimate_function_body_sizes): Likewise.
26093         (inline_free_summary): Likewise.
26095 2015-06-01  Martin Liska  <mliska@suse.cz>
26097         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
26098         (ipa_edge_duplication_hook): Likewise.
26099         (ipa_free_all_structures_after_ipa_cp): Likewise.
26100         (ipa_free_all_structures_after_iinln): Likewise.
26102 2015-06-01  Martin Liska  <mliska@suse.cz>
26104         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
26105         (ipa_profile_generate_summary): Likewise.
26106         (ipa_profile_read_summary): Likewise.
26107         (ipa_profile): Likewise.
26109 2015-06-01  Martin Liska  <mliska@suse.cz>
26111         * tree-ssa-structalias.c (new_var_info): Use new type-based
26112         pool allocator.
26113         (new_constraint): Likewise.
26114         (init_alias_vars): Likewise.
26115         (delete_points_to_sets): Likewise.
26117 2015-06-01  Martin Liska  <mliska@suse.cz>
26119         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
26120         (free_strinfo): Likewise.
26121         (pass_strlen::execute): Likewise.
26123 2015-06-01  Martin Liska  <mliska@suse.cz>
26125         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
26126         pool allocator.
26127         (vn_reference_insert_pieces): Likewise.
26128         (vn_phi_insert): Likewise.
26129         (visit_reference_op_call): Likewise.
26130         (copy_phi): Likewise.
26131         (copy_reference): Likewise.
26132         (process_scc): Likewise.
26133         (allocate_vn_table): Likewise.
26134         (free_vn_table): Likewise.
26136 2015-06-01  Martin Liska  <mliska@suse.cz>
26138         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
26139         pool allocator.
26140         (add_repeat_to_ops_vec): Likewise.
26141         (get_ops): Likewise.
26142         (maybe_optimize_range_tests): Likewise.
26143         (init_reassoc): Likewise.
26144         (fini_reassoc): Likewise.
26146 2015-06-01  Martin Liska  <mliska@suse.cz>
26148         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
26149         pool allocator.
26150         (bitmap_set_new): Likewise.
26151         (get_or_alloc_expr_for_constant): Likewise.
26152         (get_or_alloc_expr_for): Likewise.
26153         (phi_translate_1): Likewise.
26154         (compute_avail): Likewise.
26155         (init_pre): Likewise.
26156         (fini_pre): Likewise.
26158 2015-06-01  Martin Liska  <mliska@suse.cz>
26160         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
26161         (delete_dep_node): Likewise.
26162         (create_deps_list): Likewise.
26163         (free_deps_list): Likewise.
26164         (sched_deps_init): Likewise.
26165         (sched_deps_finish): Likewise.
26167 2015-06-01  Martin Liska  <mliska@suse.cz>
26169         * regcprop.c (free_debug_insn_changes): Use new type-based
26170         pool allocator.
26171         (replace_oldest_value_reg): Likewise.
26172         (pass_cprop_hardreg::execute): Likewise.
26174 2015-06-01  Martin Liska  <mliska@suse.cz>
26176         * ira-build.c (initiate_cost_vectors): Use new type-based
26177         pool allocator.
26178         (ira_allocate_cost_vector): Likewise.
26179         (ira_free_cost_vector): Likewise.
26180         (finish_cost_vectors): Likewise.
26182 2015-06-01  Martin Liska  <mliska@suse.cz>
26184         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
26185         pool allocator.
26186         (free_sched_pools): Likewise.
26187         * sel-sched-ir.h (_list_alloc): Likewise.
26188         (_list_remove): Likewise.
26190 2015-06-01  Martin Liska  <mliska@suse.cz>
26192         * stmt.c (add_case_node): Use new type-based pool allocator.
26193         (expand_case): Likewise.
26194         (expand_sjlj_dispatch_table): Likewise.
26196 2015-06-01  Martin Liska  <mliska@suse.cz>
26198         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
26199         (free_bb): Likewise.
26200         (pass_cse_reciprocals::execute): Likewise.
26202 2015-06-01  Martin Liska  <mliska@suse.cz>
26204         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
26205         (sra_deinitialize) Likewise.
26206         (create_access_1) Likewise.
26207         (build_accesses_from_assign) Likewise.
26208         (create_artificial_child_access) Likewise.
26210 2015-06-01  Martin Liska  <mliska@suse.cz>
26212         * dse.c (get_group_info):Use new type-based pool allocator.
26213         (dse_step0) Likewise.
26214         (free_store_info) Likewise.
26215         (delete_dead_store_insn) Likewise.
26216         (free_read_records) Likewise.
26217         (record_store) Likewise.
26218         (replace_read) Likewise.
26219         (check_mem_read_rtx) Likewise.
26220         (scan_insn) Likewise.
26221         (dse_step1) Likewise.
26222         (dse_step7) Likewise.
26224 2015-06-01  Martin Liska  <mliska@suse.cz>
26226         * df-scan.c (struct df_scan_problem_data):Use new type-based
26227         pool allocator.
26228         (df_scan_free_internal) Likewise.
26229         (df_scan_alloc) Likewise.
26230         (df_grow_reg_info) Likewise.
26231         (df_free_ref) Likewise.
26232         (df_insn_create_insn_record) Likewise.
26233         (df_mw_hardreg_chain_delete) Likewise.
26234         (df_insn_info_delete) Likewise.
26235         (df_free_collection_rec) Likewise.
26236         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
26237         (df_sort_and_compress_mws) Likewise.
26238         (df_ref_create_structure) Likewise.
26239         (df_ref_record) Likewise.
26241 2015-06-01  Martin Liska  <mliska@suse.cz>
26243         * df-problems.c (df_chain_create):Use new type-based pool allocator.
26244         (df_chain_unlink_1) Likewise.
26245         (df_chain_unlink) Likewise.
26246         (df_chain_remove_problem) Likewise.
26247         (df_chain_alloc) Likewise.
26248         (df_chain_free) Likewise.
26249         * df.h (struct dataflow) Likewise.
26251 2015-06-01  Martin Liska  <mliska@suse.cz>
26253         * cselib.c (new_elt_list):Use new type-based pool allocator.
26254         (new_elt_loc_list) Likewise.
26255         (unchain_one_elt_list) Likewise.
26256         (unchain_one_elt_loc_list) Likewise.
26257         (unchain_one_value) Likewise.
26258         (new_cselib_val) Likewise.
26259         (cselib_init) Likewise.
26260         (cselib_finish) Likewise.
26262 2015-06-01  Martin Liska  <mliska@suse.cz>
26264         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
26265         (sh_reorg) Likewise.
26267 2015-06-01  Martin Liska  <mliska@suse.cz>
26269         * cfg.c (initialize_original_copy_tables):Use new type-based
26270         pool allocator.
26271         (free_original_copy_tables) Likewise.
26272         (copy_original_table_clear) Likewise.
26273         (copy_original_table_set) Likewise.
26275 2015-06-01  Martin Liska  <mliska@suse.cz>
26277         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
26278         pool allocator.
26279         (asan_mem_ref_new) Likewise.
26280         (free_mem_ref_resources) Likewise.
26282 2015-06-01  Martin Liska  <mliska@suse.cz>
26284         * var-tracking.c (variable_htab_free):Use new type-based
26285         pool allocator.
26286         (attrs_list_clear) Likewise.
26287         (attrs_list_insert) Likewise.
26288         (attrs_list_copy) Likewise.
26289         (shared_hash_unshare) Likewise.
26290         (shared_hash_destroy) Likewise.
26291         (unshare_variable) Likewise.
26292         (var_reg_delete_and_set) Likewise.
26293         (var_reg_delete) Likewise.
26294         (var_regno_delete) Likewise.
26295         (drop_overlapping_mem_locs) Likewise.
26296         (variable_union) Likewise.
26297         (insert_into_intersection) Likewise.
26298         (canonicalize_values_star) Likewise.
26299         (variable_merge_over_cur) Likewise.
26300         (dataflow_set_merge) Likewise.
26301         (remove_duplicate_values) Likewise.
26302         (variable_post_merge_new_vals) Likewise.
26303         (dataflow_set_preserve_mem_locs) Likewise.
26304         (dataflow_set_remove_mem_locs) Likewise.
26305         (variable_from_dropped) Likewise.
26306         (variable_was_changed) Likewise.
26307         (set_slot_part) Likewise.
26308         (clobber_slot_part) Likewise.
26309         (delete_slot_part) Likewise.
26310         (loc_exp_insert_dep) Likewise.
26311         (notify_dependents_of_changed_value) Likewise.
26312         (emit_notes_for_differences_1) Likewise.
26313         (vt_emit_notes) Likewise.
26314         (vt_initialize) Likewise.
26315         (vt_finalize) Likewise.
26317 2015-06-01  Martin Liska  <mliska@suse.cz>
26319         * ira-color.c (init_update_cost_records):Use new type-based
26320         pool allocator.
26321         (get_update_cost_record) Likewise.
26322         (free_update_cost_record_list) Likewise.
26323         (finish_update_cost_records) Likewise.
26324         (initiate_cost_update) Likewise.
26326 2015-06-01  Martin Liska  <mliska@suse.cz>
26328         * lra.c (init_insn_regs): Use new type-based pool allocator.
26329         (new_insn_reg) Likewise.
26330         (free_insn_reg) Likewise.
26331         (free_insn_regs) Likewise.
26332         (finish_insn_regs) Likewise.
26333         (init_insn_recog_data) Likewise.
26334         (init_reg_info) Likewise.
26335         (finish_reg_info) Likewise.
26336         (lra_free_copies) Likewise.
26337         (lra_create_copy) Likewise.
26338         (invalidate_insn_data_regno_info) Likewise.
26340 2015-06-01  Martin Liska  <mliska@suse.cz>
26342         * lra-lives.c (free_live_range): Use new type-based pool allocator.
26343         (free_live_range_list) Likewise.
26344         (create_live_range) Likewise.
26345         (copy_live_range) Likewise.
26346         (lra_merge_live_ranges) Likewise.
26347         (remove_some_program_points_and_update_live_ranges) Likewise.
26348         (lra_live_ranges_init) Likewise.
26349         (lra_live_ranges_finish) Likewise.
26351 2015-06-01  Martin Liska  <mliska@suse.cz>
26353         * et-forest.c (et_new_occ): Use new type-based pool allocator.
26354         (et_new_tree): Likewise.
26355         (et_free_tree): Likewise.
26356         (et_free_tree_force): Likewise.
26357         (et_free_pools): Likewise.
26358         (et_split): Likewise.
26360 2015-06-01  Martin Liska  <mliska@suse.cz>
26362         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
26363         to header file.
26364         * alloc-pool.h (pool_allocator::pool_allocator): New function.
26365         (pool_allocator::release): Likewise.
26366         (inline pool_allocator::release_if_empty): Likewise.
26367         (inline pool_allocator::~pool_allocator): Likewise.
26368         (pool_allocator::allocate): Likewise.
26369         (pool_allocator::remove): Likewise.
26371 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
26373         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
26374         in comment.
26376 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
26378         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
26379         to fusible_ops.
26380         * config/arm/arm.c (arm_print_tune_info): Likewise.
26381         (arm_macro_fusion_p): Likewise.
26382         (arm_macro_fusion_pair_p): Likewise.
26384 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
26386         * config/aarch64/aarch64-protos.h (tune_params): Rename
26387         fuseable_ops to fusible_ops.
26388         * config/aarch64/aarch64.c (generic_tunings): Rename
26389         fuseable_ops to fusible_ops.
26390         (cortexa53_tunings): Likewise.
26391         (cortexa57_tunings): Likewise.
26392         (thunderx_tunings): Likewise.
26393         (xgene1_tunings): Likewise.
26394         (aarch64_macro_fusion_p): Likewise.
26395         (aarch64_macro_fusion_pair_p): Likewise.
26397 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26399         * config/s390/driver-native.c: New file.
26400         * config/s390/x-native: New file.
26401         * config.host: Add new files for s390.
26402         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
26403         and -march=native
26404         * config.gcc: Likewise.
26405         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
26406         * config/s390/s390-opts.h (enum processor_type): Ditto.
26407         * config/s390/s390.c (s390_option_override): Catch unhandled
26408         PROCESSOR_NATIVE
26410 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
26412         PR target/65527
26413         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
26414         redirection for instrumented calls.
26415         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
26416         (append_compiler_options): Append -fcheck-pointer-bounds.
26417         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
26418         (chkp_redirect_edge): New.
26419         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
26420         (chkp_redirect_edge): New.
26422 2015-06-01  Richard Biener  <rguenther@suse.de>
26424         PR tree-optimization/66280
26425         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
26426         def-use walking.
26428 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26430         * config/aarch64/aarch64.md
26431         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
26432         logic_shift_imm.
26434 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
26436         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
26437         Remove obsolete kludge.
26439 2015-06-01  Richard Biener  <rguenther@suse.de>
26441         * tree-ssa-reassoc.c (get_rank): Simplify.
26443 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
26445         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
26446         * configure: Regenerated.
26448 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
26450         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
26451         issue (add space between string literal and macro).
26452         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
26454 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
26456         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
26457         implict or explicit -fPIE or -fpie.
26459 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
26461         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
26463 2015-05-28  DJ Delorie  <dj@redhat.com>
26465         * expmed.c (extract_bit_field_1): Avoid clobbering a
26466         yet-to-be-used base/index register.
26468 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
26470         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
26471         (alias_stats): Add num_universal.
26472         (alias_set_subset_of): Special case pointers; be ready for NULL
26473         children.
26474         (alias_sets_conflict_p): Special case pointers; be ready for NULL
26475         children.
26476         (init_alias_set_entry): Break out from ...
26477         (record_alias_subset): ... here; propagate new fields;
26478         allocate children only when really needed.
26479         (get_alias_set): Do less generous pointer globbing.
26480         (dump_alias_stats_in_alias_c): Update statistics.
26482 2015-05-30  Alan Modra  <amodra@gmail.com>
26484         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
26485         correct block for use of r12.
26486         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
26488 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26490         PR target/66215
26491         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
26492         with -mhotpatch=.
26494 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
26496         PR tree-optimization/66142
26497         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
26498         virtual phis that feed themselves.
26500 2015-05-29  Richard Biener  <rguenther@suse.de>
26502         PR tree-optimization/66314
26503         * tree-ssa-threadupdate.c (create_block_for_threading): Add
26504         parameter that says which loop the new block belongs to.
26505         (ssa_create_duplicates): Blocks duplicated for the threaded
26506         path belong to the loop of the thread destination.
26508 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26510         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
26511         to cleanup-saved-temps.
26512         * doc/sourcebuild.texi (Clean up generated test files): Expand
26513         introduction.
26514         (dg-keep-saved-temps): Document new proc.
26515         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
26516         cleanup-saved-temps): Remove.
26518 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
26520         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
26521         gcc_AC_CHECK_DECLS.
26522         * configure: Regenerate.
26524 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
26526         * config/nios2/linux.h (CPP_SPEC): Define.
26528 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
26530         * config/microblaze/linux.h (CPP_SPEC): Define.
26532 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
26534         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
26535         -pthread is specified.
26537 2015-05-28  Richard Biener  <rguenther@suse.de>
26539         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
26540         (vect_fixup_scalar_cycles_with_patterns): Likewise.
26541         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
26542         after pattern recog.
26543         (vect_create_epilog_for_reduction): Properly handle reductions
26544         with patterns.
26545         (vectorizable_reduction): Likewise.
26546         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
26547         reduction chains.
26548         (vect_get_constant_vectors): Create the correct number of
26549         initial values for reductions.
26550         (vect_schedule_slp_instance): Handle reduction chains that are
26551         type changing properly.
26552         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
26554 2015-05-28  Richard Biener  <rguenther@suse.de>
26556         PR tree-optimization/66142
26557         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
26558         values better in memcpy destination handling.  Handle non-aliasing
26559         we discover here.
26561 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
26563         PR target/63810
26564         * config/darwin-c.c (version_components): New global enum.
26565         (parse_version, version_as_legacy_macro)
26566         (version_as_modern_macro, macosx_version_as_macro): New functions.
26567         (version_as_macro): Remove.
26568         (darwin_cpp_builtins): Use new function.
26570 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
26572         * builtins.c (expand_builtin_acc_on_device): Mark parameters
26573         with ATTRIBUTE_UNUSED.
26575 2015-05-28  Julian Brown  <julian@codesourcery.com>
26577         PR libgomp/65742
26579         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
26580         sequence for !ACCEL_COMPILER.
26582 2015-05-28  Nick Clifton  <nickc@redhat.com>
26584         * config/rx/rx.c (push_regs): New function.  Extracts code from...
26585         (rx_expand_prologue): ... here.  Use push_regs to push even small
26586         spans of registers.
26587         (pop_regs): New function.
26588         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
26589         registers.
26591 2015-05-28  Richard Biener  <rguenther@suse.de>
26593         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
26594         member.
26595         (SLP_INSTANCE_BODY_COST_VEC): Remove.
26596         (vect_update_slp_costs_according_to_vf): Likewise.
26597         (vect_slp_analyze_operations): Update prototype.
26598         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
26599         vect_update_slp_costs_according_to_vf, adjust.
26600         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
26601         (vect_analyze_slp_cost_1): Likewise.
26602         (vect_analyze_slp_cost): Likewise.  Properly deal with
26603         widening reduction ops.  Commit body costs.
26604         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
26605         cost for loops from here.
26606         (vect_slp_analyze_operations): But do it from here when
26607         the vectorization factor is known and stmts are analyzed.
26608         (vect_bb_vectorization_profitable_p): Simplify.
26609         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
26610         (vect_update_slp_costs_according_to_vf): Remove.
26612 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
26613             H.J. Lu  <hongjiu.lu@intel.com>
26615         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
26616         (BUILD_CFLAGS): Likewise.
26617         (BUILD_CXXFLAGS): Likewise.
26618         (LINKER): Add @NO_PIE_FLAG@.
26619         (BUILD_LDFLAGS): Likewise.
26620         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
26621         --enable-default-pie.
26622         * common.opt (fPIE): Initialize to -1.
26623         (fpie): Likewise.
26624         (no-pie): New option.
26625         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
26626         * configure.ac: Add --enable-default-pie.
26627         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
26628         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
26629         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
26630         * gcc.c (NO_PIE_SPEC): New.
26631         (PIE_SPEC): Likewise.
26632         (NO_FPIE1_SPEC): Likewise.
26633         (FPIE1_SPEC): Likewise.
26634         (NO_FPIE2_SPEC): Likewise.
26635         (FPIE2_SPEC): Likewise.
26636         (NO_FPIE2_SPEC): Likewise.
26637         (FPIE_SPEC): Likewise.
26638         (NO_FPIE_SPEC): Likewise.
26639         (NO_FPIC1_SPEC): Likewise.
26640         (FPIC1_SPEC): Likewise.
26641         (NO_FPIC2_SPEC): Likewise.
26642         (FPIC2_SPEC): Likewise.
26643         (NO_FPIC2_SPEC): Likewise.
26644         (FPIC_SPEC): Likewise.
26645         (NO_FPIC_SPEC): Likewise.
26646         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
26647         (FPIE1_OR_FPIC1_SPEC): Likewise.
26648         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
26649         (FPIE2_OR_FPIC2_SPEC): Likewise.
26650         (NO_FPIE_AND_FPIC_SPEC): Likewise.
26651         (FPIE_OR_FPIC_SPEC): Likewise.
26652         (LD_PIE_SPEC): Likewise.
26653         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
26654         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
26655         * config/darwin.h (PIE_SPEC): Renamed to ...
26656         (DARWIN_PIE_SPEC): This.
26657         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
26658         * config/darwin9.h (PIE_SPEC): Renamed to ...
26659         (DARWIN_PIE_SPEC): This.
26660         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
26661         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
26662         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
26663         FPIE2_OR_FPIC2_SPEC.
26664         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
26665         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
26666         * config/sol2.h (ASM_PIC_SPEC): Likewise.
26667         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26668         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26669         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26670         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
26671         * config/m32r/m32r.h (ASM_SPEC): Likewise.
26672         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
26673         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26674         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
26675         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
26676         * config/sparc/linux.h (ASM_SPEC): Likewise.
26677         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26678         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
26679         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
26680         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26681         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
26682         * config/sparc/sparc.h (ASM_SPEC): Likewise.
26683         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
26684         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
26685         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
26686         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
26687         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
26688         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
26689         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
26690         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
26691         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
26692         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
26693         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
26694         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
26695         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26696         * config/vax/linux.h (ASM_SPEC): Likewise.
26697         * doc/install.texi: Document --enable-default-pie.
26698         * doc/invoke.texi: Document -no-pie.
26699         * config.in: Regenerated.
26700         * configure: Likewise.
26702 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26704         PR rtl-optimization/66168
26705         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
26706         can_move_invariant_reg.
26708 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
26710         PR target/66148
26711         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
26712         REG_EQUAL note when doing insert.
26714         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
26715         instead of "%d" for 'o' operand.
26717 2015-05-27  Nathan Sidwell  <nathan@acm.org>
26719         PR c++/66270
26720         * tree.c (build_pointer_type_for_mode): Canonical type does not
26721         inherit can_alias_all.
26722         (build_reference_type_for_mode): Likewise.
26724 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
26726         * expr.h (array_at_struct_end_p): Move to...
26727         (array_ref_element_size): Likewise.
26728         (component_ref_field_offset): Likewise.
26729         * tree.h (array_ref_element_size): ...here.
26730         (array_at_struct_end_p): Likewise.
26731         (component_ref_field_offset): Likewise.
26732         * expr.c (array_ref_element_size): Move to...
26733         (array_ref_low_bound): Likewise.
26734         (array_at_struct_end_p): Likewise.
26735         (array_ref_up_bound): Likewise.
26736         (component_ref_field_offset): Likewise.
26737         * tree.c (array_ref_element_size): ...here.
26738         (array_ref_low_bound): Likewise.
26739         (array_ref_up_bound): Likewise.
26740         (array_at_struct_end_p): Likewise.
26741         (component_ref_field_offset): Likewise.
26743 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
26744             Szabolcs Nagy  <szabolcs.nagy@arm.com>
26746         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
26748 2015-05-27  Jason Merrill  <jason@redhat.com>
26750         PR bootstrap/66304
26751         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
26752         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
26753         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
26755 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
26757         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
26758         is true.
26760         * statistics.c (statistics_fini_pass): Print pass name.
26762 2015-05-27  Richard Biener  <rguenther@suse.de>
26764         PR tree-optimization/66272
26765         Revert parts of
26766         2014-08-15  Richard Biener  <rguenther@suse.de>
26768         PR tree-optimization/62031
26769         * tree-data-ref.c (dr_analyze_indices): Do not set
26770         DR_UNCONSTRAINED_BASE.
26771         (dr_may_alias_p): All indirect accesses have to go the
26772         formerly DR_UNCONSTRAINED_BASE path.
26773         * tree-data-ref.h (struct indices): Remove
26774         unconstrained_base member.
26775         (DR_UNCONSTRAINED_BASE): Remove.
26777 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
26779         * dwarf2out.c: Remove block_map.
26780         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
26781         (gen_lexical_block_die): Same.
26782         (dwarf2out_function_decl): Remove block_map use.
26783         (dwarf2out_c_finalize): Same.
26784         * tree-core.h (struct tree_block): Add die field.
26785         * tree.h (BLOCK_DIE): New.
26787 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26789         PR target/65358
26790         * expr.c (memory_load_overlap): New function.
26791         (emit_push_insn): When pushing partial args to the stack would
26792         clobber the register part load the overlapping part into a pseudo
26793         and put it into the hard reg after pushing.  Change return type
26794         to bool.  Add bool argument.
26795         * expr.h (emit_push_insn): Change return type to bool.
26796         Add bool argument.
26797         * calls.c (expand_call): Cancel sibcall optimization when encountering
26798         partial argument on targets with ARGS_GROW_DOWNWARD and
26799         !STACK_GROWS_DOWNWARD.
26800         (emit_library_call_value_1): Update callsite of emit_push_insn.
26801         (store_one_arg): Likewise.
26803 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
26805         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
26807 2015-05-27  Martin Liska  <mliska@suse.cz>
26809         * Makefile.in: Add additional dependencies related to memory report
26810         enhancement.
26811         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
26812         * bitmap.c (struct bitmap_descriptor_d): Remove.
26813         (struct loc): Likewise.
26814         (struct bitmap_desc_hasher): Likewise.
26815         (bitmap_desc_hasher::hash): Likewise.
26816         (bitmap_desc_hasher::equal): Likewise.
26817         (get_bitmap_descriptor): Likewise.
26818         (bitmap_register): User new memory descriptor API.
26819         (register_overhead): Likewise.
26820         (bitmap_find_bit): Register nsearches and search_iter statistics.
26821         (struct bitmap_output_info): Remove.
26822         (print_statistics): Likewise.
26823         (dump_bitmap_statistics): Use new memory descriptor.
26824         * bitmap.h (struct bitmap_usage): New class.
26825         * genmatch.c: Extend header file inclusion.
26826         * genpreds.c: Likewise.
26827         * ggc-common.c (struct ggc_usage): New class.
26828         (struct ggc_loc_desc_hasher): Remove.
26829         (ggc_loc_desc_hasher::hash): Likewise.
26830         (ggc_loc_desc_hasher::equal): Likewise.
26831         (struct ggc_ptr_hash_entry): Likewise.
26832         (struct ptr_hash_hasher): Likewise.
26833         (ptr_hash_hasher::hash): Likewise.
26834         (ptr_hash_hasher::equal): Likewise.
26835         (make_loc_descriptor): Likewise.
26836         (ggc_prune_ptr): Likewise.
26837         (dump_ggc_loc_statistics): Use new memory descriptor.
26838         (ggc_record_overhead): Likewise.
26839         (ggc_free_overhead): Likewise.
26840         (final_cmp_statistic): Remove.
26841         (cmp_statistic): Likewise.
26842         (ggc_add_statistics): Liekwise.
26843         (ggc_prune_overhead_list): Likewise.
26844         * hash-map-traits.h: New file.
26845         * hash-map.h (struct default_hashmap_traits): Move the traits to a
26846         separate header file.
26847         * hash-set.h: Pass memory statistics info to ctor.
26848         * hash-table.c (void dump_hash_table_loc_statistics): New function.
26849         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
26850         (hash_table::~hash_table): Register memory release operation.
26851         (hash_table::alloc_entries): Handle memory allocation operation.
26852         (hash_table::expand): Likewise.
26853         * inchash.c (iterative_hash_hashval_t): Move implementation to header
26854         file.
26855         (iterative_hash_host_wide_int): Likewise.
26856         * inchash.h (class hash): Likewise.
26857         * mem-stats-traits.h: New file.
26858         * mem-stats.h: New file.
26859         (mem_location): Add new class.
26860         (mem_usage): Likewise.
26861         (mem_alloc_description): Likewise.
26862         * sese.c: Add new header file inclusision.
26863         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
26864         and hash_set.
26865         * tree-sra.c: Add new header file inclusision.
26866         * vec.c (struct vec_descriptor): Remove.
26867         (hash_descriptor): Likewise.
26868         (struct vec_usage): Likewise.
26869         (struct ptr_hash_entry): Likewise.
26870         (hash_ptr): Likewise.
26871         (eq_ptr): Likewise.
26872         (vec_prefix::register_overhead): Use new memory descriptor API.
26873         (vec_prefix::release_overhead): Likewise.
26874         (add_statistics): Remove.
26875         (dump_vec_loc_statistics): Use new memory descriptor API.
26876         * vec.h (struct vec_prefix): Likewise.
26877         (va_heap::reserve): Likewise.
26878         (va_heap::release): Likewise.
26879         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
26881 2015-05-27  Richard Biener  <rguenther@suse.de>
26883         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
26884         earlier and remove ??? comment.
26885         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
26886         and got called from loop analysis bail out.  Always pass the SLP
26887         node to the vectorizable_* functions.
26888         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
26889         the premature SLP check here.
26890         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
26891         detected SLP stmts.
26892         (vect_detect_hybrid_slp_1): Likewise.
26894 2015-05-26  Jeff Law  <law@redhat.com>
26896         * combine.c (find_split_point): Verify that the shift count is a
26897         constant when choosing (plus (ashift ...)) as a split point.
26899         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
26900         No functional changes.
26902 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
26904         * ipa-polymorphic-call.c
26905         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
26906         case when call target is already known.
26908 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
26910         PR target/65979
26911         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
26912         take into account the case that operands[1] and operands[2]
26913         are the same register.
26915 2015-05-26  Michael Matz  <matz@suse.de>
26917         PR middle-end/66251
26919         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
26920         stores.
26921         (vect_create_vectorized_demotion_stmts): Always set
26922         STMT_VINFO_VEC_STMT, also with SLP.
26923         (vectorizable_store): Handle strided group stores.
26925 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
26927         PR target/66049
26928         * config/aarch64/aarch64.md
26929         (*adds_shift_imm_<mode>):  New pattern.
26930         (*subs_shift_imm_<mode>):  Likewise.
26931         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
26932         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
26933         (*add_uxt<mode>_shift2): Likewise.
26934         (*add_uxtsi_shift2_uxtw): Likewise.
26935         (*sub_uxt<mode>_shift2): Likewise.
26936         (*sub_uxtsi_shift2_uxtw): Likewise.
26938 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
26940         * config/rs6000/constraints.md (Y, U): Use match_test.
26942 2015-05-26  Christian Bruel  <christian.bruel@st.com>
26944         PR target/52144
26945         * config/arm/arm.c (arm_option_check_internal)
26946         (arm_option_params_internal): Check opts->target_flags to set macros.
26947         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
26948         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
26949         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
26950         (builtin_define): Replaced with def_or_undef_macro.
26951         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
26952         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
26953         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
26954         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
26955         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
26956         (TARGET_ARM_FEATURE_LDREX_P)
26957         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
26958         * config/arm/arm-c.c (def_or_undef_macro): New function.
26959         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
26961 2015-05-26  Christian Bruel  <christian.bruel@st.com>
26963         * c-common.h (builtin_define_with_int_value)
26964         (builtin_define_type_sizeof): Declare.
26965         * c-cppbuiltin.c (builtin_define_with_int_value)
26966         (builtin_define_type_sizeof): Externalize.
26967         (builtin_define_std): Cleanup declaration.
26968         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
26969         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
26970         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
26971         (builtin_define, builtin_assert): New macros.
26973 2015-05-26  Richard Biener  <rguenther@suse.de>
26975         PR tree-optimization/66142
26976         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
26977         MEM_REFs for the same base address.
26979 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26981         PR ipa/66181
26982         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
26984 2015-05-26  Jason Merrill  <jason@redhat.com>
26986         * configure.ac: Set CXXFLAGS for ISL test.
26987         * configure: Regenerate.
26989         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
26990         strstr and basename.
26991         * configure: Regenerate.
26993 2015-05-26  Richard Biener  <rguenther@suse.de>
26995         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
26996         X % C -> X & (C - 1) for C being a power-of two to ...
26997         * match.pd: ... patterns.
26999 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
27001         * match.pd (swapped_tcc_comparison): New operator list.
27002         (-A CMP -B): New simplification.
27003         * fold-const.c (fold_comparison): Remove corresponding code.
27005 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
27007         * caller-save.c (init_caller_save): Base temporary register numbers
27008         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
27009         * cfgloopanal.c (init_set_costs): Likewise.
27010         * dojump.c (prefer_and_bit_test): Likewise.
27011         * expr.c (init_expr_target): Likewise.
27012         * ira.c (setup_prohibited_mode_move_regs): Likewise.
27013         * lower-subreg.c (init_lower_subreg): Likewise.
27014         * postreload.c (reload_cse_regs_1): Likewise.
27016 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
27018         * gensupport.h (compute_test_codes): Declare.
27019         * gensupport.c (compute_predicate_codes): Rename to...
27020         (compute_test_codes): ...this.  Generalize error message.
27021         (process_define_predicate): Update accordingly.
27022         * genpreds.c (compute_maybe_allows): Delete.
27023         (add_constraint): Use compute_test_codes to determine whether
27024         something can accept a SUBREG, REG or MEM.
27026 2015-05-26  Torvald Riegel  <triegel@redhat.com>
27028         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
27029         'memory model' to align with C++11; fix description of memory orders;
27030         fix a few typos.
27032 2015-05-26  Richard Biener  <rguenther@suse.de>
27034         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
27035         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
27036         detect whether we apply SLP.  Remove call to
27037         vect_update_slp_costs_according_to_vf.
27038         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
27039         vect_update_slp_costs_according_to_vf from here.  Dispatch
27040         to vect_slp_analyze_operations to analyze SLP stmts.
27041         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
27042         unused bb_vec_info parameter, adjust assert.
27043         (vect_slp_analyze_operations): Pass in the slp instance tree
27044         instead of bb_vec_info.
27045         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
27046         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
27048 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
27050         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
27051         Q_REGS.  Expand comment.
27052         (REG_CLASS_NAMES): Ditto.
27053         (REG_CLASS_CONTENTS): Ditto.
27055 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
27057         PR target/66274
27058         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
27059         when LEGACY_INT_REGNO_P is processed.
27061 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
27063         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
27065 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
27067         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
27068         register if not marked dead/unused, before return.
27070 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
27072         PR lto/66180
27073         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
27074         is set; check for assembler name at LTO time.
27075         (type_in_anonymous_namespace): Remove hacks, check that all
27076         anonymous types are called "<anon>"
27077         (odr_type_p): Simplify; add check for "<anon>"
27078         (odr_subtypes_equivalent): Add odr_type_p check.
27079         * tree.c (need_assembler_name_p): Even anonymous namespace needs
27080         assembler name.
27082 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
27084         * ipa-utils.h (method_class_type): Remove.
27085         * cgraphunit.c (walk_polymorphic_call_targets): Use
27086         TYPE_METHOD_BASETYPE.
27087         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
27088         on main variants only.
27089         (method_class_type): Remove.
27090         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
27091         (build_type_inheritance_graph): Likewise.
27092         * ipa-icf.c (sem_function::equals_wpa): Likewise.
27093         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
27094         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
27096 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
27098         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
27099         is_typedef_decl, typedef_variant_p): Constify.
27100         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
27101         is_typedef_decl, typedef_variant_p): Constify.
27103 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27105         * defaults.h (gen_tablejump): New function.
27106         (HAVE_tablejump): Add default value.
27107         * expr.c: Adjust.
27108         * stmt.c: Likewise.
27110 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27112         * defaults.h (gen_store_multiple): New function.
27113         (HAVE_store_multiple): Add default value.
27114         * expr.c (move_block_from_reg): Adjust.
27116 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27118         * defaults.h (gen_load_multiple): New function.
27119         (HAVE_load_multiple): Add default value.
27120         * expr.c (move_block_to_reg): Adjust.
27122 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27124         * defaults.h (gen_mem_signal_fence): New function.
27125         (HAVE_mem_signal_fence): Add default value.
27126         * optabs.c: Adjust.
27128 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27130         * defaults.h (gen_memory_barrier): New function.
27131         (HAVE_memory_barrier): Add default value.
27132         * optabs.c: Adjust.
27134 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27136         * defaults.h (gen_mem_thread_fence): New function.
27137         (HAVE_mem_thread_fence): Add default definition.
27138         * optabs.c: Adjust.
27140 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27142         * combine.c (find_split_point): Check the value of HAVE_lo_sum
27143         instead of if it is defined.
27144         (combine_simplify_rtx): Likewise.
27145         * lra-constraints.c (process_address_1): Likewise.
27146         * config/darwin.c: Adjust.
27147         * genconfig.c (main): Always define HAVE_lo_sum.
27149 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27151         * genmatch.c (parser::parse_operation): Reject expanding
27152         operator-list inside 'for'.
27154 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27156         * genmatch.c (parser::parse_for): Reject iterator if used as
27157         operator-list.
27159 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27161         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
27162         after end of id-list.
27164 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
27166         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
27167         we do not try to compute canonical type for type that does not need
27168         alias set.
27169         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
27170         FUNCITON_TYPE.
27171         * tree.h (type_with_alias_set_p): New.
27173 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
27175         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
27176         function attributes.
27177         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
27179 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
27181         * Makefile.in (check_gcc_parallelize): Delete.
27182         (lang_checks_parallelized): Update comment.
27184 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
27186         PR rtl-optimization/66237
27187         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
27188         location of an "as_a" cast.
27190 2015-05-22  Jeff Law  <law@redhat.com>
27192         * config/pa/pa.md (non-canonical shift-add insns): Remove.
27193         (peepholes with non-canonical RTL sources): Remove.
27194         (peepholes for indexed stores of FP regs in integer modes): Match and
27195         generate canonical RTL.
27197 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
27199         PR tree-optimization/63387
27200         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
27201         ((x ord x) & (y ord y) -> (x ord y),
27202         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
27203         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
27204         vectors like scalars.
27206 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
27208         * convert.c (convert_to_integer, convert_to_vector): Include the
27209         types in the error message.
27211 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
27213         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
27214         simplifications.
27216 2015-05-22  Jeff Law  <law@redhat.com>
27218         * config/pa/pa.md (integer_indexed_store splitters): Use
27219         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
27220         insns -- adjusting the constant 2nd operand accordingly.
27222         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
27223         (plus (ashift X log2) Y) if it is a split point.
27225         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
27226         out of hppa_legitimize_address to handle both forms of a multiply
27227         by 2, 4 or 8.
27228         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
27229         Always generate the ASHIFT variant as the result is not directly
27230         used in a MEM.  Update comments and refactor slightly to improve
27231         readability.
27233 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27235         PR target/65491
27236         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
27237         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
27238         (aarch64_composite_type_p): Return false if given type and mode are
27239         for a short vector.
27241 2015-05-22  Richard Biener  <rguenther@suse.de>
27243         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
27244         member.
27245         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
27246         patterns when determining whether SLP is pure.
27247         (vect_is_slp_reduction): Remove check for pattern stmts.
27248         (vect_is_simple_reduction_1): Remove dead code.
27249         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
27250         (vect_get_and_check_slp_defs): Pass in the stmt number.
27251         Allow the first def in a reduction to be not a pattern stmt when
27252         the rest of the stmts def are patterns.
27253         (vect_build_slp_tree_1): Allow tcc_expression codes like
27254         SAD_EXPR and DOT_PROD_EXPR.
27255         (vect_build_slp_tree): Adjust.
27256         (vect_analyze_slp): Refactor and move BB vect error message ...
27257         (vect_slp_analyze_bb_1): ... here.
27259 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
27261         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
27262         for CSWTCH temporary.
27264 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27266         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
27267         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
27268         unknown unspecs.
27270 2015-05-22  Richard Biener  <rguenther@suse.de>
27272         PR tree-optimization/66251
27273         * tree-vect-stmts.c (vectorizable_conversion): Properly
27274         set STMT_VINFO_VEC_STMT even for the SLP case.
27276 2015-05-22  Marek Polacek  <polacek@redhat.com>
27278         * doc/extend.texi: Use @pxref instead of @xref.
27280 2015-05-22  hiraditya  <hiraditya@msn.com>
27282         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
27283         redundant if.
27285 2015-05-22  Richard Biener  <rguenther@suse.de>
27287         PR tree-optimization/65701
27288         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
27289         Move peeling cost models into one place.  Peel for alignment
27290         for single loads only if an aligned load is cheaper than
27291         an unaligned load.
27293 2015-05-22  Marek Polacek  <polacek@redhat.com>
27295         PR c/47043
27296         * doc/extend.texi (Enumerator Attributes): New section.
27297         Document syntax of enumerator attributes.
27299 2015-05-22  Richard Biener  <rguenther@suse.de>
27301         * tree-vect-loop.c (get_reduction_op): New function.
27302         (vect_model_reduction_cost): Use it, add reduc_index parameter.
27303         Make ready for BB reductions.
27304         (vect_create_epilog_for_reduction): Use get_reduction_op.
27305         (vectorizable_reduction): Init reduc_index to a valid value.
27306         Adjust vect_model_reduction_cost call.
27307         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
27308         operand for reduction defaults.  Add SAD_EXPR support.
27309         Assert we have a neutral op for SLP reductions.
27310         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
27311         walking pattern stmt ops only recurse to SSA names.
27313 2015-05-22  Richard Biener  <rguenther@suse.de>
27315         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
27316         assert with guard, remove check on detected reduction.
27317         (vect_recog_sad_pattern): Likewise.
27318         (vect_recog_widen_sum_pattern): Likewise.
27320 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27322         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
27323         __always_inline__ attribute.
27324         (vaesdq_u8): Likewise.
27325         (vaesmcq_u8): Likewise.
27326         (vaesimcq_u8): Likewise.
27327         (vsha1cq_u32): Likewise.
27328         (vsha1mq_u32): Likewise.
27329         (vsha1pq_u32): Likewise.
27330         (vsha1h_u32): Likewise.
27331         (vsha1su0q_u32): Likewise.
27332         (vsha1su1q_u32): Likewise.
27333         (vsha256hq_u32): Likewise.
27334         (vsha256h2q_u32): Likewise.
27335         (vsha256su0q_u32): Likewise.
27336         (vsha256su1q_u32): Likewise.
27337         (vmull_p64): Likewise.
27338         (vmull_high_p64): Likewise.
27340 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27342         * final.c (final_scan_insn): Don't check HAVE_peephole with the
27343         preprocessor.
27344         * output.h: Likewise.
27345         * genconfig.c (main): Alwways define HAVE_peephole.
27346         * genpeep.c: Don't emit checks of HAVE_peephole.
27348 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27350         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
27351         check HAVE_conditional_move with the preprocessor.
27353 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27355         * genconfig.c (main): Always define HAVE_conditional_move.
27356         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
27357         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
27358         is defined.
27360 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27362         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
27363         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
27364         and FRAME_POINTER_REGNUM with the preprocessor.
27366 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27368         * defaults.h: Add default for STACK_PUSH_CODE.
27369         * expr.c: Don't redefine STACK_PUSH_CODE.
27370         * recog.c: Likewise.
27372 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27374         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
27375         sched-deps.c: Use if instead of preprocessor checks with
27376         STACK_GROWS_DOWNWARD.
27378 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27380         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
27381         is defined.
27382         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
27383         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
27384         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
27385         * doc/tm.texi: Regenerate.
27387 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
27389         PR target/66232
27390         * config/i386/constraints.md (Bg): New constraint for GOT memory
27391         operand.
27392         * config/i386/i386.md (*call_got_x32): New pattern.
27393         (*call_value_got_x32): Likewise.
27394         * config/i386/predicates.md (GOT_memory_operand): New predicate.
27396 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
27398         PR tree-optimization/66233
27399         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
27400         Simplify.
27402 2015-05-21  Jeff Law  <law@redhat.com>
27404         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
27405         than MULT for shadd sequences.
27407 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
27409         * alias.c (alias_stats): New static var.
27410         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
27411         (dump_alias_stats_in_alias_c): New function.
27412         * alias.h (dump_alias_stats_in_alias_c): Declare.
27413         * tree-ssa-alias.c (dump_alias_stats): Call it.
27415 2015-05-08  Michael Matz  <matz@suse.de>
27417         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
27418         to strided_p.
27419         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
27420         (STMT_VINFO_STRIDED_P): ... this.
27421         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
27422         (vect_verify_datarefs_alignment): Likewise.
27423         (vect_enhance_data_refs_alignment): Likewise.
27424         (vect_analyze_data_ref_access): Likewise.
27425         (vect_analyze_data_refs): Accept strided stores.
27426         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
27427         (vect_model_load_cost): Adjust for macro rename.
27428         (vectorizable_mask_load_store): Likewise.
27429         (vectorizable_load): Likewise.
27430         (vectorizable_store): Open code strided stores.
27432 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27434         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
27435         Document sqrt_insn.
27437 2015-05-21  Richard Biener  <rguenther@suse.de>
27439         PR c++/66211
27440         * match.pd: Guard pattern optimzing (int)(float)int
27441         conversions to apply only on GIMPLE.
27443 2015-05-21  Jeff Law  <law@redhat.com>
27445         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
27446         multiply-accumulate/shift-add insn generation.
27448 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
27450         PR target/54236
27451         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
27452         operands[1] are the same.
27454 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
27456         PR middle-end/66221
27457         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
27458         build_distinct_type_copy to copy bounds.
27460 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
27462         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
27463         Change to unsigned int.
27465 2015-05-20  Jeff Law  <law@redhat.com>
27467         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
27468         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
27469         (pa_shadd_constant_p): Allow constants for shadd insns rather
27470         than valid scaling constants for memory addresses.
27471         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
27472         * config/pa/predicates.md (mem_shadd_operand): New predicate.
27473         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
27474         (shift-add insns using ASHIFT): New patterns.
27476 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
27478         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
27479         feasible.
27480         (fix_up_fall_thru_edges): Likewise.
27481         (fix_crossing_conditional_branches): Likewise. Promote jump targets
27482         from to rtx_insn to rtx_code_label where feasible.
27483         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
27484         gen_move_insn (returned type changed to rtx_insn).
27485         * builtins.c (expand_errno_check): Fix arguments of
27486         do_compare_rtx_and_jump (now expects rtx_code_label).
27487         (expand_builtin_acc_on_device): Likewise.
27488         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
27489         invert_jump (now exprects rtx_jump_insn).
27490         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
27491         (construct_init_block): Use rtx_code_label.
27492         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
27493         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
27494         calling redirect_jump.
27495         (patch_jump_insn): Likewise.
27496         (redirect_branch_edge): Likewise.
27497         (force_nonfallthru_and_redirect): Likewise.
27498         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
27499         when suitable.
27500         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
27501         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
27502         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
27503         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
27504         to store the value retured by gen_label_rtx.
27505         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
27506         rtx_jump_insn.
27507         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
27508         (split_branches): Fix calls of redirect_jump.
27509         * dojump.c (jumpifnot): Promote argument type from rtx to
27510         rtx_code_label.
27511         (jumpifnot_1): Likewise.
27512         (jumpif): Likewise.
27513         (jumpif_1): Likewise.
27514         (do_jump_1): Likewise.
27515         (do_jump): Likewise. Use rtx_code_label when feasible.
27516         (do_jump_by_parts_greater_rtx): Likewise.
27517         (do_jump_by_parts_zero_rtx): Likewise.
27518         (do_jump_by_parts_equality_rtx): Likewise.
27519         (do_compare_rtx_and_jump): Likewise.
27520         * dojump.h: Update function prototypes.
27521         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
27522         returns rtx_insn).
27523         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
27524         rtx_jump_insn.
27525         (emit_label_before): Likewise.
27526         (emit_jump_insn_after_noloc): Likewise.
27527         (emit_jump_insn_after_setloc): Likewise.
27528         (emit_jump_insn_after): Likewise
27529         (emit_jump_insn_before_setloc): Likewise.
27530         (emit_jump_insn_before): Likewise.
27531         (emit_label_before): Promote return type to rtx_code_label.
27532         (emit_label): Likewise.
27533         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
27534         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
27535         gen_move_insn.
27536         (emit_stack_restore): Likewise.
27537         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
27538         (do_cmp_and_jump): Likewise.
27539         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
27540         from rtx to rtx_code_label.
27541         (gen_move_insn_uncast): New function.
27542         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
27543         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
27544         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
27545         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
27546         invert_jump_1 and redirect_jump_1.
27547         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
27548         do_compare_rtx_and_jump.
27549         (expand_addsub_overflow): Likewise.
27550         (expand_neg_overflow): Likewise.
27551         (expand_mul_overflow): Likewise.
27552         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
27553         return value of gen_move_insn.
27554         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
27555         * loop-doloop.c (add_test): Use rtx_code_label.
27556         (doloop_modify): Likewise.
27557         (doloop_optimize): Likewise.
27558         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
27559         * lra-constraints.c (emit_spill_move): Remove cast of value returned
27560         by gen_move_insn.
27561         (inherit_reload_reg): Add cast when calling dump_insn_slim.
27562         (split_reg): Likewise.
27563         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
27564         gen_move_insn.
27565         * optabs.c (expand_binop_directly): Remove casts of values returned by
27566         maybe_gen_insn.
27567         (expand_unop_direct): Likewise.
27568         (expand_abs): Likewise.
27569         (maybe_emit_unop_insn): Likewise.
27570         (maybe_gen_insn): Promote return type to rtx_insn.
27571         * optabs.h: Update prototype of maybe_gen_insn.
27572         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
27573         redundant cast.
27574         * recog.c (struct peep2_insn_data): Promote type of insn field to
27575         rtx_insn.
27576         (peep2_reinit_state): Use NULL instead of NULL_RTX.
27577         (peep2_attempt): Remove casts of insn in peep2_insn_data.
27578         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
27579         * recog.h (struct insn_gen_fn): Promote return types of function
27580         pointers and operator ().from rtx to rtx_insn.
27581         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
27582         (fill_eager_delay_slots): Likewise.
27583         (relax_delay_slots): Likewise.
27584         (make_return_insns): Likewise.
27585         (dbr_schedule): Likewise.
27586         (optimize_skips): Likewise.
27587         (reorg_redirect_jump): Likewise.
27588         (fill_slots_from_thread): Likewise.
27589         * reorg.h: Update prototypes.
27590         * resource.c (find_dead_or_set_registers): Use dyn_cast to
27591         rtx_jump_insn instead of check.  Use it's jump_target method.
27592         * rtl.h (rtx_jump_insn::jump_label): Define new method.
27593         (rtx_jump_insn::jump_target): Define new method.
27594         (rtx_jump_insn::set_jump_target): Define new method.
27595         * rtlanal.c (tablejump_p): Promote type of one local variable.
27596         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
27597         (sched_analyze_insn): Likewise.
27598         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
27599         (print_insn): Likewise.
27600         * stmt.c (label_rtx): Promote return type to rtx_insn.
27601         (force_label_rtx): Likewise.
27602         (jump_target_rtx): Define new function.
27603         (expand_label): Use it, get rid of one cast.
27604         (expand_naked_return): Promote rtx to rtx_code_label.
27605         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
27606         (expand_case): Use rtx_code_label instread of rtx where feasible.
27607         (expand_sjlj_dispatch_table): Likewise.
27608         (emit_case_nodes): Likewise.
27609         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
27610         * store-motion.c (insert_store): Make use of new return type of
27611         gen_move_insn and remove a cast.
27612         (replace_store_insn): Likewise.
27614 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
27616         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
27617         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
27619 2015-05-20  Jeff Law  <law@redhat.com>
27621         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
27622         dispose of the jump thread path when the jump threading
27623         opportunity is cancelled.
27625 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27627         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
27628         when printing the caret character.
27630 2015-05-20  Marek Polacek  <polacek@redhat.com>
27632         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
27634 2015-05-20  Marek Polacek  <polacek@redhat.com>
27636         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
27637         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
27638         * gimple-fold.c (canonicalize_bool): Likewise.
27639         (same_bool_result_p): Likewise.
27640         * tree-if-conv.c (parse_predicate): Likewise.
27642 2015-05-20  Marek Polacek  <polacek@redhat.com>
27644         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
27645         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
27647 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27649         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
27650         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
27651         values.
27653 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
27655         * config/mips/mips.h (micromips_globals): Declare.
27657 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
27659         * timevar.def (TV_INITIALIZE_RTL): New.
27660         * toplev.c (initialize_rtl): Use an auto_timevar to account this
27661         function's time to TV_INITIALIZE_RTL.
27663 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
27665         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
27666         gimple_build_nop calls.
27667         (chkp_find_bounds_for_elem): Likewise.
27668         (chkp_get_zero_bounds): Likewise.
27669         (chkp_get_none_bounds): Likewise.
27670         (chkp_get_bounds_by_definition): Likewise.
27671         (chkp_generate_extern_var_bounds): Likewise.
27672         (chkp_get_bounds_for_decl_addr): Likewise.
27673         (chkp_get_bounds_for_string_cst): Likewise.
27675 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
27677         PR tree-optimization/65447
27678         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
27679         (dump_use, dump_uses): Support to dump sub use.
27680         (record_use): New parameters to support sub use.  Remove call to
27681         dump_use.
27682         (record_sub_use, record_group_use): New functions.
27683         (compute_max_addr_offset, split_all_small_groups): New functions.
27684         (group_address_uses, rewrite_use_address): New functions.
27685         (strip_offset): New declaration.
27686         (find_interesting_uses_address): Call record_group_use.
27687         (add_candidate): New assertion.
27688         (infinite_cost_p): Move definition forward.
27689         (add_costs): Check INFTY cost and return immediately.
27690         (get_computation_cost_at): Clear setup cost and dependent bitmap
27691         for sub uses.
27692         (determine_use_iv_cost_address): Compute cost for sub uses.
27693         (rewrite_use_address_1): Rename from old rewrite_use_address.
27694         (free_loop_data): Free sub uses.
27695         (tree_ssa_iv_optimize_loop): Call group_address_uses.
27697 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
27698             Jim Wilson  <jim.wilson@linaro.org>
27700         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
27701         new  fields loadv and storev.
27702         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
27703         Initialize loadv and storev.
27704         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
27705         (cortexa53_extra_costs): Likewise.
27706         (cortexa57_extra_costs): Likewise.
27707         (xgene1_extra_costs): Likewise.
27708         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
27709         rtx_costs.
27711 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
27713         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
27714          storev.
27715         (cortexa8_extra_costs): Likewise.
27716         (cortexa5_extra_costs): Likewise.
27717         (cortexa7_extra_costs): Likewise.
27718         (cortexa12_extra_costs): Likewise.
27719         (cortexa15_extra_costs): Likewise.
27720         (v7m_extra_costs): Likewise.
27722 2015-05-20  Jeff Law  <law@redhat.com>
27724         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
27725         instead of open-coded version.  Also delete the jump thread created
27726         within this function.
27728 2015-05-20  Alan Modra  <amodra@gmail.com>
27730         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
27731         stack adjusting insn.  Formatting.
27732         (rs6000_emit_prologue): Track stack adjusting insn, and use of
27733         r12.  If possible, emit first -fsplit-stack arg pointer insn
27734         before stack adjust.  Don't use r12 to save cr if split-stack.
27736 2015-05-20  Alan Modra  <amodra@gmail.com>
27738         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
27739         Define.
27740         (rs6000_supports_split_stack): New function.
27741         * config/rs6000/rs6000.c (machine_function): Add
27742         split_stack_arg_pointer.
27743         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
27744         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
27745         rather than virtual_incoming_args_rtx.
27746         (rs6000_va_start): Likewise.
27747         (split_stack_arg_pointer_used_p): New function.
27748         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
27749         (morestack_ref): New var.
27750         (gen_add3_const, rs6000_expand_split_stack_prologue,
27751         rs6000_internal_arg_pointer, rs6000_live_on_entry,
27752         rs6000_split_stack_space_check): New functions.
27753         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
27754         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
27755         (UNSPECV_SPLIT_STACK_RETURN): Define.
27756         (split_stack_prologue, load_split_stack_limit,
27757         load_split_stack_limit_di, load_split_stack_limit_si,
27758         split_stack_return, split_stack_space_check): New expands and insns.
27759         * config/rs6000/rs6000-protos.h
27760         (rs6000_expand_split_stack_prologue): Declare.
27761         (rs6000_split_stack_space_check): Declare.
27763 2015-05-20  Alan Modra  <amodra@gmail.com>
27765         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
27766         (direct_return): Test vrsave_size rather than vrsave_mask.
27767         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
27768         (rs6000_emit_epilogue): Likewise.
27770 2015-05-20  Alan Modra  <amodra@gmail.com>
27772         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
27773         when not saving registers.
27774         (debug_stack_info): Adjust to omit printing unused offsets,
27775         as before.
27776         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
27777         expression.
27779 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27781         PR c++/65835
27782         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
27783         value_type to const char *.
27785 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
27787         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
27788         to build a biarch toolchain again.
27790 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
27792         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
27793         or implicit declarations.
27794         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
27795         into it.
27796         (get_odr_type): Check type has linkage before adding bases.
27797         (register_odr_type): Check that type has linkage before adding it.
27798         (type_known_to_have_no_deriavations_p): Rename to ..
27799         (type_known_to_have_no_derivations_p): This one.
27800         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
27801         (type_known_to_have_no_derivations_p): This one.
27802         * ipa-polymorphic-call.c
27803         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
27804         type has linkage.
27806 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
27808         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
27809         (layout_type): Use RECORD_OR_UNION_TYPE_P.
27811 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27813         * config/s390/s390.c (s390_vector_bool_type_p): New function.
27814         (s390_invalid_binary_op): New function.
27815         (TARGET_INVALID_BINARY_OP): Define macro.
27817 2015-05-19  David Sherwood  <david.sherwood@arm.com>
27819         * loop-invariant.c (create_new_invariant): Don't calculate address cost
27820         if mode is not a scalar integer.
27821         (get_inv_cost): Increase computational cost for unused invariants.
27823 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27825         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
27826         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
27827         * config/s390/s390-builtin-types.def: New file.
27828         * config/s390/s390-builtins.def: New file.
27829         * config/s390/s390-builtins.h: New file.
27830         * config/s390/s390-c.c: New file.
27831         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
27832         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
27833         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
27834         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
27835         prototypes.
27836         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
27837         Include.
27838         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
27839         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
27840         variable definitions.
27841         (s390_const_operand_ok): New function.
27842         (s390_expand_builtin): Rewrite.
27843         (s390_init_builtins): New function.
27844         (s390_handle_vectorbool_attribute): New function.
27845         (s390_attribute_table): Add s390_vector_bool attribute.
27846         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
27847         (s390_branch_condition_mask): Generate masks for new modes.
27848         (s390_expand_vec_compare_cc): New function.
27849         (s390_mangle_type): Add mangling for vector bool types.
27850         (enum s390_builtin): Remove.
27851         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
27852         efpc builtins.
27853         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
27854         s390_cpu_cpp_builtins.
27855         (REGISTER_TARGET_PRAGMAS): New macro.
27856         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
27857         (insn_cmp mode attribute): Add new CC modes.
27858         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
27859         (lcbb): New pattern definition.
27860         * config/s390/s390intrin.h: Include vecintrin.h.
27861         * config/s390/t-s390: New file.
27862         * config/s390/vecintrin.h: New file.
27863         * config/s390/vector.md: Include vx-builtins.md.
27864         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
27865         support.
27867 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27869         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
27870         CCVFHE.
27871         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
27872         (s390_select_ccmode): Likewise.
27873         (s390_canonicalize_comparison): Swap operands if necessary.
27874         (s390_expand_vec_compare_scalar): Expand DFmode compare using
27875         single element vector instructions.
27876         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
27877         (s390_branch_condition_mask): Generate CC masks for the new modes.
27878         * config/s390/s390.md (v0, vf, vd): New mode attributes.
27879         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
27880         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
27881         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
27882         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
27883         (*extend<DSF:mode><BFP:mode>2): New insn definition.
27884         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
27885         (extend<DSF:mode><BFP:mode>2): Turn into expander.
27886         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
27887         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
27888         (sqrt<mode>2): Add vector instruction.
27890 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27892         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
27893         constraints.
27894         * config/s390/predicates.md (const0_operand, constm1_operand)
27895         (constable_operand): Accept vector operands.
27896         * config/s390/s390-modes.def: Add supported vector modes.
27897         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
27898         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
27899         (s390_bytemask_vector_p, s390_expand_vec_strlen)
27900         (s390_expand_vec_compare, s390_expand_vcond)
27901         (s390_expand_vec_init): Add prototypes.
27902         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
27903         (s390_vector_mode_supported_p): New function.
27904         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
27905         (s390_contiguous_bitmask_vector_p): New function.
27906         (s390_bytemask_vector_p): New function.
27907         (s390_split_ok_p): Vector regs don't work either.
27908         (regclass_map): Add VEC_REGS.
27909         (s390_legitimate_constant_p): Handle vector constants.
27910         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
27911         (legitimate_reload_vector_constant_p): New function.
27912         (s390_preferred_reload_class): Handle CONST_VECTOR.
27913         (s390_reload_symref_address):  Likewise.
27914         (s390_secondary_reload): Vector memory instructions only support
27915         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
27916         (s390_emit_ccraw_jump): New function.
27917         (s390_expand_vec_strlen): New function.
27918         (s390_expand_vec_compare): New function.
27919         (s390_expand_vcond): New function.
27920         (s390_expand_vec_init): New function.
27921         (s390_dwarf_frame_reg_mode): New function.
27922         (print_operand): Handle addresses with 'O' and 'R' constraints.
27923         (NR_C_MODES, constant_modes): Add vector modes.
27924         (s390_output_pool_entry): Handle vector constants.
27925         (s390_hard_regno_mode_ok): Handle vector registers.
27926         (s390_class_max_nregs): Likewise.
27927         (s390_cannot_change_mode_class): New function.
27928         (s390_invalid_arg_for_unprototyped_fn): New function.
27929         (s390_function_arg_vector): New function.
27930         (s390_function_arg_float): Remove size variable.
27931         (s390_pass_by_reference): Handle vector arguments.
27932         (s390_function_arg_advance): Likewise.
27933         (s390_function_arg): Likewise.
27934         (s390_return_in_memory): Vector values are returned in a VR if
27935         possible.
27936         (s390_function_and_libcall_value): Handle vector arguments.
27937         (s390_gimplify_va_arg): Likewise.
27938         (s390_call_saved_register_used): Consider the arguments named.
27939         (s390_conditional_register_usage): Disable v16-v31 for non-vec
27940         targets.
27941         (s390_preferred_simd_mode): New function.
27942         (s390_support_vector_misalignment): New function.
27943         (s390_vector_alignment): New function.
27944         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
27945         (TARGET_VECTOR_MODE_SUPPORTED_P)
27946         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
27947         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
27948         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
27949         (TARGET_VECTOR_ALIGNMENT): Define target macro.
27950         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
27951         (FIRST_PSEUDO_REGISTER): Increase value.
27952         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
27953         (VECTOR_REG_P): Define macros.
27954         (FIXED_REGISTERS, CALL_USED_REGISTERS)
27955         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
27956         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
27957         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
27958         Add vector registers.
27959         (CANNOT_CHANGE_MODE_CLASS): Call C function.
27960         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
27961         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
27962         memory.
27963         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
27964         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
27965         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
27966         (VR*_REGNUM): New constants.
27967         (ALL): New mode iterator.
27968         (INTALL): Remove mode iterator.
27969         Include vector.md.
27970         (movti): Implement TImode moves for VRs.
27971         Disable TImode splitter for VR targets.
27972         Implement splitting TImode GPR<->VR moves.
27973         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
27974         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
27975         reload<mode>_la_in, reload<mode>_la_out.
27976         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
27977         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
27978         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
27979         (mov<mode> SF SD): Prefer lder, lde for loading.
27980         Add lrl and strl instructions.
27981         Add vector instructions.
27982         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
27983         Call s390_expand_vec_strlen on z13.
27984         (*cc_to_int): Change predicate to nonimmediate_operand.
27985         (addti3): Rename to *addti3.  New expander.
27986         (subti3): Rename to *subti3.  New expander.
27987         * config/s390/vector.md: New file.
27989 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27991         * common/config/s390/s390-common.c (processor_flags_table): Add
27992         z13.
27993         * config.gcc: Add z13.
27994         * config/s390/s390-opts.h (enum processor_type): Add
27995         PROCESSOR_2964_Z13.
27996         * config/s390/s390.c (s390_adjust_priority): Check for
27997         PROCESSOR_2964_Z13.
27998         (s390_reorg): Likewise.
27999         (s390_sched_reorder): Likewise.
28000         (s390_sched_variable_issue): Likewise.
28001         (s390_loop_unroll_adjust): Likewise.
28002         (s390_option_override): Likewise. Default to -mvx when available.
28003         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
28004         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
28005         (TARGET_VX_ABI): Define macros.
28006         macros.
28007         (TARGET_DEFAULT): Add MASK_OPT_VX.
28008         * config/s390/s390.md ("cpu" attribute): Add z13.
28009         ("cpu_facility" attribute): Add vec.
28010         * config/s390/s390.opt (processor_type): Add z13.
28011         (mvx): New options.
28012         * doc/invoke.texi: Add z13 option for -march.
28014 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28016         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
28017         mode check to make sure that only scalar integer values are
28018         accepted.
28020 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
28022         * tree.c (verify_type_variant): Fix #undef.
28023         (gimple_canonical_types_compatible_p): Move here from lto.c
28024         (verify_type): Verify TYPE_CANONICAL compatibility.
28025         * tree.h (gimple_canonical_types_compatible_p): Declare.
28027 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
28029         PR middle-end/66199
28030         * tree.h (OMP_TEAMS_COMBINED): Define.
28031         * gimplify.c (enum gimplify_omp_var_data): Add
28032         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
28033         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
28034         (omp_notice_variable): Accept both ORT_TEAMS
28035         and ORT_COMBINED_TEAMS.  Don't recurse if
28036         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
28037         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
28038         GOVD_FIRSTPRIVATE.
28039         (omp_no_lastprivate): New function.
28040         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
28041         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
28042         notice_outer and set appropriate bits, otherwise make
28043         sure default(none) combined constructs won't complain.
28044         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
28045         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
28046         omp_no_lastprivate either remove the clause or turn it
28047         into OMP_CLAUSE_PRIVATE.
28048         (gimplify_omp_for): Fix up handling of implicit
28049         lastprivate or linear iterators.
28050         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
28051         ORT_COMBINED_TEAMS.
28052         * omp-low.c (lower_omp_for_lastprivate): For combined
28053         for simd use fd.loop.n2 from the for rather than simd.
28055 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28057         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
28058         instead of gen_rtx_raw_REG.
28059         (cris_expand_epilogue): Likewise.
28060         * config/microblaze/microblaze.c (microblaze_classify_address):
28061         Likewise.
28062         * config/sparc/sparc.md: Likewise.
28064 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
28066         * config/alpha/alpha.c (alpha_legitimize_reload_address)
28067         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
28068         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
28069         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
28070         Use CASE_CONST_SCALAR_INT.
28071         (print_operand) <case 'M'>: Use mode_width_operand to check the
28072         value of the constant.
28073         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
28074         * config/alpha/predicates.md (input_operand): Use general_operand
28075         instead of match_code as operand check.
28076         (symbolic_operand): Use match_code with subexpression digits.
28077         * config/alpha/constraints.md (Q): Ditto.
28079 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28081         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
28083 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28085         * config/s390/s390.c (s390_secondary_reload): Fix check for
28086         load/store relative.
28088 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28090         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
28091         alternative_mask to uint64_t.
28093 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
28095         PR tree-optimization/66187
28096         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
28097         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
28098         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
28100 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
28102         * diagnostic.c (diagnostic_report_current_module): Strengthen
28103         local "new_map" from const line_map * to
28104         const line_map_ordinary *.
28105         * genmatch.c (error_cb): Likewise for local "map".
28106         (output_line_directive): Likewise for local "map".
28107         * input.c (expand_location_1): Likewise for local "map".
28108         Pass NULL rather than &map to
28109         linemap_unwind_to_first_non_reserved_loc, since the value is never
28110         read from there, and the value written back not read from here.
28111         (is_location_from_builtin_token): Strengthen local "map" from
28112         const line_map * to const line_map_ordinary *.
28113         (dump_location_info): Strengthen locals "map" from
28114         line_map *, one to const line_map_ordinary *, the other
28115         to const line_map_macro *.
28116         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
28117         const line_map * to const line_map_macro *.
28118         (maybe_unwind_expanded_macro_loc): Add a call to
28119         linemap_check_macro when writing to the "map" field of the
28120         loc_map_pair.
28121         Introduce local const line_map_ordinary * "ord_map", using it in
28122         place of "map" in the part of the function where we know we have
28123         an ordinary map.  Strengthen local "m" from const line_map * to
28124         const line_map_ordinary *.
28126 2015-05-19  Nick Clifton  <nickc@redhat.com>
28128         PR target/66156
28129         * config/msp430/msp430.md (zero_extendhisi2): Add support for
28130         separate source and destination registers.
28132 2015-05-19  Richard Biener  <rguenther@suse.de>
28134         PR tree-optimization/66165
28135         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
28136         for no load permutation.
28138         PR tree-optimization/66185
28139         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
28140         when building the SLP node from scalars.
28142 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
28143             Tristan Gingold  <gingold@adacore.com>
28145         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
28146         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
28147         (expand_stack_restore): Call record_new_stack_level.
28148         (expand_stack_save): Do not call do_pending_stack_adjust.
28149         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
28150         * calls.c (expand_call): Call record_new_stack_level for alloca.
28151         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
28152         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
28153         (update_sjlj_context): New global function.
28154         * except.h (update_sjlj_context): Declare.
28155         * explow.c (record_new_stack_level): New global function.
28156         (allocate_dynamic_stack_space): Call record_new_stack_level.
28157         * explow.h (record_new_stack_level): Declare.
28158         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
28159         * cfgrtl.c (duplicate_insn_chain): Likewise.
28161 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28163         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
28164         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
28165         STACK_GROWS_DOWNWARD as normal if.
28166         (expand_call): Likewise.
28168 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
28170         PR target/54236
28171         * config/sh/sh.md (*round_int_even): New insn_and_split and
28172         accompanying new unnamed split.
28174 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28176         * bitmap.c (bitmap_set_range): Handle count==1 specially.
28177         (bitmap_clear_range): Likewise.
28178         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
28179         bitmap_set_range unconditionally.
28180         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28181         * df-scan.c (df_mark_reg): Likewise.
28182         * haifa-sched.c (setup_ref_regs): Likewise.
28183         * sched-rgn.c (update_live_1): Likewise.
28185 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28187         * regs.h (END_HARD_REGNO): Delete.
28188         (END_REGNO): Move to...
28189         * rtl.h: ...here.
28190         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
28191         * caller-save.c (mark_set_regs): Likewise.
28192         * combine.c (move_deaths, distribute_notes): Likewise.
28193         * cse.c (invalidate, invalidate_for_call): Likewise.
28194         * df-scan.c (df_ref_record): Likewise.
28195         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
28196         (record_last_reg_set_info): Likewise.
28197         * reg-stack.c (convert_regs_exit): Likewise.
28198         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
28199         * resource.c (update_live_status): Likewise.
28200         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
28202 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28204         * rtl.h (reg_info): Add an nregs field.
28205         (REG_NREGS): Use it.
28206         (SET_REGNO_RAW): Delete.
28207         (set_regno_raw): New function.
28208         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
28209         (END_REGNO): Redefine in terms of REG_NREGS.
28210         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
28211         SET_REGNO_RAW.
28212         * emit-rtl.c (set_mode_and_regno): Likewise.
28213         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
28214         instead of SET_REGNO_RAW.
28216 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28218         * rtl.h (PUT_MODE_RAW): New macro.
28219         (PUT_REG_NOTE_KIND): Use it.
28220         (set_mode_and_regno): Declare.
28221         (gen_raw_REG): Change regno to "unsigned int".
28222         (gen_rtx_REG): Change "unsigned" to "unsigned int".
28223         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
28224         use set_mode_and_regno to change the mode of registers.
28225         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
28226         * emit-rtl.c (set_mode_and_regno): New function.
28227         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
28228         * caller-save.c (reg_save_code): Use set_mode_and_regno.
28229         * expr.c (init_expr_target): Likewise.
28230         * ira.c (setup_prohibited_mode_move_regs): Likewise.
28231         * postreload.c (reload_cse_simplify_operands): Likewise.
28233 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28235         * caller-save.c (init_caller_save): Use word_mode and
28236         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
28237         * expr.c (init_expr_target): Likewise.
28238         * ira.c (setup_prohibited_mode_move_regs): Likewise.
28239         * postreload.c (reload_cse_regs_1): Likewise.
28241 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28243         * rtl.def (REG): Change format to "r".
28244         * rtl.h (rtunion): Remove rt_reg.
28245         (reg_info): New structure.
28246         (rtx_def): Add reg field to main union.
28247         (X0REGATTR): Delete.
28248         (REG_CHECK): New macro.
28249         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
28250         * rtl.c (rtx_format): Document "r".
28251         (rtx_code_size): Handle REG specially.
28252         * gengenrtl.c (special_format): Return true for formats
28253         that include 'r'.
28254         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
28255         Deal with REG_ATTRS after the field loop.
28256         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
28257         * expmed.c (init_expmed): Call gen_raw_REG instead of
28258         gen_rtx_raw_REG.
28259         * expr.c (init_expr_target): Likewise.
28260         * regcprop.c (maybe_mode_change): Likewise.
28261         * varasm.c (make_decl_rtl): Likewise.
28262         * final.c (leaf_renumber_regs_insn): Return early after
28263         handling REGs.
28264         * genemit.c (gen_exp): Handle 'r' fields.
28265         * genpeep.c (match_rtx): Likewise.
28266         * gensupport.c (subst_pattern_match): Likewise.
28267         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
28268         (alter_constraints, subst_dup): Likewise.
28269         * read-rtl.c (read_rtx_code): Likewise.
28270         * print-rtl.c (print_rtx): Likewise.
28271         * genrecog.c (find_operand, find_matching_operand): Likewise.
28272         (validate_pattern, match_pattern_2): Likewise.
28273         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
28274         (rtx_test::regno_field): New function.
28275         (operator ==, safe_to_hoist_p, transition_parameter_type)
28276         (parameter_type_string, print_parameter_value)
28277         (print_nonbool_test, print_test): Handle new enum values.
28278         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
28279         * lra-constraints.c (operands_match_p): Likewise.
28281 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28283         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
28284         Change type of new_regno to unsigned int.
28285         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
28286         new_regno to unsigned int.
28287         (df_ref_change_reg_with_loc): Remove old_regno parameter.
28288         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
28289         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
28290         (SET_REGNO_RAW): Add space after ",".
28292 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28294         * rtl.h (REG_NREGS): New macro
28295         * alias.c (record_set): Use it.
28296         * cfgcleanup.c (mark_effect): Likewise.
28297         * combine.c (likely_spilled_retval_1): Likewise.
28298         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
28299         (move_deaths, distribute_notes): Likewise.
28300         * cselib.c (cselib_record_set): Likewise.
28301         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28302         * df-scan.c (df_mark_reg): Likewise.
28303         * dse.c (look_for_hardregs): Likewise.
28304         * dwarf2out.c (reg_loc_descriptor): Likewise.
28305         (multiple_reg_loc_descriptor): Likewise.
28306         * expr.c (write_complex_part, read_complex_part): Likewise.
28307         (emit_move_complex): Likewise.
28308         * haifa-sched.c (setup_ref_regs): Likewise.
28309         * ira-lives.c (mark_hard_reg_live): Likewise.
28310         * lra.c (lra_set_insn_recog_data): Likewise.
28311         * mode-switching.c (create_pre_exit): Likewise.
28312         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
28313         (reload_combine_recognize_pattern): Likewise.
28314         (reload_combine_note_use, move2add_record_mode): Likewise.
28315         (reload_cse_move2add): Likewise.
28316         * reg-stack.c (subst_stack_regs_pat): Likewise.
28317         * regcprop.c (kill_value, copy_value): Likewise.
28318         (copyprop_hardreg_forward_1): Likewise.
28319         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
28320         (build_def_use): Likewise.
28321         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
28322         (deps_analyze_insn): Likewise.
28323         * sched-rgn.c (check_live_1, update_live_1): Likewise.
28324         * sel-sched.c (count_occurrences_equiv): Likewise.
28325         * valtrack.c (dead_debug_insert_temp): Likewise.
28327 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28329         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
28330         * dse.c (note_add_store): Likewise.
28331         * ira-lives.c (mark_hard_reg_dead): Likewise.
28332         * loop-invariant.c (mark_reg_store): Likewise.
28333         (mark_reg_death): Likewise.
28334         * postreload.c (reload_combine): Likewise.
28335         (reload_combine_note_store): Likewise.
28336         (reload_combine_note_use): Likewise.
28337         * recog.c (peep2_reg_dead_p): Likewise.
28339 2015-05-19  Alan Modra  <amodra@gmail.com>
28341         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
28342         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
28343         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
28344         unused predicates.
28345         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
28346         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
28347         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
28348         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
28350 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
28352         * config/mips/mips.md (JOIN_MODE): New mode iterator.
28353         (join2_load_Store<JOIN_MODE:mode>): New pattern.
28354         (join2_loadhi): Likewise.
28355         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
28356         load-load and store-stores.
28357         * config/mips/mips.opt (mload-store-pairs): New option.
28358         (TARGET_LOAD_STORE_PAIRS): New macro.
28359         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
28360         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
28361         * config/mips/mips.c (mips_load_store_bonding_p): New function.
28363 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
28365         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
28366         explicit swaps.
28367         * dojump.c (do_compare_rtx_and_jump): Likewise.
28368         * expmed.c (emit_store_flag_1): Likewise.
28369         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
28370         * final.c (sprint_ul): Use std::reverse for reversing a string.
28371         * fold-const.c (extract_muldiv_1): Use std::swap.
28372         * genmodes.c (emit_mode_int_n): Likewise.
28373         * ifcvt.c (dead_or_predicable): Likewise.
28374         * ira-build.c (ira_merge_live_ranges): Likewise.
28375         (swap_allocno_copy_ends_if_necessary): Likewise.
28376         * ira.c (ira_setup_alts): Likewise.
28377         * loop-iv.c (iv_analyze_expr): Likewise.
28378         (implies_p): Likewise.
28379         (canon_condition): Likewise.
28380         * lra-constraints.c (swap_operands): Likewise.
28381         * lra-lives.c (lra_merge_live_ranges): Likewise.
28382         * omega.c (swap): Remove.
28383         (bswap): Remove.
28384         (omega_unprotect_1): Use std::swap.
28385         (omega_solve_geq): Likewise.
28386         * optabs.c (expand_binop_directly): Likewise.
28387         (expand_binop): Likewise.
28388         (emit_conditional_move): Likewise.
28389         (emit_conditional_add): Likewise.
28390         * postreload.c (reload_cse_simplify_operands): Likewise.
28391         * reg-stack.c (emit_swap_insn): Likewise.
28392         (swap_to_top): Likewise.
28393         (compare_for_stack_reg): Likewise.
28394         (subst_asm_stack_regs): Likewise.
28395         * reload.c (find_reloads): Likewise.
28396         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
28397         * sel-sched.c (invoke_reorder_hooks): Likewise.
28398         (create_block_for_bookkeeping): Likewise.
28399         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
28400         (lambda_matrix_right_hermite): Use std::swap.
28401         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
28402         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
28403         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
28404         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
28405         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
28406         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
28407         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
28408         * tree-vrp.c (compare_ranges): Likewise.
28409         * var-tracking.c (add_with_sets): Likewise.
28410         (vt_find_locations): Likewise.
28412 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
28414         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
28415         pie executables.
28416         (FBSD_ENDFILE_SPEC): Likewise.
28417         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
28418         config/freebsd-spec.h.
28419         (ENDFILE_SPEC): Likewise.
28421 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
28422             Richard Henderson  <rth@redhat.com>
28424         PR target/57032
28425         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
28426         Check for a memory location that is not a reference (using an AND)
28427         to an unaligned location here.
28428         * config/alpha/predicates.md (normal_memory_operand): Remove.
28430 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
28432         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
28433         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
28435 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
28437         * config/mips/mips.c (micromips_globals): New variable.
28438         (mips_set_compression_mode): Save and reinitialize target-dependent
28439         state for microMIPS.
28441 2015-05-18  Martin Liska  <mliska@suse.cz>
28443         * dbgcnt.def: Add new counter.
28444         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
28446 2015-05-18  Martin Liska  <mliska@suse.cz>
28448         * dbgcnt.def: Sort counters.
28449         * opts.c (common_handle_option): Do not compile if
28450         -fdbg-cnt-list is enabled.
28452 2015-05-18  Tom de Vries  <tom@codesourcery.com>
28454         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
28455         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
28456         address operator to va_list operand.
28457         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
28458         unconditionally.
28459         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
28460         operand.
28461         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
28462         * config/s390/s390.c (s390_gimplify_va_arg): Same.
28463         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
28465 2015-05-18  Tom de Vries  <tom@codesourcery.com>
28467         * tree-ssa-tail-merge.c: Fix whitespace.
28469 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
28471         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
28472         cortex-a17, and cortex-a17.cortex-a7.
28474 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
28476         PR target/54236
28477         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
28479 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
28481         PR target/66174
28482         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
28483         QImode inner modes for TARGET_AVX512BW.  Force mask operand
28484         to a register for AVX512F modes.
28486 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
28488         * toplev.c (emit_debug_global_declarations): Do not output debug info
28489         when doing slim LTO objects.
28491 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
28493         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
28494         odr_types_equivalent_p): Declare.
28495         (odr_type_p): Use gcc_checking_assert.
28496         (type_in_anonymous_namespace_p) Declare.
28497         (type_with_linkage_p): Declare.
28498         * common.opt (Wlto-type-mismatch): New warning.
28499         * ipa-devirt.c (compound_type_base): New function.
28500         (odr_or_derived_type_p): New function.
28501         (odr_types_equivalent_p): New function.
28502         (add_type_duplicate): Simplify.
28503         (type_with_linkage_p): Add hack to prevent false positives on C types
28504         (type_in_anonymous_namespace_p): Likewise.
28505         * tree.c (need_assembler_name_p): Use type_with_linkage.
28506         * tree.h (type_in_anonymous_namespace_p): Remove.
28507         * doc/invoke.texi (-Wlto-type-mismatch): Document
28509 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
28511         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
28512         (verify_type): Verify STRING_FLAG.
28514 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28516         PR fortran/44054
28517         * tree-pretty-print.c (percent_K_format): Replace locus pointer
28518         with accessor function.
28519         * tree-diagnostic.c (diagnostic_report_current_function): Use
28520         diagnostic_location function.
28521         (maybe_unwind_expanded_macro_loc): Likewise.
28522         (virt_loc_aware_diagnostic_finalizer): Likewise.
28523         (default_tree_printer): Replace locus pointer with accessor function.
28524         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
28525         (diagnostic_set_info_translated): Initialize second location.
28526         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
28527         (diagnostic_show_locus): Handle two locations. Call
28528         diagnostic_print_caret_line.
28529         (diagnostic_print_caret_line): New.
28530         (default_diagnostic_starter): Use diagnostic_location function.
28531         (diagnostic_report_diagnostic): Use diagnostic_location function.
28532         (verbatim): Do not set text.locus.
28533         * diagnostic.h (struct diagnostic_info): Remove location field.
28534         (struct diagnostic_context): Make caret_chars an array of two.
28535         (diagnostic_location): New inline.
28536         (diagnostic_expand_location): Handle two locations.
28537         (diagnostic_same_line): New inline.
28538         (diagnostic_print_caret_line): Declare.
28539         (CARET_LINE_MARGIN): New constant.
28540         * pretty-print.c (pp_printf): Do not set text.locus.
28541         (pp_verbatim): Do not set text.locus.
28542         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
28543         (struct text_info): Replace locus pointer with locations
28544         array. Add accessor functions.
28546 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
28547             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28549         PR target/65768
28550         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
28551         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
28552          large constants in register instead of splitting them.
28554 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
28556         PR target/66140
28557         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
28558         replacements in memory addresses.
28559         (get_unaligned_address): Ditto.
28561 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
28563         * config/ft32/*: New files for FT32 port.
28564         * doc/install.texi: Add FT32 information.
28565         * doc/invoke.texi: Add FT32 information.
28566         * doc/md.texi: Add FT32 information.
28567         * doc/contrib.texi: Self added.
28569 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
28571         PR tree-optimization/64454
28572         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
28573         (-1 - A -> ~A): Remove unnecessary condition.
28575 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
28577         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
28578         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
28579         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
28581 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
28583         * ipa-chkp.h (chkp_wrap_function): New.
28584         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
28585         (chkp_wrap_function_name): New.
28586         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
28587         to get wrapper name.
28588         * lto-cgraph.c: Include ipa-chkp.h.
28589         (input_cgraph_1): Avoid alias chain for wrappers.
28591 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
28593         PR middle-end/66134
28594         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
28595         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
28597 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28599         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
28600         (AARCH64_FL_SLOWMUL): Delete.
28601         (AARCH64_FL_CRC): Redefine to 1<<3.
28602         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
28604 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28606         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
28607         casting.
28609 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
28611         * config/alpha/alpha.md (extendqidi2): Use general_operand
28612         instead of some_operand for operand[1] predicate.
28613         (extendhidi2): Ditto.
28614         (cbranchdi4): Use general_operand instead of some_operand
28615         for operand[1] and operands[2] predicates.
28616         (cstoredi4): Ditto.
28617         * config/alpha/predicates.md (some_operand): Remove unused predicate.
28618         (some_ni_operand): Ditto.
28620 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
28622         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
28623         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
28624         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
28625         low part of the constant using alpha_emit_set_const_1.
28626         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
28628 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
28630         * varasm.c (output_constant_pool_1): Pass down alignment from
28631         constant pool entry's descriptor to output_constant_pool_2.
28632         (output_object_block): Add comment prior to call to
28633         output_constant_pool_1.
28635 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
28637         PR rtl-optimization/65862
28638         * target.def (ira_change_pseudo_allocno_class): New hook.
28639         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
28640         value of the hook.
28641         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
28642         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
28643         hook.
28644         * ira-costs.c (find_costs_and_classes): Call the hook and change
28645         classes when it is necessary.
28646         * doc/tm.texi: Update.
28648 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
28650         * config/i386/i386.md (sibcall_memory): Check that register with
28651         callee address is not also used as one of the arguments, instead
28652         of checking that it is not live after the sibcall.
28653         (sibcall_pop_memory): Ditto.
28654         (sibcall_value_memory): Ditto.
28655         (sibcall_value_pop_memory): Ditto.
28657 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
28659         * generic-match-head.c (types_match): Handle non-types.
28660         * gimple-match-head.c (types_match): Likewise.
28661         * match.pd: Remove unnecessary TREE_TYPE for types_match.
28663 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
28665         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
28666         (csneg3<mode>_insn): Enable expansion of pattern.
28668 2015-05-14  Nick Clifton  <nickc@redhat.com>
28670         * config/rl78/rl78.c (rl78_select_section): Select the correct
28671         default section based upon the category of the decl.
28673 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
28675         PR rtl-optimization/30967
28676         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
28677         destination mode for the cost of scc patterns.
28679 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
28681         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
28682         using SWIM248 mode iterator.
28683         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
28684         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
28685         for operand[2] constraint.
28686         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
28688 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
28690         PR middle-end/66133
28691         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
28692         make sure it is never noreturn, even when the task body does not
28693         return.
28694         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
28695         right before GIMPLE_OMP_RETURN.
28696         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
28697         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
28698         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
28700 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28702         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
28703         * tree-ssa-math-opts.c: Include params.h
28704         (pow_synth_sqrt_info): New struct.
28705         (representable_as_half_series_p): New function.
28706         (get_fn_chain): Likewise.
28707         (print_nested_fn): Likewise.
28708         (dump_fractional_sqrt_sequence): Likewise.
28709         (dump_integer_part): Likewise.
28710         (expand_pow_as_sqrts): Likewise.
28711         (gimple_expand_builtin_pow): Use above to attempt to expand
28712         pow as series of square roots.  Removed now unused variables.
28714 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
28716         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
28717         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
28718         Remove *p0 and *p1 arguments.  Rewrite function.
28719         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
28720         (alpha_split_const_mov): Update calls to alpha_extract_integer and
28721         alpha_emit_set_long_const.
28722         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
28723         (alpha_output_mi_thunk_osf): Ditto.
28724         * config/alpha/alpha.md (movti): Do not check operands[1]
28725         for CONST_DOUBLE.
28727 2015-05-13  Richard Biener  <rguenther@suse.de>
28729         PR tree-optimization/66129
28730         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
28731         commutative.
28732         (vect_schedule_slp_instance): Fix typo.
28734 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
28736         * common.opt (fdump-internal-locations): New option.
28737         * input.c: Include diagnostic-core.h.
28738         (get_end_location): New function.
28739         (write_digit): New function.
28740         (write_digit_row): New function.
28741         (dump_location_range): New function.
28742         (dump_labelled_location_range): New function.
28743         (dump_location_info): New function.
28744         * input.h (dump_location_info): New prototype.
28745         * toplev.c (compile_file): Handle flag_dump_locations.
28747 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
28749         * gimple-expr.h (is_gimple_constant): Reorder.
28750         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
28752 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
28754         * combine.c (simplify_set): When generating a CC set, if the
28755         source already is in the correct mode, do not wrap it in a
28756         compare.  Simplify the rest of that code.
28758 2015-05-13  Richard Biener  <rguenther@suse.de>
28760         PR tree-optimization/66123
28761         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
28762         a taken edge.
28764 2015-05-13  Richard Biener  <rguenther@suse.de>
28766         PR middle-end/66110
28767         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
28768         specially.
28769         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
28771 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
28773         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
28774         * aclocal.m4: Regenerated with automake-1.11.6.
28776 2015-05-13  Tom de Vries  <tom@codesourcery.com>
28778         PR tree-optimization/66010
28779         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
28780         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
28781         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
28782         and rval based on do_deref.
28784 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
28786         PR target/65103
28787         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
28788         link time constants into adress expressions and therefore set
28789         their cost to 0.
28791 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
28793         PR target/66112
28794         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
28795         Use SWI248 iterator instead of SWI.
28796         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
28797         Use eq_attr "alternative" "0" instead of match_test in
28798         length_immediate attribute computation.
28799         (*mulvhi4, *mulvhi4_1): New define_insns.
28801         PR target/66112
28802         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
28803         SIGNED to get precision of non-negative value.
28805 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
28807         PR target/66048
28808         * function.c (diddle_return_value_1): Process bounds first.
28809         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
28810         register.
28812 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28814         PR rtl-optimization/64616
28815         * loop-invariant.c (can_move_invariant_reg): New.
28816         (move_invariant_reg): Call above new function to decide whether
28817         instruction can just be moved, skipping creation of temporary
28818         register.
28820 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
28822         PR target/pr66047.c
28823         * i386.c (ix86_function_sseregparm): Only return -1 if local function
28824         with implied regparm is called from -mno-sse function.
28825         (init_cumulative_args): Output error if ix86_function_sseregparm
28826         return -1 and SSE register would be needed.
28827         (function_arg_advance_32): Likewise.
28828         (function_arg_32): Likewise.
28829         * i386.h (ix86_args): Add decl field.
28831 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
28833         PR ipa/65873
28834         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
28835         inlines across optimization boundary.
28837 2015-05-12  Jason Merrill  <jason@redhat.com>
28839         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
28840         string literal and macro name.
28842 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
28844         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
28845         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
28846         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
28848 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
28850         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
28851         (-Wmisleading-indentation): New option.
28852         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
28854 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
28856         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
28857         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
28858         (alpha_extract_integer): Ditto.
28859         (alpha_legitimate_constant_p): Ditto.
28860         (alpha_split_tmode_pair): Ditto.
28861         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
28862         (alpha_expand_mov): Ditto.
28863         (print_operand): Remove handling of 'H' modifier.
28864         <case 'm'>: Remove CONST_DOUBLE handling.
28865         (summarize_insn): Handle CONST_WIDE_INT.
28866         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
28867         (anddi3): Ditto.
28868         (movti): Handle CONST_WIDE_INT.
28869         * config/alpha/constraints.md ('H'): Remove constraint definition.
28870         ('G'): Do not match MODE_FLOAT class.
28871         * config/alpha/predicates.md (const0_operand): Also match
28872         const_wide_int.
28873         (non_add_const_operand): Ditto.
28874         (non_zero_const_operand): Ditto.
28875         (some_operand): Ditto.
28876         (input_operand): Ditto.  Handle CONST_WIDE_INT.
28877         (and_operand): Do not match const_double.
28878         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
28880 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
28882         PR target/65697
28883         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
28884         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
28885         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
28886         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
28887         is_mm_seq_cst, is_mm_sync): New accessor functions.
28888         * builtins.c (expand_builtin_sync_operation,
28889         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
28890         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
28891         (get_memmodel,  expand_builtin_atomic_compare_exchange,
28892         expand_builtin_atomic_load, expand_builtin_atomic_store,
28893         expand_builtin_atomic_clear): Use new accessor routines.
28894         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
28895         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
28896         (maybe_emit_sync_lock_test_and_set): Use new accessors and
28897         MEMMODEL_SYNC_ACQUIRE.
28898         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
28899         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
28900         expand_atomic_store): Use new accessors.
28901         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
28902         * tsan.c (instrument_builtin_call): Update check for memory model beyond
28903         final enum to use MEMMODEL_LAST.
28904         * c-family/c-common.c: Use new accessor for memmodel_base.
28905         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
28906         accessors.
28907         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
28908         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
28909         mem_thread_fence, *dmb): Likewise.
28910         * config/alpha/alpha.c (alpha_split_compare_and_swap,
28911         alpha_split_compare_and_swap_12): Likewise.
28912         * config/arm/arm.c (arm_expand_compare_and_swap,
28913         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
28914         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
28915         atomic_loaddi): Likewise.
28916         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
28917         Likewise.
28918         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
28919         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
28920         use new accessors.
28921         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
28922         atomic_store<mode>, atomic_compare_and_swap<mode>,
28923         atomic_exchange<mode>): Use new accessors.
28924         * config/mips/mips.c (mips_process_sync_loop): Likewise.
28925         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
28926         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
28927         rs6000_post_atomic_barrier): Add new cases.
28928         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
28929         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
28930         (atomic_load<mode>): Add new cases and use new accessors.
28931         (store_quadpti): Add new cases.
28932         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
28933         accessors.
28934         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
28935         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
28936         model, not 8.
28938 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
28940         * ipa-devirt.c (type_with_linkage_p): New function.
28941         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
28942         type has linkage.
28943         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
28944         (can_be_name_hashed_p): Simplify.
28945         (hash_odr_name): Check that type has linkage before checking if it is
28946         anonymous.
28947         (types_same_for_odr): Likewise.
28948         (odr_name_hasher::equal): Likewise.
28949         (odr_subtypes_equivalent_p): Likewise.
28950         (warn_types_mismatch): Likewise.
28951         (get_odr_type): Likewise.
28952         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
28953         * ipa-utils.h (odr_type_p): Move offline.
28954         * tree.c (need_assembler_name_p): Fix handling of types
28955         without linkages.
28956         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
28958 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
28960         * timevar.c (timevar_enable): Delete in favor of...
28961         (g_timer): New global.
28962         (struct timevar_def): Move to timevar.h inside class timer.
28963         (struct timevar_stack_def): Likewise.
28964         (timevars): Delete global in favor of field "m_timevars" within
28965         class timer in timevar.h
28966         (stack): Likewise, in favor of field "m_stack".
28967         (unused_stack_instances): Likewise, in favor of field
28968         "m_unused_stack_instances".
28969         (start_time): Likewise, in favor of field "m_start_time".
28970         (get_time): Eliminate check for timevar_enable.
28971         (timer::timer): New function, built from part of timevar_init.
28972         (timevar_init): Rewrite idempotency test from using
28973         "timevar_enable" bool to using dynamic allocation of "g_timer".
28974         Move rest of implementation into timer's constructor.
28975         (timevar_push_1): Rename to...
28976         (timer::push): ...this, adding "m_" prefixes to variables that
28977         are now fields of timer.
28978         (timevar_pop_1): Likewise, rename to...
28979         (timer::pop): ...this, and add "m_" prefixes.
28980         (timevar_start): Replace test for "timevar_enable" with one for
28981         "g_timer", and move bulk of implementation to...
28982         (timer::start): ...here, adding "m_" prefixes.
28983         (timevar_stop): Likewise, from here...
28984         (timer::stop): ...to here.
28985         (timevar_cond_start): Likewise, from here...
28986         (timer::cond_start): ...to here.
28987         (timevar_cond_stop): Likewise, from here...
28988         (timer::cond_stop): ...to here.
28989         (validate_phases): Rename to...
28990         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
28991         locals "total" and "tv" const.
28992         (timevar_print): Rename to...
28993         (timer::print): ...this, and add "m_" prefixes.  Make locals
28994         "total" and "tv" const.  Eliminate test for timevar_enable.
28995         * timevar.h (timevar_enable): Eliminate.
28996         (g_timer): New declaration.
28997         (timevar_push_1): Eliminate.
28998         (timevar_pop_1): Eliminate.
28999         (timevar_print): Eliminate.
29000         (class timer): New class.
29001         (timevar_push): Rewrite to use g_timer.
29002         (timevar_pop): Likewise.
29003         * toplev.c (toplev::~toplev): Likewise.
29005 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
29007         * arm-protos.h (arm_sched_autopref): Delete.
29008         (tune_params): Re-organize, use enums for flag values.
29009         (FUSE_OPS): New macro.
29010         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
29011         (ARM_PREFETCH_BENEFICIAL): Likewise.
29012         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
29013         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
29014         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
29015         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
29016         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
29017         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
29018         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
29019         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
29020         format.
29021         (arm_option_override, thumb2_reorg, arm_print_tune_info)
29022         (aarch_macro_fusion_pair_p): Update uses of current_tune.
29023         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
29025 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
29027         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
29028         "break".
29030 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
29031             Sandra Loosemore <sandra@codesourcery.com>
29033         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
29034         value.
29035         (REG_CLASS_NAMES): Add "IJMP_REGS".
29036         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
29037         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
29038         use new "c" register constraint.
29039         * config/nios2/constraint.md (c): New register constraint
29040         corresponding to IJMP_REGS.
29042 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29044         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
29045         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
29046         define_splits): Delete, revamp, transmogrify into ...
29047         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
29048         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
29049         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
29050         New.
29052 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29054         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
29055         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
29057 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29059         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
29060         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
29061         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
29062         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
29063         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
29064         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
29065         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
29066         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
29067         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
29068         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
29069         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
29070         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
29071         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
29072         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
29073         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
29074         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
29075         and 30 corresponding splitters): Delete.
29077 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29079         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
29080         zero_extract.
29082 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29084         * combine.c (recog_for_combine_1): New function, factored out
29085         from recog_for_combine.
29086         (change_zero_ext): New function.
29087         (recog_for_combine): If recog fails, try again with the pattern
29088         modified by change_zero_ext; if that still fails, restore the
29089         pattern.
29091 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29093         * combine.c (get_undo_marker): New function.
29094         (undo_to_marker): New function, largely factored out from ...
29095         (undo_all): ... this.  Adjust.
29097 2015-05-12  Richard Biener  <rguenther@suse.de>
29099         PR tree-optimization/66101
29100         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
29101         fixup if we turn a loop exit edge to a fallthru edge.
29103 2015-05-12  Richard Biener  <rguenther@suse.de>
29105         PR tree-optimization/37021
29106         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
29107         (SLP_TREE_TWO_OPERATORS): New define.
29108         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
29109         SLP_TREE_TWO_OPERATORS.
29110         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
29111         SLP node.
29112         (vect_build_slp_tree): Adjust.
29113         (vect_analyze_slp_cost_1): Likewise.
29114         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
29115         emitting two vector stmts and mixing the results.
29117 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29119         * call.c (print_z_candidates): Remove dead code.
29121 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29123         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
29124         and zEC12_simple_fp.
29125         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
29126         to 1.
29128 2015-05-12  Tom de Vries  <tom@codesourcery.com>
29130         PR tree-optimization/66010
29131         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
29132         ifn_va_arg.
29133         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
29134         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
29135         va_lists are passed, and remove corresponding handling.
29136         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
29137         do_deref argument to ifn_va_arg.
29138         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
29139         ifn_va_arg.
29141 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29143         PR target/65955
29144         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
29145         REG before taking its REGNO.
29147 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29149         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
29150         rsp->sign_bit_copies and rsp->nonzero_bits into ...
29151         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
29152         present to get more accurate information about the number of sign bit
29153         copies and non zero bits.
29155 2015-05-12  Richard Biener  <rguenther@suse.de>
29157         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
29158         do not allow unrolling.
29160 2015-05-11  Richard Henderson  <rth@redhat.com>
29162         * config/i386/i386-modes.def (CCP): New.
29163         * config/i386/i386.c (put_condition_code): Handle it.
29164         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
29166 2015-05-11  Richard Henderson  <rth@redhat.com>
29168         * target.def (md_asm_clobbers): Replace with...
29169         (md_asm_adjust): this.
29170         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
29171         (TARGET_MD_ASM_ADJUST): New.
29172         * tm.texi: Rebuild.
29173         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
29174         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
29175         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
29177         * cfgexpand.c (check_operand_nalternatives): Accept vector of
29178         constraints instead of lists of outputs and inputs.
29179         (expand_asm_stmt): Save and restore input_location around the
29180         body of the function.  Move asm data into vectors instead of
29181         building tree lists.  Generate cleanup sequences as needed,
29182         rather than waiting til the end.  Use new md_asm_adjust hook.
29184         * config/vxworks.c: Include vec.h before target.h.
29185         * gimple.c: Likewise.
29186         * incpath.c: Likewise.
29187         * mode-switching.c: Likewise.
29189         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
29190         (cris_md_asm_adjust): this.
29191         (TARGET_MD_ASM_CLOBBERS): Remove.
29192         (TARGET_MD_ASM_ADJUST): New.
29193         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
29194         (ix86_md_asm_adjust): this.
29195         (TARGET_MD_ASM_CLOBBERS): Remove.
29196         (TARGET_MD_ASM_ADJUST): New.
29197         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
29198         (mn10300_md_asm_adjust): this.
29199         (TARGET_MD_ASM_CLOBBERS): Remove.
29200         (TARGET_MD_ASM_ADJUST): New.
29201         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
29202         (rs6000_md_asm_adjust): this.
29203         (TARGET_MD_ASM_CLOBBERS): Remove.
29204         (TARGET_MD_ASM_ADJUST): New.
29205         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
29206         (visium_md_asm_adjust): this.
29207         (TARGET_MD_ASM_CLOBBERS): Remove.
29208         (TARGET_MD_ASM_ADJUST): New.
29210 2015-05-11  Richard Henderson  <rth@redhat.com>
29212         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
29213         if noutputs is zero.
29214         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
29216         * cfgexpand.c (expand_asm_operands): Merge into...
29217         (expand_asm_stmt): ... here.
29219         * cfgexpand.c (expand_asm_operands): Don't call
29220         resolve_asm_operand_names.
29221         * stmt.c (resolve_asm_operand_names): Clarify block comment.
29223 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
29225         * dwarf2out.c (gen_member_die): Sanity check that we access
29226         TYPE_MAIN_VARIANT for TYPE_METHODS.
29227         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
29228         checking TYPE_METHODS.
29229         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
29230         if non-null.
29231         (build_distinct_type_copy): Clear TYPE_METHODS.
29232         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
29233         (verify_type): Allow TYPE_METHODS to be error_mark_node.
29234         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
29236 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
29238         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
29239         (emit_pattern_before_setloc): Likewise.
29241 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
29243         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
29244         for define_peephole2s.
29245         (get_peephole2_pattern): New function.
29246         (main): Use it.  Call validate_pattern.
29248 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
29250         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
29251         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
29252         (Last callee saved reg is different for AVR_TINY architecture)
29254 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
29256         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
29257         when looking for memory references.
29259 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
29261         PR target/65753
29262         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
29263         via function pointers.
29265 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
29267         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
29268         indirect call by forcing address into a pseudo with -fno-plt.
29269         * common.opt (flag_plt): New option.
29270         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
29271         ([-fno-plt]): Document.
29273 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
29275         PR bootstrap/66105
29276         * config/rs6000/option-defaults.h: Add space between string literal
29277         and macro name.
29279 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29281         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
29282         accross ARM targets.
29284 2015-05-11  Christian Bruel  <christian.bruel@st.com>
29286         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
29287         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
29289 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
29291         PR rtl-optimization/66076
29292         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
29293         Don't grow the heap array if it is already big enough from a
29294         previous iteration.
29296 2015-05-11  Christian Bruel  <christian.bruel@st.com>
29298         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
29299         (is_called_in_ARM_mode): Remove.
29300         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
29301         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
29302         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
29303          arm_declare_function_name.
29305 2015-05-11  Christian Bruel  <christian.bruel@st.com>
29307         * config/arm/arm.c (arm_option_override): Reoganized and split into :
29308         (arm_option_params_internal); New function.
29309         (arm_option_check_internal): New function.
29310         (arm_option_override_internal): New function.
29311         (thumb_code, thumb1_code): Remove.
29312         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
29313         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
29314         (thumb_code, thumb1_code): Remove.
29315         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
29317 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
29319         * config/alpha/alpha.c (alpha_emit_set_const_1)
29320         (alpha_emit_set_long_const, alpha_extract_integer)
29321         (alpha_legitimate_constant_p, alpha_split_const_mov)
29322         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
29323         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29324         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
29325         HOST_WIDE_INT_1U.
29326         * config/alpha/predicates.md (mode_mask_operand): Do not match
29327         const_double RTX.
29328         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29329         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
29330         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
29331         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29332         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
29334 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
29336         PR target/65780
29337         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
29338         default_binds_local_p_2.
29339         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
29340         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
29342 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29344         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
29346 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29348         Patch by Richard Biener
29349         * coverage.c (coverage_obj_init): Delay building of type variant
29350         until the type is finished.
29352 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29354         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
29355         mismatch between C and C++ type; compoare correctly ARG_TYPES
29356         for non-prototypes and output correctly parameter index for METHOD_TYPE.
29357         (odr_types_equivalent_p): Fix wording of warning about attributes;
29358         it is OK to match prototype and non-prototype.
29360 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29362         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
29363         TYPE_ARG_TYPES list.
29364         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
29365         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
29367 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29369         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
29370         * tree.h (is_lang_specific): Constify.
29372 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
29374         PR tree-optimization/64454
29375         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
29376         Rewrite.
29378 2015-05-08  Jason Merrill  <jason@redhat.com>
29380         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
29381         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
29382         config/darwin.h, config/darwin9.h, config/elfos.h,
29383         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
29384         config/microblaze/microblaze.h, config/mips/mips.h,
29385         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
29386         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
29387         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
29388         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
29389         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
29390         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
29391         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
29392         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
29393         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
29394         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
29395         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
29396         between string literal and macro name.
29398 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29400         * jump.c: Change argument types to rtx_insn *.
29401         * rtl.h: Adjust.
29403 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29405         * lra-constraints.c: Change argument type to rtx_insn *.
29407 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29409         * df-problems.c: Change argument type to rtx_insn *.
29411 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29413         * combine.c: Change argument type to rtx_insn *.
29415 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29417         * rtl.h: Adjust.
29418         * rtlanal.c: Change argument type to rtx_insn *.
29420 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29422         * sched-deps.c: Change argument types to rtx_insn *.
29423         * sched-int.h: Adjust.
29425 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29427         * dwarf2cfi.c: Change argument type to rtx_insn *.
29429 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29431         * ira.c (decrease_live_ranges_number): Changetype of local
29432         variable to rtx_insn *.
29433         * recog.c: Change argument types to rtx_insn *.
29434         * recog.h: Adjust.
29436 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29438         * reorg.c: Change argument types to rtx_insn *.
29440 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29442         * ira-color.c: Change argument types to rtx_insn *.
29443         * lra-eliminations.c: Likewise.
29444         * ira.h: Adjust.
29446 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29448         * gcse.c: Change argument types to rtx_insn *.
29450 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29452         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
29454 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29456         * emit-rtl.c (emit_debug_insn_before): Change argument type to
29457         rtx_insn *.
29458         * rtl.h: Adjust.
29460 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29462         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
29463         * rtl.h: Adjust.
29465 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29467         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
29468         * rtl.h: Adjust.
29470 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29472         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
29473         * rtl.h: Adjust.
29475 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29477         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
29478         * rtl.h: Adjust.
29480 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29482         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
29483         to rtx_insn *.
29484         * rtl.h: Adjust.
29486 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29488         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
29489         to rtx_insn *.
29490         * rtl.h: Likewise.
29492 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29494         * except.c (can_nonlocal_goto): Change type of argument to
29495         rtx_insn *.
29496         * rtl.h: Adjust.
29498 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29500         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
29501         * rtl.h: Adjust.
29503 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29505         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
29506         * cfgrtl.c (can_delete_label_p): Adjust.
29507         * rtl.h: likewise.
29509 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29511         * reorg.c (stop_search_p): Change argument to rtx_insn *.
29513 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29515         * except.c (make_reg_eh_region_note): Change argument to
29516         rtx_insn *.
29517         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
29518         * except.h: Adjust.
29520 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29522         * mode-switching.c (commit_mode_sets): Change type of local
29523         variable from rtx to rtx_insn *.
29525 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
29527         * doc/install.texi (--enable-languages): Add missing jit and lto info.
29528         Add ^ to grep command.
29529         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
29530         arg to last gimple_simplify declaration.  Add missing gimple_build
29531         declaration for built-in function case with four tree args.
29533 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
29534             Szabolcs Nagy  <szabolcs.nagy@arm.com>
29536         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
29537         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
29538         (GNU_USER_DYNAMIC_LINKERN32): Update.
29540 2015-05-08  Richard Biener  <rguenther@suse.de>
29542         PR tree-optimization/66036
29543         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
29544         Handle strided group loads.
29545         (vect_verify_datarefs_alignment): Likewise.
29546         (vect_enhance_data_refs_alignment): Likewise.
29547         (vect_analyze_group_access): Likewise.
29548         (vect_analyze_data_ref_access): Likewise.
29549         (vect_analyze_data_ref_accesses): Likewise.
29550         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
29551         (vectorizable_load): Likewise.
29553 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
29555         * config/rs6000/rs6000.md: Require operand inequality in one
29556         of the peepholes.
29558 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
29559             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
29561         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
29562         from (set ...).
29563         * config/rx/rx.md (movdi, movdf): Likewise.
29564         Likewise for define_peephole2s.
29566 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
29568         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
29569         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
29570         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
29571         vtst_u64): Rewrite using gcc vector extensions.
29573 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
29575         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
29576         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
29578 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
29580         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
29582 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29584         * config/glibc-stdint.h (OPTION_MUSL): Define.
29585         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
29586         Change the definition based on OPTION_MUSL for 64 bit targets.
29587         * config/linux.h (OPTION_MUSL): Redefine.
29588         * config/alpha/linux.h (OPTION_MUSL): Redefine.
29589         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
29590         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
29592 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
29593             Szabolcs Nagy  <szabolcs.nagy@arm.com>
29595         * config.gcc (LIBC_MUSL): New tm_defines macro.
29596         * config/linux.h (OPTION_MUSL): Define.
29597         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
29598         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
29599         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29600         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29601         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29602         * config/linux.opt (mmusl): New option.
29603         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
29604         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29605         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29606         * configure: Regenerate.
29608 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
29609             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29611         PR target/48904
29612         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
29613         * config/i386/knetbsd-gnu64.h: New file.
29615 2015-05-08  Marek Polacek  <polacek@redhat.com>
29617         PR c/64918
29618         * doc/invoke.texi: Document -Woverride-init-side-effects.
29620 2015-05-07  Marek Polacek  <polacek@redhat.com>
29622         PR c/65179
29623         * doc/invoke.texi: Document -Wshift-negative-value.
29625 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
29627         * gcov-tool.c (do_merge): Refactore to remove int ret.
29628         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
29629         !type == FUNC to type != FUNC.
29630         * reload.h (struct target_reload): Changee to type of
29631         x_spill_indirect_levels from bool to unsigned char.
29633 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
29635         * rtl.h (always_void_p): New function.
29636         * gengenrtl.c (always_void_p): Likewise.
29637         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
29638         with code foo are always VOIDmode.
29639         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
29640         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
29641         compare-elim.c, config/aarch64/aarch64.c,
29642         config/aarch64/aarch64.md, config/alpha/alpha.c,
29643         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
29644         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
29645         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
29646         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
29647         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
29648         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
29649         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
29650         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
29651         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
29652         config/ia64/vect.md, config/iq2000/iq2000.c,
29653         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
29654         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
29655         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
29656         config/mep/mep.c, config/microblaze/microblaze.c,
29657         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
29658         config/mn10300/mn10300.c, config/msp430/msp430.c,
29659         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
29660         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
29661         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
29662         config/rs6000/altivec.md, config/rs6000/rs6000.c,
29663         config/rs6000/rs6000.md, config/rs6000/vector.md,
29664         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
29665         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
29666         config/sh/sh.md, config/sh/sh_treg_combine.cc,
29667         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
29668         config/spu/spu.md, config/stormy16/stormy16.c,
29669         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
29670         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
29671         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
29672         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
29673         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
29674         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
29675         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
29676         var-tracking.c: Update calls accordingly.
29678 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
29680         PR middle-end/192
29681         PR middle-end/54303
29682         * varasm.c (function_mergeable_rodata_prefix): New function.
29683         (mergeable_string_section): Use it.
29684         (mergeable_constant_section): Use it.
29686 2015-05-07  Jeff Law  <law@redhat.com>
29688         PR target/39726
29689         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29690         simplifier to narrow arithmetic.
29691         * generic-match-head.c: (types_match, single_use): New functions.
29692         * gimple-match-head.c: (types_match, single_use): New functions.
29694 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
29696         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
29697         rtx type.
29699 2015-05-07  Richard Biener  <rguenther@suse.de>
29701         PR tree-optimization/66002
29702         * passes.def: Schedule another pass_merge_phi after ifcombine, right
29703         before phiopt.
29705 2015-05-07  Marek Polacek  <polacek@redhat.com>
29706             Martin Uecker  <uecker@eecs.berkeley.edu>
29708         * doc/invoke.texi: Document -fsanitize=bounds-strict.
29709         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
29710         into SANITIZE_NONDEFAULT.
29711         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
29713 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
29715         PR target/66015
29716         * config/alpha/alpha.c (alpha_override_options_after_change): New.
29717         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
29718         (alpha_override_options): Move align_loops, align_jumps and
29719         align_functions handling into alpha_override_options_after_change.
29721 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
29722             Chris Jones  <chrisj@nvidia.com>
29723             Joshua Conner  <jconner@nvidia.com>
29725         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
29726         linking of crtfastmath.o.
29727         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
29729 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
29731         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
29732         (cstore<mode>4_unsigned_imm): New expander.
29733         (cstore<mode>4): Remove empty constraint strings.  Use the new
29734         expanders.
29736 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
29738         PR target/64208
29739         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
29740         alternatives.
29742 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29744         * config/aarch64/geniterators.sh: Use standard BRE in sed.
29746 2015-05-06  Alan Modra  <amodra@gmail.com>
29748         PR target/66033
29749         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
29750         (UNSPEC_NOP): Define.
29751         (reload_vsx_from_gpr<mode>): Add missing DONE.
29752         (reload_gpr_from_vsx<mode>): Likewise.
29753         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
29754         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
29756 2015-05-06  Christian Bruel  <christian.bruel@st.com>
29758         PR target/66015
29759         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
29760         align_jumps, align_functions into aarch64_override_options_after_change.
29762 2015-05-06  Richard Biener  <rguenther@suse.de>
29764         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
29765         vect_transform_slp_perm_load to check if we support a permutation
29766         for basic-block vectorization.
29768 2015-05-06  Nick Clifton  <nickc@redhat.com>
29770         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
29771         used, even if it is not being used as a frame pointer.
29773 2015-05-05  Jason Merrill  <jason@redhat.com>
29775         * dwarf2out.c (gen_member_die): Don't emit anything for an
29776         anonymous class constructor.
29778 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
29780         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
29781         that it reflects the block structure.
29782         (afdo_propagate_edge): Likewise.
29783         (afdo_calculate_branch_prob): Likewise.
29784         (afdo_annotate_cfg): Likewise.
29785         * cfgcleanup.c (equal_different_set_p): Likewise.
29786         (try_crossjump_to_edge): Likewise.
29787         * cgraph.c (cgraph_node::verify_node): Likewise.
29788         * cgraphunit.c (expand_all_functions): Likewise.
29789         * config/i386/i386.c (ix86_expand_copysign): Likewise.
29790         (exact_dependency_1): Likewise.
29791         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
29792         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
29793         * gensupport.c (process_define_subst): Likewise.
29794         * lto-wrapper.c (merge_and_complain): Likewise.
29795         * tree-if-conv.c (if_convertible_bb_p): Likewise.
29796         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
29797         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
29798         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
29799         * tree-vect-loop.c (vectorizable_reduction): Likewise.
29800         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
29801         * tree-vect-stmts.c (vectorizable_shift): Likewise.
29802         * tree-vrp.c (vrp_finalize): Likewise.
29803         * tree.c (variably_modified_type_p): Likewise.
29805 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
29807         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
29808         on darwin12 and later.
29809         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
29810         file to pass -rdynamic on darwin12 and later.
29811         * config/darwin.opt (rdynamic): Add.
29813 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
29815         * doc/extend.texi (C Extensions): Update menu for moved Variable
29816         Attributes and Type Attributes sections.
29818 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
29820         PR target/65990
29821         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
29822         if rep_8byte stringop strategy was specified for 32-bit target.
29824 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
29826         PR target/65915
29827         * config/i386/i386.md (vector convert to float spltiter): Check for
29828         xmm16+, when splitting scalar float conversion.
29829         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
29831 2015-05-05  Nick Clifton  <nickc@redhat.com>
29833         * config/msp430/msp430-opts.h (enum msp430_regions): New.
29834         * config/msp430/msp430.c (msp430_override_options): Complain if
29835         -mcode-region or -mdata-region is used on a non MSP430X.
29836         (msp430_section_attr): New function.  Checks lower, upper and
29837         either attributes.
29838         (msp430_attribute_table): Add lower, upper and either.
29839         (gen_prefix): New function.  Generates a prefix for a section
29840         name.
29841         (msp430_select_section): New function - handles the choice of
29842         section for an object.  Takes into account memory region
29843         attributes and options.
29844         (msp430_function_section): Use gen_prefix.
29845         (TARGET_SECTION_TYPE_FLAGS): Define.
29846         (msp430_section_type_flags): New function.
29847         (TARGET_ASM_UNIQUE_SECTION): Define.
29848         (msp430_unique_section): New function.
29849         (msp430_output_aligned_decl_common): New function.
29850         (msp430_do_not_relax_short_jumps): New function.
29851         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
29852         Define.
29853         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
29854         * config/msp430/msp430-protos.h
29855         (msp430_do_not_relax_short_jumps): New prototype.
29856         (msp430_output_aligned_decl_common): New prototype.
29857         * config/msp430/msp430.md (length): New attribute.
29858         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
29859         then use a long code sequence for short jumps.
29860         * config/msp430/msp430.opt (mcode-region): New.
29861         (mdata-region): New.
29862         * doc/invoke.texi: Document new options.
29863         * doc/extend.texi: Document new attributes.
29865 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
29867         * config/aarch64-protos.h (struct cpu_branch_cost): New.
29868         (tune_params): Add field branch_costs.
29869         (aarch64_branch_cost): Declare.
29870         * config/aarch64.c (generic_branch_cost): New.
29871         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
29872         (cortexa53_tunings): Likewise.
29873         (cortexa57_tunings): Likewise.
29874         (thunderx_tunings): Likewise.
29875         (xgene1_tunings): Likewise.
29876         (aarch64_branch_cost): Define.
29877         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
29879 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
29881         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
29882         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
29883         * config/i386/i386.md: Ditto.
29884         * config/i386/winnt.c: Ditto.
29886 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
29888         * doc/extend.texi (__atomic Builtins): Move implementation details
29889         to the end of the description, rewrite opening paragraphs, state
29890         difference with __sync builtins, state C11/C++11 assumptions,
29891         weaken itemized descriptions, add explanation of memory model
29892         behaviour, expand description of compare-exchange, simplify text.
29894 2015-05-05  Renlin Li  <renlin.li@arm.com>
29896         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
29898 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
29900         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
29901         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29902         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
29903         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29904         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
29905         * configure: Regenerate.
29906         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
29907         * doc/install.texi (aarch64*-*-*): Document new
29908         --enable-fix-cortex-a53-843419 option.
29909         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
29910         and -mno-fix-cortex-a53-843419 options.
29912 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
29914         PR target/65871
29915         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
29917 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
29919         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
29920         fix overactive TYPE_MIN_VALUE check and add FIXME for type
29921         compatibility problems.
29923 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
29925         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
29926         constraints.
29927         (cbranchsi4_reg): New.
29928         * config/microblaze/microblaze.c
29929         (microblaze_expand_conditional_branch_reg): New.
29930         * config/microblaze/microblaze-protos.h
29931         (microblaze_expand_conditional_branch_reg): New prototype.
29933 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
29935         * config/microblaze/microblaze.md (peephole2): New.
29937 2015-05-04  Jeff Law  <law@redhat.com>
29939         Revert:
29940         2015-05-04  Jeff Law  <law@redhat.com>
29942         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29943         simplifier to narrow arithmetic.
29944         * generic-match-head.c: (types_match, single_use): New functions.
29945         * gimple-match-head.c: (types_match, single_use): New functions.
29947 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
29949         PR target/65987
29950         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
29951         (split_branches): Likewise.
29953 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
29955         * common.opt (fdelete-null-pointer-checks): Init to -1.
29956         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
29957         override flag_delete_null_pointer_checks default.
29958         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
29959         behavior re address zero.  Better document target-specific behavior.
29960         (-fisolate-errneous-paths-dereference): Mention relationship to
29961         -fdelete-null-pointer-checks.
29963 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
29965         PR tree-optimization/65984
29966         * ubsan.c: Include tree-cfg.h.
29967         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
29968         stmt_could_throw_p test, rename can_throw variable to ends_bb.
29970 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
29972         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
29973         to CONST_DOUBLE_P predicate.
29974         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
29975         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
29976         allow only operands that satisfy standard_sse_constant_p predicate.
29977         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
29978         to CONST_DOUBLE_P predicate.
29980 2015-05-04  Jeff Law  <law@redhat.com>
29982         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29983         simplifier to narrow arithmetic.
29984         * generic-match-head.c: (types_match, single_use): New functions.
29985         * gimple-match-head.c: (types_match, single_use): New functions.
29987 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
29989         * config/arm/arm.c: Restore bootstrap.
29991 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
29993         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
29994         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
29995         as CONST_WIDE_INT, not CONST_DOUBLE.
29996         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
29997         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
29998         (ix86_find_base_term): Do not check for CONST_DOUBLE.
29999         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
30000         (ix86_build_signbit_mask): Rewrite using wide ints.
30001         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
30002         (ix86_rtx_costs): Handle CONST_WIDE_INT.
30003         (find_constant): Ditto.
30004         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
30005         using gen_int_mode.
30006         * config/i386/predicates.md (x86_64_immediate_operand)
30007         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30008         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
30009         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30010         (const0_operand): Also match const_wide_int.
30011         (constm1_operand): Ditto.
30012         (const1_operand): Ditto.
30014 2015-05-04  Richard Biener  <rguenther@suse.de>
30016         PR tree-optimization/65965
30017         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
30018         store groups at gaps.
30020 2015-05-04  Richard Biener  <rguenther@suse.de>
30022         PR tree-optimization/65935
30023         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
30024         then make sure to apply that swapping to the IL.
30026 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
30028         * Makefile.in (PATCHLEVEL_c): New variable.
30029         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
30030         expand the same way as if DEVPHASE_c was non-empty.
30032 2015-05-04  Kai Tietz  <ktietz@redhat.com>
30034         PR target/65559
30035         * lto-wrapper.c (run_gcc): Open filename
30036         in binary-mode.
30038 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
30040         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
30041         sections up in file, to immediately after the Function Attributes
30042         section.
30044 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
30046         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
30048 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30050         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
30051         (insert_partition_copy_on_edge): Adjust.
30052         (insert_rtx_to_part_on_edge): Likewise.
30053         (insert_part_to_rtx_on_edge): Likewise.
30055 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30057         * function.c (set_return_jump_label): Change type of argument to
30058         rtx_insn *.
30059         * function.h (set_return_jump_label): Adjust.
30061 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30063         * reload.h (struct reg_equivs_t): Change type of init to
30064         rtx_insn *.
30065         * ira.c (fix_reg_equiv_init): Adjust.
30066         * reload1.c (eliminate_regs_1): Likewise.
30067         (init_eliminable_invariants): Likewise.
30069 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30071         * cselib.c (fp_setter_insn): Take a rtx_insn *.
30072         * cselib.h (fp_setter_insn): Adjust.
30074 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30076         * recog.c (struct validate_replace_src_data): Change type of
30077         insn field to rtx_insn *.
30078         (validate_replace_src_group): Change type of argument to rtx_insn *.
30079         * recog.h (validate_replace_src_group): Adjust.
30081 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30083         * haifa-sched.c: Change the type of some variables to rtx_insn *.
30084         * sched-deps.c: Likewise.
30085         * sched-int.h: Likewise.
30086         * sched-rgn.c: Likewise.
30087         * sel-sched.c: Likewise.
30089 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30091         to rtx_insn *.
30092         * config/i386/i386.c: Change the type of some arguments to
30093         rtx_insn *.
30094         * config/arm/arm.c: Likewise.
30096 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30098         * lra-constraints.c: Change type of some arguments to rtx_insn *.
30100 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30102         * regcprop.c (kill_autoinc_value): Change type of argument to
30103         rtx_insn *.
30105 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30107         * genrecog.c (print_subroutine): Adjust.
30108         * recog.c (get_bool_attr_mask_uncached): Likewise.
30109         * recog.h (struct recog_data_d): Change the type of insn to
30110         rtx_insn *.
30112 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30114         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
30116 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30118         * df-problems.c (df_set_note): Change type of argument to
30119         rtx_insn *.
30121 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30123         * builtins.c (expand_builtin_trap): Change type of local
30124         variable to rtx_insn *.
30125         (add_sched_insns_for_speculation): Likewise.
30126         (ix86_emit_save_regs): Likewise.
30127         (get_scratch_register_on_entry): Likewise.
30128         (ix86_emit_restore_reg_using_pop): Likewise.
30129         (ix86_emit_leave): Likewise.
30130         (ix86_emit_restore_regs_using_mov): Likewise.
30131         (ix86_expand_epilogue): Likewise.
30132         Likewise.
30133         (rl78_alloc_physical_registers_umul): Likewise.
30134         * cselib.c (discard_useless_locs): Likewise.
30135         (cselib_invalidate_regno): Likewise.
30136         (cselib_invalidate_mem): Likewise.
30137         * function.c (expand_function_start): Likewise.
30138         (emit_use_return_register_into_block): Likewise.
30139         * gcse.c: Likewise.
30140         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
30141         * ifcvt.c (noce_get_alt_condition): Likewise.
30142         * loop-doloop.c (doloop_condition_get): Likewise.
30143         * lra-constraints.c (inherit_in_ebb): Likewise.
30144         * modulo-sched.c (sms_schedule_by_order): Likewise.
30145         * recog.c (next_insn_tests_no_inequality): Likewise.
30146         * reorg.c (emit_delay_sequence): Likewise.
30147         (update_reg_dead_notes): Likewise.
30148         (fix_reg_dead_note): Likewise.
30149         (fill_slots_from_thread): Likewise.
30150         (delete_computation): Likewise.
30152 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
30154         * doc/extend.texi (Variable Attributes): Add menu and proper
30155         @nodes to subsections.  Move Microsoft Windows attributes to
30156         their own subsection.
30157         (Type Attributes): Reorganize introduction to remove duplicate
30158         list of attributes.  Add menu and proper @nodes to subsections.
30159         Alphabetize the main table of common attributes.
30161 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
30163         * match.pd: New simplification patterns.
30164         (x + (x & 1))  -> ((x + 1) & ~1)
30165         (x & ~(x & y)) -> ((x & ~y))
30166         (x | ~(x | y)) -> ((x | ~y))
30168 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30170         * target.def (attribute_table): Mention that struct attribute_spec
30171         is defined in tree-core.h rather than tree.h
30172         * doc/tm.texi: Regenerate.
30174 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
30176         * genrecog.c (test): Rename to rtx_test.  Update rest of file
30177         accordingly.
30179 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
30181         PR translation/65959
30182         * params.h (DEFPARAM): Rename msgid to nocmsgid.
30184 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
30186         * config/aarch64/aarch64-protos.h (tune_params):
30187         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
30188         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
30189         Return value depending on target.
30190         (generic_tunings): Initialize new target settings.
30191         (cortexa53_tunings): Likewise.
30192         (cortexa57_tunings): Likewise.
30193         (thunderx_tunings): Likewise.
30194         (xgene1_tunings): Likewise.
30196 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
30198         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
30199         Make Cortex-A53 shift costs more accurate.
30201 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30203         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
30204         UNSIGNED_FLOAT.
30206 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
30208         * config/aarch64/aarch64.c (aarch64_rtx_costs):
30209         Calculate cost of op0 and op1 in PLUS and MINUS cases.
30211 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30213         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
30214         Add cost of op0 in the compare-with-fpzero case.
30216 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
30218         * builtins.c (fold_builtin_1): Remove spurious second
30219         semicolon.
30220         * cgraph.h (symtab_node::get_availability): Likewise.
30221         * opts.c (common_handle_option): Remove spurious second semicolon.
30222         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
30223         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
30225 2015-04-30  Caroline Tice  <cmtice@google.com>
30227         PR gcov-profile/65929
30228         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
30229         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
30230         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
30231         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
30232         * doc/tm.texi: Regenerate.
30233         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
30234         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
30235         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
30236         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
30238 2015-04-30  Marek Polacek  <polacek@redhat.com>
30240         * varasm.c (handle_cache_entry): Fix logic.
30242 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30244         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
30245         (*extrsi5_insn_uxtw_alt): Likewise.
30246         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
30247         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
30248         operations.
30250 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30252         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
30253         fabd in ABS case.
30255 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30257         * config/aarch64/aarch64.md
30258         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
30259         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
30260         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
30261         appropriately.  Handle alternative EON form.
30263 2015-04-30  Renlin Li  <renlin.li@arm.com>
30265         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
30266         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
30268 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
30270         PR ipa/65873
30271         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
30272         -fstrict-aliasing boundaries.
30274 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30276         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
30277         and [SU]MNEGL patterns.
30279 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30281         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
30282         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
30283         combined arithmetic-shift ops.  Properly handle all shift and extend
30284         operations that can occur in combination with PLUS/MINUS.
30285         Rename maybe_fma to compound_p.
30286         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
30287         arithmetic and shift operations.
30289 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30291         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
30292         rather than arith_shift cost when costing ADD/MINUS of an
30293         extended value.
30295 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
30297         PR lto/65948
30298         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
30299         to itself.
30301 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
30303         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
30304         are for the same position.
30306 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
30308         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
30309         vectorize_loops.
30310         (vectorize_loops): Use it.
30312 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
30314         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
30315         for aggregate types.
30316         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
30317         type to be non_ODR.
30318         * tree.c (need_assembler_name_p): Compute mangled name for
30319         non-fundamental types and integer types.
30321 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
30323         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
30324         manual swaps.
30325         * expr.c (expand_expr_real_2): Likewise.
30327 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
30329         * tree.c (build_common_builtin_nodes): Do not build
30330         __builtin_alloca_with_align as equivalent of library alloca.
30332 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
30334         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
30335         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
30336         bugus variants.
30337         * tree.c: Include print-tree.h and ipa-utils.h
30338         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
30339         (free_lang_data_in_cgraph): Call verify_type.
30340         (verify_type_variant): New function.
30341         (verify_type): New function.
30342         * tree.h (verify_type): Declare.
30344 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
30346         * config/mips/mips-cpus.def: (mips4): Change default processor
30347         from PROCESSOR_R8000 to PROCESSOR_R10000.
30349 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
30351         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
30352         la/jalr instead of jal.
30354 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
30356         PR target/65871
30357         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
30358         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
30359         (setcc+movzbl peephole2): Check also clobbered reg.
30360         (setcc+andl peephole2): Ditto.
30362 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
30364         PR libgomp/65099
30365         * config/nvptx/mkoffload.c (target_ilp32): New variable.
30366         (main): Set it depending on "-foffload-abi=[...]".
30367         (compile_native, main): Use it to pass "-m32" or "-m64" to the
30368         compiler.
30370 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
30372         PR target/65770
30373         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
30374         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
30375         Flip lane index back at assembly time for bigendian.
30377 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
30379         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
30380         * gimplify.c (gimplify_omp_workshare): Use it.
30382 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
30384         * Makefile.in (build/genrecog.o): Depend on inchash.h.
30385         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
30386         build/inchash.o
30387         * genrecog.c: Rewrite most of the code except for the third page.
30389 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
30391         * inchash.h, inchash.c: Include bconfig.h for build objects.
30392         * Makefile.in (build/inchash.o): New rule.
30394 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
30396         PR target/65924
30397         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
30398         number in type attribute expression.
30400 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
30402         * loop-iv.c (canon_condition): Generalize to all types of integer
30403         constant.
30405 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
30407         * gimple-walk.c: Prune duplicate or unneeded includes.
30408         (walk_gimple_asm): Only call parse_input_constraint or
30409         parse_output_constraint if their findings are used.
30410         Honour parse_input_constraint and parse_output_constraint
30411         result.
30413 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
30415         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
30417 2015-04-29  Tom de Vries  <tom@codesourcery.com>
30419         PR tree-optimization/65893
30420         * passes.def (pass_all_optimizations): Move pass_stdarg to after
30421         pass_dce.
30423 2015-04-29  Richard Biener  <rguenther@suse.de>
30425         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
30426         compute GROUP_SIZE for basic-block SLP.
30427         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
30428         take into account gaps.
30429         (vect_get_mask_element): Properly reject references to previous
30430         vectors.
30431         (vect_transform_slp_perm_load): Likewise.
30433 2015-04-29  Christian Bruel  <christian.bruel@st.com>
30435         PR target/64835
30436         * config/i386/i386.c (ix86_default_align): New function.
30437         (ix86_override_options_after_change): Call ix86_default_align.
30438         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
30439         (ix86_override_options_after_change): New function.
30441 2015-04-28  Jeff Law  <law@redhat.com>
30443         * tree-ssa-dom.c (record_equality); Fix comment typos.
30445 2015-04-28  Tom de Vries  <tom@codesourcery.com>
30447         PR tree-optimization/65887
30448         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
30450 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
30452         * doc/extend.texi (Declaring Attributes of Functions): Split into
30453         subsections by target.  Alphabetize the table of common attributes.
30454         Rewrite some of the introductory text to reflect the new structure.
30455         Update some cross-references to point to the new subsections.
30456         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
30457         duplicate copies in the discussion of function, label, and type
30458         attributes.
30460 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
30462         PR bootstrap/65910
30463         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
30465 2015-04-28  Jason Merrill  <jason@redhat.com>
30467         PR c++/65734
30468         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
30469         (finalize_type_size): Respect TYPE_USER_ALIGN.
30470         (layout_type) [ARRAY_TYPE]: Likewise.
30472 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
30474         * config/arm/arm.md (*arm_movt): Fix type attribute.
30475         (*cmpsi_shiftsi): Likewise.
30476         (*cmpsi_shiftsi_swp): Likewise.
30477         (*movsicc_insn): Likewise.
30478         (*cond_move): Likewise.
30479         (*if_plus_move): Likewise.
30480         (*if_move_plus): Likewise.
30481         (*if_arith_move): Likewise.
30482         (*if_move_arith): Likewise.
30483         (*if_shift_move): Likewise.
30484         (*if_move_shift): Likewise.
30485         (*arm_movtas_ze): Likewise.
30486         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
30487         redundancy and type attribute.
30488         (*thumb2_movsi_insn): Fix type attribute.
30489         (*thumb2_addsi_short): Likewise.
30490         (thumb2_addsi3_compare0): Likewise.
30491         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
30492         attributes accordingly.
30494 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
30496         PR other/65911
30497         * function.c (pad_to_arg_alignment): Add parentheses.
30499 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
30501         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
30502         libgcc/config/frv/elf-lib.h.
30504 2015-04-28  Tom de Vries  <tom@codesourcery.com>
30506         * tree-call-cdce.c: Fix example in header comment.
30508 2015-04-28  Richard Biener  <rguenther@suse.de>
30510         PR tree-optimization/62283
30511         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
30512         fails fatally and we are vectorizing a basic-block simply
30513         cause the child to be constructed piecewise.
30514         (vect_analyze_slp_cost_1): Adjust.
30515         (vect_detect_hybrid_slp_stmts): Likewise.
30516         (vect_bb_slp_scalar_cost): Likewise.
30517         (vect_get_constant_vectors): For piecewise constructed
30518         constants place them after the last def.
30519         (vect_get_slp_defs): Adjust.
30520         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
30521         externals for basic-block vectorization.
30523 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30525         PR target/63503
30526         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
30527         aarch64-*-*.
30528         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
30529         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
30530         (AARCH64_TUNE_FMA_STEERING): Likewise.
30531         * config/aarch64/aarch64-cores.def: Set
30532         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
30533         FMUL/FMADD instructions.
30534         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
30535         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
30536         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
30537         * config/aarch64/cortex-a57-fma-steering.h: New file.
30538         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
30540 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
30542         * gensupport.c (std_preds): Add missing codes to address_operand entry.
30544 2015-04-28  Richard Biener  <rguenther@suse.de>
30546         PR tree-optimization/65851
30547         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
30548         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
30549         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
30550         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
30551         (ccp_visit_phi_node): Adjust.
30552         (evaluate_stmt): For simplifications to SSA names return its
30553         lattice value if that isn't VARYING.  Return immediately when
30554         simplified to a constant.
30555         (visit_assignment): Adjust.
30556         (ccp_visit_stmt): Likewise.
30558 2015-04-28  Tom de Vries  <tom@codesourcery.com>
30560         PR tree-optimization/65818
30561         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
30562         evaluated.
30564 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30566         * calls.c (save_fixed_argument_area): Don't check
30567         ARGS_GROW_DOWNWARD with the preprocessor.
30568         (restore_fixed_argument_area): Likewise.
30569         (mem_overlaps_already_clobbered_arg_p): Likewise.
30570         (check_sibcall_argument_overlap): Likewise.
30571         (expand_call): Likewise.
30572         (emit_library_call_value_1): Likewise.
30573         (store_one_arg): Likewise.
30574         * function.c (assign_parms): Likewise.
30575         (locate_and_pad_parm): Likewise.
30576         (pad_to_arg_alignment): Likewise.
30577         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
30579 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30581         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
30582         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
30583         * calls.c (save_fixed_argument_area): Don't chekc if
30584         ARGS_GROW_DOWNWARD is defined.
30585         (restore_fixed_argument_area): Likewise.
30586         (mem_overlaps_already_clobbered_arg_p): Likewise.
30587         (check_sibcall_argument_overlap): Likewise.
30588         (expand_call): Likewise.
30589         (emit_library_call_value_1): Likewise.
30590         (store_one_arg): Likewise.
30591         * function.c (assign_parms): Likewise.
30592         (locate_and_pad_parm): Likewise.
30593         (pad_to_arg_alignment): Likewise.
30594         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
30596 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30598         * defaults.h (gen_epilogue): New function.
30599         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
30600         defined.
30601         * cfgrtl.c (cfg_layout_finalize): Likewise.
30602         * df-scan.c: Likewise.
30603         * function.c (thread_prologue_and_epilogue_insns): Likewise.
30604         (reposition_prologue_and_epilogue_notes): Likewise.
30605         * reorg.c (find_end_label): Likewise.
30606         * toplev.c: Likewise.
30608 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30610         * bb-reorder.c (HAVE_return): Don't check if its undefined.
30611         * defaults.h (gen_simple_return): New function.
30612         (gen_simple_return): Likewise.
30613         (HAVE_return): Add default definition to false.
30614         (HAVE_simple_return): Likewise.
30615         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
30616         HAVE_return and HAVE_simple_return are defined.
30617         * function.c (gen_return_pattern): Likewise.
30618         (convert_jumps_to_returns): Likewise.
30619         (thread_prologue_and_epilogue_insns): Likewise.
30620         * reorg.c (find_end_label): Likewise.
30621         (dbr_schedule): Likewise.
30622         * shrink-wrap.c: Likewise.
30623         * shrink-wrap.h: Likewise.
30625 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30627         * defaults.h (EPILOGUE_USES): Add default definition of false.
30628         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
30629         * resource.c (init_resource_info): Likewise.
30631 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30633         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
30634         to false.
30635         * dwarf2out.c (field_byte_offset): REmove check if
30636         PCC_BITFIELD_TYPE_MATTERS is defined.
30637         * stor-layout.c (layout_decl): Likewise.
30638         (update_alignment_for_field): Likewise.
30639         (place_field): Likewise.
30641 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30643         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
30644         true.
30645         * regrename.c (check_new_reg_p): Remove check if
30646         HARD_REGNO_RENAME_OK is defined.
30647         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
30649 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30651         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
30652         * cse.c (fold_rtx): Likewise.
30653         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
30654         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
30655         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
30656         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
30657         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
30658         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
30659         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
30660         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
30661         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
30662         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
30663         * Likewise.
30664         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
30665         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
30666         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
30667         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
30668         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
30669         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
30670         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
30671         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
30672         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
30673         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
30674         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
30675         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
30676         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
30677         * doc/tm.texi: Regenerate.
30678         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
30679         either true or false.
30681 2015-04-27  Jeff Law  <law@redhat.com>
30683         PR tree-optimization/65217
30684         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
30685         of them has a single use, make sure it is the LHS of the implied
30686         copy.
30688 2015-04-28  Alan Modra  <amodra@gmail.com>
30690         PR target/65810
30691         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
30692         (offsettable_ok_by_alignment): Use minimum of decl and toc
30693         pointer alignment.  Replace dead code with assertion.
30694         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
30695         case if size exceeds toc pointer alignment.
30696         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
30697         (rs6000_emit_move): Likewise.
30698         * configure.ac: Add linker toc pointer alignment check.
30699         * configure: Regenerate.
30700         * config.in: Regenerate.
30702 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
30704         * config.gcc: Add h8300-*-linux.
30705         * config/h8300/linux.h: New.
30706         * config/h8300/t-linux: New.
30707         * config/h8300/h8300.c (h8300_option_override): Normal mode
30708         is not supported for h8300-*-linux.
30709         (h8300_file_start): Target priority change.
30710         (get_shift_alg): Likewise.
30711         (h8300_shift_need_scratch_p): Likewise.
30712         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
30713         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
30715 2015-04-27  Caroline Tice  <cmtice@google.com>
30717         * final.c (final_scan_insn):  Output cold_function_name as function
30718         type.
30719         * varasm.c (cold_function_name):  Make global.
30720         (assemble_start_function):  Re-set cold_function_name.
30721         (assemble_end_function): Output cold partition size.
30722         * varasm.h (cold_function_name):  Declare global.
30724 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
30726         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
30727         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
30728         constraint.
30729         (*movxi_internal_avx512f): Ditto.
30730         (define_split): Check for xmm16+, when splitting scalar float_extend.
30731         (*extendsfdf2_mixed): Use "v" constraint.
30732         (define_split): Check for xmm16+, when splitting scalar float_truncate.
30733         (*truncdfsf_fast_sse): Use "v" constraint.
30734         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
30735         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
30736         (define_peephole2): Check for xmm16+, when converting scalar
30737         float_truncate.
30738         (define_peephole2): Check for xmm16+, when converting scalar
30739         float_extend.
30740         (*fop_<mode>_comm_mixed): Use "v" constraint.
30741         (*fop_<mode>_comm_sse): Ditto.
30742         (*fop_<mode>_1_mixed): Ditto.
30743         (*sqrt<mode>2_sse): Ditto.
30744         (*ieee_s<ieee_maxmin><mode>3): Ditto.
30746 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30748         * combine.c (simplify_if_then_else): Use std::swap instead
30749         of manually swapping.
30750         (known_cond): Likewise.
30751         (simplify_comparison): Likewise.
30753 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
30755         PR target/64579
30756         * config/rs6000/htm.md: Remove all define_expands.
30757         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
30758         UNSPECV_HTM_TABORTWCI): Remove.
30759         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
30760         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
30761         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
30762         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
30763         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
30764         tabortwci_internal): Remove define_insns.
30765         (tabort<wd>c, tabort<wd>ci): New define_insns.
30766         (tabort): Use gpc_reg_operand.
30767         (tcheck): Remove operand.
30768         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
30769         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
30770         expected value.
30771         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
30772         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
30773         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
30774         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
30775         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
30776         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
30777         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
30778         (tcheck): Remove builtin argument.
30779         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
30780         not TARGET_64BIT.
30781         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
30782         tabortdc and tabortdci builtins when not in 64-bit mode.
30783         Modify code to handle the loss of the HTM define_expands.
30784         Emit code to copy the CR register to TARGET.
30785         (htm_init_builtins): Modify code to handle the loss of the HTM
30786         define_expands.
30787         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
30788         (RS6000_BTC_64BIT): Likewise.
30789         (RS6000_BTC_CR): New macro.
30790         * doc/extend.texi: Update documentation for htm builtins.
30792 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30794         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
30795         of manually swapping.
30796         (simplify_associative_operation): Likewise.
30797         (simplify_binary_operation): Likewise.
30798         (simplify_plus_minus): Likewise.
30799         (simplify_relational_operation): Likewise.
30800         (simplify_ternary_operation): Likewise.
30802 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
30804         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
30805         (xs_hi_nonmemory_operand): Remove error.
30806         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
30807         general_operand rather than xs_hi_general_operand.
30809 2015-04-27  Richard Biener  <rguenther@suse.de>
30811         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
30812         (record_equivalences_from_stmt): Valueize rhs.
30813         (record_equality): Canonicalize x and y order via
30814         tree_swap_operands_p.  Do not swap operands for same loop depth.
30816 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
30818         PR target/65296
30819         PR target/65895
30820         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
30821         Add hint how to use own spec file.
30823 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
30825         PR tree-optimization/65875
30826         * tree-vrp.c (update_value_range): If in is_new case setting
30827         old_vr to VR_VARYING, also set new_vr to it.  Remove
30828         old_vr->type == VR_VARYING test.
30829         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
30830         SSA_PROP_INTERESTING if update_value_range returned true,
30831         but new range is VR_VARYING.
30833 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30835         * combine.c (sign_extend_short_imm): New.
30836         (set_nonzero_bits_and_sign_copies): Use above new function for sign
30837         extension of src short immediate.
30838         (reg_nonzero_bits_for_combine): Likewise for tem.
30840 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
30842         * stor-layout.c (self_referential_component_ref_p): New predicate.
30843         (copy_self_referential_tree_r): Use it.
30844         (self_referential_size): Punt for simple operations directly involving
30845         self-referential component references.
30846         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
30848 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
30850         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
30852 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
30854         * vec.h (vec): Make splice arguments const.  Update definitions
30855         accordingly.
30857 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
30859         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
30860         alternatives.
30862 2015-04-26  Tom de Vries  <tom@codesourcery.com>
30864         PR tree-optimization/65826
30865         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
30867 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
30869         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
30870         (*madd3<mode>): Ditto.
30871         (*msub4<mode>): Ditto.
30872         (*msub3<mode>): Ditto.
30873         (*nmadd4<mode>): Ditto.
30874         (*nmadd3<mode>): Ditto.
30875         (*nmadd4<mode>_fastmath): Ditto.
30876         (*nmadd3<mode>_fastmath): Ditto.
30877         (*nmsub4<mode>): Ditto.
30878         (*nmsub3<mode>): Ditto.
30879         (*nmsub4<mode>_fastmath): Ditto.
30880         (*nmsub3<mode>_fastmath): Ditto.
30882 2015-04-24  Jason Merrill  <jason@redhat.com>
30884         PR c++/50800
30885         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
30886         down when building TYPE_CANONICAL.
30887         (build_pointer_type_for_mode): Likewise.
30889 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
30891         * genrecog.c (validate_pattern): Check matching constraint refers
30892         to a lower numbered operand.
30894 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
30896         PR target/65849
30897         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
30898         save to independent variables use the Save attribute.  This will
30899         allow these options to be modified with the #pragma/attribute
30900         target support.
30901         (-mallow-movmisalign): Likewise.
30902         (-mallow-df-permute): Likewise.
30903         (-msched-groups): Likewise.
30904         (-malways-hint): Likewise.
30905         (-malign-branch-targets): Likewise.
30906         (-mvectorize-builtins): Likewise.
30907         (-msave-toc-indirect): Likewise.
30909         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
30910         can be set via the #pragma/attribute target support.
30911         (rs6000_opt_vars): Likewise.
30912         (rs6000_inner_target_options): If VSX was set, also set
30913         -mno-avoid-indexed-addresses.
30915 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30917         * config/arm/iterators.md (shiftable_ops): Rename to...
30918         (SHIFTABLE_OPS): ... This.  Update use in comments.
30919         (ior_xor): Rename to...
30920         (IOR_XOR): ... This.
30921         (vqh_ops): Rename to...
30922         (VQH_OPS): ... This.
30923         (vqhs_ops): Rename to...
30924         (VQHS_OPS): ... This.
30925         (rshifts): Rename to...
30926         (RSHIFTS): ... This.
30927         (returns): Rename to...
30928         (RETURNS): ... This.
30929         * config/arm/arm.md: Update uses of the above.
30930         * config/arm/neon.md: Likewise.
30932 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30934         * config.host (case ${host}): Add aarch64*-*-linux case.
30935         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
30936         fields to all the cores.
30937         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
30938         Add MCPU_MTUNE_NATIVE_SPECS.
30939         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
30940         field to all extensions.
30941         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
30942         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
30943         Adjust definition of AARCH64_OPT_EXTENSION.
30944         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
30945         (MCPU_MTUNE_NATIVE_SPECS): Define.
30946         * config/aarch64/driver-aarch64.c: New file.
30947         * config/aarch64/x-arch64: New file.
30948         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
30949         -mtune and -march.
30951 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
30952             Wei Mi  <wmi@google.com>
30954         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
30955         * config/i386/i386.c (extract_base_offset_in_addr): New function.
30956         (ix86_operands_ok_for_move_multiple): Ditto.
30957         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
30958         (movlpd/movhpd to movupd peephole2): Ditto.
30960 2015-04-24  Marek Polacek  <polacek@redhat.com>
30962         PR c/61534
30963         * input.h (from_macro_expansion_at): Define.
30965         PR c/63357
30966         * doc/invoke.texi: Update description of -Wlogical-op.
30968 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30970         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
30971         ternary operator in fprintf and harmonize spacing.
30973 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
30975         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
30976         Mark operand1 commutative.
30978 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
30980         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
30981         input operands in memory.
30982         (*vec_concatv2si_sse4_1): Ditto.
30983         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
30984         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
30985         register_operand.
30986         (vec_extract_hi_v32hi): Ditto.
30987         (vec_extract_hi_v64hi): Ditto.
30988         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
30990 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30991             Steven Bosscher <steven@gcc.gnu.org>
30993         PR rtl-optimization/34503
30994         * cprop.c (cprop_reg_p): New.
30995         (hash_scan_set): Use above function to check if register can be
30996         propagated.
30997         (find_avail_set): Return up to two sets, one whose source is a
30998         register and one whose source is a constant.  Sets are returned in an
30999         array passed as parameter rather than as a return value.
31000         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
31001         sets returned by find_avail_set, starting with the one whose source is
31002         a constant. Use cprop_reg_p to check if register can be propagated.
31003         (do_local_cprop): Use cprop_reg_p to check if register can be
31004         propagated.
31005         (implicit_set_cond_p): Likewise.
31007 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
31009         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
31010         (sem_function::equals): IGNORED_NODES parameter is now unused;
31011         update call of equals_private.
31012         (sem_function::equals_private): Do not call equals_wpa; skip
31013         gimple body matching if there is no body.
31014         (sem_function::init): Add logic to hash tthunk info.
31015         (sem_function::parse): Also parse thunks.
31016         * ipa-icf.h (equals_private): Update declaration.
31018 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31020         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
31021         asterisk from name so this can be generated directly.
31022         (*altivec_stvx_<mode>_internal): Likewise.
31023         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
31024         that this is never called during or after reload/lra.
31025         (rs6000_frame_related): Remove split_reg
31026         argument and logic that references it.
31027         (emit_frame_save): Remove last parameter from call to
31028         rs6000_frame_related.
31029         (rs6000_emit_prologue): Remove last parameter from eight calls to
31030         rs6000_frame_related.  Force generation of stvx instruction for
31031         Altivec register saves.  Remove split_reg handling, which is no
31032         longer needed.
31033         (rs6000_emit_epilogue):  Force generation of lvx instruction for
31034         Altivec register restores.
31036 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31038         * config/rs6000/rs6000.opt (mcrypto): Change option description to
31039         match category changes in ISA 2.07B.
31041 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31043         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
31044         iterators.
31045         (cmp_op, cmp_type): New code attributes.
31046         (NEON_VCMP, NEON_VACMP): New int iterators.
31047         (cmp_op_unsp): New int attribute.
31048         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
31049         (neon_vceq<mode>): Delete.
31050         (neon_vc<cmp_op><mode>_insn): New pattern.
31051         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
31052         (neon_vcgeu<mode>): Delete.
31053         (neon_vcle<mode>): Likewise.
31054         (neon_vclt<mode>: Likewise.
31055         (neon_vcage<mode>): Likewise.
31056         (neon_vcagt<mode>): Likewise.
31057         (neon_vca<cmp_op><mode>): New define_expand.
31058         (neon_vca<cmp_op><mode>_insn): New pattern.
31059         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
31061 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
31063         * tree.h (attribute_value_equal): Declare.
31064         * tree.c (attribute_value_equal): Export.
31066 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
31068         * ipa-icf.c (sem_item::compare_attributes): New function.
31069         (sem_item::compare_referenced_symbol_properties): Compare variable
31070         attributes.
31071         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
31072         (sem_function::param_used_p): New function.
31073         (sem_function::equals_wpa): Fix attribute comparsion; match
31074         parameter type codes; do not compare paremter flags when
31075         they are not used; compare edge flags; compare indirect calls.
31076         (sem_item::update_hash_by_addr_refs): Hash reference type.
31077         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
31078         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
31079         reference use type.
31080         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
31081         * ipa-icf.h (compare_attributes, param_used_p): Declare.
31083 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
31085         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
31086         cleanup.
31087         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
31088         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
31089         (sem_item::compare_referenced_symbol_properties): New.
31090         (sem_item::hash_referenced_symbol_properties): New.
31091         (sem_item::compare_cgraph_references): Rename to ...
31092         (sem_item::compare_symbol_references): ... this one; use
31093         compare_referenced_symbol_properties.
31094         (sem_function::equals_wpa): Do not compare
31095         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
31096         DECL_IS_OPERATOR_NEW; compare pointer sizes.
31097         (sem_item::update_hash_by_addr_refs): Call
31098         hash_referenced_symbol_properties.
31099         (sem_item::update_hash_by_local_refs): Cleanup.
31100         (sem_function::merge): Do not mix up symbol properties.
31101         (sem_variable::equals_wpa): Use compare_symbol_references.
31102         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
31103         (sem_item::hash_referenced_symbol_properties): New.
31104         (sem_item::compare_symbol_references): New.
31105         (sem_item::compare_cgraph_references): Remove.
31107 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
31109         PR target/26702
31110         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
31111         Emit size of local.
31113 2015-04-23  Nick Clifton  <nickc@redhat.com>
31115         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
31116         ATTRIBUTE_UNUSED to x parameter.
31117         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
31119 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31121         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
31122         TARGET_CRYPTO to TARGET_P8_VECTOR>
31123         (crypto_vpermxor_<mode>): Likewise.
31124         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
31125         (BU_CRYPTO_3A): Likewise.
31126         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
31127         (BU_CRYPTO_OVERLOAD_3A): New #define.
31128         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
31129         (VPMSUMH): Likewise.
31130         (VPMSUMW): Likewise.
31131         (VPMSUMD): Likewise.
31132         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
31133         (VPERMXOR_V4SI): Likewise.
31134         (VPERMXOR_V8HI): Likewise.
31135         (VPERMXOR_V16QI): Likewise.
31136         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
31137         BU_CRYPTO_OVERLOAD_2A.
31138         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
31139         BU_CRYPTO_OVERLOAD_3A.
31140         * config/rs6000/rs6000.opt (mcrypto): Change description of
31141         option.
31143 2015-04-23  Richard Biener  <rguenther@suse.de>
31145         * passes.def: Remove copy propagation passes run directly after CCP.
31146         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
31147         SSA names.
31148         (ccp_visit_phi_node): Rework to handle first executable edge
31149         specially.
31151 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
31153         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31154         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31155         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31156         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
31157         (thumb_legimitimize_reload_address): Remove.
31158         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
31159         Remove.
31160         (thumb_legimitimize_reload_address): Remove.
31162 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31164         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
31166 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31168         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
31169         MAX_LDM_STM_OPS.
31170         (store_multiple): Likewise.
31172 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31174         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
31175         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
31176         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
31177         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
31178         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
31179         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
31180         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
31181         Specify issue_rate value.
31182         (arm_issue_rate): Look up issue rate from tuning structs. Remove
31183         large switch statement.
31184         (arm_marvell_pj4_tune): New struct.
31185         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
31186         struct.
31188 2015-04-23  Richard Biener  <rguenther@suse.de>
31190         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
31191         (vect_find_last_store_in_slp_instance): Rename to ...
31192         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
31193         (vect_analyze_slp_cost_1): Use vector_load for constant defs
31194         and vec_construct for external defs when estimating prologue cost.
31195         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
31196         Compute costs here only when vectorizing loops.
31197         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
31198         have been determined.
31199         (vect_schedule_slp_instance): Simplify vectorized code placement
31200         and prepare for in-BB external defs.
31201         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
31202         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
31203         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
31204         guard.
31205         (vect_model_load_cost): Likewise.
31206         (vectorizable_store): Instead add it here.
31207         (vectorizable_load): Likewise.
31208         (vect_is_simple_use): Dump def type textually.
31210 2015-04-23  Richard Biener  <rguenther@suse.de>
31212         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
31213         * cfgloop.c (verify_loop_structure): Verify the root loop node.
31214         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
31215         instead of get_eh_region_from_lp_number.
31216         * loop-init.c (fix_loop_structure): If we removed a loop, reset
31217         the SCEV cache.
31219 2015-04-23  Anton Blanchard  <anton@samba.org>
31221         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
31222         need for -mprofile-kernel to save LR to stack.
31224 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31226         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
31227         adjustments.
31228         (insn_is_swappable_p): Return 1 for a convert from double to
31229         single precision when all of its uses are splats of BE element
31230         zero.
31232 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
31234         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
31236 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31238         PR target/65456
31239         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
31240         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
31241         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
31242         option.
31243         (rs6000_builtin_mask_for_load): Return 0 for targets with
31244         efficient unaligned VSX accesses so that the vectorizer will use
31245         direct unaligned loads.
31246         (rs6000_builtin_support_vector_misalignment): Always return true
31247         for targets with efficient unaligned VSX accesses.
31248         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
31249         stores on targets with efficient unaligned VSX accesses is almost
31250         always the same as the cost of an aligned load or store, so model
31251         it that way.
31252         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
31253         unaligned vectors if we have efficient unaligned VSX accesses.
31254         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
31255         undocumented option.
31257 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31259         Revert:
31260         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
31262         * config.gcc (LIBC_MUSL): New tm_defines macro.
31263         * config/linux.h (OPTION_MUSL): Define.
31264         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31265         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31266         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31268         * config/linux.opt (mmusl): New option.
31269         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31270         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31272         * configure: Regenerate.
31274 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
31276         * config.gcc (LIBC_MUSL): New tm_defines macro.
31277         * config/linux.h (OPTION_MUSL): Define.
31278         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31279         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31280         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31282         * config/linux.opt (mmusl): New option.
31283         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31284         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31286         * configure: Regenerate.
31288 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
31290         * doc/invoke.texi (-fsanitize-sections): Update description.
31291         * asan.c (set_sanitized_sections): Parse incoming arg.
31292         (section_sanitized_p): Support wildcards.
31294 2015-04-22  Tom de Vries  <tom@codesourcery.com>
31296         PR tree-optimization/65823
31297         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
31298         equality between ap_copy and ap.
31300 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31302         PR target/47098
31303         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
31305 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31307         PR target/47122
31308         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
31310 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31312         PR target/55144
31313         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
31314         remove already contained t-files.
31316 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31318         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
31319         Remove unneeded forward declarations.
31320         (suitable_for_tail_call_opt_p): Commentary typo fix.
31322 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31324         * varasm.c (emit_bss): Remove redundant guard.
31326 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31328         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
31330 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31332         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
31334 2015-04-22  Hale Wang  <hale.wang@arm.com>
31335             Terry Guo  <terry.guo@arm.com>
31337         PR rtl-optimization/64818
31338         * combine.c (can_combine_p): Don't combine user-specified
31339         register if it is in an asm input.
31341 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
31343         PR ipa/65076
31344         * passes.def (early_optimizations): Add pass_dse.
31346 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31348         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
31349         * reorg.c (redundant_insn): Remove ifdef
31350         INSN_REFERENCES_ARE_DELAYED.
31351         * resource.c (mark_referenced_resources): Likewise.
31353 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31355         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
31356         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
31357         * resource.c (mark_set_resources): Likewise.
31359 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31361         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
31362         * cfgcleanup.c (flow_find_cross_jump): Likewise.
31363         (flow_find_head_matching_sequence): Likewise.
31364         (try_head_merge_bb): Likewise.
31365         * combine.c (can_combine_p): Likewise.
31366         (try_combine): Likewise.
31367         (distribute_notes): Likewise.
31368         * df-problems.c (can_move_insns_across): Likewise.
31369         * final.c (final): Likewise.
31370         * gcse.c (insert_insn_end_basic_block): Likewise.
31371         * ira.c (find_moveable_pseudos): Likewise.
31372         * reorg.c (try_merge_delay_insns): Likewise.
31373         (fill_simple_delay_slots): Likewise.
31374         (fill_slots_from_thread): Likewise.
31375         * sched-deps.c (sched_analyze_2): Likewise.
31377 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31379         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
31380         PIC_OFFSET_TABLE_REGNUM.
31382 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31384         * alias.c (init_alias_target): Remove ifdef
31385         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
31386         * df-scan.c (df_insn_refs_collect): Likewise.
31387         (df_get_regular_block_artificial_uses): Likewise.
31388         (df_get_eh_block_artificial_uses): Likewise.
31389         (df_get_entry_block_def_set): Likewise.
31390         (df_get_exit_block_use_set): Likewise.
31391         * emit-rtl.c (gen_rtx_REG): Likewise.
31392         * ira.c (ira_setup_eliminable_regset): Likewise.
31393         * reginfo.c (init_reg_sets_1): Likewise.
31394         * regrename.c (rename_chains): Likewise.
31395         * reload1.c (reload): Likewise.
31396         (eliminate_regs_in_insn): Likewise.
31397         * resource.c (mark_referenced_resources): Likewise.
31398         (init_resource_info): Likewise.
31400 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31402         * defaults.h (MASK_RETURN_ADDR): New definition.
31403         * except.c (expand_builtin_extract_return_addr): Remove ifdef
31404         MASK_RETURN_ADDR.
31406 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31408         * defaults.h (RETURN_ADDR_OFFSET): New definition.
31409         * except.c (expand_builtin_extract_return_addr): Remove ifdef
31410         RETURN_ADDR_OFFSET.
31411         (expand_builtin_frob_return_addr): Likewise.
31413 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31415         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
31416         (try_redirect_by_replacing_jump): Likewise.
31417         (rtl_tidy_fallthru_edge): Likewise.
31418         * combine.c (insn_a_feeds_b): Likewise.
31419         (find_split_point): Likewise.
31420         (simplify_set): Likewise.
31421         * cprop.c (cprop_jump): Likewise.
31422         * cse.c (cse_extended_basic_block): Likewise.
31423         * df-problems.c (can_move_insns_across): Likewise.
31424         * function.c (emit_use_return_register_into_block): Likewise.
31425         * haifa-sched.c (sched_init): Likewise.
31426         * ira.c (find_moveable_pseudos): Likewise.
31427         * loop-invariant.c (find_invariant_insn): Likewise.
31428         * lra-constraints.c (curr_insn_transform): Likewise.
31429         * postreload.c (reload_combine_recognize_const_pattern):
31430         * Likewise.
31431         * reload.c (find_reloads): Likewise.
31432         * reorg.c (delete_scheduled_jump): Likewise.
31433         (steal_delay_list_from_target): Likewise.
31434         (steal_delay_list_from_fallthrough): Likewise.
31435         (redundant_insn): Likewise.
31436         (fill_simple_delay_slots): Likewise.
31437         (fill_slots_from_thread): Likewise.
31438         (delete_computation): Likewise.
31439         * sched-rgn.c (add_branch_dependences): Likewise.
31441 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31443         * genconfig.c (main): Always define HAVE_cc0.
31444         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
31445         HAVE_cc0.
31446         * cfgcleanup.c (flow_find_cross_jump): Likewise.
31447         (flow_find_head_matching_sequence): Likewise.
31448         (try_head_merge_bb): Likewise.
31449         * cfgrtl.c (rtl_merge_blocks): Likewise.
31450         (try_redirect_by_replacing_jump): Likewise.
31451         (rtl_tidy_fallthru_edge): Likewise.
31452         * combine.c (do_SUBST_MODE): Likewise.
31453         (insn_a_feeds_b): Likewise.
31454         (combine_instructions): Likewise.
31455         (can_combine_p): Likewise.
31456         (try_combine): Likewise.
31457         (find_split_point): Likewise.
31458         (subst): Likewise.
31459         (simplify_set): Likewise.
31460         (distribute_notes): Likewise.
31461         * cprop.c (cprop_jump): Likewise.
31462         * cse.c (cse_extended_basic_block): Likewise.
31463         * df-problems.c (can_move_insns_across): Likewise.
31464         * final.c (final): Likewise.
31465         (final_scan_insn): Likewise.
31466         * function.c (emit_use_return_register_into_block): Likewise.
31467         * gcse.c (insert_insn_end_basic_block): Likewise.
31468         * haifa-sched.c (sched_init): Likewise.
31469         * ira.c (find_moveable_pseudos): Likewise.
31470         * loop-invariant.c (find_invariant_insn): Likewise.
31471         * lra-constraints.c (curr_insn_transform): Likewise.
31472         * optabs.c (prepare_cmp_insn): Likewise.
31473         * postreload.c (reload_combine_recognize_const_pattern):
31474         * Likewise.
31475         * reload.c (find_reloads): Likewise.
31476         (find_reloads_address_1): Likewise.
31477         * reorg.c (delete_scheduled_jump): Likewise.
31478         (steal_delay_list_from_target): Likewise.
31479         (steal_delay_list_from_fallthrough): Likewise.
31480         (try_merge_delay_insns): Likewise.
31481         (redundant_insn): Likewise.
31482         (fill_simple_delay_slots): Likewise.
31483         (fill_slots_from_thread): Likewise.
31484         (delete_computation): Likewise.
31485         (relax_delay_slots): Likewise.
31486         * sched-deps.c (sched_analyze_2): Likewise.
31487         * sched-rgn.c (add_branch_dependences): Likewise.
31489 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31491         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
31492         that is trivially ded on non cc0 targets.
31493         (simplify_set): Likewise.
31494         (mark_used_regs_combine): Likewise.
31495         * cse.c (new_basic_block): Likewise.
31496         (fold_rtx): Likewise.
31497         (cse_insn): Likewise.
31498         (cse_extended_basic_block): Likewise.
31499         (set_live_p): Likewise.
31500         * rtlanal.c (canonicalize_condition): Likewise.
31501         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
31503 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31505         * conditions.h: Define macros even if HAVE_cc0 is undefined.
31506         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
31507         * final.c: Likewise.
31508         * jump.c: Likewise.
31509         * recog.c: Likewise.
31510         * recog.h: Declare functions even when HAVE_cc0 is undefined.
31511         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
31513 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31515         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
31516         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
31517         * builtins.c (expand_builtin): Remove check if
31518         EH_RETURN_DATA_REGNO is defined.
31519         * df-scan.c (df_bb_refs_collect): Likewise.
31520         (df_get_exit_block_use_set): Likewise.
31521         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
31522         * ira-lives.c (process_bb_node_lives): Likewise.
31523         * lra-lives.c (process_bb_lives): Likewise.
31525 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
31527         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
31528         FIRST_PSEUDO_REG): New.
31529         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
31530         (ARG_POINTER_REGNUM): Define to ARGP_REG.
31531         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
31532         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
31533         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
31534         (FIRST_INT_REG): New.
31535         (LAST_INT_REG): New.
31536         (FIRST_*_REG): Define using *_REG.
31537         (LAST_*_REG): Ditto.
31538         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
31539         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
31540         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
31542 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31544         * expmed.c: (synth_mult): Only assume overlapping
31545         shift with previous steps in alg_sub_t_m2 case.
31547 2015-04-21  Richard Biener  <rguenther@suse.de>
31549         PR tree-optimization/65650
31550         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
31551         transitions involving copies.
31552         (set_lattice_value): Adjust for copy lattice state.
31553         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
31554         if that doesn't dominate the merge point.
31555         (bit_value_unop): Adjust what we treat as varying mask.
31556         (bit_value_binop): Likewise.
31557         (bit_value_assume_aligned): Likewise.
31558         (evaluate_stmt): When we simplified to a SSA name record a copy
31559         instead of dropping to varying.
31560         (visit_assignment): Simplify.
31562         * gimple-match.h (gimple_simplify): Add another callback.
31563         * gimple-fold.c (fold_stmt_1): Adjust caller.
31564         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
31565         for the 2nd callback.
31566         * gimple-match-head.c (gimple_simplify): Add a callback that is
31567         used to valueize the stmt operands and use it that way.
31569 2015-04-21  Richard Biener  <rguenther@suse.de>
31571         PR tree-optimization/65788
31572         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
31574 2015-04-21  Richard Biener  <rguenther@suse.de>
31576         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
31577         vec_construct cost by vec_stmt_cost.
31579 2015-04-21  Richard Biener  <rguenther@suse.de>
31581         * cfghooks.h (create_basic_block): Replace with two overloads
31582         for RTL and GIMPLE.
31583         (split_block): Likewise.
31584         * cfghooks.c (split_block): Rename to ...
31585         (split_block_1): ... this.
31586         (split_block): Add two type-safe overloads for RTL and GIMPLE.
31587         (split_block_after_labels): Call split_block_1.
31588         (create_basic_block): Rename to ...
31589         (create_basic_block_1): ... this.
31590         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
31591         (create_empty_bb): Call create_basic_block_1.
31592         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
31593         split_block_after_labels.
31594         * omp-low.c (expand_parallel_call): Likewise.
31595         (expand_omp_target): Likewise.
31596         (simd_clone_adjust): Likewise.
31597         * tree-chkp.c (chkp_get_entry_block): Likewise.
31598         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
31599         create_basic_block overload.
31600         (cgraph_node::expand_thunk): Likewise.
31601         * tree-cfg.c (make_blocks): Likewise.
31602         (handle_abnormal_edges): Likewise.
31603         * tree-inline.c (copy_bb): Likewise.
31605 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31607         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
31608         New pattern.
31609         (*xor_one_cmplsidi3_ze): Likewise.
31611 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31613         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
31614         use df_remove_problem rather than manually removing problems, leaving
31615         holes in df->problems_in_order[].
31617 2015-04-21  Tom de Vries  <tom@codesourcery.com>
31619         PR tree-optimization/65802
31620         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
31622 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31624         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
31625         Increase to 128.
31626         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
31627         at '.'.  Assert that there's enough space for everything.
31629 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
31631         PR tree-optimization/64950
31632         Revert:
31633         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
31635         PR target/41089
31636         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
31637         as volatile.
31639 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
31641         PR rtl-optimization/64916
31642         * cfgcleanup.c (values_equal_p): New function.
31643         (can_replace_by): Use it.
31645 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
31647         PR c++/65801
31648         * doc/invoke.texi ([-Wnarrowing]): Update.
31650 2015-04-20  Jeff Law  <law@redhat.com>
31652         PR tree-optimization/65658
31653         * tree-ssa-threadupdate.c (redirection_block_p): Remove
31654         redundant test for GIMPLE_ASSIGN in last change.
31656 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
31658         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
31659         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
31660         (legitimize_tls_address): Ditto.
31661         (ix86_expand_move): Ditto.
31662         (ix86_expand_binary_operator): Remove reload_in_progress checks.
31663         (ix86_expand_unary_operator): Ditto.
31664         * config/i386/predicates.md (index_register_operand): Ditto.
31666 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
31668         * reorg.c (try_merge_delay_insns): Improve correctness checking
31669         for targets with multiple delay slots.
31671 2015-04-20  Jeff Law  <law@redhat.com>
31673         PR tree-optimization/65658
31674         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
31675         statements too.
31677 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
31679         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
31680         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
31681         Delete.
31683 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
31685         PR debug/65807
31686         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
31688 2015-04-20  Richard Biener  <rguenther@suse.de>
31690         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
31691         * gimple-fold.c (gimple_build_valueize): New function.
31692         (gimple_build): Always use gimple_build_valueize as valueize hook.
31694 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
31696         PR target/64134
31697         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
31698         and overwrite variable parts if <= 1/2 the elements are variable.
31700 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
31702         PR rtl-optimization/65805
31703         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
31704         Don't use difference of offset and previous offset if
31705         update_sp_offset is non-zero.
31706         (eliminate_regs_in_insn): Ditto.
31707         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
31708         lra_eliminate_regs_1 call.
31709         * lra-constraints.c (get_equiv_with_elimination): Ditto.
31711 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
31713         * hash-table.h: Remove version of hash_table that stored value_type *.
31714         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
31715         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
31716         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
31717         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
31718         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
31719         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
31720         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
31721         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
31722         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
31723         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
31724         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
31725         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
31726         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
31727         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
31728         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
31729         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
31731 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31732             Jakub Jelinek  <jakub@redhat.com>
31734         PR target/65787
31735         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
31736         subsequent SH_NONE operand does not overwrite an existing *special
31737         value.
31738         (adjust_extract): Handle case where a vec_extract operation is
31739         wrapped in a PARALLEL.
31741 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
31743         PR target/65780
31744         * config/i386/i386.c (ix86_binds_local_p): Define only if
31745         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
31747 2015-04-17  Jeff Law  <law@redhat.com>
31749         PR tree-optimization/47679
31750         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
31751         * tree-ssa-scopedtables.c: New file.
31752         * tree-ssa-scopedtables.h: New file.
31753         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
31754         (const_and_copies): Change name/type.
31755         (record_const_or_copy): Move into tree-ssa-scopedtables.c
31756         (record_const_or_copy_1): Similarly.
31757         (restore_vars_to_original_value): Similarly.
31758         (pass_dominator::execute): Create and destroy const_and_copies table.
31759         (thread_across_edge): Update passing of const_and_copies.
31760         (record_temporary_equivalence): Use method calls rather than
31761         manipulating const_and_copies directly.
31762         (record_equality, cprop_into_successor_phis): Similarly.
31763         (dom_opt_dom_walker::before_dom_children): Similarly.
31764         (dom_opt_dom_walker::after_dom_children): Similarly.
31765         (eliminate_redundant_computations): Similarly.
31766         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
31767         (record_temporary_equivalence): Likewise.
31768         (invalidate_equivalences): Likewise.
31769         (record_temporary_equivalences_from_phis): Update due to type
31770         change of const_and_copies.  Use method calls rather than
31771         manipulating the stack directly.
31772         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
31773         (thread_through_normal_block, thread_across_edge): Likewise.
31774         (thread_across_edge): Likewise.
31775         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
31776         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
31777         of equiv_stack.
31778         (identify_jump_threads): Update due to type change of equiv_stack.
31779         (finalize_jump_threads): Delete the equiv_stack when complete.
31781 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
31783         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31784         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
31785         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
31787 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
31789         PR target/65535
31790         * config.gcc: Exit with a comment when we do not have a major version
31791         number for the FreeBSD target.
31793 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
31795         PR target/65689
31796         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
31797         maybe_allows_mem bitfields.
31798         (maybe_allows_none_start, maybe_allows_none_end,
31799         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
31800         maybe_allows_mem_end): New variables.
31801         (compute_maybe_allows): New function.
31802         (add_constraint): Use it to initialize maybe_allows_reg and
31803         maybe_allows_mem fields.
31804         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
31805         is_address constraints such that those that allow neither mem nor
31806         reg come first, then those that only allow reg but not mem, then
31807         those that only allow mem but not reg, then the rest.
31808         (write_allows_reg_mem_function): New function.
31809         (write_tm_preds_h): Call it.
31810         * stmt.c (parse_output_constraint, parse_input_constraint): Use
31811         the generated insn_extra_constraint_allows_reg_mem function
31812         instead of always setting *allows_reg = true; *allows_mem = true;
31813         for unknown extra constraints.
31815 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
31817         PR target/65780
31818         * output.h (default_binds_local_p_3): New.
31819         * varasm.c (default_binds_local_p_3): Make it public.  Take an
31820         argument to indicate if common symbol may be local.  If common
31821         symbol may be local, treat non-external variable as defined
31822         locally.
31823         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
31824         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
31825         * config/i386/i386.c (ix86_binds_local_p): New.
31826         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
31827         ix86_binds_local_p.
31829 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
31831         PR debug/65771
31832         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
31833         trying mem_loc_descriptor on XEXP (rtl, 0).
31835 2015-04-17  Martin Liska  <mliska@suse.cz>
31837         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
31838         Release symbol_compare_collection.
31839         * ipa-reference.c: Add TODO that a vector should be released.
31841 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
31843         PR target/65296
31844         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
31845         to new AVR-LibC file layout (bug #44574).
31846         (*avrlibc_devicelib): Same.
31847         * config/avr/avr-mcus.def: Adjust comments.
31848         * config/avr/avr.opt (nodevicelib): Adjust help.
31850 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
31852         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
31854 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
31856         PR c++/64527
31857         * gimplify.c (gimplify_init_constructor): Always emit a
31858         side-effecting constructor.
31860 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31862         PR tree-optimization/64950
31863         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
31864         in cfun->curr_properties.
31865         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
31866         if we generate an IFN_VA_ARG.
31867         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
31868         function if PROP_gimple_lva is not set in src function.
31870 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31871             Michael Matz  <matz@suse.de>
31873         PR tree-optimization/64950
31874         * gimple-iterator.c (update_modified_stmts): Remove static.
31875         * gimple-iterator.h (update_modified_stmts): Declare.
31876         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
31877         (gimplify_va_arg_internal): New function.
31878         (gimplify_va_arg_expr): Use IFN_VA_ARG.
31879         * gimplify.h (gimplify_va_arg_internal): Declare.
31880         * internal-fn.c (expand_VA_ARG): New unreachable function.
31881         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
31882         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
31883         (expand_ifn_va_arg): New function.
31884         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
31885         (pass_stdarg::execute): Call expand_ifn_va_arg.
31886         (pass_data_lower_vaarg): New pass_data.
31887         (pass_lower_vaarg): New gimple_opt_pass.
31888         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
31889         (make_pass_lower_vaarg): New function.
31890         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
31891         properties_required field.
31892         * passes.def (all_passes): Add pass_lower_vaarg.
31893         * tree-pass.h (PROP_gimple_lva): Add define.
31894         (make_pass_lower_vaarg): Declare.
31896 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31898         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
31899         * calls.c (call_expr_flags): Same.
31901 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31903         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
31904         (pass_stdarg::execute): ... here.
31906 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31907             Michael Matz  <matz@suse.de>
31909         * tree-cfg.c (make_blocks_1): Factor out of ...
31910         (make_blocks): ... here.
31911         (make_edges_bb): Factor out of ...
31912         (make_edges): ... here.
31913         (gimple_find_sub_bbs): New function.
31914         * tree-cfg.h (gimple_find_sub_bbs): Declare.
31916 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31918         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
31920 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
31922         * asan.c (set_sanitized_sections): New function.
31923         (section_sanitized_p): Ditto.
31924         (asan_protect_global): Optionally sanitize user-defined
31925         sections.
31926         * asan.h (set_sanitized_sections): Declare new function.
31927         * common.opt (fsanitize-sections): New option.
31928         * doc/invoke.texi (-fsanitize-sections): Document new option.
31929         * opts-global.c (handle_common_deferred_options): Handle new
31930         option.
31932 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
31934         PR debug/65771
31935         * dwarf2out.c (loc_list_from_tree): Return NULL
31936         for DEBUG_EXPR_DECL.
31938 2015-04-17  Christian Bruel  <christian.bruel@st.com>
31940         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
31941         same attributes.
31943 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
31945         * ira-color.c (setup_left_conflict_sizes_p): Do not process
31946         node itself when computing left conflict subnode size.
31948 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
31950         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
31951         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
31952         *fop_<mode>_1_sse using enabled attribute.  Use
31953         register_mixssei387nonimm_operand operand 1 predicate. Change
31954         alternative 3 constraints from "x" to "v".
31956 2015-04-16  Richard Biener  <rguenther@suse.de>
31958         PR tree-optimization/65774
31959         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
31960         bit-value tracking on.
31962 2015-04-16  Richard Biener  <rguenther@suse.de>
31964         PR tree-optimization/64277
31965         * tree-vrp.c (check_array_ref): Fix anti-range handling,
31966         simplify upper bound handling.
31967         (search_for_addr_array): Simplify.
31968         (check_array_bounds): Handle ADDR_EXPRs here.
31969         (check_all_array_refs): Simplify.
31971 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
31973         * config/i386/i386.c (print_reg): Rewrite function.
31975 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31977         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
31978         Invert the condition.
31980 2015-04-16  Renlin Li  <renlin.li@arm.com>
31982         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
31983         simplifications for UNSIGNED_FLOAT.
31985 2015-04-16  Nick Clifton  <nickc@redhat.com>
31987         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
31988         MUL_UNINIT.
31989         (enum rl78_cpu_type): New.
31990         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
31991         (umulhi3_shift_virt): Remove m constraint from operand 1.
31992         (umulqihi3_virt): Likewise.
31993         * config/rl78/rl78.c (rl78_option_override): Add code to process
31994         -mcpu and -mmul options.
31995         (rl78_alloc_physical_registers): Add code to handle divhi and
31996         divsi valloc attributes.
31997         (set_origin): Likewise.
31998         * config/rl78/rl78.h (RL78_MUL_G14): Define.
31999         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
32000         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
32001         __RL78_Gxx__.
32002         (ASM_SPEC): Pass -mcpu on to assembler.
32003         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
32004         (mulqi3_rl78): Likewise.
32005         (mulhi3_g13): Likewise.
32006         (mulhi3): Generate the G13 or G14 versions of the insn directly.
32007         (mulsi3): Likewise.
32008         (mulhi3_g14): Add clobbers of AX and BC.
32009         (mulsi3_g14): Likewise.
32010         (mulsi3_g13): Likewise.
32011         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
32012         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
32013         * config/rl78/rl78.opt (mmul): Initialise value to
32014         RL78_MUL_UNINIT.
32015         (mcpu): New option.
32016         (m13, m14, mrl78): New option aliases.
32017         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
32018         (MULTILIB_DIRNAMES): Add g13 and g14.
32019         * doc/invoke.texi: Document -mcpu and -mmul options.
32021 2015-04-16  Richard Biener  <rguenther@suse.de>
32023         * tree-ssa-ccp.c (likely_value): See if we have operands that
32024         are marked as never simulate again and return CONSTANT in this
32025         case.
32026         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
32027         not have any operands that will be simulated again as
32028         not being simulated again.
32030 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
32032         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
32033         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
32034         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
32035         attribute.
32036         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
32037         enabled attribute.
32038         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
32039         *float<SWI48:mode><MODEF:mode>2_sse.
32040         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
32041         enabled attribute.
32042         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
32043         enabled attribute.
32045 2015-04-15  Tom de Vries  <tom@codesourcery.com>
32047         PR other/65487
32048         * function.c (push_dummy_function): New function.
32049         (init_dummy_function_start): Use push_dummy_function.
32050         (pop_dummy_function): New function.  Factored out of ...
32051         (expand_dummy_function_end): ... here.
32052         * function.h (push_dummy_function, pop_dummy_function): Declare.
32053         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
32054         pop_dummy_function.
32055         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
32057 2015-04-15  Jeff Law  <law@redhat.com>
32059         PR tree-optimization/47679
32060         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
32061         need for forward declaration in upcoming changes.
32062         (record_conditions, record_edge_info): Likewise.
32064         PR rtl-optimization/42522
32065         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
32066         SIGN_EXTRACT as a whole object rather than simplifying
32067         its operand.
32069 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
32071         PR ipa/65765
32072         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
32073         and GIMPLE_PREDICT use break instead of return true. For
32074         GIMPLE_EH_DISPATCH, compare dispatch region.
32076 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
32078         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
32079         details about the implementation.  Make clear preference for
32080         __atomic builtins.  Reduce possibility of future change.
32082 2015-04-15  Nick Clifton  <nickc@redhat.com>
32084         * config/rx/rx.opt (mallow-string-insns): New option.
32085         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
32086         builtin if string instructions are denied.
32087         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
32088         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
32089         appropriate.
32090         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
32091         * config/rx/rx.md (movstr): Enable pattern only if string
32092         instructions are allowed.
32093         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
32094         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
32095         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
32096         (MULTILIB_DIRNAMES): Add no-strings.
32097         * doc/invoke.texi: Document -mno-allow-string-insns.
32099 2015-04-15  Alan Modra  <amodra@gmail.com>
32101         PR target/65408
32102         PR target/58744
32103         PR middle-end/36043
32104         * calls.c (load_register_parameters): Don't load past end of
32105         mem unless suitably aligned.
32107 2015-04-15  Nick Clifton  <nickc@redhat.com>
32109         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
32110         decrement instruction as being frame related.
32111         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
32112         based addresses.
32113         If zero extending a function address enclose the operation in
32114         %code(...).
32115         (rl78_preferred_reload_class): New function.
32116         (TARGET_PREFERRED_RELOAD_CLASS): Define.
32117         * config/rl78/rl78.md: Remove useless constraints in expanders.
32118         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
32119         (mulhi3_rl78): Likewise.
32120         (mulhi3_g13): Likewise.
32121         (mulsi3_rl78): Likewise.
32122         (es_addr): Move to before the multiply patterns.
32124 2015-04-15  Alan Modra  <amodra@gmail.com>
32126         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
32127         and sequence_stack.  Add seq.
32128         (seq_stack): Delete.
32129         * function.c (prepare_function_start): Don't access x_last_insn.
32130         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
32131         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
32132         * emit_rtl.c (start_sequence, push_topmost_sequence,
32133         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
32134         sequence accessors.
32135         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
32136         remove_insn): Likewise.  Simplify.
32137         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
32138         and pop_topmost_sequence.
32139         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
32140         debug insns.
32141         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
32143 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
32145         PR target/65729
32146         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
32147         the assertiion.
32149 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
32151         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
32152         (LEGACY_INT_REGNO_P): Ditto.
32153         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
32154         (ANY_MASK_REG_P): Remove.
32155         (BND_REG_P): Rename from ANY_BND_REG_P.
32156         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
32157         legacy integer registers.  Do not handle MMX_REG_P in a special way.
32158         Merge 64byte and 32byte SSE handling.
32160 2015-04-14  Nick Clifton  <nickc@redhat.com>
32162         * expr.c (expand_assignment): Force an address offset computation
32163         into a register before changing its mode.
32164         (expand_expr_real_1): Likewise.
32166 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
32168         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
32169         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
32170         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
32171         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
32172         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
32173         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
32174         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
32175         and __aarch64_vget_lane_any.
32177 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
32179         PR rtl-optimization/65761
32180         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
32181         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
32183 2015-04-14  Richard Biener  <rguenther@suse.de>
32185         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
32186         (graphite_can_represent_scev): Use POINTER_TYPE_P.
32188 2015-04-14  Richard Biener  <rguenther@suse.de>
32190         PR tree-optimization/65758
32191         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
32192         against -1.
32193         (ccp_lattice_meet): Likewise.
32194         (bit_value_unop): Likewise.
32195         (bit_value_binop): Likewise.
32196         (bit_value_assume_aligned): Likewise.
32198 2015-04-14  Christian Bruel  <christian.bruel@st.com>
32200         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
32201         function.
32203 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
32205         PR tree-optimization/63387
32206         * match.pd ((x unord x) | (y unord y) -> (x unord y),
32207         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
32209 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
32211         * config/i386/predicates.md (any_QIreg_operand): Rename from
32212         q_regs_operand.  Do not process subregs.
32213         (QIreg_operand): Use QI_REGNO_P predicate.
32214         (ext_QIreg_operand): Ditto.
32215         (ext_register_operand): Ditto.
32216         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
32217         (AND splitters): Ditto.
32218         (AND with -65536 splitter): Add SWI48 mode for operand 0.
32219         (AND with -256 splitter): Use any_QIreg_operand predicate and
32220         SWI248 mode for operand 0.
32221         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
32222         mode for operand 0.
32223         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
32225 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
32227         * doc/plugins.texi: Rewrite first introductory paragraph.
32229 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32231         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
32232         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
32234 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32236         * ipa-profie.c (ipa_profile): Check number of parameters
32237         and possible polymorphic call targets before
32238         devirtualizing.
32240 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
32242         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
32243         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
32245 2015-04-13  Richard Biener  <rguenther@suse.de>
32247         PR tree-optimization/65204
32248         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
32249         takens for bit-CCP.
32251 2015-04-13  Richard Biener  <rguenther@suse.de>
32253         PR target/65660
32254         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
32255         and cond_not_taken_branch_cost to 4 and 2.
32256         (bdver2_cost): Likewise.
32257         (bdver3_cost): Likewise.
32258         (bdver4_cost): Likewise.
32260 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32262         * hash-table.h (hash_table constructor): Add mem stats.
32263         (alloc_entries): Likewise.
32265 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32267         * ipa-cp.c (ipcp_driver): Relase prev_edge.
32268         * passes.c (execute_one_pass): Only add transform if pass has one.
32270 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
32272         * config/i386/i386.c (ix86_option_override_internal): Don't set
32273         -fprefetch-loop-arrays if optimizing for size.
32275 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32276             Gerald Pfeifer  <gerald@pfeifer.com>
32278         * doc/contrib.texi (Contributors): Add Martin Jambor and
32279         Michael Matz.
32281 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
32283         * BASE-VER: Set to 6.0.0.
32285         PR tree-optimization/65747
32286         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
32287         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
32289 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
32291         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
32292         sentence.  Improve grammar.
32294 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
32296         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
32298 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
32300         PR ipa/65743
32301         * ipa-inline-transform.c (speculation_removed): Remove static var.
32302         (check_speculations): New function.
32303         (clone_inlined_nodes): Do not check spculations.
32304         (inline_call): Call check_speculations.
32305         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
32306         consider non-invariants.
32308 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
32309             Martin Liska  <mliska@suse.cz>
32311         PR ipa/65722
32312         * ipa-icf.c (sem_item::compare_cgraph_references): function and
32313         variable can not match.
32314         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
32315         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
32317 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
32319         PR tree-optimization/65735
32320         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
32321         Remove visited_phis argument, add visited_bbs, avoid recursing into the
32322         same bb rather than just into the same phi node.
32323         (thread_through_normal_block): Adjust caller.
32325 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
32327         * doc/contrib.texi (Contributors): Add Ira Rosen.
32329 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
32331         * gcov.c (find_source): Fix miswording in error message.
32332         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
32333         (ix86_expand_sse_comi_round): Fix typo in error message.
32335 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
32337         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
32339 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
32341         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
32343 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
32345         PR target/65710
32346         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
32347         Print bad_spills_num and insn_pseudos_num.
32349 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32351         PR target/65694
32352         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
32353         when creating +1 values for SImode.
32355 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
32357         PR target/65729
32358         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
32359         assert.
32361 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
32362             Iain Sandoe  <iain@codesourcery.com>
32364         PR target/65351
32365         * configure: Regenerate.
32367 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
32369         PR target/65671
32370         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
32372 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
32374         * doc/contrib.texi (Contributors): Add John Marino.
32376 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
32378         PR tree-optimization/65709
32379         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
32380         TREE_TYPE (TREE_TYPE (t)).
32382 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
32384         PR target/65710
32385         * lra-int.h (lra_bad_spill_regno_start): New.
32386         * lra.c (lra_bad_spill_regno_start): New.
32387         (lra): Set up lra_bad_spill_regno_start.  Set up
32388         lra_constraint_new_regno_start unconditionally.
32389         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
32390         spill preferences.
32392 2015-04-09  Marek Polacek  <polacek@redhat.com>
32393             Jakub Jelinek  <jakub@redhat.com>
32395         PR middle-end/65554
32396         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
32397         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
32398         of STRIP_NOPS.
32400 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
32402         PR rtl-optimization/65693
32403         * combine.c (is_parallel_of_n_reg_sets): Move outside of
32404         #ifndef HAVE_cc0.
32406 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
32408         PR target/65296
32409         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
32410         device specs file if "device-specs%s" didn't resolve to a path.
32412 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
32414         PR target/65676
32415         * config/i386/i386.c (fixup_modeless_constant): New.
32416         (ix86_expand_args_builtin): Fixup modeless constant operand.
32417         (ix86_expand_round_builtin): Ditto.
32418         (ix86_expand_special_args_builtin): Ditto.
32419         (ix86_expand_builtin): Ditto.
32421 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
32423         PR target/65693
32424         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
32425         any pow2 integer in between 2 and 0x80000000U inclusive.
32427 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
32429         PR rtl-optimization/65693
32430         * combine.c (is_parallel_of_n_reg_sets): Change first argument
32431         from an rtx_insn * to an rtx.
32432         (try_combine): Adjust both callers.  Use it once more.
32434 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
32436         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
32437         (chkp_make_static_const_bounds): Search existing
32438         symbol by assembler name.  Use make_decl_one_only.
32439         (chkp_get_zero_bounds_var): Remove node search which
32440         is now performed in chkp_make_static_const_bounds.
32441         (chkp_get_none_bounds_var): Likewise.
32443 2015-04-08  Michael Witten  <mfwitten@gmail.com>
32445         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
32446         to an example.
32448 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32450         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
32452 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
32454         * doc/extend.texi (__sync Builtins): Fix grammar.
32456 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32458         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
32460 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32462         * varasm.c (emit_local): Move definition of align.
32464 2015-04-08  Julian Brown  <julian@codesourcery.com>
32466         * config/nvptx/mkoffload.c (process): Support variable mapping.
32468 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
32470         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
32471         alpha_links **.
32472         (alpha_write_one_linkage): Correct typo.
32474 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
32476         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
32478 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
32480         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
32482 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
32484         * tree-chkp.h (chkp_insert_retbnd_call): New.
32485         * tree-chkp.c (chkp_insert_retbnd_call): New.
32486         * ipa-split.c (insert_bndret_call_after): Remove.
32487         (split_function): Use chkp_insert_retbnd_call.
32488         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
32489         bounds for instrumented functions.
32491 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
32493         PR ipa/65540
32494         * calls.c (initialize_argument_information): When producing tail
32495         call also turn SSA_NAMES passed by references to original PARM_DECLs
32497 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
32499         PR target/65648
32500         * lra-remat.c (do_remat): Process input and non-input insn
32501         registers separately.
32503 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
32505         PR debug/65678
32506         * valtrack.c (debug_lowpart_subreg): New function.
32507         (dead_debug_insert_temp): Use it.
32509         PR middle-end/65680
32510         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
32511         into signed HOST_WIDE_INT the same as negative bit_offset.
32513 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
32515         * ipa-comdats.c (ipa_comdats): Visit all thunks
32516         to set proper comdat group.
32518 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32520         PR target/65489
32521         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
32522         on constants for NEON VSTRUCT modes.
32524 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
32525             Iain Sandoe  <iain@codesourcery.com>
32527         PR target/65351
32528         * configure: Regenerate.
32530 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
32532         PR target/65614
32533         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
32534         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
32535         that LFD is used to load double constants instead of LFS.  Add
32536         defaults for all costs structures.  Add comments for missing
32537         initialization fields.
32538         (size32_cost): Likewise.
32539         (size64_cost): Likewise.
32540         (rs64a_cost): Likewise.
32541         (mpccore_cost): Likewise.
32542         (ppc403_cost): Likewise.
32543         (ppc405_cost): Likewise.
32544         (ppc440_cost): Likewise.
32545         (ppc476_cost): Likewise.
32546         (ppc601_cost): Likewise.
32547         (ppc603_cost): Likewise.
32548         (ppc604_cost): Likewise.
32549         (ppc604e_cost): Likewise.
32550         (ppc620_cost): Likewise.
32551         (ppc630_cost): Likewise.
32552         (ppccell_cost): Likewise.
32553         (ppc750_cost): Likewise.
32554         (ppc7450_cost): Likewise.
32555         (ppc8540_cost): Likewise.
32556         (ppce300c2c3_cost): Likewise.
32557         (ppce500mc_cost): Likewise.
32558         (ppce500mc64_cost): Likewise.
32559         (ppce5500_cost): Likewise.
32560         (ppce6500_cost): Likewise.
32561         (titan_cost): Likewise.
32562         (power4_cost): Likewise.
32563         (power6_cost): Likewise.
32564         (power7_cost): Likewise.
32565         (power8_cost): Likewise.
32566         (ppca2_cost): Likewise.
32567         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
32569         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
32570         instead of XXLOR to copy SFmode to clear out dirty bits created
32571         when SFmode denormals are generated.
32572         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
32573         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
32575 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
32577         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
32578         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
32579         * config/aarch64/aarch64-tune.md: Regenerate.
32581 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
32583         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
32584         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
32585         * config/arm/arm-cores.def (exynos-m1): New core.
32586         * config/arm/arm-tune.md: Regenerate.
32587         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
32588         * config/arm/bpabi.h: Likewise.
32590 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
32592         * ipa-cp (set_single_call_flag): Remove too
32593         restrictive assert.
32595 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
32597         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
32598         GOMP_offload_unregister from the destructor.
32600 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
32602         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
32603         flags for instrumentation thunk.
32604         (chkp_produce_thunks): Likewise.
32606 2015-04-05  Martin Liska  <mliska@suse.cz>
32608         PR ipa/65665
32609         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
32610         has computed data structure.
32611         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32613 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
32615         * invoke.texi (inline-unit-growth): Increase growth to 20%
32616         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
32618 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
32620         PR target/65647
32621         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
32622         value checking.
32623         (lra_rematerialization_iter): New.
32624         * lra.c (lra): Initialize lra_rematerialization_iter.
32625         Stop updating lra_constraint_new_regno_start after switching of
32626         inheritance and rematerialization.
32627         * lra-remat.c (lra_rematerialization_iter): New.
32628         (lra_remat): Add printing pass iteration.  Do rematerialization
32629         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
32631 2015-04-04  Richard Biener  <rguenther@suse.de>
32633         PR tree-optimization/64909
32634         PR tree-optimization/65660
32635         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
32636         to take a cost vector for scalar iteration cost.
32637         (vect_get_single_scalar_iteration_cost): Likewise.
32638         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
32639         Compute the scalar iteration cost into a cost vector.
32640         (vect_get_known_peeling_cost): Use the scalar cost vector to
32641         account for the cost of the peeled iterations.
32642         (vect_estimate_min_profitable_iters): Likewise.
32643         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
32644         Likewise.
32646 2015-04-04  Alan Modra  <amodra@gmail.com>
32648         PR target/65576
32649         PR target/65240
32650         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
32651         0.0 constant unless TARGET_VSX.
32652         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
32653         alternative.
32655 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
32657         PR ipa/65654
32658         * ipa-inline-transform.c (inline_call): Skip sanity check to work
32659         around the ICE
32661 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
32663         PR ipa/65655
32664         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
32665         speculative indirect edges to avoid ordering issue.
32667 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
32669         PR ipa/65076
32670         * ipa-inline.c (edge_badness): Add combined size to the denominator.
32672 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
32674         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
32675         TYPE_ARTIFICIAL on the .omp_data* types.
32677 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32679         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
32680         instrumentation thunks.
32682 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32684         * config/i386/i386.c (ix86_expand_call): Avoid nested
32685         PARALLEL in returned call value.
32687 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32689         * lto-cgraph.c (input_cgraph_1): Always link instrumented
32690         assembler name with original one.
32692 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
32694         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
32696 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
32698         Revert parts of r216820.
32699         * config/i386/i386.md (movqi_internal): Correct type calculation
32700         for alternatives 3 and 5.
32702 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
32704         PR preprocessor/61977
32705         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
32706         predefine __vector/__bool/__pixel macros nor context sensitive
32707         macros for CLK_ASM.
32708         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
32710 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
32712         * config/pa/pa.c (pa_output_move_double): Directly handle register
32713         indexed memory operand.  Simplify handling of scaled register indexed
32714         memory operands.
32716 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32718         PR driver/65444
32719         * config/i386/linux-common.h (MPX_SPEC): New.
32720         (CHKP_SPEC): Add MPX_SPEC.
32721         * doc/invoke.texi (-fcheck-pointer-boudns): Document
32722         possible issues with '-z bndplt' support in linker.
32724 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
32726         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
32727         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
32728         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
32729         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
32730         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
32732 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
32734         * config/i386/sync.md (UNSPEC_MOVA): Remove.
32735         (atomic_load<mode>): Change operand 0 predicate to
32736         nonimmediate_operand and fix up the destination when needed.
32737         Use UNSPEC_LDA.
32738         (atomic_loaddi_fpu): Use UNSPEC_LDA.
32739         (atomic_store<mode>): Change operand 1 predicate to
32740         nonimmendate_operand and move the source to register when needed.
32741         Use UNSPEC_STA.
32742         (atomic_store<mode>_1): Use UNSPEC_STA.
32743         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
32744         Fix moves from memory operand.  Use UNSPEC_STA.
32746 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32748         * expmed.c (strict_volatile_bitfield_p): Check that the access will
32749         not cross a MODESIZE boundary.
32750         (store_bit_field, extract_bit_field): Added assertions in the
32751         strict volatile bitfields code path.
32753 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
32755         PR target/65624
32756         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
32757         Increase args array size by one to avoid buffer overflow.
32759 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
32761         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
32762         split_part.
32763         * ipa-inline.c (edge_badness): Add wrapper penalty.
32764         (sum_callers): Move up.
32765         (inline_small_functions): Set single_caller.
32766         * ipa-inline.h (inline_summary): Add single_caller.
32767         * ipa-split.c (split_function): Set split_part.
32768         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
32769         * cgraph.h (cgraph_node): Add split_part.
32771 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
32773         PR target/58945
32774         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
32775         Do not split operands 0 and operands 2 to halfmode.
32776         (atomic_compare_and_swap<mode>): Update for
32777         atomic_compare_and_swap<dwi>_doubleword changes.
32779 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
32781         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
32782         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
32783         no caching is done.
32785 2015-03-31  Martin Liska  <mliska@suse.cz>
32787         PR ipa/65557
32788         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
32789         has already filled up function summary.
32790         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32792 2015-03-31  Richard Biener  <rguenther@suse.de>
32794         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
32795         of types.
32797 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32799         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
32800         nested functions.
32801         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
32802         (s390_asm_output_function_label): Adapt to new signature of
32803         s390_function_num_hotpatch_hw
32804         Optimise the code generating assembler output.
32805         Add comments to assembler file.
32807 2015-03-31  Richard Biener  <rguenther@suse.de>
32809         PR middle-end/65626
32810         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
32811         of the noreturn call so it is last and cleanup_control_flow_bb
32812         can do the CFG part.
32814 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
32816         PR target/65531
32817         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
32818         same_comdat_group for external symbols.
32819         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
32820         infinite same_comdat_group traversal loop.
32822 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
32824         PR plugins/61176
32825         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
32826         automatically to $headers.
32828 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
32830         PR ipa/65610
32831         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
32832         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
32833         function.
32834         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
32835         Use it.
32836         * ipa-prop.c (param_type_may_change_p): Likewise.
32837         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
32838         (remove_unused_scope_block_p): Add in_ctor_dtor_block
32839         argument.  Before inlining, preserve
32840         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
32841         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
32842         recursive calls.
32843         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
32845 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
32847         PR ipa/65076
32848         * ipa-inline.c (edge_badness): Base denominator on callee's
32849         grwoth squared.
32851 2015-03-27  Martin Jambor  <mjambor@suse.cz>
32853         PR ipa/65478
32854         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
32855         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
32856         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
32857         node_calling_single_call.
32858         * ipa-cp.c (count_callers): New function.
32859         (set_single_call_flag): Likewise.
32860         (initialize_node_lattices): Count callers and set single_flag_call if
32861         necessary.
32862         (incorporate_penalties): New function.
32863         (good_cloning_opportunity_p): Use it, dump new flags.
32864         (propagate_constants_topo): Set node_within_scc flag if appropriate.
32865         * doc/invoke.texi (ipa-cp-recursion-penalty,
32866         ipa-cp-single-call-pentalty): Document.
32868 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
32870         PR ipa/65588
32871         * symtab.c (symtab_node::get_partitioning_class): Register vars
32872         are duplicated.
32873         * varpool.c (symbol_table::output_variables) Do not assemble unefined
32874         decls for non-symbols.
32876 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
32878         PR target/65248
32879         * output.h (default_binds_local_p_2): New.
32880         * varasm.c (default_binds_local_p_2): Renamed to ...
32881         (default_binds_local_p_3): This.  Don't return true on protected
32882         data symbol if protected data may be external.
32883         (default_binds_local_p): Use default_binds_local_p_3.
32884         (default_binds_local_p_1): Likewise.
32885         (default_binds_local_p_2): New.
32886         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
32887         default_binds_local_p_2 if TARGET_MACHO is undefined.
32889 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
32891         PR target/65593
32892         * config/i386/i386.c (legitimize_pic_address): If base
32893         is SYMBOL_REF or LABEL_REF using %rip addressing, force
32894         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
32896 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
32898         PR target/65531
32899         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
32900         comdat groups.
32902 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
32904         PR ipa/65600
32905         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
32906         of optimized out indirect call.
32907         (redirect_to_unreachable): Always build symbol table node for
32908         BUILT_IN_UNREACHABLE
32910 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
32912         PR target/65407
32913         * ira-costs.c (record_reg_classes): Process all constraint string
32914         containing 0-9.
32916 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
32918         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
32919         memory_operand.
32921         PR target/65052
32922         * config/c6x/constraints.md (S3): New constraint.
32923         * config/c6x/c6x.md (real_jump): Use it.
32925 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
32927         PR middle-end/65595
32928         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
32929         do redirection if the call is not optimized out.
32931 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
32933         PR target/65495
32934         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
32935         (fchkp-check-incomplete-type): Add LTO.
32936         (fchkp-zero-input-bounds-for-main): Likewise.
32937         (fchkp-first-field-has-own-bounds): Likewise.
32938         (fchkp-narrow-bounds): Likewise.
32939         (fchkp-narrow-to-innermost-array): Likewise.
32940         (fchkp-use-static-bounds): Likewise.
32941         (fchkp-use-static-const-bounds): Likewise.
32942         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
32944 2015-03-27  Marek Polacek  <polacek@redhat.com>
32946         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
32948 2015-03-27  Marek Polacek  <polacek@redhat.com>
32950         PR sanitizer/65583
32951         * ubsan.c (ubsan_create_edge): New function.
32952         (instrument_bool_enum_load): Call it.
32953         (instrument_nonnull_arg): Likewise.
32954         (instrument_nonnull_return): Likewise.
32955         (instrument_object_size): Likewise.
32957 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
32959         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
32960         auto_vec.
32962 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
32964         PR lto/65536
32965         * lto-streamer.h (class lto_location_cache): New.
32966         (struct data_in): Add location_cache.
32967         (lto_input_location): Update prototype.
32968         (stream_input_location_now): New.
32969         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
32970         pointer to location.
32971         (stream_input_location): Update.
32972         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
32973         (warn_odr): Apply location cache before warning.
32974         (lto_input_location): Update prototype.
32975         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
32976         Use stream_input_location_now.
32977         * lto-streamer-in.c (lto_location_cache::current_cache): New static
32978         variable.
32979         (lto_location_cache::cmp_loc): New function.
32980         (lto_location_cache::apply_location_cache): New function.
32981         (lto_location_cache::accept_location_cache): New function.
32982         (lto_location_cache::revert_location_cache): New function.
32983         (lto_location_cache::input_location): New function.
32984         (lto_input_location): Do location caching.
32985         (stream_input_location_now): New function.
32986         (input_eh_region, input_struct_function_base): Use
32987         stream_input_location_now.
32988         (lto_data_in_create): use new.
32989         (lto_data_in_delete): Use delete.
32990         * tree-streamer-in.c (unpack_ts_block_value_fields,
32991         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
32992         lto_input_ts_exp_tree_pointers): Update for cached location api.
32994 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
32996         PR ipa/65076
32997         * passes.def: Add pass_nothrow.
32998         * ipa-pure-const.c: (pass_data_nothrow): New.
32999         (pass_nothrow): New.
33000         (pass_nothrow::execute): New.
33001         (make_pass_nothrow): New.
33002         * tree-pass.h (make_pass_nothrow): Declare.
33004 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33006         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
33007         edge to change by speculation resolution or redirection.
33008         (edge_set_predicate): Likewise.
33009         (inline_summary_t::duplicate): Likewise.
33010         (remap_edge_summaries): Likewise.
33012 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33014         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
33015         New macros.
33016         (can_inline_edge_p): Relax option matching for always inline functions.
33018 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
33020         PR target/65561
33021         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
33022         Check operand 4 and operand 0 for equality.
33023         (avx512f_vextract<shuffletype>32x4_1_maskm):
33024         Check operand 6 and operand 0 for equality.
33025         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
33026         for equality.
33027         (vec_extract_hi_<mode>_maskm): Ditto.
33029 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33031         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
33032         dead calls back to live.
33033         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
33034         cross check to ...
33035         (cgraph_node::verify_node): ... here; verify only callee edges,
33036         not caller.
33037         * cif-code.def (CILK_SPAWN): New code.
33039 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33041         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
33042         (edge_set_predicate): Use it to mark unreachable edges.
33043         (inline_summary_t::duplicate): Remove unnecesary code.
33044         (remap_edge_summaries): Likewise.
33045         (dump_inline_summary): Report contains_cilk_spawn.
33046         (compute_inline_parameters): Compute contains_cilk_spawn.
33047         (inline_read_section, inline_write_summary): Stream
33048         contains_cilk_spawn.
33049         * ipa-inline.c (can_inline_edge_p): Do not touch
33050         DECL_STRUCT_FUNCTION that may not be available;
33051         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
33052         remove check for callee_fun->can_throw_non_call_exceptions and
33053         replace it by optimization attribute check; check for flag_exceptions.
33054         * ipa-inline-transform.c (inline_call): Maintain
33055         DECL_FUNCTION_PERSONALITY
33056         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
33058 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
33060         PR tree-optimization/65551
33061         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
33062         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
33064 2015-03-26  Richard Biener  <rguenther@suse.de>
33066         PR middle-end/65555
33067         * tree-cfg.c (verify_gimple_call): Do not require a call to
33068         have no LHS if it wasn't recognized as control altering yet.
33070 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
33072         PR tree-optimization/64715
33073         * passes.def: Add another instance of pass_object_sizes before ccp1.
33074         * tree-object-size.c (pass_object_sizes::execute): In
33075         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
33076         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
33077         __bos result and the computed constant.  Remove redundant
33078         checks, obsoleted by gimple_call_builtin_p test.
33080         * var-tracking.c (variable_tracking_main_1): Don't track
33081         variables for targetm.no_register_allocation targets.
33083 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
33085         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
33086         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
33088 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
33090         PR target/65569
33091         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
33092         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
33093         0.0 is correctly setup.
33094         (extenddftf2_internal): Likewise.
33096 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
33098         PR tree-optimization/65177
33099         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
33100         (bb_in_bbs): New.
33101         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
33102         edges not adjacent on the path to the original code.
33104 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
33106         PR bootstrap/65537
33107         * doc/install.texi (Building a native compiler): Document new
33108         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
33109         configuration assumes that the host supports the linker plugin.
33111 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
33113         PR target/65508
33114         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
33115         chain for generated call.
33117 2015-03-25  Richard Biener  <rguenther@suse.de>
33119         * passes.c (pass_manager::execute_early_local_passes): Guard
33120         execution of pass_chkp_instrumentation_passes with
33121         flag_check_pointer_bounds.
33122         (pass_chkp_instrumentation_passes::gate): Likewise.
33124 2015-03-25  Martin Liska  <mliska@suse.cz>
33126         PR tree-optimization/65538
33127         * symbol-summary.h (function_summary::~function_summary):
33128         Relese memory for allocated summaries.
33129         (function_summary::release): New function.
33131 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
33133         PR lto/65515
33134         * lto-streamer-out.c (DFS::worklist): New struct.
33135         (DFS::worklist_vec): New data member.
33136         (DFS::next_dfs_num): Remove.
33137         (DFS::DFS): Rewritten using worklist instead of recursion,
33138         using most of code from DFS::DFS_write_tree.
33139         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
33140         pass it to DFS_write_tree calls.
33141         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
33142         quick initial checks push it into worklist_vec and return.
33144 2015-03-25  Richard Biener  <rguenther@suse.de>
33146         PR middle-end/65519
33147         * genmatch.c (expr::gen_transform): Re-write to avoid
33148         using gimple_build.
33150 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
33152         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
33154 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
33156         * config/arm/arm.opt (print_tune_info): New option.
33157         * config/arm/arm.c (arm_print_tune_info): New function.
33158         (arm_file_start): Call arm_print_tune_info.
33159         * config/arm/arm-protos.h (struct tune_params): Add comment.
33160         * doc/invoke.texi (@item -mprint-tune-info): New item.
33161         (-mtune): mention it in ARM Option Summary.
33163 2015-03-25  DJ Delorie  <dj@redhat.com>
33165         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
33166         correct clause.
33168 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
33169             Martin Liska  <mliska@suse.cz>
33171         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
33172         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
33173         (sem_item::add_type): New function.
33174         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
33175         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
33176         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
33177         (sem_function::equals_wpa): Fix typo.
33178         * ipa-icf.h (sem_item::add_type): New function.
33179         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
33180         order.
33182 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
33184         PR tree-optimization/65533
33185         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
33186         with swapped operands, call vect_free_slp_tree on
33187         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
33188         vector.
33190 2015-03-24  Richard Biener  <rguenther@suse.de>
33192         PR middle-end/65517
33193         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
33194         for fixup if necessary.
33196 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
33198         * doc/extend.texi (Function Attributes): Add @cindex entries
33199         for all attributes and regularize their format.  Delete text
33200         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
33201         information about "eightbit_data", "tiny_data", and "model"
33202         variable attributes to the Variable Attributes section.  Fix
33203         some obvious typos and copy-editing issues.
33204         (Variable Attributes, Type Attributes): Likewise add/fix
33205         @cindex entries for all attributes.
33207 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
33209         PR target/65523
33210         * tree-chkp.c (chkp_build_returned_bound): Ignore
33211         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
33213 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
33215         PR target/65505
33216         * config/sh/predicates.md (simple_mem_operand,
33217         displacement_mem_operand): Add test for reg.
33218         (short_displacement_mem_operand): Test for displacement_mem_operand
33219         before invoking sh_disp_addr_displacement.
33220         * config/sh/constraints.md (Sdd, Sra): Simplify.
33221         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
33222         Remove redundant displacement_mem_operand tests.
33224 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
33226         PR target/65296
33227         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
33228         the same -mmcu=MCU more than once.
33230 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
33232         PR bootstrap/65522
33233         * ipa-devirt.c: Remove duplicate demangle.h include.
33235         PR target/65504
33236         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
33237         on the pseudo.
33238         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
33239         REG_POINTER on *destptr after adjusting it for prologue size.
33241         PR ipa/65521
33242         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
33243         ultimate_alias_target ()->order ints instead of
33244         ultimate_alias_target () pointers.
33246 2015-03-23  Richard Biener  <rguenther@suse.de>
33248         PR tree-optimization/65518
33249         * tree-vect-stmts.c (vectorizable_load): Reject single-element
33250         interleaving cases we generate absymal code for.
33252 2015-03-23  Richard Biener  <rguenther@suse.de>
33254         PR tree-optimization/65494
33255         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
33256         matches here.
33257         (vect_analyze_slp_instance): But do that here, always and once.
33259 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33261         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
33262         adding T or multiplying by T+1 and subracting T.
33264 2015-03-22  Jeff Law  <law@redhat.com>
33266         PR rtl-optimization/64317
33267         * Makefile.in (OBJS): Add gcse-common.c
33268         * gcse.c: Include gcse-common.h
33269         (struct modify_pair_s): Move structure definition to gcse-common.h
33270         (compute_transp): Move function to gcse-common.c.
33271         (canon_list_insert): Similarly.
33272         (record_last_mem_set_info): Break out some code and put it into
33273         gcse-common.c.  Call into the new common code.
33274         (compute_local_properties): Pass additional arguments to compute_transp.
33275         * postreload-gcse.c: Include gcse-common.h and df.h
33276         (modify_mem_list_set, blocks_with_calls): New variables.
33277         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
33278         (get_bb_avail_insn): Pass in the expression index too.
33279         (alloc_mem): Allocate memory for the new bitmaps and lists.
33280         (free_mem): Free memory for the new bitmaps and lists.
33281         (insert_expr_in_table): Record a bitmap index for each entry we
33282         add to the table.
33283         (record_last_mem_set_info): Call into common code in gcse-common.c.
33284         (get_bb_avail_insn): If no available insn was found in the requested
33285         BB.  If BB has a single predecessor, see if the expression is
33286         transparent in BB and available in that single predecessor.
33287         (compute_expr_transp): New wrapper for compute_transp.
33288         (eliminate_partially_redundant_load): Pass expression's bitmap_index
33289         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
33290         (gcse_after_reload_main): If there are elements in the hash table,
33291         then compute transparency for all the elements in the hash table.
33292         * gcse-common.h: New file.
33293         * gcse-common.c: New file.
33295 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
33297         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
33298         as an adjective.
33299         (System Headers): Likewise.
33300         (Ifdef): Likewise.
33301         (Traditional macros): Likewise.
33302         (Invocation): Likewise.
33303         (Option Index): Likewise.
33304         * doc/cppopts.texi (-M): Likewise.
33305         (-finput-charset): Likewise.
33306         (--help): Likewise.
33307         * doc.invoke.texi (AVR Options): Likewise.
33308         (V850 Options): Likewise.
33310 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
33312         PR ipa/65475
33313         * ipa-devirt.c: Include demangle.h
33314         (odr_type_d): Add field rtti_broken.
33315         (odr_subtypes_equivalent_p): Do not require name to match.
33316         (compare_virtual_tables): Fix typo; if type already has ODR violation,
33317         bypass the tests; be ready for function referneces in vtables that are
33318         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
33319         (warn_odr): Give up for nameless types.
33320         (warn_types_mismatch): Report mismatch in mangled names;
33321         report mismatch in anonymous namespaces; look into component types to
33322         give useful error; report when mismatch is dragged in from other ODR
33323         type.
33324         (odr_types_equivalent_p): Match types for being polymorphic; avoid
33325         duplicated diagnostics.
33326         (add_type_duplicate): Reorder checks so more informative ones come
33327         first; fix typo; do not output "the extra base is defined here" when
33328         we did not warn.
33329         (BINFO_N_BASE_BINFOS): Relax sanity check.
33331 2015-03-22  Martin Liska  <mliska@suse.cz>
33332             Jakub Jelinek  <jakub@redhat.com>
33334         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
33335         masks that can potentially include a builtin.
33336         (ix86_add_new_builtins): Introduce fast filter for isa values
33337         that cannot trigger builtin inclusion.
33339 2015-03-22  Martin Liska  <mliska@suse.cz>
33341         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
33342         (sem_item::update_hash_by_local_refs): Likewise.
33343         (sem_variable::get_hash): Empty line is fixed.
33344         (sem_item_optimizer::execute): Include adding of hash references.
33345         (sem_item_optimizer::update_hash_by_addr_refs): New function.
33346         (sem_item_optimizer::build_hash_based_classes): Use local hash.
33347         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
33348         (sem_item::update_hash_by_local_refs): Likewise.
33350 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
33352         PR ipa/65502
33353         * ipa-comdats.c (enqueue_references): Walk through thunks.
33354         (ipa_comdats): Likewise.
33355         (set_comdat_group_1): New function.
33357 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
33359         PR ipa/65475
33360         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
33361         non-polymorphic
33363 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
33364             Gerald Pfeifer  <gerald@pfeifer.com>
33366         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
33368 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
33369             Sandra Loosemore  <sandra@codesourcery.com>
33371         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
33372         function parameter declaration.
33373         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
33374         Update arguments to nios2_adjust_call_address().
33375         (sibcall_internal): Rename from *sibcall.
33376         (sibcall_value_internal): Rename from *sibcall_value.
33377         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
33378         (nios2_large_got_address): Add target temp reg parameter.
33379         (nios2_got_address): Adjust call to nios2_large_got_address, add
33380         force_reg around it.
33381         (nios2_load_pic_address): Add target temp reg parameter, replace call
33382         to nios2_got_address with corresponding code.
33383         (nios2_legitimize_constant_address): Update call to
33384         nios2_load_pic_address.
33385         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
33386         to use temp reg for PIC loading purposes.
33387         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
33388         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
33389         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
33391 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
33393         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
33394         usage of "the @option{...}".
33395         (-Wopenmp-simd): Likewise.
33396         (-fsanitize-recover): Likewise.
33397         (-fsanitize-undefined-trap-on-error): Likewise.
33398         (-flto): Likewise.
33399         (tracer-dynamic-coverage-feedback): Likewise.
33400         (reorder-block-duplicate-feedback): Likewise.
33401         (loop-unroll-jam-size): Likewise.
33402         (-B): Likewise.
33403         (-I-): Likewise.
33404         (-mabs=legacy): Likewise.
33405         (-mupper-regs-df): Likewise.
33406         (-mupper-regs-sf): Likewise.
33407         (-mpointers-to-nested-functions): Likewise.
33409 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
33411         * doc/extend.texi (Cilk Plus Builtins): Add markup.
33413 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
33415         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
33416         additional index entries and cross-references.
33417         (-fchkp-check-incomplete-type): Likewise.
33418         (-fchkp-first-field-has-own-bounds): Likewise.
33419         (-fchkp-narrow-to-innermost-array): Likewise.
33420         (-fchkp-use-fast-string-functions): Likewise.
33421         (-fchkp-use-nochk-string-functions): Likewise.
33422         (-fchkp-use-static-const-bounds): Likewise.
33423         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33424         (-fchkp-instrument-marked-only): Likewise.
33425         (-fchkp-use-wrappers): Likewise.
33426         (-static-libmpx): Likewise.
33427         (-static-libmpxwrappers): Likewise.
33428         * doc/extend.texi (bnd_legacy): Likewise.
33429         (bnd_instrument): Likewise.
33430         (bnd_variable_size): Likewise.
33431         (Pointer Bounds Checker builtins): Likewise.
33433 2015-03-21  Tom de Vries  <tom@codesourcery.com>
33435         PR tree-optimization/65458
33436         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
33437         * cgraph.h (cgraph_node): Add parallelized_function field.
33438         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
33439         (input_overwrite_node): Read parallelized_function field.
33440         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
33441         parallelized_function on cgraph_node for child_fn.
33442         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
33443         Remove include of gt-tree-parloops.h.
33444         (parallelized_functions): Remove static variable.
33445         (parallelized_function_p): Rewrite using parallelized_function field of
33446         cgraph_node.
33447         (create_loop_fn): Remove adding to parallelized_functions.
33448         * Makefile.in (GTFILES): Remove tree-parloops.c
33450 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
33452         PR rtl-optimization/64366
33453         * lra.c (lra_update_insn_regno_info): Consider regs in
33454         CALL_INSN_FUNCTION_USAGE memory.
33456 2015-03-20  Richard Biener  <rguenther@suse.de>
33458         PR middle-end/64715
33459         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
33460         for type comparison and gcc_checking_assert.
33461         (chrec_fold_plus_poly_poly): Likewise.
33462         (chrec_fold_multiply_poly_poly): Likewise.
33463         (chrec_convert_1): Likewise.
33464         * gimplify.c (gimplify_expr): Remove premature folding of
33465         &X + CST to &MEM[&X, CST].
33467 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
33469         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
33470         already is final.
33471         (ipa_inline): Recompute inline_failed codes.
33472         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
33473         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
33474         CIF_FINAL_ERROR.
33476 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
33478         PR rtl-optimization/60851
33479         * recog.c (constrain_operands): Accept a pseudo register before reload
33480         for LRA enabled targets.
33482 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
33484         PR target/65240
33485         * config/rs6000/predicates.md (easy_fp_constant): Remove special
33486         -ffast-math handling that kept non-0 constants live in the RTL
33487         until reload.  Remove logic testing the number of instructions it
33488         took to create a constant in a GPR that was never used, due to a
33489         test for soft-float earlier.
33490         (memory_fp_constant): Delete, no longer used.
33492         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
33493         alternatives for loading non-0 constants into GPRs for hard
33494         floating point that is no longer needed due to changes in
33495         easy_fp_constant.  Add support for loading 0.0 into GPRs.
33496         (mov<mode>_hardfloat32): Likewise.
33497         (mov<mode>_hardfloat64): Likewise.
33498         (mov<mode>_64bit_dm): Likewise.
33499         (movtd_64bit_nodm): Likewise.
33500         (pre-reload move FP constant define_split): Delete define_split,
33501         since it is no longer used.
33502         (extenddftf2_internal): Remove GHF constraints that are not valid
33503         for extenddftf2.
33505 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
33507         PR rtl-optimization/63491
33508         * lra-constraints.c (check_and_process_move): Use src instead of
33509         sreg.  Remove some dead code.
33511 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
33513         PR ipa/65380
33514         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
33515         (sem_variable::merge): Likewise.
33517 2015-03-19  Martin Liska  <mliska@suse.cz>
33519         PR ipa/65465
33520         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
33521         all fields of cgraph_thunk_info.
33523 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
33525         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
33526         clone instrumented thunks.
33528 2015-03-19  Richard Biener  <rguenther@suse.de>
33530         Revert
33531         2015-03-10  Richard Biener  <rguenther@suse.de>
33533         PR middle-end/63155
33534         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
33535         * tree-ssa-coalesce.c: Include timevar.h.
33536         (attempt_coalesce): Handle graph being NULL.
33537         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
33538         Split out abnormal coalescing to ...
33539         (perform_abnormal_coalescing): ... this function.
33540         (coalesce_ssa_name): Perform abnormal coalescing without computing
33541         live/conflict.
33542         (verify_ssa_coalescing_worker): New function.
33543         (verify_ssa_coalescing): Likewise.
33545 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33546             Jakub Jelinek  <jakub@redhat.com>
33548         PR sanitizer/65400
33549         * tsan.c (instrument_gimple): Clear tail call flag on
33550         calls.
33552 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
33554         PR sanitizer/65400
33555         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
33556         call in the return bb.
33557         (find_split_points): Add RETURN_BB argument, don't call
33558         find_return_bb.
33559         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
33560         if true append TSAN_FUNC_EXIT internal call after the call to
33561         the split off function.
33562         (execute_split_functions): Call find_return_bb here.
33563         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
33564         Adjust find_split_points and split_function calls.
33566 2015-03-18  DJ Delorie  <dj@redhat.com>
33568         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
33569         (iorqi3_virt): Likewise.
33571 2015-03-18  Tom de Vries  <tom@codesourcery.com>
33573         * tree-parloops.c (parallelize_loops): Make static.
33574         * tree-parloops.h (parallelize_loops): Remove extern declaration.
33576 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
33578         PR middle-end/64491
33579         Revert:
33580         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
33582         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
33583         condition would be removed due to undefined behaviour.
33585 2015-03-18  Martin Liska  <mliska@suse.cz>
33587         PR ipa/65432
33588         * cgraph.c (cgraph_node::get_create): Remove unnecessary
33589         xstrdup_for_dump wrapper.
33590         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
33591         sem_item::name.
33592         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
33593         with xstrdup_for_dump.
33594         (sem_variable::equals): Likewise.
33595         (sem_item_optimizer::read_section): Use symtab_node::name instead of
33596         sem_item::name.
33597         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
33598         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
33599         symtab_node::asm_name with xstrdup_for_dump.
33600         (congruence_class::dump): Use symtab_node::name instead of
33601         sem_item::name.
33602         * ipa-icf.h (symtab_node::name): Remove.
33603         (symtab_node::asm_name): Likewise.
33605 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
33607         PR tree-optimization/65450
33608         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
33609         function.
33610         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
33611         it instead of duplicate_ssa_name_ptr_info.
33613         PR target/65222
33614         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
33616 2015-03-18  Richard Biener  <rguenther@suse.de>
33618         * tree-data-ref.h (struct access_matrix): Remove.
33619         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
33620         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
33621         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
33622         (am_vector_index_for_loop): Likewise.
33623         (struct data_reference): Remove access_matrix member.
33624         (DR_ACCESS_MATRIX): Remove.
33625         (lambda_vector_new): Add comment.
33626         (lambda_matrix_new): Use XOBNEWVEC.
33628 2015-03-18  Richard Biener  <rguenther@suse.de>
33630         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
33631         (pass_ch::execute): Cleanup the CFG only if we did sth.
33632         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
33634 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33636         * expmed.c (synth_mult): Use std::swap instead of manually
33637         swapping algorithms.
33639 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
33641         PR target/65078
33642         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
33644 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
33646         PR target/65296
33647         * config/avr/avr.opt (-nodevicelib): New option.
33648         * doc/invoke.texi (AVR Options): Document it.
33649         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
33650         libgcc.a, libc.a, libm.a.
33651         * config/avr/specs.h: Same.
33652         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
33653         which don't (directly) depend on the device.  Print more help.
33654         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
33655         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
33656         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
33657         case of an error.
33658         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
33659         for specs file name.
33660         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
33661         * config/avr/avr-mcus.def: Adjust initializers and comments.
33663 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
33665         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
33666         DECL_ONE_ONLY to check if decl is one only.
33667         * ipa-split.c (consider_split): Limit splitt of one only functions.
33669 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
33671         PR tree-optimization/65427
33672         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
33673         functions.
33674         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
33676 2015-03-16  Marek Polacek  <polacek@redhat.com>
33678         * cgraph.h (add_new_static_var): Remove declaration.
33679         * varpool.c (add_new_static_var): Remove function.
33681 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
33683         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
33684         instead of vec<tree> * with vec_alloc and release for args.
33685         Adjust all users.
33687         PR middle-end/65431
33688         * omp-low.c (delete_omp_context): Only splay_tree_delete
33689         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
33690         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
33692 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
33694         PR sanitizer/64820
33695         * cfgexpand.c (align_base): New function.
33696         (alloc_stack_frame_space): Call it.
33697         (expand_stack_vars): Align prev_frame to be sure
33698         data->asan_vec elements aligned properly.
33700 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
33702         PR middle-end/65409
33703         * expr.c (store_field): Do not do a direct block copy if the source is
33704         a PARALLEL with BLKmode.
33706 2015-03-16  Tom de Vries  <tom@codesourcery.com>
33708         PR middle-end/65414
33709         Revert:
33710         2015-03-12  Tom de Vries  <tom@codesourcery.com>
33712         PR rtl-optimization/64895
33713         * lra-lives.c (check_pseudos_live_through_calls): Use
33714         actual_call_used_reg_set instead of call_used_reg_set, if available.
33716 2015-03-16  Alan Modra  <amodra@gmail.com>
33718         PR target/63150
33719         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
33720         Modify Z->r bswapdi splitter to use dest in place of scratch.
33721         In r->Z and Z->r bswapdi splitter rename word_high, word_low
33722         to word1, word2 and rearrange logic to suit.
33723         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
33724         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
33725         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
33726         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
33727         early clobber.
33729 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
33731         PR tree-optimization/65369
33732         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
33733         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
33734         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
33736         PR tree-optimization/65418
33737         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
33738         are casts in the first PLUS_EXPR operand, ensure tbias and
33739         *totallowp are in the inner type.
33741         PR rtl-optimization/65401
33742         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
33743         argument.  If true, adjust_address_nv of x with big-endian
33744         correction for the mode widening to GET_MODE (y).
33745         (make_field_assignment): Don't do MEM mode widening here.
33746         Use MEM_P instead of GET_CODE == MEM.
33748 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
33750         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
33751         the external decls.
33753 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33755         PR target/64600
33756         * config/arm/arm.c (arm_gen_constant, AND case): Use
33757         ARM_SIGN_EXTEND when constructing AND mask.
33759 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33761         * graph.c (print_graph_cfg): Make function names visible and append
33762         parenthesis to it.  Also make groups of basic blocks belonging to the
33763         same function visible.
33765 2015-03-12  Richard Biener  <rguenther@suse.de>
33767         PR middle-end/44563
33768         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
33769         to avoid quadratic behavior with inline expansion splitting blocks.
33770         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
33771         with the successor if the predecessor will be merged with it.
33772         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
33773         entry block with its successor.
33775 2015-03-13  Richard Biener  <rguenther@suse.de>
33777         PR middle-end/44563
33778         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
33779         (cleanup_tree_cfg_1): Do not call it.
33780         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
33781         (fixup_noreturn_call): Mark the stmt as control altering.
33782         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
33783         here.
33784         (pass_data_fixup_cfg): Produce a dump file.
33785         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
33786         (need_noreturn_fixup): New global.
33787         (pass_dominator::execute): Fixup queued noreturn calls.
33788         (optimize_stmt): Queue calls that became noreturn for fixup.
33789         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
33790         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
33791         (el_to_fixup): New global.
33792         (eliminate_dom_walker::before_dom_childre): Queue calls that
33793         became noreturn for fixup.
33794         (eliminate): Fixup queued noreturn calls.
33795         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
33796         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
33797         (substitute_and_fold_dom_walker::before_dom_children): Queue
33798         alls that became noreturn for fixup.
33799         (substitute_and_fold): Fixup queued noreturn calls.
33801 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
33803         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
33804         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
33805         are building; for methods check ODR type of class they belong to if
33806         they may lead to a polymorphic call.
33807         (sem_function::compare_polymorphic_p): Be bit smarter about testing
33808         when function may lead to a polymorphic call.
33809         (sem_function::compare_type_list): Remove.
33810         (sem_variable::equals): Update use of compatible_types_p.
33811         (sem_variable::parse_tree_refs): Remove.
33812         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
33813         cdtor.
33814         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
33815         matching here.
33816         (func_checker::compatible_polymorphic_types_p): Break out from ...
33817         (unc_checker::compatible_types_p): ... here.
33818         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
33819         Declare.
33820         (unc_checker::compatible_types_p): Update.
33821         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
33822         Remove.
33824 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33826         PR rtl-optimization/65235
33827         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
33828         When first element of vec_concat is const_int, calculate its size
33829         using second element.
33831 2015-03-12  Richard Biener  <rguenther@suse.de>
33833         PR middle-end/65270
33834         * fold-const.c (operand_equal_p): Fix ordering of resetting
33835         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
33837 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33839         * config/s390/s390.c (s390_reorg): Move code to output nops after label
33840         to s390_reorg ().
33841         (s390_asm_output_function_label): Likewise.
33842         * config/s390/s390.c (s390_asm_output_function_label):
33843         Fix function label alignment with -mhtopatch.
33844         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
33845         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
33846         ("nop_2_byte"): New define_insn.
33847         ("nop_4_byte"): Likewise.
33848         ("nop_6_byte"): Likewise.
33849         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
33850         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
33852 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
33854         PR target/65103
33855         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
33856         register.
33858 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
33860         PR target/65044
33861         * toplev.c (process_options): Restrict Pointer Bounds Checker
33862         usage with Address Sanitizer.
33864 2015-03-12  Richard Biener  <rguenther@suse.de>
33866         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
33867         to split on.
33868         * omp-low.c (expand_omp_taskreg): Split block before removing
33869         the stmt.
33870         (expand_omp_target): Likewise.
33871         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
33872         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
33873         stmt to split_block.
33875 2015-03-12  Tom de Vries  <tom@codesourcery.com>
33877         PR rtl-optimization/64895
33878         * lra-lives.c (check_pseudos_live_through_calls): Use
33879         actual_call_used_reg_set instead of call_used_reg_set, if available.
33881 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
33883         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
33884         (cgraph_node::remove): Likewise.
33885         (cgraph_node::get_untransformed_body): Likewise.
33886         * varpool.c (varpool_node::remove): Likewise.
33887         (varpool_node::get_constructor): Add sanity check.
33889 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
33891         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
33892         old GCC versions.
33893         (-fabi-compat-version): Likewise.
33894         (-ffriend-injection): Likewise.
33895         (-Wdeclaration-after-statement): Likewise.
33896         (-fomit-frame-pointer): Likewise.
33897         (-ftree-coalesce-inlined-vars): Likewise.
33898         (-fvisibility=): Likewise.
33899         * doc/extend.texi (Typeof): Likewise.
33900         (Zero Length): Likewise.
33901         (Escaped Newlines): Likewise.
33902         (Compound Literals): Likewise.
33903         (Function Attributes): Likewise.
33904         (Label Attributes): Likewise.
33905         (Type Attributes): Likewise.
33906         (Function Names): Likewise.
33907         (Other Builtins): Likewise.
33908         (Function Specific Option Pragmas): Likewise.
33909         (C++ Interface): Likewise.
33911 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
33913         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
33915 2015-03-11  Marek Polacek  <polacek@redhat.com>
33917         PR tree-optimization/65388
33918         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
33920 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
33922         PR target/65296
33923         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
33924         * configure: Regenerate.
33925         * config.in: Regenerate.
33926         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
33927         [-mn-flash]: Document it.
33928         [__AVR_ARCH__]: Document avrtiny.
33930         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
33931         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
33932         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
33934 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
33936         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
33938 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
33940         PR target/65242
33941         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
33942         allow reloads of PLUS in floating point/VSX registers.
33944 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
33946         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
33947         crypto_sha256_fast.
33948         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
33950 2015-03-11  Richard Biener  <rguenther@suse.de>
33952         PR tree-optimization/65310
33953         * tree-sra.c (build_ref_for_offset): Also preserve larger
33954         alignment.
33956 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
33958         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
33960 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
33962         PR target/65368
33963         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
33964         new define_expand.
33965         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
33967 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
33969         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
33970         (sem_function::equals_wpa): ... here.
33972 2015-03-10  Marek Polacek  <polacek@redhat.com>
33973             Jakub Jelinek  <jakub@redhat.com>
33975         PR sanitizer/65367
33976         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
33977         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
33978         separately.
33980 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
33982         PR target/65286
33983         * config/rs6000/t-linux: For powerpc64* target set
33984         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
33986 2015-03-10  Richard Biener  <rguenther@suse.de>
33988         PR middle-end/44563
33989         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
33990         for redirect_all_calls.
33992 2015-03-10  Marek Polacek  <polacek@redhat.com>
33994         * gdbinit.in (pcfun): Define and document.
33996 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
33998         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
33999         of libgomp-plugin.h.
34000         (find_target_compiler): Support a case when the path to gcc is
34001         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
34002         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
34003         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
34004         libgomp-plugin.h.
34005         (main): Use GCC_INSTALL_NAME as target_driver_name.
34006         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
34007         define.
34008         (mkoffload.o): Remove obsolete include path and defines.
34009         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
34011 2015-03-10  Richard Biener  <rguenther@suse.de>
34013         PR middle-end/63155
34014         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34015         * tree-ssa-coalesce.c: Include timevar.h.
34016         (attempt_coalesce): Handle graph being NULL.
34017         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34018         Split out abnormal coalescing to ...
34019         (perform_abnormal_coalescing): ... this function.
34020         (coalesce_ssa_name): Perform abnormal coalescing without computing
34021         live/conflict.
34022         (verify_ssa_coalescing_worker): New function.
34023         (verify_ssa_coalescing): Likewise.
34025 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
34027         PR target/65296
34028         * config.gcc (extra_options) [avr]: Remove.
34029         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
34030         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
34031         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
34033         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
34034         (-mmcu=): Add Var and MissingArgError properties.
34035         (-march=): Remove.
34036         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
34037         * config/avr/t-multilib: Regenerate.
34038         * config/avr/specs.h: New file.
34039         * config/avr/driver-avr.c: New file.
34040         * config/avr/genopt.sh: Remove file.
34041         * config/avr/avr-tables.opt: Remove file.
34042         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
34043         * config/avr/avr-c.c: Same.
34044         * avr-arch.h: Same.
34045         (avr_current_device): Remove proto.
34046         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
34047         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
34048         (EXTRA_SPEC_FUNCTIONS): Define.
34049         (avr_devicespecs_file): New specs function proto.
34050         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
34051         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
34052         (avr_current_device): Remove definition and usage.
34053         (avr_set_core_architecture): New static function.
34054         (avr_option_override): Use it.
34055         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
34056         (mcu_name): New static array.
34057         (comparator, avr_archs_str, avr_mcus_str): New static functions.
34058         (avr_inform_devices, avr_inform_core_architectures): New functions.
34059         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
34060         (avrlibc.h) [WITH_AVRLIBC]: Include.
34061         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
34062         (print_mcu): Rewrite from scratch.
34063         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
34064         Forward to avr-specific specs defined in device-specs file.
34065         * config/avr/t-avr (driver-avr.o): New rule.
34066         (avr-devices.o): Depend on avr-arch.h.
34067         (avr-mcus): No more depend on avr-tables.opt.
34068         (avr-tables.opt): Remove rule.
34069         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
34071 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
34073         * c-family/c.opt (fchkp-use-wrappers): New.
34074         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
34075         (chkp_wrap_function): New.
34076         (chkp_build_instrumented_fndecl): Support wrapped
34077         functions.
34078         * doc/invoke.texi (-fcheck-pointer-bounds): New.
34079         (-fchkp-check-incomplete-type): New.
34080         (-fchkp-first-field-has-own-bounds): New.
34081         (-fchkp-narrow-bounds): New.
34082         (-fchkp-narrow-to-innermost-array): New.
34083         (-fchkp-optimize): New.
34084         (-fchkp-use-fast-string-functions): New.
34085         (-fchkp-use-nochk-string-functions): New.
34086         (-fchkp-use-static-bounds): New.
34087         (-fchkp-use-static-const-bounds): New.
34088         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
34089         (-fchkp-check-read): New.
34090         (-fchkp-check-write): New.
34091         (-fchkp-store-bounds): New.
34092         (-fchkp-instrument-calls): New.
34093         (-fchkp-instrument-marked-only): New.
34094         (-fchkp-use-wrappers): New.
34095         (-static-libmpx): New.
34096         (-static-libmpxwrappers): New.
34098 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
34100         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
34101         (CHKP_SPEC): Add wrappers library.
34102         * c-family/c.opt (static-libmpxwrappers): New.
34104 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
34106         * config/i386/linux-common.h (LIBMPX_LIBS): New.
34107         (LIBMPX_SPEC): New.
34108         (CHKP_SPEC): New.
34109         * gcc.c (CHKP_SPEC): New.
34110         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
34111         * c-family/c.opt (static-libmpx): New.
34113 2015-03-10  Richard Biener  <rguenther@suse.de>
34115         PR middle-end/44563
34116         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
34117         for compare_type.
34118         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
34119         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
34120         (cgraph_add_edge_to_call_site_hash): Likewise.
34121         (cgraph_node::get_edge): Likewise.
34122         (cgraph_edge::set_call_stmt): Likewise.
34123         (cgraph_edge::remove_caller): Likewise.
34125 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
34127         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
34128         (callee_saved_gpr_regs_size): ... this.
34129         (callee_saved_regs_first_regno): Rename to ...
34130         (callee_saved_first_gpr_regno): ... this.
34131         (callee_saved_regs_last_regno) Rename to ...
34132         (callee_saved_last_gpr_regno): ... this.
34133         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
34134         variables.
34135         (nds32_initial_elimination_offset): Likewise.
34136         (nds32_expand_prologue): Likewise.
34137         (nds32_expand_epilogue): Likewise.
34138         (nds32_expand_prologue_v3push): Likewise.
34139         (nds32_expand_epilogue_v3pop): Likewise.
34140         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
34141         Adjust renamed variables.
34142         (nds32_output_stack_pop): Likewise.
34144 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34146         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
34147         code in comment.
34149 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
34151         PR rtl-optimization/65321
34152         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
34153         than shift mode.
34154         * var-tracking.c (use_narrower_mode): Likewise.
34156 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
34158         PR tree-optimization/65355
34159         * varasm.c (notice_global_symbol): Do not produce RTL.
34160         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
34161         anchor.
34162         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
34163         check for section anchors.
34165 2015-03-10  Alan Modra  <amodra@gmail.com>
34167         PR target/65286
34168         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
34169         to be single-arch by default.  Set cpu_is_64bit for powerpc64
34170         given --with-cpu=native.
34171         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
34172         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
34173         and powerpc64le.
34174         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
34175         rs6000_isa_flags rather than TARGET_64BIT.
34177 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
34178             Kaz Kojima  <kkojima@gcc.gnu.org>
34180         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
34182 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
34184         PR lto/65361
34185         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
34186         on a TREE_BINFO, instead use BINFO_TYPE.
34188 2015-03-09  Richard Biener  <rguenther@suse.de>
34190         PR middle-end/65270
34191         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
34192         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
34193         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
34194         of that.  When comparing dereferences compare alignment.
34195         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
34197 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
34199         * ipa-inline-analysis.c (check_callers): Check
34200         node->can_remove_if_no_direct_calls_and_refs_p.
34201         (growth_likely_positive): Reorganize to call
34202         can_remove_if_no_direct_calls_p later.
34203         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
34204         will_be_removed_from_program_if_no_direct_calls_p): Add
34205         will_inline parameter.
34206         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
34207         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34208         Handle inliner case correctly.
34210 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34212         PR tree-optimization/63743
34213         * cfgexpand.c (reorder_operands): Also reorder if only second operand
34214         had its definition forwarded by TER.
34216 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
34218         PR lto/65316
34219         * ipa-utils.h (types_odr_comparable): Add strict argument.
34220         * ipa-devirt.c: Fix whitespace;
34221         (odr_hasher): Remove.
34222         (odr_name_hasher, odr_vtable_hasher): New hashers.
34223         (can_be_name_hashed_p): New predicate.
34224         (hash_type_name): remove.
34225         (hash_odr_name): New.
34226         (odr_name_hasher::hash): new.
34227         (can_be_vtable_hashed_p): New.
34228         (hash_odr_vtable): New.
34229         (odr_vtable_hasher::hash): New.
34230         (types_same_for_odr): Add strict parameter.
34231         (types_odr_comparable): Likewise.
34232         (odr_name_hasher::equal): New.
34233         (odr_vtable_hasher::equal): New.
34234         (odr_name_hasher::remove): New.
34235         (odr_hash_type): Change to hash_table<odr_name_hasher>.
34236         (odr_vtable_hash_type): New.
34237         (odr_vtable_hash): New.
34238         (odr_subtypes_equivalent_p): Do strict comparsion.
34239         (add_type_duplicate): Merge type names; cleanup; avoid type
34240         duplicates.
34241         (register_odr_type): Initialize vtable hash.
34242         (build_type_inheritance_graph): Likewise
34243         (get_odr_type): Reorg to use two hashes.
34244         (dump_possible_polymorphic_call_targets): Move sanity check after debug
34245         output.
34246         (ipa_devirt): Dump type_inheritance_graph.
34247         (types_same_for_odr): Add strict mode.
34249 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
34251         PR ipa/65334
34252         * cgraph.h (symtab_node): Add definition_alignment,
34253         can_increase_alignment_p and increase_alignment.
34254         * symtab.c (symtab_node::can_increase_alignment_p,
34255         increase_alignment_1, symtab_node::increase_alignment,
34256         symtab_node::definition_alignment): New.
34257         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
34258         can_increase_alignment_p.
34259         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
34260         * tree-vect-stmts.c (ensure_base_align): Likewise.
34261         * varasm.c (function_section_1): Use definition_alignment.
34262         (assemble_start_function): Likewise.
34263         (emit_local): likewise.
34264         (build_constant_desc): Likewsie.
34265         (output_constant_def_contents): Likewise.
34266         (place_block_symbol): Likewise.
34267         (output_object_block): Likewise.
34269 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
34271         PR ipa/65316
34272         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
34273         when outputting debug.
34275 2015-03-07  Marek Polacek  <polacek@redhat.com>
34276             Martin Uecker  <uecker@eecs.berkeley.edu>
34278         PR sanitizer/65280
34279         * doc/invoke.texi: Update description of -fsanitize=bounds.
34281 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
34283         * tree-ssa-phiopt.c (neg_replacement): Remove.
34284         (tree_ssa_phiopt_worker): Remove negate optimization.
34286 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
34288         PR ipa/65302
34289         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
34291 2015-03-06  Richard Biener  <rguenther@suse.de>
34293         PR middle-end/64928
34294         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
34295         and liveout_obstack members.
34296         (calculate_live_on_exit): Remove.
34297         (calculate_live_ranges): Change declaration.
34298         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
34299         (new_tree_live_info): Adjust.
34300         (calculate_live_ranges): Delete livein when not wanted.
34301         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
34302         Deal with partly deleted live info.
34303         (loe_visit_block): Remove temporary bitmap by using
34304         bitmap_ior_and_compl_into.
34305         (live_worklist): Adjust accordingly.
34306         (calculate_live_on_exit): Make static.
34307         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
34308         we do not need livein.
34310 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
34312         * real.c (real_from_string): Fix typo in assertion.
34314 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
34316         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
34317         the patch.
34319 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
34321         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
34323 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
34325         PR target/64342
34326         * lra-assigns.c (find_hard_regno_for): Rename to
34327         find_hard_regno_for_1.  Add a new parameter.
34328         (find_hard_regno_for): New function using find_hard_regno_for_1.
34330 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34332         PR rtl-optimization/65067
34333         * expmed.c (store_bit_field, extract_bit_field): Reworked the
34334         strict volatile bitfield handling.
34336 2015-03-05  Martin Liska  <mliska@suse.cz>
34338         PR ipa/65318
34339         * ipa-icf.c (sem_variable::equals): Compare variables types.
34341 2015-03-05  Richard Henderson  <rth@redhat.com>
34343         PR target/65121
34344         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
34345         correctly check weak symbol binding.
34347 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
34349         PR middle-end/65315
34350         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
34351         needed alignment.
34353 2015-03-05  Martin Liska  <mliska@suse.cz>
34355         * ipa-inline.c (inline_small_functions): Set default value to
34356         prevent warning during bootstrap.
34357         * tree.h: Add pragma guard that ignores false positives during
34358         bootstrap.
34360 2015-03-05  Richard Biener  <rguenther@suse.de>
34362         PR tree-optimization/65310
34363         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
34364         Properly preserve alignment of the base of the access.
34366 2015-03-05  Richard Biener  <rguenther@suse.de>
34368         PR ipa/65270
34369         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
34370         Compare dependence info.
34372 2015-03-05  Richard Biener  <rguenther@suse.de>
34374         PR middle-end/65233
34375         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
34376         tree-into-ssa.h.
34377         (walk_ssa_copies): Revert last chage.  Instead do not walk
34378         SSA names registered for SSA update.
34380 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
34382         PR ipa/65270
34383         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
34384         vtable references for their containing type.
34385         (sem_function::equals_wpa): Compare TYPE_RESTRICT
34386         and type attributes.
34388 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
34390         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
34391         before negating it.
34392         * stor-layout.c (finalize_record_size): Revert latest change.
34394 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
34396         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
34398 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
34400         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
34401         for correct comdat handling.
34402         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34403         Likewise.
34404         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
34405         (used_from_object_file_p_worker): Remove.
34406         (cgraph_node::only_called_directly_or_alised): Add
34407         used_from_object_file_p.
34408         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
34409         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
34410         can_remove_if_no_direct_calls_and_refs_p.
34412 2015-03-04  Nick Clifton  <nickc@redhat.com>
34414         * config/rl78/rl78.h (enum reg_class): Remove real registers from
34415         General register class.
34416         * config/rl78/rl78-real.md: Replace general register constraints
34417         with real+virtual register constraints.
34419 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
34421         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
34422         from checking for -mhtm option.
34424 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
34426         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
34427         (struct ipa_sra_check_caller_data): Add has_thunk field.
34428         (ipa_sra_check_caller): Check for thunk.
34429         (ipa_sra_preliminary_function_checks): Give up on function with
34430         thunks.
34431         (ipa_early_sra): Use call_for_symbol_and_aliases.
34433 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
34435         PR target/65249
34436         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
34437         called for __stack_chk_guard symbol.
34439 2015-03-03  DJ Delorie  <dj@redhat.com>
34441         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
34442         inc/dec.
34443         (*addhi3_real): Likewise.
34444         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
34445         pattern to match incrementing memory.
34446         * config/rl78/predicates.md (rl78_1_2_operand): New.
34447         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
34448         it's the same and only mem.
34449         (rl78_alloc_physical_registers_op2): If there's effectively only
34450         one MEM, transcode it into HL.
34451         (rl78_far_p): Reject addresses that aren't legitimate.
34453 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
34455         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
34456         negating it.
34458         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
34460 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
34462         Implement call0 ABI for xtensa
34463         * config/xtensa/constraints.md ("a" constraint): Include stack
34464         pointer in case of call0 ABI.
34465         ("q" constraint): Make empty in case of call0 ABI.
34466         ("D" constraint): Include stack pointer in case of call0 ABI.
34467         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
34468         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
34469         prototypes.
34470         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
34471         variable.
34472         (xtensa_regno_to_class): Make it a local variable in the
34473         function xtensa_regno_to_class.
34474         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
34475         macro, function prototype and implementation.
34476         (reg_nonleaf_alloc_order): Make it a local variable in the
34477         function order_regs_for_local_alloc.
34478         (xtensa_conditional_register_usage): New function.
34479         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
34480         (xtensa_valid_move): Allow direct moves to stack pointer
34481         register in call0 ABI.
34482         (xtensa_setup_frame_addresses): Only spill register windows in
34483         windowed ABI.
34484         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
34485         call0 ABI respectively.
34486         (xtensa_function_arg_1): Only mark a7 register for copying in
34487         windowed ABI.
34488         (xtensa_call_save_reg): New function.
34489         (compute_frame_size): Add space for callee saved register
34490         storage to the frame size in call0 ABI.
34491         (xtensa_expand_prologue): Generate code to set up stack frame
34492         and save callee-saved registers in call0 ABI.
34493         (xtensa_expand_epilogue): New function.
34494         (xtensa_set_return_address): New function.
34495         (xtensa_return_addr): Calculate return address in call0 ABI.
34496         (xtensa_builtin_saveregs): Only mark a7 register for copying and
34497         emit copying code in windowed ABI.
34498         (order_regs_for_local_alloc): Add preferred register allocation
34499         order for non-leaf function in call0 ABI.
34500         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
34501         (xtensa_asm_trampoline_template): Add trampoline generation for
34502         call0 ABI.
34503         (xtensa_trampoline_init): Add trampoline initialization for
34504         call0 ABI.
34505         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
34506         functions.
34507         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
34508         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
34509         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
34510         ABI call-used registers.
34511         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
34512         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
34513         call0 ABI.
34514         (REG_CLASS_CONTENTS): Include all registers into the preferred
34515         reload registers set, adjust the set in the
34516         xtensa_conditional_register_usage.
34517         (xtensa_regno_to_class): Drop variable declaration.
34518         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
34519         function.
34520         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
34521         respectively.
34522         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
34523         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
34524         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
34525         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
34526         location in call0 ABI.
34527         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
34528         stack adjustment size when handling exception.
34529         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
34530         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
34531         definitions.
34532         ("return" pattern): Generate ret.n/ret in call0 ABI.
34533         ("epilogue" pattern): Expand epilogue.
34534         ("nonlocal_goto" pattern): Use default in call0 ABI.
34535         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
34536         emit eh_set_a0_* depending on ABI.
34537         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
34538         ("eh_set_a0_call0", "blockage"): New patterns.
34540 2015-03-03  Martin Liska  <mliska@suse.cz>
34542         PR ipa/65287
34543         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
34545 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
34547         PR 65138/target
34548         * config/rs6000/rs6000-tables.opt: Regenerate table.
34550 2015-03-03  Renlin Li  <renlin.li@arm.com>
34552         * doc/md.texi (@item ^): Change ? into ^.
34554 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
34556         * doc/tm.texi: Regenerated.
34558 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
34560         * builtins.c (expand_builtin_return_addr): Add
34561         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
34562         surrounding #ifdef.
34563         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
34564         definition to 1.
34565         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
34566         Likewise.
34567         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
34568         undefined.
34569         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
34570         paragraph.
34572 2015-03-03  Martin Jambor  <mjambor@suse.cz>
34573             Eric Botcazou  <ebotcazou@adacore.com>
34575         * tree-sra.c (ipa_sra_check_caller_data): New type.
34576         (has_caller_p): Removed.
34577         (ipa_sra_check_caller): New function.
34578         (ipa_sra_preliminary_function_checks): Use it.
34580 2015-03-03  Martin Liska  <mliska@suse.cz>
34582         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
34583         instead of if branch.
34585 2015-03-03  Martin Liska  <mliska@suse.cz>
34587         PR ipa/65282
34588         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
34590 2015-03-23  Jeff Law  <law@redhat.com>
34592         PR tree-optimization/65241
34593         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
34594         hash table if INSERT is true.
34596 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
34598         PR target/65296
34599         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
34601 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
34603         PR target/64331
34604         * config/avr/avr.c (context.h, tree-pass.h): Include them.
34605         (avr_pass_data_recompute_notes): New static variable.
34606         (avr_pass_recompute_notes): New class.
34607         (avr_register_passes): New static function.
34608         (avr_option_override): Call it.
34610 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
34612         Fix various problems with specs file generation.
34614         PR target/65296
34615         * config.gcc (extra_gcc_objs) [avr]: Remove.
34616         * config/avr/driver-avr.c: Remove file.
34617         * config/avr/t-avr (driver-avr.o): Remove rule.
34618         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
34619         INCLUDES to build.  Depend on TM_H.
34620         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
34621         build warnings.  Fix non-matching types and non-existing %-codes.
34622         (tm.h): Include.
34623         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
34624         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
34625         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
34626         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
34627         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
34628         (LIBGCC_SPEC): Remove definitions.
34630 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
34632         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
34633         to create a register in testing mode.
34635 2015-03-03  Martin Liska  <mliska@suse.cz>
34636             Jan Hubicka  <hubicka@ucw.cz>
34638         PR ipa/65263
34639         * cgraph.c (cgraph_node::has_thunk_p): New function.
34640         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
34641         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
34642         (sem_function::merge): Assert is changed.
34644 2015-03-03  Martin Liska  <mliska@suse.cz>
34645             Martin Jambor  <mjambor@suse.cz>
34647         PR ipa/65087
34648         * ipa-icf.c (sem_item_optimizer::execute): Change function
34649         return value to boolean.
34650         (sem_item_optimizer::merge_classes): Likewise.
34651         (ipa_icf_driver): Return TODO_remove_functions in case there's
34652         a merge operation processed.
34653         * ipa-icf.h: Change function return value to boolean.
34655 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
34657         PR 65138/target
34658         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
34659         processor type for 64-bit little endian PowerPC.
34661         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
34662         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
34663         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
34664         printing built-in mask so it does not pass NULL pointers.
34666         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
34667         -mcpu=powerpc64le.
34669 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
34671         PR target/58158
34672         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
34673         !ISA_HAS_FP_CONDMOVE.
34675 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
34677         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
34678         reload_completed.
34680 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
34682         * doc/invoke.texi (Options for Code Generation Conventions):
34683         Fix URL of DSO paper.
34685 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
34687         PR ipa/65130
34688         * ipa-inline.c (check_callers): Looks for recursion.
34689         (inline_to_all_callers): Give up on uninlinable or recursive edges.
34690         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
34691         summary of inline clones.
34692         (do_estimate_growth_1): Fix recursion check.
34694 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
34696         PR ipa/64988
34697         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
34698         comdat groups.
34700 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
34701             Aldy Hernandez  <aldyh@redhat.com>
34703         PR lto/65276
34704         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
34705         when checking TYPE_BINFO.
34707 2015-03-02  Richard Biener  <rguenther@suse.de>
34709         PR ipa/65270
34710         * ipa-icf-gimple.c: Include builtins.h.
34711         (func_checker::compare_memory_operand): Compare base alignment.
34713 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34715         PR target/65184
34716         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
34717         passed by reference.
34719 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34721         PR target/65183
34722         * tree-chkp.c (chkp_check_lower): Don't check against
34723         zero bounds for already instrumented functions.
34724         (chkp_check_upper): Likewise.
34725         (chkp_fini): Clean pass local data to avoid wrong reusage.
34727 2015-02-28  Martin Liska  <mliska@suse.cz>
34728             Jan Hubicka  <hubicka@ucw.cz>
34730         * ipa-icf.c (sem_variable::equals): Improve debug output;
34731         get variable constructor.
34732         (sem_variable::parse): Do not filter out too early; give up on
34733         volatile and register vars.
34734         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
34735         variables.
34736         * ipa-icf.h (sem_variable::init): Do not set ctor.
34737         (sem_variable::ctor): Remove.
34739 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
34741         PR middle-end/65233
34742         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
34744 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34746         * ipa-icf.c: Include stor-layout.h
34747         (sem_function::compare_cgraph_references): Rename to ...
34748         (sem_item::compare_cgraph_references): ... this one.
34749         (sem_variable::equals_wpa): New function
34750         (sem_variable::equals): Do not check stuff already verified by
34751         equals_wpa.
34752         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
34753         * ipa-icf.h (sem_item): Add compare_cgraph_references.
34754         (sem_function): Remove compare_cgraph_references.
34755         (sem_variable): Turns equals_wpa into non-inline.
34757 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34759         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
34760         (sem_item::add_expr): New function.
34761         (sem_function::hash_stmt): Handle operands of most statements.
34762         (sem_variable::get_hash): Hash the actual constructor.
34763         * ipa-icf.h (sem_item): Add add_expr.
34764         (sem_function): Update prototype of hash_stmt
34766 2015-02-28  Martin Liska  <mliska@suse.cz>
34767             Jan Hubicka  <hubicka@ucw.cz>
34769         PR ipa/65245
34770         * ipa-icf-gimple.c (func_checker::compare_function_decl):
34771         Remove.
34772         (func_checker::compare_variable_decl): Skip symtab vars.
34773         (func_checker::compare_cst_or_decl): Update.
34774         * ipa-icf.c (sem_function::parse): Do not consider aliases.
34775         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
34776         use correct symtab predicates.
34777         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
34778         (sem_variable::parse):  Update comment.
34779         (sem_item_optimizer::build_graph): Consider ultimate aliases
34780         for references.
34782 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34784         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
34785         of OBJ_TYPE_REF.
34787 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34789         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
34790         (sem_variable::merge) Likewise.
34792 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34794         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
34795         target; also match flag_ipa_devirt.
34797 2015-03-01  Martin Liska  <mliska@suse.cz>
34798             Jan Hubicka  <hubicka@ucw.cz>
34800         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
34801         Validate variable alignment.
34802         * ipa-icf.c (sem_function::equals_private): Be more precise
34803         about non-common function attributes.
34804         (sem_variable::equals): Likewise.
34806 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34808         PR ipa/65237
34809         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
34810         across COMDAT group boundary.
34812 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34814         PR ipa/65232
34815         * ipa-icf.c (clear_decl_rtl): New function.
34816         (sem_function::merge): Clear RTL before forming alias.
34817         (sem_variable::merge): Clear RTL before forming alias.
34819 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34821         PR ipa/65236
34822         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
34824 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
34826         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
34827         to neon_to_gp<q>.
34829 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
34831         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
34832         a typo in the description.
34834 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
34836         PR target/64317
34837         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
34838         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
34839         * lra-constraints.c: Include "params.h".
34840         (EBB_PROBABILITY_CUTOFF): Use
34841         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
34842         (lra_inheritance): Use '<' instead of '<=' for
34843         EBB_PROBABILITY_CUTOFF.
34844         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
34845         Document change.
34847 2015-02-27  Martin Liska  <mliska@suse.cz>
34849         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
34850         vector length condition.
34852 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
34854         * doc/extend.texi (x86 transactional memory intrinsics):
34855         Reorganize discussion of _xbegin.  Clarify that the return
34856         value is a bit mask.  Expand example and move to end of section.
34858 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
34859             Aldy Hernandez  <aldyh@redhat.com>
34861         PR rtl-optimization/65220
34862         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
34864 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
34866         PR target/65032
34867         * lra-remat.c (update_scratch_ops): New.
34868         (do_remat): Call it.
34869         * lra.c (lra_register_new_scratch_op): New. Take code from ...
34870         (remove_scratches): ... here.
34871         * lra-int.h (lra_register_new_scratch_op): New prototype.
34873 2015-02-27  Marek Polacek  <polacek@redhat.com>
34875         PR c/65040
34876         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
34877         -Wformat-signedness anymore.
34879 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34881         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
34882         function.
34883         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
34885 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34887         * config/s390/s390.c (enum s390_builtin):
34888         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
34889         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
34890         (s390_init_builtins): Generate new builtin functions.
34891         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
34892         (s390_sfpc, s390_efpc): New pattern definitions.
34894 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34896         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
34897         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
34898         (s390_builtin_decls): New array.
34899         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
34900         (s390_builtin_decl): New function.
34901         (TARGET_BUILTIN_DECL): Define macro.
34903 2015-02-27  Richard Biener  <rguenther@suse.de>
34905         PR middle-end/63175
34906         * builtins.c (get_object_alignment_2): Make sure to re-apply
34907         the ANDed mask after recursing to its operand gets us a new
34908         misalignment bit position.
34910 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
34911             Martin Liska  <mliska@suse.cz>
34913         PR bootstrap/65150
34914         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
34915         Use address_matters_p.
34916         (redirect_all_callers, set_addressable): New functions.
34917         (sem_function::merge): Reorganize and fix merging issues.
34918         (sem_variable::merge): Likewise.
34919         (sem_variable::compare_sections): Remove.
34920         * common.opt (fmerge-all-constants, fmerge-constants): Remove
34921         Optimization flag.
34922         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
34923         redirect them.
34924         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
34925         decl is used.
34926         (address_matters_1): New function.
34927         (symtab_node::address_matters_p): New function.
34928         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
34929         check for merged flag.
34930         * cgraph.h (address_matters_p): Declare.
34931         (symtab_node::address_taken_from_non_vtable_p): Remove.
34932         (symtab_node::address_can_be_compared_p): New method.
34933         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
34934         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
34935         Remove.
34936         (comdat_can_be_unshared_p_1) Use address_matters_p.
34937         (update_vtable_references): Fix formating.
34938         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
34939         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
34940         * cgraphclones.c: Preserve merged and icf_merged flags.
34942 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
34944         * doc/extend.texi (Function Attributes): Fix spelling and typos.
34945         (Label Attributes): Likewise.
34946         (Cilk Plus Builtins): Likewise.
34947         (ARC SIMD Built-in Functions): Likewise.
34948         (ARM C Language Extensions (ACLE)): Likewise.
34949         (PowerPC Built-in Functions): Likewise.
34950         (PowerPC Hardware Transactional Memory Built-in Functions):
34951         Likewise.
34953 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
34955         PR tree-optimization/65216
34956         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
34957         new stmt and new SSA_NAME for lhs whenever the arguments have
34958         changed and weren't just swapped.  Fix comment typo.
34960         PR tree-optimization/65215
34961         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
34962         for PDP endian targets.
34963         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
34964         Fix up formatting issues.
34965         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
34966         size is smaller than the original, adjust MEM_REF offset by the
34967         difference of sizes.  Use is_gimple_mem_ref_addr instead of
34968         is_gimple_min_invariant test to avoid adding address temporaries.
34970 2015-02-26  Martin Liska  <mliska@suse.cz>
34971             Jan Hubicka  <hubicka@ucw.cz>
34973         PR ipa/64693
34974         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
34975         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
34976         (sem_item_optimizer::process_cong_reduction): Include division by
34977         sensitive references.
34978         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
34979         * ipa-ref.c (ipa_ref::address_matters_p): New function.
34980         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
34982 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
34984         PR target/65192
34985         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
34986         Remove.
34987         * config/avr/avr.c: Same.
34988         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
34989         Refuse any constant address not in 0..0xbf.
34990         * config/avr/avr.md (*mov<mode>, *movsf): Remove
34991         tiny_valid_direct_memory_access_range from insn conditions.
34992         (mov<mode>): Don't special-case expansion of avrtiny addresses.
34994 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
34996         PR target/61142
34997         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
34998         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
34999         * config/sh/predicates.md (const_logical_operand): New predicate.
35000         * config/sh/sh.md: Add new peephole2 patterns.
35002 2015-02-26  Marek Polacek  <polacek@redhat.com>
35004         PR ipa/65008
35005         * ipa-inline.c (early_inliner): Recompute inline parameters.
35007 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35009         PR target/65171
35010         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
35011         instructions with TImode operands are included in the analysis.
35013 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
35015         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
35016         of an EDGE_FSM_THREAD.
35018 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35020         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
35022 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
35024         PR debug/46102
35025         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
35027 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
35029         PR tree-optimization/65048
35030         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
35031         (thread_through_all_blocks): Call valid_jump_thread_path.
35032         Remove invalid FSM jump-thread paths.
35034 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
35036         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
35037         (ipa_write_optimization_summaries): Likewise.
35038         * tree-streamer.h: Include data-streamer.h.
35039         (streamer_mode_table): Declare extern variable.
35040         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
35041         * lto-streamer-out.c (lto_output_init_mode_table,
35042         lto_write_mode_table): New functions.
35043         (produce_asm_for_decls): Call lto_write_mode_table when streaming
35044         offloading LTO.
35045         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
35046         (lto_create_simple_input_block): Add mode_table argument to the
35047         lto_input_block constructors.
35048         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
35049         Likewise.
35050         * data-streamer-in.c (string_for_index): Likewise.
35051         * ipa-inline-analysis.c (inline_read_section): Likewise.
35052         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
35053         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
35054         * lto-streamer-in.c (lto_read_body_or_constructor,
35055         lto_input_toplevel_asms): Likewise.
35056         (lto_input_mode_table): New function.
35057         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
35058         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
35059         Use bp_pack_machine_mode.
35060         * real.h (struct real_format): Add name field.
35061         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
35062         (class lto_input_block): Add mode_table member.
35063         (lto_input_block::lto_input_block): Add mode_table_ argument,
35064         initialize mode_table.
35065         (struct lto_file_decl_data): Add mode_table field.
35066         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
35067         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
35068         unpack_ts_decl_common_value_fields,
35069         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
35070         * tree-streamer.c (streamer_mode_table): New variable.
35071         * real.c (ieee_single_format, mips_single_format,
35072         motorola_single_format, spu_single_format, ieee_double_format,
35073         mips_double_format, motorola_double_format,
35074         ieee_extended_motorola_format, ieee_extended_intel_96_format,
35075         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
35076         ibm_extended_format, mips_extended_format, ieee_quad_format,
35077         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
35078         decimal_single_format, decimal_double_format, decimal_quad_format,
35079         ieee_half_format, arm_half_format, real_internal_format): Add name
35080         field.
35081         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
35083 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
35085         PR target/65161
35086         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
35087         reordering for selective scheduling.
35089 2015-02-26  Terry Guo  <terry.guo@arm.com>
35091         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
35092         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
35093         (arm_arch_no_volatile_ce): Declare new global variable.
35094         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
35095         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
35096         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
35097         (TARGET_NO_VOLATILE_CE): New macro.
35098         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
35099         volatile memory access in IT block
35101 2015-02-25  Kai Tietz  <ktietz@redhat.com>
35103         PR tree-optimization/61917
35104         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
35105         that reduc_def_stmt is null.
35107 2015-02-25  Martin Liska  <mliska@suse.cz>
35109         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
35110         hard register variables.
35112 2015-02-25  Kai Tietz  <ktietz@redhat.com>
35114         PR target/64212
35115         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
35116         (symtab::noninterposable_alias): Likewise.
35118 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
35120         PR target/65167
35121         * config/i386/i386.c (ix86_function_arg_regno_p): Support
35122         bounds registers.
35123         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
35125 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
35127         PR target/64997
35128         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
35129         as split condition; force split via '#' in output pattern.
35131 2015-02-25  Richard Biener  <rguenther@suse.de>
35132             Kai Tietz  <ktietz@redhat.com>
35134         PR tree-optimization/61917
35135         * tree-vect-loop.c (vectorizable_reduction): Allow
35136         vect_internal_def without reduction to exit graceful.
35138 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
35140         PR target/65196
35141         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
35142         only with NONDEBUG_INSN_P.
35144 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
35146         Use variadic macros with avr-log.c.
35148         * config/avr/avr-protos.h (avr_vdump): New prototype.
35149         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
35150         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
35151         * config/avr/avr-log.c: Adjust comments.
35152         (avr_vdump): New function.
35153         (avr_vadump): Pass caller as 2nd argument instead of format string.
35154         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
35155         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
35157 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
35159         PR lto/64374
35160         * target.def (target_option_stream_in): New target hook.
35161         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
35162         targetm.target_option.post_stream_in if non-NULL.
35163         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
35164         * doc/tm.texi: Updated.
35165         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
35166         function.
35167         (TARGET_OPTION_POST_STREAM_IN): Redefine.
35169 2015-02-24  Jeff Law  <law@redhat.com>
35171         PR target/65117
35172         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
35173         of operand 0 and operand 2.
35174         (zero_cost_loop_end, loop_end): Similarly.
35176 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
35178         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
35179         CXX_MEM_STAT_INFO.
35181 2015-02-24  DJ Delorie  <dj@redhat.com>
35183         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
35184         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
35185         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
35186         instead of hardcoding SImode.
35188 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
35190         * omp-low.c (create_omp_child_function): Tag entrypoint
35191         functions with a special attribute.
35193 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
35195         PR target/65058
35196         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
35198 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
35200         PR rtl-optimization/65123
35201         * lra-remat.c (operand_to_remat): Check hard regs in insn
35202         definition too.
35204 2015-02-24  Nick Clifton  <nickc@redhat.com>
35206         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
35207         to the assembler.
35209 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
35211         PR libgomp/64625
35212         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
35213         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
35214         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
35215         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
35216         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
35217         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
35218         (BUILT_IN_GOACC_PARALLEL): Specify as
35219         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
35220         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
35221         * builtin-types.def
35222         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35223         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35224         Remove function types.
35225         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
35226         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35227         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35228         New function types.
35230 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
35232         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
35234 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
35236         PR tree-optimization/65170
35237         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
35238         if val[1] < 0, clear also val[2] and return 3.
35240 2015-02-24  Alan Modra  <amodra@gmail.com>
35242         PR target/65172
35243         * config/rs6000/rs6000.c (get_memref_parts): Only return true
35244         when *base is a reg.  Handle nested plus addresses.  Simplify
35245         pre_modify test.
35247 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
35249         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
35250         use natural alignment when optimizing for size.
35252 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
35254         PR target/65153
35255         * config/sh/sh.md (movsicc_true+3): Remove peephole.
35256         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
35257         * config/sh/sh.c (replace_n_hard_rtx): Remove.
35259 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
35261         PR fortran/63427
35262         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
35263         too big for a wide_int.  Implement missing wrapping operation.
35265 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
35267         PR target/65163
35268         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
35269         instead of const_int 4294901760.
35271 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
35273         * config/avr/t-avr: Fix typo in comment.
35275 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
35277         * doc/rtl.texi (fma): Clarify documentation.
35279 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
35281         PR debug/58123
35282         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
35283         over input_location.
35285 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
35287         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
35288         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
35289         restrict alignments to absolute_biggest_alignment.
35290         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
35291         Define.
35292         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
35293         * doc/tm.texi: Regenerate.
35294         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
35296 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
35298         PR target/64172
35299         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
35301 2015-02-20  Richard Biener  <rguenther@suse.de>
35303         PR tree-optimization/65136
35304         * tree-ssa-propagate.c: Include cfgloop.h.
35305         (replace_phi_args_in): Avoid replacing loop latch edge PHI
35306         arguments with constants.
35308 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
35309             Martin Liska  <mliska@suse.cz>
35311         PR target/63892
35312         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
35313         don't try to create_thunk if stdarg_p.  If
35314         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
35315         redirect_callers if possible.
35316         (sem_item_optimizer::execute): Call unregister_hooks here...
35317         (ipa_icf_driver): ... instead of here.
35319 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35321         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
35322         Mark operand 0 as earlyclobber in 2nd alternative.
35323         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
35324         Write negated shift amount into QI lowpart operand 0 and use it
35325         in the shift step.
35326         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
35328 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
35330         * cgraph.h (clone_function_name_1): Declare.
35331         * cgraphclones.c (clone_function_name_1): New function.
35332         (clone_function_name): Use it.
35333         * lto-partition.c: Include "stringpool.h".
35334         (must_not_rename, maybe_rewrite_identifier)
35335         (validize_symbol_for_target): New static functions.
35336         (privatize_symbol_name): Use must_not_rename.
35337         (promote_symbol): Call validize_symbol_for_target.
35338         (lto_promote_cross_file_statics): Likewise.
35339         (lto_promote_statics_nonwpa): Likewise.
35341 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
35343         PR target/64452
35344         * config/avr/avr.md (pushhi_insn): New insn.
35345         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
35347 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
35348             Jakub Jelinek  <jakub@redhat.com>
35350         * tree-streamer.c (preload_common_nodes): Don't preload
35351         TI_VA_LIST* for offloading.
35352         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
35353         in_lto_p.
35355 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
35357         * config/pa/pa.c (pa_emit_move_sequence): Always force
35358         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
35359         note on insn.
35361         * config/pa/pa.c (pa_reloc_rw_mask): New function.
35362         (TARGET_ASM_RELOC_RW_MASK): Define.
35363         (pa_cannot_force_const_mem): Revert previous change.
35365 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
35366             Jan Hubicka  <hubicka@ucw.cz>
35368         PR ipa/65028
35369         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
35370         across jump functions.
35372 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
35374         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
35376 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
35378         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
35380 2015-02-19  Richard Henderson  <rth@redhat.com>
35382         PR middle-end/65074
35383         * varasm.c (default_binds_local_p_2): Don't test node->definition;
35384         test DECL_EXTERNAL independent of symtab_node.
35386 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
35388         PR lto/65012
35389         * varpool.c (varpool_node::get_constructor): Return early
35390         if this->lto_file_data is NULL.
35392 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35394         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
35395         (rank_for_schedule_debug): Update.
35396         (ready_sort): Make static.  Move sorting logic to ...
35397         (ready_sort_debug, ready_sort_real): New static functions.
35398         (schedule_block): Sort both debug insns and real insns in preparation
35399         for ready list trimming.  Improve debug output.
35400         * sched-int.h (ready_sort): Remove global declaration.
35402 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
35404         * ipa-icf.c (sem_function::equals_private): Adjust.
35405         (sem_function::bb_dict_test): Take a vec<int> * instead of
35406         auto_vec<int>.
35407         * ipa-icf.h (bb_dict_test): Likewise.
35409 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
35411         PR gcov-profile/64634
35412         * tree-eh.c (frob_into_branch_around): Fix up typos
35413         in function comment.
35414         (lower_catch): Put eh_seq resulting from EH lowering of
35415         the cleanup sequence after the cleanup rather than before it.
35417 2015-02-18  Tom de Vries  <tom@codesourcery.com>
35419         * common.opt (fstdarg-opt): New option.
35420         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
35421         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
35422         (@item -fstdarg-opt): New item.
35424 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
35426         PR target/65064
35427         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
35428         for common symbols.
35430 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
35432         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
35433         insn-modes.h.
35434         (ALL_HOST_OBJS): Add mkoffload.o.
35435         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
35437 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
35439         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
35440         (compare_virtual_tables): Be smarter about skipping typeinfos;
35441         do sane output on virtual table table mismatch.
35442         (warn_odr): Be ready for forward declarations of enums;
35443         output sane info on base mismatch and virtual table mismatch.
35444         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
35445         when only one type is polymorphic.
35446         (get_odr_type): Fix hashtable corruption.
35447         (dump_odr_type): Dump mangled names.
35449 2015-02-18  Richard Biener  <rguenther@suse.de>
35451         PR tree-optimization/65063
35452         * tree-predcom.c (determine_unroll_factor): Return 1 if we
35453         have replaced looparound PHIs.
35455 2015-02-18  Martin Liska  <mliska@suse.cz>
35457         * lto-streamer.c (lto_streamer_init): Encapsulate
35458         streamer_check_handled_ts_structures with checking macro.
35460 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
35462         PR ipa/65087
35463         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
35464         section if !implicit_section.
35465         (cgraph_node::create_version_clone_with_body): Likewise.
35466         * trans-mem.c (ipa_tm_create_version): Likewise.
35468 2015-02-18  Richard Biener  <rguenther@suse.de>
35470         PR tree-optimization/62217
35471         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
35472         into BIVs.
35474 2015-02-18  Marek Polacek  <polacek@redhat.com>
35476         PR sanitizer/65081
35477         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
35478         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
35479         is in range [-16K, -1].  Don't issue run-time error if
35480         (ptr > ptr + offset).
35482 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
35484         * doc/install.texi (nvptx-*-none): New section.
35485         * doc/invoke.texi (Nvidia PTX Options): Likewise.
35486         * config/nvptx/nvptx.opt: Update.
35488         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
35489         (access_check): New functions, copied from
35490         config/i386/intelmic-mkoffload.c.
35491         (main): For non-installed testing, look in all COMPILER_PATHs for
35492         GCC_INSTALL_NAME.
35494         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
35496 2015-02-18  Andrew Pinski  <apinski@cavium.com>
35497             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
35499         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
35500         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
35502 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
35504         * ipa-visibility.c (function_and_variable_visibility): Only
35505         check locality if node is not already local.
35506         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
35507         call_for_symbol_and_aliases instead of
35508         call_for_symbol_thunks_and_aliases.
35509         (ipa_inline): Likewise.
35510         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
35511         first walk aliases.
35512         * ipa.c (symbol_table::remove_unreachable_nodes): Use
35513         call_for_symbol_and_aliases.
35514         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
35515         (ipa_propagate_frequency_1): Use it; use opt_for_fn
35516         (ipa_propagate_frequency): Update.
35517         (ipa_profile): Add opt_for_fn gueards.
35519 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
35521         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
35522         * doc/invoke.texi (SH options): Document it.
35523         * config/sh/sh.c (sh_insn_length_adjustment): Check
35524         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
35526 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
35528         * common.opt (fipa-cp-alignment): New.
35529         * ipa-cp.c (ipcp_store_alignment_results): Check
35530         flag_ipa_cp_alignment.
35531         * opts.c (default_options_table): Enable -fipa-cp-alignment for
35532         -O2.
35533         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
35534         * doc/invoke.texi: Document -fipa-cp-alignment.
35536 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
35538         PR target/64793
35539         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
35540         to nil.  Adjust comments.
35542 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
35544         * ipa-visibility.c (function_and_variable_visibility): Only
35545         check locality if node is not already local.
35546         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
35547         call_for_symbol_and_aliases instead of
35548         call_for_symbol_thunks_and_aliases.
35549         (ipa_inline): Likewise.
35550         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
35551         first walk aliases.
35552         * ipa.c (symbol_table::remove_unreachable_nodes): Use
35553         call_for_symbol_and_aliases.
35554         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
35555         (ipa_propagate_frequency_1): Use it; use opt_for_fn
35556         (ipa_propagate_frequency): Update.
35557         (ipa_profile): Add opt_for_fn guards.
35559 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
35561         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
35562         skipping of "strange" tokens.
35564 2015-02-17  Jeff Law  <law@redhat.com>
35566         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
35567         obsolete comment.
35569 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
35571         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
35572         as forcing a HARD_DEP between instructions, thereby
35573         disallowing rewriting to break dependencies.
35575 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
35577         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
35578         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
35579         variables in boundary that have no inlitalizer encoded and are
35580         not aliases.
35581         * varasm.c (default_binds_local_p_2): External definitions do not
35582         count as definitions here.
35584 2015-02-16  Jeff Law  <law@redhat.com>
35586         PR tree-optimization/64823
35587         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
35588         statements.
35589         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
35590         threading through blocks with PHIs, but no statements.
35591         (thread_through_normal_block): Distinguish between blocks where
35592         we did not process all the statements and blocks with no statements.
35594 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
35595             James Greenhalgh  <james.greenhalgh@arm.com>
35597         PR ipa/64963
35598         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
35599         section if not linkonce.  Fix up formatting.
35600         (cgraph_node::create_version_clone_with_body): Copy section.
35601         * trans-mem.c (ipa_tm_create_version): Likewise.
35603 2015-02-16  Richard Biener  <rguenther@suse.de>
35605         PR tree-optimization/65077
35606         * tree-ssa-structalias.c (get_constraint_for_1): Handle
35607         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
35608         (find_func_aliases): Allow float values to carry pointers again.
35610 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
35612         * doc/install.texi (Specific): Reorder targets list to put
35613         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
35614         from the top menu.
35616 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
35617             David Edelsohn  <dje.gcc@gmail.com>
35619         PR target/65058
35620         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
35621         mapping class to external variable or function reference.
35622         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
35623         mapping class.
35625 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
35627         PR target/53348
35628         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
35629         ASM_WEAKEN_DECL if defined.
35631 2015-02-16  Richard Biener  <rguenther@suse.de>
35633         PR lto/65015
35634         * varasm.c (default_file_start): For LTO produced units
35635         emit <artificial> as file directive.
35637 2015-02-16  Richard Biener  <rguenther@suse.de>
35639         PR tree-optimization/63593
35640         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
35641         stmts and releasing SSA names until...
35642         (execute_pred_commoning): ... after processing all chains.
35644 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
35646         PR ipa/65059
35647         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
35648         external functions.
35650 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
35652         * doc/bugreport.texi: Adjust section titles throughout the file
35653         to use "Title Case".
35654         * doc/extend.texi: Likewise.
35655         * doc/gcov.texi: Likewise.
35656         * doc/implement-c.texi: Likewise.
35657         * doc/implement-cxx.texi: Likewise.
35658         * doc/invoke.texi: Likewise.
35659         * doc/objc.texi: Likewise.
35660         * doc/standards.texi: Likewise.
35661         * doc/trouble.texi: Likewise.
35663 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
35665         * cgraph.h (symtab_node::has_aliases_p): Simplify.
35666         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
35667         * tree.c (lookup_binfo_at_offset): Make static.
35668         (get_binfo_at_offset): Do not shadow offset; add explanatory
35669         comment.
35671 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
35673         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
35674         for all floading point loads and stores except those using a register
35675         index address.
35676         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
35677         to a register.
35679 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
35681         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
35682         (do_estimate_growth_1): Record if any uninlinable edge was seen.
35683         (estimate_growth): Handle uninlinable edges correctly.
35684         (check_callers): New.
35685         (growth_likely_positive): Handle aliases correctly.
35687 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
35689         * ipa-chkp.c: Use iterate_direct_aliases.
35690         * symtab.c (resolution_used_from_other_file_p): Move inline.
35691         (symtab_node::create_reference): Fix formating.
35692         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35693         (symtab_node::iterate_reference): Move inline.
35694         (symtab_node::iterate_referring): Move inline.
35695         (symtab_node::iterate_direct_aliases): Move inline.
35696         (symtab_node::used_from_object_file_p_worker): Inline into ...
35697         (symtab_node::used_from_object_file_p): ... this one; move inline.
35698         (symtab_node::call_for_symbol_and_aliases): Move inline;
35699         use iterate_direct_aliases.
35700         (symtab_node::call_for_symbol_and_aliases_1): New method.
35701         (cgraph_node::call_for_symbol_and_aliases): Move inline;
35702         use iterate_direct_aliases.
35703         (cgraph_node::call_for_symbol_and_aliases_1): New method.
35704         (varpool_node::call_for_node_and_aliases): Rename to ...
35705         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
35706         use iterate_direct_aliases.
35707         (varpool_node::call_for_symbol_and_aliases_1): New method.
35708         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
35709         (ipa_discover_readonly_nonaddressable_var): Update.
35710         * ipa-devirt.c: Fix formating.
35711         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
35712         Move inline.
35713         (cgraph_node::call_for_symbol_and_aliases): Move inline.
35714         (cgraph_node::call_for_symbol_and_aliases_1): New function..
35715         * cgraph.h (used_from_object_file_p_worker): Remove.
35716         (resolution_used_from_other_file_p): Move inline.
35717         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35718         (symtab_node::iterate_reference): Move inline.
35719         (symtab_node::iterate_referring): Move inline.
35720         (symtab_node::iterate_direct_aliases): Move inline.
35721         (symtab_node::used_from_object_file_p_worker): Inline into ...
35722         (symtab_node::used_from_object_file_p): Move inline.
35723         * tree-emutls.c (ipa_lower_emutls): Update.
35724         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
35725         (varpool_node::call_for_node_and_aliases): Remove.
35727 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
35729         PR tree-optimization/62209
35730         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
35731         op == range->exp, insert seq and gimplified code after labels
35732         instead of after the phi.
35734 2015-02-13  Jeff Law  <law@redhat.com>
35736         PR bootstrap/65060
35737         Revert my change for tree-optimization/64823.
35739 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
35741         PR tree-optimization/65053
35742         * tree-ssa-phiopt.c (value_replacement): When moving assign before
35743         cond, either reset VR on lhs or set it to phi result VR.
35745 2015-02-13  Jeff Law  <law@redhat.com>
35747         PR tree-optimization/64823
35748         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
35749         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
35750         threading through blocks with PHIs, but no statements.
35751         (thread_through_normal_block): Distinguish between blocks where
35752         we did not process all the statements and blocks with no statements.
35754         PR rtl-optimization/47477
35755         * match.pd (convert (plus/minus (convert @0) (convert @1): New
35756         simplifier to narrow arithmetic.
35758 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
35760         PR ipa/65028
35761         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
35762         polymorphic call info when type is not known to be preserved.
35764 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
35766         PR ipa/65028
35767         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
35768         (inline_call): Use it.
35770 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
35772         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
35773         GOMP_DEVICE_NVIDIA_PTX.
35775 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
35777         PR ipa/65034
35778         * stmt.c (emit_case_nodes): Use void_type_node instead of
35779         NULL_TREE as LABEL_DECL type.
35781 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
35783         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
35784         constraints.
35785         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
35786         symbolic references to data to be forced to constant memory on the
35787         SOM target.
35789 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
35791         PR tree-optimization/65002
35792         * tree-cfg.c (pass_data_fixup_cfg): Don't update
35793         SSA on start.
35794         * tree-sra.c (some_callers_have_no_vuse_p): New.
35795         (ipa_early_sra): Reject functions whose callers
35796         assume function is read only.
35798 2015-02-13  Richard Biener  <rguenther@suse.de>
35800         PR lto/65015
35801         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
35802         for LTO produced CUs.
35804 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
35806         PR tree-optimization/64705
35807         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
35808         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
35809         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
35810         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
35811         expand_simple_operations.
35813 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
35814             Richard Henderson  <rth@redhat.com>
35816         PR rtl/32219
35817         * cgraphunit.c (cgraph_node::finalize_function): Set definition
35818         before notice_global_symbol.
35819         (varpool_node::finalize_decl): Likewise.
35820         * varasm.c (default_binds_local_p_2): Rename from
35821         default_binds_local_p_1, add weak_dominate argument.  Use direct
35822         returns instead of assigning to local variable.  Unify varpool and
35823         cgraph paths via symtab_node.  Reject undef weak variables before
35824         testing visibility.  Reorder tests for simplicity.
35825         (default_binds_local_p): Use default_binds_local_p_2.
35826         (default_binds_local_p_1): Likewise.
35827         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
35828         via symtab_node.
35829         (default_elf_asm_output_external): Emit visibility when specified.
35831 2015-02-13  Alan Modra  <amodra@gmail.com>
35833         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
35834         code setting up r11 for out-of-line fp restore.
35836 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
35838         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
35839         (muser-mode): Likewise.
35841 2015-02-13  Alan Modra  <amodra@gmail.com>
35843         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
35844         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
35846 2015-02-12  David Howells  <dhowells@redhat.com>
35848         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
35849         warning.
35850         * tree-ssa-uninit.c (dump_predicates): Likewise.
35851         * opts.c (print_filtered_help): Likewise.
35853 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
35855         * dwarf2out.c (output_die): Use "%s", name instead of name to
35856         avoid -Wformat-security warning.
35858         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
35859         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35860         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
35861         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35863 2015-02-12  Jason Merrill  <jason@redhat.com>
35865         * common.opt (-flifetime-dse): New.
35867 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
35869         PR sanitizer/65019
35870         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
35872         PR tree-optimization/65014
35873         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
35874         use original second operand of arg0 or arg1 instead of
35875         that adjusted by STRIP_NOPS.
35877 2015-02-11  Jeff Law  <law@redhat.com>
35879         PR target/63347
35880         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
35881         that needs to be queued, just queue it for a single cycle.
35883 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
35885         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
35886         bodies of thunks; comment on why.
35887         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
35888         symbols are extern.
35890 2015-02-11  Richard Henderson  <rth@redhat.com>
35892         PR sanitize/65000
35893         * tree-eh.c (mark_reachable_handlers): Mark source and destination
35894         regions of __builtin_eh_copy_values.
35896 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
35898         PR middle-end/65003
35899         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
35900         ultimate alias is MEM with SYMBOL_REF satisfying
35901         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
35902         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
35904 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
35906         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
35907         "diagnostic-core.h".
35908         (main): Initialize progname, and call diagnostic_initialize.
35910         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
35911         instead of __OPENMP_TARGET__.
35913         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
35914         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
35915         hard-coding PTX_ID.
35917 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
35919         * doc/sourcebuild.texi (pie_enabled): Document.
35921 2015-02-11  Martin Liska  <mliska@suse.cz>
35923         PR ipa/64813
35924         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
35925         a return value for call to a function that is noreturn.
35927 2015-02-11  Richard Biener  <rguenther@suse.de>
35929         PR lto/65015
35930         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
35931         and -fresolution.
35933 2015-02-11  Andrew Pinski  <apinski@cavium.com>
35935         PR target/64893
35936         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
35937         Change the first argument type to size_type_node and add another
35938         size_type_node.
35939         (aarch64_simd_expand_builtin): Handle the new argument to
35940         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
35941         print an out when the first two arguments are not
35942         nonzero integer constants.
35943         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
35944         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
35946 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
35948         PR target/61925
35949         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
35950         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
35951         (ix86_set_current_function): Rewritten.
35952         (ix86_add_new_builtins): Temporarily clear current_target_pragma
35953         when creating builtin fndecls.
35955 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
35957         PR ipa/65005
35958         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
35959         function.
35960         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
35961         have no comdat group.
35962         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
35963         (lto_output_varpool_node): Always output alias info.
35964         (output_refs): Output refs of boundary aliases, too.
35965         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
35966         (output_symtab): Output call eges in thunks in boundary.
35967         (get_alias_symbol): Remove.
35968         (input_node, input_varpool_node): Do not special case weakrefs.
35969         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
35970         alias and thunks targets in the boundary; do not take removed symbols
35971         from their comdat groups.
35972         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
35973         (cgraph_node::global_info): Remove.
35974         (cgraph_node::rtl_info): Look through aliases and thunks.
35975         * cgrpah.h (global_info): Remove.
35976         (non_local_p): Remove.
35978 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
35979             Sandra Loosemore  <sandra@codesourcery.com>
35981         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
35982         to inline asm.  List dialects in proper order.
35984 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
35985             Sandra Loosemore  <sandra@codesourcery.com>
35987         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
35989 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
35991         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
35992         modified) reference to Solaris.
35994 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
35996         * doc/extend.texi (Extended Asm): Fix typos.
35998 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
36000         PR sanitizer/65004
36001         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
36003 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
36005         PR target/64661
36006         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
36007         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
36008         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
36009         * config/sh/constraints.md (Ara, Add): New constraints.
36010         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
36011         predicates.
36012         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
36013         atomic_mem_operand_0.  Don't use force_reg on the memory address.
36014         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
36015         Sra constraint.  Convert to insn_and_split.  Add workaround for
36016         PR 64974.
36017         (atomic_compare_and_swap<mode>_hard): Copy to
36018         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
36019         Use atomic_mem_operand_0 predicate.
36020         (atomic_compare_and_swap<mode>_soft_gusa,
36021         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
36022         AraAdd constraints.
36023         (atomic_compare_and_swap<mode>_soft_tcb,
36024         atomic_compare_and_swap<mode>_soft_imask,
36025         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
36026         atomic_mem_operand_0 predicate and SraSdd constraints.
36027         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
36028         constraint.
36029         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
36030         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
36031         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
36032         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
36033         force_reg on the memory address.
36034         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
36035         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
36036         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
36037         atomic_mem_operand_1 predicate and Sra constraint.
36038         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
36039         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
36040         Use atomic_mem_operand_1 predicate.
36041         (atomic_<fetchop_name><mode>_hard): Copy to
36042         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
36043         Use atomic_mem_operand_1 predicate.
36044         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
36045         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
36046         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
36047         insn_and_split.  Use atomic_mem_operand_1 predicate.
36048         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
36049         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
36050         Use atomic_mem_operand_1 predicate.
36051         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
36052         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
36053         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
36054         in generated insn with original mem operand before emitting the insn.
36055         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
36056         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
36057         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
36058         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
36059         Use atomic_mem_operand_1 predicate and AraAdd constraints.
36060         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
36061         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
36062         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
36063         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
36064         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
36065         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
36066         atomic_not_fetch<mode>_soft_tcb,
36067         atomic_<fetchop_name>_fetch<mode>_soft_imask,
36068         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
36069         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
36070         Use atomic_mem_operand_1 predicate and SraSdd constraints.
36072 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
36074         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
36075         and 3 earlyclobber operands.
36077 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
36079         * common.opt (fstack-reuse): Mark as optimization.
36081 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
36083         PR ipa/64982
36084         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
36086 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
36088         PR tree-optimization/64326
36089         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
36091 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
36093         PR gcov-profile/61889
36094         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
36096 2015-02-10  Richard Biener  <rguenther@suse.de>
36098         PR tree-optimization/64995
36099         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
36100         value we use is final.
36101         (visit_reference_op_store): Always valueize op.
36102         (visit_use): Properly valueize vuses.
36104 2015-02-10  Richard Biener  <rguenther@suse.de>
36106         PR tree-optimization/64909
36107         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
36108         pass a scalar-stmt count estimate to the cost model.
36109         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
36111 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
36113         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
36114         enabled by default together with var-tracking.
36116 2015-02-10  Nick Clifton  <nickc@redhat.com>
36118         * config/rl78/rl78.c: Remove DIV attribute code accidentally
36119         included in previous rl78 commit.
36121 2015-02-10  Richard Biener  <rguenther@suse.de>
36123         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
36124         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
36125         return the bitpack.
36127 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
36129         PR gcov-profile/61889
36130         * config.in: regenerate.
36131         * configure.in: Likewise.
36132         * configure.ac: Check for ftw.h.
36133         * gcov-tool.c: Check for ftw.h before using nftw.
36135 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
36137         PR lto/64076
36138         * ipa-visibility.c (update_visibility_by_resolution_info): Only
36139         assert when not in lto mode.
36141 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
36143         * ira-color.c (setup_left_conflict_sizes_p): Simplify
36144         initialization/assignment of conflict_size.
36146 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
36148         PR ipa/64978
36149         * ipa-cp.c (gather_caller_stats): Skip thunks.
36150         (propagate_constants_topo): Skip aliases.
36152 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
36154         PR target/64761
36155         * config/sh/sh.c (sh_option_override): Don't change
36156         -freorder-blocks-and-partition to -freorder-blocks even when
36157         unwinding is enabled.
36158         (sh_can_follow_jump): Return false if the followee jump is
36159         a crossing jump when -freorder-blocks-and-partition is specified.
36160         * config/sh/sh.md (*jump_compact_crossing): New insn.
36162 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
36163             Kaz Kojima  <kkojima@gcc.gnu.org>
36165         PR target/64761
36166         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
36167         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
36168         (sh_can_redirect_branch): Rename to ...
36169         (sh_can_follow_jump): ... this.  Constify argument types.
36170         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
36171         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
36172         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
36173         * doc/tm.texi: Regenerate.
36175 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
36177         PR sanitizer/64981
36178         * builtins.c (expand_builtin): Call targetm.expand_builtin
36179         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
36181 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36183         PR ipa/61548
36184         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
36186 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36188         PR ipa/63566
36189         * ipa-icf.c (set_local): New function.
36190         (sem_function::merge): Use it.
36192 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36194         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
36195         (add_type_duplicate): Fix comparison of BINFOs.
36197 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36199         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
36200         on getting VOID pointer.
36202 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
36204         PR target/64979
36205         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
36206         va_list escapes.
36208 2015-02-09  Richard Biener  <rguenther@suse.de>
36210         * genmatch.c (replace_id): Copy expr_type.
36212 2015-02-09  Richard Biener  <rguenther@suse.de>
36214         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
36215         (streamer_write_tree_bitfields): Declare.
36216         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
36217         properly unpack padding.
36218         (unpack_value_fields): Inline ...
36219         (streamer_read_tree_bitfields): ... here.
36220         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
36221         and properly add padding bits.
36222         (streamer_pack_tree_bitfields): Fold into ...
36223         (streamer_write_tree_bitfields): ... this new function,
36224         exposing the bitpack object.
36225         * lto-streamer-out.c (lto_write_tree_1): Call
36226         streamer_write_tree_bitfields.
36228 2015-02-09  Richard Biener  <rguenther@suse.de>
36230         PR tree-optimization/54000
36231         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
36232         (struct ivopts_data): Add loop_loc member.
36233         (tree_ssa_iv_optimize_loop): Dump loop location.
36234         (create_new_ivs): Likewise, also dump number of IVs generated.
36236 2015-02-09  Martin Liska  <mliska@suse.cz>
36238         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
36239         just if not yet registered.
36240         (ipa_icf_generate_summary): Register callgraph hooks.
36242 2015-02-08  Andrew Pinski  <apinski@cavium.com>
36244         * config/aarch64/aarch64.c (gty_dummy): Delete.
36246 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36248         PR ipa/63566
36249         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
36250         (cgraph_node::local_p): Remove thunk related FIXME.
36252 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36254         PR ipa/63566
36255         * i386.c (ix86_function_regparm): Look through aliases to see if callee
36256         is local and optimized.
36257         (ix86_function_sseregparm): Likewise; also use target's SSE math
36258         settings; error out instead of silently generating wrong code
36259         on mismatches.
36260         (init_cumulative_args): Look through aliases.
36262 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36264         PR ipa/63566
36265         * ipa-split.c (execute_split_functions): Split if function has aliases.
36267 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36269         PR ipa/63566
36270         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
36271         aliases before trying to expand it.
36272         (cgraph_node::expand_thunk): Fix formating.
36274 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
36276         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
36277         (Using Assembly Language with C): Expand introduction.
36278         (Basic Asm): Copy-edit.  Add more information about uses of
36279         basic asm.
36280         (Extended Asm): Copy-edit.  Document new escape syntax and
36281         %l[label] syntax.
36282         (Global Reg Vars): Copy-edit.
36283         (Local Reg Vars): Likewise.
36285 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
36287         PR debug/2714
36288         PR bootstrap/64256
36289         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
36290         (DBX_CONTIN_CHAR): Define.
36292 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
36293             Brian Rzycki  <b.rzycki@samsung.com>
36295         PR tree-optimization/64878
36296         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
36297         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
36298         Stop recursion at loop phi nodes after having visited a loop phi node.
36300 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
36302         * toplev.c (process_options): Change flag_ipa_ra before creating
36303         optimization_{default,current}_node.
36305         PR ipa/64896
36306         * cgraphunit.c (cgraph_node::expand_thunk): If
36307         restype is not is_gimple_reg_type nor the thunk_fndecl
36308         returns aggregate_value_p, set restmp to a temporary variable
36309         instead of resdecl.
36311 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
36313         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
36315 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
36317         PR target/64205
36318         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
36319         add a general secondary reload handler for SDmode, unless we have
36320         both read/write support for SDmode.
36322 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
36324         PR middle-end/64937
36325         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
36326         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
36327         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
36328         1 before, push it to abstract_vec.
36329         (dwarf2out_abstract_function): Adjust caller.  Don't call
36330         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
36331         DECL_ABSTRACT_P flags for all abstract_vec elts.
36333 2015-02-06  Renlin Li  <renlin.li@arm.com>
36335         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
36336         complex gimple.
36337         * tree-ssa.c (execute_update_addresses_taken): Likewise.
36339 2015-02-06  Jeff Law  <law@redhat.com>
36341         PR target/64889
36342         * config/h8300/h8300.c (push): New argument "in_prologue".
36343         Pass "in_prologue" along to "F".
36344         (h8300_push_pop): Corresponding changes.
36345         (h8300_expand_prologue): Likewise.
36346         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
36348 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
36350         PR rtl-optimization/64957
36351         PR debug/64817
36352         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
36353         IOR rather than for AND.
36355 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
36357         PR target/62631
36358         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
36359         of shift-add and (add + shift) operations.  Rename local variable.
36361 2015-02-05  Jeff Law  <law@redhat.com>
36363         PR target/17306
36364         * config/h8300/constraints.md (U): Correctly dectect
36365         "eightbit_data" memory addresses.
36366         * config/h8300/h8300.c (eightbit_constant_address_p): Also
36367         handle (const (plus (symbol_ref (x)))) where x is declared
36368         as an 8-bit data memory address.
36369         * config/h8300/h8300.md (call, call_value): Correctly detect
36370         "funcvec" functions.
36372         PR target/43264
36373         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
36374         24 to 28 bits for the H8/300.
36376 2015-02-06  Alan Modra  <amodra@gmail.com>
36378         PR target/64876
36379         * config/rs6000/rs6000.c (chain_already_loaded): New function.
36380         (rs6000_call_aix): Use it.
36382 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
36384         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
36385         check.
36387 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
36389         * config/h8300/constraints.md ("U" constraint): Use strict
36390         variant of REG_OK_FOR_BASE_P after reload has started.
36392 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
36394         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
36395         define to zero if !TARGET_NEON.
36396         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
36398 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36399             Trevor Saunders  <tsaunders@mozilla.com>
36401         PR ipa/61548
36402         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
36404 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36406         PR ipa/61548
36407         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
36408         when removing varpool nodes.
36410 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36412         PR ipa/61548
36413         * varpool.c (varpool_node::remove): Fix order of variables.
36415 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36417         PR ipa/64686
36418         * ipa-inline.c (inline_small_functions): Fix ordering issue between
36419         speculation resolution and key updates.
36421 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36423         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
36424         about not letting any speculative edges unupdated.
36426 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36428         PR gcov/64123
36429         * gcov-io.c (gcov_var): Export.
36431 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36433         PR middle-end/64922
36434         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
36435         edges that become speculative.
36437 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
36439         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
36440         or DW_LANG_Fortran08.
36441         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
36442         DW_LANG_Fortran08.
36443         (gen_compile_unit_die): Handle "GNU Fortran2003" and
36444         "GNU Fortran2008" language strings.
36445         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
36446         * langhooks.h (lang_GNU_Fortran): New prototype.
36447         * langhooks.c (lang_GNU_Fortran): New function.
36448         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
36449         lang_GNU_Fortran.
36451 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
36453         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
36454         (RTX_OK_FOR_OLO10_P): Likewise.
36456 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
36458         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
36460 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36462         PR middle-end/64922
36463         * gimple.c: Include gimple-ssa.h.
36464         (maybe_remove_unused_call_args): New function.
36465         * gimple.h (maybe_remove_unused_call_args): Declare.
36466         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
36467         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
36468         * gimple-fold.c (gimple_fold_call): Likewise.
36470 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
36472         PR rtl-optimization/64905
36473         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
36474         pointer alignment if it isn't needed.
36476 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
36478         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
36479         cortex-a72.cortex-a53.
36480         * config/aarch64/aarch64-tune.md: Regenerate.
36481         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
36483 2015-02-04  Nick Clifton  <nickc@redhat.com>
36485         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
36486         inside a MEM.
36488 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
36490         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
36491         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
36492         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
36493         of DEF_BUILTIN.
36494         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
36495         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
36496         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
36497         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
36498         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
36499         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
36500         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
36501         * tree-core.h (enum built_in_function): In between
36502         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
36503         for builtins that use DEF_BUILTIN_CHKP macro.
36505 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
36507         PR debug/64817
36508         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
36509         operands for tcc_comparison exprs.  Fix typos.
36511         PR debug/64817
36512         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
36513         of two XORs that have an intervening AND or IOR.
36515         PR debug/64817
36516         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
36517         simplification of XOR of AND to not allocate new rtx before
36518         committing to a simplification.
36520 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36522         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
36523         manual swaps in all peepholes.
36525 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36527         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
36528         of manual swapping implementation.
36529         (aarch64_expand_vec_perm_const_1): Likewise.
36531 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
36533         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
36534         (generic_addrcost_table): Remove NAMED_PARAM.
36535         (cortexa57_addrcost_table): Likewise.
36536         (xgene1_addrcost_table): Likewise.
36537         (generic_regmove_table): Likewise.
36538         (cortexa53_regmove_table): Likewise.
36539         (xgene1_regmove_table): Likewise.
36540         (generic_vector_table): Likewise.
36541         (cortexa57_vector_table): Likewise.
36542         (xgene1_vector_table): Likewise.
36543         (generic_tunings): Likewise.
36544         (cortexa53_tunings): Likewise.
36545         (cortexa57_tunings): Likewise.
36546         (xgene1_tunings): Likewise.
36548 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
36550         * config/arm/arm-cores.def: Add cortex-a72 and
36551         cortex-a72.cortex-a53.
36552         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
36553         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
36554         * config/arm/arm-tune.md: Regenerate.
36555         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
36556         "cortex-a72.cortex-a53".
36557         * doc/invoke.texi (ARM Options/-mtune): Likewise.
36559 2015-02-04  Nick Clifton  <nickc@redhat.com>
36561         PR target/64408
36562         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
36563         of accepted codes.
36564         (nonimmediate_di_operand): Likewise.
36566         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
36567         prefixes of known F5 using MSP430 MCUs.
36569 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36571         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
36572         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
36573         instead of __builtin_sqrt.
36575 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
36577         * varasm.c (do_assemble_alias): Follow transparent alias
36578         chain for target.
36579         (default_assemble_visibility): Follow transparent alias
36580         chain for decl name.
36582 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36584         PR middle-end/62103
36585         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
36586         to compute size of referenced value in the constant case.
36588 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
36590         PR rtl-optimization/64756
36591         * cse.c (invalidate_dest): New function.
36592         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
36593         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
36594         invalidate and do not record it.
36596 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
36598         PR target/64660
36599         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
36600         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
36601         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
36602         atomic_nand<mode>_soft_tcb): New insns.
36603         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
36604         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
36605         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
36606         Split into atomic_not_fetchsi_hard if operands[0] is unused.
36607         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
36608         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
36609         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
36610         atomic_not<mode>_hard if operands[0] is unused.
36611         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
36612         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
36613         if operands[0] is unused.
36614         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
36615         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
36616         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
36617         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36618         unused.
36619         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
36620         into atomic_not<mode>_soft_tcb if operands[0] is unused.
36621         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
36622         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
36623         if operands[0] is unused.
36624         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
36625         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
36626         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
36627         atomic_nand_fetchsi_hard if operands[0] is unused.
36628         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
36629         atomic_nand<mode>_hard if operands[0] is unused.
36630         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
36631         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
36632         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
36633         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36634         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
36635         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
36636         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
36637         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
36638         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
36639         atomic_not<mode>_hard if operands[0] is unused.
36640         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
36641         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36642         unused.
36643         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
36644         into atomic_not<mode>_soft_tcb if operands[0] is unused.
36645         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
36646         atomic_nand<mode>_hard if operands[0] is unused.
36647         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
36648         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36650 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
36652         PR jit/64810
36653         * Makefile.in (GCC_OBJS): Add gcc-main.o.
36654         * gcc-main.c: New file, containing "main" taken from gcc.c.
36655         * gcc.c (do_self_spec): Free decoded_options.
36656         (class driver): Move declaration to gcc.h.
36657         (main): Move declaration and implementation to new file
36658         gcc-main.c.
36659         (driver_get_configure_time_options): New function.
36660         * gcc.h (class driver): Move this declaration here, from
36661         gcc.c.
36662         (driver_get_configure_time_options): New declaration.
36664 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
36666         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
36667         cross-module inlining.
36668         * cgraph.h (cgraph_node): Add flag merged.
36669         * ipa-icf.c (sem_function::merge): Maintain it.
36671 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
36673         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
36674         instead of OBJECT_P.
36676 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
36678         PR target/62631
36679         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
36680         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
36681         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
36682         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
36684 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
36686         PR other/63504
36687         * combine.c (reg_n_sets_max): New variable.
36688         (can_change_dest_mode, reg_nonzero_bits_for_combine,
36689         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
36690         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
36691         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
36692         (rest_of_handle_combine): Initialize reg_n_sets_max.
36694 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
36696         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
36697         if some always_inline was inlined, apply changes before inlining
36698         heuristically.
36700 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
36702         PR jit/64810
36703         * config/arm/arm.c (arm_option_override): Set
36704         arm_selected_arch/cpu/tune to NULL on entry.
36706 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
36707             Andrew Pinski  <pinskia@gcc.gnu.org>
36708             Jakub Jelinek  <jakub@gcc.gnu.org>
36710         PR target/64231
36711         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
36712         integer typing for small model. Use IN_RANGE.
36714 2015-02-02  Richard Biener  <rguenther@suse.de>
36716         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
36717         * tree-vrp.c (vrp_valueize_1): Likewise.
36719 2015-02-02  Alan Modra  <amodra@gmail.com>
36721         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
36722         than mem for toc_restore.
36723         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
36724         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
36725         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
36727 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
36729         PR target/64047
36730         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
36731         explicit default options.
36733 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
36735         PR ipa/64872
36736         * ipa-utils.c (ipa_merge_profiles): Add release argument.
36737         * ipa-icf.c (sem_function::merge): Do not release body when merging.
36738         * ipa-utils.h (ipa_merge_profiles): Update prototype.
36740 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
36742         PR debug/64817
36743         * cfgexpand.c (deep_ter_debug_map): New variable.
36744         (avoid_deep_ter_for_debug): New function.
36745         (expand_debug_expr): If TERed SSA_NAME is in
36746         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
36747         instead of trying to expand SSA_NAME's def stmt.
36748         (expand_debug_locations): When expanding debug bind
36749         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
36750         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
36751         value.
36752         (pass_expand::execute): Call avoid_deep_ter_for_debug on
36753         all debug bind stmts.  Delete deep_ter_debug_map after
36754         expand_debug_location if non-NULL and clear it.
36756 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
36758         PR target/64851
36759         * config/sh/sync.md (atomic_fetch_notsi_hard,
36760         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
36761         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
36762         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
36763         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
36764         atomic_not_fetch<mode>_soft_imask): New insns.
36766 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36768         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
36769         (rank_for_schedule_debug): Split from ...
36770         (rank_for_schedule): ... this.
36771         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
36772         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
36774 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
36776         * doc/md.texi (Machine Constraints): Alphabetize table by target.
36777         * doc/extend.texi (x86 Variable Attributes): Move section to
36778         correct alphabetization after renaming.
36779         (x86 Type Attributes): Likewise.
36780         (Target Builtins): Re-alphabetize menu.
36781         (x86 Built-in Functions): Move section to correct alphabetization
36782         after renaming.
36783         (x86 transactional memory intrinsics): Likewise.
36784         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
36785         and x86 Windows Options in table and menu.
36786         (x86 Options): Move section to correct alphabetization after
36787         renaming.
36788         (x86 Windows Options): Likewise.
36790 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
36792         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
36793         preferred names of the architecture and its 32- and 64-bit
36794         variants.
36795         * doc/invoke.texi: Likewise.
36796         * doc/md.texi: Likewise.
36798 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
36800         PR target/64882
36801         * config/i386/predicates.md (address_no_seg_operand): Reject
36802         non-CONST_INT_P operands in invalid mode.
36804 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
36806         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
36807         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
36808         * config/i386/predicates.md (address_no_seg_operand): Call
36809         address_operand with VOIDmode.
36810         (vsib_address_operand): Ditto.
36811         (address_mpx_no_base_operand): Ditto.
36812         (address_mpx_no_index_operand): Ditto.
36814 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
36816         PR target/64688
36817         * lra-constraints.c (original_subreg_reg_mode): New.
36818         (simplify_operand_subreg): Try to simplify subreg of const.  Use
36819         original_subreg_reg_mode for it.
36820         (swap_operands): Update original_subreg_reg_mode.
36821         (curr_insn_transform): Set up original_subreg_reg_mode.
36823 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
36825         PR target/64617
36826         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
36827         function.
36828         (process_alt_operands): Use it.
36829         (curr_insn_transform): Check the optional reload pseudo class is
36830         ok for the mode.
36832 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
36834         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
36835         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
36836         prototype.
36837         * toplev.h (init_asm_output): Update comment on use of
36838         UNKNOWN_LOCATION with fatal_error.
36839         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
36840         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
36841         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
36842         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
36843         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
36844         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
36845         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
36846         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
36847         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
36848         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
36849         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
36850         fatal_error changed to pass input_location as first argument.
36852 2015-01-30  Martin Liska  <mliska@suse.cz>
36854         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
36855         in #pragma GCC diagnostic guards.
36857 2015-01-30  Richard Biener  <rguenther@suse.de>
36859         PR tree-optimization/64829
36860         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
36861         not add a widening conversion pattern but hand off extra
36862         widenings to callers.
36863         (vect_recog_widen_mult_pattern): Handle extra widening produced
36864         by vect_handle_widen_op_by_const.
36865         (vect_recog_widen_shift_pattern): Likewise.
36866         (vect_pattern_recog_1): Remove excess vertical space in dumping.
36867         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
36868         (vect_init_vector_1): Likewise.
36869         (vect_get_vec_def_for_operand): Likewise.
36870         (vect_finish_stmt_generation): Likewise.
36871         (vectorizable_load): Likewise.
36872         (vect_analyze_stmt): Likewise.
36873         (vect_is_simple_use): Likewise.
36875 2015-01-29  Jeff Law  <law@redhat.com>
36877         * combine.c (try_combine): Fix typo in comment.
36879 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
36881         PR target/64580
36882         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
36883         (rs6000_stack_info): Add assert.
36884         (rs6000_output_savres_externs): New function, split off from...
36885         (rs6000_output_function_prologue): ... here.  Do not call it for
36886         thunks.
36888 2015-01-29  Jeff Law  <law@redhat.com>
36890         PR target/15184
36891         * combine.c (try_combine): If I0 is a memory load and I3 a store
36892         to a related address, increase the "goodness" of doing a 4-insn
36893         combination with I0-I3.
36894         (make_field_assignment): Handle SUBREGs in the ior+and case.
36896 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
36898         PR tree-optimization/64746
36899         * tree-if-conv.c (mask_exists): New function.
36900         (predicate_mem_writes): Save created mask with given size for further
36901         use.
36902         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
36903         (ifcvt_repair_bool_pattern): Collect all statements that are root
36904         of bool pattern and use iterative algorithm to remove multiple uses
36905         of predicates, display number of required iterations.
36907 2015-01-29  Richard Biener  <rguenther@suse.de>
36909         PR tree-optimization/64853
36910         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
36911         stmt will get simulated again.
36912         * tree-ssa-ccp.c (valueize_op_1): Likewise.
36914 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36916         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
36917         return_in_pc.  Remove redundant assignments.
36918         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
36919         (arm_expand_epilogue): Don't compare boolean with true in if condition.
36921 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
36923         * config/i386/i386.c (ix86_mode_after): Make static.
36925 2015-01-29  Richard Biener  <rguenther@suse.de>
36927         PR tree-optimization/64844
36928         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
36929         dump cost model analysis.
36930         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
36931         Do not register adjusted load/store costs here.
36933 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
36934             Uros Bizjak  <ubizjak@gmail.com>
36936         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
36937         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
36938         using x86_use_pseudo_pic_reg.
36939         * config/i386/i386.c (ix86_conditional_register_usage): Remove
36940         support for fixed PIC register.
36941         (ix86_use_pseudo_pic_reg): Not static any more.
36943 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
36945         PR middle-end/64805
36946         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
36947         to avoid error in cgraph node verification.
36949 2015-01-29  Marek Polacek  <polacek@redhat.com>
36951         * doc/standards.texi: Reflect that the default for C is gnu11.
36953 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
36955         PR target/64761
36956         * reorg.c (switch_text_sections_between_p): New function.
36957         (relax_delay_slots): Call it when testing if the jump insn
36958         is removable.  Use targetm.can_follow_jump when testing if
36959         the conditional branch can follow an unconditional jump.
36961 2015-01-27  Caroline Tice  <cmtice@google.com>
36963         Committing VTV Cywin/Ming patch for Patrick Wollgast
36964         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
36965         if -fvtable-verify=preinit/std is used.
36966         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
36967         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
36968         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
36969         if -fvtable-verify=preinit/std is used.
36970         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
36971         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
36972         if -fvtable-verify=preinit/std is used.
36973         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
36974         * config/i386/mingw32.h (LIB_SPEC): Likewise.
36975         * varasm.c (assemble_variable): Add code to properly set the comdat
36976         section and name for the .vtable_map_vars section in case the
36977         target is PE or COFF.
36979 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
36981         PR ipa/64801
36982         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
36983         make sane BB profile.
36984         (cgraph_node::expand_thunk): Make sane BB profile.
36985         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
36986         * cgraph.h (init_lowered_empty_function): Update prototype.
36987         * config/i386/i386.c (make_resolver_func): Update call.
36988         * predict.c (gate): Disable branch prediction pass if
36989         profile is already there.
36991 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
36993         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
36994         * opth-gen.awk: Likewise.
36995         * common.opt: Mark flag_fp_contract_mode as Optimization.
36997 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36999         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
37000         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
37002 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
37004         PR target/64659
37005         * config/sh/predicates.md (atomic_arith_operand,
37006         atomic_logical_operand): Remove.
37007         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
37008         (atomic_arith_operand_0): New predicate.
37009         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
37010         Use atomic_arith_operand_0 for input values.
37011         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
37012         atomic_compare_and_swap<mode>_soft_gusa,
37013         atomic_compare_and_swap<mode>_soft_tcb,
37014         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
37015         arith_reg_operand instead of register_operand.
37016         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
37017         atomic_arith_operand_0 for newval input.
37018         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
37019         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
37020         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
37021         arith_reg_operand instead of register_operand.
37022         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
37023         fetchop_predicate_1, fetchop_constraint_1_llcs,
37024         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
37025         fetchop_constraint_1_imask): New code iterator attributes.
37026         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
37027         register_operand.  Use fetchop_predicate_1.
37028         (atomic_fetch_<fetchop_name>si_hard,
37029         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
37030         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
37031         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
37032         and arith_reg_operand instead of register_operand.  Use
37033         fetchop_predicate_1, fetchop_constraint_1_gusa.
37034         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
37035         and arith_reg_operand instead of register_operand.  Use
37036         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
37037         to allow R0 usage.
37038         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
37039         and arith_reg_operand instead of register_operand.  Use
37040         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
37041         to allow R0 usage.
37042         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
37043         register_operand.  Use atomic_logical_operand_1.
37044         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
37045         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
37046         arith_reg_operand instead of register_operand.
37047         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
37048         Use arith_reg_dest and arith_reg_operand instead of register_operand.
37049         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
37050         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
37051         register_operand.  Use fetchop_predicate_1.
37052         (atomic_<fetchop_name>_fetchsi_hard,
37053         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
37054         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
37055         fetchop_constraint_1_llcs.
37056         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
37057         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
37058         fetchop_constraint_1_gusa.
37059         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
37060         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
37061         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
37062         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
37063         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
37064         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
37065         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
37066         register_operand.  Use atomic_logical_operand_1.
37067         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
37068         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
37069         arith_reg_operand instead of register_operand.
37070         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
37071         arith_reg_operand instead of register_operand.  Use logical_operand
37072         and K08.  Adjust asm sequence to allow R0 usage.
37073         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
37074         arith_reg_operand instead of register_operand.  Use logical_operand
37075         and K08.
37077 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
37079         PR other/63504
37080         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
37081         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
37082         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
37083         only get_full_len HOST_WIDE_INTs from get_val () array rather than
37084         all bits in *val_wide.
37086 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
37088         * varpool.c (tls_model_names): Fix names.
37089         (varpool_node::dump): Dump tls- prefix for tls models.
37091 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
37092             Bernd Schmidt  <bernds@codesourcery.com>
37093             Nathan Sidwell  <nathan@codesourcery.com>
37095         * config/nvptx/mkoffload.c: New file.
37096         * config/nvptx/t-nvptx: Add build rules for it.
37097         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
37098         (extra_programs): Add mkoffload.
37099         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
37100         function.
37101         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
37103 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
37105         PR middle-end/64809
37106         * cfgexpand.c (reorder_operands): Skip debug gimples.
37108 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
37110         PR tree-optimization/64277
37111         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
37112         range info when possible to refine estimation.
37114 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37116         PR tree-optimization/64718
37117         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
37118         be a 16bit unsigned integer when n->range is 16.
37119         (bswap_replace): Convert src to that type if necessary for all bswap
37120         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
37121         set in pass_optimize_bswap::execute ().
37123 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
37125         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
37126         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
37127         integer and floating point variants.
37128         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
37130 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
37132         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
37133         for all vector modes.
37135 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
37137         PR bootstrap/64612
37138         * doc/sourcebuild.texi (comdat_group): Document.
37140 2015-01-28  Terry Guo  <terry.guo@arm.com>
37142         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
37144 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
37146         * toplev.c (print_version): Add param "show_global_state", and
37147         only print GGC and plugin information if it is true.
37148         (init_asm_output): Pass in "true" for the new param when calling
37149         print_version.
37150         (process_options): Likewise.
37151         (toplev::main): Likewise.
37152         * toplev.h (print_version): Add new param to decl.
37154 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
37156         PR ipa/60871
37157         PR ipa/64139
37158         * tree.c (lookup_binfo_at_offset): New function.
37159         (get_binfo_at_offset): Use it.
37161 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
37163         PR ipa/64282
37164         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
37165         on vtable being vtable.
37167 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
37169         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
37170         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
37171         -mhotpatch= option.
37172         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
37173         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
37174         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
37175         Renamed.
37176         (s390_hotpatch_trampoline_halfwords_max): Renamed.
37177         (s390_hotpatch_hw_max): New name.
37178         (s390_hotpatch_trampoline_halfwords): Renamed.
37179         (s390_hotpatch_hw_before_label): New name.
37180         (get_hotpatch_attribute): Removed.
37181         (s390_hotpatch_hw_after_label): New name.
37182         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
37183         attribute.
37184         (s390_attribute_table): Ditto.
37185         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
37186         (s390_function_num_hotpatch_hw): New name.
37187         Remove special handling of inline functions and hotpatching.
37188         Return number of nops before and after the function label.
37189         (s390_can_inline_p): Removed.
37190         (s390_asm_output_function_label): Emit a configurable number of nops
37191         after the function label.
37192         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
37193         (TARGET_CAN_INLINE_P) Removed.
37194         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
37196 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37197             Jiong Wang  <jiong.wang@arm.com>
37199         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
37200         of scratch reg.
37201         (cb<optab><mode>1): Likewise.
37202         * config/aarch64/iterators.md (bcond): New define_code_attr.
37204 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37206         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
37207         memory accesses.
37209 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37211         * config/s390/s390.c (s390_register_move_cost): Increase costs for
37212         FPR->GPR moves.
37214 2015-01-27  Richard Biener  <rguenther@suse.de>
37216         * tree-vrp.c (update_value_range): Intersect the range with
37217         old recorded SSA name range information.
37219 2015-01-27  Nick Clifton  <nickc@redhat.com>
37221         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
37222         BC, DE and HL registers directly, not via AX.
37223         When decrementing the stack pointer by a large amount, transfer SP
37224         into AX and perform the subtraction there.
37225         (rl78_expand_epilogue): Perform the inverse of the above
37226         enhancements.
37228 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37230         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
37232 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
37233             Yury Gribov  <y.gribov@samsung.com>
37235         PR ubsan/64741
37236         * ubsan.c (ubsan_source_location): Refactor code.
37237         (ubsan_type_descriptor): Update type size. Refactor code.
37239 2015-01-27  Richard Biener  <rguenther@suse.de>
37241         PR tree-optimization/56273
37242         PR tree-optimization/59124
37243         PR tree-optimization/64277
37244         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
37245         from the first VRP pass.
37247 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
37249         PR ipa/64776
37250         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
37251         handle the first argument in the same loop as all the other arguments.
37253         PR rtl-optimization/61058
37254         * jump.c (cleanup_barriers): Update basic block boundaries
37255         if BLOCK_FOR_INSN is non-NULL on PREV.
37257 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
37259         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
37260         bounds narrowing, already instrumented calls and calls to
37261         not instrumentable functions.
37263 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
37265         PR tree-optimization/64807
37266         * wide-int.cc (wi::divmod_internal): Clear
37267         b_dividend[dividend_blocks_needed].
37269 2015-01-26  DJ Delorie  <dj@redhat.com>
37271         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
37272         volatile memory references.
37274 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
37276         PR target/49263
37277         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
37278         remove_insn.
37279         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
37280         shifts if it already fits into K08.
37282 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
37284         PR ipa/64730
37285         * ipa-inline.c (inline_small_functions): Print "unknown" even
37286         if edge->call_stmt is non-NULL, but has builtins or unknown
37287         location.
37289         PR middle-end/64421
37290         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
37291         with asterisk, skip the first character.
37293 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
37295         PR target/64806
37296         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
37297         order change.
37299 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
37301         PR target/64795
37302         * config/i386/i386.md (*movdi_internal): Also check operand 0
37303         to determine TYPE_LEA operand.
37304         (*movsi_internal): Ditto.
37306 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
37308         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
37309         OPTION_MASK_QUAD_MEMORY_ATOMIC.
37311 2015-01-26  Renlin Li  <renlin.li@arm.com>
37313         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
37314         the comment.
37315         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
37316         for higher part.
37318 2015-01-26  Richard Biener  <rguenther@suse.de>
37320         PR middle-end/64764
37321         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
37322         combining two BIT_AND_EXPR predicates.
37324 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
37326         PR bootstrap/64754
37327         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
37329 2015-01-26  Terry Guo  <terry.guo@arm.com>
37331         * config/arm/arm.c (arm_file_start): Update the assignment of
37332         Tag_ABI_HardFP_use.
37334 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
37336         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
37337         pipeline model.
37338         config/arm/arm.md: Include the new Cortex-A57 model.
37339         (generic_sched): Don't use generic_sched when tuning for
37340         Cortex-A57.
37342 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
37343             Uros Bizjak  <ubizjak@gmail.com>
37345         * config/i386/i386.c (get_builtin_code_for_version): Add
37346         support for BMI and BMI2 multiversion functions.
37348 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
37350         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
37351         (extract_bit_field): Likewise.
37352         (extract_low_bits): Likewise.
37353         (expand_mult): Likewise.
37354         (expand_mult_highpart_adjust): Likewise.
37356 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
37358         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
37359         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
37360         * config/i386/i386.c (processor_model): Add
37361         M_INTEL_COREI7_BROADWELL.
37362         (arch_names_table): Add "broadwell".
37364 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
37366         PR target/49263
37367         PR target/53987
37368         PR target/64345
37369         PR target/59533
37370         PR target/52933
37371         PR target/54236
37372         PR target/51244
37373         * config/sh/sh-protos.h
37374         (sh_extending_set_of_reg::can_use_as_unextended_reg,
37375         sh_extending_set_of_reg::use_as_unextended_reg,
37376         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
37377         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
37378         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
37379         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
37380         (sh_treg_insns): New class.
37381         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
37382         (scope_counter): New class.
37383         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
37384         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
37385         sh_extending_set_of_reg::can_use_as_unextended_reg,
37386         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
37387         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
37388         sh_split_treg_set_expr): New functions.
37389         (addsubcosts): Handle treg_set_expr.
37390         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
37391         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
37392         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
37393         (sh_insn_operands_modified_between_p): Make non-static.
37394         * config/sh/predicates.md (zero_extend_movu_operand): Allow
37395         simple_mem_operand in addition to displacement_mem_operand.
37396         (zero_extend_operand): Don't allow zero_extend_movu_operand.
37397         (treg_set_expr, treg_set_expr_not_const01,
37398         arith_reg_or_treg_set_expr): New predicates.
37399         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
37400         arith_or_int_operand instead of logical_operand.  Convert to
37401         insn_and_split.  Try to optimize constant operand in splitter.
37402         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
37403         (*tstqi_t_zero): Delete.
37404         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
37405         (tstsi_t_and_not): Delete.
37406         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
37407         Convert to insn_and_split.
37408         (unnamed split, tstsi_t_zero_extract_xor,
37409         tstsi_t_zero_extract_subreg_xor_little,
37410         tstsi_t_zero_extract_subreg_xor_big): Delete.
37411         (*tstsi_t_shift_mask): New insn_and_split.
37412         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
37413         to recombine with surrounding insns when splitting.
37414         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
37415         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
37416         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
37417         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
37418         (*cbranch_div0s: Delete.
37419         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
37420         Try to recombine with surrounding insns when splitting.  Add operand
37421         order variants.
37422         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
37423         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
37424         *addc_r_r_msb, *addc_2r_msb): Delete.
37425         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
37426         order variant.
37427         (*addc_negreg_t): New insn_and_split.
37428         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
37429         Try to recombine with surrounding insns when splitting.
37430         Add operand order variants.
37431         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
37432         insn_and_split patterns.
37433         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
37434         surrounding insns when splitting.
37435         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
37436         (*rotcl): Likewise.  Add zero_extract variant.
37437         (*ashrsi2_31): New insn_and_split.
37438         (*negc): Convert to insn_and_split.  Use treg_set_expr.
37439         (*zero_extend<mode>si2_disp_mem): Update comment.
37440         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
37441         condition.
37442         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
37443         with surrounding insns when splitting.
37444         (any_treg_expr_to_reg): New insn_and_split.
37445         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
37446         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
37447         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
37448         *zero_extract_2): New single bit zero extract patterns.
37449         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
37450         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
37451         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
37452         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
37453         set destination.
37454         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
37455         register_operand for set source.
37457 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
37459         * i386.opt (prefetch_sse): New targetsave.
37460         * i386.c (ix86_function_specific_save): Save prefetch_sse.
37461         (ix86_function_specific_restore): Restore prefetch_sse and initialize
37462         ix86_cost/ix86_tune_cost.
37464 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
37466         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
37467         Support the JIT by using 0 as the language type.
37469 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
37471         PR target/64317
37472         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
37473         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
37474         (mark_regno_live, process_bb_lives): Pass new parameter value to
37475         make_hard_regno_born.
37477 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
37479         PR rtl-optimization/63637
37480         PR rtl-optimization/60663
37481         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
37482         if elt->cost is MAX_COST for ASM_OPERANDS.
37483         (find_sets_in_insn): Fix up comment typo.
37484         (cse_insn): Don't set src_volatile for all non-volatile
37485         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
37486         or with "memory" clobber.  Set elt->cost to MAX_COST
37487         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
37488         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
37490 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
37492         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
37493         alternative 1.
37495 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
37497         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
37498         libgcc/config/i386/elf-lib.h.
37500 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
37502         PR driver/64737
37503         * gcc.c (print_configuration): Don't print a blank line at the end
37504         here...
37505         (run_attempt): ... but here unstead.
37507         PR middle-end/64734
37508         * omp-low.c (scan_sharing_clauses): Don't ignore
37509         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
37510         on target data/update constructs.
37512 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37514         PR target/50928
37515         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
37516         (DEBUG_RELOAD): Removed define.
37517         (m32c_limit_reload_class): Enable traces with if DEBUG0.
37518         (m32c_function_arg): Added a type cast.
37519         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
37520         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
37521         * config/m32c/bitops.md (andqi3_16): Likewise.
37522         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
37523         (push_a01_l): Likewise.
37525 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
37527         PR jit/64721
37528         * main.c (main): Construct toplev instances with init_signals=true.
37529         * toplev.c (general_init): Add param "init_signals", and use it to
37530         conditionalize the calls to signal and host_hooks.extra_signals.
37531         (toplev::toplev): Add param "init_signals".
37532         (toplev::main): When invoking general_init, pass m_init_signals
37533         to control whether signal-handlers are installed.
37534         * toplev.h (toplev::toplev): Add param "init_signals".
37535         (toplev::m_init_signals): New field.
37537 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
37539         PR jit/64722
37540         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
37541         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
37542         latter may be affected by the former (e.g. on i686).
37544 2015-01-23  Martin Liska  <mliska@suse.cz>
37546         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
37547         false positive during profiledbootstrap.
37549 2015-01-23  Tom de Vries  <tom@codesourcery.com>
37551         PR libgomp/64672
37552         * lto-opts.c (lto_write_options): Output non-explicit conservative
37553         -fno-openacc.
37554         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
37555         (append_compiler_options): Pass -fopenacc through.
37557 2015-01-23  Tom de Vries  <tom@codesourcery.com>
37559         PR libgomp/64707
37560         * lto-opts.c (lto_write_options): Output non-explicit conservative
37561         -fno-openmp.
37562         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
37563         (append_compiler_options): Pass -fopenmp through.
37565 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
37567         PR debug/64511
37568         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
37569         GTY markup.
37571         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
37572         * diagnostic.def (DK_ICE_NOBT): New kind.
37573         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
37574         like DK_ICE, but never print backtrace.
37575         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
37576         (internal_error_no_backtrace): New function.
37577         * gcc.c (execute): Use internal_error_no_backtrace instead of
37578         internal_error.
37580 2015-01-22  Jeff Law  <law@redhat.com>
37582         PR target/52076
37583         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
37584         improve code density for small immediate to memory case.
37585         (insv): Better handle bitfield assignments when the field is
37586         being set to all ones.
37587         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
37588         operand predicate.
37590 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37591             Jakub Jelinek  <jakub@redhat.com>
37593         PR middle-end/64729
37594         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
37595         for !TARGET_LIBC_PROVIDES_SSP version and
37596         -fstack-protector-{all,strong,explicit} otherwise.
37597         * config/freebsd.h (LINK_SSP_SPEC): Handle
37598         -fstack-protector-{strong,explicit}.
37600 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
37601             H.J. Lu  <hongjiu.lu@intel.com>
37603         PR ipa/64694
37604         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
37605         heap.
37607 2015-01-22  Wei Mi  <wmi@google.com>
37609         PR rtl-optimization/64557
37610         * dse.c (record_store): Call get_addr for mem_addr.
37611         (check_mem_read_rtx): Likewise.
37613 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
37615         * fold-const.c (const_binop): Add early return for non-tcc_binary.
37617 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
37619         * toplev.c (init_local_tick): Process the failure when read
37620         fails for random_seed.
37622         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
37623         'pretty_name' to avoid memory overflow.
37625 2015-01-22  Richard Biener  <rguenther@suse.de>
37627         PR middle-end/64728
37628         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
37629         abnormal coalescing on undefined SSA names.
37631 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
37633         PR target/64688
37634         PR target/64477
37635         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
37636         for alternative 3.
37637         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
37639 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
37641         PR middle-end/63325
37642         * fold-const.c (fold_checksum_tree): Don't include value of
37643         expr->decl_with_vis.symtab_node in the checksum.
37645 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37647         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
37649 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
37651         PR driver/64690
37652         * gcc.c (insert_comments): New function.
37653         (try_generate_repro): Call it.
37654         (append_text): Removed.
37656 2015-01-22  Richard Biener  <rguenther@suse.de>
37658         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
37659         with IL incompatible options.  Properly honor user optimize
37660         attributes.
37662 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
37664         PR rtl-optimization/64682
37665         * combine.c (distribute_notes): When moving a death note for
37666         a register that is set in the new I2, make sure to put it
37667         before that new I2.
37669 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
37671         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
37672         not TARGET_DEFAULT.
37674 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
37676         PR debug/64511
37677         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
37678         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
37679         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
37681         PR sanitizer/64706
37682         * doc/invoke.texi (-fsanitize=vptr): Document.
37684         PR rtl-optimization/62078
37685         * dse.c: Include cfgcleanup.h.
37686         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
37687         anything call purge_all_dead_edges and cleanup_cfg at the end
37688         of the pass.
37690 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
37692         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
37693         edges.
37695 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37697         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
37698         decl attribute.
37700 2015-01-21  David Sherwood  <david.sherwood@arm.com>
37701             Tejas Belagod <Tejas.Belagod@arm.com>
37703         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
37704         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
37705         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
37706         Removed.
37708 2015-01-21  David Sherwood  <david.sherwood@arm.com>
37709             Tejas Belagod <Tejas.Belagod@arm.com>
37711         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
37712         (aarch64_reverse_mask): New decls.
37713         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
37714         (insn_count): New mode_attr.
37715         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
37716         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
37717         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
37718         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
37719         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
37720         (aarch64_simd_st4): New patterns.
37721         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
37722         (aarch64_reverse_mask): New functions.
37724 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
37726         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
37727         Declare.
37728         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
37729         addressing modes for BE.
37730         (aarch64_print_operand): Add 'R' specifier.
37731         (aarch64_simd_disambiguate_copy): Delete.
37732         (aarch64_simd_emit_reg_reg_move): New function.
37733         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
37734         in define_splits for structural moves.
37735         (mov<mode>): Use less restrictive predicates.
37736         (*aarch64_mov<mode>): Simplify and only allow for LE.
37737         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
37739 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
37741         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
37743 2015-01-21  Richard Henderson  <rth@redhat.com>
37745         PR target/64669
37746         * ccmp.c (used_in_cond_stmt_p): Remove.
37747         (expand_ccmp_expr): Don't use it.
37749 2015-01-21  Nick Clifton  <nickc@redhat.com>
37751         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
37752         PARALLELs.
37754 2015-01-21  Richard Biener  <rguenther@suse.de>
37756         PR middle-end/64313
37757         * tree-core.h (builtin_info, builtin_info_type): Turn from
37758         an object with two arrays into an array of an object with
37759         decl and two flags, implicit_p and declared_p.
37760         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
37761         set_builtin_decl, set_builtin_decl_implicit_p,
37762         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
37763         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
37764         * builtins.c (builtin_info): Adjust.
37765         * gimplify.c (gimplify_addr_expr): References to builtins
37766         that have been declared by the user makes them eligible for
37767         use by the compiler.  Call set_builtin_decl_implicit_p on them.
37769 2015-01-20  Jeff Law  <law@redhat.com>
37771         PR target/59946
37772         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
37773         allow pc-relative addresses in operand predicates or constraints.
37775 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
37777         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
37778         neon on aarch32 processors for stringops.
37780 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37782         PR ipa/63576
37783         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
37785 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37787         PR lto/45375
37788         * ipa-inline.c: Include lto-streamer.h
37789         (report_inline_failed_reason): Output source file differences and
37790         flags on optimization/target node mismatch.
37791         (can_inline_edge_p): Consider caller to be the outer inline function;
37792         be less restrictive about matching opimize and optimize_size attributes.
37793         (inline_account_function_p): Break out from ...
37794         (inline_small_functions): ... here.
37795         * ipa-inline-transform.c (clone_inlined_nodes): Use
37796         inline_account_function_p.
37797         (inline_call): Use optimize attribution; use inline_account_function_p.
37798         (inline_transform): Use opt_for_fn.
37799         * ipa-inline.h (inline_account_function_p): Declare.
37801 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
37803         PR debug/64663
37804         * dwarf2out.c (decl_piece_node): Don't put bitsize into
37805         mode if bitsize <= 0.
37806         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
37807         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
37808         sizes and positions.
37810 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
37812         * config/nios2/nios2.c (nios2_asm_file_end): Implement
37813         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
37814         needed.
37815         (TARGET_ASM_FILE_END): Define.
37817 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
37819         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
37820         (struct tune_params): Use the enum.
37821         * arm.c (arm_*_tune): Update.
37822         (arm_option_override): Update.
37824 2015-01-20  Richard Biener  <rguenther@suse.de>
37826         PR ipa/64684
37827         * ipa-reference.c (add_static_var): Inline ...
37828         (analyze_function): ... here after splitting out from ...
37829         (is_proper_for_analysis): ... this.
37831 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
37833         PR target/64149
37834         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
37835         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
37836         replace the conditional with it's true branch.
37837         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
37838         (arm_lra_p): Remove.
37840 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
37842         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
37844 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
37846         * config/tilegx/mul-tables.c: Move symtab.h include after
37847         coretypes.h include.
37848         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
37849         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
37850         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
37851         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
37852         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
37854 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
37856         PR bootstrap/64676
37857         Revert:
37858         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
37860         PR rtl-optimization/64081
37861         * loop-iv.c (def_pred_latch_p): New function.
37862         (latch_dominating_def): Allow specific cases with non-single
37863         definitions.
37864         (iv_get_reaching_def): Likewise.
37865         (check_complex_exit_p): New function.
37866         (check_simple_exit): Use check_complex_exit_p to allow certain cases
37867         with exits not executing on any iteration.
37869 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37871         PR lto/45375
37872         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
37873         to set branch cost.
37875 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37877         PR lto/45375
37878         * i386.c (gate): Check flag_expensive_optimizations and
37879         optimize_size.
37880         (ix86_option_override_internal): Drop optimize_size condition
37881         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
37882         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
37883         MASK_PREFER_AVX128.
37884         (ix86_avx256_split_vector_move_misalign,
37885         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
37886         * sse.md (all uses of TARGET_PREFER_AVX128): Add
37887         optimize_insn_for_speed_p check.
37889 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
37891         * config/mips/mips.h (FP_ASM_SPEC): New define.
37892         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
37893         instead.
37895 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
37897         PR target/53988
37898         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
37899         nullptr for insn when reaching the first insn.
37900         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
37901         (sh_insn_operands_modified_between_p): Add nullptr check.
37902         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
37903         sign extending mem load if the insn contains any UNSPEC or
37904         UNSPEC_VOLATILE.
37906 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37908         * params.def (inline-unit-growth): Drop to 15%.
37909         * invoke.texi (inline-unit-growth): Document change.
37911 2015-01-19  Martin Liska  <mliska@suse.cz>
37913         PR ipa/64668
37914         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
37915         function for second argument of OBJ_TYPE_REF.
37917 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37919         PR ipa/64218
37920         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
37921         whether function is an alias.
37923 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37925         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
37926         cases.
37928 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
37930         PR rtl-optimization/64671
37931         * lra-remat.c (operand_to_remat): Don't consider jump and call
37932         insns.
37934 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
37936         PR target/59828
37937         * config/rs6000/default64.h: Include rs6000-cpus.def.
37938         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
37939         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
37940         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
37941         and POWER8.
37942         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
37943         POWER8.
37944         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
37945         pseudo-op to specify assembler dialect.
37947 2015-01-19  Martin Liska  <mliska@suse.cz>
37949         PR ipa/64664
37950         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
37951         Handle safe potentially removed nodes during filtering.
37953 2015-01-19  Martin Liska  <mliska@suse.cz>
37955         * doc/extend.texi (no_icf): Add new attribute description.
37956         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
37957         where the pass attempts to merge a function with no_icf attribute.
37959 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37961         PR target/64532
37962         * doc/md.texi (ARM Options): Document register constraints.
37964 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
37965             Andrew Pinski  <apinski@cavium.com>
37967         PR target/64304
37968         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
37969         (ashl<mode>3): Don't expand if operands[2] is not constant.
37971 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37973         PR target/64448
37974         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
37975         Match xor-and-xor RTL pattern.
37977 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
37979         PR rtl-optimization/64081
37980         * loop-iv.c (def_pred_latch_p): New function.
37981         (latch_dominating_def): Allow specific cases with non-single
37982         definitions.
37983         (iv_get_reaching_def): Likewise.
37984         (check_complex_exit_p): New function.
37985         (check_simple_exit): Use check_complex_exit_p to allow certain cases
37986         with exits not executing on any iteration.
37988 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
37990         * common.opt (fgraphite): Fix a typo.
37992 2015-01-19  Felix Yang  <felix.yang@huawei.com>
37994         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
37995         pattern.
37996         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
37997         uminp, smax_nanp, smin_nanp): New builtins.
37998         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
37999         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
38000         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
38001         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
38002         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
38003         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
38004         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
38005         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
38006         vpminnms_f32): Rewrite using builtin functions.
38008 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
38010         PR libgomp/64625
38011         * omp-low.c (offload_symbol_decl): Remove variable.
38012         (get_offload_symbol_decl): Remove function.
38013         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
38014         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
38015         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
38016         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
38017         BUILT_IN_GOACC_UPDATE don't pass it at all.
38019 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
38021         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
38022         callers.
38024 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
38026         * ipa-chkp.c (chkp_produce_thunks): Add early param
38027         to split thunks production into two passes.  Keep
38028         'always_inline' function bodies after the first pass.
38029         (pass_data_ipa_chkp_early_produce_thunks): New.
38030         (pass_ipa_chkp_early_produce_thunks): New.
38031         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
38032         chkp_produce_thunks signature.
38033         (make_pass_ipa_chkp_early_produce_thunks): New.
38034         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
38035         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
38036         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
38038 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
38040         * cgraph.c (cgraph_node::dump): Dump profile flags.
38042 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
38044         PR target/64652
38045         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
38046         reg appear first in the parallel.
38048 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
38050         * ipa-reference.c (set_reference_optimization_summary,
38051         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
38052         disabled.
38053         (ignore_module_statics): New static var.
38054         (propagate_bits): If ipa-reference is disabled, do not look into local
38055         properties.
38056         (analyze_function): Disable analysis when ipa_reference is disabled.
38057         (generate_summary): Do not dump when reference is disabled;
38058         collect vars accessed from functions with ipa-reference disabled.
38059         (get_read_write_all_from_node): When ipa-reference is disabled, use the
38060         node flags.
38061         (gate): Enable for LTO.
38062         (ignore_edge_p): New function.
38063         (propagate): Skip functions w/o ipa-reference analysis.
38064         * optc-save-gen.awk: Handle optimize_debug correctly.
38065         * opth-gen.awk: Likewise.
38066         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
38067         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
38068         fira-share-save-slots, fira-share-spill-slots,
38069         fmodulo-sched-allow-regmoves, fpartial-inlining,
38070         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
38071         ftracer, ftree-parallelize-loops, fassociative-math,
38072         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
38073         Optimization
38074         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
38075         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
38076         Optimization.
38077         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
38078         Fix for IPA.
38080 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
38082         PR ipa/64378
38083         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
38084         flag correctly.
38085         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
38087 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
38089         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
38090         Remove duplicate option listings.
38092 2015-01-18  Felix Yang  <felix.yang@huawei.com>
38094         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
38095         (autofdo_source_profile::get_callsite_total_count,
38096         function_instance::get_function_instance_by_decl,
38097         string_table::get_index, string_table::get_index_by_decl,
38098         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
38099         Fix comment typos. Reformatting and minor code rearrangement.
38101 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
38103         * config/rs6000/rs6000.md (probe_stack): Delete.
38104         (probe_stack_address): New.
38106 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
38108         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
38109         to test for 32-bit ABIs, not !TARGET_POWERPC64.
38111 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
38113         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
38114         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
38115         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
38116         snafu.
38117         (rs6000_libcall_value): Use the new function.
38119 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
38121         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
38123 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
38125         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
38126         implement a more precise life analysis for it during backward scan.
38128 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
38130         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
38132 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
38134         PR rtl-optimization/52773
38135         * calls.c (emit_library_call_value): When pushing arguments use
38136         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
38137         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
38138         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
38140 2015-01-17  Jeff Law  <law@redhat.com>
38142         PR rtl-optimization/32790
38143         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
38144         not ZERO_EXTEND in SET_DESTs.
38146 2015-01-17  Alan Modra  <amodra@gmail.com>
38148         * cprop.c (do_local_cprop): Revert last change.
38150 2015-01-16  DJ Delorie  <dj@redhat.com>
38151             Nick Clifton  <nickc@redhat.com>
38153         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
38154         (addhi3_real): Likewise.  Fix [HL+0] syntax.
38155         (subqi3_real): Likewise.
38156         (subhi3_real): Likewise.
38157         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
38158         (cbranchhi4_real): Likewise.
38159         (cbranchhi4_real_inverted): Likewise.
38160         (cbranchsi4_real_lt): Likewise.
38161         (cbranchsi4_real_ge): Likewise.
38162         (cbranchsi4_real_ge): Likewise.
38163         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
38164         (sub<mode>3_virt): Likewise.
38165         (cbranchqi4_virt): Likewise.
38166         (cbranchhi4_virt): Likewise.
38167         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
38168         always use '[reg+imm]' even when imm is zero.
38169         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
38170         (rl78_general_operand): New.
38171         (rl78_nonimmediate_operand): New.
38172         (rl78_nonfar_operand): Use them.
38173         (rl78_nonfar_nonimm_operand): Likewise.
38174         (rl78_stack_based_mem): Fix.
38175         * config/rl78/constraints.md (Ibqi): New.
38176         (IBqi): New.
38177         (Wsa): New.
38178         (Wsf): New.
38179         (Cs1): Fix.
38180         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
38181         (iorqi3): Likewise.
38182         (xorqi3): Likewise.
38183         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
38185         * config/rl78/constrains (Qs8): New constraint.
38186         * config/rl78/rl78.c (rl78_flags_already_set): New function.
38187         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
38188         * config/rl78/rl78-real.md (update_Z): New attribute.
38189         Update patterns to set it.
38190         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
38191         shorter compare and branch sequence can be used.
38192         (cbranchhi4_real): Likewise.
38193         (cbranchhi4_real_inverted): Likewise.
38195         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
38196         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
38197         address space.
38198         * config/rl78/rl78.c (rl78_get_name_encoding): New.
38199         (rl78_option_override): Allow -mes0 only if C.
38200         (characterize_address): Support subregs of symbol_refs.
38201         (rl78_addr_space_address_mode): Move.  Add __near.
38202         (rl78_far_p): Likewise.
38203         (rl78_addr_space_pointer_mode): Likewise.
38204         (rl78_as_legitimate_address): Likewise.
38205         (rl78_addr_space_subset_p): Likewise.
38206         (rl78_addr_space_convert): Likewise.
38207         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
38208         symbols with -mes0.
38209         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
38210         addressing.
38211         (rl78_alloc_physical_registers_op1): Change logic to prefer
38212         symbol[BC] addressing.
38213         (frodata_section): New.
38214         (rl78_asm_init_sections): Initialize it.
38215         (rl78_select_section): Put __far readonly symbols in .frodata.
38216         (rl78_make_type_far): New.
38217         (rl78_insert_attributes): Force all readonly symbols to be
38218         __far when -mes0.
38219         (rl78_asm_out_integer): New.
38220         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
38221         * config/rl78/rl78.opt (-mes0): New.
38223         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
38224         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
38225         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
38226         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
38227         (rl78_saddr_p): New.
38228         (rl78_output_aligned_common): New.
38229         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
38230         (rl78_handle_saddr_attribute): New.
38231         (rl78_handle_naked_attribute): New.
38232         (rl78_attribute_table): Add saddr.
38233         (rl78_print_operand_1): Don't print '!' on saddr operands.
38234         (rl78_print_operand_1): Strip encodings.
38235         (rl78_sfr_p): New.
38236         (rl78_strip_name_encoding): New.
38237         (rl78_attrlist_to_encoding): New.
38238         (rl78_encode_section_info): New.
38239         (rl78_asm_init_sections): New.
38240         (rl78_select_section): New.
38241         (rl78_output_labelref): New.
38242         (rl78_output_aligned_common): New.
38243         (rl78_asm_out_integer): New.
38244         (rl78_asm_ctor_dtor): New.
38245         (rl78_asm_constructor): New.
38246         (rl78_asm_destructor): New.
38248         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
38249         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
38250         (transcode_memory_rtx): Update.
38251         (rl78_expand_epilogue): Use A_REG instead of 0.
38253 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38255         * config/arm/arm-protos.h (struct tune_params): New field
38256         sched_autopref_queue_depth.
38257         * config/arm/arm.c (sched-int.h): Include header.
38258         (arm_first_cycle_multipass_dfa_lookahead_guard,)
38259         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
38260         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
38261         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
38262         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
38263         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
38264         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
38265         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
38266         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
38267         * config/arm/t-arm (arm.o): Update.
38268         * haifa-sched.c (update_insn_after_change): Update.
38269         (rank_for_schedule): Use auto-prefetcher model, if requested.
38270         (autopref_multipass_init): New static function.
38271         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
38272         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
38273         variable for debug dumps.
38274         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
38275         (autopref_multipass_dfa_lookahead_guard): New global function that
38276         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
38277         (init_h_i_d): Update.
38278         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
38279         * sched-int.h (enum autopref_multipass_data_status): New const enum.
38280         (autopref_multipass_data_): Structure for auto-prefetcher data.
38281         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
38282         (struct _haifa_insn_data:autopref_multipass_data): New field.
38283         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
38284         (autopref_multipass_dfa_lookahead_guard): Declare.
38286 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38288         * rtlanal.c (get_base_term): Handle SCRATCH.
38290 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38292         * config/aarch64/aarch64.c
38293         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
38294         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38295         * config/arm/arm.c
38296         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
38297         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38299 2015-01-17  Alan Modra  <amodra@gmail.com>
38301         * cprop.c (do_local_cprop): Disallow replacement of fixed
38302         hard registers.
38304 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38306         PR target/62066
38307         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
38308         early return 0.
38310 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38312         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
38313         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
38315 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38317         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
38318         * config/arm/thumb1.md: ... Here.
38320 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38322         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
38323         TImode for TARGET_32BIT.
38325 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38327         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
38328         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
38329         as ...
38330         (rs6000_abi_word_mode): New function.
38332 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38334         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
38335         instead of UNITS_PER_WORD to describe the size of stack slots.
38337 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38339         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
38340         as rs6000_promote_function_mode.  Move comment to there.
38341         (rs6000_promote_function_mode): New function.
38343 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38345         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
38346         -mpowerpc64 is active.
38348 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
38350         PR middle-end/64353
38351         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
38352         virtuals on start.
38354 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
38356         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
38357         introduced in revision 219724.
38359 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38360             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38362         PR target/64263
38363         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
38364         destination is not a GP reg.
38365         (*movdi_aarch64): Likewise.
38367 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
38369         PR target/64623
38370         * config/rs6000/default64.h: Revert ISA change.
38372 2015-01-16  Richard Biener  <rguenther@suse.de>
38374         PR middle-end/64614
38375         * tree-ssa-uninit.c: Include tree-cfg.h.
38376         (MAX_SWITCH_CASES): New define.
38377         (convert_control_dep_chain_into_preds): Handle switch statements.
38378         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
38379         (normalize_one_pred_1): Do not split bit-manipulations.
38380         Record (x & CST).
38382 2015-01-16  Richard Biener  <rguenther@suse.de>
38384         PR tree-optimization/64568
38385         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
38386         complex load rewriting for TARGET_MEM_REFs.
38388 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
38390         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
38392 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
38394         PR target/64149
38395         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
38396         variable.
38397         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
38398         (aarch64_lra_p): Remove.
38400 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
38402         PR target/64363
38403         * ipa-chkp.h (chkp_instrumentable_p): New.
38404         * ipa-chkp.c: Include tree-inline.h.
38405         (chkp_instrumentable_p): New.
38406         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
38407         Fix processing of not instrumentable functions.
38408         (chkp_versioning): Use chkp_instrumentable_p. Warn about
38409         not instrumentable functions.
38410         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
38411         chkp_instrumentable_p.
38412         * tree-inline.h (copy_forbidden): New.
38413         * tree-inline.c (copy_forbidden): Not static anymore.
38415 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38417         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
38418         ptr1, ptr2 unused.
38420 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
38422         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
38423         type OP_OUT to OP_INOUT.
38425 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
38427         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
38428         (high x) y) to y if x and y have the same base.
38430 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
38432         * config/arm/cortex-a57.md: New.
38433         * config/aarch64/aarch64.md: Include it.
38434         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
38435         * config/aarch64/aarch64-tune.md: Regenerate.
38437 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
38439         PR target/64015
38440         * ccmp.c (expand_ccmp_next): New function.
38441         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
38442         and compare insn sequence.
38443         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
38444         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
38445         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
38446         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
38447         (*ccmp_ior): Changed to ccmp_ior<mode>.
38448         (cmp<mode>): New pattern.
38449         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
38450         parameters.
38451         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
38453 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
38455         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
38456         _mm256_bsrli_epi128): New.
38457         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
38459 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
38461         * expmed.c (store_bit_field_using_insv): Improve warning message.
38462         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
38464 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
38466         PR rtl-optimization/64011
38467         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
38468         there is partial overflow.
38470 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38472         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
38473         prototype.
38474         (nds32_expand_epilogue_v3pop): Likewise.
38475         * config/nds32/nds32.md (sibcall): Define this for sibling call
38476         optimization.
38477         (sibcall_register): Likewise.
38478         (sibcall_immediate): Likewise.
38479         (sibcall_value): Likewise.
38480         (sibcall_value_register): Likewise.
38481         (sibcall_value_immediate): Likewise.
38482         (sibcall_epilogue): Likewise.
38483         (epilogue): Pass false to indicate this is not a sibcall epilogue.
38484         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
38485         (nds32_expand_epilogue_v3pop): Likewise.
38487 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38489         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
38490         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
38491         (return_internal): New.
38492         (return): Define this named pattern.
38493         (simple_return): Define this named pattern.
38494         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
38495         pattern instead of unspec_volatile_func_return.
38496         (nds32_expand_epilogue_v3pop): Likewise.
38497         (nds32_can_use_return_insn): New function.
38499 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38501         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
38502         * config/nds32/nds32.md (pop25return): New.
38503         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
38504         pop25return pattern.
38506 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38508         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
38509         -mforbid-fp-as-gp, and -mex9 options.
38511 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38513         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
38514         remove -mgp-direct option.
38516 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
38518         * doc/invoke.texi (--param early-inlining-insns): Update default value.
38519         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
38521 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
38523         * ipa-inline.c (inline_small_functions): Work around hints
38524         cache issue.
38526 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
38528         PR target/59710
38529         * doc/invoke.texi (Option Summary): Document new Nios II
38530         -mgpopt= syntax.
38531         (Nios II Options): Likewise.
38532         * config/nios2/nios2.opt: Add -mgpopt= option support.
38533         Modify existing -mgpopt and -mno-gpopt options to be aliases.
38534         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
38535         * config/nios2/nios2.c (nios2_option_override): Adjust
38536         -mgpopt defaulting.
38537         (nios2_in_small_data_p): Return true for explicit small data
38538         sections even with -G0.
38539         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
38540         option choices.
38542 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
38544         PR ipa/64612
38545         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
38546         of comdat locals.
38547         (inline_call): Fix removal of aliases.
38549 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
38551         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
38552         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
38553         * opts.c (common_handle_option): Add -fsanitize=vptr.
38554         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
38555         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
38556         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
38557         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
38558         (ubsan_expand_vptr_ifn): New prototype.
38559         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
38560         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
38561         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
38562         expand_LOOP_VECTORIZED): Make argument nameless, remove
38563         ATTRIBUTE_UNUSED.
38564         (expand_UBSAN_VPTR): New function.
38565         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
38566         in fn spec.
38567         (UBSAN_VPTR): New internal function.
38568         * sanopt.c (tree_map_traits): Renamed to ...
38569         (sanopt_tree_map_traits): ... this.
38570         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
38571         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
38572         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
38573         (maybe_optimize_ubsan_vptr_ifn): New function.
38574         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
38575         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
38576         -fsanitize=vptr.
38577         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
38578         internal calls like pure functions for aliasing, even when they
38579         have other side-effects that prevent making them ECF_PURE.
38580         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
38581         (ubsan_expand_vptr_ifn): New function.
38583 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
38585         PR rtl-optimization/64110
38586         * stmt.c (parse_output_constraint): Process '^' and '$'.
38587         (parse_input_constraint): Ditto.
38588         * lra-constraints.c (process_alt_operands): Process the new
38589         constraints.
38590         * ira-costs.c (record_reg_classes): Process the new constraint
38591         '^'.
38592         * genoutput.c (indep_constraints): Add '^' and '$'.
38593         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
38594         * doc/md.texi: Add description of the new constraints.
38596 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
38597             Bernd Schmidt  <bernds@codesourcery.com>
38598             Cesar Philippidis  <cesar@codesourcery.com>
38599             James Norris  <jnorris@codesourcery.com>
38600             Tom de Vries  <tom@codesourcery.com>
38601             Ilmir Usmanov  <i.usmanov@samsung.com>
38602             Dmitry Bocharnikov  <dmitry.b@samsung.com>
38603             Evgeny Gavrin  <e.gavrin@samsung.com>
38604             Jakub Jelinek  <jakub@redhat.com>
38606         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
38607         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38608         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38609         New function types.
38610         * builtins.c: Include "gomp-constants.h".
38611         (expand_builtin_acc_on_device): New function.
38612         (expand_builtin, is_inexpensive_builtin): Handle
38613         BUILT_IN_ACC_ON_DEVICE.
38614         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
38615         New macros.
38616         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
38617         flag_openmp.
38618         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
38619         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
38620         i386/intelmic-offload.h.
38621         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
38622         to libgomp and its dependencies.
38623         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
38624         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
38625         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
38626         * config/ia64/hpux.h (LIB_SPEC): Likewise.
38627         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
38628         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
38629         * doc/generic.texi: Update for OpenACC changes.
38630         * doc/gimple.texi: Likewise.
38631         * doc/invoke.texi: Likewise.
38632         * doc/sourcebuild.texi: Likewise.
38633         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
38634         GF_OMP_FOR_KIND_OACC_LOOP.
38635         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
38636         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
38637         GF_OMP_TARGET_KIND_OACC_UPDATE,
38638         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38639         Dump more data.
38640         * gimple.c: Update comments for OpenACC changes.
38641         * gimple.def: Likewise.
38642         * gimple.h: Likewise.
38643         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
38644         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38645         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
38646         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38647         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
38648         appropriate place.
38649         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
38650         * gimplify.c: Include "gomp-constants.h".
38651         Update comments for OpenACC changes.
38652         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
38653         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
38654         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38655         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
38656         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38657         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38658         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
38659         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38660         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
38661         OMP_CLAUSE_SEQ.
38662         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
38663         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
38664         OMP_CLAUSE_SET_MAP_KIND.
38665         (gimplify_oacc_cache): New function.
38666         (gimplify_omp_for): Handle OACC_LOOP.
38667         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
38668         OACC_DATA.
38669         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
38670         OACC_EXIT_DATA, OACC_UPDATE.
38671         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
38672         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
38673         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
38674         (gimplify_body): Consider flag_openacc next to flag_openmp.
38675         * lto-streamer-out.c: Include "gomp-constants.h".
38676         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
38677         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
38678         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
38679         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
38680         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
38681         (BUILT_IN_ACC_ON_DEVICE): New builtins.
38682         * omp-low.c: Include "gomp-constants.h".
38683         Update comments for OpenACC changes.
38684         (struct omp_context): Add reduction_map, gwv_below, gwv_this
38685         members.
38686         (extract_omp_for_data, use_pointer_for_field, install_var_field)
38687         (new_omp_context, delete_omp_context, scan_sharing_clauses)
38688         (create_omp_child_function, scan_omp_for, scan_omp_target)
38689         (check_omp_nesting_restrictions, lower_reduction_clauses)
38690         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
38691         Update for OpenACC changes.
38692         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
38693         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
38694         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
38695         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38696         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
38697         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
38698         OMP_CLAUSE_MAP_*.
38699         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
38700         Handle GF_OMP_FOR_KIND_OACC_LOOP.
38701         (expand_omp_target, lower_omp_target): Handle
38702         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38703         GF_OMP_TARGET_KIND_OACC_UPDATE,
38704         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
38705         GF_OMP_TARGET_KIND_OACC_DATA.
38706         (pass_expand_omp::execute, execute_lower_omp)
38707         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
38708         flag_openmp.
38709         (offload_symbol_decl): New variable.
38710         (oacc_get_reduction_array_id, oacc_max_threads)
38711         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
38712         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
38713         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
38714         (oacc_gimple_assign, oacc_initialize_reduction_data)
38715         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
38716         functions.
38717         (is_targetreg_ctx): Remove function.
38718         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
38719         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
38720         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38721         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
38722         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
38723         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
38724         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
38725         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
38726         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
38727         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
38728         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
38729         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
38730         * tree-core.h: Update comments for OpenACC changes.
38731         (enum omp_clause_map_kind): Remove.
38732         (struct tree_omp_clause): Change type of map_kind member from enum
38733         omp_clause_map_kind to unsigned char.
38734         * tree-inline.c: Update comments for OpenACC changes.
38735         * tree-nested.c: Likewise.  Include "gomp-constants.h".
38736         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
38737         (convert_tramp_reference_stmt, convert_gimple_call): Update for
38738         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
38739         OMP_CLAUSE_SET_MAP_KIND.
38740         * tree-pretty-print.c: Include "gomp-constants.h".
38741         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
38742         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
38743         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
38744         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
38745         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38746         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
38747         instead of OMP_CLAUSE_MAP_*.
38748         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
38749         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
38750         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38751         * tree-streamer-in.c: Include "gomp-constants.h".
38752         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
38753         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
38754         * tree-streamer-out.c: Include "gomp-constants.h".
38755         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
38756         OMP_CLAUSE_MAP_*.
38757         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
38758         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
38759         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
38760         * tree.c (omp_clause_num_ops): Update accordingly.
38761         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
38762         Likewise.
38763         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
38764         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
38765         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
38766         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
38767         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
38768         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
38769         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
38770         (OMP_CLAUSE_SET_MAP_KIND): New macro.
38771         * varpool.c (varpool_node::get_create): Consider flag_openacc next
38772         to flag_openmp.
38773         * config/i386/intelmic-offload.h: New file.
38774         * config/nvptx/offload.h: Likewise.
38776 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
38778         * explow.h: Remove duplicate contents.
38779         * dojump.h: Likewise.
38781 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
38783         * arm.c (arm_xgene_tune): Add default initializer for instruction
38784         fusion.
38786 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
38788         PR ipa/64068
38789         PR ipa/64559
38790         * ipa.c (symbol_table::remove_unreachable_nodes):
38791         Do not put abstract origins into boundary.
38793 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
38795         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
38796         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
38798 2015-01-15  Steve Ellcey  <sellcey@mips.com>
38800         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
38801         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
38802         builtins.def, and chkp-builtins.def.
38804 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
38806         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
38807         ISA 2.7 (POWER8).
38809 2015-01-15  Richard Biener  <rguenther@suse.de>
38811         PR tree-optimization/61743
38812         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
38813         information on PHIs for some simple cases.
38815 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
38817         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
38818         Include xgene1.md.
38819         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
38820         * config/arm/arm-cores.def (xgene1): New entry.
38821         * config/arm/arm-tables.opt: Regenerate.
38822         * config/arm/arm-tune.md: Regenerate.
38823         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
38825 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
38827         * tree-if-conv.c: Include hash-map.h.
38828         (aggressive_if_conv): New variable.
38829         (fold_build_cond_expr): Add simplification of non-zero condition.
38830         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
38831         destination block is not always executed.
38832         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
38833         than two predecessors if AGGRESSIVE_IF_CONV is true.
38834         (if_convertible_stmt_p): Fix commentary.
38835         (all_preds_critical_p): New function.
38836         (has_pred_critical_p): New function.
38837         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
38838         BB can have more than two predecessors and all incoming edges can be
38839         critical.
38840         (predicate_bbs): Skip predication for loop exit block, use build2_loc
38841         to compute predicate for true edge.
38842         (find_phi_replacement_condition): Delete this function.
38843         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
38844         Allow interchange PHI arguments if EXTENDED is false.
38845         Change check that block containing reduction statement candidate
38846         is predecessor of phi-block since phi may have more than two arguments.
38847         (phi_args_hash_traits): New helper structure.
38848         (struct phi_args_hash_traits): New type.
38849         (phi_args_hash_traits::hash): New function.
38850         (phi_args_hash_traits::equal_keys): New function.
38851         (gen_phi_arg_condition): New function.
38852         (predicate_scalar_phi): Add handling of phi nodes with more than two
38853         arguments, delete COND and TRUE_BB arguments, insert body of
38854         find_phi_replacement_condition to predicate ordinary phi nodes.
38855         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
38856         delete call of find_phi_replacement_condition and invoke
38857         predicate_scalar_phi with two arguments.
38858         (insert_gimplified_predicates): Add assert that non-predicated block
38859         don't have statements to insert.
38860         (ifcvt_split_critical_edges): New function.
38861         (ifcvt_split_def_stmt): Likewise.
38862         (ifcvt_walk_pattern_tree): Likewise.
38863         (stmt_is_root_of_bool_pattern): Likewise.
38864         (ifcvt_repair_bool_pattern): Likewise.
38865         (ifcvt_local_dce): Likewise.
38866         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
38867         is copy of inner or outer loop force_vectorize field, invoke
38868         ifcvt_split_critical_edges, ifcvt_local_dce and
38869         ifcvt_repair_bool_pattern for aggressive if-conversion.
38871 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
38873         * config/aarch64/aarch64.md: Include xgene1.md.
38874         * config/aarch64/xgene1.md: New file.
38876 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
38878         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
38879         xgene1 (APM XGene-1) core definition.
38880         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
38881         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
38882         * doc/invoke.texi: Document -mcpu=xgene1.
38884 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
38886         * dojump.h: New header file.
38887         * explow.h: Likewise.
38888         * expr.h: Remove includes.
38889         Move expmed.c prototypes to expmed.h.
38890         Move dojump.c prototypes to dojump.h.
38891         Move alias.c prototypes to alias.h.
38892         Move explow.c prototypes to explow.h.
38893         Move calls.c prototypes to calls.h.
38894         Move emit-rtl.c prototypes to emit-rtl.h.
38895         Move varasm.c prototypes to varasm.h.
38896         Move stmt.c prototypes to stmt.h.
38897         (saved_pending_stack_adjust): Move to dojump.h.
38898         (adjust_address): Move to explow.h.
38899         (adjust_address_nv): Move to emit-rtl.h.
38900         (adjust_bitfield_address): Likewise.
38901         (adjust_bitfield_address_size): Likewise.
38902         (adjust_bitfield_address_nv): Likewise.
38903         (adjust_automodify_address_nv): Likewise.
38904         * explow.c (expr_size): Move to expr.c.
38905         (int_expr_size): Likewise.
38906         (tree_expr_size): Likewise.
38907         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38908         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
38909         * genemit.c (main): Generate includes statistics.h, real.h,
38910         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
38911         stmt.h.
38912         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
38913         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
38914         explow.h, emit-rtl.h, stmt.h.
38915         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
38916         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
38917         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
38918         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
38919         emit-rtl.h, varasm.h, stmt.h.
38920         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
38921         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
38922         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
38923         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
38924         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38925         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
38926         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
38927         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
38928         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
38929         tm.h tree.h varasm.h vec.h wide-int.h.
38930         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38931         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
38932         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
38933         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
38934         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
38935         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
38936         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
38937         * loop-iv.c: Likewise.
38938         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
38939         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
38940         statistics.h stmt.h tree.h varasm.h wide-int.h.
38941         * lra-constraints.c: Likewise.
38942         * lra-eliminations.c: Likewise.
38943         * lra-lives.c: Likewise.
38944         * lra-remat.c: Likewise.
38945         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38946         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
38947         statistics.h stmt.h tree.h varasm.h wide-int.h.
38948         * hw-doloop.c: Likewise.
38949         * ira-color.c: Likewise.
38950         * ira-emit.c: Likewise.
38951         * loop-doloop.c: Likewise.
38952         * loop-invariant.c: Likewise.
38953         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38954         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
38955         statistics.h stmt.h tree.h varasm.h wide-int.h.
38956         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
38957         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
38958         statistics.h stmt.h tree.h varasm.h wide-int.h.
38959         * combine-stack-adj.c: Likewise.
38960         * cse.c: Likewise.
38961         * ddg.c: Likewise.
38962         * ifcvt.c: Likewise.
38963         * ira-costs.c: Likewise.
38964         * jump.c: Likewise.
38965         * lra-coalesce.c: Likewise.
38966         * lra-spills.c: Likewise.
38967         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38968         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
38969         stmt.h varasm.h wide-int.h.
38970         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38971         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
38972         varasm.h.
38973         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
38974         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
38975         statistics.h stmt.h varasm.h wide-int.h.
38976         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
38977         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
38978         varasm.h wide-int.h.
38979         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
38980         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38981         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
38982         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
38983         statistics.h stmt.h.
38984         * config/tilepro/tilepro.c: Likewise.
38985         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
38986         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
38987         * config/pdp11/pdp11.c: Likewise.
38988         * config/xtensa/xtensa.c: Likewise.
38989         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
38990         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
38991         varasm.h.
38992         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38993         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
38994         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
38995         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38996         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
38997         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
38998         * rtl-chkp.c: Likewise.
38999         * tree-chkp-opt.c: Likewise.
39000         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
39001         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39002         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
39003         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39004         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39005         statistics.h stmt.h.
39006         * tree-vect-data-refs.c: Likewise.
39007         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
39008         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39009         rtl.h statistics.h stmt.h varasm.h.
39010         * internal-fn.c: Likewise.
39011         * ipa-icf-gimple.c: Likewise.
39012         * lto-section-out.c: Likewise.
39013         * tree-data-ref.c: Likewise.
39014         * tree-nested.c: Likewise.
39015         * tree-outof-ssa.c: Likewise.
39016         * tree-predcom.c: Likewise.
39017         * tree-pretty-print.c: Likewise.
39018         * tree-scalar-evolution.c: Likewise.
39019         * tree-ssa-strlen.c: Likewise.
39020         * tree-vect-loop.c: Likewise.
39021         * tree-vect-patterns.c: Likewise.
39022         * tree-vect-slp.c: Likewise.
39023         * tree-vect-stmts.c: Likewise.
39024         * tsan.c: Likewise.
39025         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39026         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
39027         stmt.h.
39028         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
39029         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39030         statistics.h stmt.h varasm.h.
39031         * loop-unroll.c: Likewise.
39032         * ubsan.c: Likewise.
39033         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
39034         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
39035         stmt.h varasm.h.
39036         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39037         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
39038         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
39039         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39040         statistics.h stmt.h.
39041         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
39042         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39043         statistics.h stmt.h varasm.h.
39044         * gimple-match-head.c: Likewise.
39045         * lto-cgraph.c: Likewise.
39046         * lto-section-in.c: Likewise.
39047         * lto-streamer-in.c: Likewise.
39048         * lto-streamer-out.c: Likewise.
39049         * tree-affine.c: Likewise.
39050         * tree-cfg.c: Likewise.
39051         * tree-cfgcleanup.c: Likewise.
39052         * tree-if-conv.c: Likewise.
39053         * tree-into-ssa.c: Likewise.
39054         * tree-ssa-alias.c: Likewise.
39055         * tree-ssa-copyrename.c: Likewise.
39056         * tree-ssa-dse.c: Likewise.
39057         * tree-ssa-forwprop.c: Likewise.
39058         * tree-ssa-live.c: Likewise.
39059         * tree-ssa-math-opts.c: Likewise.
39060         * tree-ssa-pre.c: Likewise.
39061         * tree-ssa-sccvn.c: Likewise.
39062         * tree-tailcall.c: Likewise.
39063         * tree-vect-generic.c: Likewise.
39064         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39065         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
39066         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39067         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
39068         * varasm.c: Likewise.
39069         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39070         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
39071         varasm.h.
39072         * init-regs.c: Likewise.
39073         * ira.c: Likewise.
39074         * omp-low.c: Likewise.
39075         * stack-ptr-mod.c: Likewise.
39076         * tree-ssa-reassoc.c: Likewise.
39077         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39078         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
39079         varasm.h.
39080         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39081         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
39082         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39083         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
39084         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39085         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
39086         * tree-ssa-phiopt.c: Likewise.
39087         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39088         fixed-value.h hashtab.h real.h statistics.h stmt.h.
39089         * config/fr30/fr30.c: Likewise.
39090         * config/frv/frv.c: Likewise.
39091         * expr.c: Likewise.
39092         * final.c: Likewise.
39093         * optabs.c: Likewise.
39094         * passes.c: Likewise.
39095         * simplify-rtx.c: Likewise.
39096         * stmt.c: Likewise.
39097         * toplev.c: Likewise.
39098         * var-tracking.c: Likewise.
39099         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39100         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39101         * lower-subreg.c: Likewise.
39102         * postreload-gcse.c: Likewise.
39103         * ree.c: Likewise.
39104         * reginfo.c: Likewise.
39105         * store-motion.c: Likewise.
39106         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39107         fixed-value.h hashtab.h real.h stmt.h varasm.h.
39108         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39109         fixed-value.h hashtab.h statistics.h stmt.h.
39110         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39111         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39112         * except.c: Likewise.
39113         * explow.c: Likewise.
39114         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39115         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
39116         varasm.h.
39117         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39118         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
39119         * tree-ssa-structalias.c: Likewise.
39120         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39121         fixed-value.h insn-config.h real.h statistics.h.
39122         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39123         fixed-value.h insn-config.h real.h statistics.h stmt.h.
39124         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39125         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39126         * cfgbuild.c: Likewise.
39127         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39128         fixed-value.h real.h rtl.h statistics.h stmt.h.
39129         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39130         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39131         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39132         fixed-value.h real.h statistics.h stmt.h.
39133         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39134         fixed-value.h real.h statistics.h stmt.h varasm.h.
39135         * cprop.c: Likewise.
39136         * modulo-sched.c: Likewise.
39137         * postreload.c: Likewise.
39138         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39139         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
39140         statistics.h stmt.h varasm.h.
39141         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
39142         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39143         rtl.h statistics.h stmt.h varasm.h.
39144         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
39145         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
39146         varasm.h.
39147         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39148         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
39149         varasm.h.
39150         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
39151         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
39152         varasm.h.
39153         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
39154         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39155         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39156         function.h real.h statistics.h stmt.h varasm.h.
39157         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39158         insn-config.h real.h statistics.h stmt.h.
39159         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39160         statistics.h stmt.h.
39161         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
39162         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
39163         statistics.h stmt.h varasm.h.
39164         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
39165         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
39166         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39167         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
39168         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
39169         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39170         statistics.h stmt.h varasm.h.
39171         * ipa-polymorphic-call.c: Likewise.
39172         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
39173         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39174         statistics.h stmt.h.
39175         * config/c6x/c6x.c: Likewise.
39176         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
39177         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39178         statistics.h stmt.h varasm.h.
39179         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
39180         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
39181         stmt.h varasm.h.
39182         * ipa-split.c: Likewise.
39183         * tree-eh.c: Likewise.
39184         * tree-ssa-dce.c: Likewise.
39185         * tree-ssa-loop-niter.c: Likewise.
39186         * tree-vrp.c: Likewise.
39187         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
39188         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
39189         stmt.h.
39190         * config/nds32/nds32-fp-as-gp.c: Likewise.
39191         * config/nds32/nds32-intrinsic.c: Likewise.
39192         * config/nds32/nds32-isr.c: Likewise.
39193         * config/nds32/nds32-md-auxiliary.c: Likewise.
39194         * config/nds32/nds32-memory-manipulation.c: Likewise.
39195         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
39196         * config/nds32/nds32-predicates.c: Likewise.
39197         * config/nds32/nds32.c: Likewise.
39198         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
39199         fixed-value.h hashtab.h real.h statistics.h.
39200         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
39201         fixed-value.h hashtab.h real.h statistics.h stmt.h.
39202         * config/arm/arm.c: Likewise.
39203         * config/avr/avr.c: Likewise.
39204         * config/bfin/bfin.c: Likewise.
39205         * config/h8300/h8300.c: Likewise.
39206         * config/i386/i386.c: Likewise.
39207         * config/ia64/ia64.c: Likewise.
39208         * config/iq2000/iq2000.c: Likewise.
39209         * config/m32c/m32c.c: Likewise.
39210         * config/m32r/m32r.c: Likewise.
39211         * config/m68k/m68k.c: Likewise.
39212         * config/mcore/mcore.c: Likewise.
39213         * config/mep/mep.c: Likewise.
39214         * config/mips/mips.c: Likewise.
39215         * config/mn10300/mn10300.c: Likewise.
39216         * config/moxie/moxie.c: Likewise.
39217         * config/pa/pa.c: Likewise.
39218         * config/rl78/rl78.c: Likewise.
39219         * config/rx/rx.c: Likewise.
39220         * config/s390/s390.c: Likewise.
39221         * config/sh/sh.c: Likewise.
39222         * config/sparc/sparc.c: Likewise.
39223         * config/spu/spu.c: Likewise.
39224         * config/stormy16/stormy16.c: Likewise.
39225         * config/v850/v850.c: Likewise.
39226         * config/vax/vax.c: Likewise.
39227         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
39228         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39229         * config/msp430/msp430.c: Likewise.
39230         * predict.c: Likewise.
39231         * value-prof.c: Likewise.
39232         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
39233         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
39234         * config/microblaze/microblaze.c: Likewise.
39235         * config/nios2/nios2.c: Likewise.
39236         * config/rs6000/rs6000.c: Likewise.
39237         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39238         insn-config.h real.h rtl.h statistics.h stmt.h.
39239         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39240         insn-config.h real.h statistics.h stmt.h.
39241         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
39242         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39243         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
39244         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39245         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
39246         fixed-value.h real.h statistics.h stmt.h.
39247         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
39248         fixed-value.h statistics.h stmt.h.
39249         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
39250         stmt.h.
39252 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
39254         * gengtype.c (create_user_defined_type): Workaround
39255         -Wmaybe-uninitialized false positives.
39256         * cse.c (fold_rtx): Likewise.
39257         * loop-invariant.c (gain_for_invariant): Likewise.
39259 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
39261         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
39262         set the memory attributes in all cases but clear MEM_EXPR if need be.
39264 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
39266         PR tree-optimization/64434
39267         * cfgexpand.c (reorder_operands): New function.
39268         (expand_gimple_basic_block): Insert call of reorder_operands if
39269         optimized is true.
39271 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
39273         * config/mips/micromips.md (*swp): Remove explicit parallel.
39274         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
39275         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
39276         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
39277         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
39278         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
39279         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
39280         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
39281         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
39282         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
39283         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
39284         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
39285         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
39286         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
39287         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
39288         (mips_wrdsp): Likewise.
39289         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
39290         parallel.
39291         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
39292         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
39293         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
39294         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
39295         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
39296         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
39297         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
39298         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
39299         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
39301 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
39303         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
39304         (mips_print_operand): Support 'y' to print exact log2 in decimal
39305         of a const_int.
39306         * config/mips/mips.h (ISA_HAS_LSA): New define.
39307         (ISA_HAS_DLSA): Likewise.
39308         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
39309         * config/mips/predicates.md (const_immlsa_operand): New predicate.
39311 2015-01-15  Martin Liska  <mliska@suse.cz>
39313         PR target/64377
39314         * optc-save-gen.awk: Add support for array types.
39316 2015-01-15  Richard Biener  <rguenther@suse.de>
39318         PR middle-end/64365
39319         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
39320         for MEM_REF access functions with the same base can never partially
39321         overlap.
39323 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
39325         * common.opt: New option -fstack-protector-explicit.
39326         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
39327         (stack_protect_decl_phase): Handle stack_protect attribute for
39328         explicit stack protection requests.
39329         (expand_used_vars): Similarly.
39330         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
39331         * doc/extend.texi: Add documentation for "stack_protect" attribute.
39332         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
39334 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
39336         PR target/53988
39337         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
39338         reg-reg copies.
39339         (sh_extending_set_of_reg): New struct.
39340         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
39341         sh_remove_reg_dead_or_unused_notes): New Declarations.
39342         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
39343         sh_find_extending_set_of_reg, sh_split_tst_subregs,
39344         sh_extending_set_of_reg::use_as_extended_reg): New functions.
39345         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
39346         convert to insn_and_split and use new function sh_split_tst_subregs.
39348 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
39350         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
39351         option.
39352         (Optimization Options): Move -fuse-ld documentation to...
39353         (Link Options): ...here.
39355 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
39357         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
39358         offsets.
39359         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
39360         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
39361         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
39362         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
39363         instead of ZR for the memory operand of LL/SC.
39364         (compare_and_swap_12, sync_add<mode>): Likewise.
39365         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
39366         (sync_new_<optab>_12, sync_nand_12): Likewise.
39367         (sync_old_nand_12, sync_new_nand_12): Likewise.
39368         (sync_sub<mode>, sync_old_add<mode>): Likewise.
39369         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
39370         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
39371         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
39372         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
39373         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
39374         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
39375         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
39376         * doc/md.texi (ZC): Update description.
39378 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
39380         * builtins.c (expand_builtin_atomic_exchange): Remove error when
39381         memory model is CONSUME.
39382         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
39383         expand_builtin_atomic_store): Change invalid memory model errors to
39384         warnings.
39385         (expand_builtin_atomic_clear): Change invalid model errors to warnings
39386         and issue warning for CONSUME.
39388 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
39390         * lto-cgraph: Update function comments for
39391         lto_symtab_encoder_encode_*.
39393 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
39395         * Makefile.in (site.exp): Do not set ENABLE_LTO.
39397 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
39399         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
39400         * lto-cgraph.c (select_what_to_stream): Remove argument, use
39401         lto_stream_offload_p instead.
39402         * lto-streamer.h (select_what_to_stream): Remove argument.
39403         * passes.c (ipa_write_summaries): Likewise.
39404         * tree-pass.h (ipa_write_summaries): Likewise.
39406 2015-01-14  Richard Biener  <rguenther@suse.de>
39408         PR tree-optimization/59354
39409         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
39410         groups larger than the slp group size as having gaps.
39412 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
39414         PR middle-end/59448
39415         * builtins.c (get_memmodel): Promote consume to acquire always.
39417 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
39419         PR target/64386
39420         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
39421         V32HImode.
39423 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
39425         PR target/64393
39426         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
39427         Enable AVX512BW.
39428         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
39429         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
39430         AVX512VBMI, as it implies AVX512BW.
39432 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
39434         PR target/64387
39435         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
39436         (vec_unpacks_hi_v16sf): Ditto.
39438 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39440         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
39441         is not available.
39443 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39445         * doc/invoke.texi (mapcs): Mention deprecation.
39446         (mapcs-frame): Likewise.
39448 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
39450         PR target/64453
39451         * config/arm/arm.c (callee_saved_reg_p): Define.
39452         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
39453         register is callee saved instead of !call_used_regs[reg].
39454         (thumb1_compute_save_reg_mask): Likewise.
39456 2015-01-14  Hale Wang  <hale.wang@arm.com>
39458         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
39459         Cortex-M7.
39461 2015-01-14  Richard Biener  <rguenther@suse.de>
39463         PR lto/64415
39464         * tree-inline.c (insert_debug_decl_map): Check destination
39465         function MAY_HAVE_DEBUG_STMTS.
39466         (insert_init_debug_bind): Likewise.
39467         (insert_init_stmt): Remove redundant check.
39468         (remap_gimple_stmt): Drop debug stmts if the destination
39469         function has var-tracking assignments disabled.
39471 2015-01-14  Martin Liska  <mliska@suse.cz>
39473         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
39474         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
39476 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39478         PR target/64460
39479         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
39480         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
39482 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
39484         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
39485         level from an ARCH; do not inject the default.
39486         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
39487         MIPS_ISA_LEVEL_SPEC.
39488         (MIPS_ISA_NAN2008_SPEC): Update comment.
39489         (BASE_DRIVER_SELF_SPECS): Likewise.
39490         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
39491         MIPS_DEFAULT_ISA_LEVEL_SPEC.
39492         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
39493         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
39494         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
39496 2015-01-14  Richard Biener  <rguenther@suse.de>
39498         PR tree-optimization/64493
39499         PR tree-optimization/64495
39500         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
39501         assign the proper vectorized PHI to the inner loop exit PHIs.
39503 2015-01-14  Joey Ye  <joey.ye@arm.com>
39505         * config/arm/arm.c (arm_compute_save_reg_mask):
39506         Do not save lr in case of tail call.
39507         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
39509 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
39511         * tree-vrp.c (check_array_ref): Emit more warnings
39512         for warn_array_bounds >= 2.
39513         * common.opt: New option -Warray-bounds=.
39514         * doc/invoke.texi: Document -Warray-bounds=.
39516 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
39518         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
39519         (mforbid-fp-as-gp): Remove.
39520         (mex9): Remove.
39521         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
39522         (nds32_symbol_load_store_p): Remove.
39523         (nds32_fp_as_gp_check_available): Clean up implementation.
39524         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
39525         cases.
39526         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
39527         fp-as-gp and ex9 cases.
39529 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
39531         * tree-profile.c (init_ic_make_global_vars): Drop workaround
39532         for bintuils bug 14342.
39533         (init_ic_make_global_vars): Likewise.
39534         (gimple_init_edge_profiler): Likewise.
39535         (gimple_gen_ic_func_profiler): Likewise.
39537 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
39539         * ipa-inline.c (inline_small_functions): Swap the operands in
39540         enum.
39542 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
39544         PR ipa/64481
39545         * ipa-inline-analysis.c (node_growth_cache): Remove.
39546         (initialize_growth_caches): Do not initialize it.
39547         (free_growth_caches): Do not free it.
39548         (do_estimate_growth): Rename to ...
39549         (estimate_growth): ... this one; drop growth cache code.
39550         (growth_likely_positive): Always go the heuristics way.
39551         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
39552         (reset_edge_caches): Do not reset node growth.
39553         (heap_edge_removal_hook): Do not maintain cache.
39554         (inline_small_functions): Likewise; strenghten sanity check.
39555         (ipa_inline): Do not maintain caches.
39556         * ipa-inline.h (node_growth_cache): Remove.
39557         (do_estimate_growth): Remove to ...
39558         (estimate_growth): this one; remove inline version.
39559         (reset_node_growth_cache): Remove.
39561 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
39563         PR ipa/64565
39564         * ipa-inline.c (inline_small_functions): Update callee keys after
39565         resolving speculation
39566         (inline_small_functions): Always check monotonicity of the queue.
39568 2015-01-13  Marek Polacek  <polacek@redhat.com>
39570         PR middle-end/64391
39571         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
39573 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
39575         PR rtl-optimization/64286
39576         * ree.c (combine_reaching_defs): Move part of comment earlier,
39577         remove !SCALAR_INT_MODE_P check.
39578         (add_removable_extension): Don't add vector mode
39579         extensions if all uses of the source register aren't the same
39580         vector extensions.
39582 2015-01-13  Renlin Li  <renlin.li@arm.com>
39584         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
39585         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
39587 2015-01-13  Martin Liska  <mliska@suse.cz>
39589         * ipa-icf.c (sem_function::equals_private): Call new functions
39590         cl_target_option_print_diff and cl_optimization_print_diff.
39591         * optc-save-gen.awk (cl_target_option_print_diff): New function.
39592         (cl_optimization_print_diff): Likewise.
39593         * opth-gen.awk: Likewise.
39595 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
39597         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
39598         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
39599         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
39600         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
39601         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
39602         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
39604 2015-01-13  Andrew Pinski  <apinski@cavium.com>
39606         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
39607         instead of src mode.
39609 2015-01-13  Richard Biener  <rguenther@suse.de>
39611         PR lto/64373
39612         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
39613         DECL_CONTEXT.
39615 2015-01-13  Andrew Pinski  <apinski@cavium.com>
39617         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
39618         volatile mems.
39619         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
39621 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
39623         PR middle-end/63974
39624         * cfgexpand.c (expand_computed_goto): Don't call
39625         convert_memory_address here.
39627 2015-01-13  Richard Biener  <rguenther@suse.de>
39629         PR tree-optimization/64406
39630         * tree-loop-distibution.c (pass_loop_distribution::execute):
39631         Reset the SCEV hashtable if we distributed anything.
39633 2015-01-13  Richard Biener  <rguenther@suse.de>
39635         PR tree-optimization/64404
39636         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
39637         SLP types for CSEd loads.
39639 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
39641         PR tree-optimization/64436
39642         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
39643         merge of two symbolic numbers for a bitwise OR to ...
39644         (perform_symbolic_merge): This. Also fix computation of the range and
39645         end of the symbolic number corresponding to the result of a bitwise OR.
39647 2015-01-13  Richard Biener  <rguenther@suse.de>
39649         PR tree-optimization/64568
39650         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
39651         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
39653 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39655         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
39656         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
39658 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39660         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
39661         target-specific symbol_ref flag.
39662         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
39663         resides in rodata section.
39664         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
39665         (nds32_encode_section_info): New function.
39667 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39669         * config/nds32/nds32.md (call): Use pseudo instruction bal which
39670         clobbers TA_REGNUM if large code model is specified.
39671         (call_register): Likewise.
39672         (call_immediate): Likewise.
39673         (call_value): Likewise.
39674         (call_value_register): Likewise.
39675         (call_value_immediate): Likewise.
39677 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39679         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
39680         (TARGET_CMODEL_MEDIUM): New macro.
39681         (TARGET_CMODEL_LARGE): New macro.
39682         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
39683         code model setting in assembly code.
39685 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39687         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
39688         Remove MASK_GP_DIRECT flag.
39689         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
39690         one of the multilib default options.
39691         * config/nds32/nds32.opt (mgp-direct): Remove.
39692         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
39693         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
39695 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39697         * config/nds32/nds32.opt (mcmodel): Add new option.
39698         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
39699         to describe code model.
39701 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
39703         PR target/64479
39704         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
39706 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
39708         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
39709         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
39710         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
39711         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
39712         __builtin_sh_set_fpscr.
39714 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
39716         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
39717         after a funtion name just to indicate it is a function.
39718         ([-fsanitize-undefined-trap-on-error]): Likewise.
39719         ([-fdbg-cnt=]): Likewise.
39720         ([-mmemcpy]): Likewise.
39721         ([-mflush-func]): Likewise.
39722         ([-msynci]): Likewise.
39724 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
39726         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
39727         example.
39729 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
39731         PR tree-optimization/64563
39732         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
39733         instead of != VR_VARYING.
39735         PR target/64513
39736         * config/i386/i386.c (ix86_expand_prologue): Add
39737         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
39739         PR tree-optimization/64454
39740         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
39741         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
39742         for signed or [0, op1 - 1] for unsigned modulo.
39743         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
39744         even if op1 does not satisfy integer_pow2p.
39746         PR other/64370
39747         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
39749 2015-01-12  Jeff Law  <law@redhat.com>
39751         PR target/64461
39752         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
39753         (trunchiqi2, truncsihi2): Similarly.
39755         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
39756         rather than calling F.
39758 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39760         * tsan.c (instrument_expr): Use force_gimple_operand.
39761         Use may_be_nonaddressable_p instead of is_gimple_addressable.
39763 2015-01-12  Richard Biener  <rguenther@suse.de>
39765         PR tree-optimization/64530
39766         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
39767         back dr1.
39769 2015-01-12  Richard Biener  <rguenther@suse.de>
39771         PR middle-end/64357
39772         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
39773         latches properly.
39775 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39777         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
39778         Cortex-A17 tuning parameters.
39779         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
39781 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39783         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
39784         * config/arm/arm.c (arm_macro_fusion_p): New function.
39785         (arm_macro_fusion_pair_p): Likewise.
39786         (TARGET_SCHED_MACRO_FUSION_P): Define.
39787         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
39788         (ARM_FUSE_NOTHING): Likewise.
39789         (ARM_FUSE_MOVW_MOVT): Likewise.
39790         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
39791         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
39792         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
39793         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
39794         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
39795         arm_cortex_a5_tune): Specify fuseable_ops value.
39797 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
39799         PR bootstrap/64561
39800         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
39801         test for PIE with copy reloc.
39802         * configure: Regenerated.
39804 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39806         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
39807         in gen_rtx_REG.
39808         (arm_tls_descseq_addr): Likewise.
39809         (arm_gen_movmemqi): Likewise.
39810         (arm_expand_epilogue_apcs_frame): Likewise.
39811         (arm_expand_epilogue): Likewise.
39812         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
39813         in gen_rtx_REG.
39815 2015-01-12  Martin Liska  <mliska@suse.cz>
39817         PR ipa/64550
39818         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
39819         volatility for correct operands.
39821 2015-01-12  Martin Liska  <mliska@suse.cz>
39823         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
39824         indication that a function is not leaf.
39825         (sem_function::compare_polymorphic_p): Likewise.
39827 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
39829         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
39830         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
39831         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
39832         fold-const.h, tree-check.h.
39834 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
39836         PR ipa/63967
39837         PR ipa/64425
39838         * ipa-inline.c (compute_uninlined_call_time,
39839         compute_inlined_call_time): Use counts for extra precision when
39840         needed possible.
39841         (big_speedup_p): Fix formating.
39842         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
39843         (relative_time_benefit): Remove.
39844         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
39845         merge guessed and read profile paths.
39846         (inline_small_functions): Count only !optimize_size functions into
39847         initial size; be more lax about sanity check when profile is used;
39848         be sure to update inlined function profile when profile is read.
39850 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
39852         PR ipa/63470
39853         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
39854         cost when edge becomes direct.
39855         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
39856         is resolved or when introducing new speculation.
39858 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
39860         PR ipa/64551
39861         PR ipa/64552
39862         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
39863         '||' to fix typo issue.
39865         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
39866         accept and return NULL.
39868 2015-01-12  Martin Liska  <mliska@suse.cz>
39870         * cgraph.c (cgraph_edge::remove_callee): Move function to header
39871         file for being inlined.
39872         (cgraph_set_edge_callee): Delete.
39873         (cgraph_edge::redirect_callee): Move function to header file
39874         for being inlined.
39875         (cgraph_edge::make_direct): Use new function.
39876         (cgraph_edge::dump_edge_flags): New function created from
39877         static dump_edge_flags function.
39878         (cgraph_node::dump): Use new function.
39879         (cgraph_edge::verify_count_and_frequency): New function created
39880         from verify_edge_count_and_frequency.
39881         (cgraph_edge::verify_corresponds_to_fndecl): New function created
39882         from verify_edge_corresponds_to_fndecl.
39883         (verify_edge_corresponds_to_fndecl): Delete.
39884         (cgraph_node::verify_node): Use new function.
39885         * cgraph.h (cgraph_edge::set_callee): New function.
39886         (cgraph_edge::dump_edge_flags): Likewise.
39887         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
39889 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
39891         * ipa-utils.c (estimate_function_body_sizes): Do not
39892         free node params when called late with early=true.
39894 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
39896         * doc/md.texi (Instruction Patterns): Rewrite text for
39897         clarity.
39898         (Example): Likewise.
39900 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
39902         * doc/invoke.texi (Option Summary): Break long lines.
39903         [(-fdiagnostics-color)]: Put long literal in @smallexample
39904         instead of inline.
39905         [(-fsanitize-recover)]: Likewise.
39906         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
39907         [(-ffast-math)]: Likewise.
39908         [(--param max-inline-insns-recursive)]: Likewise.
39909         [(--param max-inline-recursive-depth)]: Likewise.
39910         [(-mno-text-section-literals)]: Likewise.
39912 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
39914         * doc/install.texi: Update for libgomp being renamed from "GNU
39915         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
39916         Runtime Library".
39917         * doc/sourcebuild.texi: Likewise.
39919 2015-01-10  Anthony Green  <green@moxielogic.com>
39921         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
39922         mul.x availability for moxiebox configuration.
39924 2015-01-09  Anthony Green  <green@moxielogic.com>
39926         * config/moxie/moxie.md: Tabify assembly output.
39928 2015-01-09  Anthony Green  <green@moxielogic.com>
39930         * config/moxie/moxie.md (CC_REG): Correct register definition.
39932 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
39934         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
39935         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
39936         of log files.
39938 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
39940         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
39942 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
39943             Jakub Jelinek  <jakub@redhat.com>
39945         PR middle-end/64412
39946         * lto-streamer.h (lto_stream_offload_p): New declaration.
39947         * lto-streamer.c (lto_stream_offload_p): New variable.
39948         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
39949         at the same time as section_name_prefix.
39950         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
39951         if lto_stream_offload_p.
39952         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
39953         stream TREE_TARGET_OPTION if lto_stream_offload_p.
39954         (write_ts_function_decl_tree_pointers): Don't
39955         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
39956         * tree-streamer-in.c (unpack_value_fields): Don't stream
39957         TREE_TARGET_OPTION in if ACCEL_COMPILER.
39958         (lto_input_ts_function_decl_tree_pointers): Don't stream
39959         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
39960         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
39961         instead of section_name_prefix string comparisons.
39963 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
39965         PR rtl-optimization/64536
39966         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
39967         tablejumps.
39969 2015-01-09  Michael Collison  <michael.collison@linaro.org>
39971         PR tree-optimization/64322
39972         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
39973         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
39975 2015-01-09  Tom de Vries  <tom@codesourcery.com>
39977         PR rtl-optimization/64539
39978         * regcprop.c (kill_clobbered_values): Factor out of ...
39979         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
39980         instead of note_stores with kill_clobbered_value.
39982 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
39984          * ginclude/unwind-arm-common.h: Revert previous commit.
39986 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
39988         * config.gcc (arm*-*-freebsd*): New configuration.
39989         * config/arm/freebsd.h: New file.
39990         * config.host: Add extra components for arm*-*-freebsd*.
39991         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
39992         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
39994 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
39996         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
39997         for -mcpu=e6500.
39998         * config/rs6000/t-rtems: Add e6500 multilibs.
40000 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40002         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
40003         MPC8540.
40005 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40007         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
40008         MULTILIB_EXCEPTIONS.
40010 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40012         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
40013         MULTILIB_EXCEPTIONS.
40015 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40017         * config/arm/t-rtems-eabi: Rename to...
40018         * config/arm/t-rtems: ...this.
40019         * config/arm/rtems-eabi.h: Rename to...
40020         * config/arm/rtems.h: ...this.
40021         * config.gcc (arm*-*-rtems*): Reflect changes above.
40023 2015-01-09  Richard Biener  <rguenther@suse.de>
40025         PR tree-optimization/64410
40026         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
40027         on the LHS.
40028         (execute_update_addresses_taken): Deal with that.
40029         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
40030         loads/stores for complex variables.
40032 2015-01-09  Martin Liska  <mliska@suse.cz>
40034         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
40035         name comparison.
40036         (func_checker::compare_memory_operand): New function.
40037         (func_checker::compare_operand): Split case to newly
40038         added functions.
40039         (func_checker::compare_cst_or_decl): New function.
40040         (func_checker::compare_gimple_call): Identify
40041         memory operands.
40042         (func_checker::compare_gimple_assign): Likewise.
40043         * ipa-icf-gimple.h: New function.
40045 2015-01-09  Martin Liska  <mliska@suse.cz>
40047         PR ipa/64503
40048         * sreal.c (sreal::dump): Change unsigned format to signed for
40049         m_exp value.
40050         (sreal::to_double): Replace exp2 with scalbln.
40052 2015-01-09  Martin Liska  <mliska@suse.cz>
40054         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
40055         * ipa-icf.c (sem_function::equals_private): Add support for target and
40056         (sem_item_optimizer::merge_classes): Remove redundant function
40057         optimization flags comparison.
40058         * tree.h (target_opts_for_fn): New function.
40060 2015-01-09  Tom de Vries  <tom@codesourcery.com>
40062         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
40064 2015-01-09  Kito Cheng  <kito@0xlab.org>
40066         PR rtl-optimization/64348
40067         * lra-constraints.c (split_reg): Fix caller-save store/restore
40068         instruction generation.
40070 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
40072         PR gcov-profile/61790
40073         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
40074         long long.  Fallback to int64_t if host doesn't have long long and
40075         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
40077 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
40079         PR tree-optimization/63989
40080         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
40081         from 1000 to 10000.
40082         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
40083         (get_stridx): If we don't have a record for certain SSA_NAME,
40084         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
40085         constant offset, call get_stridx_plus_constant.
40086         (get_stridx_plus_constant): New function.
40087         (zero_length_string): Don't use get_stridx here.
40089         PR target/55023
40090         PR middle-end/64388
40091         * dse.c (struct insn_info): Mention frame_read set also
40092         before reload for tail calls on some targets.
40093         (scan_insn): Revert 2014-12-22 change.  Set frame_read
40094         also before reload for tail calls if
40095         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
40096         instead of add_non_frame_wild_read for non-const/memset
40097         tail calls after reload.
40099 2015-01-08  Jason Merrill  <jason@redhat.com>
40101         * ubsan.c (do_ubsan_in_current_function): New.
40102         (pass_ubsan::gate): Use it.
40103         * ubsan.h: Declare it.
40104         * convert.c (convert_to_integer): Use it.
40106 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
40108         PR target/64338
40109         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
40110         compare_code when it is unconditionally overwritten afterwards.
40111         Use ix86_reverse_condition instead of reverse_condition.  Don't
40112         change code if *reverse_condition* returned UNKNOWN and don't
40113         swap ct/cf and negate diff in that case.
40115 2015-01-08  Mike Stump  <mikestump@comcast.net>
40117         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
40118         (pass_tsan_O0::gate): Likewise.
40119         * extend.texi (Function Attributes): Add no_sanitize_thread
40120         documentation.
40122 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
40124         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
40125         for registering builtins.
40126         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
40127         add -fopenmp to the argv_obstack used when invoking
40128         compile_for_target.
40130         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
40131         add "-m32" or "-m64" to argv_obstack.
40132         (generate_host_descr_file): Likewise, when invoking host_compiler.
40133         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
40134         ld.
40136 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
40138         * config/sh/sh-mem.cc: Use constant as second operand when emitting
40139         tstsi_t insns.
40141 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
40143         PR target/55212
40144         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
40145         constant load if constant operand fits into I08.
40147 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
40149         PR sanitizer/64336
40150         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
40151         and TREE_THIS_VOLATILE for MEM_REFs.
40152         (build5_stat): Fix up initialization of TREE_READONLY and
40153         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
40155 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
40157         PR target/64533
40158         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
40159         of r for the second alternative of the destination operand.
40161 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
40163         PR target/36557
40164         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
40166 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
40168         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
40169         keywords.
40170         ([-fivar-visibility], [-fvisibility]): Likewise.
40172 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
40174         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
40175         the file where @code, @command, etc is more appropriate.
40177 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
40179         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
40180         of -mrecip= documentation.
40182 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
40184         PR target/64505
40185         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
40186         correct reload handler if -m32 -mpowerpc64 is used.
40188 2015-01-06  Tom de Vries  <tom@codesourcery.com>
40190         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
40192 2015-01-08  Christian Bruel  <christian.bruel@st.com>
40194         PR target/64507
40195         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
40197 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
40199         PR tree-optimization/63259
40200         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
40201         if optab exists for 16bit byteswap.
40203 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
40205         * opts.c (common_handle_option): Add support for
40206         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
40207         * doc/invoke.texi: Document -fno-sanitize=all,
40208         -f{,no-}sanitize-recover=all.  Document that
40209         -fsanitize=float-cast-overflow is not enabled
40210         by -fsanitize=undefined.  Fix up documentation
40211         of -f{,no-}sanitize-recover.
40213 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
40215         * config.gcc: Add Visium support.
40216         * configure.ac: Likewise.
40217         * configure: Regenerate.
40218         * doc/extend.texi (interrupt attribute): Add Visium.
40219         * doc/invoke.texi: Document Visium options.
40220         * doc/install.texi: Document Visium target.
40221         * doc/md.texi: Document Visium constraints.
40222         * common/config/visium: New directory.
40223         * config/visium: Likewise.
40225 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
40227         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
40228         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
40230 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
40232         * combine.c (combine_validate_cost): Do not count the cost of a
40233         split I2 twice.  Do not display it twice in the dump, either.
40235 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
40237         Revert parts of r219199.
40238         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
40239         <inttypes.h>.
40240         ([-Wtraditional]): Restore markup on <limits.h>.
40242 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
40244         PR c++/31397
40245         * doc/invoke.texi: Document -Wsuggest-override.
40247 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
40249         PR rtl-optimization/64287
40250         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
40251         (process_options): Disable flag_ipa_ra if profiling.
40253 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
40255         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
40257 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
40259         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
40260         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
40261         put under #if TARGET_LOOPS guard.
40263 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
40265         * config/i386/i386.c (output_387_binary_op): Use std::swap.
40267 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
40269         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
40270         * rtl.h (refers_to_regno_p): Add overload.
40271         * cse.c: Use it.
40272         * bt-load.c: Likewise.
40273         * combine.c: Likewise.
40274         * df-scan.c: Likewise.
40275         * sched-deps.c: Likewise.
40276         * config/s390/s390.c: Likewise.
40277         * config/m32r/m32r.c: Likewise.
40278         * config/rs6000/spe.md: Likewise.
40279         * config/rs6000/rs6000.c: Likewise.
40280         * config/pa/pa.c: Likewise.
40281         * config/stormy16/stormy16.c: Likewise.
40282         * config/cris/cris.c: Likewise.
40283         * config/arc/arc.md: Likewise.
40284         * config/arc/arc.c: Likewise.
40285         * config/sh/sh.md: Likewise.
40286         * config/sh/sh.c: Likewise.
40287         * config/frv/frv.c: Likewise.
40289 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
40291         PR sanitizer/64265
40292         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
40293         call as cleanup of the whole body.
40294         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
40295         * tsan.c (replace_func_exit): New function.
40296         (instrument_func_exit): Moved earlier.
40297         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
40298         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
40299         been found.
40300         (tsan_pass): Don't call instrument_func_exit.
40301         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
40302         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
40303         inlining.
40305         PR sanitizer/64344
40306         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
40307         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
40308         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
40309         if the result is integer_zerop, return NULL_TREE.
40310         * convert.c (convert_to_integer): Pass expr as ARG.
40312         PR tree-optimization/64465
40313         * tree-inline.c (redirect_all_calls): During inlining
40314         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
40315         changed the stmt to a non-throwing call.
40317 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
40319         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
40320         etc markup throughout the file.
40322 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40324         Enable experimental TSAN support for Ada.
40325         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
40327 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
40329         PR tree-optimization/64494
40330         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
40331         clear SSA_NAME_ANTI_RANGE_P flag.
40333 2015-01-05  Marek Polacek  <polacek@redhat.com>
40335         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
40337 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
40339         Update copyright years.
40341         * gcc.c (process_command): Update copyright notice dates.
40342         * gcov-dump.c: Ditto.
40343         * gcov.c: Ditto.
40344         * doc/cpp.texi: Bump @copying's copyright year.
40345         * doc/cppinternals.texi: Ditto.
40346         * doc/gcc.texi: Ditto.
40347         * doc/gccint.texi: Ditto.
40348         * doc/gcov.texi: Ditto.
40349         * doc/install.texi: Ditto.
40350         * doc/invoke.texi: Ditto.
40352         * auto-profile.c, auto-profile.h: Fix up Copyright line.
40354 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
40356         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
40357         verb tense, etc.
40358         ([-fvtable-verify], [-fvtv-debug]): Likewise.
40359         ([-Wabi]): Likewise.
40360         ([-fmessage-length]): Likewise.
40361         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
40362         ([-Wno-discarded-qualifiers]): Likewise.
40363         ([-Wnodiscarded-array-qualifiers]): Likewise.
40364         ([-Wno-virtual-move-assign]): Likewise.
40365         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
40366         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
40367         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
40368         ([-fsanitize-undefined-trap-on-error]): Likewise.
40369         ([-floop-interchange]): Likewise.
40370         ([-ftree-coalesce-inlined-vars]): Likewise.
40371         ([-fvect-cost-model]): Likewise.
40372         ([-flto]): Likewise.
40373         ([--param]): Likewise.
40374         (Spec Files): Likewise.
40375         ([-mstrict-align]): Likewise.
40376         ([-mfix-cortex-a53-835769]): Likewise.
40377         ([-march], [-mtune]): Likewise.
40378         ([-mpic-register]): Likewise.
40379         ([-munaligned-access]): Likewise.
40380         ([-msp8]): Likewise.
40381         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
40382         (AVR Built-in Macros): Likewise.
40383         ([-mpreferred-stack-boundary]): Likewise.
40384         ([-mtune-crtl]): Likewise.
40385         ([-mashf]): Likewise.
40386         ([-mmcu=]): Likewise.
40387         ([-minrt]): Likewise.
40388         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
40389         ([-mupper-regs]): Likewise.
40390         ([-matomic-model]): Likewise.
40391         ([-mdiv]): Likewise.
40392         ([-mzdcbranch]): Likewise.
40393         ([-mdisable-callt]): Likewise.
40394         ([-msoft-float]): Likewise.
40395         ([-m8byte-align]): Likewise.
40396         ([-fstack-reuse]): Likewise.
40398 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
40400         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
40401         Fix markup, light copy-editing.
40402         ([-fauto-profile]): Rewrite to fix formatting and content
40403         problems.
40405 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
40407         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
40408         Copy-edit description.
40409         ([-fisolate-erroneous-paths-attribute]): Likewise.
40410         * common.opt (fisolate-erroneous-paths-dereference):
40411         Copy-edit description.
40412         (fisolate-erroneous-paths-attribute): Likewise.
40414 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
40416         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
40417         tidy grammar.
40419 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
40421         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
40422         ([-fvtv-debug]): Likewise.
40423         ([-Wc++-compat]): Likewise.
40424         ([-Wc++11-compat]): Likewise.
40425         ([-Wc++14-compat]): Likewise.
40426         ([-Wno-sized-deallocation]): Likewise.
40427         ([-femit-class-debug-always]): Likewise.
40428         ([-femit-struct-debug-detailed]): Likewise.
40429         ([-fno-keep-inline-dllexport]): Likewise.
40430         ([-fira-algorithm]): Likewise.
40431         ([-fira-region]): Likewise.
40432         ([-flra-remat]): Likewise.
40433         ([-fipa-ra]): Likewise.
40434         ([-fhoist-adjacent-loads]): Likewise.
40435         ([-fisolate-erroneous-paths-dereference]): Likewise.
40436         ([-fisolate-erroneous-paths-attribute]): Likewise.
40437         ([-ftree-switch-conversion]): Likewise.
40438         ([-ftree-tail-merge]): Likewise.
40439         ([-ftree-loop-if-convert]): Likewise.
40440         ([-ftree-loop-if-convert-stores]): Likewise.
40441         ([-ftree-loop-distribution]): Likewise.
40442         ([-ftree-loop-distribute-patterns]): Likewise.
40443         ([-flto-compression-level]): Likewise.
40444         ([-flto-report]): Likewise.
40445         ([-flto-report-wpa]): Likewise.
40446         ([-fuse-linker-plugin]): Likewise.
40447         ([-mfix-cortex-a53-835769]): Likewise.
40448         ([-mno-fix-cortex-a53-835769]): Likewise.
40449         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
40450         explicit listing; add a note to the discussion indicating they
40451         exist.  Reorder table to group similar options.  Add missing
40452         @opindex entries.  Add @need commands throughout the table to
40453         allow it to be split across multiple pages.
40454         ([-m8bit-idiv]): Fix @opindex.
40455         ([-mavx256-split-unaligned-load]): Likewise.
40456         ([-mavx256-split-unaligned-store]): Likewise.
40457         ([-mstack-protector-guard]): Likewise.
40458         ([-mcpu=]): Likewise.
40459         ([-mcpu]): Likewise.
40460         ([-mpointer-size=]): Likewise.
40462 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
40464         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
40465         instead of `m' constraint.  Likewise for unnamed movb comparison
40466         patterns using reg_before_reload_operand predicate.
40467         * config/pa/predicates.md (reg_before_reload_operand): Tighten
40468         predicate to reject register index and LO_SUM DLT memory forms
40469         after reload.
40471 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
40473         * doc/invoke.texi (Option Summary): Fix spelling of
40474         -fdevirtualize-at-ltrans.
40475         ([-fdevirtualize]): Fix markup.
40476         ([-fdevirtualize-speculatively]): Fix typo.
40477         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
40478         implementor-speaky.
40479         * common.opt (fdevirtualize-at-ltrans): Likewise.
40480         * ipa-devirt.c: Fix typos in comments throughout the file.
40481         (ipa_devirt): Fix typos in format strings for dump output.
40483 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
40485         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
40486         discussion of defaults, light copy-editing.
40488 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40490         * tsan.c (instrument_expr): corrected previous checkin.
40492 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40494         Instrument bit field and unaligned accesses for TSAN.
40495         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
40496         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
40497         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
40498         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
40499         unaligned memory regions.
40501 2015-01-01  Anthony Green  <green@moxielogic.com>
40503         * config/moxie/predicates.md (moxie_general_movsrc_operand):
40504         Restrict move source register offsets to 16 bits.
40506 Copyright (C) 2015 Free Software Foundation, Inc.
40508 Copying and distribution of this file, with or without modification,
40509 are permitted in any medium without royalty provided the copyright
40510 notice and this notice are preserved.